cekat-ui 1.3.15 → 1.3.17
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/index.d.mts +367 -14
- package/dist/index.d.ts +367 -14
- package/dist/index.mjs +22151 -14692
- package/dist/index.umd.js +16 -16
- package/dist/style.css +282 -14
- package/package.json +2 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
(function(W,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],s):(W=typeof globalThis<"u"?globalThis:W||self,s(W.CekatUI={},W.React$1,W.$3wX5A$reactdom))})(this,(function(W,s,vt){"use strict";function Pg(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const g=Pg(s);var kg={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const Fe=(t,e,n,r)=>{const i=s.forwardRef(({color:o="currentColor",size:l=24,stroke:a=2,title:u,className:d,children:c,...f},p)=>s.createElement("svg",{ref:p,...kg[t],width:l,height:l,className:["tabler-icon",`tabler-icon-${e}`,d].join(" "),strokeWidth:a,stroke:o,...f},[u&&s.createElement("title",{key:"svg-title"},u),...r.map(([h,m])=>s.createElement(h,m)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i};const br=Fe("outline","alert-circle","AlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);const Dg=Fe("outline","alert-triangle","AlertTriangle",[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);const Ng=Fe("outline","arrow-down","ArrowDown",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]]);const Tg=Fe("outline","arrow-up","ArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]]);const Ag=Fe("outline","arrows-sort","ArrowsSort",[["path",{d:"M3 9l4 -4l4 4m-4 -4v14",key:"svg-0"}],["path",{d:"M21 15l-4 4l-4 -4m4 4v-14",key:"svg-1"}]]);const Ni=Fe("outline","check","Check",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);const Ti=Fe("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);const Ig=Fe("outline","chevron-right","ChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);const Ai=Fe("outline","circle-check","CircleCheck",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 12l2 2l4 -4",key:"svg-1"}]]);const Bg=Fe("outline","cloud-upload","CloudUpload",[["path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1",key:"svg-0"}],["path",{d:"M9 15l3 -3l3 3",key:"svg-1"}],["path",{d:"M12 12l0 9",key:"svg-2"}]]);const bn=Fe("outline","info-circle","InfoCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]]);const ba=Fe("outline","loader-2","Loader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]]);const Fg=Fe("outline","slash","Slash",[["path",{d:"M17 5l-10 14",key:"svg-0"}]]);const yn=Fe("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function We(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const de=typeof document<"u"?s.useLayoutEffect:()=>{},yr={prefix:String(Math.round(Math.random()*1e10)),current:0},ya=s.createContext(yr),Mg=s.createContext(!1);let Kg=!!(typeof window<"u"&&window.document&&window.document.createElement),Ii=new WeakMap;function Lg(t=!1){let e=s.useContext(ya),n=s.useRef(null);if(n.current===null&&!t){let r=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(r){let i=Ii.get(r);i==null?Ii.set(r,{id:e.current,state:r.memoizedState}):r.memoizedState!==i.state&&(e.current=i.id,Ii.delete(r))}n.current=++e.current}return n.current}function Og(t){let e=s.useContext(ya);e===yr&&!Kg&&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 n=Lg(!!t),r=e===yr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function zg(t){let e=s.useId(),[n]=s.useState(xt()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${yr.prefix}`;return t||`${r}-${e}`}const _g=typeof s.useId=="function"?zg:Og;function Vg(){return!1}function Hg(){return!0}function jg(t){return()=>{}}function xt(){return typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore(jg,Vg,Hg):s.useContext(Mg)}function Rg(t){let[e,n]=s.useState(t),r=s.useRef(e),i=s.useRef(null),o=s.useRef(()=>{if(!i.current)return;let a=i.current.next();if(a.done){i.current=null;return}r.current===a.value?o.current():n(a.value)});de(()=>{r.current=e,i.current&&o.current()});let l=s.useCallback(a=>{i.current=a(r.current),o.current()},[o]);return[e,l]}let Wg=!!(typeof window<"u"&&window.document&&window.document.createElement),Zt=new Map,Jt;typeof FinalizationRegistry<"u"&&(Jt=new FinalizationRegistry(t=>{Zt.delete(t)}));let Bi=new WeakMap;function xe(t){let[e,n]=s.useState(t),r=s.useRef(null),i=_g(e),o=s.useRef(null),l=Bi.get(o);if(Jt&&l!==i&&(l!=null&&Jt.unregister(o),Jt.register(o,i,o),Bi.set(o,i)),Wg){const a=Zt.get(i);a&&!a.includes(r)?a.push(r):Zt.set(i,[r])}return de(()=>{let a=i;return()=>{Jt&&(Jt.unregister(o),Bi.delete(o)),Zt.delete(a)}},[i]),s.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),i}function Ug(t,e){if(t===e)return t;let n=Zt.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=Zt.get(e);return r?(r.forEach(i=>i.current=t),t):e}function dt(t=[]){let e=xe(),[n,r]=Rg(e),i=s.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return de(i,[e,i,...t]),n}function $n(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=$a(i,e);return n||=typeof o=="function",o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():$a(t[o],null)})}}}function $a(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function va(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=va(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function X(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=va(t))&&(r&&(r+=" "),r+=e);return r}function G(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=We(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=X(o,l):i==="id"&&o&&l?e.id=Ug(o,l):i==="ref"&&o&&l?e.ref=$n(o,l):e[i]=l!==void 0?l:o}}return e}function ke(t){const e=s.useRef(null),n=s.useRef(void 0),r=s.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return s.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}const ct=Symbol("default");function Te({values:t,children:e}){for(let[n,r]of t)e=s.createElement(n.Provider,{value:r},e);return e}function se(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a,render:u}=t;return s.useMemo(()=>{let d,c,f;return typeof e=="function"?d=e({...a,defaultClassName:i}):d=e,typeof n=="function"?c=n({...a,defaultStyle:l||{}}):c=n,typeof r=="function"?f=r({...a,defaultChildren:o}):r==null?f=o:f=r,{className:d??i,style:c||l?{...l,...c}:void 0,children:f??o,"data-rac":"",render:u?p=>u(p,a):void 0}},[e,n,r,i,o,l,a,u])}function Fi(t,e){return n=>e(typeof t=="function"?t(n):t,n)}function Ct(t,e){let n=s.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||ct;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function ge(t,e,n){let r=Ct(n,t.slot)||{},{ref:i,...o}=r,l=ke(s.useMemo(()=>$n(e,i),[e,i])),a=G(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?a.style=u=>{let d=typeof o.style=="function"?o.style(u):o.style,c={...u.defaultStyle,...d},f=typeof t.style=="function"?t.style({...u,defaultStyle:c}):t.style;return{...c,...f}}:a.style={...o.style,...t.style}),[a,l]}function vn(t=!0){let[e,n]=s.useState(t),r=s.useRef(!1),i=s.useCallback(o=>{r.current=!0,n(!!o)},[]);return de(()=>{r.current||n(!1)},[]),[i,e]}function xa(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}function Gg(t,e,n){let{render:r,...i}=e,o=s.useRef(null),l=s.useMemo(()=>$n(n,o),[n,o]);de(()=>{process.env.NODE_ENV!=="production"&&r&&(o.current?o.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${o.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,r]);let a={...i,ref:l};return r?r(a,void 0):s.createElement(t,a)}const Ca={},ee=new Proxy({},{get(t,e){if(typeof e!="string")return;let n=Ca[e];return n||(n=s.forwardRef(Gg.bind(null,e)),Ca[e]=n),n}}),Yg="react-aria-clear-focus",Xg="react-aria-focus",le=t=>qg(t)?t.document:Zg(t)?t:t?.ownerDocument??(typeof document<"u"?document:void 0),$e=t=>le(t)?.defaultView??(typeof window<"u"?window:void 0);function Ea(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function qg(t){return typeof t=="object"&&t!=null&&"window"in t&&t.window===t}function Zg(t){return Ea(t)&&t.nodeType===9}function Mi(t){return Ea(t)&&t.nodeType===11&&"host"in t}function Jg(t,e,n,r){if(n==null||t==null)return()=>{};let i=Array.isArray(t)?t:[t];for(let o of i)o.addEventListener(e,n,r);return()=>{for(let o of i)o.removeEventListener(e,n,r)}}let Qg=!1;function tt(){return Qg}function te(t,e){if(!tt())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;typeof n.assignedElements!="function"&&n.assignedSlot?.parentNode?n=n.assignedSlot.parentNode:Mi(n)?n=n.host:n=n.parentNode}return!1}const pe=(t=document)=>{if(!tt())return t.activeElement;let e=t.activeElement;for(;e&&"shadowRoot"in e&&e.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e};function z(t){if(tt()&&t.target instanceof Element&&t.target.shadowRoot){if("composedPath"in t)return t.composedPath()[0]??null;if("composedPath"in t.nativeEvent)return t.nativeEvent.composedPath()[0]??null}return t.target}function eb(t,e){if(e===null)return[];e=e??$e(t);let n=[e];if(!tt()||!t||t===e)return n;let r="getRootNode"in e?e.getRootNode():null,i=t.getRootNode()??null;for(;Mi(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function Ft(t){if(!t)return!1;let e=t.getRootNode(),n=$e(t);if(!(e instanceof n.Document||e instanceof n.ShadowRoot))return!1;let r=e.activeElement;return r!=null&&t.contains(r)}function wa(t){let e=nb(le(t));e!==t&&(e&&tb(e,t),t&&Ki(t,e))}function tb(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Ki(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function nb(t){let e=pe(t),n=e?.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}function Ue(t){if(rb())t.focus({preventScroll:!0});else{let e=ib(t);t.focus(),ob(e)}}let $r=null;function rb(){if($r==null){$r=!1;try{document.createElement("div").focus({get preventScroll(){return $r=!0,!0}})}catch{}}return $r}function ib(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function ob(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}const lb=typeof Element<"u"&&"checkVisibility"in Element.prototype;function ab(t){const e=$e(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=$e(t);let{display:l,visibility:a}=o(t);i=l!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function sb(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Li(t,e){return lb?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&ab(t)&&sb(t,e)&&(!t.parentElement||Li(t.parentElement,t))}const Oi=["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"],ub=Oi.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Oi.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const db=Oi.join(':not([hidden]):not([tabindex="-1"]),');function Sa(t,e){return t.matches(ub)&&!Pa(t)&&(e?.skipVisibilityCheck||Li(t))}function zi(t){return t.matches(db)&&Li(t)&&!Pa(t)}function Pa(t){let e=t;for(;e!=null;){if(e instanceof $e(e).HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function _i(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function ka(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function Da(t){let e=s.useRef({isFocused:!1,observer:null});return de(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),s.useCallback(n=>{let r=z(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r,o=l=>{if(e.current.isFocused=!1,i.disabled){let a=_i(l);t?.(a)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){e.current.observer?.disconnect();let l=i===pe()?null:pe();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let vr=!1;function Na(t){for(;t&&!Sa(t,{skipVisibilityCheck:!0});)t=t.parentElement;let e=$e(t),n=e.document.activeElement;if(!n||n===t)return;vr=!0;let r=!1,i=c=>{(z(c)===n||r)&&c.stopImmediatePropagation()},o=c=>{(z(c)===n||r)&&(c.stopImmediatePropagation(),!t&&!r&&(r=!0,Ue(n),u()))},l=c=>{(z(c)===t||r)&&c.stopImmediatePropagation()},a=c=>{(z(c)===t||r)&&(c.stopImmediatePropagation(),r||(r=!0,Ue(n),u()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let u=()=>{cancelAnimationFrame(d),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),vr=!1,r=!1},d=requestAnimationFrame(u);return u}function xr(t){if(typeof window>"u"||window.navigator==null)return!1;let e=window.navigator.userAgentData?.brands;return Array.isArray(e)&&e.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function Vi(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function nt(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const _e=nt(function(){return Vi(/^Mac/i)}),cb=nt(function(){return Vi(/^iPhone/i)}),Ta=nt(function(){return Vi(/^iPad/i)||_e()&&navigator.maxTouchPoints>1}),ft=nt(function(){return cb()||Ta()}),Cr=nt(function(){return _e()||ft()}),rt=nt(function(){return xr(/AppleWebKit/i)&&(ft()||!Hi())});nt(function(){return rt()&&!Hi()&&!Aa()});const Hi=nt(function(){return xr(/Chrome|CriOS|CrMo/i)}),Qt=nt(function(){return xr(/Android/i)}),Aa=nt(function(){return xr(/(Firefox|FxiOS)/i)});function ji(t){return t.pointerType===""&&t.isTrusted?!0:Qt()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function fb(t){return!Qt()&&t.width===0&&t.height===0||Qt()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}const pb=s.createContext({isNative:!0,open:gb,useHref:t=>t});function Mt(){return s.useContext(pb)}function hb(t,e){let n=t.getAttribute("target");return(!n||n==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function pt(t,e,n=!0){let{metaKey:r,ctrlKey:i,altKey:o,shiftKey:l}=e;!rt()&&Aa()&&window.event?.type?.startsWith("key")&&t.target==="_blank"&&(_e()?r=!0:i=!0);let a=rt()&&_e()&&!Ta()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:o,shiftKey:l}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:o,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});pt.isOpening=n,Ue(t),t.dispatchEvent(a),pt.isOpening=!1}pt.isOpening=!1;function mb(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function gb(t,e){mb(t,n=>pt(n,e))}function bb(t){const n=Mt().useHref(t.href??"");return{"data-href":t.href?n:void 0,"data-target":t.target,"data-rel":t.rel,"data-download":t.download,"data-ping":t.ping,"data-referrer-policy":t.referrerPolicy}}function Er(t){const n=Mt().useHref(t?.href??"");let r={};if(t)for(let i of["href","target","rel","download","ping","referrerPolicy"])i in t&&t[i]!==void 0&&(r[i]=i==="href"?n:t[i]);return r}function Ia(t,e,n,r){!e.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&hb(t.currentTarget,t)&&n&&(t.preventDefault(),e.open(t.currentTarget,t,n,r))}let ht=null;const xn=new Set;let Cn=new Map,Kt=!1,Ri=!1;const yb={Tab:!0,Escape:!0};function wr(t,e){for(let n of xn)n(t,e)}function $b(t){return!(t.metaKey||!_e()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Sr(t){Kt=!0,!pt.isOpening&&$b(t)&&(ht="keyboard",wr("keyboard",t))}function Ve(t){ht="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(Kt=!0,wr("pointer",t))}function Ba(t){!pt.isOpening&&ji(t)&&(Kt=!0,ht="virtual")}function Fa(t){let e=$e(z(t)),n=le(z(t));z(t)===e||z(t)===n||vr||!t.isTrusted||(!Kt&&!Ri&&(ht="virtual",wr("virtual",t)),Kt=!1,Ri=!1)}function Ma(){vr||(Kt=!1,Ri=!0)}function Pr(t){if(typeof window>"u"||typeof document>"u")return;const e=$e(t),n=le(t);if(Cn.get(e))return;let r=e.HTMLElement.prototype.focus;Reflect.defineProperty(e.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Kt=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",Sr,!0),n.addEventListener("keyup",Sr,!0),n.addEventListener("click",Ba,!0),e.addEventListener("focus",Fa,!0),e.addEventListener("blur",Ma,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ve,!0),n.addEventListener("pointermove",Ve,!0),n.addEventListener("pointerup",Ve,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Ve,!0),n.addEventListener("mousemove",Ve,!0),n.addEventListener("mouseup",Ve,!0)),e.addEventListener("beforeunload",()=>{Ka(t)},{once:!0}),Cn.set(e,{focus:r})}const Ka=(t,e)=>{const n=$e(t),r=le(t);e&&r.removeEventListener("DOMContentLoaded",e),Cn.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Cn.get(n).focus}),r.removeEventListener("keydown",Sr,!0),r.removeEventListener("keyup",Sr,!0),r.removeEventListener("click",Ba,!0),n.removeEventListener("focus",Fa,!0),n.removeEventListener("blur",Ma,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ve,!0),r.removeEventListener("pointermove",Ve,!0),r.removeEventListener("pointerup",Ve,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Ve,!0),r.removeEventListener("mousemove",Ve,!0),r.removeEventListener("mouseup",Ve,!0)),Cn.delete(n))};function vb(t){const e=le(t);let n;return e.readyState!=="loading"?Pr(t):(n=()=>{Pr(t)},e.addEventListener("DOMContentLoaded",n)),()=>Ka(t,n)}typeof document<"u"&&vb();function Et(){return ht!=="pointer"}function En(){return ht}function en(t){ht=t,wr(t,null)}function La(){Pr();let[t,e]=s.useState(ht);return s.useEffect(()=>{let n=()=>{e(ht)};return xn.add(n),()=>{xn.delete(n)}},[]),xt()?null:t}const xb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Cb(t,e,n){let r=n?z(n):void 0,i=le(r),o=$e(r);const l=typeof o<"u"?o.HTMLInputElement:HTMLInputElement,a=typeof o<"u"?o.HTMLTextAreaElement:HTMLTextAreaElement,u=typeof o<"u"?o.HTMLElement:HTMLElement,d=typeof o<"u"?o.KeyboardEvent:KeyboardEvent;let c=pe(i);return t=t||c instanceof l&&!xb.has(c.type)||c instanceof a||c instanceof u&&c.isContentEditable,!(t&&e==="keyboard"&&n instanceof d&&!yb[n.key])}function Eb(t,e,n){Pr(),s.useEffect(()=>{if(n?.enabled===!1)return;let r=(i,o)=>{Cb(!!n?.isTextInput,i,o)&&t(Et())};return xn.add(r),()=>{xn.delete(r)}},e)}function wn(t){return _e()?t.metaKey:t.ctrlKey}const wb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Sn(t){return t instanceof HTMLInputElement&&!wb.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const Sb=s.useInsertionEffect??de;function De(t){const e=s.useRef(null);return Sb(()=>{e.current=t},[t]),s.useCallback((...n)=>{const r=e.current;return r?.(...n)},[])}function Pn(t,e,n,r){let i=De(n),o=n==null;s.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o])}function tn(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=xe(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}const Pb=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),kb=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Db(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Pb.has(n.script)}let e=t.split("-")[0];return kb.has(e)}const Oa=Symbol.for("react-aria.i18n.locale");function za(){let t=typeof window<"u"&&window[Oa]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Db(t)?"rtl":"ltr"}}let Wi=za(),kn=new Set;function _a(){Wi=za();for(let t of kn)t(Wi)}function Nb(){let t=xt(),[e,n]=s.useState(Wi);return s.useEffect(()=>(kn.size===0&&window.addEventListener("languagechange",_a),kn.add(n),()=>{kn.delete(n),kn.size===0&&window.removeEventListener("languagechange",_a)}),[]),t?{locale:typeof window<"u"&&window[Oa]||"en-US",direction:"ltr"}:e}const Tb=s.createContext(null);function Ne(){let t=Nb();return s.useContext(Tb)||t}const Ab=Symbol.for("react-aria.i18n.locale"),Ib=Symbol.for("react-aria.i18n.strings");let kr;class Dr{constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=Bb(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Ab];if(kr===void 0){let i=window[Ib];if(!i)return null;kr={};for(let o in i)kr[o]=new Dr({[n]:i[o]},n)}let r=kr?.[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}function Bb(t,e,n="en-US"){if(e[t])return e[t];let r=Fb(t),i=Mb(t);if(i&&e[`${r}-${i}`])return e[`${r}-${i}`];if(e[r])return e[r];for(let o in e)if(o.startsWith(r+"-"))return e[o];return e[n]}function Fb(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}function Mb(t){if(Intl.Locale)return new Intl.Locale(t).script}const Va=new Map,Ha=new Map;class Kb{constructor(e,n){this.locale=e,this.strings=n}format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=Va.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),Va.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Ha.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Ha.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}}const ja=new WeakMap;function Lb(t){let e=ja.get(t);return e||(e=new Dr(t),ja.set(t,e)),e}function Ob(t,e){return e&&Dr.getGlobalDictionaryForPackage(e)||Lb(t)}function Me(t,e){let{locale:n}=Ne(),r=Ob(t,e);return s.useMemo(()=>new Kb(n,r),[n,r])}const zb=typeof document<"u"?s.useInsertionEffect??s.useLayoutEffect:()=>{};function it(t,e,n){let[r,i]=s.useState(t||e),o=s.useRef(r),l=s.useRef(t!==void 0),a=t!==void 0;s.useEffect(()=>{let f=l.current;f!==a&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),l.current=a},[a]);let u=a?t:r;zb(()=>{o.current=u});let[,d]=s.useReducer(()=>({}),{}),c=s.useCallback((f,...p)=>{let h=typeof f=="function"?f(o.current):f;Object.is(o.current,h)||(o.current=h,i(h),d(),n?.(h,...p))},[n]);return[u,c]}const Dn=s.createContext(null),Nr=s.createContext(null);class He{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,n,r){let i=this.clone();return n.addDescendants(i,e),i}}class Tr extends He{filter(e,n,r){let[i,o]=Ua(e,n,this.firstChildKey,r),l=this.clone();return l.firstChildKey=i,l.lastChildKey=o,l}}const ra=class ra extends He{};ra.type="header";let Ui=ra;const ia=class ia extends He{};ia.type="loader";let Ar=ia;const oa=class oa extends Tr{filter(e,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,e),i}return null}};oa.type="item";let Ir=oa;const la=class la extends Tr{filter(e,n,r){let i=super.filter(e,n,r);if(i&&i.lastChildKey!==null){let o=e.getItem(i.lastChildKey);if(o&&o.type!=="header")return i}return null}};la.type="section";let Ra=la;class Wa{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=r?.firstChildKey!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);return n?.key??null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,n){this.addNode(e);let r=n.getChildren(e.key);for(let i of r)this.addDescendants(i,n)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(e);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}filter(e){let n=new this.constructor,[r,i]=Ua(this,n,this.firstKey,e);return n?.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Ua(t,e,n,r){if(n==null)return[null,null];let i=null,o=null,l=t.getItem(n);for(;l!=null;){let a=l.filter(t,e,r);a!=null&&(a.nextKey=null,o&&(a.prevKey=o.key,o.nextKey=a.key),i==null&&(i=a),e.addNode(a),o=a),l=l.nextKey!=null?t.getItem(l.nextKey):null}if(o&&o.type==="separator"){let a=o.prevKey;e.removeNode(o.key),a!=null?(o=e.getItem(a),o.nextKey=null):o=null}return[i?.key??null,o?.key??null]}class Ga{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index-1,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}}class nn extends Ga{constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof nn?this.parentNode.level+(this.parentNode.node?.type==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let e=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof nn?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=e?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&e)){let r=(n.colIndex??n.index)+(n.colSpan??1);if(e.node!=null&&r!==e.node.colIndex){let i=e.getMutableNode();i.colIndex=r}}}setProps(e,n,r,i,o){let l,{value:a,textValue:u,id:d,...c}=e;if(this.node==null?(l=new r(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),c.ref=n,l.props=c,l.rendered=i,l.render=o,l.value=a,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=u||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",d!=null&&d!==l.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(l.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let r=n==="none";if(e.isHidden!==r){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let i=e.previousVisibleSibling,o=e.nextVisibleSibling;i&&e.ownerDocument.markDirty(i),o&&e.ownerDocument.markDirty(o),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class _b extends Ga{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new nn(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof nn&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof nn?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),this.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}function Gi(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=s.useMemo(()=>process.env.NODE_ENV!=="production"&&typeof e=="function"?e.toString():void 0,[e]),a=s.useMemo(()=>new WeakMap,[...o,l]);return s.useMemo(()=>{if(n&&typeof e=="function"){let u=[];for(let d of n){let c=Vb(d)?d:null,f=c?a.get(c):null;if(!f){f=e(d);let p=f.props.id??d?.key??d?.id;r!=null&&f.props.id==null&&p!=null&&(p=r+":"+p);let h=p??u.length;f=s.cloneElement(f,i?{key:h,id:p,value:d}:{key:h}),c&&a.set(c,f)}u.push(f)}return u}else if(typeof e!="function")return e},[e,n,a,r,i])}function Vb(t){switch(typeof t){case"object":return t!=null;case"function":case"symbol":return!0;default:return!1}}let wt=new Map,Yi=new Set;function Ya(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{let i=z(r);if(!t(r)||!i)return;let o=wt.get(i);o||(o=new Set,wt.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=z(r);if(!t(r)||!i)return;let o=wt.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),wt.delete(i)),wt.size===0)){for(let l of Yi)l();Yi.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Ya():document.addEventListener("DOMContentLoaded",Ya));function Hb(){for(const[t]of wt)"isConnected"in t&&!t.isConnected&&wt.delete(t)}function Xa(t){requestAnimationFrame(()=>{Hb(),wt.size===0?t():Yi.add(t)})}function Se(t){if(!t.isConnected)return;const e=le(t);if(En()==="virtual"){let n=pe(e);Xa(()=>{const r=pe(e);(r===n||r===e.body)&&t.isConnected&&Ue(t)})}else Ue(t)}function Xi(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=s.useCallback(u=>{if(z(u)===u.currentTarget)return r&&r(u),i&&i(!1),!0},[r,i]),l=Da(o),a=s.useCallback(u=>{let d=z(u);const c=le(d),f=c?pe(c):pe();d===u.currentTarget&&d===f&&(n&&n(u),i&&i(!0),l(u))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}function Br(t){if(t)return e=>{let n=!0,r={...e,preventDefault(){e.preventDefault()},isDefaultPrevented(){return e.isDefaultPrevented()},stopPropagation(){n&&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."):n=!0},continuePropagation(){n=!1,typeof e.continuePropagation=="function"&&e.continuePropagation()},isPropagationStopped(){return n}};t(r),n&&!(typeof e.isPropagationStopped=="function"&&e.isPropagationStopped())&&e.stopPropagation()}}const jb=new Set(["shift","alt","control","meta","mod"]),Rb=["Alt","Control","Meta","Shift"];function Wb(t){let e=new Set;return t.alt&&e.add("Alt"),t.shift&&e.add("Shift"),t.ctrl&&e.add("Control"),t.meta&&e.add("Meta"),t.mod&&e.add(_e()?"Meta":"Control"),e}function Ub(t){let e=new Set;return t.altKey&&e.add("Alt"),t.ctrlKey&&e.add("Control"),t.metaKey&&e.add("Meta"),t.shiftKey&&e.add("Shift"),e}function qa(t){return Rb.filter(e=>t.has(e))}function Gb(t){let e=t.split("+").reduce((n,r)=>{let i=r.toLowerCase();return jb.has(i)?i==="shift"?n.shift=!0:i==="alt"?n.alt=!0:i==="control"?n.ctrl=!0:i==="meta"?n.meta=!0:i==="mod"&&(n.mod=!0):n.key=r,n},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(e.key==="")throw new Error(`Invalid keyboard shortcut: "${t}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return e}function Za(t){return t.toLowerCase()}const Yb={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function Xb(t){let e=Za(t),n=Yb[e];return n??e}function qb(t){let e=qa(Wb(t)),n=Xb(t.key);return e.length>0?`${e.join("+")}+${n}`:n}function Zb(t){let e=qa(Ub(t)),n=Za(t.key);return(e.length>0?`${e.join("+")}+`:"")+n}function Jb(t){let e=new Map;for(let[n,r]of Object.entries(t)){let i=Gb(n);e.set(qb(i),r)}return n=>{let r=Zb(n),i=e.get(r),o=i?.(n);o===void 0&&i!==void 0?o={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof o=="boolean"&&(o={shouldContinuePropagation:!o,shouldPreventDefault:o}),o?.shouldPreventDefault&&n.preventDefault(),(!i||o?.shouldContinuePropagation)&&n.continuePropagation()}}function Ge(t){let{shortcuts:e,allowRepeats:n=!1,allowComposing:r=!1}=t,i,o;if(e){let l=Jb(e),a=Br(d=>{if(!te(d.currentTarget,z(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!n||d.nativeEvent?.isComposing&&!r){d.continuePropagation();return}l(d)}),u=Br(d=>{if(!te(d.currentTarget,z(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!n||d.nativeEvent?.isComposing&&!r){d.continuePropagation();return}d.continuePropagation()});i=t.onKeyDown?We(t.onKeyDown,a):a,o=t.onKeyUp?We(t.onKeyUp,u):u}else i=Br(t.onKeyDown),o=Br(t.onKeyUp);return{keyboardProps:t.isDisabled?{}:{onKeyDown:i,onKeyUp:o}}}function qi(t,e){de(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}let Fr=s.createContext(null);function Qb(t){let e=s.useContext(Fr)||{};qi(e,t);let{ref:n,...r}=e;return r}function rn(t,e){let{focusProps:n}=Xi(t),{keyboardProps:r}=Ge(t),i=G(n,r),o=Qb(e),l=t.isDisabled?{}:o,a=s.useRef(t.autoFocus);s.useEffect(()=>{a.current&&e.current&&Se(e.current),a.current=!1},[e]);let u=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(u=void 0),{focusableProps:G({...i,tabIndex:u},l)}}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const Mr=s.createContext(!1);function e3(t){if(s.useContext(Mr))return s.createElement(s.Fragment,null,t.children);let n=s.createElement(Mr.Provider,{value:!0},t.children);return s.createElement("template",null,n)}function Nn(t){let e=(n,r)=>s.useContext(Mr)?null:t(n,r);return e.displayName=t.displayName||t.name,s.forwardRef(e)}function Ja(){return s.useContext(Mr)}var Kr={exports:{}},Zi={};var Qa;function t3(){if(Qa)return Zi;Qa=1;var t=s;function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function a(f,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),b=m[0].inst,y=m[1];return o(function(){b.value=h,b.getSnapshot=p,u(b)&&y({inst:b})},[f,h,p]),i(function(){return u(b)&&y({inst:b}),f(function(){u(b)&&y({inst:b})})},[f]),l(h),h}function u(f){var p=f.getSnapshot;f=f.value;try{var h=p();return!n(f,h)}catch{return!0}}function d(f,p){return p()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:a;return Zi.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:c,Zi}var Ji={};var es;function n3(){return es||(es=1,process.env.NODE_ENV!=="production"&&(function(){function t(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function e(h,m){c||i.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=m();if(!f){var y=m();o(b,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=l({inst:{value:b,getSnapshot:m}});var $=y[0].inst,x=y[1];return u(function(){$.value=b,$.getSnapshot=m,n($)&&x({inst:$})},[h,b,m]),a(function(){return n($)&&x({inst:$}),h(function(){n($)&&x({inst:$})})},[h]),d(b),b}function n(h){var m=h.getSnapshot;h=h.value;try{var b=m();return!o(h,b)}catch{return!0}}function r(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=s,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,u=i.useLayoutEffect,d=i.useDebugValue,c=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Ji.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ji}var ts;function r3(){return ts||(ts=1,process.env.NODE_ENV==="production"?Kr.exports=t3():Kr.exports=n3()),Kr.exports}var i3=r3();const ns=s.createContext(!1),Tn=s.createContext(null);function Lt(t){if(s.useContext(Tn))return t.content;let{collection:n,document:r}=s3(t.createCollection);return s.createElement(s.Fragment,null,s.createElement(e3,null,s.createElement(Tn.Provider,{value:r},t.content)),s.createElement(o3,{render:t.children,collection:n}))}function o3({collection:t,render:e}){return e(t)}function l3(t,e,n){let r=xt(),i=s.useRef(r);i.current=r;let o=s.useCallback(()=>i.current?n():e(),[e,n]);return i3.useSyncExternalStore(t,o)}const a3=typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore:l3;function s3(t){let[e]=s.useState(()=>new _b(t?.()||new Wa)),n=s.useCallback(l=>e.subscribe(l),[e]),r=s.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=s.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:a3(n,r,i),document:e}}const Qi=s.createContext(null);function u3(t){var n;return n=class extends He{},n.type=t,n}function rs(t,e,n,r,i,o){typeof t=="string"&&(t=u3(t));let l=s.useCallback(u=>{u?.setProps(e,n,t,r,o)},[e,n,r,o,t]),a=s.useContext(Qi);if(a){let u=a.ownerDocument.nodesByProps.get(e);return u||(u=a.ownerDocument.createElement(t.type),u.setProps(e,n,t,r,o),a.appendChild(u),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,u)),i?s.createElement(Qi.Provider,{value:u},i):null}return s.createElement(t.type,{ref:l},i)}function ot(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=s.forwardRef((i,o)=>{let l=s.useContext(Fr);if(!s.useContext(ns)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return rs(t,i,o,"children"in i?i.children:null,null,u=>s.createElement(Fr.Provider,{value:l},s.createElement(n,{node:u})))});return r.displayName=e.name,r}function Lr(t,e,n=is){let r=({node:o})=>e(o.props,o.props.ref,o),i=s.forwardRef((o,l)=>{let a=n(o);return rs(t,o,l,null,a,u=>s.createElement(r,{node:u}))??s.createElement(s.Fragment,null)});return i.displayName=e.name,i}function is(t){return Gi({...t,addIdAndValue:!0})}const os=s.createContext(null);function Ot(t){let e=s.useContext(os),n=(e?.dependencies||[]).concat(t.dependencies),r=t.idScope??e?.idScope,i=is({...t,idScope:r,dependencies:n});return s.useContext(Tn)&&(i=s.createElement(d3,null,i)),e=s.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),s.createElement(os.Provider,{value:e},i)}function d3({children:t}){let e=s.useContext(Tn),n=s.useMemo(()=>s.createElement(Tn.Provider,{value:null},s.createElement(ns.Provider,{value:!0},t)),[t]);return xt()?s.createElement(Qi.Provider,{value:e},n):vt.createPortal(n,e)}const ls=s.createContext(null),eo={CollectionRoot({collection:t,renderDropIndicator:e}){return as(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return as(t,e,n)}};function as(t,e,n){return Gi({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){if(r.type==="content")return s.createElement(s.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:s.createElement(s.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,c3(t,r,n))}})}function c3(t,e,n){let r=e.key,i=t.getKeyAfter(r),o=i!=null?t.getItem(i):null;for(;o!=null&&o.type!=="item";)i=t.getKeyAfter(o.key),o=i!=null?t.getItem(i):null;let l=e.nextKey!=null?t.getItem(e.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?t.getItem(l.nextKey):null;let a=[];if(l==null){let u=e;for(;u?.type==="item"&&(!o||u.parentKey!==o.parentKey&&o.level<u.level);){let d=n({type:"item",key:u.key,dropPosition:"after"});s.isValidElement(d)&&a.push(s.cloneElement(d,{key:`${u.key}-after`})),u=u.parentKey!=null?t.getItem(u.parentKey):null}}return a}const me=s.createContext(eo);function ss(t){return s.useMemo(()=>t!=null?new Set([t]):null,[t])}const f3=new Set(["id"]),p3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),h3=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),m3=new Set(["dir","lang","hidden","inert","translate"]),us=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"]),g3=/^(data-.*)$/;function re(t,e={}){let{labelable:n,isLink:r,global:i,events:o=i,propNames:l}=e,a={};for(const u in t)Object.prototype.hasOwnProperty.call(t,u)&&(f3.has(u)||n&&p3.has(u)||r&&h3.has(u)||i&&m3.has(u)||o&&(us.has(u)||u.endsWith("Capture")&&us.has(u.slice(0,-7)))||l?.has(u)||g3.test(u))&&(a[u]=t[u]);return a}let on="default",to="",Or=new WeakMap;function no(t){if(ft()&&rt()){if(on==="default"){const e=le(t);to=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}on="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Or.set(t,t.style[e]),t.style[e]="none"}}function zr(t){if(ft()&&rt()){if(on!=="disabled")return;on="restoring",setTimeout(()=>{Xa(()=>{if(on==="restoring"){const e=le(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=to||""),to="",on="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Or.has(t)){let e=Or.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Or.delete(t)}}function ds(t){return t?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let ro=new WeakMap;function cs(t){let e=t??(typeof document<"u"?document:void 0);if(!e)return ds(e);if(ro.has(e))return ro.get(e);let n=e.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof $e(n).HTMLMetaElement&&(n.nonce||n.content)||ds(e)||void 0;return r!==void 0&&ro.set(e,r),r}const An=s.createContext({register:()=>{}});An.displayName="PressResponderContext";function In(){let t=s.useRef(new Map),e=s.useCallback((i,o,l,a)=>{let u=a?.once?(...d)=>{t.current.delete(l),l(...d)}:l;t.current.set(l,{type:o,eventTarget:i,fn:u,options:a}),i.addEventListener(o,u,a)},[]),n=s.useCallback((i,o,l,a)=>{let u=t.current.get(l)?.fn||l;i.removeEventListener(o,u,a),t.current.delete(l)},[]),r=s.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return s.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function b3(t){let e=s.useContext(An);if(e){let{register:n,ref:r,...i}=e;t=G(i,t),n()}return qi(e,t.ref),t}class _r{#e;constructor(e,n,r,i){this.#e=!0;const l=(i?.target??r.currentTarget)?.getBoundingClientRect();let a,u=0,d,c=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,c=r.clientY),l&&(d!=null&&c!=null?(a=d-l.left,u=c-l.top):(a=l.width/2,u=l.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=a,this.y=u,this.key=r.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const fs=Symbol("linkClicked"),ps="react-aria-pressable-style",hs="data-react-aria-pressable";function zt(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:u,preventFocusOnPress:d,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:f,ref:p,...h}=b3(t),[m,b]=s.useState(!1),y=s.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:$,removeAllGlobalListeners:x}=In(),v=s.useCallback((E,F)=>{let Z=y.current;if(a||Z.didFirePressStart)return!1;let M=!0;if(Z.isTriggeringEvent=!0,r){let Y=new _r("pressstart",F,E);r(Y),M=Y.shouldStopPropagation}return n&&n(!0),Z.isTriggeringEvent=!1,Z.didFirePressStart=!0,b(!0),M},[a,r,n]),C=s.useCallback((E,F,Z=!0)=>{let M=y.current;if(!M.didFirePressStart)return!1;M.didFirePressStart=!1,M.isTriggeringEvent=!0;let Y=!0;if(i){let S=new _r("pressend",F,E);i(S),Y=S.shouldStopPropagation}if(n&&n(!1),b(!1),e&&Z&&!a){let S=new _r("press",F,E);e(S),Y&&=S.shouldStopPropagation}return M.isTriggeringEvent=!1,Y},[a,i,n,e]),k=De(C),P=s.useCallback((E,F)=>{let Z=y.current;if(a)return!1;if(o){Z.isTriggeringEvent=!0;let M=new _r("pressup",F,E);return o(M),Z.isTriggeringEvent=!1,M.shouldStopPropagation}return!0},[a,o]),N=De(P),w=s.useCallback(E=>{let F=y.current;if(F.isPressed&&F.target){F.didFirePressStart&&F.pointerType!=null&&C(_t(F.target,E),F.pointerType,!1),F.isPressed=!1,F.isOverTarget=!1,F.activePointerId=null,F.pointerType=null,x(),f||zr(F.target);for(let Z of F.disposables)Z();F.disposables=[]}},[f,x,C]),D=De(w);s.useEffect(()=>{a&&y.current.isPressed&&D({currentTarget:y.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[a]);let A=s.useCallback(E=>{c&&w(E)},[c,w]),L=s.useCallback(E=>{a||l?.(E)},[a,l]),_=s.useCallback((E,F)=>{if(!a&&l){let Z=new MouseEvent("click",E);ka(Z,F),l(_i(Z))}},[a,l]),R=s.useMemo(()=>{let E=y.current,F={onKeyDown(M){if(oo(M.nativeEvent,M.currentTarget)&&te(M.currentTarget,z(M))){bs(z(M),M.key)&&M.preventDefault();let Y=!0;!E.isPressed&&!M.repeat&&(E.target=M.currentTarget,E.isPressed=!0,E.pointerType="keyboard",Y=v(M,"keyboard"));let S=M.currentTarget,I=U=>{oo(U,S)&&!U.repeat&&te(S,z(U))&&E.target&&N(_t(E.target,U),"keyboard")};$(le(M.currentTarget),"keyup",We(I,Z),!0),Y&&M.stopPropagation(),M.metaKey&&_e()&&E.metaKeyEvents?.set(M.key,M.nativeEvent)}else M.key==="Meta"&&(E.metaKeyEvents=new Map)},onClick(M){if(!(M&&!te(M.currentTarget,z(M)))&&M&&M.button===0&&!E.isTriggeringEvent&&!pt.isOpening){let Y=!0;if(a&&M.preventDefault(),!E.ignoreEmulatedMouseEvents&&!E.isPressed&&(E.pointerType==="virtual"||ji(M.nativeEvent))){let S=v(M,"virtual"),I=N(M,"virtual"),U=k(M,"virtual");L(M),Y=S&&I&&U}else if(E.isPressed&&E.pointerType!=="keyboard"){let S=E.pointerType||M.nativeEvent.pointerType||"virtual",I=N(_t(M.currentTarget,M),S),U=k(_t(M.currentTarget,M),S,!0);Y=I&&U,E.isOverTarget=!1,L(M),D(M)}E.ignoreEmulatedMouseEvents=!1,Y&&M.stopPropagation()}}},Z=M=>{if(E.isPressed&&E.target&&oo(M,E.target)){bs(z(M),M.key)&&M.preventDefault();let Y=z(M),S=te(E.target,Y);k(_t(E.target,M),"keyboard",S),S&&_(M,E.target),x(),M.key!=="Enter"&&io(E.target)&&te(E.target,Y)&&!M[fs]&&(M[fs]=!0,pt(E.target,M,!1)),E.isPressed=!1,E.metaKeyEvents?.delete(M.key)}else if(M.key==="Meta"&&E.metaKeyEvents?.size){let Y=E.metaKeyEvents;E.metaKeyEvents=void 0;for(let S of Y.values())E.target?.dispatchEvent(new KeyboardEvent("keyup",S))}};if(typeof PointerEvent<"u"){F.onPointerDown=S=>{if(S.button!==0||!te(S.currentTarget,z(S)))return;if(fb(S.nativeEvent)){E.pointerType="virtual";return}E.pointerType=S.pointerType;let I=!0;if(!E.isPressed){E.isPressed=!0,E.isOverTarget=!0,E.activePointerId=S.pointerId,E.target=S.currentTarget,f||no(E.target),I=v(S,E.pointerType);let U=z(S);"releasePointerCapture"in U&&("hasPointerCapture"in U?U.hasPointerCapture(S.pointerId)&&U.releasePointerCapture(S.pointerId):U.releasePointerCapture(S.pointerId)),$(le(S.currentTarget),"pointerup",M,!1),$(le(S.currentTarget),"pointercancel",Y,!1)}I&&S.stopPropagation()},F.onMouseDown=S=>{if(te(S.currentTarget,z(S))&&S.button===0){if(d){let I=Na(S.target);I&&E.disposables.push(I)}S.stopPropagation()}},F.onPointerUp=S=>{!te(S.currentTarget,z(S))||E.pointerType==="virtual"||S.button===0&&!E.isPressed&&N(S,E.pointerType||S.pointerType)},F.onPointerEnter=S=>{S.pointerId===E.activePointerId&&E.target&&!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,v(_t(E.target,S),E.pointerType))},F.onPointerLeave=S=>{S.pointerId===E.activePointerId&&E.target&&E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,k(_t(E.target,S),E.pointerType,!1),A(S))};let M=S=>{if(S.pointerId===E.activePointerId&&E.isPressed&&S.button===0&&E.target){if(te(E.target,z(S))&&E.pointerType!=null){let I=!1,U=setTimeout(()=>{E.isPressed&&E.target instanceof HTMLElement&&(I?D(S):(Ue(E.target),E.target.click()))},80);$(S.currentTarget,"click",()=>I=!0,!0),E.disposables.push(()=>clearTimeout(U))}else D(S);E.isOverTarget=!1}},Y=S=>{D(S)};F.onDragStart=S=>{te(S.currentTarget,z(S))&&D(S)}}else if(process.env.NODE_ENV==="test"){F.onMouseDown=S=>{if(S.button!==0||!te(S.currentTarget,z(S)))return;if(E.ignoreEmulatedMouseEvents){S.stopPropagation();return}if(E.isPressed=!0,E.isOverTarget=!0,E.target=S.currentTarget,E.pointerType=ji(S.nativeEvent)?"virtual":"mouse",vt.flushSync(()=>v(S,E.pointerType))&&S.stopPropagation(),d){let U=Na(S.target);U&&E.disposables.push(U)}$(le(S.currentTarget),"mouseup",M,!1)},F.onMouseEnter=S=>{if(!te(S.currentTarget,z(S)))return;let I=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!0,I=v(S,E.pointerType)),I&&S.stopPropagation()},F.onMouseLeave=S=>{if(!te(S.currentTarget,z(S)))return;let I=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!1,I=k(S,E.pointerType,!1),A(S)),I&&S.stopPropagation()},F.onMouseUp=S=>{te(S.currentTarget,z(S))&&!E.ignoreEmulatedMouseEvents&&S.button===0&&!E.isPressed&&N(S,E.pointerType||"mouse")};let M=S=>{if(S.button===0){if(E.ignoreEmulatedMouseEvents){E.ignoreEmulatedMouseEvents=!1;return}E.target&&te(E.target,z(S))&&E.pointerType!=null||D(S),E.isOverTarget=!1}};F.onTouchStart=S=>{if(!te(S.currentTarget,z(S)))return;let I=y3(S.nativeEvent);if(!I)return;E.activePointerId=I.identifier,E.ignoreEmulatedMouseEvents=!0,E.isOverTarget=!0,E.isPressed=!0,E.target=S.currentTarget,E.pointerType="touch",f||no(E.target),v(St(E.target,S),E.pointerType)&&S.stopPropagation(),$($e(S.currentTarget),"scroll",Y,!0)},F.onTouchMove=S=>{if(!te(S.currentTarget,z(S)))return;if(!E.isPressed){S.stopPropagation();return}let I=ms(S.nativeEvent,E.activePointerId),U=!0;I&&gs(I,S.currentTarget)?!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,U=v(St(E.target,S),E.pointerType)):E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,U=k(St(E.target,S),E.pointerType,!1),A(St(E.target,S))),U&&S.stopPropagation()},F.onTouchEnd=S=>{if(!te(S.currentTarget,z(S)))return;if(!E.isPressed){S.stopPropagation();return}let I=ms(S.nativeEvent,E.activePointerId),U=!0;I&&gs(I,S.currentTarget)&&E.pointerType!=null?(N(St(E.target,S),E.pointerType),U=k(St(E.target,S),E.pointerType),_(S.nativeEvent,E.target)):E.isOverTarget&&E.pointerType!=null&&(U=k(St(E.target,S),E.pointerType,!1)),U&&S.stopPropagation(),E.isPressed=!1,E.activePointerId=null,E.isOverTarget=!1,E.ignoreEmulatedMouseEvents=!0,E.target&&!f&&zr(E.target),x()},F.onTouchCancel=S=>{te(S.currentTarget,z(S))&&(S.stopPropagation(),E.isPressed&&D(St(E.target,S)))};let Y=S=>{E.isPressed&&te(z(S),E.target)&&D({currentTarget:E.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};F.onDragStart=S=>{te(S.currentTarget,z(S))&&D(S)}}return F},[$,a,d,x,f,A,v,L,_]);return s.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const E=le(p.current);if(!E||!E.head||E.getElementById(ps))return;const F=E.createElement("style");F.id=ps;let Z=cs(E);Z&&(F.nonce=Z),F.textContent=`
|
|
1
|
+
(function(W,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],u):(W=typeof globalThis<"u"?globalThis:W||self,u(W.CekatUI={},W.React$1,W.$3wX5A$reactdom))})(this,(function(W,u,Rt){"use strict";function E$(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const b=E$(u);var w$={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const _e=(e,t,n,r)=>{const i=u.forwardRef(({color:a="currentColor",size:l=24,stroke:o=2,title:s,className:d,children:c,...f},m)=>u.createElement("svg",{ref:m,...w$[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${t}`,d].join(" "),strokeWidth:o,stroke:a,...f},[s&&u.createElement("title",{key:"svg-title"},s),...r.map(([h,p])=>u.createElement(h,p)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i};const gi=_e("outline","alert-circle","AlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);const S$=_e("outline","alert-triangle","AlertTriangle",[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);const P$=_e("outline","arrow-down","ArrowDown",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]]);const k$=_e("outline","arrow-up","ArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]]);const B$=_e("outline","arrows-sort","ArrowsSort",[["path",{d:"M3 9l4 -4l4 4m-4 -4v14",key:"svg-0"}],["path",{d:"M21 15l-4 4l-4 -4m4 4v-14",key:"svg-1"}]]);const yi=_e("outline","check","Check",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);const $i=_e("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);const N$=_e("outline","chevron-left","ChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]]);const Bs=_e("outline","chevron-right","ChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);const nl=_e("outline","circle-check","CircleCheck",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 12l2 2l4 -4",key:"svg-1"}]]);const A$=_e("outline","cloud-upload","CloudUpload",[["path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1",key:"svg-0"}],["path",{d:"M9 15l3 -3l3 3",key:"svg-1"}],["path",{d:"M12 12l0 9",key:"svg-2"}]]);const dr=_e("outline","info-circle","InfoCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]]);const Ns=_e("outline","loader-2","Loader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]]);const F$=_e("outline","search","Search",[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);const T$=_e("outline","slash","Slash",[["path",{d:"M17 5l-10 14",key:"svg-0"}]]);const cr=_e("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function at(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const fe=typeof document<"u"?u.useLayoutEffect:()=>{},vi={prefix:String(Math.round(Math.random()*1e10)),current:0},As=u.createContext(vi),I$=u.createContext(!1);let M$=!!(typeof window<"u"&&window.document&&window.document.createElement),rl=new WeakMap;function K$(e=!1){let t=u.useContext(As),n=u.useRef(null);if(n.current===null&&!e){let r=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(r){let i=rl.get(r);i==null?rl.set(r,{id:t.current,state:r.memoizedState}):r.memoizedState!==i.state&&(t.current=i.id,rl.delete(r))}n.current=++t.current}return n.current}function L$(e){let t=u.useContext(As);t===vi&&!M$&&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 n=K$(!!e),r=t===vi&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function O$(e){let t=u.useId(),[n]=u.useState(jt()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${vi.prefix}`;return e||`${r}-${t}`}const z$=typeof u.useId=="function"?O$:L$;function V$(){return!1}function _$(){return!0}function R$(e){return()=>{}}function jt(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(R$,V$,_$):u.useContext(I$)}function j$(e){let[t,n]=u.useState(e),r=u.useRef(t),i=u.useRef(null),a=u.useRef(()=>{if(!i.current)return;let o=i.current.next();if(o.done){i.current=null;return}r.current===o.value?a.current():n(o.value)});fe(()=>{r.current=t,i.current&&a.current()});let l=u.useCallback(o=>{i.current=o(r.current),a.current()},[a]);return[t,l]}let H$=!!(typeof window<"u"&&window.document&&window.document.createElement),Tn=new Map,In;typeof FinalizationRegistry<"u"&&(In=new FinalizationRegistry(e=>{Tn.delete(e)}));let il=new WeakMap;function Ee(e){let[t,n]=u.useState(e),r=u.useRef(null),i=z$(t),a=u.useRef(null),l=il.get(a);if(In&&l!==i&&(l!=null&&In.unregister(a),In.register(a,i,a),il.set(a,i)),H$){const o=Tn.get(i);o&&!o.includes(r)?o.push(r):Tn.set(i,[r])}return fe(()=>{let o=i;return()=>{In&&(In.unregister(a),il.delete(a)),Tn.delete(o)}},[i]),u.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function U$(e,t){if(e===t)return e;let n=Tn.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Tn.get(t);return r?(r.forEach(i=>i.current=e),e):t}function mt(e=[]){let t=Ee(),[n,r]=j$(t),i=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return fe(i,[t,i,...e]),n}function fr(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const a=Fs(i,t);return n||=typeof a=="function",a});if(n)return()=>{r.forEach((i,a)=>{typeof i=="function"?i():Fs(e[a],null)})}}}function Fs(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ts(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ts(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ee(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ts(e))&&(r&&(r+=" "),r+=t);return r}function X(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],l=r[i];typeof a=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=at(a,l):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof l=="string"?t[i]=ee(a,l):i==="id"&&a&&l?t.id=U$(a,l):i==="ref"&&a&&l?t.ref=fr(a,l):t[i]=l!==void 0?l:a}}return t}function Te(e){const t=u.useRef(null),n=u.useRef(void 0),r=u.useCallback(i=>{if(typeof e=="function"){const a=e,l=a(i);return()=>{typeof l=="function"?l():a(null)}}else if(e)return e.current=i,()=>{e.current=null}},[e]);return u.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}const Bt=Symbol("default");function Pe({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function ue(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:l,values:o,render:s}=e;return u.useMemo(()=>{let d,c,f;return typeof t=="function"?d=t({...o,defaultClassName:i}):d=t,typeof n=="function"?c=n({...o,defaultStyle:l||{}}):c=n,typeof r=="function"?f=r({...o,defaultChildren:a}):r==null?f=a:f=r,{className:d??i,style:c||l?{...l,...c}:void 0,children:f??a,"data-rac":"",render:s?m=>s(m,o):void 0}},[t,n,r,i,a,l,o,s])}function al(e,t){return n=>t(typeof e=="function"?e(n):e,n)}function qe(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||Bt;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),a=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${a} Valid slot names are ${i}.`)}return n.slots[r]}return n}function pe(e,t,n){let r=qe(n,e.slot)||{},{ref:i,...a}=r,l=Te(u.useMemo(()=>fr(t,i),[t,i])),o=X(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&(typeof a.style=="function"||typeof e.style=="function"?o.style=s=>{let d=typeof a.style=="function"?a.style(s):a.style,c={...s.defaultStyle,...d},f=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...f}}:o.style={...a.style,...e.style}),[o,l]}function un(e=!0){let[t,n]=u.useState(e),r=u.useRef(!1),i=u.useCallback(a=>{r.current=!0,n(!!a)},[]);return fe(()=>{r.current||n(!1)},[]),[i,t]}function mr(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}function W$(e,t,n){let{render:r,...i}=t,a=u.useRef(null),l=u.useMemo(()=>fr(n,a),[n,a]);fe(()=>{process.env.NODE_ENV!=="production"&&r&&(a.current?a.current.localName!==e&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, got <${a.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[e,r]);let o={...i,ref:l};return r?r(o,void 0):u.createElement(e,o)}const Is={},re=new Proxy({},{get(e,t){if(typeof t!="string")return;let n=Is[t];return n||(n=u.forwardRef(W$.bind(null,t)),Is[t]=n),n}}),G$="react-aria-clear-focus",Z$="react-aria-focus",se=e=>Y$(e)?e.document:q$(e)?e:e?.ownerDocument??(typeof document<"u"?document:void 0),xe=e=>se(e)?.defaultView??(typeof window<"u"?window:void 0);function Ms(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Y$(e){return typeof e=="object"&&e!=null&&"window"in e&&e.window===e}function q$(e){return Ms(e)&&e.nodeType===9}function ll(e){return Ms(e)&&e.nodeType===11&&"host"in e}function X$(e,t,n,r){if(n==null||e==null)return()=>{};let i=Array.isArray(e)?e:[e];for(let a of i)a.addEventListener(t,n,r);return()=>{for(let a of i)a.removeEventListener(t,n,r)}}let J$=!1;function ht(){return J$}function ae(e,t){if(!ht())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;typeof n.assignedElements!="function"&&n.assignedSlot?.parentNode?n=n.assignedSlot.parentNode:ll(n)?n=n.host:n=n.parentNode}return!1}const ce=(e=document)=>{if(!ht())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function G(e){if(ht()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function Q$(e,t){if(t===null)return[];t=t??xe(e);let n=[t];if(!ht()||!e||e===t)return n;let r="getRootNode"in t?t.getRootNode():null,i=e.getRootNode()??null;for(;ll(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function Ht(e){if(!e)return!1;let t=e.getRootNode(),n=xe(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function Ks(e){let t=t5(se(e));t!==e&&(t&&e5(t,e),e&&ol(e,t))}function e5(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function ol(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function t5(e){let t=ce(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function Xe(e){if(n5())e.focus({preventScroll:!0});else{let t=r5(e);e.focus(),i5(t)}}let xi=null;function n5(){if(xi==null){xi=!1;try{document.createElement("div").focus({get preventScroll(){return xi=!0,!0}})}catch{}}return xi}function r5(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function i5(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}const a5=typeof Element<"u"&&"checkVisibility"in Element.prototype;function l5(e){const t=xe(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=xe(e);let{display:l,visibility:o}=a(e);i=l!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function o5(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 ul(e,t){return a5?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&l5(e)&&o5(e,t)&&(!e.parentElement||ul(e.parentElement,e))}const sl=["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"],u5=sl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";sl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const s5=sl.join(':not([hidden]):not([tabindex="-1"]),');function Ls(e,t){return e.matches(u5)&&!Os(e)&&(t?.skipVisibilityCheck||ul(e))}function dl(e){return e.matches(s5)&&ul(e)&&!Os(e)}function Os(e){let t=e;for(;t!=null;){if(t instanceof xe(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function cl(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function zs(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Vs(e){let t=u.useRef({isFocused:!1,observer:null});return fe(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),u.useCallback(n=>{let r=G(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r,a=l=>{if(t.current.isFocused=!1,i.disabled){let o=cl(l);e?.(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){t.current.observer?.disconnect();let l=i===ce()?null:ce();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Ci=!1;function _s(e){for(;e&&!Ls(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=xe(e),n=t.document.activeElement;if(!n||n===e)return;Ci=!0;let r=!1,i=c=>{(G(c)===n||r)&&c.stopImmediatePropagation()},a=c=>{(G(c)===n||r)&&(c.stopImmediatePropagation(),!e&&!r&&(r=!0,Xe(n),s()))},l=c=>{(G(c)===e||r)&&c.stopImmediatePropagation()},o=c=>{(G(c)===e||r)&&(c.stopImmediatePropagation(),r||(r=!0,Xe(n),s()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",l,!0),Ci=!1,r=!1},d=requestAnimationFrame(s);return s}function Di(e){if(typeof window>"u"||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function fl(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function pt(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Je=pt(function(){return fl(/^Mac/i)}),d5=pt(function(){return fl(/^iPhone/i)}),Rs=pt(function(){return fl(/^iPad/i)||Je()&&navigator.maxTouchPoints>1}),bt=pt(function(){return d5()||Rs()}),Ei=pt(function(){return Je()||bt()}),gt=pt(function(){return Di(/AppleWebKit/i)&&(bt()||!ml())});pt(function(){return gt()&&!ml()&&!js()});const ml=pt(function(){return Di(/Chrome|CriOS|CrMo/i)}),Mn=pt(function(){return Di(/Android/i)}),js=pt(function(){return Di(/(Firefox|FxiOS)/i)});function hl(e){return e.pointerType===""&&e.isTrusted?!0:Mn()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function c5(e){return!Mn()&&e.width===0&&e.height===0||Mn()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const f5=u.createContext({isNative:!0,open:p5,useHref:e=>e});function sn(){return u.useContext(f5)}function m5(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Nt(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:l}=t;!gt()&&js()&&window.event?.type?.startsWith("key")&&e.target==="_blank"&&(Je()?r=!0:i=!0);let o=gt()&&Je()&&!Rs()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:a,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Nt.isOpening=n,Xe(e),e.dispatchEvent(o),Nt.isOpening=!1}Nt.isOpening=!1;function h5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function p5(e,t){h5(e,n=>Nt(n,t))}function b5(e){const n=sn().useHref(e.href??"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function wi(e){const n=sn().useHref(e?.href??"");let r={};if(e)for(let i of["href","target","rel","download","ping","referrerPolicy"])i in e&&e[i]!==void 0&&(r[i]=i==="href"?n:e[i]);return r}function Hs(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&m5(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let At=null;const hr=new Set;let pr=new Map,dn=!1,pl=!1;const g5={Tab:!0,Escape:!0};function Si(e,t){for(let n of hr)n(e,t)}function y5(e){return!(e.metaKey||!Je()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Pi(e){dn=!0,!Nt.isOpening&&y5(e)&&(At="keyboard",Si("keyboard",e))}function Qe(e){At="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(dn=!0,Si("pointer",e))}function Us(e){!Nt.isOpening&&hl(e)&&(dn=!0,At="virtual")}function Ws(e){let t=xe(G(e)),n=se(G(e));G(e)===t||G(e)===n||Ci||!e.isTrusted||(!dn&&!pl&&(At="virtual",Si("virtual",e)),dn=!1,pl=!1)}function Gs(){Ci||(dn=!1,pl=!0)}function ki(e){if(typeof window>"u"||typeof document>"u")return;const t=xe(e),n=se(e);if(pr.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){dn=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",Pi,!0),n.addEventListener("keyup",Pi,!0),n.addEventListener("click",Us,!0),t.addEventListener("focus",Ws,!0),t.addEventListener("blur",Gs,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Qe,!0),n.addEventListener("pointermove",Qe,!0),n.addEventListener("pointerup",Qe,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Qe,!0),n.addEventListener("mousemove",Qe,!0),n.addEventListener("mouseup",Qe,!0)),t.addEventListener("beforeunload",()=>{Zs(e)},{once:!0}),pr.set(t,{focus:r})}const Zs=(e,t)=>{const n=xe(e),r=se(e);t&&r.removeEventListener("DOMContentLoaded",t),pr.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:pr.get(n).focus}),r.removeEventListener("keydown",Pi,!0),r.removeEventListener("keyup",Pi,!0),r.removeEventListener("click",Us,!0),n.removeEventListener("focus",Ws,!0),n.removeEventListener("blur",Gs,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Qe,!0),r.removeEventListener("pointermove",Qe,!0),r.removeEventListener("pointerup",Qe,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Qe,!0),r.removeEventListener("mousemove",Qe,!0),r.removeEventListener("mouseup",Qe,!0)),pr.delete(n))};function $5(e){const t=se(e);let n;return t.readyState!=="loading"?ki(e):(n=()=>{ki(e)},t.addEventListener("DOMContentLoaded",n)),()=>Zs(e,n)}typeof document<"u"&&$5();function Ut(){return At!=="pointer"}function Kn(){return At}function Ln(e){At=e,Si(e,null)}function Ys(){ki();let[e,t]=u.useState(At);return u.useEffect(()=>{let n=()=>{t(At)};return hr.add(n),()=>{hr.delete(n)}},[]),jt()?null:e}const v5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function x5(e,t,n){let r=n?G(n):void 0,i=se(r),a=xe(r);const l=typeof a<"u"?a.HTMLInputElement:HTMLInputElement,o=typeof a<"u"?a.HTMLTextAreaElement:HTMLTextAreaElement,s=typeof a<"u"?a.HTMLElement:HTMLElement,d=typeof a<"u"?a.KeyboardEvent:KeyboardEvent;let c=ce(i);return e=e||c instanceof l&&!v5.has(c.type)||c instanceof o||c instanceof s&&c.isContentEditable,!(e&&t==="keyboard"&&n instanceof d&&!g5[n.key])}function C5(e,t,n){ki(),u.useEffect(()=>{if(n?.enabled===!1)return;let r=(i,a)=>{x5(!!n?.isTextInput,i,a)&&e(Ut())};return hr.add(r),()=>{hr.delete(r)}},t)}function br(e){return Je()?e.metaKey:e.ctrlKey}const D5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gr(e){return e instanceof HTMLInputElement&&!D5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const E5=u.useInsertionEffect??fe;function De(e){const t=u.useRef(null);return E5(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function lt(e,t,n,r){let i=De(n),a=n==null;u.useEffect(()=>{if(a||!e.current)return;let l=e.current;return l.addEventListener(t,i,r),()=>{l.removeEventListener(t,i,r)}},[e,t,r,a])}function Ft(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Ee(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}const w5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),S5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function P5(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return w5.has(n.script)}let t=e.split("-")[0];return S5.has(t)}const qs=Symbol.for("react-aria.i18n.locale");function Xs(){let e=typeof window<"u"&&window[qs]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:P5(e)?"rtl":"ltr"}}let bl=Xs(),yr=new Set;function Js(){bl=Xs();for(let e of yr)e(bl)}function k5(){let e=jt(),[t,n]=u.useState(bl);return u.useEffect(()=>(yr.size===0&&window.addEventListener("languagechange",Js),yr.add(n),()=>{yr.delete(n),yr.size===0&&window.removeEventListener("languagechange",Js)}),[]),e?{locale:typeof window<"u"&&window[qs]||"en-US",direction:"ltr"}:t}const B5=u.createContext(null);function be(){let e=k5();return u.useContext(B5)||e}const N5=Symbol.for("react-aria.i18n.locale"),A5=Symbol.for("react-aria.i18n.strings");let Bi;class cn{constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=F5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[N5];if(Bi===void 0){let i=window[A5];if(!i)return null;Bi={};for(let a in i)Bi[a]=new cn({[n]:i[a]},n)}let r=Bi?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}function F5(e,t,n="en-US"){if(t[e])return t[e];let r=T5(e),i=I5(e);if(i&&t[`${r}-${i}`])return t[`${r}-${i}`];if(t[r])return t[r];for(let a in t)if(a.startsWith(r+"-"))return t[a];return t[n]}function T5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}function I5(e){if(Intl.Locale)return new Intl.Locale(e).script}const Qs=new Map,ed=new Map;class td{constructor(t,n){this.locale=t,this.strings=n}format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,l=Qs.get(a);l||(l=new Intl.PluralRules(this.locale,{type:r}),Qs.set(a,l));let o=l.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=ed.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ed.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}}const nd=new WeakMap;function M5(e){let t=nd.get(e);return t||(t=new cn(e),nd.set(e,t)),t}function rd(e,t){return t&&cn.getGlobalDictionaryForPackage(t)||M5(e)}function ke(e,t){let{locale:n}=be(),r=rd(e,t);return u.useMemo(()=>new td(n,r),[n,r])}const K5=typeof document<"u"?u.useInsertionEffect??u.useLayoutEffect:()=>{};function He(e,t,n){let[r,i]=u.useState(e||t),a=u.useRef(r),l=u.useRef(e!==void 0),o=e!==void 0;u.useEffect(()=>{let f=l.current;f!==o&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),l.current=o},[o]);let s=o?e:r;K5(()=>{a.current=s});let[,d]=u.useReducer(()=>({}),{}),c=u.useCallback((f,...m)=>{let h=typeof f=="function"?f(a.current):f;Object.is(a.current,h)||(a.current=h,i(h),d(),n?.(h,...m))},[n]);return[s,c]}const $r=u.createContext(null),vr=u.createContext(null);class et{constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let i=this.clone();return n.addDescendants(i,t),i}}class Ni extends et{filter(t,n,r){let[i,a]=ld(t,n,this.firstChildKey,r),l=this.clone();return l.firstChildKey=i,l.lastChildKey=a,l}}const ps=class ps extends et{};ps.type="header";let gl=ps;const bs=class bs extends et{};bs.type="loader";let Ai=bs;const gs=class gs extends Ni{filter(t,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,t),i}return null}};gs.type="item";let Fi=gs;const ys=class ys extends Ni{filter(t,n,r){let i=super.filter(t,n,r);if(i&&i.lastChildKey!==null){let a=t.getItem(i.lastChildKey);if(a&&a.type!=="header")return i}return null}};ys.type="section";let id=ys;class ad{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),i=r?.firstChildKey!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);return n?.key??null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}getItem(t){return this.keyMap.get(t)??null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let i of r)this.addDescendants(i,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,i]=ld(this,n,this.firstKey,t);return n?.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function ld(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,l=e.getItem(n);for(;l!=null;){let o=l.filter(e,t,r);o!=null&&(o.nextKey=null,a&&(o.prevKey=a.key,a.nextKey=o.key),i==null&&(i=o),t.addNode(o),a=o),l=l.nextKey!=null?e.getItem(l.nextKey):null}if(a&&a.type==="separator"){let o=a.prevKey;t.removeNode(a.key),o!=null?(a=t.getItem(o),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}class od{constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}}class On extends od{constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof On?this.parentNode.level+(this.parentNode.node?.type==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof On?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let r=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&r!==t.node.colIndex){let i=t.getMutableNode();i.colIndex=r}}}setProps(t,n,r,i,a){let l,{value:o,textValue:s,id:d,...c}=t;if(this.node==null?(l=new r(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),c.ref=n,l.props=c,l.rendered=i,l.render=a,l.value=o,t["aria-label"]&&(l["aria-label"]=t["aria-label"]),l.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",d!=null&&d!==l.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(l.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){(t.parentNode?.firstVisibleChild===t||t.parentNode?.lastVisibleChild===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,a=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),a&&t.ownerDocument.markDirty(a),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class L5 extends od{constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}get isConnected(){return!0}createElement(t){return new On(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let t of this.dirtyNodes)t instanceof On&&(!t.isConnected||t.isHidden)?this.removeNode(t):t.updateChildIndices();for(let t of this.dirtyNodes)t instanceof On?(t.isConnected&&!t.isHidden&&(t.updateNode(),this.addNode(t)),t.node&&this.dirtyNodes.delete(t),t.isMutated=!1):this.dirtyNodes.delete(t);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),this.queuedRender&&t(),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}function yl(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,l=u.useMemo(()=>process.env.NODE_ENV!=="production"&&typeof t=="function"?t.toString():void 0,[t]),o=u.useMemo(()=>new WeakMap,[...a,l]);return u.useMemo(()=>{if(n&&typeof t=="function"){let s=[];for(let d of n){let c=O5(d)?d:null,f=c?o.get(c):null;if(!f){f=t(d);let m=f.props.id??d?.key??d?.id;r!=null&&f.props.id==null&&m!=null&&(m=r+":"+m);let h=m??s.length;f=u.cloneElement(f,i?{key:h,id:m,value:d}:{key:h}),c&&o.set(c,f)}s.push(f)}return s}else if(typeof t!="function")return t},[t,n,o,r,i])}function O5(e){switch(typeof e){case"object":return e!=null;case"function":case"symbol":return!0;default:return!1}}let Wt=new Map,$l=new Set;function ud(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let i=G(r);if(!e(r)||!i)return;let a=Wt.get(i);a||(a=new Set,Wt.set(i,a),i.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{let i=G(r);if(!e(r)||!i)return;let a=Wt.get(i);if(a&&(a.delete(r.propertyName),a.size===0&&(i.removeEventListener("transitioncancel",n),Wt.delete(i)),Wt.size===0)){for(let l of $l)l();$l.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ud():document.addEventListener("DOMContentLoaded",ud));function z5(){for(const[e]of Wt)"isConnected"in e&&!e.isConnected&&Wt.delete(e)}function sd(e){requestAnimationFrame(()=>{z5(),Wt.size===0?e():$l.add(e)})}function Ie(e){if(!e.isConnected)return;const t=se(e);if(Kn()==="virtual"){let n=ce(t);sd(()=>{const r=ce(t);(r===n||r===t.body)&&e.isConnected&&Xe(e)})}else Xe(e)}function vl(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=u.useCallback(s=>{if(G(s)===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=Vs(a),o=u.useCallback(s=>{let d=G(s);const c=se(d),f=c?ce(c):ce();d===s.currentTarget&&d===f&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!t&&(n||i||r)?o:void 0,onBlur:!t&&(r||i)?a:void 0}}}function Ti(e){if(e)return t=>{let n=!0,r={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n&&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."):n=!0},continuePropagation(){n=!1,typeof t.continuePropagation=="function"&&t.continuePropagation()},isPropagationStopped(){return n}};e(r),n&&!(typeof t.isPropagationStopped=="function"&&t.isPropagationStopped())&&t.stopPropagation()}}const V5=new Set(["shift","alt","control","meta","mod"]),_5=["Alt","Control","Meta","Shift"];function R5(e){let t=new Set;return e.alt&&t.add("Alt"),e.shift&&t.add("Shift"),e.ctrl&&t.add("Control"),e.meta&&t.add("Meta"),e.mod&&t.add(Je()?"Meta":"Control"),t}function j5(e){let t=new Set;return e.altKey&&t.add("Alt"),e.ctrlKey&&t.add("Control"),e.metaKey&&t.add("Meta"),e.shiftKey&&t.add("Shift"),t}function dd(e){return _5.filter(t=>e.has(t))}function H5(e){let t=e.split("+").reduce((n,r)=>{let i=r.toLowerCase();return V5.has(i)?i==="shift"?n.shift=!0:i==="alt"?n.alt=!0:i==="control"?n.ctrl=!0:i==="meta"?n.meta=!0:i==="mod"&&(n.mod=!0):n.key=r,n},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(t.key==="")throw new Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function cd(e){return e.toLowerCase()}const U5={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function W5(e){let t=cd(e),n=U5[t];return n??t}function G5(e){let t=dd(R5(e)),n=W5(e.key);return t.length>0?`${t.join("+")}+${n}`:n}function Z5(e){let t=dd(j5(e)),n=cd(e.key);return(t.length>0?`${t.join("+")}+`:"")+n}function Y5(e){let t=new Map;for(let[n,r]of Object.entries(e)){let i=H5(n);t.set(G5(i),r)}return n=>{let r=Z5(n),i=t.get(r),a=i?.(n);a===void 0&&i!==void 0?a={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof a=="boolean"&&(a={shouldContinuePropagation:!a,shouldPreventDefault:a}),a?.shouldPreventDefault&&n.preventDefault(),(!i||a?.shouldContinuePropagation)&&n.continuePropagation()}}function Le(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,i,a;if(t){let l=Y5(t),o=Ti(d=>{if(!ae(d.currentTarget,G(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!n||d.nativeEvent?.isComposing&&!r){d.continuePropagation();return}l(d)}),s=Ti(d=>{if(!ae(d.currentTarget,G(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!n||d.nativeEvent?.isComposing&&!r){d.continuePropagation();return}d.continuePropagation()});i=e.onKeyDown?at(e.onKeyDown,o):o,a=e.onKeyUp?at(e.onKeyUp,s):s}else i=Ti(e.onKeyDown),a=Ti(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}function xl(e,t){fe(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let Ii=u.createContext(null);function q5(e){let t=u.useContext(Ii)||{};xl(t,e);let{ref:n,...r}=t;return r}function zn(e,t){let{focusProps:n}=vl(e),{keyboardProps:r}=Le(e),i=X(n,r),a=q5(t),l=e.isDisabled?{}:a,o=u.useRef(e.autoFocus);u.useEffect(()=>{o.current&&t.current&&Ie(t.current),o.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:X({...i,tabIndex:s},l)}}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));const Mi=u.createContext(!1);function X5(e){if(u.useContext(Mi))return u.createElement(u.Fragment,null,e.children);let n=u.createElement(Mi.Provider,{value:!0},e.children);return u.createElement("template",null,n)}function Vn(e){let t=(n,r)=>u.useContext(Mi)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function fd(){return u.useContext(Mi)}var Ki={exports:{}},Cl={};var md;function J5(){if(md)return Cl;md=1;var e=u;function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function o(f,m){var h=m(),p=r({inst:{value:h,getSnapshot:m}}),g=p[0].inst,y=p[1];return a(function(){g.value=h,g.getSnapshot=m,s(g)&&y({inst:g})},[f,h,m]),i(function(){return s(g)&&y({inst:g}),f(function(){s(g)&&y({inst:g})})},[f]),l(h),h}function s(f){var m=f.getSnapshot;f=f.value;try{var h=m();return!n(f,h)}catch{return!0}}function d(f,m){return m()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:o;return Cl.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Cl}var Dl={};var hd;function Q5(){return hd||(hd=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}function t(h,p){c||i.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=p();if(!f){var y=p();a(g,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=l({inst:{value:g,getSnapshot:p}});var $=y[0].inst,x=y[1];return s(function(){$.value=g,$.getSnapshot=p,n($)&&x({inst:$})},[h,g,p]),o(function(){return n($)&&x({inst:$}),h(function(){n($)&&x({inst:$})})},[h]),d(g),g}function n(h){var p=h.getSnapshot;h=h.value;try{var g=p();return!a(h,g)}catch{return!0}}function r(h,p){return p()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=u,a=typeof Object.is=="function"?Object.is:e,l=i.useState,o=i.useEffect,s=i.useLayoutEffect,d=i.useDebugValue,c=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Dl.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Dl}var pd;function ev(){return pd||(pd=1,process.env.NODE_ENV==="production"?Ki.exports=J5():Ki.exports=Q5()),Ki.exports}var tv=ev();const bd=u.createContext(!1),xr=u.createContext(null);function fn(e){if(u.useContext(xr))return e.content;let{collection:n,document:r}=av(e.createCollection);return u.createElement(u.Fragment,null,u.createElement(X5,null,u.createElement(xr.Provider,{value:r},e.content)),u.createElement(nv,{render:e.children,collection:n}))}function nv({collection:e,render:t}){return t(e)}function rv(e,t,n){let r=jt(),i=u.useRef(r);i.current=r;let a=u.useCallback(()=>i.current?n():t(),[t,n]);return tv.useSyncExternalStore(e,a)}const iv=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:rv;function av(e){let[t]=u.useState(()=>new L5(e?.()||new ad)),n=u.useCallback(l=>t.subscribe(l),[t]),r=u.useCallback(()=>{let l=t.getCollection();return t.isSSR&&t.resetAfterSSR(),l},[t]),i=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:iv(n,r,i),document:t}}const El=u.createContext(null);function lv(e){var n;return n=class extends et{},n.type=e,n}function gd(e,t,n,r,i,a){typeof e=="string"&&(e=lv(e));let l=u.useCallback(s=>{s?.setProps(t,n,e,r,a)},[t,n,r,a,e]),o=u.useContext(El);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e.type),s.setProps(t,n,e,r,a),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),i?u.createElement(El.Provider,{value:s},i):null}return u.createElement(e.type,{ref:l},i)}function yt(e,t){let n=({node:i})=>t(i.props,i.props.ref,i),r=u.forwardRef((i,a)=>{let l=u.useContext(Ii);if(!u.useContext(bd)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(i,a)}return gd(e,i,a,"children"in i?i.children:null,null,s=>u.createElement(Ii.Provider,{value:l},u.createElement(n,{node:s})))});return r.displayName=t.name,r}function Li(e,t,n=yd){let r=({node:a})=>t(a.props,a.props.ref,a),i=u.forwardRef((a,l)=>{let o=n(a);return gd(e,a,l,null,o,s=>u.createElement(r,{node:s}))??u.createElement(u.Fragment,null)});return i.displayName=t.name,i}function yd(e){return yl({...e,addIdAndValue:!0})}const $d=u.createContext(null);function mn(e){let t=u.useContext($d),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=yd({...e,idScope:r,dependencies:n});return u.useContext(xr)&&(i=u.createElement(ov,null,i)),t=u.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),u.createElement($d.Provider,{value:t},i)}function ov({children:e}){let t=u.useContext(xr),n=u.useMemo(()=>u.createElement(xr.Provider,{value:null},u.createElement(bd.Provider,{value:!0},e)),[e]);return jt()?u.createElement(El.Provider,{value:t},n):Rt.createPortal(n,t)}const vd=u.createContext(null),wl={CollectionRoot({collection:e,renderDropIndicator:t}){return xd(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return xd(e,t,n)}};function xd(e,t,n){return yl({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){if(r.type==="content")return u.createElement(u.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:u.createElement(u.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,uv(e,r,n))}})}function uv(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i!=null?e.getItem(i):null;for(;a!=null&&a.type!=="item";)i=e.getKeyAfter(a.key),a=i!=null?e.getItem(i):null;let l=t.nextKey!=null?e.getItem(t.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?e.getItem(l.nextKey):null;let o=[];if(l==null){let s=t;for(;s?.type==="item"&&(!a||s.parentKey!==a.parentKey&&a.level<s.level);){let d=n({type:"item",key:s.key,dropPosition:"after"});u.isValidElement(d)&&o.push(u.cloneElement(d,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return o}const ge=u.createContext(wl);function Cd(e){return u.useMemo(()=>e!=null?new Set([e]):null,[e])}const sv=new Set(["id"]),dv=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),cv=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),fv=new Set(["dir","lang","hidden","inert","translate"]),Dd=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"]),mv=/^(data-.*)$/;function ie(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:l}=t,o={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(sv.has(s)||n&&dv.has(s)||r&&cv.has(s)||i&&fv.has(s)||a&&(Dd.has(s)||s.endsWith("Capture")&&Dd.has(s.slice(0,-7)))||l?.has(s)||mv.test(s))&&(o[s]=e[s]);return o}let _n="default",Sl="",Oi=new WeakMap;function Pl(e){if(bt()&>()){if(_n==="default"){const t=se(e);Sl=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}_n="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Oi.set(e,e.style[t]),e.style[t]="none"}}function zi(e){if(bt()&>()){if(_n!=="disabled")return;_n="restoring",setTimeout(()=>{sd(()=>{if(_n==="restoring"){const t=se(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Sl||""),Sl="",_n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Oi.has(e)){let t=Oi.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Oi.delete(e)}}function Ed(e){return e?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let kl=new WeakMap;function wd(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return Ed(t);if(kl.has(t))return kl.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof xe(n).HTMLMetaElement&&(n.nonce||n.content)||Ed(t)||void 0;return r!==void 0&&kl.set(t,r),r}const Cr=u.createContext({register:()=>{}});Cr.displayName="PressResponderContext";function Rn(){let e=u.useRef(new Map),t=u.useCallback((i,a,l,o)=>{let s=o?.once?(...d)=>{e.current.delete(l),l(...d)}:l;e.current.set(l,{type:a,eventTarget:i,fn:s,options:o}),i.addEventListener(a,s,o)},[]),n=u.useCallback((i,a,l,o)=>{let s=e.current.get(l)?.fn||l;i.removeEventListener(a,s,o),e.current.delete(l)},[]),r=u.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function hv(e){let t=u.useContext(Cr);if(t){let{register:n,ref:r,...i}=t;e=X(i,e),n()}return xl(t,e.ref),e}class Vi{#e;constructor(t,n,r,i){this.#e=!0;const l=(i?.target??r.currentTarget)?.getBoundingClientRect();let o,s=0,d,c=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,c=r.clientY),l&&(d!=null&&c!=null?(o=d-l.left,s=c-l.top):(o=l.width/2,s=l.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=o,this.y=s,this.key=r.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const Sd=Symbol("linkClicked"),Pd="react-aria-pressable-style",kd="data-react-aria-pressable";function Tt(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:l,isDisabled:o,isPressed:s,preventFocusOnPress:d,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:f,ref:m,...h}=hv(e),[p,g]=u.useState(!1),y=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:$,removeAllGlobalListeners:x}=Rn(),v=u.useCallback((D,T)=>{let Y=y.current;if(o||Y.didFirePressStart)return!1;let K=!0;if(Y.isTriggeringEvent=!0,r){let q=new Vi("pressstart",T,D);r(q),K=q.shouldStopPropagation}return n&&n(!0),Y.isTriggeringEvent=!1,Y.didFirePressStart=!0,g(!0),K},[o,r,n]),C=u.useCallback((D,T,Y=!0)=>{let K=y.current;if(!K.didFirePressStart)return!1;K.didFirePressStart=!1,K.isTriggeringEvent=!0;let q=!0;if(i){let P=new Vi("pressend",T,D);i(P),q=P.shouldStopPropagation}if(n&&n(!1),g(!1),t&&Y&&!o){let P=new Vi("press",T,D);t(P),q&&=P.shouldStopPropagation}return K.isTriggeringEvent=!1,q},[o,i,n,t]),w=De(C),S=u.useCallback((D,T)=>{let Y=y.current;if(o)return!1;if(a){Y.isTriggeringEvent=!0;let K=new Vi("pressup",T,D);return a(K),Y.isTriggeringEvent=!1,K.shouldStopPropagation}return!0},[o,a]),B=De(S),E=u.useCallback(D=>{let T=y.current;if(T.isPressed&&T.target){T.didFirePressStart&&T.pointerType!=null&&C(hn(T.target,D),T.pointerType,!1),T.isPressed=!1,T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,x(),f||zi(T.target);for(let Y of T.disposables)Y();T.disposables=[]}},[f,x,C]),k=De(E);u.useEffect(()=>{o&&y.current.isPressed&&k({currentTarget:y.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[o]);let M=u.useCallback(D=>{c&&E(D)},[c,E]),F=u.useCallback(D=>{o||l?.(D)},[o,l]),I=u.useCallback((D,T)=>{if(!o&&l){let Y=new MouseEvent("click",D);zs(Y,T),l(cl(Y))}},[o,l]),j=u.useMemo(()=>{let D=y.current,T={onKeyDown(K){if(Nl(K.nativeEvent,K.currentTarget)&&ae(K.currentTarget,G(K))){Ad(G(K),K.key)&&K.preventDefault();let q=!0;!D.isPressed&&!K.repeat&&(D.target=K.currentTarget,D.isPressed=!0,D.pointerType="keyboard",q=v(K,"keyboard"));let P=K.currentTarget,N=R=>{Nl(R,P)&&!R.repeat&&ae(P,G(R))&&D.target&&B(hn(D.target,R),"keyboard")};$(se(K.currentTarget),"keyup",at(N,Y),!0),q&&K.stopPropagation(),K.metaKey&&Je()&&D.metaKeyEvents?.set(K.key,K.nativeEvent)}else K.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(K){if(!(K&&!ae(K.currentTarget,G(K)))&&K&&K.button===0&&!D.isTriggeringEvent&&!Nt.isOpening){let q=!0;if(o&&K.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||hl(K.nativeEvent))){let P=v(K,"virtual"),N=B(K,"virtual"),R=w(K,"virtual");F(K),q=P&&N&&R}else if(D.isPressed&&D.pointerType!=="keyboard"){let P=D.pointerType||K.nativeEvent.pointerType||"virtual",N=B(hn(K.currentTarget,K),P),R=w(hn(K.currentTarget,K),P,!0);q=N&&R,D.isOverTarget=!1,F(K),k(K)}D.ignoreEmulatedMouseEvents=!1,q&&K.stopPropagation()}}},Y=K=>{if(D.isPressed&&D.target&&Nl(K,D.target)){Ad(G(K),K.key)&&K.preventDefault();let q=G(K),P=ae(D.target,q);w(hn(D.target,K),"keyboard",P),P&&I(K,D.target),x(),K.key!=="Enter"&&Bl(D.target)&&ae(D.target,q)&&!K[Sd]&&(K[Sd]=!0,Nt(D.target,K,!1)),D.isPressed=!1,D.metaKeyEvents?.delete(K.key)}else if(K.key==="Meta"&&D.metaKeyEvents?.size){let q=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let P of q.values())D.target?.dispatchEvent(new KeyboardEvent("keyup",P))}};if(typeof PointerEvent<"u"){T.onPointerDown=P=>{if(P.button!==0||!ae(P.currentTarget,G(P)))return;if(c5(P.nativeEvent)){D.pointerType="virtual";return}D.pointerType=P.pointerType;let N=!0;if(!D.isPressed){D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=P.pointerId,D.target=P.currentTarget,f||Pl(D.target),N=v(P,D.pointerType);let R=G(P);"releasePointerCapture"in R&&("hasPointerCapture"in R?R.hasPointerCapture(P.pointerId)&&R.releasePointerCapture(P.pointerId):R.releasePointerCapture(P.pointerId)),$(se(P.currentTarget),"pointerup",K,!1),$(se(P.currentTarget),"pointercancel",q,!1)}N&&P.stopPropagation()},T.onMouseDown=P=>{if(ae(P.currentTarget,G(P))&&P.button===0){if(d){let N=_s(P.target);N&&D.disposables.push(N)}P.stopPropagation()}},T.onPointerUp=P=>{!ae(P.currentTarget,G(P))||D.pointerType==="virtual"||P.button===0&&!D.isPressed&&B(P,D.pointerType||P.pointerType)},T.onPointerEnter=P=>{P.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,v(hn(D.target,P),D.pointerType))},T.onPointerLeave=P=>{P.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,w(hn(D.target,P),D.pointerType,!1),M(P))};let K=P=>{if(P.pointerId===D.activePointerId&&D.isPressed&&P.button===0&&D.target){if(ae(D.target,G(P))&&D.pointerType!=null){let N=!1,R=setTimeout(()=>{D.isPressed&&D.target instanceof HTMLElement&&(N?k(P):(Xe(D.target),D.target.click()))},80);$(P.currentTarget,"click",()=>N=!0,!0),D.disposables.push(()=>clearTimeout(R))}else k(P);D.isOverTarget=!1}},q=P=>{k(P)};T.onDragStart=P=>{ae(P.currentTarget,G(P))&&k(P)}}else if(process.env.NODE_ENV==="test"){T.onMouseDown=P=>{if(P.button!==0||!ae(P.currentTarget,G(P)))return;if(D.ignoreEmulatedMouseEvents){P.stopPropagation();return}if(D.isPressed=!0,D.isOverTarget=!0,D.target=P.currentTarget,D.pointerType=hl(P.nativeEvent)?"virtual":"mouse",Rt.flushSync(()=>v(P,D.pointerType))&&P.stopPropagation(),d){let R=_s(P.target);R&&D.disposables.push(R)}$(se(P.currentTarget),"mouseup",K,!1)},T.onMouseEnter=P=>{if(!ae(P.currentTarget,G(P)))return;let N=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!0,N=v(P,D.pointerType)),N&&P.stopPropagation()},T.onMouseLeave=P=>{if(!ae(P.currentTarget,G(P)))return;let N=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!1,N=w(P,D.pointerType,!1),M(P)),N&&P.stopPropagation()},T.onMouseUp=P=>{ae(P.currentTarget,G(P))&&!D.ignoreEmulatedMouseEvents&&P.button===0&&!D.isPressed&&B(P,D.pointerType||"mouse")};let K=P=>{if(P.button===0){if(D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=!1;return}D.target&&ae(D.target,G(P))&&D.pointerType!=null||k(P),D.isOverTarget=!1}};T.onTouchStart=P=>{if(!ae(P.currentTarget,G(P)))return;let N=pv(P.nativeEvent);if(!N)return;D.activePointerId=N.identifier,D.ignoreEmulatedMouseEvents=!0,D.isOverTarget=!0,D.isPressed=!0,D.target=P.currentTarget,D.pointerType="touch",f||Pl(D.target),v(Gt(D.target,P),D.pointerType)&&P.stopPropagation(),$(xe(P.currentTarget),"scroll",q,!0)},T.onTouchMove=P=>{if(!ae(P.currentTarget,G(P)))return;if(!D.isPressed){P.stopPropagation();return}let N=Bd(P.nativeEvent,D.activePointerId),R=!0;N&&Nd(N,P.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,R=v(Gt(D.target,P),D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,R=w(Gt(D.target,P),D.pointerType,!1),M(Gt(D.target,P))),R&&P.stopPropagation()},T.onTouchEnd=P=>{if(!ae(P.currentTarget,G(P)))return;if(!D.isPressed){P.stopPropagation();return}let N=Bd(P.nativeEvent,D.activePointerId),R=!0;N&&Nd(N,P.currentTarget)&&D.pointerType!=null?(B(Gt(D.target,P),D.pointerType),R=w(Gt(D.target,P),D.pointerType),I(P.nativeEvent,D.target)):D.isOverTarget&&D.pointerType!=null&&(R=w(Gt(D.target,P),D.pointerType,!1)),R&&P.stopPropagation(),D.isPressed=!1,D.activePointerId=null,D.isOverTarget=!1,D.ignoreEmulatedMouseEvents=!0,D.target&&!f&&zi(D.target),x()},T.onTouchCancel=P=>{ae(P.currentTarget,G(P))&&(P.stopPropagation(),D.isPressed&&k(Gt(D.target,P)))};let q=P=>{D.isPressed&&ae(G(P),D.target)&&k({currentTarget:D.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};T.onDragStart=P=>{ae(P.currentTarget,G(P))&&k(P)}}return T},[$,o,d,x,f,M,v,F,I]);return u.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const D=se(m.current);if(!D||!D.head||D.getElementById(Pd))return;const T=D.createElement("style");T.id=Pd;let Y=wd(D);Y&&(T.nonce=Y),T.textContent=`
|
|
2
2
|
@layer {
|
|
3
|
-
[${
|
|
3
|
+
[${kd}] {
|
|
4
4
|
touch-action: pan-x pan-y pinch-zoom;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
`.trim(),E.head.prepend(F)},[p]),s.useEffect(()=>{let E=y.current;return()=>{f||zr(E.target??void 0);for(let F of E.disposables)F();E.disposables=[]}},[f]),{isPressed:u||m,pressProps:G(h,R,{[hs]:!0})}}function io(t){return t.tagName==="A"&&t.hasAttribute("href")}function oo(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof $e(i).HTMLInputElement&&!ys(i,n)||i instanceof $e(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&io(i))&&n!=="Enter")}function y3(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function ms(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function St(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function _t(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r,key:e.key}}function $3(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function v3(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function gs(t,e){let n=e.getBoundingClientRect(),r=$3(t);return v3(n,r)}function x3(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!io(t)}function bs(t,e){return _e()&&e==="Enter"?!1:t instanceof HTMLInputElement?e==="Enter"&&(t.type==="checkbox"||t.type==="radio")?!1:!ys(t,e):x3(t)}const C3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ys(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":C3.has(t.type)}function E3(t,e){let{elementType:n="a",onPress:r,onPressStart:i,onPressEnd:o,onPressChange:l,onClick:a,isDisabled:u,...d}=t,c={};n!=="a"&&(c={role:"link",tabIndex:u?void 0:0});let{focusableProps:f}=rn(t,e),{pressProps:p,isPressed:h}=zt({onPress:r,onPressStart:i,onPressEnd:o,onPressChange:l,onClick:a,isDisabled:u,ref:e}),m=re(d,{labelable:!0}),b=G(f,p),y=Mt(),$=Er(t);return{isPressed:h,linkProps:G(m,$,{...b,...c,"aria-disabled":u||void 0,"aria-current":t["aria-current"],onClick:x=>{p.onClick?.(x),Ia(x,y,t.href,t.routerOptions)}})}}function Bn(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=s.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=In(),u=s.useCallback(f=>{te(f.currentTarget,z(f))&&o.current.isFocusWithin&&!te(f.currentTarget,f.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(f),i&&i(!1))},[n,i,o,a]),d=Da(u),c=s.useCallback(f=>{if(!te(f.currentTarget,z(f)))return;let p=z(f);const h=le(p),m=pe(h);if(!o.current.isFocusWithin&&m===p){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,d(f);let b=f.currentTarget;l(h,"focus",y=>{let $=z(y);if(o.current.isFocusWithin&&!te(b,$)){let x=new h.defaultView.FocusEvent("blur",{relatedTarget:$});ka(x,b);let v=_i(x);u(v)}},{capture:!0})}},[r,i,d,l,u]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:u}}}function Ae(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=s.useRef({isFocused:!1,isFocusVisible:e||Et()}),[o,l]=s.useState(!1),[a,u]=s.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=s.useCallback(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),c=s.useCallback(h=>{i.current.isFocused=h,i.current.isFocusVisible=Et(),l(h),d()},[d]);Eb(h=>{i.current.isFocusVisible=h,d()},[n,o],{enabled:o,isTextInput:n});let{focusProps:f}=Xi({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=Bn({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}let Vr=!1,Hr=0;function lo(){Vr=!0,setTimeout(()=>{Vr=!1},500)}function $s(t){t.pointerType==="touch"&&lo()}function w3(){let t=le(null);if(!(typeof t>"u"))return Hr===0&&(typeof PointerEvent<"u"?t.addEventListener("pointerup",$s):process.env.NODE_ENV==="test"&&t.addEventListener("touchend",lo)),Hr++,()=>{Hr--,!(Hr>0)&&(typeof PointerEvent<"u"?t.removeEventListener("pointerup",$s):process.env.NODE_ENV==="test"&&t.removeEventListener("touchend",lo))}}function Ie(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=s.useState(!1),a=s.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;s.useEffect(w3,[]);let{addGlobalListener:u,removeAllGlobalListeners:d}=In(),{hoverProps:c,triggerHoverEnd:f}=s.useMemo(()=>{let p=(b,y)=>{if(a.pointerType=y,i||y==="touch"||a.isHovered||!te(b.currentTarget,z(b)))return;a.isHovered=!0;let $=b.currentTarget;a.target=$,u(le(z(b)),"pointerover",x=>{a.isHovered&&a.target&&!te(a.target,z(x))&&h(x,x.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:$,pointerType:y}),n&&n(!0),l(!0)},h=(b,y)=>{let $=a.target;a.pointerType="",a.target=null,!(y==="touch"||!a.isHovered||!$)&&(a.isHovered=!1,d(),r&&r({type:"hoverend",target:$,pointerType:y}),n&&n(!1),l(!1))},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=b=>{Vr&&b.pointerType==="mouse"||p(b,b.pointerType)},m.onPointerLeave=b=>{!i&&te(b.currentTarget,z(b))&&h(b,b.pointerType)}):process.env.NODE_ENV==="test"&&(m.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=b=>{!a.ignoreEmulatedMouseEvents&&!Vr&&p(b,"mouse"),a.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=b=>{!i&&te(b.currentTarget,z(b))&&h(b,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[e,n,r,i,a,u,d]);return s.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:c,isHovered:o}}const vs=s.createContext(null),S3=s.forwardRef(function(e,n){[e,n]=ge(e,n,vs);let r=e.href&&!e.isDisabled?"a":"span",{linkProps:i,isPressed:o}=E3({...e,elementType:r},n),l=ee[r],{hoverProps:a,isHovered:u}=Ie(e),{focusProps:d,isFocused:c,isFocusVisible:f}=Ae(),p=se({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:u,isFocused:c,isFocusVisible:f}}),h=re(e,{global:!0});return delete h.onClick,s.createElement(l,{ref:n,slot:e.slot||void 0,...G(h,p,i,a,d),"data-focused":c||void 0,"data-hovered":u||void 0,"data-pressed":o||void 0,"data-focus-visible":f||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},p.children)});var xs={};xs={breadcrumbs:"عناصر الواجهة"};var Cs={};Cs={breadcrumbs:"Трохи хляб"};var Es={};Es={breadcrumbs:"Popis cesty"};var ws={};ws={breadcrumbs:"Brødkrummer"};var Ss={};Ss={breadcrumbs:"Breadcrumbs"};var Ps={};Ps={breadcrumbs:"Πλοηγήσεις breadcrumb"};var ks={};ks={breadcrumbs:"Breadcrumbs"};var Ds={};Ds={breadcrumbs:"Migas de pan"};var Ns={};Ns={breadcrumbs:"Lingiread"};var Ts={};Ts={breadcrumbs:"Navigointilinkit"};var As={};As={breadcrumbs:"Chemin de navigation"};var Is={};Is={breadcrumbs:"שבילי ניווט"};var Bs={};Bs={breadcrumbs:"Navigacijski putovi"};var Fs={};Fs={breadcrumbs:"Morzsamenü"};var Ms={};Ms={breadcrumbs:"Breadcrumb"};var Ks={};Ks={breadcrumbs:"パンくずリスト"};var Ls={};Ls={breadcrumbs:"탐색 표시"};var Os={};Os={breadcrumbs:"Naršymo kelias"};var zs={};zs={breadcrumbs:"Atpakaļceļi"};var _s={};_s={breadcrumbs:"Navigasjonsstier"};var Vs={};Vs={breadcrumbs:"Broodkruimels"};var Hs={};Hs={breadcrumbs:"Struktura nawigacyjna"};var js={};js={breadcrumbs:"Caminho detalhado"};var Rs={};Rs={breadcrumbs:"Categorias"};var Ws={};Ws={breadcrumbs:"Miez de pâine"};var Us={};Us={breadcrumbs:"Навигация"};var Gs={};Gs={breadcrumbs:"Navigačné prvky Breadcrumbs"};var Ys={};Ys={breadcrumbs:"Drobtine"};var Xs={};Xs={breadcrumbs:"Putanje navigacije"};var qs={};qs={breadcrumbs:"Sökvägar"};var Zs={};Zs={breadcrumbs:"İçerik haritaları"};var Js={};Js={breadcrumbs:"Навігаційна стежка"};var Qs={};Qs={breadcrumbs:"导航栏"};var eu={};eu={breadcrumbs:"導覽列"};var tu={};tu={"ar-AE":xs,"bg-BG":Cs,"cs-CZ":Es,"da-DK":ws,"de-DE":Ss,"el-GR":Ps,"en-US":ks,"es-ES":Ds,"et-EE":Ns,"fi-FI":Ts,"fr-FR":As,"he-IL":Is,"hr-HR":Bs,"hu-HU":Fs,"it-IT":Ms,"ja-JP":Ks,"ko-KR":Ls,"lt-LT":Os,"lv-LV":zs,"nb-NO":_s,"nl-NL":Vs,"pl-PL":Hs,"pt-BR":js,"pt-PT":Rs,"ro-RO":Ws,"ru-RU":Us,"sk-SK":Gs,"sl-SI":Ys,"sr-SP":Xs,"sv-SE":qs,"tr-TR":Zs,"uk-UA":Js,"zh-CN":Qs,"zh-TW":eu};function P3(t){return t&&t.__esModule?t.default:t}function k3(t){let{"aria-label":e,...n}=t,r=Me(P3(tu),"@react-aria/breadcrumbs");return{navProps:{...re(n,{labelable:!0}),"aria-label":e||r.format("breadcrumbs")}}}const ao=s.createContext(null),D3=s.forwardRef(function(e,n){[e,n]=ge(e,n,ao);let{CollectionRoot:r}=s.useContext(me),{navProps:i}=k3(e),o=re(e,{global:!0,labelable:!0});return s.createElement(Lt,{content:s.createElement(Ot,e)},l=>s.createElement(ee.ol,{render:e.render,ref:n,...G(o,i),slot:e.slot||void 0,style:e.style,className:e.className??"react-aria-Breadcrumbs"},s.createElement(ao.Provider,{value:e},s.createElement(r,{collection:l}))))}),aa=class aa extends He{};aa.type="item";let so=aa;const N3=ot(so,function(e,n,r){let i=r.nextKey==null,{isDisabled:o,onAction:l}=Ct(ao),a={"aria-current":i?"page":null,isDisabled:o||i,onPress:()=>l?.(r.key)},u=se({...r.props,children:r.rendered,values:{isDisabled:o||i,isCurrent:i},defaultClassName:"react-aria-Breadcrumb"}),d=re(e,{global:!0,labelable:!0});return delete d.id,s.createElement(ee.li,{...d,...u,ref:n,"data-disabled":o||i||void 0,"data-current":i||void 0},s.createElement(vs.Provider,{value:a},u.children))}),Fn=s.createContext({});function uo(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=xe(e);let l=xe(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&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 u=tn({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:u}}let co=new Map,fo=!1;try{fo=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let jr=!1;try{jr=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const nu={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class T3{constructor(e,n={}){this.numberFormatter=A3(e,n),this.options=n}format(e){let n="";if(!fo&&this.options.signDisplay!=null?n=I3(this.numberFormatter,this.options.signDisplay,e):n=this.numberFormatter.format(e),this.options.style==="unit"&&!jr){let{unit:r,unitDisplay:i="short",locale:o}=this.resolvedOptions();if(!r)return n;let l=nu[r]?.[i];n+=l[o]||l.default}return n}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,n);if(n<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(n)}`}formatRangeToParts(e,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,n);if(n<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!fo&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!jr&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}}function A3(t,e={}){let{numberingSystem:n}=e;if(n&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${n}`),e.style==="unit"&&!jr){let{unit:o,unitDisplay:l="short"}=e;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!nu[o]?.[l])throw new Error(`Unsupported unit ${o} with unitDisplay = ${l}`);e={...e,style:"decimal"}}let r=t+(e?Object.entries(e).sort((o,l)=>o[0]<l[0]?-1:1).join():"");if(co.has(r))return co.get(r);let i=new Intl.NumberFormat(t,e);return co.set(r,i),i}function I3(t,e,n){if(e==="auto")return t.format(n);if(e==="never")return t.format(Math.abs(n));{let r=!1;if(e==="always"?r=n>0||Object.is(n,0):e==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=t.format(-n),o=t.format(n),l=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(l,"+").replace("!!!",o)}else return t.format(n)}}function B3(t={}){let{locale:e}=Ne();return s.useMemo(()=>new T3(e,t),[e,t])}function Mn(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}function F3(t){let{value:e=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:o,formatOptions:l={style:"percent"}}=t,a=re(t,{labelable:!0}),{labelProps:u,fieldProps:d}=uo({...t,labelElementType:"span"});e=Mn(e,n,r);let c=r-n,f=c===0?0:(e-n)/c,p=B3(l);if(!o&&!i){let h=l.style==="percent"?f:e;i=p.format(h)}return{progressBarProps:G(a,{...d,"aria-valuenow":o?void 0:e,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":o?void 0:i,role:"progressbar"}),labelProps:u}}const ru=s.createContext(null),M3=s.forwardRef(function(e,n){[e,n]=ge(e,n,ru);let{value:r=0,minValue:i=0,maxValue:o=100,isIndeterminate:l=!1}=e;r=Mn(r,i,o);let[a,u]=vn(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:d,labelProps:c}=F3({...e,label:u}),f=o-i,p;l||(f===0?p=0:p=(r-i)/f*100);let h=se({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:p,valueText:d["aria-valuetext"],isIndeterminate:l}}),m=re(e,{global:!0});return s.createElement(ee.div,{...G(m,h,d),ref:n,slot:e.slot||void 0},s.createElement(Fn.Provider,{value:{...c,ref:a,elementType:"span"}},h.children))}),iu=7e3;let ln=null;function Vt(t,e="assertive",n=iu){ln?ln.announce(t,e,n):(ln=new K3,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ln.announce(t,e,n):setTimeout(()=>{ln?.isAttached()&&ln?.announce(t,e,n)},100))}class K3{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=iu){if(!this.node)return;let i=document.createElement("div");typeof e=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,n==="assertive"?this.assertiveLog?.appendChild(i):this.politeLog?.appendChild(i),e!==""&&setTimeout(()=>{i.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function L3(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:u,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:f,href:p,target:h,rel:m,type:b="button"}=t,y;n==="button"?y={type:b,disabled:r,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:y={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?h:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?m:void 0};let{pressProps:$,isPressed:x}=zt({onPressStart:o,onPressEnd:l,onPressChange:u,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:d,ref:e}),{focusableProps:v}=rn(t,e);c&&(v.tabIndex=r?-1:v.tabIndex);let C=G(v,$,re(t,{labelable:!0}));return{isPressed:x,buttonProps:G(y,C,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}const Ht=s.createContext({}),Kn=Nn(function(e,n){[e,n]=ge(e,n,Ht);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=L3(e,n);o=z3(o,i);let{focusProps:a,isFocused:u,isFocusVisible:d}=Ae(e),{hoverProps:c,isHovered:f}=Ie({...e,isDisabled:e.isDisabled||i}),p={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:u,isFocusVisible:d,isDisabled:e.isDisabled||!1,isPending:i??!1},h=se({...e,values:p,defaultClassName:"react-aria-Button"}),m=xe(o.id),b=xe(),y=o["aria-labelledby"];i&&(y?y=`${y} ${b}`:o["aria-label"]&&(y=`${m} ${b}`));let $=s.useRef(i);s.useEffect(()=>{let v={"aria-labelledby":y||m};(!$.current&&u&&i||$.current&&u&&!i)&&Vt(v,"assertive"),$.current=i},[i,u,y,m]);let x=re(e,{global:!0});return delete x.onClick,s.createElement(ee.button,{...G(x,h,o,a,c),type:o.type==="submit"&&i?"button":o.type,id:m,ref:n,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":u||void 0,"data-pending":i||void 0,"data-focus-visible":d||void 0},s.createElement(ru.Provider,{value:{id:b}},h.children))}),O3=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function z3(t,e){if(e){for(const n in t)n.startsWith("on")&&!O3.test(n)&&(t[n]=void 0);t.href=void 0,t.target=void 0}return t}const ou=s.createContext({}),_3=s.forwardRef(function(e,n){[e,n]=ge(e,n,ou);let{children:r,level:i=3,className:o,...l}=e,a=ee[`h${i}`];return s.createElement(a,{...l,ref:n,className:o??"react-aria-Heading"},r)}),Pt=s.createContext({});function po(t,e){const n=s.useRef(!0),r=s.useRef(null);let i=De(t);s.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),s.useEffect(()=>{let o=r.current;n.current?n.current=!1:(!o||e.some((l,a)=>!Object.is(l,o[a])))&&i(),r.current=e},e)}function kt(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return t===r&&n.overflow!=="hidden"&&(i=!0),i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}function mt(t,e){let n=t;for(kt(n,e)&&(n=n.parentElement);n&&!kt(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ho(t,e){let n=[],r=document.scrollingElement||document.documentElement;for(;t&&(kt(t,e)&&n.push(t),t!==r);)t=t.parentElement;return n}function Rr(t,e,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(t===e)return;let o=t.scrollTop,l=t.scrollLeft,a=e.getBoundingClientRect(),u=t.getBoundingClientRect(),d=window.getComputedStyle(e),c=window.getComputedStyle(t),f=document.scrollingElement||document.documentElement,p=t===f,h=t===f?0:u.top,m=t===f?t.clientHeight:u.bottom,b=t===f?0:u.left,y=t===f?t.clientWidth:u.right,$=parseFloat(d.scrollMarginTop)||0,x=parseFloat(d.scrollMarginBottom)||0,v=parseFloat(d.scrollMarginLeft)||0,C=parseFloat(d.scrollMarginRight)||0,k=parseFloat(c.scrollPaddingTop)||0,P=parseFloat(c.scrollPaddingBottom)||0,N=parseFloat(c.scrollPaddingLeft)||0,w=parseFloat(c.scrollPaddingRight)||0,D=parseFloat(c.borderTopWidth)||0,A=parseFloat(c.borderBottomWidth)||0,L=parseFloat(c.borderLeftWidth)||0,_=parseFloat(c.borderRightWidth)||0,R=a.top-$,E=a.bottom+x,F=a.left-v,Z=a.right+C,M=t===f?0:L+_,Y=t===f?0:D+A,S=t===f?0:t.offsetWidth-t.clientWidth-M,I=t===f?0:t.offsetHeight-t.clientHeight-Y,U=h+(p?0:D)+k,oe=m-(p?0:A)-P-I,V=b+(p?0:L)+N,ne=y-(p?0:_)-w;ft()&&rt()||c.direction==="ltr"?ne-=S:c.direction==="rtl"&&(V+=S);let T=R<U||E>oe,O=F<V||Z>ne;if(T&&r==="start")o+=R-U;else if(T&&r==="center")o+=(R+E)/2-(U+oe)/2;else if(T&&r==="end")o+=E-oe;else if(T&&r==="nearest"){let J=R-U,ce=E-oe;o+=Math.abs(J)<=Math.abs(ce)?J:ce}if(O&&i==="start")l+=F-V;else if(O&&i==="center")l+=(F+Z)/2-(V+ne)/2;else if(O&&i==="end")l+=Z-ne;else if(O&&i==="nearest"){let J=F-V,ce=Z-ne;l+=Math.abs(J)<=Math.abs(ce)?J:ce}if(process.env.NODE_ENV==="test"){t.scrollLeft=l,t.scrollTop=o;return}t.scrollTo({left:l,top:o})}function Dt(t,e={}){let{containingElement:n}=e;if(t&&t.isConnected){let r=document.scrollingElement||document.documentElement;if(window.getComputedStyle(r).overflow==="hidden"){let{left:o,top:l}=t.getBoundingClientRect(),a=ho(t,!0);for(let c of a)Rr(c,t);let{left:u,top:d}=t.getBoundingClientRect();if(Math.abs(o-u)>1||Math.abs(l-d)>1){a=n?ho(n,!0):[];for(let c of a)Rr(c,n,{block:"center",inline:"center"});for(let c of ho(t,!0))Rr(c,t)}}else{let{left:o,top:l}=t.getBoundingClientRect();t?.scrollIntoView?.({block:"nearest"});let{left:a,top:u}=t.getBoundingClientRect();(Math.abs(o-a)>1||Math.abs(l-u)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),t.scrollIntoView?.({block:"nearest"}))}}}let V3=0;const mo=new Map;function Ln(t){let[e,n]=s.useState();return de(()=>{if(!t)return;let r=mo.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${V3++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},mo.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),mo.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}const lu={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 an(t={}){let{style:e,isFocusable:n}=t,[r,i]=s.useState(!1),{focusWithinProps:o}=Bn({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=s.useMemo(()=>r?e:e?{...lu,...e}:lu,[r]);return{visuallyHiddenProps:{...o,style:l}}}function H3(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=an(t);return s.createElement(n,G(o,l),e)}const au=s.createContext(null),su={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},uu={...su,customError:!0,valid:!1},On={isInvalid:!1,validationDetails:su,validationErrors:[]},j3=s.createContext({}),go="__reactAriaFormValidationState";function bo(t){if(t[go]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[go];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return R3(t)}function R3(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:a="aria"}=t;n&&(e||=n==="invalid");let u=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:uu}:null,d=s.useMemo(()=>{if(!l||i==null)return null;let A=W3(l,i);return du(A)},[l,i]);o?.validationDetails.valid&&(o=void 0);let c=s.useContext(j3),f=s.useMemo(()=>r?Array.isArray(r)?r.flatMap(A=>yo(c[A])):yo(c[r]):[],[c,r]),[p,h]=s.useState(c),[m,b]=s.useState(!1);c!==p&&(h(c),b(!1));let y=s.useMemo(()=>du(m?[]:f),[m,f]),$=s.useRef(On),[x,v]=s.useState(On),C=s.useRef(On),k=()=>{if(!P)return;N(!1);let A=d||o||$.current;$o(A,C.current)||(C.current=A,v(A))},[P,N]=s.useState(!1);return s.useEffect(k),{realtimeValidation:u||y||d||o||On,displayValidation:a==="native"?u||y||x:u||y||d||o||x,updateValidation(A){a==="aria"&&!$o(x,A)?v(A):$.current=A},resetValidation(){let A=On;$o(A,C.current)||(C.current=A,v(A)),a==="native"&&N(!1),b(!0)},commitValidation(){a==="native"&&N(!0),b(!0)}}}function yo(t){return t?Array.isArray(t)?t:[t]:[]}function W3(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return yo(n)}return[]}function du(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:uu}:null}function $o(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}const cu=s.createContext(null);function fu(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=uo(t),a=dt([!!e,!!n,r,i]),u=dt([!!e,!!n,r,i]);return l=G(l,{"aria-describedby":[a,u,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:u}}}function vo(t,e,n){let r=De(i=>{n&&!i.defaultPrevented&&n(e)});s.useEffect(()=>{let i=t?.current?.form;return i?.addEventListener("reset",r),()=>{i?.removeEventListener("reset",r)}},[t])}function pu(t,e,n){let{validationBehavior:r,focus:i}=t;de(()=>{if(r==="native"&&n?.current&&"setCustomValidity"in n.current&&!n.current.disabled){let d=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(G3(n.current))}});let o=s.useRef(!1),l=De(()=>{o.current||e.resetValidation()}),a=De(d=>{e.displayValidation.isInvalid||e.commitValidation();let c=n?.current?.form;!d.defaultPrevented&&n&&c&&Y3(c)===n.current&&(i?i():n.current?.focus(),en("keyboard")),d.preventDefault()}),u=De(()=>{e.commitValidation()});s.useEffect(()=>{let d=n?.current;if(!d)return;let c=d.form,f=c?.reset;return c&&(c.reset=()=>{o.current=!window.event||window.event.type==="message"&&z(window.event)instanceof MessagePort,f?.call(c),o.current=!1}),d.addEventListener("invalid",a),d.addEventListener("change",u),c?.addEventListener("reset",l),()=>{d.removeEventListener("invalid",a),d.removeEventListener("change",u),c?.removeEventListener("reset",l),c&&(c.reset=f)}},[n,r])}function U3(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function G3(t){return{isInvalid:!t.validity.valid,validationDetails:U3(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Y3(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(n.validity?.valid===!1)return n}return null}const hu=s.createContext(null),mu=s.createContext(null);function X3(t){let{onMoveStart:e,onMove:n,onMoveEnd:r}=t,i=s.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:l}=In(),a=s.useCallback((p,h,m,b)=>{m===0&&b===0||(i.current.didMove||(i.current.didMove=!0,e?.({type:"movestart",pointerType:h,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey})),n?.({type:"move",pointerType:h,deltaX:m,deltaY:b,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey}))},[e,n,i]),u=De(a),d=s.useCallback((p,h)=>{zr(),i.current.didMove&&r?.({type:"moveend",pointerType:h,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey})},[r,i]),c=De(d);return{moveProps:s.useMemo(()=>{let p={},h=()=>{no(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let b=v=>{v.button===0&&(u(v,"mouse",v.pageX-(i.current.lastPosition?.pageX??0),v.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY})},y=v=>{if(v.button===0){c(v,"mouse");let C=$e(z(v));l(C,"mousemove",b,!1),l(C,"mouseup",y,!1)}};p.onMouseDown=v=>{if(v.button===0){h(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY};let C=$e(z(v));o(C,"mousemove",b,!1),o(C,"mouseup",y,!1)}};let $=v=>{let C=[...v.changedTouches].findIndex(({identifier:k})=>k===i.current.id);if(C>=0){let{pageX:k,pageY:P}=v.changedTouches[C];u(v,"touch",k-(i.current.lastPosition?.pageX??0),P-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:k,pageY:P}}},x=v=>{if([...v.changedTouches].findIndex(({identifier:k})=>k===i.current.id)>=0){c(v,"touch"),i.current.id=null;let k=$e(z(v));l(k,"touchmove",$),l(k,"touchend",x),l(k,"touchcancel",x)}};p.onTouchStart=v=>{if(v.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:k,identifier:P}=v.changedTouches[0];h(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:C,pageY:k},i.current.id=P;let N=$e(z(v));o(N,"touchmove",$,!1),o(N,"touchend",x,!1),o(N,"touchcancel",x,!1)}}else{let b=$=>{if($.pointerId===i.current.id){let x=$.pointerType||"mouse";u($,x,$.pageX-(i.current.lastPosition?.pageX??0),$.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},y=$=>{if($.pointerId===i.current.id){let x=$.pointerType||"mouse";c($,x),i.current.id=null;let v=$e(z($));l(v,"pointermove",b,!1),l(v,"pointerup",y,!1),l(v,"pointercancel",y,!1)}};p.onPointerDown=$=>{if($.button===0&&i.current.id==null){h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId;let x=$e(z($));o(x,"pointermove",b,!1),o(x,"pointerup",y,!1),o(x,"pointercancel",y,!1)}}}let m=(b,y,$)=>{h(),u(b,"keyboard",y,$),c(b,"keyboard")};return p.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),m(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),m(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),m(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),m(b,0,1);break}},p},[o,l,i])}}const xo=s.createContext({}),Co=s.forwardRef(function(e,n){[e,n]=ge(e,n,xo);let{isDisabled:r,isInvalid:i,isReadOnly:o,onHoverStart:l,onHoverChange:a,onHoverEnd:u,...d}=e;r??=!!e["aria-disabled"]&&e["aria-disabled"]!=="false",i??=!!e["aria-invalid"]&&e["aria-invalid"]!=="false";let{hoverProps:c,isHovered:f}=Ie({onHoverStart:l,onHoverChange:a,onHoverEnd:u,isDisabled:r}),{isFocused:p,isFocusVisible:h,focusProps:m}=Ae({within:!0}),b=se({...e,values:{isHovered:f,isFocusWithin:p,isFocusVisible:h,isDisabled:r,isInvalid:i},defaultClassName:"react-aria-Group"});return s.createElement(ee.div,{...G(d,m,c),...b,ref:n,role:e.role??"group",slot:e.slot??void 0,"data-focus-within":p||void 0,"data-hovered":f||void 0,"data-focus-visible":h||void 0,"data-disabled":r||void 0,"data-invalid":i||void 0,"data-readonly":o||void 0},b.children)}),Eo=s.createContext({});let q3=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const gu=Nn(function(e,n){[e,n]=ge(e,n,Eo);let{hoverProps:r,isHovered:i}=Ie({...e,isDisabled:e.disabled}),{isFocused:o,isFocusVisible:l,focusProps:a}=Ae({isTextInput:!0,autoFocus:e.autoFocus}),u=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",d=se({...e,values:{isHovered:i,isFocused:o,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:u},defaultClassName:"react-aria-Input"});return s.createElement(ee.input,{...G(q3(e),a,r),...d,ref:n,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":u||void 0})});function Z3(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:l="text",validationBehavior:a="aria"}=t,[u,d]=it(t.value,t.defaultValue||"",t.onChange),{focusableProps:c}=rn(t,e),f=bo({...t,value:u}),{isInvalid:p,validationErrors:h,validationDetails:m}=f.displayValidation,{labelProps:b,fieldProps:y,descriptionProps:$,errorMessageProps:x}=fu({...t,isInvalid:p,errorMessage:t.errorMessage||h}),v=re(t,{labelable:!0});const C={type:l,pattern:t.pattern};let[k]=s.useState(u);return vo(e,t.defaultValue??k,d),pu(t,f,e),{labelProps:b,inputProps:G(v,n==="input"?C:void 0,{disabled:r,readOnly:o,required:i&&a==="native","aria-required":i&&a==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:u,onChange:P=>d(z(P).value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,form:t.form,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(s.version,10)>=17?"enterKeyHint":"enterkeyhint"]:t.enterKeyHint,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...c,...y}),descriptionProps:$,errorMessageProps:x,isInvalid:p,validationErrors:h,validationDetails:m}}var bu={};bu={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var yu={};yu={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var $u={};$u={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var vu={};vu={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var xu={};xu={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var Cu={};Cu={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var Eu={};Eu={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var wu={};wu={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var Su={};Su={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var Pu={};Pu={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var ku={};ku={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var Du={};Du={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var Nu={};Nu={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var Tu={};Tu={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var Au={};Au={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var Iu={};Iu={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var Bu={};Bu={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var Fu={};Fu={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var Mu={};Mu={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var Ku={};Ku={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var Lu={};Lu={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var Ou={};Ou={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var zu={};zu={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var _u={};_u={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Vu={};Vu={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var Hu={};Hu={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var ju={};ju={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var Ru={};Ru={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var Wu={};Wu={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var Uu={};Uu={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var Gu={};Gu={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var Yu={};Yu={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var Xu={};Xu={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var qu={};qu={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var wo={};wo={"ar-AE":bu,"bg-BG":yu,"cs-CZ":$u,"da-DK":vu,"de-DE":xu,"el-GR":Cu,"en-US":Eu,"es-ES":wu,"et-EE":Su,"fi-FI":Pu,"fr-FR":ku,"he-IL":Du,"hr-HR":Nu,"hu-HU":Tu,"it-IT":Au,"ja-JP":Iu,"ko-KR":Bu,"lt-LT":Fu,"lv-LV":Mu,"nb-NO":Ku,"nl-NL":Lu,"pl-PL":Ou,"pt-BR":zu,"pt-PT":_u,"ro-RO":Vu,"ru-RU":Hu,"sk-SK":ju,"sl-SI":Ru,"sr-SP":Wu,"sv-SE":Uu,"tr-TR":Gu,"uk-UA":Yu,"zh-CN":Xu,"zh-TW":qu};const Ye=s.createContext({}),So=s.createContext(null),J3=s.forwardRef(function(e,n){let{render:r}=s.useContext(So);return s.createElement(s.Fragment,null,r(e,n))});function Wr(t,e){let n=t?.renderDropIndicator,r=t?.isVirtualDragging?.(),i=s.useCallback(o=>{if(r||e?.isDropTarget(o))return n?n(o):s.createElement(J3,{target:o})},[e?.target,r,n]);return t?.useDropIndicator?i:void 0}function Zu(t,e,n){let r=t.focusedKey,i=null;if(e?.isVirtualDragging?.()&&n?.target?.type==="item"&&(i=n.target.key,n.target.dropPosition==="after")){let o=n.collection.getKeyAfter(i),l=null;if(o!=null){let a=n.collection.getItem(i)?.level??0;for(;o!=null;){let u=n.collection.getItem(o);if(!u)break;if(u.type!=="item"){o=n.collection.getKeyAfter(o);continue}if((u.level??0)<=a)break;l=o,o=n.collection.getKeyAfter(o)}}i=o??l??i}return s.useMemo(()=>new Set([r,i].filter(o=>o!=null)),[r,i])}const Po=s.createContext({}),Q3=ot(Ui,function(e,n){return[e,n]=ge(e,n,Po),s.createElement(ee.header,{className:"react-aria-Header",...e,ref:n},e.children)}),Ju=s.createContext(null);function Ur(t){let e=s.useRef({});return s.createElement(Ju.Provider,{value:e},t.children)}const e4=s.forwardRef(function(e,n){let{name:r,isVisible:i=!0,children:o,className:l,style:a,render:u,...d}=e,[c,f]=s.useState(i?"visible":"hidden"),p=s.useContext(Ju);if(!p)throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");i&&c==="hidden"&&f("visible"),n=ke(n),de(()=>{let m=n.current,b=p.current,y=b[r],$=null;if(m&&i&&y){f("visible");let x=m.getAnimations(),v=y.style.map(([C,k])=>{let P=m.style[C];if(C==="translate"){let N=y.rect,w=m.getBoundingClientRect(),D=N.left-w?.left,A=N.top-w?.top;m.style.translate=`${D}px ${A}px`}else m.style[C]=k;return[C,P]});for(let C of m.getAnimations())x.includes(C)||C.cancel();$=requestAnimationFrame(()=>{$=null;for(let[C,k]of v)m.style[C]=k}),delete b[r]}else m&&i&&!y?(queueMicrotask(()=>vt.flushSync(()=>f("entering"))),$=requestAnimationFrame(()=>{$=null,f("visible")})):m&&!i&&queueMicrotask(()=>{b[r]?(delete b[r],vt.flushSync(()=>f("exiting")),Promise.all(m.getAnimations().map(x=>x.finished)).then(()=>f("hidden")).catch(()=>{})):f("hidden")});return()=>{if($!=null&&cancelAnimationFrame($),m&&m.isConnected&&!m.hasAttribute("data-exiting")){let x=window.getComputedStyle(m);if(x.transitionProperty!=="none"){let v=x.transitionProperty.split(/\s*,\s*/);b[r]={rect:m.getBoundingClientRect(),style:v.map(C=>[C,x[C]])}}}}},[n,p,r,i]);let h=se({children:o,className:l,style:a,render:u,values:{isEntering:c==="entering",isExiting:c==="exiting"}});return c==="hidden"?null:s.createElement(ee.div,{...d,...h,ref:n,"data-entering":c==="entering"||void 0,"data-exiting":c==="exiting"||void 0})}),zn=s.createContext({isSelected:!1}),t4=s.forwardRef(function(e,n){[e,n]=ge(e,n,zn);let{isSelected:r,...i}=e;return s.createElement(e4,{...i,ref:n,className:e.className||"react-aria-SelectionIndicator",name:"SelectionIndicator",isVisible:r})});function n4(t){let e=re(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const ko=s.createContext({}),sa=class sa extends He{filter(e,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let i=this.clone();return n.addDescendants(i,e),i}return null}};sa.type="separator";let Do=sa;const Qu=ot(Do,function(e,n){[e,n]=ge(e,n,ko);let{elementType:r,orientation:i,style:o,className:l,slot:a,...u}=e,d=r||"hr";d==="hr"&&i==="vertical"&&(d="div");let c=ee[d],{separatorProps:f}=n4({...u,elementType:r,orientation:i}),p=re(e,{global:!0});return s.createElement(c,{render:e.render,...G(p,f),style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),Gr=new WeakMap;function r4(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function ed(t,e){let n=Gr.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${r4(e)}`}class i4{constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const a=l.shadowRoot;if(a){const u=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(l);if(this.filter?.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}get currentNode(){return this._currentNode}set currentNode(e){if(!te(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return te(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let r;if(typeof this.filter=="function"?r=this.filter(e):this.filter?.acceptNode&&(r=this.filter.acceptNode(e)),r===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let i=this.nextNode();return i&&(this.currentNode=i),i}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(n):this.filter?.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let o=this.lastChild();return o&&(this.currentNode=o),o}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function td(t,e,n,r){return tt()?new i4(t,e,n,r):t.createTreeWalker(e,n,r)}const nd=s.createContext(null),No="react-aria-focus-scope-restore";let be=null;function Yr(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=s.useRef(null),l=s.useRef(null),a=s.useRef([]),{parentNode:u}=s.useContext(nd)||{},d=s.useMemo(()=>new Io({scopeRef:a}),[a]);de(()=>{let p=u||Ce.root;if(Ce.getTreeNode(p.scopeRef)&&be&&!Xr(be,p.scopeRef)){let h=Ce.getTreeNode(be);h&&(p=h)}p.addChild(d),Ce.addNode(d)},[d,u]),de(()=>{let p=Ce.getTreeNode(a);p&&(p.contain=!!n)},[n]),de(()=>{let p=o.current?.nextSibling,h=[],m=b=>b.stopPropagation();for(;p&&p!==l.current;)h.push(p),p.addEventListener(No,m),p=p.nextSibling;return a.current=h,()=>{for(let b of h)b.removeEventListener(No,m)}},[e]),c4(a,r,n),s4(a,n),f4(a,r,n),d4(a,i),s.useEffect(()=>{const p=pe(le(a.current?a.current[0]:void 0));let h=null;if(je(p,a.current)){for(let m of Ce.traverse())m.scopeRef&&je(p,m.scopeRef.current)&&(h=m);h===Ce.getTreeNode(a)&&(be=h.scopeRef)}},[a]),de(()=>()=>{let p=Ce.getTreeNode(a)?.parent?.scopeRef??null;(a===be||Xr(a,be))&&(!p||Ce.getTreeNode(p))&&(be=p),Ce.removeTreeNode(a)},[a]);let c=s.useMemo(()=>o4(a),[]),f=s.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return s.createElement(nd.Provider,{value:f},s.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,s.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function o4(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e,a=r||pe(le(n[0]??void 0)),u=n[0].previousElementSibling,d=jt(n),c=ze(d,{tabbable:i,accept:l},n);c.currentNode=je(a,n)?a:u;let f=c.nextNode();return!f&&o&&(c.currentNode=u,f=c.nextNode()),f&&Xe(f,!0),f},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e,a=r||pe(le(n[0]??void 0)),u=n[n.length-1].nextElementSibling,d=jt(n),c=ze(d,{tabbable:i,accept:l},n);c.currentNode=je(a,n)?a:u;let f=c.previousNode();return!f&&o&&(c.currentNode=u,f=c.previousNode()),f&&Xe(f,!0),f},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=jt(n),l=ze(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&Xe(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=jt(n),l=ze(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&Xe(a,!0),a}}}function jt(t){return t[0].parentElement}function _n(t){let e=Ce.getTreeNode(be);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function l4(t){if(!t.form)return Array.from(le(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(r=>!r.form);const e=t.form.elements.namedItem(t.name);let n=$e(t);return e instanceof n.RadioNodeList?Array.from(e).filter(r=>r instanceof n.HTMLInputElement):e instanceof n.HTMLInputElement?[e]:[]}function a4(t){if(t.checked)return!0;const e=l4(t);return e.length>0&&!e.some(n=>n.checked)}function s4(t,e){let n=s.useRef(void 0),r=s.useRef(void 0);de(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=le(i?i[0]:void 0);let l=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!_n(t)||d.isComposing)return;let c=pe(o),f=t.current;if(!f||!je(c,f))return;let p=jt(f),h=ze(p,{tabbable:!0},f);if(!c)return;h.currentNode=c;let m=d.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,m=d.shiftKey?h.previousNode():h.nextNode()),d.preventDefault(),m&&(Xe(m,!0),m instanceof $e(m).HTMLInputElement&&m.select())},a=d=>{(!be||Xr(be,t))&&je(z(d),t.current)?(be=t,n.current=z(d)):_n(t)&&!Nt(z(d),t)?n.current?Xe(n.current):be&&be.current&&To(be.current):_n(t)&&(n.current=z(d))},u=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=En(),f=(c==="virtual"||c===null)&&Qt()&&Hi(),p=pe(o);if(!f&&p&&_n(t)&&!Nt(p,t)){be=t;let h=z(d);h&&h.isConnected?(n.current=h,Xe(n.current)):be.current&&To(be.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i?.forEach(d=>d.addEventListener("focusin",a,!1)),i?.forEach(d=>d.addEventListener("focusout",u,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i?.forEach(d=>d.removeEventListener("focusin",a,!1)),i?.forEach(d=>d.removeEventListener("focusout",u,!1))}},[t,e]),de(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function rd(t){return Nt(t)}function je(t,e){return!t||!e?!1:e.some(n=>te(n,t))}function Nt(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ce.traverse(Ce.getTreeNode(e)))if(n&&je(t,n.current))return!0;return!1}function u4(t){return Nt(t,be)}function Xr(t,e){let n=Ce.getTreeNode(e)?.parent;for(;n;){if(n.scopeRef===t)return!0;n=n.parent}return!1}function Xe(t,e=!1){if(t!=null&&!e)try{Se(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function id(t,e=!0){let n=t[0].previousElementSibling,r=jt(t),i=ze(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=jt(t),i=ze(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function To(t,e=!0){Xe(id(t,e))}function d4(t,e){const n=s.useRef(e);s.useEffect(()=>{if(n.current){be=t;const r=le(t.current?t.current[0]:void 0);!je(pe(r),be.current)&&t.current&&To(t.current)}n.current=!1},[t])}function c4(t,e,n){de(()=>{if(e||n)return;let r=t.current;const i=le(r?r[0]:void 0);let o=l=>{let a=z(l);je(a,t.current)?be=t:rd(a)||(be=null)};return i.addEventListener("focusin",o,!1),r?.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r?.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function od(t){let e=Ce.getTreeNode(be);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return e?.scopeRef===t}function f4(t,e,n){const r=s.useRef(typeof document<"u"?pe(le(t.current?t.current[0]:void 0)):null);de(()=>{let i=t.current;const o=le(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!be||Xr(be,t))&&je(pe(o),t.current)&&(be=t)};return o.addEventListener("focusin",l,!1),i?.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i?.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,n]),de(()=>{const i=le(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!_n(t)||l.isComposing)return;let a=i.activeElement;if(!Nt(a,t)||!od(t))return;let u=Ce.getTreeNode(t);if(!u)return;let d=u.nodeToRestore,c=ze(i.body,{tabbable:!0});c.currentNode=a;let f=l.shiftKey?c.previousNode():c.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,u.nodeToRestore=void 0),(!f||!Nt(f,t))&&d){c.currentNode=d;do f=l.shiftKey?c.previousNode():c.nextNode();while(Nt(f,t));l.preventDefault(),l.stopPropagation(),f?Xe(f,!0):rd(d)?Xe(d,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),de(()=>{const i=le(t.current?t.current[0]:void 0);if(!e)return;let o=Ce.getTreeNode(t);if(o)return o.nodeToRestore=r.current??void 0,()=>{let l=Ce.getTreeNode(t);if(!l)return;let a=l.nodeToRestore,u=pe(i);if(e&&a&&(u&&Nt(u,t)||u===i.body&&od(t))){let d=Ce.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=d.getTreeNode(t);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){ld(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(t);c;){if(c.scopeRef&&c.scopeRef.current&&Ce.getTreeNode(c.scopeRef)){let f=id(c.scopeRef.current,!0);ld(f);return}c=c.parent}}})}}},[t,e])}function ld(t){t.dispatchEvent(new CustomEvent(No,{bubbles:!0,cancelable:!0}))&&Xe(t)}function ze(t,e,n){let r=e?.tabbable?zi:Sa,i=t?.nodeType===Node.ELEMENT_NODE?t:null,o=le(i),l=td(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){return te(e?.from,a)||e?.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!a4(a)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:r(a)&&(!n||je(a,n))&&(!e?.accept||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e?.from&&(l.currentNode=e.from),l}class Ao{constructor(){this.fastMap=new Map,this.root=new Io({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Io({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&je(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){let e=new Ao;for(let n of this.traverse())e.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return e}}class Io{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let Ce=new Ao;function Bo(t){return Cr()?t.altKey:t.ctrlKey}function Rt(t,e){let n=`[data-key="${CSS.escape(String(e))}"]`,r=t.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),t.current?.querySelector(n)}const ad=new WeakMap;function p4(t){let e=xe();return ad.set(t,e),e}function h4(t){return ad.get(t)}const sd=1e3;function ud(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=s.useRef({search:"",timeout:void 0}),o=a=>{if(i.current.search.length>0&&a.key===" "){if(a.preventDefault(),(!("continuePropagation"in a)||"continuePropagation"in a&&!a.isPropagationStopped())&&a.stopPropagation(),i.current.search+=" ",e.getKeyForSearch!=null){let u=e.getKeyForSearch(i.current.search,n.focusedKey);u==null&&(u=e.getKeyForSearch(i.current.search)),u!=null&&(n.setFocusedKey(u),r&&r(u))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},sd)}},l=a=>{let u=m4(a.key);if(!(!u||a.ctrlKey||a.metaKey||a.altKey||!te(a.currentTarget,z(a))||i.current.search.length===0&&u===" ")){if(i.current.search+=u,e.getKeyForSearch!=null){let d=e.getKeyForSearch(i.current.search,n.focusedKey);if(d==null&&(d=e.getKeyForSearch(i.current.search)),d!=null)n.setFocusedKey(d),r&&r(d),a.preventDefault(),"continuePropagation"in a||a.stopPropagation();else{i.current.search="",clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},sd)}};return s.useEffect(()=>{let a=i.current.timeout;return()=>{clearTimeout(a)}},[i]),{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0,onKeyDown:e.getKeyForSearch?l:void 0}}}function m4(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function dd(t,e){const n=s.useRef(!0),r=s.useRef(null);de(()=>(n.current=!0,()=>{n.current=!1}),[]),de(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function qr(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:u="clearSelection",selectOnFocus:d=e.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,scrollRef:h=r,linkBehavior:m="action",UNSTABLE_focusOnEntry:b}=t,{direction:y}=Ne(),$=Mt();const x=(B,K,ue)=>{if(K!=null){if(e.isLink(K)&&m==="selection"&&d&&!Bo(B)){vt.flushSync(()=>{e.setFocusedKey(K,ue)});let fe=Rt(r,K),ut=e.getItemProps(K);if(fe){$.open(fe,B,ut.href,ut.routerOptions);return}return!1}if(e.setFocusedKey(K,ue),e.isLink(K)&&m==="override")return!1;if(B.shiftKey&&e.selectionMode==="multiple"){e.extendSelection(K);return}else if(d&&!Bo(B)){e.replaceSelection(K);return}}return!1};let v=B=>{if(n.getKeyBelow){let K=e.focusedKey!=null?n.getKeyBelow?.(e.focusedKey):n.getFirstKey?.();if(K==null&&o&&(K=n.getFirstKey?.(e.focusedKey)),K!=null){x(B,K);return}}return!1},C=B=>{if(n.getKeyAbove){let K=e.focusedKey!=null?n.getKeyAbove?.(e.focusedKey):n.getLastKey?.();if(K==null&&o&&(K=n.getLastKey?.(e.focusedKey)),K!=null){x(B,K);return}}return!1},k=B=>{if(n.getFirstKey){if(e.focusedKey===null&&B.shiftKey)return!1;let K=n.getFirstKey(e.focusedKey,wn(B));if(e.setFocusedKey(K),K!=null){if(wn(B)&&B.shiftKey&&e.selectionMode==="multiple"){e.extendSelection(K);return}else if(d){e.replaceSelection(K);return}}}return!1},P=B=>{if(n.getKeyLeftOf){let K=e.focusedKey!=null?n.getKeyLeftOf?.(e.focusedKey):n.getFirstKey?.();if(K==null&&o&&(K=y==="rtl"?n.getFirstKey?.(e.focusedKey):n.getLastKey?.(e.focusedKey)),K!=null){x(B,K,y==="rtl"?"first":"last");return}}return!1},N=B=>{if(n.getKeyRightOf){let K=e.focusedKey!=null?n.getKeyRightOf?.(e.focusedKey):n.getFirstKey?.();if(K==null&&o&&(K=y==="rtl"?n.getLastKey?.(e.focusedKey):n.getFirstKey?.(e.focusedKey)),K!=null){x(B,K,y==="rtl"?"last":"first");return}}return!1},w=B=>{if(n.getLastKey){if(e.focusedKey===null&&B.shiftKey)return!1;let K=n.getLastKey(e.focusedKey,wn(B));if(e.setFocusedKey(K),K!=null){if(wn(B)&&B.shiftKey&&e.selectionMode==="multiple"){e.extendSelection(K);return}else if(d){e.replaceSelection(K);return}}}return!1},D=B=>{if(n.getKeyPageBelow&&e.focusedKey!=null){let K=n.getKeyPageBelow(e.focusedKey);if(K!=null)return x(B,K)}return!1},A=B=>{if(n.getKeyPageAbove&&e.focusedKey!=null){let K=n.getKeyPageAbove(e.focusedKey);if(K!=null)return x(B,K)}return!1},L=()=>{if(e.selectionMode==="multiple"&&a!==!0){e.selectAll();return}return!1},_=()=>{if(u==="clearSelection"&&!l&&e.selectedKeys.size!==0){e.clearSelection();return}return!1},R=()=>{if(!p&&r.current){let B=ze(r.current,{tabbable:!0}),K,ue;do ue=B.lastChild(),ue&&(K=ue);while(ue);let fe=pe();K&&(!Ft(K)||fe&&!zi(fe))&&Ue(K)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},E=()=>(!p&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),F=(B,K)=>({[_e()?B+"+Shift+Alt":B+"+Shift+Control"]:K,[B+"+Shift"]:K,[_e()?B+"+Alt":B+"+Control"]:K,[B]:K}),{keyboardProps:Z}=Ge({shortcuts:{...F("ArrowDown",v),...F("ArrowUp",C),...F("ArrowLeft",P),...F("ArrowRight",N),...F("PageDown",D),...F("PageUp",A)},allowRepeats:!0}),{keyboardProps:M}=Ge({shortcuts:{...F("Home",k),...F("End",w),"Mod+A":L,Escape:_,Tab:R,"Tab+Shift":E}}),Y=s.useRef({top:0,left:0});Pn(h,"scroll",()=>{Y.current={top:h.current?.scrollTop??0,left:h.current?.scrollLeft??0}});let S=B=>{if(e.isFocused){te(B.currentTarget,z(B))||e.setFocused(!1);return}if(!te(B.currentTarget,z(B)))return;let K=En();e.setFocused(!0);let ue=fe=>{fe!=null&&(e.setFocusedKey(fe),d&&!e.isSelected(fe)&&e.replaceSelection(fe))};if(b&&(K==="keyboard"||K==="virtual"))ue(b==="first"?n.getFirstKey?.():n.getLastKey?.());else if(e.focusedKey==null){let fe=B.relatedTarget;fe&&B.currentTarget.compareDocumentPosition(fe)&Node.DOCUMENT_POSITION_FOLLOWING?ue(e.lastSelectedKey??n.getLastKey?.()):ue(e.firstSelectedKey??n.getFirstKey?.())}else h.current&&(h.current.scrollTop=Y.current.top,h.current.scrollLeft=Y.current.left);if(e.focusedKey!=null&&h.current){let fe=Rt(r,e.focusedKey);fe instanceof HTMLElement&&(!Ft(fe)&&!f&&Ue(fe),(K==="keyboard"||b&&K==="virtual")&&Dt(fe,{containingElement:r.current}))}},I=B=>{te(B.currentTarget,B.relatedTarget)||e.setFocused(!1)},U=s.useRef(!1);Pn(r,Xg,f?B=>{let{detail:K}=B;B.stopPropagation(),e.setFocused(!0),K?.focusStrategy==="first"&&(U.current=!0)}:void 0);let oe=n.getFirstKey?.()??null;dd(()=>{if(U.current)if(oe==null){let B=pe();wa(r.current),Ki(B,null),e.collection.size>0&&(U.current=!1)}else e.setFocusedKey(oe),U.current=!1},[oe,e.collection.size]),dd(()=>{e.collection.size>0&&(U.current=!1)},[e.focusedKey]),Pn(r,Yg,f?B=>{B.stopPropagation(),e.setFocused(!1),B.detail?.clearFocusKey&&e.setFocusedKey(null)}:void 0);const V=s.useRef(i),ne=s.useRef(!1);s.useEffect(()=>{if(V.current){let B=null;i==="first"&&(B=n.getFirstKey?.()??null),i==="last"&&(B=n.getLastKey?.()??null);let K=e.selectedKeys;if(K.size){for(let ue of K)if(e.canSelectItem(ue)){B=ue;break}}e.setFocused(!0),e.setFocusedKey(B),B==null&&!f&&r.current&&Se(r.current),e.collection.size>0&&(V.current=!1,ne.current=!0)}});let T=s.useRef(e.focusedKey),O=s.useRef(null);s.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==T.current||ne.current)&&h.current&&r.current){let B=En(),K=Rt(r,e.focusedKey);if(!(K instanceof HTMLElement))return;(B==="keyboard"||ne.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{h.current&&(Rr(h.current,K),B!=="virtual"&&Dt(K,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&T.current!=null&&r.current&&Se(r.current),T.current=e.focusedKey,ne.current=!1}),s.useEffect(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),Pn(r,"react-aria-focus-scope-restore",B=>{B.preventDefault(),e.setFocused(!0)});let J={...G(M,Z),onFocus:S,onBlur:I,onMouseDown(B){h.current===z(B)&&B.preventDefault()}},{typeSelectProps:ce}=ud({keyboardDelegate:n,selectionManager:e});c||(J=G(ce,J));let he;f||(he=e.focusedKey==null?0:-1);let et=p4(e.collection);return{collectionProps:G(J,{tabIndex:he,"data-collection":et})}}class Fo{constructor(e){this.ref=e}getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?Rt(this.ref,e):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left-n.clientLeft+n.scrollLeft,y:o.top-i.top-n.clientTop+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}}class Vn{constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Fo(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Fo(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return this.disabledBehavior==="all"&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!=="selection"}findNextNonDisabled(e,n,r=!1){let i=e;for(;i!=null;){let o=this.collection.getItem(i);if(o?.type==="item"&&(r||!this.isDisabled(o)))return i;i=n(i)}return null}getNextKey(e,n){let r=e;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,i=>this.collection.getKeyAfter(i),n?.includeDisabled)}getPreviousKey(e,n){let r=e;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,i=>this.collection.getKeyBefore(i),n?.includeDisabled)}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}isReversed(e){let n=this.getNextKey(e),r=Rt(this.ref,e);if(n!=null){let o=Rt(this.ref,n);return!r||!o?!1:r.getBoundingClientRect().top>o.getBoundingClientRect().top}let i=this.getPreviousKey(e);if(i!=null){let o=Rt(this.ref,i);return!r||!o?!1:o.getBoundingClientRect().top>r.getBoundingClientRect().top}return!1}getKeyBelow(e,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getNextKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(e)?this.getPreviousKey(e,n):this.getNextKey(e,n):this.getNextKey(e,n)}getKeyAbove(e,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getPreviousKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(e)?this.getNextKey(e,n):this.getPreviousKey(e,n):this.getPreviousKey(e,n)}getNextColumn(e,n,r){return n?this.getPreviousKey(e,r):this.getNextKey(e,r)}getKeyRightOf(e,n){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[r](i),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl",n):this.findKey(e,i=>this.getNextColumn(i,this.direction==="rtl",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl",n):null}getKeyLeftOf(e,n){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[r](i),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr",n):this.findKey(e,i=>this.getNextColumn(i,this.direction==="ltr",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr",n):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;let i=this.isReversed(e);if(n&&!kt(n))return this.getFirstKey();let o=e;if(this.orientation==="horizontal"){let l=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>l&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let l=this.layoutDelegate.getVisibleRect(),a=i?r.y-l.height:Math.max(0,r.y+r.height-l.height);for(;r&&r.y>a&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??(i?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;let i=this.isReversed(e);if(n&&!kt(n))return this.getLastKey();let o=e;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,r.x-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<l&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<l&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??(i?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}}let Mo=new Map;function sn(t){let{locale:e}=Ne(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Mo.has(n))return Mo.get(n);let r=new Intl.Collator(e,t);return Mo.set(n,r),r}function cd(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l,orientation:a}=t,u=sn({usage:"search",sensitivity:"base"}),d=e.disabledBehavior,c=s.useMemo(()=>o||new Vn({collection:n,disabledKeys:r,disabledBehavior:d,ref:i,collator:u,layoutDelegate:l,orientation:a}),[o,l,n,r,i,u,d,a]),{collectionProps:f}=qr({...t,ref:i,selectionManager:e,keyboardDelegate:c});return{listProps:f}}function g4(t,e,n){let r=re(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.orientation||"vertical",l=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&l==="action"&&(l="override");let{listProps:a}=cd({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:l}),{focusWithinProps:u}=Bn({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),d=xe(t.id);Gr.set(e,{id:d,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:l,UNSTABLE_itemBehavior:t.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:f}=uo({...t,id:d,labelElementType:"span"});return{labelProps:c,listBoxProps:G(r,u,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":o,...G(f,a)})}}const b4=500;function Ko(t){let{isDisabled:e,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:o,threshold:l=b4,accessibilityDescription:a}=t;const u=s.useRef(void 0);let{addGlobalListener:d,removeAllGlobalListeners:c}=In(),f=m=>n?m.pointerType===n:m.pointerType==="mouse"||m.pointerType==="touch",{pressProps:p}=zt({isDisabled:e,onPressStart(m){if(m.continuePropagation(),f(m)){r&&r({...m,type:"longpressstart"}),u.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),d(m.target,"click",y=>y.preventDefault(),{once:!0}),le(m.target).activeElement!==m.target&&Ue(m.target),o&&o({...m,type:"longpress"}),u.current=void 0},l),m.pointerType==="touch"&&d(m.target,"contextmenu",y=>y.preventDefault(),{once:!0});let b=$e(m.target);d(b,"pointerup",()=>{setTimeout(()=>{c()},100)},{once:!0})}},onPressEnd(m){u.current&&clearTimeout(u.current),i&&f(m)&&i({...m,type:"longpressend"})}}),h=Ln(o&&!e?a:void 0);return{longPressProps:G(p,h)}}function Hn(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:u,onAction:d,allowsDifferentPressOrigin:c,linkBehavior:f="action"}=t,p=Mt();e=xe(e);let h=T=>{if(T.pointerType==="keyboard"&&Bo(T))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let O=n.getItemProps(r);p.open(i.current,T,O.href,O.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):T&&T.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||T&&(wn(T)||T.pointerType==="touch"||T.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};s.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?wa(i.current):a?a():pe()!==i.current&&i.current&&Se(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),u=u||n.isDisabled(r);let m={};!l&&!u?m={tabIndex:r===n.focusedKey?0:-1,onFocus(T){z(T)===i.current&&n.setFocusedKey(r)}}:u&&(m.onMouseDown=T=>{T.preventDefault()}),s.useEffect(()=>{u&&n.focusedKey===r&&n.setFocusedKey(null)},[n,u,r]);let b=n.isLink(r)&&f==="override",y=d&&t.UNSTABLE_itemBehavior==="action",$=n.isLink(r)&&f!=="selection"&&f!=="none",x=!u&&n.canSelectItem(r)&&!b&&!y,v=(d||$)&&!u,C=v&&(n.selectionBehavior==="replace"?!x:!x||n.isEmpty),k=v&&x&&n.selectionBehavior==="replace",P=C||k,N=s.useRef(null),w=P&&x,D=s.useRef(!1),A=s.useRef(!1),L=n.getItemProps(r),_=T=>{d&&(d(),i.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),$&&i.current&&p.open(i.current,T,L.href,L.routerOptions)},R={ref:i};o?(R.onPressStart=T=>{N.current=T.pointerType,D.current=w,T.pointerType==="keyboard"&&(!P||pd(T.key))&&h(T)},c?(R.onPressUp=C?void 0:T=>{T.pointerType==="mouse"&&x&&h(T)},R.onPress=C?_:T=>{T.pointerType!=="keyboard"&&T.pointerType!=="mouse"&&x&&h(T)}):R.onPress=T=>{if(C||k&&T.pointerType!=="mouse"){if(T.pointerType==="keyboard"&&!fd(T.key))return;_(T)}else T.pointerType!=="keyboard"&&x&&h(T)}):(R.onPressStart=T=>{N.current=T.pointerType,D.current=w,A.current=C,x&&(T.pointerType==="mouse"&&!C||T.pointerType==="keyboard"&&(!v||pd(T.key)))&&h(T)},R.onPress=T=>{(T.pointerType==="touch"||T.pointerType==="pen"||T.pointerType==="virtual"||T.pointerType==="keyboard"&&P&&fd(T.key)||T.pointerType==="mouse"&&A.current)&&(P?_(T):x&&h(T))});let E=h4(n.collection);if(m["data-collection"]=E,m["data-key"]=r,R.preventFocusOnPress=l,l&&(R=G(R,{onPressStart(T){T.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(T){T.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),L)for(let T of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])L[T]&&(R[T]=We(R[T],L[T]));let{pressProps:F,isPressed:Z}=zt(R),M=k?T=>{N.current==="mouse"&&(T.stopPropagation(),T.preventDefault(),_(T))}:void 0,{longPressProps:Y}=Ko({isDisabled:!w,onLongPress(T){T.pointerType==="touch"&&(h(T),n.setSelectionBehavior("toggle"))}}),S=T=>{N.current==="touch"&&D.current&&T.preventDefault()},I=f!=="none"&&n.isLink(r)?T=>{pt.isOpening||T.preventDefault()}:void 0,U=G(m,x||C||l&&!u?F:{},w?Y:{},{onDoubleClick:M,onDragStartCapture:S,onClick:I,id:e},l?{onMouseDown:T=>T.preventDefault()}:void 0),oe=T=>{let O=T;for(;O&&O!==i.current;){let J=O.getAttribute("data-collection");if(J!=null)return J!==E;O=O.parentElement}return zi(T)},V=U.onPointerDown;U.onPointerDown=T=>{let O=z(T);if(O&&O!==i.current&&oe(O)){T.stopPropagation();return}V?.(T)};let ne=U.onMouseDown;return U.onMouseDown=T=>{let O=z(T);if(O&&O!==i.current&&oe(O)){T.stopPropagation();return}ne?.(T)},{itemProps:U,isPressed:Z,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:u,allowsSelection:x,hasAction:P}}function fd(t){return t==="Enter"}function pd(t){return t===" "}function Ee(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function gt(t){return jn(t,0)}function jn(t,e){if(e<0)return;let n=0;for(let r of t){if(n===e)return r;n++}}function un(t){let e;for(let n of t)e=n;return e}function Lo(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...hd(t,e),e],i=[...hd(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function hd(t,e){let n=[],r=e;for(;r?.parentKey!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const md=new WeakMap;function Oo(t){let e=md.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(Ee(o,t)):o.type==="item"&&n++};return r(t),md.set(t,n),n}function y4(t,e,n){let{key:r}=t,i=Gr.get(e),o=t.isDisabled??e.selectionManager.isDisabled(r),l=t.isSelected??e.selectionManager.isSelected(r),a=t.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,u=t.shouldFocusOnHover??i?.shouldFocusOnHover,d=t.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,c=t.isVirtualized??i?.isVirtualized,f=dt(),p=dt(),h={role:"option","aria-disabled":o||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?l:void 0,"aria-label":t["aria-label"],"aria-labelledby":f,"aria-describedby":p},m=e.collection.getItem(r);if(c){let D=Number(m?.index);h["aria-posinset"]=Number.isNaN(D)?void 0:D+1,h["aria-setsize"]=Oo(e.collection)}let b=i?.onAction?()=>i?.onAction?.(r):void 0,y=ed(e,r),{itemProps:$,isPressed:x,isFocused:v,hasAction:C,allowsSelection:k}=Hn({selectionManager:e.selectionManager,key:r,ref:n,shouldSelectOnPressUp:a,allowsDifferentPressOrigin:a&&u,isVirtualized:c,shouldUseVirtualFocus:d,isDisabled:o,onAction:b||m?.props?.onAction?We(m?.props?.onAction,b):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:y}),{hoverProps:P}=Ie({isDisabled:o||!u,onHoverStart(){Et()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(r))}}),N=re(m?.props);delete N.id;let w=Er(m?.props);return{optionProps:{...h,...G(N,$,P,w),id:y},labelProps:{id:f},descriptionProps:{id:p},isFocused:v,isFocusVisible:v&&e.selectionManager.isFocused&&Et(),isSelected:l,isDisabled:o,isPressed:x,allowsSelection:k,hasAction:C}}function $4(t){let{heading:e,"aria-label":n}=t,r=xe();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation",onMouseDown:i=>{i.preventDefault()}}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}function gd(t){const e=s.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}class zo{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)n(a)};for(let l of e)n(l);let r=null,i=0,o=0;for(let[l,a]of this.keyMap)r?(r.nextKey=l,a.prevKey=r.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=i++),(a.type==="section"||a.type==="item")&&o++,r=a,r.nextKey=void 0;this._size=o,this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey??null:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}}class qe extends Set{constructor(e,n,r){super(e),e instanceof qe?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function v4(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Rn(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=s.useRef(!1),[,a]=s.useState(!1),u=s.useRef(null),d=s.useRef(null),[,c]=s.useState(null),f=s.useMemo(()=>bd(t.selectedKeys),[t.selectedKeys]),p=s.useMemo(()=>bd(t.defaultSelectedKeys,new qe),[t.defaultSelectedKeys]),[h,m]=it(f,p,t.onSelectionChange),b=s.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[y,$]=s.useState(i);i==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&$("replace");let x=s.useRef(i);return s.useEffect(()=>{i!==x.current&&($(i),x.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return l.current},setFocused(v){l.current=v,a(v)},get focusedKey(){return u.current},get childFocusStrategy(){return d.current},setFocusedKey(v,C="first"){u.current=v,d.current=C,c(v)},selectedKeys:h,setSelectedKeys(v){(r||!v4(v,h))&&m(v)},disabledKeys:b,disabledBehavior:o}}function bd(t,e){return t?t==="all"?"all":new qe(t):e}class dn{constructor(e,n,r){this.collection=e,this.state=n,this.allowsCellSelection=r?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null,this.fullCollection=r?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!e||r&&Lo(this.collection,r,e)<0)&&(e=r)}return e?.key??null}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!e||r&&Lo(this.collection,r,e)>0)&&(e=r)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new qe([n],n,n);else{let i=this.state.selectedKeys,o=i.anchorKey??n;r=new qe(i,o,n);for(let l of this.getKeyRange(o,i.currentKey??n))r.delete(l);for(let l of this.getKeyRange(n,o))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?Lo(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let r=[],i=e;for(;i!=null;){let o=this.collection.getItem(i);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&r.push(i),i===n)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new qe(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new qe([n],n,n):new qe;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new qe;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=this.fullCollection??this.collection,n=[],r=i=>{for(;i!=null;){if(this.canSelectItemIn(i,e)){let o=e.getItem(i);o?.type==="item"&&n.push(i),o?.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&r(gt(Ee(o,e))?.key??null)}i=e.getKeyAfter(i)}};return r(e.getFirstKey()),n}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new qe)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,n){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=n.getItem(e);return!(!r||r?.props?.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){let n=this.collection.getItem(e);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!n?.props?.isDisabled)&&n?.props?.disabledBehavior!=="selection"}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(e){return new dn(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class x4{build(e,n){return this.context=n,yd(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(s.isValidElement(n)&&n.type===s.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];s.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let a=this.getFullNode({element:l,index:o},{});for(let u of a)o++,yield u}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){let l=o.key??o.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(s.isValidElement(e.element)&&e.element.type===s.Fragment){let u=[];s.Children.forEach(e.element.props.children,c=>{u.push(c)});let d=e.index??0;for(const c of u)yield*this.getFullNode({element:c,index:d++},n,r,i);return}let o=e.element;if(!o&&e.value&&n&&n.renderer){let u=this.cache.get(e.value);if(u&&(!u.shouldInvalidate||!u.shouldInvalidate(this.context))){u.index=e.index,u.parentKey=i?i.key:null,yield u;return}o=n.renderer(e.value)}if(s.isValidElement(o)){let u=o.type;if(typeof u!="function"&&typeof u.getCollectionNode!="function"){let p=o.type;throw new Error(`Unknown element <${p}> in collection.`)}let d=u.getCollectionNode(o.props,this.context),c=e.index??0,f=d.next();for(;!f.done&&f.value;){let p=f.value;e.index=c;let h=p.key??null;h==null&&(h=p.element?null:this.getKey(o,e,n,r));let b=[...this.getFullNode({...p,key:h,index:c,wrapper:C4(e.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${o.key}`:o.key,i)];for(let y of b){if(y.value=p.value??e.value??null,y.value&&this.cache.set(y.value,y),e.type&&y.type!==e.type)throw new Error(`Unsupported type <${_o(y.type)}> in <${_o(i?.type??"unknown parent type")}>. Only <${_o(e.type)}> is supported.`);c++,yield y}f=d.next(b)}return}if(e.key==null||e.type==null)return;let l=this,a={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value??null,level:(i?.level??0)+(i?.type==="item"?1:0),index:e.index,rendered:e.rendered,textValue:e.textValue??"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:yd(function*(){if(!e.hasChildNodes||!e.childNodes)return;let u=0;for(let d of e.childNodes()){d.key!=null&&(d.key=`${a.key}${d.key}`);let c=l.getFullNode({...d,index:u},l.getChildState(n,d),a.key,a);for(let f of c)u++,yield f}})};yield a}constructor(){this.cache=new WeakMap}}function yd(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function C4(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function _o(t){return t[0].toUpperCase()+t.slice(1)}function Vo(t,e,n){let r=s.useMemo(()=>new x4,[]),{children:i,items:o,collection:l}=t;return s.useMemo(()=>{if(l)return l;let u=r.build({children:i,items:o},n);return e(u)},[r,i,o,l,n,e])}function Zr(t){let{filter:e,layoutDelegate:n}=t,r=Rn(t),i=s.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=s.useCallback(d=>e?new zo(e(d)):new zo(d),[e]),l=s.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=Vo(t,o,l),u=s.useMemo(()=>new dn(a,r,{layoutDelegate:n}),[a,r,n]);return $d(a,u),{collection:a,disabledKeys:i,selectionManager:u}}function E4(t,e){let n=s.useMemo(()=>e?t.collection.filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return $d(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function $d(t,e){const n=s.useRef(null);s.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){let r=n.current.getKeyAfter(e.focusedKey),i=null;for(;r!=null;){let o=t.getItem(r);if(o&&o.type==="item"&&!e.isDisabled(r)){i=r;break}r=n.current.getKeyAfter(r)}if(i==null)for(r=n.current.getKeyBefore(e.focusedKey);r!=null;){let o=t.getItem(r);if(o&&o.type==="item"&&!e.isDisabled(r)){i=r;break}r=n.current.getKeyBefore(r)}e.setFocusedKey(i)}n.current=t},[t,e])}function vd(t,e){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:o="end"}=t,l=s.useRef(null),a=De(u=>{for(let d of u)d.isIntersecting&&r&&r()});de(()=>{if(e.current){const u=100*i,d=o==="start"?`${u}% 0px 0px 0px`:`0px ${u}% ${u}% ${u}%`;l.current=new IntersectionObserver(a,{root:mt(e?.current),rootMargin:d}),l.current.observe(e.current)}return()=>{l.current&&l.current.disconnect()}},[n,e,i,o])}const Wn=s.createContext(null),Wt=s.createContext(null),w4=s.forwardRef(function(e,n){[e,n]=ge(e,n,Wn);let r=s.useContext(Wt);return r?s.createElement(xd,{state:r,props:e,listBoxRef:n}):s.createElement(Lt,{content:s.createElement(Ot,e)},i=>s.createElement(S4,{props:e,listBoxRef:n,collection:i}))});function S4({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=s.useContext(me),i=Zr({...t,layoutDelegate:r});return s.createElement(xd,{state:i,props:t,listBoxRef:e})}function xd({state:t,props:e,listBoxRef:n}){[e,n]=ge(e,n,Dn);let{dragAndDropHooks:r,layout:i="stack",orientation:o="vertical",filter:l}=e,a=E4(t,l),{collection:u,selectionManager:d}=a,c=!!r?.useDraggableCollectionState,f=!!r?.useDroppableCollectionState,{direction:p}=Ne(),{disabledBehavior:h,disabledKeys:m}=d,b=sn({usage:"search",sensitivity:"base"}),{isVirtualized:y,layoutDelegate:$,dropTargetDelegate:x,CollectionRoot:v}=s.useContext(me),C=s.useMemo(()=>e.keyboardDelegate||new Vn({collection:u,collator:b,ref:n,disabledKeys:m,disabledBehavior:h,layout:i,orientation:o,direction:p,layoutDelegate:$}),[u,b,n,h,m,o,p,e.keyboardDelegate,i,$]),{listBoxProps:k}=g4({...e,shouldSelectOnPressUp:c||e.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:y},a,n),P=s.useRef(c),N=s.useRef(f);s.useEffect(()=>{process.env.NODE_ENV!=="production"&&(P.current!==c&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),N.current!==f&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[c,f]);let w,D,A,L=!1,_=null,R=s.useRef(null);if(c&&r){w=r.useDraggableCollectionState({collection:u,selectionManager:d,preview:r.renderDragPreview?R:void 0}),r.useDraggableCollection({},w,n);let oe=r.DragPreview;_=r.renderDragPreview?s.createElement(oe,{ref:R},r.renderDragPreview):null}if(f&&r){D=r.useDroppableCollectionState({collection:u,selectionManager:d});let oe=r.dropTargetDelegate||x||new r.ListDropTargetDelegate(u,n,{orientation:o,layout:i,direction:p});A=r.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:oe},D,n),L=D.isDropTarget({type:"root"})}let{focusProps:E,isFocused:F,isFocusVisible:Z}=Ae(),M=a.collection.size===0,Y={isDropTarget:L,isEmpty:M,isFocused:F,isFocusVisible:Z,layout:e.layout||"stack",orientation:o,state:a},S=se({...e,children:void 0,defaultClassName:"react-aria-ListBox",values:Y}),I=null;M&&e.renderEmptyState&&(I=s.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(Y)));let U=re(e,{global:!0});return s.createElement(Yr,null,s.createElement(ee.div,{...G(U,S,k,E,A?.collectionProps),ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":L||void 0,"data-empty":M||void 0,"data-focused":F||void 0,"data-focus-visible":Z||void 0,"data-layout":e.layout||"stack","data-orientation":o},s.createElement(Te,{values:[[Wn,e],[Wt,a],[Ye,{dragAndDropHooks:r,dragState:w,dropState:D}],[ko,{elementType:"div"}],[So,{render:D4}],[ls,{name:"ListBoxSection",render:P4}]]},s.createElement(Ur,null,s.createElement(v,{collection:u,scrollRef:n,persistedKeys:Zu(d,r,D),renderDropIndicator:Wr(r,D)}))),I,_))}function P4(t,e,n,r="react-aria-ListBoxSection"){let i=s.useContext(Wt),{dragAndDropHooks:o,dropState:l}=s.useContext(Ye),{CollectionBranch:a}=s.useContext(me),[u,d]=vn(),{headingProps:c,groupProps:f}=$4({heading:d,"aria-label":t["aria-label"]??void 0}),p=se({...t,id:void 0,children:void 0,defaultClassName:r,values:void 0}),h=re(t,{global:!0});return delete h.id,s.createElement(ee.section,{...G(h,p,f),ref:e},s.createElement(Po.Provider,{value:{...c,ref:u}},s.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:Wr(o,l)})))}const k4=ot(Ir,function(e,n,r){let i=ke(n),o=s.useContext(Wt),{dragAndDropHooks:l,dragState:a,dropState:u}=s.useContext(Ye),d=a&&!(a.isDisabled||a.selectionManager.isDisabled(r.key)),{optionProps:c,labelProps:f,descriptionProps:p,...h}=y4({key:r.key,"aria-label":e?.["aria-label"]},o,i),{hoverProps:m,isHovered:b}=Ie({isDisabled:!h.allowsSelection&&!h.hasAction&&!d,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),{keyboardProps:y}=Ge(e),{focusProps:$}=Xi(e),x=null;a&&l&&(x=l.useDraggableItem({key:r.key,hasAction:h.hasAction},a));let v=null;u&&l&&(v=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},u,i));let C=a&&a.isDragging(r.key),k=se({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...h,isHovered:b,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:C,isDropTarget:v?.isDropTarget}});s.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let P=e.href?ee.a:ee.div,N=re(e,{global:!0});return delete N.id,delete N.onClick,e.href&&c.tabIndex==null&&(c.tabIndex=-1),s.createElement(P,{...G(N,k,c,m,y,$,x?.dragProps,v?.dropProps),ref:i,"data-allows-dragging":!!a||void 0,"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":C||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},s.createElement(Te,{values:[[Pt,{slots:{[ct]:f,label:f,description:p}}],[zn,{isSelected:h.isSelected}]]},k.children))});function D4(t,e){e=ke(e);let{dragAndDropHooks:n,dropState:r}=s.useContext(Ye),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:s.createElement(T4,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function N4(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=se({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return s.createElement(s.Fragment,null,s.createElement(ee.div,{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0}))}const T4=s.forwardRef(N4);ot(Ar,function(e,n,r){let i=s.useContext(Wt),{isLoading:o,onLoadMore:l,scrollOffset:a,...u}=e,d=s.useRef(null),c=s.useMemo(()=>({onLoadMore:l,collection:i?.collection,sentinelRef:d,scrollOffset:a}),[l,a,i?.collection]);vd(c,d);let f=se({...u,id:void 0,children:r.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),p={tabIndex:-1};return s.createElement(s.Fragment,null,s.createElement("div",{style:{position:"relative",width:0,height:0},inert:gd(!0)},s.createElement("div",{"data-testid":"loadMoreSentinel",ref:d,style:{position:"absolute",height:1,width:1}})),o&&f.children&&s.createElement(s.Fragment,null,s.createElement(ee.div,{...G(re(e,{global:!0}),p),...f,role:"option",ref:n},f.children)))});const Cd=s.createContext({placement:"bottom"}),A4=s.forwardRef(function(e,n){[e,n]=ge(e,n,Cd);let r=e.placement,i={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(i[r]="100%");let o=se({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});o.style&&Object.keys(o.style).forEach(a=>o.style[a]===void 0&&delete o.style[a]);let l=re(e);return s.createElement(ee.div,{...l,...o,style:{...i,...o.style},ref:n,"data-placement":r})}),I4=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function Ed(t){return t.dataset.liveAnnouncer==="true"||t.dataset.reactAriaTopLayer!==void 0}let Un=new WeakMap,Ke=[];function Ho(t,e){let n=$e(t?.[0]),r=e instanceof n.Element?{root:e}:e,i=r?.root??document.body,o=r?.shouldUseInert&&I4,l=new Set(t),a=new Set,u=y=>o&&y instanceof n.HTMLElement?y.inert:y.getAttribute("aria-hidden")==="true",d=(y,$)=>{o&&y instanceof n.HTMLElement?y.inert=$:$?y.setAttribute("aria-hidden","true"):(y.removeAttribute("aria-hidden"),y instanceof n.HTMLElement&&(y.inert=!1))},c=new Set;if(tt()){let y=i.getRootNode();for(let $ of t){let x=$.getRootNode();for(;Mi(x)&&x!==y;)c.add(x),x=x.host.getRootNode()}}let f=y=>{for(let C of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(C);let $=C=>{if(a.has(C)||l.has(C)||C.parentElement&&a.has(C.parentElement)&&C.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let k of l)if(te(C,k))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},x=td(le(y),y,NodeFilter.SHOW_ELEMENT,{acceptNode:$}),v=$(y);if(v===NodeFilter.FILTER_ACCEPT&&p(y),v!==NodeFilter.FILTER_REJECT){let C=x.nextNode();for(;C!=null;)p(C),C=x.nextNode()}},p=y=>{let $=Un.get(y)??0;u(y)&&$===0||($===0&&d(y,!0),a.add(y),Un.set(y,$+1))};Ke.length&&Ke[Ke.length-1].disconnect(),f(i);let h=new MutationObserver(y=>{for(let $ of y)if($.type==="childList"){if($.target.isConnected&&![...l,...a].some(x=>te(x,$.target)))for(let x of $.addedNodes)(x instanceof HTMLElement||x instanceof SVGElement)&&Ed(x)?l.add(x):x instanceof Element&&f(x);if(tt()){for(let x of c)if(!x.isConnected){h.disconnect();break}}}});h.observe(i,{childList:!0,subtree:!0});let m=new Set;if(tt())for(let y of c){let $=new MutationObserver(x=>{for(let v of x)if(v.type==="childList"){if(v.target.isConnected&&![...l,...a].some(C=>te(C,v.target)))for(let C of v.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&Ed(C)?l.add(C):C instanceof Element&&f(C);if(tt()){for(let C of c)if(!C.isConnected){h.disconnect();break}}}});$.observe(y,{childList:!0,subtree:!0}),m.add($)}let b={visibleNodes:l,hiddenNodes:a,observe(){h.observe(i,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return Ke.push(b),()=>{if(h.disconnect(),tt())for(let y of m)y.disconnect();for(let y of a){let $=Un.get(y);$!=null&&($===1?(d(y,!1),Un.delete(y)):Un.set(y,$-1))}b===Ke[Ke.length-1]?(Ke.pop(),Ke.length&&Ke[Ke.length-1].observe()):Ke.splice(Ke.indexOf(b),1)}}function B4(t){let e=Ke[Ke.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}const Re={top:"top",bottom:"top",left:"left",right:"left"},Jr={top:"bottom",bottom:"top",left:"right",right:"left"},F4={top:"left",left:"top"},jo={top:"height",left:"width"},wd={width:"totalWidth",height:"totalHeight"},Qr={};let M4=()=>typeof document<"u"?window.visualViewport:null;function Sd(t,e){let n=0,r=0,i=0,o=0,l=0,a=0,u={},d=(e?.scale??1)>1;if(t.tagName==="BODY"||t.tagName==="HTML"){let c=document.documentElement;i=c.clientWidth,o=c.clientHeight,n=e?.width??i,r=e?.height??o,u.top=c.scrollTop||t.scrollTop,u.left=c.scrollLeft||t.scrollLeft,e&&(l=e.offsetTop,a=e.offsetLeft)}else({width:n,height:r,top:l,left:a}=Gn(t,!1)),u.top=t.scrollTop,u.left=t.scrollLeft,i=n,o=r;return rt()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d&&(u.top=0,u.left=0,l=e?.pageTop??0,a=e?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:o,scroll:u,top:l,left:a}}function K4(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Pd(t,e,n,r,i,o,l){let a=i.scroll[t]??0,u=r[jo[t]],d=l[t]+r.scroll[Re[t]]+o,c=l[t]+r.scroll[Re[t]]+u-o,f=e-a+r.scroll[Re[t]]+l[t]-r[Re[t]],p=e-a+n+r.scroll[Re[t]]+l[t]-r[Re[t]];return f<d?d-f:p>c?Math.max(c-p,d-f):0}function L4(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function kd(t){if(Qr[t])return Qr[t];let[e,n]=t.split(" "),r=Re[e]||"right",i=F4[r];Re[n]||(n="center");let o=jo[r],l=jo[i];return Qr[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},Qr[t]}function Ro(t,e,n,r,i,o,l,a,u,d,c){let{placement:f,crossPlacement:p,axis:h,crossAxis:m,size:b,crossSize:y}=r,$={};$[m]=t[m]??0,p==="center"?$[m]+=((t[y]??0)-(n[y]??0))/2:p!==m&&($[m]+=(t[y]??0)-(n[y]??0)),$[m]+=o;const x=t[m]-n[y]+u+d,v=t[m]+t[y]-u-d;if($[m]=Mn($[m],x,v),f===h){let C=a?c[b]:c[wd[b]];$[Jr[h]]=Math.floor(C-t[h]+i)}else $[h]=Math.floor(t[h]+t[b]+i);return $}function O4(t,e,n,r,i,o,l,a,u,d,c){let f=(t.top!=null?t.top:u[wd.height]-(t.bottom??0)-l)-(u.scroll.top??0),p=d?n.top:0,h={top:Math.max(e.top+p,(c?.offsetTop??e.top)+p),bottom:Math.min(e.top+e.height+p,(c?.offsetTop??0)+(c?.height??0))};return a!=="top"?Math.max(0,h.bottom-f-((i.top??0)+(i.bottom??0)+o)):Math.max(0,f+l-h.top-((i.top??0)+(i.bottom??0)+o))}function Dd(t,e,n,r,i,o,l,a){let{placement:u,axis:d,size:c}=o;return u===d?Math.max(0,n[d]-(l.scroll[d]??0)-(t[d]+(a?e[d]:0))-(r[d]??0)-r[Jr[d]]-i):Math.max(0,t[c]+t[d]+(a?e[d]:0)-n[d]-n[c]+(l.scroll[d]??0)-(r[d]??0)-r[Jr[d]]-i)}function z4(t,e,n,r,i,o,l,a,u,d,c,f,p,h,m,b,y,$){let x=kd(t),{size:v,crossAxis:C,crossSize:k,placement:P,crossPlacement:N}=x,w=Ro(e,a,n,x,c,f,d,p,m,b,u),D=c,A=Dd(a,d,e,i,o+c,x,u,y);if(l&&n[v]>A){let T=kd(`${Jr[P]} ${N}`),O=Ro(e,a,n,T,c,f,d,p,m,b,u);Dd(a,d,e,i,o+c,T,u,y)>A&&(x=T,w=O,D=c)}let L="bottom";x.axis==="top"?x.placement==="top"?L="top":x.placement==="bottom"&&(L="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?L="bottom":x.crossPlacement==="bottom"&&(L="top"));let _=Pd(C,w[C],n[k],a,u,o,d);w[C]+=_;let R=O4(w,a,d,p,i,o,n.height,L,u,y,$);h&&h<R&&(R=h),n.height=Math.min(n.height,R),w=Ro(e,a,n,x,D,f,d,p,m,b,u),_=Pd(C,w[C],n[k],a,u,o,d),w[C]+=_;let E={},F=e[C]-w[C]-i[Re[C]],Z=F+.5*e[k];const M=m/2+b,Y=Re[C]==="left"?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),S=n[k]-Y-m/2-b,I=e[C]+m/2-(w[C]+i[Re[C]]),U=e[C]+e[k]-m/2-(w[C]+i[Re[C]]),oe=Mn(Z,I,U);E[C]=Mn(oe,M,S),{placement:P,crossPlacement:N}=x,m?F=E[C]:N==="right"?F+=e[k]:N==="center"&&(F+=e[k]/2);let V=P==="left"||P==="top"?n[v]:0,ne={x:P==="top"||P==="bottom"?F:V,y:P==="left"||P==="right"?F:V};return{position:w,maxHeight:R,arrowOffsetLeft:E.left,arrowOffsetTop:E.top,placement:P,triggerAnchorPoint:ne}}function _4(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:u,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:p=0,targetRect:h}=t,m=M4(),b=r instanceof HTMLElement?V4(r):document.documentElement,y=b===document.documentElement;const $=window.getComputedStyle(b).position;let x=!!$&&$!=="static",v=y?Gn(n,!1,h):Nd(n,b,!1,h);if(!y){let{marginTop:L,marginLeft:_}=window.getComputedStyle(n);v.top+=parseInt(L,10)||0,v.left+=parseInt(_,10)||0}let C=Gn(r,!0),k=L4(r);C.width+=(k.left??0)+(k.right??0),C.height+=(k.top??0)+(k.bottom??0);let P=K4(i),N=Sd(a,m),w=Sd(b,m),D;if((a.tagName==="BODY"||a.tagName==="HTML")&&!y){let L=ei(b,!1);D={top:-(L.top-N.top),left:-(L.left-N.left),width:0,height:0}}else(a.tagName==="BODY"||a.tagName==="HTML")&&y?D={top:0,left:0,width:0,height:0}:D=Nd(a,b,!1);let A=te(a,b);return z4(e,v,C,P,k,o,l,N,w,D,u,d,x,c,f,p,A,m)}function ei(t,e){let{top:n,left:r,width:i,height:o}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(i=t.offsetWidth,o=t.offsetHeight),{top:n,left:r,width:i,height:o}}function Gn(t,e,n){let{top:r,left:i,width:o,height:l}=n||ei(t,e),{scrollTop:a,scrollLeft:u,clientTop:d,clientLeft:c}=document.documentElement;return{top:r+a-d,left:i+u-c,width:o,height:l}}function Nd(t,e,n,r){let i=window.getComputedStyle(t),o;if(i.position==="fixed")o=r||ei(t,n);else{o=Gn(t,n,r);let l=Gn(e,n),a=window.getComputedStyle(e);l.top+=(parseInt(a.borderTopWidth,10)||0)-e.scrollTop,l.left+=(parseInt(a.borderLeftWidth,10)||0)-e.scrollLeft,o.top-=l.top,o.left-=l.left}return o.top-=parseInt(i.marginTop,10)||0,o.left-=parseInt(i.marginLeft,10)||0,o}function V4(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Td(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Td(e);)e=e.parentElement;return e||document.documentElement}function Td(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const Ad=new WeakMap;function H4(t){let{triggerRef:e,isOpen:n,onClose:r}=t;s.useEffect(()=>{if(!n||r===null)return;let i=o=>{let l=z(o);if(!e.current||l instanceof Node&&!te(l,e.current)||l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)return;let a=r||Ad.get(e.current);a&&a()};return Jg(eb(e.current),"scroll",i,!0)},[n,r,e])}function j4(){return typeof window.ResizeObserver<"u"}function Yn(t){const{ref:e,box:n,onResize:r}=t;let i=De(r);s.useEffect(()=>{let o=e?.current;if(o)if(j4()){const l=new window.ResizeObserver(a=>{a.length&&i()});return l.observe(o,{box:n}),()=>{o&&l.unobserve(o)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[e,n])}let Ut=typeof document<"u"?window.visualViewport:null;function R4(t){let{direction:e}=Ne(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:o,scrollRef:l=i,placement:a="bottom",containerPadding:u=12,shouldFlip:d=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:f=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:b,maxHeight:y,arrowBoundaryOffset:$=0,getTargetRect:x}=t,[v,C]=s.useState(null),k=[h,a,i.current,r.current,o?.current,l.current,u,d,c,f,p,m,e,y,$,n],P=s.useRef(Ut?.scale);s.useEffect(()=>{m&&(P.current=Ut?.scale)},[m]);let N=s.useCallback(()=>{if(h===!1||!m||!i.current||!r.current||!c||Ut?.scale!==P.current)return;let A=null;if(l.current&&Ft(l.current)){let E=pe()?.getBoundingClientRect(),F=l.current.getBoundingClientRect();A={type:"top",offset:(E?.top??0)-F.top},A.offset>F.height/2&&(A.type="bottom",A.offset=(E?.bottom??0)-F.bottom)}let L=i.current;!y&&i.current&&(L.style.top="0px",L.style.bottom="",L.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let _=_4({placement:U4(a,e),overlayNode:i.current,targetNode:r.current,scrollNode:l.current||i.current,padding:u,shouldFlip:d,boundaryElement:c,offset:f,crossOffset:p,maxHeight:y,arrowSize:n??(o?.current?ei(o.current,!0).width:0),arrowBoundaryOffset:$,targetRect:x?.(r.current)});if(!_.position)return;L.style.top="",L.style.bottom="",L.style.left="",L.style.right="",Object.keys(_.position).forEach(E=>L.style[E]=_.position[E]+"px"),L.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":"";let R=pe();if(A&&R&&l.current){let E=R.getBoundingClientRect(),F=l.current.getBoundingClientRect(),Z=E[A.type]-F[A.type];l.current.scrollTop+=Z-A.offset}C(_)},k);de(N,k),W4(N),Yn({ref:i,onResize:N}),Yn({ref:r,onResize:N});let w=s.useRef(!1);de(()=>{let A,L=()=>{w.current=!0,clearTimeout(A),A=setTimeout(()=>{w.current=!1},500),N()},_=()=>{w.current&&L()};return Ut?.addEventListener("resize",L),Ut?.addEventListener("scroll",_),()=>{Ut?.removeEventListener("resize",L),Ut?.removeEventListener("scroll",_)}},[N]);let D=s.useCallback(()=>{w.current||b?.()},[b,w]);return H4({triggerRef:r,isOpen:m,onClose:b&&D}),{overlayProps:{style:{position:v?"absolute":"fixed",top:v?void 0:0,left:v?void 0:0,zIndex:1e5,...v?.position,maxHeight:v?.maxHeight??"100vh"}},placement:v?.placement??null,triggerAnchorPoint:v?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:N}}function W4(t){de(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function U4(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function G4(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=s.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=De(u=>{n&&ti(u,e)&&(i&&i(u),o.current.isPointerDown=!0)}),a=De(u=>{n&&n(u)});s.useEffect(()=>{let u=o.current;if(r)return;const d=e.current,c=le(d);if(typeof PointerEvent<"u"){let f=p=>{u.isPointerDown&&ti(p,e)&&a(p),u.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",f,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=h=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&ti(h,e)&&a(h),u.isPointerDown=!1},p=h=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&ti(h,e)&&a(h),u.isPointerDown=!1};return c.addEventListener("mousedown",l,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",l,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",l,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",l,!0),c.removeEventListener("touchend",p,!0)}}},[e,r])}function ti(t,e){if(t.button>0)return!1;let n=z(t);if(n){const r=n.ownerDocument;if(!r||!te(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const lt=[];function Id(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t,u=s.useRef(void 0);s.useEffect(()=>{if(i&&!lt.includes(e))return lt.push(e),()=>{let m=lt.indexOf(e);m>=0&<.splice(m,1)}},[i,e]);let d=()=>{lt[lt.length-1]===e&&n&&n()},c=m=>{const b=lt[lt.length-1];u.current=b,(!a||a(z(m)))&&b===e&&m.stopPropagation()},f=m=>{(!a||a(z(m)))&&(lt[lt.length-1]===e&&m.stopPropagation(),u.current===e&&d()),u.current=void 0},{keyboardProps:p}=Ge({shortcuts:{Escape:()=>{if(!l){d();return}return!1}}});G4({ref:e,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:c});let{focusWithinProps:h}=Bn({isDisabled:!r,onBlurWithin:m=>{!m.relatedTarget||u4(m.relatedTarget)||(!a||a(m.relatedTarget))&&n?.()}});return{overlayProps:{...p,...h},underlayProps:{}}}const Xn=typeof document<"u"&&window.visualViewport;let ni=0,Wo;function Bd(t={}){let{isDisabled:e}=t;de(()=>{if(!e)return ni++,ni===1&&(ft()&&rt()?Wo=X4():Wo=Y4()),()=>{ni--,ni===0&&Wo()}},[e])}function Y4(){let t=window.innerWidth-document.documentElement.clientWidth;return We(t>0&&("scrollbarGutter"in document.documentElement.style?ri(document.documentElement,"scrollbarGutter","stable"):ri(document.documentElement,"paddingRight",`${t}px`)),ri(document.documentElement,"overflow","hidden"))}function X4(){let t=ri(document.documentElement,"overflow","hidden"),e,n=!1,r=c=>{let f=z(c);e=kt(f)?f:mt(f,!0),n=!1;let p=f.ownerDocument.defaultView.getSelection();p&&!p.isCollapsed&&p.containsNode(f,!0)&&(n=!0),c.composedPath().some(h=>h instanceof HTMLInputElement&&h.type==="range")&&(n=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(n=!0)},i=document.createElement("style"),o=cs();o&&(i.nonce=o),i.textContent=`
|
|
7
|
+
`.trim(),D.head.prepend(T)},[m]),u.useEffect(()=>{let D=y.current;return()=>{f||zi(D.target??void 0);for(let T of D.disposables)T();D.disposables=[]}},[f]),{isPressed:s||p,pressProps:X(h,j,{[kd]:!0})}}function Bl(e){return e.tagName==="A"&&e.hasAttribute("href")}function Nl(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof xe(i).HTMLInputElement&&!Fd(i,n)||i instanceof xe(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Bl(i))&&n!=="Enter")}function pv(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Bd(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Gt(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function hn(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function bv(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function gv(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Nd(e,t){let n=t.getBoundingClientRect(),r=bv(e);return gv(n,r)}function yv(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Bl(e)}function Ad(e,t){return Je()&&t==="Enter"?!1:e instanceof HTMLInputElement?t==="Enter"&&(e.type==="checkbox"||e.type==="radio")?!1:!Fd(e,t):yv(e)}const $v=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Fd(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":$v.has(e.type)}function vv(e,t){let{elementType:n="a",onPress:r,onPressStart:i,onPressEnd:a,onPressChange:l,onClick:o,isDisabled:s,...d}=e,c={};n!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:f}=zn(e,t),{pressProps:m,isPressed:h}=Tt({onPress:r,onPressStart:i,onPressEnd:a,onPressChange:l,onClick:o,isDisabled:s,ref:t}),p=ie(d,{labelable:!0}),g=X(f,m),y=sn(),$=wi(e);return{isPressed:h,linkProps:X(p,$,{...g,...c,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:x=>{m.onClick?.(x),Hs(x,y,e.href,e.routerOptions)}})}}function jn(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=u.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:o}=Rn(),s=u.useCallback(f=>{ae(f.currentTarget,G(f))&&a.current.isFocusWithin&&!ae(f.currentTarget,f.relatedTarget)&&(a.current.isFocusWithin=!1,o(),n&&n(f),i&&i(!1))},[n,i,a,o]),d=Vs(s),c=u.useCallback(f=>{if(!ae(f.currentTarget,G(f)))return;let m=G(f);const h=se(m),p=ce(h);if(!a.current.isFocusWithin&&p===m){r&&r(f),i&&i(!0),a.current.isFocusWithin=!0,d(f);let g=f.currentTarget;l(h,"focus",y=>{let $=G(y);if(a.current.isFocusWithin&&!ae(g,$)){let x=new h.defaultView.FocusEvent("blur",{relatedTarget:$});zs(x,g);let v=cl(x);s(v)}},{capture:!0})}},[r,i,d,l,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}function Oe(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=u.useRef({isFocused:!1,isFocusVisible:t||Ut()}),[a,l]=u.useState(!1),[o,s]=u.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=u.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=u.useCallback(h=>{i.current.isFocused=h,i.current.isFocusVisible=Ut(),l(h),d()},[d]);C5(h=>{i.current.isFocusVisible=h,d()},[n,a],{enabled:a,isTextInput:n});let{focusProps:f}=vl({isDisabled:r,onFocusChange:c}),{focusWithinProps:m}=jn({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:o,focusProps:r?m:f}}let _i=!1,Ri=0;function Al(){_i=!0,setTimeout(()=>{_i=!1},500)}function Td(e){e.pointerType==="touch"&&Al()}function xv(){let e=se(null);if(!(typeof e>"u"))return Ri===0&&(typeof PointerEvent<"u"?e.addEventListener("pointerup",Td):process.env.NODE_ENV==="test"&&e.addEventListener("touchend",Al)),Ri++,()=>{Ri--,!(Ri>0)&&(typeof PointerEvent<"u"?e.removeEventListener("pointerup",Td):process.env.NODE_ENV==="test"&&e.removeEventListener("touchend",Al))}}function ze(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,l]=u.useState(!1),o=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(xv,[]);let{addGlobalListener:s,removeAllGlobalListeners:d}=Rn(),{hoverProps:c,triggerHoverEnd:f}=u.useMemo(()=>{let m=(g,y)=>{if(o.pointerType=y,i||y==="touch"||o.isHovered||!ae(g.currentTarget,G(g)))return;o.isHovered=!0;let $=g.currentTarget;o.target=$,s(se(G(g)),"pointerover",x=>{o.isHovered&&o.target&&!ae(o.target,G(x))&&h(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:$,pointerType:y}),n&&n(!0),l(!0)},h=(g,y)=>{let $=o.target;o.pointerType="",o.target=null,!(y==="touch"||!o.isHovered||!$)&&(o.isHovered=!1,d(),r&&r({type:"hoverend",target:$,pointerType:y}),n&&n(!1),l(!1))},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{_i&&g.pointerType==="mouse"||m(g,g.pointerType)},p.onPointerLeave=g=>{!i&&ae(g.currentTarget,G(g))&&h(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(p.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!o.ignoreEmulatedMouseEvents&&!_i&&m(g,"mouse"),o.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!i&&ae(g.currentTarget,G(g))&&h(g,"mouse")}),{hoverProps:p,triggerHoverEnd:h}},[t,n,r,i,o,s,d]);return u.useEffect(()=>{i&&f({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:c,isHovered:a}}const Id=u.createContext(null),Cv=u.forwardRef(function(t,n){[t,n]=pe(t,n,Id);let r=t.href&&!t.isDisabled?"a":"span",{linkProps:i,isPressed:a}=vv({...t,elementType:r},n),l=re[r],{hoverProps:o,isHovered:s}=ze(t),{focusProps:d,isFocused:c,isFocusVisible:f}=Oe(),m=ue({...t,defaultClassName:"react-aria-Link",values:{isCurrent:!!t["aria-current"],isDisabled:t.isDisabled||!1,isPressed:a,isHovered:s,isFocused:c,isFocusVisible:f}}),h=ie(t,{global:!0});return delete h.onClick,u.createElement(l,{ref:n,slot:t.slot||void 0,...X(h,m,i,o,d),"data-focused":c||void 0,"data-hovered":s||void 0,"data-pressed":a||void 0,"data-focus-visible":f||void 0,"data-current":!!t["aria-current"]||void 0,"data-disabled":t.isDisabled||void 0},m.children)});var Md={};Md={breadcrumbs:"عناصر الواجهة"};var Kd={};Kd={breadcrumbs:"Трохи хляб"};var Ld={};Ld={breadcrumbs:"Popis cesty"};var Od={};Od={breadcrumbs:"Brødkrummer"};var zd={};zd={breadcrumbs:"Breadcrumbs"};var Vd={};Vd={breadcrumbs:"Πλοηγήσεις breadcrumb"};var _d={};_d={breadcrumbs:"Breadcrumbs"};var Rd={};Rd={breadcrumbs:"Migas de pan"};var jd={};jd={breadcrumbs:"Lingiread"};var Hd={};Hd={breadcrumbs:"Navigointilinkit"};var Ud={};Ud={breadcrumbs:"Chemin de navigation"};var Wd={};Wd={breadcrumbs:"שבילי ניווט"};var Gd={};Gd={breadcrumbs:"Navigacijski putovi"};var Zd={};Zd={breadcrumbs:"Morzsamenü"};var Yd={};Yd={breadcrumbs:"Breadcrumb"};var qd={};qd={breadcrumbs:"パンくずリスト"};var Xd={};Xd={breadcrumbs:"탐색 표시"};var Jd={};Jd={breadcrumbs:"Naršymo kelias"};var Qd={};Qd={breadcrumbs:"Atpakaļceļi"};var ec={};ec={breadcrumbs:"Navigasjonsstier"};var tc={};tc={breadcrumbs:"Broodkruimels"};var nc={};nc={breadcrumbs:"Struktura nawigacyjna"};var rc={};rc={breadcrumbs:"Caminho detalhado"};var ic={};ic={breadcrumbs:"Categorias"};var ac={};ac={breadcrumbs:"Miez de pâine"};var lc={};lc={breadcrumbs:"Навигация"};var oc={};oc={breadcrumbs:"Navigačné prvky Breadcrumbs"};var uc={};uc={breadcrumbs:"Drobtine"};var sc={};sc={breadcrumbs:"Putanje navigacije"};var dc={};dc={breadcrumbs:"Sökvägar"};var cc={};cc={breadcrumbs:"İçerik haritaları"};var fc={};fc={breadcrumbs:"Навігаційна стежка"};var mc={};mc={breadcrumbs:"导航栏"};var hc={};hc={breadcrumbs:"導覽列"};var pc={};pc={"ar-AE":Md,"bg-BG":Kd,"cs-CZ":Ld,"da-DK":Od,"de-DE":zd,"el-GR":Vd,"en-US":_d,"es-ES":Rd,"et-EE":jd,"fi-FI":Hd,"fr-FR":Ud,"he-IL":Wd,"hr-HR":Gd,"hu-HU":Zd,"it-IT":Yd,"ja-JP":qd,"ko-KR":Xd,"lt-LT":Jd,"lv-LV":Qd,"nb-NO":ec,"nl-NL":tc,"pl-PL":nc,"pt-BR":rc,"pt-PT":ic,"ro-RO":ac,"ru-RU":lc,"sk-SK":oc,"sl-SI":uc,"sr-SP":sc,"sv-SE":dc,"tr-TR":cc,"uk-UA":fc,"zh-CN":mc,"zh-TW":hc};function Dv(e){return e&&e.__esModule?e.default:e}function Ev(e){let{"aria-label":t,...n}=e,r=ke(Dv(pc),"@react-aria/breadcrumbs");return{navProps:{...ie(n,{labelable:!0}),"aria-label":t||r.format("breadcrumbs")}}}const Fl=u.createContext(null),wv=u.forwardRef(function(t,n){[t,n]=pe(t,n,Fl);let{CollectionRoot:r}=u.useContext(ge),{navProps:i}=Ev(t),a=ie(t,{global:!0,labelable:!0});return u.createElement(fn,{content:u.createElement(mn,t)},l=>u.createElement(re.ol,{render:t.render,ref:n,...X(a,i),slot:t.slot||void 0,style:t.style,className:t.className??"react-aria-Breadcrumbs"},u.createElement(Fl.Provider,{value:t},u.createElement(r,{collection:l}))))}),$s=class $s extends et{};$s.type="item";let Tl=$s;const Sv=yt(Tl,function(t,n,r){let i=r.nextKey==null,{isDisabled:a,onAction:l}=qe(Fl),o={"aria-current":i?"page":null,isDisabled:a||i,onPress:()=>l?.(r.key)},s=ue({...r.props,children:r.rendered,values:{isDisabled:a||i,isCurrent:i},defaultClassName:"react-aria-Breadcrumb"}),d=ie(t,{global:!0,labelable:!0});return delete d.id,u.createElement(re.li,{...d,...s,ref:n,"data-disabled":a||i||void 0,"data-current":i||void 0},u.createElement(Id.Provider,{value:o},s.children))}),pn=u.createContext({});function Il(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Ee(t);let l=Ee(),o={};n?(r=r?`${l} ${r}`:l,o={id:l,htmlFor:a==="label"?t:void 0}):!r&&!i&&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=Ft({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:o,fieldProps:s}}let Ml=new Map,Kl=!1;try{Kl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ji=!1;try{ji=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const bc={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Hi{constructor(t,n={}){this.numberFormatter=Pv(t,n),this.options=n}format(t){let n="";if(!Kl&&this.options.signDisplay!=null?n=kv(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ji){let{unit:r,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!r)return n;let l=bc[r]?.[i];n+=l[a]||l.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Kl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ji&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function Pv(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ji){let{unit:a,unitDisplay:l="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!bc[a]?.[l])throw new Error(`Unsupported unit ${a} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(Ml.has(r))return Ml.get(r);let i=new Intl.NumberFormat(e,t);return Ml.set(r,i),i}function kv(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),l=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(l,"+").replace("!!!",a)}else return e.format(n)}}const Bv=new RegExp("^.*\\(.*\\).*$"),Nv=["latn","arab","hanidec","deva","beng","fullwide"];class gc{constructor(t,n={}){this.locale=t,this.options=n}parse(t){return Ll(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Ll(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Ll(this.locale,this.options,t).options.numberingSystem}}const yc=new Map;function Ll(e,t,n){let r=$c(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of Nv)if(i!==r.options.numberingSystem){let a=$c(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function $c(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=yc.get(n);return r||(r=new Av(e,t),yc.set(n,r)),r}class Av{constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=Fv(t,this.formatter,this.options,n),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(t){let n=this.formatter.resolvedOptions().useGrouping,r=this.sanitize(t);if(!n&&this.symbols.group&&r.includes(this.symbols.group))return NaN;if(this.symbols.group&&(r=r.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=r.indexOf("-");r=r.replace("-",""),r=r.replace("+","");let l=r.indexOf(".");l===-1&&(l=r.length),r=r.replace(".",""),l-2===0?r=`0.${r}`:l-2===-1?r=`0.0${r}`:l-2===-2?r="0.00":r=`${r.slice(0,l-2)}.${r.slice(l-2)}`,a>-1&&(r=`-${r}`)}let i=r?+r:NaN;if(isNaN(i))return NaN;if(this.options.style==="percent"){let a={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new gc(this.locale,a).parse(new Hi(this.locale,a).format(i))}return this.options.currencySign==="accounting"&&Bv.test(t)&&(i=-1*i),i}sanitize(t){let n=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(r=>r.unit===t)?this.symbols.noNumeralUnits.find(r=>r.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=Zt(t,",",this.symbols.decimal),t=Zt(t,"،",this.symbols.decimal)),this.symbols.group&&n&&(t=Zt(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&n&&(t=Zt(t,"'",this.symbols.group)),this.symbols.group==="'"&&t.includes("’")&&n&&(t=Zt(t,"’",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&n&&(t=Zt(t," ",this.symbols.group),t=Zt(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,n=-1/0,r=1/0){let i=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&i&&(t=Zt(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}}const vc=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),xc=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Fv(e,t,n,r){let i=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),a=i.formatToParts(-10000.111),l=i.formatToParts(10000.111),o=xc.map(S=>i.formatToParts(S)),s=o.map((S,B)=>{let E=S.find(k=>k.type==="unit");return E&&!S.some(k=>k.type==="integer"||k.type==="fraction")?{unit:E.value,value:xc[B]}:null}).filter(S=>!!S),d=a.find(S=>S.type==="minusSign")?.value??"-",c=l.find(S=>S.type==="plusSign")?.value;!c&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(c="+");let m=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(S=>S.type==="decimal")?.value,h=a.find(S=>S.type==="group")?.value,p=a.filter(S=>!vc.has(S.type)).map(S=>Cc(S.value)),g=o.flatMap(S=>S.filter(B=>!vc.has(B.type)).map(B=>Cc(B.value))),y=[...new Set([...p,...g])].sort((S,B)=>B.length-S.length),$=y.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${y.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),x=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(x.map((S,B)=>[S,B])),C=new RegExp(`[${x.join("")}]`,"g");return{minusSign:d,plusSign:c,decimal:m,group:h,literals:$,numeral:C,numerals:x,index:S=>String(v.get(S)),noNumeralUnits:s}}function Zt(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Cc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Tv(e={}){let{locale:t}=be();return u.useMemo(()=>new Hi(t,e),[t,e])}function Dr(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Iv(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:l={style:"percent"}}=e,o=ie(e,{labelable:!0}),{labelProps:s,fieldProps:d}=Il({...e,labelElementType:"span"});t=Dr(t,n,r);let c=r-n,f=c===0?0:(t-n)/c,m=Tv(l);if(!a&&!i){let h=l.style==="percent"?f:t;i=m.format(h)}return{progressBarProps:X(o,{...d,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:"progressbar"}),labelProps:s}}const Dc=u.createContext(null),Mv=u.forwardRef(function(t,n){[t,n]=pe(t,n,Dc);let{value:r=0,minValue:i=0,maxValue:a=100,isIndeterminate:l=!1}=t;r=Dr(r,i,a);let[o,s]=un(!t["aria-label"]&&!t["aria-labelledby"]),{progressBarProps:d,labelProps:c}=Iv({...t,label:s}),f=a-i,m;l||(f===0?m=0:m=(r-i)/f*100);let h=ue({...t,defaultClassName:"react-aria-ProgressBar",values:{percentage:m,valueText:d["aria-valuetext"],isIndeterminate:l}}),p=ie(t,{global:!0});return u.createElement(re.div,{...X(p,h,d),ref:n,slot:t.slot||void 0},u.createElement(pn.Provider,{value:{...c,ref:o,elementType:"span"}},h.children))}),Ec=7e3;let Yt=null;function $t(e,t="assertive",n=Ec){Yt?Yt.announce(e,t,n):(Yt=new Lv,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Yt.announce(e,t,n):setTimeout(()=>{Yt?.isAttached()&&Yt?.announce(e,t,n)},100))}function Kv(e){Yt&&Yt.clear(e)}class Lv{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Ec){if(!this.node)return;let i=document.createElement("div");typeof t=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",t["aria-labelledby"])):i.textContent=t,n==="assertive"?this.assertiveLog?.appendChild(i):this.politeLog?.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function Ov(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:l,onPressUp:o,onPressChange:s,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:f,href:m,target:h,rel:p,type:g="button"}=e,y;n==="button"?y={type:g,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:y={role:"button",href:n==="a"&&!r?m:void 0,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:$,isPressed:x}=Tt({onPressStart:a,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:o,onClick:f,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:v}=zn(e,t);c&&(v.tabIndex=r?-1:v.tabIndex);let C=X(v,$,ie(e,{labelable:!0}));return{isPressed:x,buttonProps:X(y,C,{"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 vt=u.createContext({}),qt=Vn(function(t,n){[t,n]=pe(t,n,vt);let r=t,{isPending:i}=r,{buttonProps:a,isPressed:l}=Ov(t,n);a=Vv(a,i);let{focusProps:o,isFocused:s,isFocusVisible:d}=Oe(t),{hoverProps:c,isHovered:f}=ze({...t,isDisabled:t.isDisabled||i}),m={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:d,isDisabled:t.isDisabled||!1,isPending:i??!1},h=ue({...t,values:m,defaultClassName:"react-aria-Button"}),p=Ee(a.id),g=Ee(),y=a["aria-labelledby"];i&&(y?y=`${y} ${g}`:a["aria-label"]&&(y=`${p} ${g}`));let $=u.useRef(i);u.useEffect(()=>{let v={"aria-labelledby":y||p};(!$.current&&s&&i||$.current&&s&&!i)&&$t(v,"assertive"),$.current=i},[i,s,y,p]);let x=ie(t,{global:!0});return delete x.onClick,u.createElement(re.button,{...X(x,h,a,o,c),type:a.type==="submit"&&i?"button":a.type,id:p,ref:n,"aria-labelledby":y,slot:t.slot||void 0,"aria-disabled":i?"true":a["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":d||void 0},u.createElement(Dc.Provider,{value:{id:g}},h.children))}),zv=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Vv(e,t){if(t){for(const n in e)n.startsWith("on")&&!zv.test(n)&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const Ui=u.createContext({}),wc=u.forwardRef(function(t,n){[t,n]=pe(t,n,Ui);let{children:r,level:i=3,className:a,...l}=t,o=re[`h${i}`];return u.createElement(o,{...l,ref:n,className:a??"react-aria-Heading"},r)}),tt=u.createContext({});var Sc={};Sc={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var Pc={};Pc={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var kc={};kc={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var Bc={};Bc={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Nc={};Nc={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var Ac={};Ac={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var Fc={};Fc={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var Tc={};Tc={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var Ic={};Ic={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var Mc={};Mc={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var Kc={};Kc={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var Lc={};Lc={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var Oc={};Oc={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var zc={};zc={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var Vc={};Vc={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var _c={};_c={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var Rc={};Rc={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var jc={};jc={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Hc={};Hc={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var Uc={};Uc={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Wc={};Wc={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var Gc={};Gc={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Zc={};Zc={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Yc={};Yc={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var qc={};qc={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var Xc={};Xc={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var Jc={};Jc={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var Qc={};Qc={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var ef={};ef={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var tf={};tf={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var nf={};nf={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var rf={};rf={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var af={};af={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var lf={};lf={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Er={};Er={"ar-AE":Sc,"bg-BG":Pc,"cs-CZ":kc,"da-DK":Bc,"de-DE":Nc,"el-GR":Ac,"en-US":Fc,"es-ES":Tc,"et-EE":Ic,"fi-FI":Mc,"fr-FR":Kc,"he-IL":Lc,"hr-HR":Oc,"hu-HU":zc,"it-IT":Vc,"ja-JP":_c,"ko-KR":Rc,"lt-LT":jc,"lv-LV":Hc,"nb-NO":Uc,"nl-NL":Wc,"pl-PL":Gc,"pt-BR":Zc,"pt-PT":Yc,"ro-RO":qc,"ru-RU":Xc,"sk-SK":Jc,"sl-SI":Qc,"sr-SP":ef,"sv-SE":tf,"tr-TR":nf,"uk-UA":rf,"zh-CN":af,"zh-TW":lf};function of(e,t){let n=u.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Hn(e,t){return e-t*Math.floor(e/t)}const uf=1721426;function bn(e,t,n,r){t=wr(e,t);let i=t-1,a=-2;return n<=2?a=0:Xt(t)&&(a=-1),uf-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Xt(e){return e%4===0&&(e%100!==0||e%400===0)}function wr(e,t){return e==="BC"?1-t:t}function Wi(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const _v={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Re{fromJulianDay(t){let n=t,r=n-uf,i=Math.floor(r/146097),a=Hn(r,146097),l=Math.floor(a/36524),o=Hn(a,36524),s=Math.floor(o/1461),d=Hn(o,1461),c=Math.floor(d/365),f=i*400+l*100+s*4+c+(l!==4&&c!==4?1:0),[m,h]=Wi(f),p=n-bn(m,h,1,1),g=2;n<bn(m,h,3,1)?g=0:Xt(h)&&(g=1);let y=Math.floor(((p+g)*12+373)/367),$=n-bn(m,h,y,1)+1;return new we(m,h,y,$)}toJulianDay(t){return bn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return _v[Xt(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Xt(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const Rv={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ce(e,t){return t=ye(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function jv(e,t){return t=ye(t,e.calendar),e=gn(e),t=gn(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function Hv(e,t){return t=ye(t,e.calendar),e=_l(e),t=_l(t),e.era===t.era&&e.year===t.year}function Uv(e,t){return Gi(e.calendar,t.calendar)&&Ce(e,t)}function Gi(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function sf(e,t){return Ce(e,zl(t))}const Wv={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Ol(e,t,n){let r=e.calendar.toJulianDay(e),i=n?Wv[n]:Xv(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function df(e){return Mt(Date.now(),e)}function zl(e){return Ve(df(e))}function cf(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Gv(e,t){return ff(e)-ff(t)}function ff(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Vl=null,Zv=!1;function Zi(){return Vl==null&&(Vl=new Intl.DateTimeFormat().resolvedOptions().timeZone),Vl}function mf(){return Zv}function gn(e){return e.subtract({days:e.day-1})}function Yi(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function _l(e){return gn(e.subtract({months:e.month-1}))}function Sr(e,t,n){let r=Ol(e,t,n);return e.subtract({days:r})}function Yv(e,t,n){return Sr(e,t,n).add({days:6})}const hf=new Map,Rl=new Map;function qv(e){if(Intl.Locale){let n=hf.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&hf.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function Xv(e){let t=Rl.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo(),t))return Rl.set(e,t),t.firstDay}let n=qv(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];r==="mon"?t={firstDay:1}:r==="tue"?t={firstDay:2}:r==="wed"?t={firstDay:3}:r==="thu"?t={firstDay:4}:r==="fri"?t={firstDay:5}:r==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&Rv[n]||0};Rl.set(e,t)}return t.firstDay}function Jv(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((Ol(gn(e),t,n)+r)/7)}function jl(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Hl(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Un(e){e=ye(e,new Re);let t=wr(e.era,e.year);return pf(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function pf(e,t,n,r,i,a,l){let o=new Date;return o.setUTCHours(r,i,a,l),o.setUTCFullYear(e,t-1,n),o.getTime()}function Ul(e,t){if(t==="UTC")return 0;if(e>0&&t===Zi()&&!mf())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:l,second:o}=gf(e,t);return pf(n,r,i,a,l,o,0)-Math.floor(e/1e3)*1e3}const bf=new Map;function gf(e,t){let n=bf.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),bf.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const yf=864e5;function Qv(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>e6(e,t,a))}function e6(e,t,n){let r=gf(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function It(e,t,n="compatible"){let r=Jt(e);if(t==="UTC")return Un(r);if(t===Zi()&&n==="compatible"&&!mf()){r=ye(r,new Re);let s=new Date,d=wr(r.era,r.year);return s.setFullYear(d,r.month-1,r.day),s.setHours(r.hour,r.minute,r.second,r.millisecond),s.getTime()}let i=Un(r),a=Ul(i-yf,t),l=Ul(i+yf,t),o=Qv(r,t,i-a,i-l);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-l);case"compatible":case"later":return Math.max(i-a,i-l);case"reject":throw new RangeError("No such absolute time found")}}function $f(e,t,n="compatible"){return new Date(It(e,t,n))}function Mt(e,t){let n=Ul(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,l=r.getUTCDate(),o=r.getUTCHours(),s=r.getUTCMinutes(),d=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Br(i<1?"BC":"AD",i<1?-i+1:i,a,l,t,n,o,s,d,c)}function Ve(e){return new we(e.calendar,e.era,e.year,e.month,e.day)}function Jt(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new kr(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function ye(e,t){if(Gi(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,yn(r),r}function t6(e,t,n){if(e instanceof Br)return e.timeZone===t?e:vf(e,t);let r=It(e,t,n);return Mt(r,t)}function n6(e){let t=Un(e)-e.offset;return new Date(t)}function vf(e,t){let n=Un(e)-e.offset;return ye(Mt(n,t),e.calendar)}function r6(e){return vf(e,Zi())}const Pr=36e5;function qi(e,t){let n=e.copy(),r="hour"in n?o6(n,t):0;Wl(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Gl(n),xf(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,i6(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){let l=n.calendar.isInverseEra?.(n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Wl(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function Gl(e){for(;e.month<1;)Wl(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Wl(e,1)}function i6(e){for(;e.day<1;)e.month--,Gl(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Gl(e)}function xf(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function yn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),xf(e)}function Cf(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Df(e,t){return qi(e,Cf(t))}function Zl(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),yn(n),n}function Xi(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),l6(n),n}function a6(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ji(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ji(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ji(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ji(e.hour,24),t}function l6(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Ji(e,t){let n=e%t;return n<0&&(n+=t),n}function o6(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,a6(e)}function Yl(e,t,n,r){let i=e.copy();switch(t){case"era":{let a=e.calendar.getEras(),l=a.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Kt(l,n,0,a.length-1,r?.round),i.era=a[l],yn(i);break}case"year":i.calendar.isInverseEra?.(i)&&(n=-n),i.year=Kt(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Kt(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":i.day=Kt(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),yn(i),i}function Ef(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,l=0,o=23;if(r?.hourCycle===12){let s=a>=12;l=s?12:0,o=s?23:11}i.hour=Kt(a,n,l,o,r?.round);break}case"minute":i.minute=Kt(e.minute,n,0,59,r?.round);break;case"second":i.second=Kt(e.second,n,0,59,r?.round);break;case"millisecond":i.millisecond=Kt(e.millisecond,n,0,999,r?.round);break;default:throw new Error("Unsupported field "+t)}return i}function Kt(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function wf(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=qi(Jt(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=It(i,e.timeZone)}else n=Un(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Mt(n,e.timeZone);return ye(r,e.calendar)}function u6(e,t){return wf(e,Cf(t))}function s6(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if(r?.hourCycle===12){let p=e.hour>=12;i=p?12:0,a=p?23:11}let l=Jt(e),o=ye(Xi(l,{hour:i}),new Re),s=[It(o,e.timeZone,"earlier"),It(o,e.timeZone,"later")].filter(p=>Mt(p,e.timeZone).day===o.day)[0],d=ye(Xi(l,{hour:a}),new Re),c=[It(d,e.timeZone,"earlier"),It(d,e.timeZone,"later")].filter(p=>Mt(p,e.timeZone).day===d.day).pop(),f=Un(e)-e.offset,m=Math.floor(f/Pr),h=f%Pr;return f=Kt(m,n,Math.floor(s/Pr),Math.floor(c/Pr),r?.round)*Pr+h,ye(Mt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Ef(e,t,n,r);case"era":case"year":case"month":case"day":{let i=Yl(Jt(e),t,n,r),a=It(i,e.timeZone);return ye(Mt(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function d6(e,t,n){let r=Jt(e),i=Xi(Zl(r,t),t);if(i.compare(r)===0)return e;let a=It(i,e.timeZone,n);return ye(Mt(a,e.timeZone),e.calendar)}const c6=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,f6=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Sf=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function m6(e){let t=e.match(c6);if(!t)throw Sf.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let n=new we(xt(t[1],0,9999),xt(t[2],1,12),1);return n.day=xt(t[3],1,n.calendar.getDaysInMonth(n)),n}function h6(e){let t=e.match(f6);if(!t)throw Sf.test(e)?new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+e);let n=xt(t[1],-9999,9999),r=n<1?"BC":"AD",i=new kr(r,n<1?-n+1:n,xt(t[2],1,12),1,t[4]?xt(t[4],0,23):0,t[5]?xt(t[5],0,59):0,t[6]?xt(t[6],0,59):0,t[7]?xt(t[7],0,1/0)*1e3:0);return i.day=xt(t[3],0,i.calendar.getDaysInMonth(i)),i}function xt(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function p6(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Pf(e){let t=ye(e,new Re),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function kf(e){return`${Pf(e)}T${p6(e)}`}function b6(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return i!==0&&(a+=`:${String(i).padStart(2,"0")}`),a}function g6(e){return`${kf(e)}${b6(e.offset)}[${e.timeZone}]`}function ql(e){let t=typeof e[0]=="object"?e.shift():new Re,n;if(typeof e[0]=="string")n=e.shift();else{let l=t.getEras();n=l[l.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}class we{#e;constructor(...t){let[n,r,i,a,l]=ql(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=l,yn(this)}copy(){return this.era?new we(this.calendar,this.era,this.year,this.month,this.day):new we(this.calendar,this.year,this.month,this.day)}add(t){return qi(this,t)}subtract(t){return Df(this,t)}set(t){return Zl(this,t)}cycle(t,n,r){return Yl(this,t,n,r)}toDate(t){return $f(this,t)}toString(){return Pf(this)}compare(t){return cf(this,t)}}class kr{#e;constructor(...t){let[n,r,i,a,l]=ql(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,yn(this)}copy(){return this.era?new kr(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new kr(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return qi(this,t)}subtract(t){return Df(this,t)}set(t){return Zl(Xi(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Yl(this,t,n,r);default:return Ef(this,t,n,r)}}toDate(t,n){return $f(this,t,n)}toString(){return kf(this)}compare(t){let n=cf(this,t);return n===0?Gv(this,Jt(t)):n}}class Br{#e;constructor(...t){let[n,r,i,a,l]=ql(t),o=t.shift(),s=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=l,this.timeZone=o,this.offset=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,yn(this)}copy(){return this.era?new Br(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Br(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return wf(this,t)}subtract(t){return u6(this,t)}set(t,n){return d6(this,t,n)}cycle(t,n,r){return s6(this,t,n,r)}toDate(){return n6(this)}toString(){return g6(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-t6(t,this.timeZone).toDate().getTime()}}const Wn=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],y6=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Qi=[1867,1911,1925,1988,2018],Qt=["meiji","taisho","showa","heisei","reiwa"];function Bf(e){const t=Wn.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Wn.length-1:t===0?0:t-1}function Xl(e){let t=Qi[Qt.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new we(e.year+t,e.month,e.day)}class $6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=Bf(n);return new we(this,Qt[r],n.year-Qi[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Xl(t))}balanceDate(t){let n=Xl(t),r=Bf(n);Qt[r]!==t.era&&(t.era=Qt[r],t.year=n.year-Qi[r]),this.constrainDate(t)}constrainDate(t){let n=Qt.indexOf(t.era),r=y6[n];if(r!=null){let[i,a,l]=r,o=i-Qi[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(l,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Wn[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Qt}getYearsInEra(t){let n=Qt.indexOf(t.era),r=Wn[n],i=Wn[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(Xl(t))}getMinimumMonthInYear(t){let n=Nf(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Nf(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Nf(e){if(e.year===1){let t=Qt.indexOf(e.era);return Wn[t]}}const Af=-543;class v6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=wr(n.era,n.year);return new we(this,r-Af,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Ff(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Ff(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Ff(e){let[t,n]=Wi(e.year+Af);return new we(t,n,e.month,e.day)}const ea=1911;function Tf(e){return e.era==="minguo"?e.year+ea:1-e.year+ea}function If(e){let t=e-ea;return t>0?["minguo",t]:["before_minguo",1-t]}class x6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=wr(n.era,n.year),[i,a]=If(r);return new we(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Mf(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=If(Tf(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Mf(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-ea}constructor(...t){super(...t),this.identifier="roc"}}function Mf(e){let[t,n]=Wi(Tf(e));return new we(t,n,e.month,e.day)}const Kf=1948320,Lf=[0,31,62,93,124,155,186,216,246,276,306,336];class C6{fromJulianDay(t){let n=t-Kf,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,l=a<216?Math.floor(a/31):Math.floor((a-6)/30),o=a-Lf[l]+1;return new we(this,r,l+1,o)}toJulianDay(t){let n=Kf-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=Lf[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Hn(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Jl=78,Of=80;class D6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Jl,i=t-bn(n.era,n.year,1,1),a;i<Of?(r--,a=Xt(n.year-1)?31:30,i+=a+155+90+10):(a=Xt(n.year)?31:30,i-=Of);let l,o;if(i<a)l=1,o=i+1;else{let s=i-a;s<155?(l=Math.floor(s/31)+2,o=s%31+1):(s-=155,l=Math.floor(s/30)+7,o=s%30+1)}return new we(this,r,l,o)}toJulianDay(t){let n=t.year+Jl,[r,i]=Wi(n),a,l;return Xt(i)?(a=31,l=bn(r,i,3,21)):(a=30,l=bn(r,i,3,22)),t.month===1?l+t.day-1:(l+=a+Math.min(t.month-2,5)*31,t.month>=8&&(l+=(t.month-7)*30),l+=t.day-1,l)}getDaysInMonth(t){return t.month===1&&Xt(t.year+Jl)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const ta=1948440,zf=1948439,nt=1300,Gn=1600,E6=460322;function na(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Vf(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+na(t,r,1,1)))/29.5)+1),a=n-na(t,r,i,1)+1;return new we(e,r,i,a)}function _f(e){return(14+11*e)%30<11}class Ql{fromJulianDay(t){return Vf(this,ta,t)}toJulianDay(t){return na(ta,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&_f(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return _f(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class w6 extends Ql{fromJulianDay(t){return Vf(this,zf,t)}toJulianDay(t){return na(zf,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const S6="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let eo,Zn;function ra(e){return E6+Zn[e-nt]}function Nr(e,t){let n=e-nt,r=1<<11-(t-1);return(eo[n]&r)===0?29:30}function Rf(e,t){let n=ra(e);for(let r=1;r<t;r++)n+=Nr(e,r);return n}function jf(e){return Zn[e+1-nt]-Zn[e-nt]}class P6 extends Ql{constructor(){if(super(),this.identifier="islamic-umalqura",eo||(eo=new Uint16Array(Uint8Array.from(atob(S6),t=>t.charCodeAt(0)).buffer)),!Zn){Zn=new Uint32Array(Gn-nt+1);let t=0;for(let n=nt;n<=Gn;n++){Zn[n-nt]=t;for(let r=1;r<=12;r++)t+=Nr(n,r)}}}fromJulianDay(t){let n=t-ta,r=ra(nt),i=ra(Gn);if(n<r||n>i)return super.fromJulianDay(t);{let a=nt-1,l=1,o=1;for(;o>0;){a++,o=n-ra(a)+1;let s=jf(a);if(o===s){l=12;break}else if(o<s){let d=Nr(a,l);for(l=1;o>d;)o-=d,l++,d=Nr(a,l);break}}return new we(this,a,l,n-Rf(a,l)+1)}}toJulianDay(t){return t.year<nt||t.year>Gn?super.toJulianDay(t):ta+Rf(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<nt||t.year>Gn?super.getDaysInMonth(t):Nr(t.year,t.month)}getDaysInYear(t){return t.year<nt||t.year>Gn?super.getDaysInYear(t):jf(t.year)}}const Hf=347997,Uf=1080,Wf=24*Uf,k6=29,B6=12*Uf+793,N6=k6*Wf+B6;function $n(e){return Hn(e*7+1,19)<7}function ia(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Hn(3*(r+1),7)<3&&(r+=1),r}function A6(e){let t=ia(e-1),n=ia(e);return ia(e+1)-n===356?2:n-t===382?1:0}function Ar(e){return ia(e)+A6(e)}function Gf(e){return Ar(e+1)-Ar(e)}function F6(e){let t=Gf(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function aa(e,t){if(t>=6&&!$n(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=F6(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$n(e)?30:0:30}class T6{fromJulianDay(t){let n=t-Hf,r=n*Wf/N6,i=Math.floor((19*r+234)/235)+1,a=Ar(i),l=Math.floor(n-a);for(;l<1;)i--,a=Ar(i),l=Math.floor(n-a);let o=1,s=0;for(;s<l;)s+=aa(i,o),o++;o--,s-=aa(i,o);let d=l-s;return new we(this,i,o,d)}toJulianDay(t){let n=Ar(t.year);for(let r=1;r<t.month;r++)n+=aa(t.year,r);return n+t.day+Hf}getDaysInMonth(t){return aa(t.year,t.month)}getMonthsInYear(t){return $n(t.year)?13:12}getDaysInYear(t){return Gf(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&($n(n.year)&&!$n(t.year)&&n.month>6?t.month--:!$n(n.year)&&$n(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const to=1723856,Zf=1824665,no=5500;function la(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function ro(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-la(e,n,1,1))/30),i=t+1-la(e,n,r,1);return[n,r,i]}function Yf(e){return Math.floor(e%4/3)}function qf(e,t){return t%13!==0?30:Yf(e)+5}class io{fromJulianDay(t){let[n,r,i]=ro(to,t),a="AM";return n<=0&&(a="AA",n+=no),new we(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=no),la(to,n,t.month,t.day)}getDaysInMonth(t){return qf(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Yf(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class I6 extends io{fromJulianDay(t){let[n,r,i]=ro(to,t);return n+=no,new we(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class M6 extends io{fromJulianDay(t){let[n,r,i]=ro(Zf,t),a="CE";return n<=0&&(a="BCE",n=1-n),new we(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),la(Zf,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),qf(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function oa(e){switch(e){case"buddhist":return new v6;case"ethiopic":return new io;case"ethioaa":return new I6;case"coptic":return new M6;case"hebrew":return new T6;case"indian":return new D6;case"islamic-civil":return new Ql;case"islamic-tbla":return new w6;case"islamic-umalqura":return new P6;case"japanese":return new $6;case"persian":return new C6;case"roc":return new x6;default:return new Re}}let ao=new Map;class vn{constructor(t,n={}){this.formatter=Xf(t,n),this.options=n}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return O6()&&(this.resolvedHourCycle||(this.resolvedHourCycle=z6(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}}const K6={true:{ja:"h11"},false:{}};function Xf(e,t={}){if(typeof t.hour12=="boolean"&&L6()){t={...t};let i=K6[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(ao.has(n))return ao.get(n);let r=new Intl.DateTimeFormat(e,t);return ao.set(n,r),r}let lo=null;function L6(){return lo==null&&(lo=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),lo}let oo=null;function O6(){return oo==null&&(oo=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),oo}function z6(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=Xf(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Ye(e){e=of(e??{},V6);let{locale:t}=be();return u.useMemo(()=>new vn(t,e),[t,e])}function V6(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function Jf(e){return e&&e.__esModule?e.default:e}const uo=new WeakMap;function Fr(e){return e?.calendar.identifier==="gregory"&&e.era==="BC"?"short":void 0}function _6(e){let t=ke(Jf(Er),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:(n=Array.isArray(e.value)?e.value[0]:e.value??void 0,r=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let i=Ye({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Fr(n)||Fr(r),timeZone:e.timeZone}),{locale:a}=be(),l=u.useMemo(()=>new Intl.ListFormat(a),[a]),o="anchorDate"in e?e.anchorDate:null;return u.useMemo(()=>{if(!o&&n&&r){if(Ce(n,r)){let s=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else if("highlightedRange"in e){let s=co(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}else if(Array.isArray(e.value)){let s=e.value.map(c=>i.format(c.toDate(e.timeZone))),d=l.format(s);return t.format("selectedDateDescription",{date:d})}}return""},[n,r,o,e,t,i,l])}function so(e,t,n,r){let i=ke(Jf(Er),"@react-aria/calendar"),a=Fr(e)||Fr(t),l=Ye({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),o=Ye({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return u.useMemo(()=>{if(Ce(e,gn(e))){let s=e,d=t;if(e.calendar.getFormattableMonth&&(s=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),Ce(t,Yi(e)))return l.format(s.toDate(n));if(Ce(t,Yi(t)))return r?co(l,i,s,d,n):l.formatRange(s.toDate(n),d.toDate(n))}return r?co(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,l,o,i,n,r])}function co(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),l=-1;for(let d=0;d<a.length;d++){let c=a[d];if(c.source==="shared"&&c.type==="literal")l=d;else if(c.source==="endRange")break}let o="",s="";for(let d=0;d<a.length;d++)d<l?o+=a[d].value:d>l&&(s+=a[d].value);return t.format("dateRange",{startDate:o,endDate:s})}function Tr(e,t){const n=u.useRef(!0),r=u.useRef(null);let i=De(e);u.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),u.useEffect(()=>{let a=r.current;n.current?n.current=!1:(!a||t.some((l,o)=>!Object.is(l,a[o])))&&i(),r.current=t},t)}function R6(e){return e&&e.__esModule?e.default:e}function Qf(e,t){let n=ke(R6(Er),"@react-aria/calendar"),r=ie(e),i=so(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=so(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Tr(()=>{t.isFocused||$t(a)},[a]);let l=_6(t);Tr(()=>{l&&$t(l,"polite",4e3)},[l]);let o=mt([!!e.errorMessage,e.isInvalid,e.validationState]);uo.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:l});let[s,d]=u.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&s&&(d(!1),t.setFocused(!0));let[f,m]=u.useState(!1),h=e.isDisabled||t.isPreviousVisibleRangeInvalid();h&&f&&(m(!1),t.setFocused(!0));let p=Ft({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:X(r,p,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:h,onFocusChange:m},errorMessageProps:{id:o},title:i}}function j6(e,t){return Qf(e,t)}function H6(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=be(),{keyboardProps:l}=Le({shortcuts:{End:()=>{t.focusSectionEnd()},Home:()=>{t.focusSectionStart()},Escape:()=>("setAnchorDate"in t&&t.setAnchorDate(null),!1)}}),{keyboardProps:o}=Le({shortcuts:{Enter:()=>{t.selectFocusedDate()}," ":()=>{t.selectFocusedDate()},PageUp:()=>{t.focusPreviousSection()},"Shift+PageUp":()=>{t.focusPreviousSection(!0)},PageDown:()=>{t.focusNextSection()},"Shift+PageDown":()=>{t.focusNextSection(!0)},ArrowLeft:()=>{a==="rtl"?t.focusNextDay():t.focusPreviousDay()},ArrowUp:()=>{t.focusPreviousRow()},ArrowRight:()=>{a==="rtl"?t.focusPreviousDay():t.focusNextDay()},ArrowDown:()=>{t.focusNextRow()}},allowRepeats:!0}),s=so(n,r,t.timeZone,!0),{ariaLabel:d,ariaLabelledBy:c}=uo.get(t),f=Ft({"aria-label":[d,s].filter(Boolean).join(", "),"aria-labelledby":c}),m=Ye({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=be(),p=u.useMemo(()=>{let y=t.visibleDuration.days&&t.visibleDuration.days<7,$=y?n:Sr(zl(t.timeZone),h,i),x=y?t.visibleDuration.days:7;return[...new Array(x).keys()].map(v=>{let w=$.add({days:v}).toDate(t.timeZone);return m.format(w)})},[h,t.timeZone,m,i,n,t.visibleDuration.days]),g=t.getWeeksInMonth(n);return{gridProps:X(f,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||t.selectionMode==="multiple"||void 0,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)},l,o),headerProps:{"aria-hidden":!0},weekDays:p,weeksInMonth:g}}function en(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!=="hidden"&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function ot(e,t){let n=e;for(en(n,t)&&(n=n.parentElement);n&&!en(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function fo(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(en(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function ua(e,t,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(e===t)return;let a=e.scrollTop,l=e.scrollLeft,o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),d=window.getComputedStyle(t),c=window.getComputedStyle(e),f=document.scrollingElement||document.documentElement,m=e===f,h=e===f?0:s.top,p=e===f?e.clientHeight:s.bottom,g=e===f?0:s.left,y=e===f?e.clientWidth:s.right,$=parseFloat(d.scrollMarginTop)||0,x=parseFloat(d.scrollMarginBottom)||0,v=parseFloat(d.scrollMarginLeft)||0,C=parseFloat(d.scrollMarginRight)||0,w=parseFloat(c.scrollPaddingTop)||0,S=parseFloat(c.scrollPaddingBottom)||0,B=parseFloat(c.scrollPaddingLeft)||0,E=parseFloat(c.scrollPaddingRight)||0,k=parseFloat(c.borderTopWidth)||0,M=parseFloat(c.borderBottomWidth)||0,F=parseFloat(c.borderLeftWidth)||0,I=parseFloat(c.borderRightWidth)||0,j=o.top-$,D=o.bottom+x,T=o.left-v,Y=o.right+C,K=e===f?0:F+I,q=e===f?0:k+M,P=e===f?0:e.offsetWidth-e.clientWidth-K,N=e===f?0:e.offsetHeight-e.clientHeight-q,R=h+(m?0:k)+w,Q=p-(m?0:M)-S-N,O=g+(m?0:F)+B,z=y-(m?0:I)-E;bt()&>()||c.direction==="ltr"?z-=P:c.direction==="rtl"&&(O+=P);let A=j<R||D>Q,V=T<O||Y>z;if(A&&r==="start")a+=j-R;else if(A&&r==="center")a+=(j+D)/2-(R+Q)/2;else if(A&&r==="end")a+=D-Q;else if(A&&r==="nearest"){let L=j-R,J=D-Q;a+=Math.abs(L)<=Math.abs(J)?L:J}if(V&&i==="start")l+=T-O;else if(V&&i==="center")l+=(T+Y)/2-(O+z)/2;else if(V&&i==="end")l+=Y-z;else if(V&&i==="nearest"){let L=T-O,J=Y-z;l+=Math.abs(L)<=Math.abs(J)?L:J}if(process.env.NODE_ENV==="test"){e.scrollLeft=l,e.scrollTop=a;return}e.scrollTo({left:l,top:a})}function Ct(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let r=document.scrollingElement||document.documentElement;if(window.getComputedStyle(r).overflow==="hidden"){let{left:a,top:l}=e.getBoundingClientRect(),o=fo(e,!0);for(let c of o)ua(c,e);let{left:s,top:d}=e.getBoundingClientRect();if(Math.abs(a-s)>1||Math.abs(l-d)>1){o=n?fo(n,!0):[];for(let c of o)ua(c,n,{block:"center",inline:"center"});for(let c of fo(e,!0))ua(c,e)}}else{let{left:a,top:l}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:o,top:s}=e.getBoundingClientRect();(Math.abs(a-o)>1||Math.abs(l-s)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let U6=0;const mo=new Map;function xn(e){let[t,n]=u.useState();return fe(()=>{if(!e)return;let r=mo.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${U6++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},mo.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),mo.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function W6(e){return e&&e.__esModule?e.default:e}function G6(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:l}=uo.get(t),o=ke(W6(Er),"@react-aria/calendar"),s=Ye({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Fr(r),timeZone:t.timeZone}),d=t.isCellFocused(r)&&!e.isOutsideMonth;i=i||t.isCellDisabled(r)||!!e.isOutsideMonth;let c=t.isCellUnavailable(r),f=!i&&!c,m=t.isSelected(r)&&f,h=!1;t.isValueInvalid&&("highlightedRange"in t?h=!t.anchorDate&&t.highlightedRange!=null&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:Array.isArray(t.value)?h=t.value.some(F=>Ce(F,r)):t.value&&(h=Ce(t.value,r))),h&&!i&&(m=!0),r=of(r,Uv);let p=u.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),g=sf(r,t.timeZone),y=u.useMemo(()=>{let F="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Ce(r,t.value.start)||Ce(r,t.value.end))&&(F=l+", "),F+=s.format(p),g?F=o.format(m?"todayDateSelected":"todayDate",{date:F}):m&&(F=o.format("dateSelected",{date:F})),t.minValue&&Ce(r,t.minValue)?F+=", "+o.format("minimumDate"):t.maxValue&&Ce(r,t.maxValue)&&(F+=", "+o.format("maximumDate")),F},[s,p,o,m,g,r,t,l]),$="";"anchorDate"in t&&d&&!t.isReadOnly&&f&&(t.anchorDate?$=o.format("finishRangeSelectionPrompt"):$=o.format("startRangeSelectionPrompt"));let x=xn($),v=u.useRef(!1),C=u.useRef(!1),w=u.useRef(void 0),{pressProps:S,isPressed:B}=Tt({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(F){if(t.isReadOnly){t.setFocusedDate(r),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&(F.pointerType==="mouse"||F.pointerType==="touch")){if(t.highlightedRange&&!h){if(Ce(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setFocused(!0),t.setDragging(!0),C.current=!0;return}else if(Ce(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setFocused(!0),t.setDragging(!0),C.current=!0;return}}let I=()=>{t.setDragging(!0),w.current=void 0,t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0),v.current=!0};F.pointerType==="touch"?w.current=setTimeout(I,200):I()}},onPressEnd(){C.current=!1,v.current=!1,clearTimeout(w.current),w.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0))},onPressUp(F){t.isReadOnly||("anchorDate"in t&&w.current&&(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0)),"anchorDate"in t&&(C.current?t.setAnchorDate(r):t.anchorDate&&!v.current?(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0)):F.pointerType==="keyboard"&&!t.anchorDate?(t.selectDate(r),t.focusNearestAvailableDate(r)):F.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0))))}}),E;i||(E=Ce(r,t.focusedDate)?0:-1),u.useEffect(()=>{d&&n.current&&(Xe(n.current),Kn()!=="pointer"&&ce()===n.current&&Ct(n.current,{containingElement:ot(n.current)}))},[d,n]);let k=Ye({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),M=u.useMemo(()=>k.formatToParts(p).find(F=>F.type==="day").value,[k,p]);return{cellProps:{role:"gridcell","aria-disabled":!f||void 0,"aria-selected":m||void 0,"aria-invalid":h||void 0},buttonProps:X(S,{onFocus(){i||(t.setFocusedDate(r),t.setFocused(!0))},tabIndex:E,role:"button","aria-disabled":!f||void 0,"aria-label":y,"aria-invalid":h||void 0,"aria-describedby":[h?a:void 0,x["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(F){"highlightDate"in t&&(F.pointerType!=="touch"||t.isDragging)&&f&&t.highlightDate(r)},onPointerDown(F){let I=G(F);I instanceof HTMLElement&&"releasePointerCapture"in I&&("hasPointerCapture"in I?I.hasPointerCapture(F.pointerId)&&I.releasePointerCapture(F.pointerId):I.releasePointerCapture(F.pointerId))},onContextMenu(F){F.preventDefault()}}),isPressed:B,isFocused:d,isSelected:m,isDisabled:i,isUnavailable:c,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:M}}function Z6(e,t){let n=Ye({month:e.format||"short",calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),r=[],i=t.focusedDate.calendar.getMonthsInYear(t.focusedDate);for(let o=1;o<=i;o++){let s=t.focusedDate.set({month:o}),d=s.calendar.getFormattableMonth?s.calendar.getFormattableMonth(s):s;r.push({id:o,date:s,formatted:n.format(d.toDate(t.timeZone))})}let{locale:a}=be();return{"aria-label":u.useMemo(()=>new Intl.DisplayNames(a,{type:"dateTimeField"}).of("month"),[a]),value:t.focusedDate.month,onChange:o=>{o!=null&&t.setFocusedDate(r[Number(o)-1].date)},items:r}}function Y6(e,t){let n=Ye({year:e.format?.year||"numeric",era:e.format?.era||(t.focusedDate.calendar.identifier==="gregory"&&t.focusedDate.era==="BC"?"short":void 0),calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),r=e.visibleYears||20,i=t.focusedDate.subtract({years:Math.floor(r/2)}),a=t.focusedDate.add({years:Math.ceil(r/2)-1});t.maxValue&&a.compare(t.maxValue)>0&&(a=Ve(t.maxValue),i=a.subtract({years:r-1})),t.minValue&&i.compare(t.minValue)<0&&(i=Ve(t.minValue),a=i.add({years:r-1}),t.maxValue&&a.compare(t.maxValue)>0&&(a=Ve(t.maxValue)));let l=[],o=i,s=0;for(;o.compare(a)<=0;)Hv(o,t.focusedDate)&&(s=l.length),l.push({id:l.length,date:o,formatted:n.format(o.toDate(t.timeZone))}),o=o.add({years:1});let{locale:d}=be();return{"aria-label":u.useMemo(()=>new Intl.DisplayNames(d,{type:"dateTimeField"}).of("year"),[d]),value:s,onChange:f=>{f!=null&&t.setFocusedDate(l[f].date)},items:l}}function q6(e,t){let n=u.useMemo(()=>{let a=t.visibleRange.start;return e.offset&&(a=a.add(e.offset)),a},[t.visibleRange.start,e.offset]),r=t.visibleDuration.days||t.visibleDuration.weeks,i=Ye({day:e.format?.day||(r?"numeric":void 0),month:e.format?.month||"long",year:e.format?.year||"numeric",era:e.format?.era||n&&n.calendar.identifier==="gregory"&&n.era==="BC"?"short":void 0,calendar:t.visibleRange?.start.calendar.identifier,timeZone:t.timeZone});return u.useMemo(()=>{if(r)return i.formatRange(n.toDate(t.timeZone),t.visibleRange.end.toDate(t.timeZone));let a=n.calendar.getFormattableMonth?n.calendar.getFormattableMonth(n):n;return i.format(a.toDate(t.timeZone))},[i,r,n,t.timeZone,t.visibleRange.end])}function X6(e,t,n){let{commitBehavior:r="select",...i}=e,a=Qf(i,t),l=u.useRef(!1),o=u.useRef(typeof window<"u"?window:null);lt(o,"pointerdown",c=>{l.current=c.width===0&&c.height===0});const s={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.commitSelection()};return lt(o,"pointerup",c=>{if(l.current){l.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let f=c.target;n.current&&Ht(n.current)&&(!ae(n.current,f)||!f.closest('button, [role="button"]'))&&s[r]()}),a.calendarProps.onBlur=c=>{n.current&&(!c.relatedTarget||!ae(n.current,c.relatedTarget))&&t.anchorDate&&s[r]()},lt(n,"touchmove",c=>{t.isDragging&&c.preventDefault()},{passive:!1,capture:!0}),a}function tn(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function ho(e,t,n,r,i){let a={};for(let o in t)a[o]=Math.floor(t[o]/2),a[o]>0&&t[o]%2===0&&a[o]--;let l=Cn(e,t,n).subtract(a);return Ir(e,l,t,n,r,i)}function Cn(e,t,n,r,i){let a=e;return t.years?a=_l(e):t.months?a=gn(e):(t.weeks||t.days&&t.days>7)&&(a=Sr(e,n)),Ir(e,a,t,n,r,i)}function po(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let l=Cn(e,t,n).subtract(a);return Ir(e,l,t,n,r,i)}function Ir(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let l=Hl(t,Cn(Ve(i),n,r));l&&(t=l)}if(a&&e.compare(a)<=0){let l=jl(t,po(Ve(a),n,r));l&&(t=l)}return t}function Dt(e,t,n){if(t){let r=Hl(e,Ve(t));r&&(e=r)}if(n){let r=jl(e,Ve(n));r&&(e=r)}return e}function e0(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function J6(e,t){return e===t?!0:e.days===t.days&&e.weeks===t.weeks&&e.months===t.months&&e.years===t.years}function t0(e){let t=u.useMemo(()=>new vn(e.locale),[e.locale]),n=u.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:l,maxValue:o,selectionAlignment:s,isDateUnavailable:d,pageBehavior:c="visible",selectionMode:f="single",firstDayOfWeek:m,weeksInMonth:h}=e,p=u.useMemo(()=>i(n.calendar),[i,n.calendar]),[g,y]=He(e.value,e.defaultValue??null,e.onChange),$=u.useMemo(()=>Array.isArray(g)?g.map(z=>ye(Ve(z),p)):g?ye(Ve(g),p):null,[g,p]),x=u.useMemo(()=>{let z=Array.isArray(g)?g[0]:g;return z&&"timeZone"in z?z.timeZone:n.timeZone},[g,n.timeZone]),v=u.useMemo(()=>e.focusedValue?Dt(ye(Ve(e.focusedValue),p),l,o):void 0,[e.focusedValue,p,l,o]),C=u.useMemo(()=>e.defaultFocusedValue?Dt(ye(Ve(e.defaultFocusedValue),p),l,o):Dt($?Array.isArray($)?$[0]:$:ye(zl(x),p),l,o),[e.defaultFocusedValue,$,x,p,l,o]),[w,S]=He(v,C,e.onFocusChange),B=()=>{switch(s){case"start":return Cn(w,a,r,l,o);case"end":return po(w,a,r,l,o);default:return ho(w,a,r,l,o)}},[E,k]=u.useState(B),[M,F]=u.useState(e.autoFocus||!1),[I,j]=u.useState(a);J6(a,I)||(j(a),k(B()));let D=u.useMemo(()=>{let z={...a};return z.days?z.days--:z.days=-1,E.add(z)},[E,a]),[T,Y]=u.useState(p);if(!Gi(p,T)){let z=ye(w,p);k(ho(z,a,r,l,o)),S(z),Y(p)}tn(w,l,o)?S(Dt(w,l,o)):w.compare(E)<0?k(po(w,a,r,l,o)):w.compare(D)>0&&k(Cn(w,a,r,l,o));function K(z){z=Dt(z,l,o),S(z)}function q(z){let A=Dt(z,l,o),V=e0(A,E,d);if(!V)return null;let L=Array.isArray(g)?g[0]:g,J=ye(V,L?.calendar||new Re);return L&&"hour"in L?L.set(J):J}function P(z){if(!e.isDisabled&&!e.isReadOnly){if(z===null){y(f==="multiple"?[]:null);return}if(Array.isArray(z))y(z.map(q).filter(Boolean));else{let A=q(z);A&&y(A)}}}let N=u.useMemo(()=>$?Array.isArray($)?$.some(z=>d?.(z)||tn(z,l,o)):d?.($)||tn($,l,o):!1,[$,d,l,o]),R=e.isInvalid||e.validationState==="invalid"||N,Q=R?"invalid":null,O=u.useMemo(()=>c==="visible"?a:bo(a),[c,a]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:$,setValue:P,selectionMode:f,visibleDuration:a,visibleRange:{start:E,end:D},minValue:l,maxValue:o,focusedDate:w,timeZone:x,validationState:Q,isValueInvalid:R,setFocusedDate(z){K(z)},focusNextDay(){K(w.add({days:1}))},focusPreviousDay(){K(w.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&K(w.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&K(w.subtract({weeks:1}))},focusNextPage(){let z=E.add(O);S(Dt(w.add(O),l,o)),k(Cn(Ir(w,z,O,r,l,o),O,r))},focusPreviousPage(){let z=E.subtract(O);S(Dt(w.subtract(O),l,o)),k(Cn(Ir(w,z,O,r,l,o),O,r))},focusSectionStart(){a.days?K(E):a.weeks?K(Sr(w,r)):(a.months||a.years)&&K(gn(w))},focusSectionEnd(){a.days?K(D):a.weeks?K(Yv(w,r)):(a.months||a.years)&&K(Yi(w))},focusNextSection(z){if(!z&&!a.days){K(w.add(bo(a)));return}a.days?this.focusNextPage():a.weeks?K(w.add({months:1})):(a.months||a.years)&&K(w.add({years:1}))},focusPreviousSection(z){if(!z&&!a.days){K(w.subtract(bo(a)));return}a.days?this.focusPreviousPage():a.weeks?K(w.subtract({months:1})):(a.months||a.years)&&K(w.subtract({years:1}))},selectFocusedDate(){d&&d(w)||this.selectDate(w)},selectDate(z){if(!(e.isDisabled||e.isReadOnly))if(f==="multiple"&&z!=null){let A=q(z);if(!A)return;let V=[];Array.isArray(g)?V=g:g!=null&&(V=[g]);let L=V.findIndex(le=>Ce(le,A)),J=L>=0?V.slice(0,L).concat(V.slice(L+1)):[...V,A];y(J)}else P(z)},isFocused:M,setFocused:F,isInvalid(z){return tn(z,l,o)},isSelected(z){return!$||this.isCellDisabled(z)||this.isCellUnavailable(z)?!1:Array.isArray($)?$.some(A=>Ce(A,z)):Ce(z,$)},isCellFocused(z){return M&&w&&Ce(z,w)},isCellDisabled(z){return e.isDisabled||z.compare(E)<0||z.compare(D)>0||this.isInvalid(z)},isCellUnavailable(z){return e.isDateUnavailable?e.isDateUnavailable(z):!1},isPreviousVisibleRangeInvalid(){let z=E.subtract({days:1});return Ce(z,E)||this.isInvalid(z)},isNextVisibleRangeInvalid(){let z=D.add({days:1});return Ce(z,D)||this.isInvalid(z)},getDatesInWeek(z,A=E){let V=A.add({weeks:z}),L=[],J=a.days&&a.days<7?a.days:7;if(J===7){V=Sr(V,r,m);let le=Ol(V,r,m);for(let Ke=0;Ke<le;Ke++)L.push(null)}for(;L.length<J;){L.push(V);let le=V.add({days:1});if(Ce(V,le))break;V=le}for(;L.length<J;)L.push(null);return L},getWeeksInMonth(z=E){let A=h||Jv(z,r,m);return(a.weeks||a.days)&&(A=a.weeks??0,a.days&&(A+=Math.ceil(a.days/7))),A}}}function bo(e){let t={...e};for(let n in e)t[n]=1;return t}function Q6(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:l={months:1},minValue:o,maxValue:s,...d}=e,[c,f]=He(t,n||null,r),[m,h]=u.useState(null),p="center";if(c&&c.start&&c.end){let j=ho(Ve(c.start),l,a,o,s).add(l).subtract({days:1});c.end.compare(j)>0&&(p="start")}let g=u.useMemo(()=>{let I=e.isDateUnavailable;if(I)return j=>I(j,m)},[e.isDateUnavailable,m]),y=u.useCallback(I=>{if(I&&g&&!e.allowsNonContiguousRanges){const j=r0(I,g,l,-1),D=r0(I,g,l,1);return{start:j,end:D}}else return null},[g,l,e.allowsNonContiguousRanges]),$=u.useMemo(()=>y(m),[y,m]),x=u.useMemo(()=>Hl(o,$?.start),[o,$]),v=u.useMemo(()=>jl(s,$?.end),[s,$]),C=t0({...d,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:l,minValue:x,maxValue:v,selectionAlignment:e.selectionAlignment||p,isDateUnavailable:g}),w=m?go(m,C.focusedDate):c&&go(c.start,c.end),S=I=>{if(e.isReadOnly)return;const j=Dt(I,x,v),D=e0(j,C.visibleRange.start,g);if(D)if(!m)h(D);else{let T=go(m,D);T&&f({start:n0(T.start,c?.start),end:n0(T.end,c?.end)}),h(null)}},[B,E]=u.useState(!1),k=u.useMemo(()=>!c||m?!1:g&&(g(c.start)||g(c.end))?!0:tn(c.start,o,s)||tn(c.end,o,s),[g,c,m,o,s]),M=e.isInvalid||e.validationState==="invalid"||k;return{...C,value:c,setValue:f,anchorDate:m,setAnchorDate:h,highlightedRange:w,validationState:M?"invalid":null,isValueInvalid:M,selectFocusedDate(){C.isCellUnavailable(C.focusedDate)||S(C.focusedDate)},commitSelection(){S(C.focusedDate)},selectDate:S,highlightDate(I){m&&C.setFocusedDate(I)},isSelected(I){return!!(w&&I.compare(w.start)>=0&&I.compare(w.end)<=0&&!C.isCellDisabled(I)&&!C.isCellUnavailable(I))},isInvalid(I){return C.isInvalid(I)||tn(I,$?.start,$?.end)},isDragging:B,setDragging:E,clearSelection(){h(null),f(null)},focusNearestAvailableDate(I){let j=y(I),D=Y=>this.isInvalid(Y)||tn(Y,j?.start,j?.end),T=I.add({days:1});D(T)&&(T=I.subtract({days:1})),D(T)||(this.setFocusedDate(T),this.setFocused(!0))}}}function go(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Ve(e),end:Ve(t)})}function n0(e,t){return e=ye(e,t?.calendar||new Re),t&&"hour"in t?t.set(e):e}function r0(e,t,n,r){let i=e.add({days:r}),a=e.subtract(n),l=e.add(n);for(;(r<0?i.compare(a)>=0:i.compare(l)<=0)&&!t(i);)i=i.add({days:r});if(t(i))return i.add({days:-r})}const i0={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 Dn(e={}){let{style:t,isFocusable:n}=e,[r,i]=u.useState(!1),{focusWithinProps:a}=jn({isDisabled:!n,onFocusWithinChange:o=>i(o)}),l=u.useMemo(()=>r?t:t?{...i0,...t}:i0,[r]);return{visuallyHiddenProps:{...a,style:l}}}function Mr(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:l}=Dn(e);return u.createElement(n,X(a,l),t)}const yo=u.createContext(null),$o=u.createContext(null),Yn=u.createContext(null),qn=u.createContext(null),ex=u.forwardRef(function(t,n){[t,n]=pe(t,n,yo);let{locale:r}=be(),i=t0({...t,locale:r,createCalendar:t.createCalendar||oa}),{calendarProps:a,prevButtonProps:l,nextButtonProps:o,errorMessageProps:s,title:d}=j6(t,i),c=ue({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:"react-aria-Calendar"}),f=ie(t,{global:!0});return u.createElement(re.div,{...X(f,c,a),ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},u.createElement(Pe,{values:[[vt,{slots:{previous:l,next:o}}],[Ui,{"aria-hidden":!0,level:2,children:d}],[Yn,i],[yo,t],[tt,{slots:{errorMessage:s}}]]},u.createElement(Mr,null,u.createElement("h2",null,a["aria-label"])),c.children,u.createElement(Mr,null,u.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))}),tx=u.forwardRef(function(t,n){[t,n]=pe(t,n,$o);let{locale:r}=be(),i=Q6({...t,locale:r,createCalendar:t.createCalendar||oa}),{calendarProps:a,prevButtonProps:l,nextButtonProps:o,errorMessageProps:s,title:d}=X6(t,i,n),c=ue({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),f=ie(t,{global:!0});return u.createElement(re.div,{...X(c,f,a),ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},u.createElement(Pe,{values:[[vt,{slots:{previous:l,next:o}}],[Ui,{"aria-hidden":!0,level:2,children:d}],[qn,i],[$o,t],[tt,{slots:{errorMessage:s}}]]},u.createElement(Mr,null,u.createElement("h2",null,a["aria-label"])),c.children,u.createElement(Mr,null,u.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))}),sa=u.createContext(null),nx=u.forwardRef(function(t,n){let r=u.useContext(Yn),i=u.useContext(qn),a=qe(yo),l=qe($o),o=r??i,s=o.visibleRange.start;t.offset&&(s=s.add(t.offset));let d=a?.firstDayOfWeek??l?.firstDayOfWeek,{gridProps:c,headerProps:f,weekDays:m,weeksInMonth:h}=H6({startDate:s,endDate:Yi(s),weekdayStyle:t.weekdayStyle,firstDayOfWeek:d},o),p=ie(t,{global:!0});return u.createElement(sa.Provider,{value:{headerProps:f,weekDays:m,startDate:s,weeksInMonth:h}},u.createElement(re.table,{render:t.render,...X(p,c),ref:n,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children!="function"?t.children:u.createElement(u.Fragment,null,u.createElement(a0,null,g=>u.createElement(l0,null,g)),u.createElement(o0,null,t.children))))});function rx(e,t){let{children:n,style:r,className:i}=e,{headerProps:a,weekDays:l}=u.useContext(sa),o=ie(e,{global:!0});return u.createElement(re.thead,{render:e.render,...X(o,a),ref:t,style:r,className:i??"react-aria-CalendarGridHeader"},u.createElement("tr",null,l.map((s,d)=>u.cloneElement(n(s),{key:d}))))}const a0=u.forwardRef(rx);function ix(e,t){let{children:n,style:r,className:i}=e,a=ie(e,{global:!0});return u.createElement(re.th,{render:e.render,...a,ref:t,style:r,className:i||"react-aria-CalendarHeaderCell"},n)}const l0=u.forwardRef(ix);function ax(e,t){let{children:n,style:r,className:i}=e,a=u.useContext(Yn),l=u.useContext(qn),o=a??l,{startDate:s,weeksInMonth:d}=u.useContext(sa),c=ie(e,{global:!0});return u.createElement(re.tbody,{render:e.render,...c,ref:t,style:r,className:i??"react-aria-CalendarGridBody"},[...new Array(d).keys()].map(f=>u.createElement("tr",{key:f},o.getDatesInWeek(f,s).map((m,h)=>m?u.cloneElement(n(m),{key:h}):u.createElement("td",{key:h})))))}const o0=u.forwardRef(ax),lx=u.forwardRef(function({date:t,...n},r){let i=u.useContext(Yn),a=u.useContext(qn),l=i??a,{startDate:o}=u.useContext(sa)??{startDate:l.visibleRange.start},s=l.visibleDuration.days||l.visibleDuration.weeks?!1:!jv(o,t),d=sf(t,l.timeZone),c=u.useRef(null),{cellProps:f,buttonProps:m,...h}=G6({date:t,isOutsideMonth:s},l,c),{hoverProps:p,isHovered:g}=ze({...n,isDisabled:h.isDisabled||h.isUnavailable}),{focusProps:y,isFocusVisible:$}=Oe();$&&=h.isFocused;let x=!1,v=!1;"highlightedRange"in l&&l.highlightedRange&&(x=Ce(t,l.highlightedRange.start),v=Ce(t,l.highlightedRange.end));let C=ue({...n,defaultChildren:h.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:s,isFocusVisible:$,isSelectionStart:x,isSelectionEnd:v,isToday:d,...h}}),w={"data-focused":h.isFocused||void 0,"data-hovered":g||void 0,"data-pressed":h.isPressed||void 0,"data-unavailable":h.isUnavailable||void 0,"data-disabled":h.isDisabled||void 0,"data-focus-visible":$||void 0,"data-outside-visible-range":h.isOutsideVisibleRange||void 0,"data-outside-month":s||void 0,"data-selected":h.isSelected||void 0,"data-selection-start":x||void 0,"data-selection-end":v||void 0,"data-invalid":h.isInvalid||void 0,"data-today":d||void 0},S=ie(n,{global:!0});return u.createElement("td",{...f,ref:r},u.createElement(re.div,{...X(S,m,y,p,w,C),ref:c}))}),ox=u.forwardRef(function(t,n){let{offset:r,format:i,className:a="react-aria-CalendarHeading",...l}=t,o=u.useContext(Yn),s=u.useContext(qn),c=q6({offset:r,format:i},o||s);return u.createElement(wc,{...l,className:a,ref:n},c)}),da=u.createContext(null),u0={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},s0={...u0,customError:!0,valid:!1},Kr={isInvalid:!1,validationDetails:u0,validationErrors:[]},ux=u.createContext({}),vo="__reactAriaFormValidationState";function ca(e){if(e[vo]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[vo];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return sx(e)}function sx(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:l,validationBehavior:o="aria"}=e;n&&(t||=n==="invalid");let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:s0}:null,d=u.useMemo(()=>{if(!l||i==null)return null;let M=dx(l,i);return d0(M)},[l,i]);a?.validationDetails.valid&&(a=void 0);let c=u.useContext(ux),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(M=>xo(c[M])):xo(c[r]):[],[c,r]),[m,h]=u.useState(c),[p,g]=u.useState(!1);c!==m&&(h(c),g(!1));let y=u.useMemo(()=>d0(p?[]:f),[p,f]),$=u.useRef(Kr),[x,v]=u.useState(Kr),C=u.useRef(Kr),w=()=>{if(!S)return;B(!1);let M=d||a||$.current;Co(M,C.current)||(C.current=M,v(M))},[S,B]=u.useState(!1);return u.useEffect(w),{realtimeValidation:s||y||d||a||Kr,displayValidation:o==="native"?s||y||x:s||y||d||a||x,updateValidation(M){o==="aria"&&!Co(x,M)?v(M):$.current=M},resetValidation(){let M=Kr;Co(M,C.current)||(C.current=M,v(M)),o==="native"&&B(!1),g(!0)},commitValidation(){o==="native"&&B(!0),g(!0)}}}function xo(e){return e?Array.isArray(e)?e:[e]:[]}function dx(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return xo(n)}return[]}function d0(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:s0}:null}function Co(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}const fa=u.createContext(null);function Do(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:l}=Il(e),o=mt([!!t,!!n,r,i]),s=mt([!!t,!!n,r,i]);return l=X(l,{"aria-describedby":[o,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:l,descriptionProps:{id:o},errorMessageProps:{id:s}}}function ma(e,t,n){let r=De(i=>{n&&!i.defaultPrevented&&n(t)});u.useEffect(()=>{let i=e?.current?.form;return i?.addEventListener("reset",r),()=>{i?.removeEventListener("reset",r)}},[e])}function Eo(e,t,n){let{validationBehavior:r,focus:i}=e;fe(()=>{if(r==="native"&&n?.current&&"setCustomValidity"in n.current&&!n.current.disabled){let d=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(fx(n.current))}});let a=u.useRef(!1),l=De(()=>{a.current||t.resetValidation()}),o=De(d=>{t.displayValidation.isInvalid||t.commitValidation();let c=n?.current?.form;!d.defaultPrevented&&n&&c&&mx(c)===n.current&&(i?i():n.current?.focus(),Ln("keyboard")),d.preventDefault()}),s=De(()=>{t.commitValidation()});u.useEffect(()=>{let d=n?.current;if(!d)return;let c=d.form,f=c?.reset;return c&&(c.reset=()=>{a.current=!window.event||window.event.type==="message"&&G(window.event)instanceof MessagePort,f?.call(c),a.current=!1}),d.addEventListener("invalid",o),d.addEventListener("change",s),c?.addEventListener("reset",l),()=>{d.removeEventListener("invalid",o),d.removeEventListener("change",s),c?.removeEventListener("reset",l),c&&(c.reset=f)}},[n,r])}function cx(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 fx(e){return{isInvalid:!e.validity.valid,validationDetails:cx(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function mx(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}const c0=u.createContext(null),f0=u.createContext(null);function hx(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:l}=Rn(),o=u.useCallback((m,h,p,g)=>{p===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t?.({type:"movestart",pointerType:h,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey})),n?.({type:"move",pointerType:h,deltaX:p,deltaY:g,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey}))},[t,n,i]),s=De(o),d=u.useCallback((m,h)=>{zi(),i.current.didMove&&r?.({type:"moveend",pointerType:h,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey})},[r,i]),c=De(d);return{moveProps:u.useMemo(()=>{let m={},h=()=>{Pl(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let g=v=>{v.button===0&&(s(v,"mouse",v.pageX-(i.current.lastPosition?.pageX??0),v.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY})},y=v=>{if(v.button===0){c(v,"mouse");let C=xe(G(v));l(C,"mousemove",g,!1),l(C,"mouseup",y,!1)}};m.onMouseDown=v=>{if(v.button===0){h(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY};let C=xe(G(v));a(C,"mousemove",g,!1),a(C,"mouseup",y,!1)}};let $=v=>{let C=[...v.changedTouches].findIndex(({identifier:w})=>w===i.current.id);if(C>=0){let{pageX:w,pageY:S}=v.changedTouches[C];s(v,"touch",w-(i.current.lastPosition?.pageX??0),S-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:w,pageY:S}}},x=v=>{if([...v.changedTouches].findIndex(({identifier:w})=>w===i.current.id)>=0){c(v,"touch"),i.current.id=null;let w=xe(G(v));l(w,"touchmove",$),l(w,"touchend",x),l(w,"touchcancel",x)}};m.onTouchStart=v=>{if(v.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:w,identifier:S}=v.changedTouches[0];h(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:C,pageY:w},i.current.id=S;let B=xe(G(v));a(B,"touchmove",$,!1),a(B,"touchend",x,!1),a(B,"touchcancel",x,!1)}}else{let g=$=>{if($.pointerId===i.current.id){let x=$.pointerType||"mouse";s($,x,$.pageX-(i.current.lastPosition?.pageX??0),$.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},y=$=>{if($.pointerId===i.current.id){let x=$.pointerType||"mouse";c($,x),i.current.id=null;let v=xe(G($));l(v,"pointermove",g,!1),l(v,"pointerup",y,!1),l(v,"pointercancel",y,!1)}};m.onPointerDown=$=>{if($.button===0&&i.current.id==null){h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId;let x=xe(G($));a(x,"pointermove",g,!1),a(x,"pointerup",y,!1),a(x,"pointercancel",y,!1)}}}let p=(g,y,$)=>{h(),s(g,"keyboard",y,$),c(g,"keyboard")};return m.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),p(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),p(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),p(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),p(g,0,1);break}},m},[a,l,i])}}const Xn=u.createContext({}),Lr=u.forwardRef(function(t,n){[t,n]=pe(t,n,Xn);let{isDisabled:r,isInvalid:i,isReadOnly:a,onHoverStart:l,onHoverChange:o,onHoverEnd:s,...d}=t;r??=!!t["aria-disabled"]&&t["aria-disabled"]!=="false",i??=!!t["aria-invalid"]&&t["aria-invalid"]!=="false";let{hoverProps:c,isHovered:f}=ze({onHoverStart:l,onHoverChange:o,onHoverEnd:s,isDisabled:r}),{isFocused:m,isFocusVisible:h,focusProps:p}=Oe({within:!0}),g=ue({...t,values:{isHovered:f,isFocusWithin:m,isFocusVisible:h,isDisabled:r,isInvalid:i},defaultClassName:"react-aria-Group"});return u.createElement(re.div,{...X(d,p,c),...g,ref:n,role:t.role??"group",slot:t.slot??void 0,"data-focus-within":m||void 0,"data-hovered":f||void 0,"data-focus-visible":h||void 0,"data-disabled":r||void 0,"data-invalid":i||void 0,"data-readonly":a||void 0},g.children)}),Jn=u.createContext({});let px=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i};const ha=Vn(function(t,n){[t,n]=pe(t,n,Jn);let{hoverProps:r,isHovered:i}=ze({...t,isDisabled:t.disabled}),{isFocused:a,isFocusVisible:l,focusProps:o}=Oe({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=ue({...t,values:{isHovered:i,isFocused:a,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement(re.input,{...X(px(t),o,r),...d,ref:n,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":s||void 0})});function m0(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:l="text",validationBehavior:o="aria"}=e,[s,d]=He(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=zn(e,t),f=ca({...e,value:s}),{isInvalid:m,validationErrors:h,validationDetails:p}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:x}=Do({...e,isInvalid:m,errorMessage:e.errorMessage||h}),v=ie(e,{labelable:!0});const C={type:l,pattern:e.pattern};let[w]=u.useState(s);return ma(t,e.defaultValue??w,d),Eo(e,f,t),{labelProps:g,inputProps:X(v,n==="input"?C:void 0,{disabled:r,readOnly:a,required:i&&o==="native","aria-required":i&&o==="aria"||void 0,"aria-invalid":m||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:S=>d(G(S).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(u.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,...c,...y}),descriptionProps:$,errorMessageProps:x,isInvalid:m,validationErrors:h,validationDetails:p}}var h0={};h0={Empty:"فارغ"};var p0={};p0={Empty:"Изпразни"};var b0={};b0={Empty:"Prázdné"};var g0={};g0={Empty:"Tom"};var y0={};y0={Empty:"Leer"};var $0={};$0={Empty:"Άδειο"};var v0={};v0={Empty:"Empty"};var x0={};x0={Empty:"Vacío"};var C0={};C0={Empty:"Tühjenda"};var D0={};D0={Empty:"Tyhjä"};var E0={};E0={Empty:"Vide"};var w0={};w0={Empty:"ריק"};var S0={};S0={Empty:"Prazno"};var P0={};P0={Empty:"Üres"};var k0={};k0={Empty:"Vuoto"};var B0={};B0={Empty:"空"};var N0={};N0={Empty:"비어 있음"};var A0={};A0={Empty:"Tuščias"};var F0={};F0={Empty:"Tukšs"};var T0={};T0={Empty:"Tom"};var I0={};I0={Empty:"Leeg"};var M0={};M0={Empty:"Pusty"};var K0={};K0={Empty:"Vazio"};var L0={};L0={Empty:"Vazio"};var O0={};O0={Empty:"Gol"};var z0={};z0={Empty:"Не заполнено"};var V0={};V0={Empty:"Prázdne"};var _0={};_0={Empty:"Prazen"};var R0={};R0={Empty:"Prazno"};var j0={};j0={Empty:"Tomt"};var H0={};H0={Empty:"Boş"};var U0={};U0={Empty:"Пусто"};var W0={};W0={Empty:"空"};var G0={};G0={Empty:"空白"};var Z0={};Z0={"ar-AE":h0,"bg-BG":p0,"cs-CZ":b0,"da-DK":g0,"de-DE":y0,"el-GR":$0,"en-US":v0,"es-ES":x0,"et-EE":C0,"fi-FI":D0,"fr-FR":E0,"he-IL":w0,"hr-HR":S0,"hu-HU":P0,"it-IT":k0,"ja-JP":B0,"ko-KR":N0,"lt-LT":A0,"lv-LV":F0,"nb-NO":T0,"nl-NL":I0,"pl-PL":M0,"pt-BR":K0,"pt-PT":L0,"ro-RO":O0,"ru-RU":z0,"sk-SK":V0,"sl-SI":_0,"sr-SP":R0,"sv-SE":j0,"tr-TR":H0,"uk-UA":U0,"zh-CN":W0,"zh-TW":G0};function bx(e){return e&&e.__esModule?e.default:e}const Y0=()=>{};function gx(e){const t=u.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:l,isReadOnly:o,isRequired:s,onIncrement:d,onIncrementPage:c,onDecrement:f,onDecrementPage:m,onDecrementToMin:h,onIncrementToMax:p}=e;const g=ke(bx(Z0),"@react-aria/spinbutton");let y=u.useRef(!1);const $=u.useCallback(()=>{clearTimeout(t.current),y.current=!1},[]),x=De(()=>{$()});u.useEffect(()=>()=>x(),[]);let{keyboardProps:v}=Le({isDisabled:l||o,shortcuts:{PageUp:()=>{if(c){c();return}if(d){d();return}return!1},ArrowUp:()=>{if(d){d();return}return!1},PageDown:()=>{if(m){m();return}if(f){f();return}return!1},ArrowDown:()=>{if(f){f();return}return!1},Home:()=>{if(h){h();return}return!1},End:()=>{if(p){p();return}return!1}},allowRepeats:!0}),C=u.useRef(!1),w=()=>{C.current=!0},S=()=>{C.current=!1},B=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");u.useEffect(()=>{C.current&&(Kv("assertive"),$t(B,"assertive"))},[B]);let E=u.useCallback(()=>{$()},[$]);const k=De(d??Y0),M=De(f??Y0),F=De(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&(k(),I(60))}),I=De(O=>{x(),y.current=!0,t.current=window.setTimeout(F,O)}),j=De(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&(M(),D(60))}),D=De(O=>{x(),y.current=!0,t.current=window.setTimeout(j,O)});let T=O=>{O.preventDefault()},{addGlobalListener:Y,removeAllGlobalListeners:K}=Rn(),q=u.useRef(!1),[P,N]=u.useState(null);u.useEffect(()=>{P==="touch"?I(600):P?I(400):P||x()},[P]);let[R,Q]=u.useState(null);return u.useEffect(()=>{R==="touch"?D(600):R?D(400):R||x()},[R]),{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":B,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":l||void 0,"aria-readonly":o||void 0,"aria-required":s||void 0,...v,onFocus:w,onBlur:S},incrementButtonProps:{onPressStart:O=>{$(),O.pointerType!=="touch"?(d?.(),N("mouse")):(Y(window,"pointercancel",E,{capture:!0}),q.current=!1,N("touch")),Y(window,"contextmenu",T)},onPressUp:O=>{$(),O.pointerType==="touch"&&(q.current=!0),K(),N(null)},onPressEnd:O=>{$(),O.pointerType==="touch"&&!y.current&&q.current&&d?.(),q.current=!1,N(null)},onFocus:w,onBlur:S},decrementButtonProps:{onPressStart:O=>{$(),O.pointerType!=="touch"?(f?.(),Q("mouse")):(Y(window,"pointercancel",E,{capture:!0}),q.current=!1,Q("touch"))},onPressUp:O=>{$(),O.pointerType==="touch"&&(q.current=!0),K(),Q(null)},onPressEnd:O=>{$(),O.pointerType==="touch"&&!y.current&&q.current&&f?.(),q.current=!1,Q(null)},onFocus:w,onBlur:S}}}var q0={};q0={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var X0={};X0={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var J0={};J0={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var Q0={};Q0={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var em={};em={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var tm={};tm={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var nm={};nm={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var rm={};rm={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var im={};im={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var am={};am={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var lm={};lm={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var om={};om={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var um={};um={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var sm={};sm={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var dm={};dm={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var cm={};cm={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var fm={};fm={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var mm={};mm={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var hm={};hm={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var pm={};pm={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var bm={};bm={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var gm={};gm={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var ym={};ym={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var $m={};$m={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var vm={};vm={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var xm={};xm={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var Cm={};Cm={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var Dm={};Dm={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var Em={};Em={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var wm={};wm={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var Sm={};Sm={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var Pm={};Pm={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var km={};km={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Bm={};Bm={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var wo={};wo={"ar-AE":q0,"bg-BG":X0,"cs-CZ":J0,"da-DK":Q0,"de-DE":em,"el-GR":tm,"en-US":nm,"es-ES":rm,"et-EE":im,"fi-FI":am,"fr-FR":lm,"he-IL":om,"hr-HR":um,"hu-HU":sm,"it-IT":dm,"ja-JP":cm,"ko-KR":fm,"lt-LT":mm,"lv-LV":hm,"nb-NO":pm,"nl-NL":bm,"pl-PL":gm,"pt-BR":ym,"pt-PT":$m,"ro-RO":vm,"ru-RU":xm,"sk-SK":Cm,"sl-SI":Dm,"sr-SP":Em,"sv-SE":wm,"tr-TR":Sm,"uk-UA":Pm,"zh-CN":km,"zh-TW":Bm};const ut=u.createContext({}),So=u.createContext(null),yx=u.forwardRef(function(t,n){let{render:r}=u.useContext(So);return u.createElement(u.Fragment,null,r(t,n))});function pa(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),i=u.useCallback(a=>{if(r||t?.isDropTarget(a))return n?n(a):u.createElement(yx,{target:a})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function Nm(e,t,n){let r=e.focusedKey,i=null;if(t?.isVirtualDragging?.()&&n?.target?.type==="item"&&(i=n.target.key,n.target.dropPosition==="after")){let a=n.collection.getKeyAfter(i),l=null;if(a!=null){let o=n.collection.getItem(i)?.level??0;for(;a!=null;){let s=n.collection.getItem(a);if(!s)break;if(s.type!=="item"){a=n.collection.getKeyAfter(a);continue}if((s.level??0)<=o)break;l=a,a=n.collection.getKeyAfter(a)}}i=a??l??i}return u.useMemo(()=>new Set([r,i].filter(a=>a!=null)),[r,i])}const Po=u.createContext({}),$x=yt(gl,function(t,n){return[t,n]=pe(t,n,Po),u.createElement(re.header,{className:"react-aria-Header",...t,ref:n},t.children)}),Am=u.createContext(null);function ba(e){let t=u.useRef({});return u.createElement(Am.Provider,{value:t},e.children)}const vx=u.forwardRef(function(t,n){let{name:r,isVisible:i=!0,children:a,className:l,style:o,render:s,...d}=t,[c,f]=u.useState(i?"visible":"hidden"),m=u.useContext(Am);if(!m)throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");i&&c==="hidden"&&f("visible"),n=Te(n),fe(()=>{let p=n.current,g=m.current,y=g[r],$=null;if(p&&i&&y){f("visible");let x=p.getAnimations(),v=y.style.map(([C,w])=>{let S=p.style[C];if(C==="translate"){let B=y.rect,E=p.getBoundingClientRect(),k=B.left-E?.left,M=B.top-E?.top;p.style.translate=`${k}px ${M}px`}else p.style[C]=w;return[C,S]});for(let C of p.getAnimations())x.includes(C)||C.cancel();$=requestAnimationFrame(()=>{$=null;for(let[C,w]of v)p.style[C]=w}),delete g[r]}else p&&i&&!y?(queueMicrotask(()=>Rt.flushSync(()=>f("entering"))),$=requestAnimationFrame(()=>{$=null,f("visible")})):p&&!i&&queueMicrotask(()=>{g[r]?(delete g[r],Rt.flushSync(()=>f("exiting")),Promise.all(p.getAnimations().map(x=>x.finished)).then(()=>f("hidden")).catch(()=>{})):f("hidden")});return()=>{if($!=null&&cancelAnimationFrame($),p&&p.isConnected&&!p.hasAttribute("data-exiting")){let x=window.getComputedStyle(p);if(x.transitionProperty!=="none"){let v=x.transitionProperty.split(/\s*,\s*/);g[r]={rect:p.getBoundingClientRect(),style:v.map(C=>[C,x[C]])}}}}},[n,m,r,i]);let h=ue({children:a,className:l,style:o,render:s,values:{isEntering:c==="entering",isExiting:c==="exiting"}});return c==="hidden"?null:u.createElement(re.div,{...d,...h,ref:n,"data-entering":c==="entering"||void 0,"data-exiting":c==="exiting"||void 0})}),Or=u.createContext({isSelected:!1}),xx=u.forwardRef(function(t,n){[t,n]=pe(t,n,Or);let{isSelected:r,...i}=t;return u.createElement(vx,{...i,ref:n,className:t.className||"react-aria-SelectionIndicator",name:"SelectionIndicator",isVisible:r})});function Cx(e){let t=ie(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}const ko=u.createContext({}),vs=class vs extends et{filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let i=this.clone();return n.addDescendants(i,t),i}return null}};vs.type="separator";let Bo=vs;const Fm=yt(Bo,function(t,n){[t,n]=pe(t,n,ko);let{elementType:r,orientation:i,style:a,className:l,slot:o,...s}=t,d=r||"hr";d==="hr"&&i==="vertical"&&(d="div");let c=re[d],{separatorProps:f}=Cx({...s,elementType:r,orientation:i}),m=ie(t,{global:!0});return u.createElement(c,{render:t.render,...X(m,f),style:a,className:l??"react-aria-Separator",ref:n,slot:o||void 0})}),ga=new WeakMap;function Dx(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Tm(e,t){let n=ga.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Dx(t)}`}class Ex{constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const o=l.shadowRoot;if(o){const s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(s),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(l);if(this.filter?.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const a=n.shadowRoot;if(a){const l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}get currentNode(){return this._currentNode}set currentNode(t){if(!ae(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,o=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),r=i=l.host}else r=r.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return ae(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let r;if(typeof this.filter=="function"?r=this.filter(t):this.filter?.acceptNode&&(r=this.filter.acceptNode(t)),r===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 r=this.previousNode();return r&&(this.currentNode=r),r}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(n):this.filter?.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let a=this.lastChild();return a&&(this.currentNode=a),a}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function Im(e,t,n,r){return ht()?new Ex(e,t,n,r):e.createTreeWalker(t,n,r)}const Mm=u.createContext(null),No="react-aria-focus-scope-restore";let $e=null;function ya(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=u.useRef(null),l=u.useRef(null),o=u.useRef([]),{parentNode:s}=u.useContext(Mm)||{},d=u.useMemo(()=>new Io({scopeRef:o}),[o]);fe(()=>{let m=s||Be.root;if(Be.getTreeNode(m.scopeRef)&&$e&&!$a($e,m.scopeRef)){let h=Be.getTreeNode($e);h&&(m=h)}m.addChild(d),Be.addNode(d)},[d,s]),fe(()=>{let m=Be.getTreeNode(o);m&&(m.contain=!!n)},[n]),fe(()=>{let m=a.current?.nextSibling,h=[],p=g=>g.stopPropagation();for(;m&&m!==l.current;)h.push(m),m.addEventListener(No,p),m=m.nextSibling;return o.current=h,()=>{for(let g of h)g.removeEventListener(No,p)}},[t]),Ax(o,r,n),kx(o,n),Fx(o,r,n),Nx(o,i),u.useEffect(()=>{const m=ce(se(o.current?o.current[0]:void 0));let h=null;if(rt(m,o.current)){for(let p of Be.traverse())p.scopeRef&&rt(m,p.scopeRef.current)&&(h=p);h===Be.getTreeNode(o)&&($e=h.scopeRef)}},[o]),fe(()=>()=>{let m=Be.getTreeNode(o)?.parent?.scopeRef??null;(o===$e||$a(o,$e))&&(!m||Be.getTreeNode(m))&&($e=m),Be.removeTreeNode(o)},[o]);let c=u.useMemo(()=>wx(o),[]),f=u.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return u.createElement(Mm.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function wx(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:l}=t,o=r||ce(se(n[0]??void 0)),s=n[0].previousElementSibling,d=En(n),c=Ae(d,{tabbable:i,accept:l},n);c.currentNode=rt(o,n)?o:s;let f=c.nextNode();return!f&&a&&(c.currentNode=s,f=c.nextNode()),f&&je(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:l}=t,o=r||ce(se(n[0]??void 0)),s=n[n.length-1].nextElementSibling,d=En(n),c=Ae(d,{tabbable:i,accept:l},n);c.currentNode=rt(o,n)?o:s;let f=c.previousNode();return!f&&a&&(c.currentNode=s,f=c.previousNode()),f&&je(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=En(n),l=Ae(a,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let o=l.nextNode();return o&&je(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=En(n),l=Ae(a,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let o=l.previousNode();return o&&je(o,!0),o}}}function En(e){return e[0].parentElement}function zr(e){let t=Be.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Sx(e){if(!e.form)return Array.from(se(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(r=>!r.form);const t=e.form.elements.namedItem(e.name);let n=xe(e);return t instanceof n.RadioNodeList?Array.from(t).filter(r=>r instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function Px(e){if(e.checked)return!0;const t=Sx(e);return t.length>0&&!t.some(n=>n.checked)}function kx(e,t){let n=u.useRef(void 0),r=u.useRef(void 0);fe(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=se(i?i[0]:void 0);let l=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!zr(e)||d.isComposing)return;let c=ce(a),f=e.current;if(!f||!rt(c,f))return;let m=En(f),h=Ae(m,{tabbable:!0},f);if(!c)return;h.currentNode=c;let p=d.shiftKey?h.previousNode():h.nextNode();p||(h.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,p=d.shiftKey?h.previousNode():h.nextNode()),d.preventDefault(),p&&(je(p,!0),p instanceof xe(p).HTMLInputElement&&p.select())},o=d=>{(!$e||$a($e,e))&&rt(G(d),e.current)?($e=e,n.current=G(d)):zr(e)&&!nn(G(d),e)?n.current?je(n.current):$e&&$e.current&&Ao($e.current):zr(e)&&(n.current=G(d))},s=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=Kn(),f=(c==="virtual"||c===null)&&Mn()&&ml(),m=ce(a);if(!f&&m&&zr(e)&&!nn(m,e)){$e=e;let h=G(d);h&&h.isConnected?(n.current=h,je(n.current)):$e.current&&Ao($e.current)}})};return a.addEventListener("keydown",l,!1),a.addEventListener("focusin",o,!1),i?.forEach(d=>d.addEventListener("focusin",o,!1)),i?.forEach(d=>d.addEventListener("focusout",s,!1)),()=>{a.removeEventListener("keydown",l,!1),a.removeEventListener("focusin",o,!1),i?.forEach(d=>d.removeEventListener("focusin",o,!1)),i?.forEach(d=>d.removeEventListener("focusout",s,!1))}},[e,t]),fe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Km(e){return nn(e)}function rt(e,t){return!e||!t?!1:t.some(n=>ae(n,e))}function nn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Be.traverse(Be.getTreeNode(t)))if(n&&rt(e,n.current))return!0;return!1}function Bx(e){return nn(e,$e)}function $a(e,t){let n=Be.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function je(e,t=!1){if(e!=null&&!t)try{Ie(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Lm(e,t=!0){let n=e[0].previousElementSibling,r=En(e),i=Ae(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=En(e),i=Ae(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function Ao(e,t=!0){je(Lm(e,t))}function Nx(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){$e=e;const r=se(e.current?e.current[0]:void 0);!rt(ce(r),$e.current)&&e.current&&Ao(e.current)}n.current=!1},[e])}function Ax(e,t,n){fe(()=>{if(t||n)return;let r=e.current;const i=se(r?r[0]:void 0);let a=l=>{let o=G(l);rt(o,e.current)?$e=e:Km(o)||($e=null)};return i.addEventListener("focusin",a,!1),r?.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r?.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,t,n])}function Om(e){let t=Be.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function Fx(e,t,n){const r=u.useRef(typeof document<"u"?ce(se(e.current?e.current[0]:void 0)):null);fe(()=>{let i=e.current;const a=se(i?i[0]:void 0);if(!t||n)return;let l=()=>{(!$e||$a($e,e))&&rt(ce(a),e.current)&&($e=e)};return a.addEventListener("focusin",l,!1),i?.forEach(o=>o.addEventListener("focusin",l,!1)),()=>{a.removeEventListener("focusin",l,!1),i?.forEach(o=>o.removeEventListener("focusin",l,!1))}},[e,n]),fe(()=>{const i=se(e.current?e.current[0]:void 0);if(!t)return;let a=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!zr(e)||l.isComposing)return;let o=i.activeElement;if(!nn(o,e)||!Om(e))return;let s=Be.getTreeNode(e);if(!s)return;let d=s.nodeToRestore,c=Ae(i.body,{tabbable:!0});c.currentNode=o;let f=l.shiftKey?c.previousNode():c.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,s.nodeToRestore=void 0),(!f||!nn(f,e))&&d){c.currentNode=d;do f=l.shiftKey?c.previousNode():c.nextNode();while(nn(f,e));l.preventDefault(),l.stopPropagation(),f?je(f,!0):Km(d)?je(d,!0):o.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),fe(()=>{const i=se(e.current?e.current[0]:void 0);if(!t)return;let a=Be.getTreeNode(e);if(a)return a.nodeToRestore=r.current??void 0,()=>{let l=Be.getTreeNode(e);if(!l)return;let o=l.nodeToRestore,s=ce(i);if(t&&o&&(s&&nn(s,e)||s===i.body&&Om(e))){let d=Be.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=d.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){zm(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Be.getTreeNode(c.scopeRef)){let f=Lm(c.scopeRef.current,!0);zm(f);return}c=c.parent}}})}}},[e,t])}function zm(e){e.dispatchEvent(new CustomEvent(No,{bubbles:!0,cancelable:!0}))&&je(e)}function Ae(e,t,n){let r=t?.tabbable?dl:Ls,i=e?.nodeType===Node.ELEMENT_NODE?e:null,a=se(i),l=Im(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(o){return ae(t?.from,o)||t?.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!Px(o)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:r(o)&&(!n||rt(o,n))&&(!t?.accept||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(l.currentNode=t.from),l}function Vm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:l=t.wrap,accept:o=t.accept}=n,s=i||ce(se(r)),d=Ae(r,{tabbable:a,accept:o});ae(r,s)&&(d.currentNode=s);let c=d.nextNode();return!c&&l&&(d.currentNode=r,c=d.nextNode()),c&&je(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:l=t.wrap,accept:o=t.accept}=n,s=i||ce(se(r)),d=Ae(r,{tabbable:a,accept:o});if(ae(r,s))d.currentNode=s;else{let f=Fo(d);return f&&je(f,!0),f??null}let c=d.previousNode();if(!c&&l){d.currentNode=r;let f=Fo(d);if(!f)return null;c=f}return c&&je(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Ae(r,{tabbable:i,accept:a}).nextNode();return o&&je(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,l=Ae(r,{tabbable:i,accept:a}),o=Fo(l);return o&&je(o,!0),o??null}}}function Fo(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class To{constructor(){this.fastMap=new Map,this.root=new Io({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new Io({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&rt(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new To;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return t}}class Io{constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}}let Be=new To;function Mo(e){return Ei()?e.altKey:e.ctrlKey}function wn(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}const _m=new WeakMap;function Tx(e){let t=Ee();return _m.set(e,t),t}function Ix(e){return _m.get(e)}const Rm=1e3;function jm(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=u.useRef({search:"",timeout:void 0}),a=o=>{if(i.current.search.length>0&&o.key===" "){if(o.preventDefault(),(!("continuePropagation"in o)||"continuePropagation"in o&&!o.isPropagationStopped())&&o.stopPropagation(),i.current.search+=" ",t.getKeyForSearch!=null){let s=t.getKeyForSearch(i.current.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(i.current.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},Rm)}},l=o=>{let s=Mx(o.key);if(!(!s||o.ctrlKey||o.metaKey||o.altKey||!ae(o.currentTarget,G(o))||i.current.search.length===0&&s===" ")){if(i.current.search+=s,t.getKeyForSearch!=null){let d=t.getKeyForSearch(i.current.search,n.focusedKey);if(d==null&&(d=t.getKeyForSearch(i.current.search)),d!=null)n.setFocusedKey(d),r&&r(d),o.preventDefault(),"continuePropagation"in o||o.stopPropagation();else{i.current.search="",clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},Rm)}};return u.useEffect(()=>{let o=i.current.timeout;return()=>{clearTimeout(o)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0,onKeyDown:t.getKeyForSearch?l:void 0}}}function Mx(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Hm(e,t){const n=u.useRef(!0),r=u.useRef(null);fe(()=>(n.current=!0,()=>{n.current=!1}),[]),fe(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function va(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:l=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:f,allowsTabNavigation:m=!1,scrollRef:h=r,linkBehavior:p="action",UNSTABLE_focusOnEntry:g}=e,{direction:y}=be(),$=sn();const x=(_,H,me)=>{if(H!=null){if(t.isLink(H)&&p==="selection"&&d&&!Mo(_)){Rt.flushSync(()=>{t.setFocusedKey(H,me)});let he=wn(r,H),kt=t.getItemProps(H);if(he){$.open(he,_,kt.href,kt.routerOptions);return}return!1}if(t.setFocusedKey(H,me),t.isLink(H)&&p==="override")return!1;if(_.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(H);return}else if(d&&!Mo(_)){t.replaceSelection(H);return}}return!1};let v=_=>{if(n.getKeyBelow){let H=t.focusedKey!=null?n.getKeyBelow?.(t.focusedKey):n.getFirstKey?.();if(H==null&&a&&(H=n.getFirstKey?.(t.focusedKey)),H!=null){x(_,H);return}}return!1},C=_=>{if(n.getKeyAbove){let H=t.focusedKey!=null?n.getKeyAbove?.(t.focusedKey):n.getLastKey?.();if(H==null&&a&&(H=n.getLastKey?.(t.focusedKey)),H!=null){x(_,H);return}}return!1},w=_=>{if(n.getFirstKey){if(t.focusedKey===null&&_.shiftKey)return!1;let H=n.getFirstKey(t.focusedKey,br(_));if(t.setFocusedKey(H),H!=null){if(br(_)&&_.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(H);return}else if(d){t.replaceSelection(H);return}}}return!1},S=_=>{if(n.getKeyLeftOf){let H=t.focusedKey!=null?n.getKeyLeftOf?.(t.focusedKey):n.getFirstKey?.();if(H==null&&a&&(H=y==="rtl"?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),H!=null){x(_,H,y==="rtl"?"first":"last");return}}return!1},B=_=>{if(n.getKeyRightOf){let H=t.focusedKey!=null?n.getKeyRightOf?.(t.focusedKey):n.getFirstKey?.();if(H==null&&a&&(H=y==="rtl"?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),H!=null){x(_,H,y==="rtl"?"last":"first");return}}return!1},E=_=>{if(n.getLastKey){if(t.focusedKey===null&&_.shiftKey)return!1;let H=n.getLastKey(t.focusedKey,br(_));if(t.setFocusedKey(H),H!=null){if(br(_)&&_.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(H);return}else if(d){t.replaceSelection(H);return}}}return!1},k=_=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let H=n.getKeyPageBelow(t.focusedKey);if(H!=null)return x(_,H)}return!1},M=_=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let H=n.getKeyPageAbove(t.focusedKey);if(H!=null)return x(_,H)}return!1},F=()=>{if(t.selectionMode==="multiple"&&o!==!0){t.selectAll();return}return!1},I=()=>{if(s==="clearSelection"&&!l&&t.selectedKeys.size!==0){t.clearSelection();return}return!1},j=()=>{if(!m&&r.current){let _=Ae(r.current,{tabbable:!0}),H,me;do me=_.lastChild(),me&&(H=me);while(me);let he=ce();H&&(!Ht(H)||he&&!dl(he))&&Xe(H)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},D=()=>(!m&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),T=(_,H)=>({[Je()?_+"+Shift+Alt":_+"+Shift+Control"]:H,[_+"+Shift"]:H,[Je()?_+"+Alt":_+"+Control"]:H,[_]:H}),{keyboardProps:Y}=Le({shortcuts:{...T("ArrowDown",v),...T("ArrowUp",C),...T("ArrowLeft",S),...T("ArrowRight",B),...T("PageDown",k),...T("PageUp",M)},allowRepeats:!0}),{keyboardProps:K}=Le({shortcuts:{...T("Home",w),...T("End",E),"Mod+A":F,Escape:I,Tab:j,"Tab+Shift":D}}),q=u.useRef({top:0,left:0});lt(h,"scroll",()=>{q.current={top:h.current?.scrollTop??0,left:h.current?.scrollLeft??0}});let P=_=>{if(t.isFocused){ae(_.currentTarget,G(_))||t.setFocused(!1);return}if(!ae(_.currentTarget,G(_)))return;let H=Kn();t.setFocused(!0);let me=he=>{he!=null&&(t.setFocusedKey(he),d&&!t.isSelected(he)&&t.replaceSelection(he))};if(g&&(H==="keyboard"||H==="virtual"))me(g==="first"?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let he=_.relatedTarget;he&&_.currentTarget.compareDocumentPosition(he)&Node.DOCUMENT_POSITION_FOLLOWING?me(t.lastSelectedKey??n.getLastKey?.()):me(t.firstSelectedKey??n.getFirstKey?.())}else h.current&&(h.current.scrollTop=q.current.top,h.current.scrollLeft=q.current.left);if(t.focusedKey!=null&&h.current){let he=wn(r,t.focusedKey);he instanceof HTMLElement&&(!Ht(he)&&!f&&Xe(he),(H==="keyboard"||g&&H==="virtual")&&Ct(he,{containingElement:r.current}))}},N=_=>{ae(_.currentTarget,_.relatedTarget)||t.setFocused(!1)},R=u.useRef(!1);lt(r,Z$,f?_=>{let{detail:H}=_;_.stopPropagation(),t.setFocused(!0),H?.focusStrategy==="first"&&(R.current=!0)}:void 0);let Q=n.getFirstKey?.()??null;Hm(()=>{if(R.current)if(Q==null){let _=ce();Ks(r.current),ol(_,null),t.collection.size>0&&(R.current=!1)}else t.setFocusedKey(Q),R.current=!1},[Q,t.collection.size]),Hm(()=>{t.collection.size>0&&(R.current=!1)},[t.focusedKey]),lt(r,G$,f?_=>{_.stopPropagation(),t.setFocused(!1),_.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);const O=u.useRef(i),z=u.useRef(!1);u.useEffect(()=>{if(O.current){let _=null;i==="first"&&(_=n.getFirstKey?.()??null),i==="last"&&(_=n.getLastKey?.()??null);let H=t.selectedKeys;if(H.size){for(let me of H)if(t.canSelectItem(me)){_=me;break}}t.setFocused(!0),t.setFocusedKey(_),_==null&&!f&&r.current&&Ie(r.current),t.collection.size>0&&(O.current=!1,z.current=!0)}});let A=u.useRef(t.focusedKey),V=u.useRef(null);u.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==A.current||z.current)&&h.current&&r.current){let _=Kn(),H=wn(r,t.focusedKey);if(!(H instanceof HTMLElement))return;(_==="keyboard"||z.current)&&(V.current&&cancelAnimationFrame(V.current),V.current=requestAnimationFrame(()=>{h.current&&(ua(h.current,H),_!=="virtual"&&Ct(H,{containingElement:r.current}))}))}!f&&t.isFocused&&t.focusedKey==null&&A.current!=null&&r.current&&Ie(r.current),A.current=t.focusedKey,z.current=!1}),u.useEffect(()=>()=>{V.current&&cancelAnimationFrame(V.current)},[]),lt(r,"react-aria-focus-scope-restore",_=>{_.preventDefault(),t.setFocused(!0)});let L={...X(K,Y),onFocus:P,onBlur:N,onMouseDown(_){h.current===G(_)&&_.preventDefault()}},{typeSelectProps:J}=jm({keyboardDelegate:n,selectionManager:t});c||(L=X(J,L));let le;f||(le=t.focusedKey==null?0:-1);let Ke=Tx(t.collection);return{collectionProps:X(L,{tabIndex:le,"data-collection":Ke})}}class Ko{constructor(t){this.ref=t}getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?wn(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-i.left-n.clientLeft+n.scrollLeft,y:a.top-i.top-n.clientTop+n.scrollTop,width:a.width,height:a.height}}getContentSize(){let t=this.ref.current;return{width:t?.scrollWidth??0,height:t?.scrollHeight??0}}getVisibleRect(){let t=this.ref.current;return{x:t?.scrollLeft??0,y:t?.scrollTop??0,width:t?.clientWidth??0,height:t?.clientHeight??0}}}class Vr{constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Ko(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Ko(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findNextNonDisabled(t,n,r=!1){let i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a?.type==="item"&&(r||!this.isDisabled(a)))return i;i=n(i)}return null}getNextKey(t,n){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,i=>this.collection.getKeyAfter(i),n?.includeDisabled)}getPreviousKey(t,n){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,i=>this.collection.getKeyBefore(i),n?.includeDisabled)}findKey(t,n,r){let i=t,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let l=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(l,a)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}isReversed(t){let n=this.getNextKey(t),r=wn(this.ref,t);if(n!=null){let a=wn(this.ref,n);return!r||!a?!1:r.getBoundingClientRect().top>a.getBoundingClientRect().top}let i=this.getPreviousKey(t);if(i!=null){let a=wn(this.ref,i);return!r||!a?!1:a.getBoundingClientRect().top>r.getBoundingClientRect().top}return!1}getKeyBelow(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getPreviousKey(t,n):this.getNextKey(t,n):this.getNextKey(t,n)}getKeyAbove(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getNextKey(t,n):this.getPreviousKey(t,n):this.getPreviousKey(t,n)}getNextColumn(t,n,r){return n?this.getPreviousKey(t,r):this.getNextKey(t,r)}getKeyRightOf(t,n){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,i=>this.layoutDelegate[r](i),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl",n):this.findKey(t,i=>this.getNextColumn(i,this.direction==="rtl",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl",n):null}getKeyLeftOf(t,n){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,i=>this.layoutDelegate[r](i),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr",n):this.findKey(t,i=>this.getNextColumn(i,this.direction==="ltr",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr",n):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let i=this.isReversed(t);if(n&&!en(n))return this.getFirstKey();let a=t;if(this.orientation==="horizontal"){let l=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>l&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=this.layoutDelegate.getVisibleRect(),o=i?r.y-l.height:Math.max(0,r.y+r.height-l.height);for(;r&&r.y>o&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??(i?this.getLastKey():this.getFirstKey())}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let i=this.isReversed(t);if(n&&!en(n))return this.getLastKey();let a=t;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,r.x-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??(i?this.getFirstKey():this.getLastKey())}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i);if(!a)return null;let l=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(l,t)===0)return i;i=this.getNextKey(i)}return null}}let Lo=new Map;function Qn(e){let{locale:t}=be(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Lo.has(n))return Lo.get(n);let r=new Intl.Collator(t,e);return Lo.set(n,r),r}function Um(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:l,orientation:o}=e,s=Qn({usage:"search",sensitivity:"base"}),d=t.disabledBehavior,c=u.useMemo(()=>a||new Vr({collection:n,disabledKeys:r,disabledBehavior:d,ref:i,collator:s,layoutDelegate:l,orientation:o}),[a,l,n,r,i,s,d,o]),{collectionProps:f}=va({...e,ref:i,selectionManager:t,keyboardDelegate:c});return{listProps:f}}function Kx(e,t,n){let r=ie(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.orientation||"vertical",l=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&l==="action"&&(l="override");let{listProps:o}=Um({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:l}),{focusWithinProps:s}=jn({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),d=Ee(e.id);ga.set(t,{id:d,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:l,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:f}=Il({...e,id:d,labelElementType:"span"});return{labelProps:c,listBoxProps:X(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":a,...X(f,o)})}}const Lx=500;function Oo(e){let{isDisabled:t,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:a,threshold:l=Lx,accessibilityDescription:o}=e;const s=u.useRef(void 0);let{addGlobalListener:d,removeAllGlobalListeners:c}=Rn(),f=p=>n?p.pointerType===n:p.pointerType==="mouse"||p.pointerType==="touch",{pressProps:m}=Tt({isDisabled:t,onPressStart(p){if(p.continuePropagation(),f(p)){r&&r({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),d(p.target,"click",y=>y.preventDefault(),{once:!0}),se(p.target).activeElement!==p.target&&Xe(p.target),a&&a({...p,type:"longpress"}),s.current=void 0},l),p.pointerType==="touch"&&d(p.target,"contextmenu",y=>y.preventDefault(),{once:!0});let g=xe(p.target);d(g,"pointerup",()=>{setTimeout(()=>{c()},100)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),i&&f(p)&&i({...p,type:"longpressend"})}}),h=xn(a&&!t?o:void 0);return{longPressProps:X(m,h)}}function _r(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:l,focus:o,isDisabled:s,onAction:d,allowsDifferentPressOrigin:c,linkBehavior:f="action"}=e,m=sn();t=Ee(t);let h=A=>{if(A.pointerType==="keyboard"&&Mo(A))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let V=n.getItemProps(r);m.open(i.current,A,V.href,V.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):A&&A.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||A&&(br(A)||A.pointerType==="touch"||A.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};u.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Ks(i.current):o?o():ce()!==i.current&&i.current&&Ie(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let p={};!l&&!s?p={tabIndex:r===n.focusedKey?0:-1,onFocus(A){G(A)===i.current&&n.setFocusedKey(r)}}:s&&(p.onMouseDown=A=>{A.preventDefault()}),u.useEffect(()=>{s&&n.focusedKey===r&&n.setFocusedKey(null)},[n,s,r]);let g=n.isLink(r)&&f==="override",y=d&&e.UNSTABLE_itemBehavior==="action",$=n.isLink(r)&&f!=="selection"&&f!=="none",x=!s&&n.canSelectItem(r)&&!g&&!y,v=(d||$)&&!s,C=v&&(n.selectionBehavior==="replace"?!x:!x||n.isEmpty),w=v&&x&&n.selectionBehavior==="replace",S=C||w,B=u.useRef(null),E=S&&x,k=u.useRef(!1),M=u.useRef(!1),F=n.getItemProps(r),I=A=>{d&&(d(),i.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),$&&i.current&&m.open(i.current,A,F.href,F.routerOptions)},j={ref:i};a?(j.onPressStart=A=>{B.current=A.pointerType,k.current=E,A.pointerType==="keyboard"&&(!S||Gm(A.key))&&h(A)},c?(j.onPressUp=C?void 0:A=>{A.pointerType==="mouse"&&x&&h(A)},j.onPress=C?I:A=>{A.pointerType!=="keyboard"&&A.pointerType!=="mouse"&&x&&h(A)}):j.onPress=A=>{if(C||w&&A.pointerType!=="mouse"){if(A.pointerType==="keyboard"&&!Wm(A.key))return;I(A)}else A.pointerType!=="keyboard"&&x&&h(A)}):(j.onPressStart=A=>{B.current=A.pointerType,k.current=E,M.current=C,x&&(A.pointerType==="mouse"&&!C||A.pointerType==="keyboard"&&(!v||Gm(A.key)))&&h(A)},j.onPress=A=>{(A.pointerType==="touch"||A.pointerType==="pen"||A.pointerType==="virtual"||A.pointerType==="keyboard"&&S&&Wm(A.key)||A.pointerType==="mouse"&&M.current)&&(S?I(A):x&&h(A))});let D=Ix(n.collection);if(p["data-collection"]=D,p["data-key"]=r,j.preventFocusOnPress=l,l&&(j=X(j,{onPressStart(A){A.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(A){A.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),F)for(let A of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])F[A]&&(j[A]=at(j[A],F[A]));let{pressProps:T,isPressed:Y}=Tt(j),K=w?A=>{B.current==="mouse"&&(A.stopPropagation(),A.preventDefault(),I(A))}:void 0,{longPressProps:q}=Oo({isDisabled:!E,onLongPress(A){A.pointerType==="touch"&&(h(A),n.setSelectionBehavior("toggle"))}}),P=A=>{B.current==="touch"&&k.current&&A.preventDefault()},N=f!=="none"&&n.isLink(r)?A=>{Nt.isOpening||A.preventDefault()}:void 0,R=X(p,x||C||l&&!s?T:{},E?q:{},{onDoubleClick:K,onDragStartCapture:P,onClick:N,id:t},l?{onMouseDown:A=>A.preventDefault()}:void 0),Q=A=>{let V=A;for(;V&&V!==i.current;){let L=V.getAttribute("data-collection");if(L!=null)return L!==D;V=V.parentElement}return dl(A)},O=R.onPointerDown;R.onPointerDown=A=>{let V=G(A);if(V&&V!==i.current&&Q(V)){A.stopPropagation();return}O?.(A)};let z=R.onMouseDown;return R.onMouseDown=A=>{let V=G(A);if(V&&V!==i.current&&Q(V)){A.stopPropagation();return}z?.(A)},{itemProps:R,isPressed:Y,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:x,hasAction:S}}function Wm(e){return e==="Enter"}function Gm(e){return e===" "}function Ne(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Lt(e){return Rr(e,0)}function Rr(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function er(e){let t;for(let n of e)t=n;return t}function zo(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Zm(e,t),t],i=[...Zm(e,n),n],a=r.slice(0,i.length).findIndex((l,o)=>l!==i[o]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===t)>=0,-1)}function Zm(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Ym=new WeakMap;function Vo(e){let t=Ym.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(Ne(a,e)):a.type==="item"&&n++};return r(e),Ym.set(e,n),n}function Ox(e,t,n){let{key:r}=e,i=ga.get(t),a=e.isDisabled??t.selectionManager.isDisabled(r),l=e.isSelected??t.selectionManager.isSelected(r),o=e.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,s=e.shouldFocusOnHover??i?.shouldFocusOnHover,d=e.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,c=e.isVirtualized??i?.isVirtualized,f=mt(),m=mt(),h={role:"option","aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?l:void 0,"aria-label":e["aria-label"],"aria-labelledby":f,"aria-describedby":m},p=t.collection.getItem(r);if(c){let k=Number(p?.index);h["aria-posinset"]=Number.isNaN(k)?void 0:k+1,h["aria-setsize"]=Vo(t.collection)}let g=i?.onAction?()=>i?.onAction?.(r):void 0,y=Tm(t,r),{itemProps:$,isPressed:x,isFocused:v,hasAction:C,allowsSelection:w}=_r({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:o,allowsDifferentPressOrigin:o&&s,isVirtualized:c,shouldUseVirtualFocus:d,isDisabled:a,onAction:g||p?.props?.onAction?at(p?.props?.onAction,g):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:y}),{hoverProps:S}=ze({isDisabled:a||!s,onHoverStart(){Ut()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),B=ie(p?.props);delete B.id;let E=wi(p?.props);return{optionProps:{...h,...X(B,$,S,E),id:y},labelProps:{id:f},descriptionProps:{id:m},isFocused:v,isFocusVisible:v&&t.selectionManager.isFocused&&Ut(),isSelected:l,isDisabled:a,isPressed:x,allowsSelection:w,hasAction:C}}function zx(e){let{heading:t,"aria-label":n}=e,r=Ee();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation",onMouseDown:i=>{i.preventDefault()}}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}function qm(e){const t=u.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}class _o{constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let o of l.childNodes)n(o)};for(let l of t)n(l);let r=null,i=0,a=0;for(let[l,o]of this.keyMap)r?(r.nextKey=l,o.prevKey=r.key):(this.firstKey=l,o.prevKey=void 0),o.type==="item"&&(o.index=i++),(o.type==="section"||o.type==="item")&&a++,r=o,r.nextKey=void 0;this._size=a,this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}}class st extends Set{constructor(t,n,r){super(t),t instanceof st?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Vx(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function jr(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,l=u.useRef(!1),[,o]=u.useState(!1),s=u.useRef(null),d=u.useRef(null),[,c]=u.useState(null),f=u.useMemo(()=>Xm(e.selectedKeys),[e.selectedKeys]),m=u.useMemo(()=>Xm(e.defaultSelectedKeys,new st),[e.defaultSelectedKeys]),[h,p]=He(f,m,e.onSelectionChange),g=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,$]=u.useState(i);i==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&$("replace");let x=u.useRef(i);return u.useEffect(()=>{i!==x.current&&($(i),x.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return l.current},setFocused(v){l.current=v,o(v)},get focusedKey(){return s.current},get childFocusStrategy(){return d.current},setFocusedKey(v,C="first"){s.current=v,d.current=C,c(v)},selectedKeys:h,setSelectedKeys(v){(r||!Vx(v,h))&&p(v)},disabledKeys:g,disabledBehavior:a}}function Xm(e,t){return e?e==="all"?"all":new st(e):t}class tr{constructor(t,n,r){this.collection=t,this.state=n,this.allowsCellSelection=r?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null,this.fullCollection=r?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&zo(this.collection,r,t)<0)&&(t=r)}return t?.key??null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&zo(this.collection,r,t)>0)&&(t=r)}return t?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new st([n],n,n);else{let i=this.state.selectedKeys,a=i.anchorKey??n;r=new st(i,a,n);for(let l of this.getKeyRange(a,i.currentKey??n))r.delete(l);for(let l of this.getKeyRange(n,a))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?zo(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let r=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&r.push(i),i===n)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new st(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new st([n],n,n):new st;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new st;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=this.fullCollection??this.collection,n=[],r=i=>{for(;i!=null;){if(this.canSelectItemIn(i,t)){let a=t.getItem(i);a?.type==="item"&&n.push(i),a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r(Lt(Ne(a,t))?.key??null)}i=t.getKeyAfter(i)}};return r(t.getFirstKey()),n}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new st)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){return this.canSelectItemIn(t,this.collection)}canSelectItemIn(t,n){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=n.getItem(t);return!(!r||r?.props?.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){let n=this.collection.getItem(t);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!n?.props?.isDisabled)&&n?.props?.disabledBehavior!=="selection"}isLink(t){return!!this.collection.getItem(t)?.props?.href}getItemProps(t){return this.collection.getItem(t)?.props}withCollection(t){return new tr(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class _x{build(t,n){return this.context=n,Jm(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(u.isValidElement(n)&&n.type===u.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let a of r)yield*this.getFullNode({value:a,index:i},{renderer:n}),i++}else{let i=[];u.Children.forEach(n,l=>{l&&i.push(l)});let a=0;for(let l of i){let o=this.getFullNode({element:l,index:a},{});for(let s of o)a++,yield s}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){let l=a.key??a.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(u.isValidElement(t.element)&&t.element.type===u.Fragment){let s=[];u.Children.forEach(t.element.props.children,c=>{s.push(c)});let d=t.index??0;for(const c of s)yield*this.getFullNode({element:c,index:d++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=i?i.key:null,yield s;return}a=n.renderer(t.value)}if(u.isValidElement(a)){let s=a.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let m=a.type;throw new Error(`Unknown element <${m}> in collection.`)}let d=s.getCollectionNode(a.props,this.context),c=t.index??0,f=d.next();for(;!f.done&&f.value;){let m=f.value;t.index=c;let h=m.key??null;h==null&&(h=m.element?null:this.getKey(a,t,n,r));let g=[...this.getFullNode({...m,key:h,index:c,wrapper:Rx(t.wrapper,m.wrapper)},this.getChildState(n,m),r?`${r}${a.key}`:a.key,i)];for(let y of g){if(y.value=m.value??t.value??null,y.value&&this.cache.set(y.value,y),t.type&&y.type!==t.type)throw new Error(`Unsupported type <${Ro(y.type)}> in <${Ro(i?.type??"unknown parent type")}>. Only <${Ro(t.type)}> is supported.`);c++,yield y}f=d.next(g)}return}if(t.key==null||t.type==null)return;let l=this,o={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:t.value??null,level:(i?.level??0)+(i?.type==="item"?1:0),index:t.index,rendered:t.rendered,textValue:t.textValue??"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:Jm(function*(){if(!t.hasChildNodes||!t.childNodes)return;let s=0;for(let d of t.childNodes()){d.key!=null&&(d.key=`${o.key}${d.key}`);let c=l.getFullNode({...d,index:s},l.getChildState(n,d),o.key,o);for(let f of c)s++,yield f}})};yield o}constructor(){this.cache=new WeakMap}}function Jm(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Rx(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Ro(e){return e[0].toUpperCase()+e.slice(1)}function jo(e,t,n){let r=u.useMemo(()=>new _x,[]),{children:i,items:a,collection:l}=e;return u.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:a},n);return t(s)},[r,i,a,l,n,t])}function xa(e){let{filter:t,layoutDelegate:n}=e,r=jr(e),i=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=u.useCallback(d=>t?new _o(t(d)):new _o(d),[t]),l=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=jo(e,a,l),s=u.useMemo(()=>new tr(o,r,{layoutDelegate:n}),[o,r,n]);return Qm(o,s),{collection:o,disabledKeys:i,selectionManager:s}}function jx(e,t){let n=u.useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return Qm(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function Qm(e,t){const n=u.useRef(null);u.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getKeyAfter(t.focusedKey),i=null;for(;r!=null;){let a=e.getItem(r);if(a&&a.type==="item"&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyAfter(r)}if(i==null)for(r=n.current.getKeyBefore(t.focusedKey);r!=null;){let a=e.getItem(r);if(a&&a.type==="item"&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyBefore(r)}t.setFocusedKey(i)}n.current=e},[e,t])}function e4(e,t){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:a="end"}=e,l=u.useRef(null),o=De(s=>{for(let d of s)d.isIntersecting&&r&&r()});fe(()=>{if(t.current){const s=100*i,d=a==="start"?`${s}% 0px 0px 0px`:`0px ${s}% ${s}% ${s}%`;l.current=new IntersectionObserver(o,{root:ot(t?.current),rootMargin:d}),l.current.observe(t.current)}return()=>{l.current&&l.current.disconnect()}},[n,t,i,a])}const Hr=u.createContext(null),Sn=u.createContext(null),Hx=u.forwardRef(function(t,n){[t,n]=pe(t,n,Hr);let r=u.useContext(Sn);return r?u.createElement(t4,{state:r,props:t,listBoxRef:n}):u.createElement(fn,{content:u.createElement(mn,t)},i=>u.createElement(Ux,{props:t,listBoxRef:n,collection:i}))});function Ux({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=u.useContext(ge),i=xa({...e,layoutDelegate:r});return u.createElement(t4,{state:i,props:e,listBoxRef:t})}function t4({state:e,props:t,listBoxRef:n}){[t,n]=pe(t,n,$r);let{dragAndDropHooks:r,layout:i="stack",orientation:a="vertical",filter:l}=t,o=jx(e,l),{collection:s,selectionManager:d}=o,c=!!r?.useDraggableCollectionState,f=!!r?.useDroppableCollectionState,{direction:m}=be(),{disabledBehavior:h,disabledKeys:p}=d,g=Qn({usage:"search",sensitivity:"base"}),{isVirtualized:y,layoutDelegate:$,dropTargetDelegate:x,CollectionRoot:v}=u.useContext(ge),C=u.useMemo(()=>t.keyboardDelegate||new Vr({collection:s,collator:g,ref:n,disabledKeys:p,disabledBehavior:h,layout:i,orientation:a,direction:m,layoutDelegate:$}),[s,g,n,h,p,a,m,t.keyboardDelegate,i,$]),{listBoxProps:w}=Kx({...t,shouldSelectOnPressUp:c||t.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:y},o,n),S=u.useRef(c),B=u.useRef(f);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(S.current!==c&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),B.current!==f&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[c,f]);let E,k,M,F=!1,I=null,j=u.useRef(null);if(c&&r){E=r.useDraggableCollectionState({collection:s,selectionManager:d,preview:r.renderDragPreview?j:void 0}),r.useDraggableCollection({},E,n);let Q=r.DragPreview;I=r.renderDragPreview?u.createElement(Q,{ref:j},r.renderDragPreview):null}if(f&&r){k=r.useDroppableCollectionState({collection:s,selectionManager:d});let Q=r.dropTargetDelegate||x||new r.ListDropTargetDelegate(s,n,{orientation:a,layout:i,direction:m});M=r.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:Q},k,n),F=k.isDropTarget({type:"root"})}let{focusProps:D,isFocused:T,isFocusVisible:Y}=Oe(),K=o.collection.size===0,q={isDropTarget:F,isEmpty:K,isFocused:T,isFocusVisible:Y,layout:t.layout||"stack",orientation:a,state:o},P=ue({...t,children:void 0,defaultClassName:"react-aria-ListBox",values:q}),N=null;K&&t.renderEmptyState&&(N=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(q)));let R=ie(t,{global:!0});return u.createElement(ya,null,u.createElement(re.div,{...X(R,P,w,D,M?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":F||void 0,"data-empty":K||void 0,"data-focused":T||void 0,"data-focus-visible":Y||void 0,"data-layout":t.layout||"stack","data-orientation":a},u.createElement(Pe,{values:[[Hr,t],[Sn,o],[ut,{dragAndDropHooks:r,dragState:E,dropState:k}],[ko,{elementType:"div"}],[So,{render:Zx}],[vd,{name:"ListBoxSection",render:Wx}]]},u.createElement(ba,null,u.createElement(v,{collection:s,scrollRef:n,persistedKeys:Nm(d,r,k),renderDropIndicator:pa(r,k)}))),N,I))}function Wx(e,t,n,r="react-aria-ListBoxSection"){let i=u.useContext(Sn),{dragAndDropHooks:a,dropState:l}=u.useContext(ut),{CollectionBranch:o}=u.useContext(ge),[s,d]=un(),{headingProps:c,groupProps:f}=zx({heading:d,"aria-label":e["aria-label"]??void 0}),m=ue({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),h=ie(e,{global:!0});return delete h.id,u.createElement(re.section,{...X(h,m,f),ref:t},u.createElement(Po.Provider,{value:{...c,ref:s}},u.createElement(o,{collection:i.collection,parent:n,renderDropIndicator:pa(a,l)})))}const Gx=yt(Fi,function(t,n,r){let i=Te(n),a=u.useContext(Sn),{dragAndDropHooks:l,dragState:o,dropState:s}=u.useContext(ut),d=o&&!(o.isDisabled||o.selectionManager.isDisabled(r.key)),{optionProps:c,labelProps:f,descriptionProps:m,...h}=Ox({key:r.key,"aria-label":t?.["aria-label"]},a,i),{hoverProps:p,isHovered:g}=ze({isDisabled:!h.allowsSelection&&!h.hasAction&&!d,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),{keyboardProps:y}=Le(t),{focusProps:$}=vl(t),x=null;o&&l&&(x=l.useDraggableItem({key:r.key,hasAction:h.hasAction},o));let v=null;s&&l&&(v=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let C=o&&o.isDragging(r.key),w=ue({...t,id:void 0,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...h,isHovered:g,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior,allowsDragging:!!o,isDragging:C,isDropTarget:v?.isDropTarget}});u.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let S=t.href?re.a:re.div,B=ie(t,{global:!0});return delete B.id,delete B.onClick,t.href&&c.tabIndex==null&&(c.tabIndex=-1),u.createElement(S,{...X(B,w,c,p,y,$,x?.dragProps,v?.dropProps),ref:i,"data-allows-dragging":!!o||void 0,"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":C||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":a.selectionManager.selectionMode==="none"?void 0:a.selectionManager.selectionMode},u.createElement(Pe,{values:[[tt,{slots:{[Bt]:f,label:f,description:m}}],[Or,{isSelected:h.isSelected}]]},w.children))});function Zx(e,t){t=Te(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ut),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=n.useDropIndicator(e,r,t);return a?null:u.createElement(qx,{...e,dropIndicatorProps:i,isDropTarget:l,ref:t})}function Yx(e,t){let{dropIndicatorProps:n,isDropTarget:r,...i}=e,a=ue({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement(u.Fragment,null,u.createElement(re.div,{...n,...a,role:"option",ref:t,"data-drop-target":r||void 0}))}const qx=u.forwardRef(Yx);yt(Ai,function(t,n,r){let i=u.useContext(Sn),{isLoading:a,onLoadMore:l,scrollOffset:o,...s}=t,d=u.useRef(null),c=u.useMemo(()=>({onLoadMore:l,collection:i?.collection,sentinelRef:d,scrollOffset:o}),[l,o,i?.collection]);e4(c,d);let f=ue({...s,id:void 0,children:r.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),m={tabIndex:-1};return u.createElement(u.Fragment,null,u.createElement("div",{style:{position:"relative",width:0,height:0},inert:qm(!0)},u.createElement("div",{"data-testid":"loadMoreSentinel",ref:d,style:{position:"absolute",height:1,width:1}})),a&&f.children&&u.createElement(u.Fragment,null,u.createElement(re.div,{...X(ie(t,{global:!0}),m),...f,role:"option",ref:n},f.children)))});const n4=u.createContext({placement:"bottom"}),Xx=u.forwardRef(function(t,n){[t,n]=pe(t,n,n4);let r=t.placement,i={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(i[r]="100%");let a=ue({...t,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});a.style&&Object.keys(a.style).forEach(o=>a.style[o]===void 0&&delete a.style[o]);let l=ie(t);return u.createElement(re.div,{...l,...a,style:{...i,...a.style},ref:n,"data-placement":r})}),Jx=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function r4(e){return e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer!==void 0}let Ur=new WeakMap,We=[];function Ho(e,t){let n=xe(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&Jx,l=new Set(e),o=new Set,s=y=>a&&y instanceof n.HTMLElement?y.inert:y.getAttribute("aria-hidden")==="true",d=(y,$)=>{a&&y instanceof n.HTMLElement?y.inert=$:$?y.setAttribute("aria-hidden","true"):(y.removeAttribute("aria-hidden"),y instanceof n.HTMLElement&&(y.inert=!1))},c=new Set;if(ht()){let y=i.getRootNode();for(let $ of e){let x=$.getRootNode();for(;ll(x)&&x!==y;)c.add(x),x=x.host.getRootNode()}}let f=y=>{for(let C of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(C);let $=C=>{if(o.has(C)||l.has(C)||C.parentElement&&o.has(C.parentElement)&&C.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let w of l)if(ae(C,w))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},x=Im(se(y),y,NodeFilter.SHOW_ELEMENT,{acceptNode:$}),v=$(y);if(v===NodeFilter.FILTER_ACCEPT&&m(y),v!==NodeFilter.FILTER_REJECT){let C=x.nextNode();for(;C!=null;)m(C),C=x.nextNode()}},m=y=>{let $=Ur.get(y)??0;s(y)&&$===0||($===0&&d(y,!0),o.add(y),Ur.set(y,$+1))};We.length&&We[We.length-1].disconnect(),f(i);let h=new MutationObserver(y=>{for(let $ of y)if($.type==="childList"){if($.target.isConnected&&![...l,...o].some(x=>ae(x,$.target)))for(let x of $.addedNodes)(x instanceof HTMLElement||x instanceof SVGElement)&&r4(x)?l.add(x):x instanceof Element&&f(x);if(ht()){for(let x of c)if(!x.isConnected){h.disconnect();break}}}});h.observe(i,{childList:!0,subtree:!0});let p=new Set;if(ht())for(let y of c){let $=new MutationObserver(x=>{for(let v of x)if(v.type==="childList"){if(v.target.isConnected&&![...l,...o].some(C=>ae(C,v.target)))for(let C of v.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&r4(C)?l.add(C):C instanceof Element&&f(C);if(ht()){for(let C of c)if(!C.isConnected){h.disconnect();break}}}});$.observe(y,{childList:!0,subtree:!0}),p.add($)}let g={visibleNodes:l,hiddenNodes:o,observe(){h.observe(i,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return We.push(g),()=>{if(h.disconnect(),ht())for(let y of p)y.disconnect();for(let y of o){let $=Ur.get(y);$!=null&&($===1?(d(y,!1),Ur.delete(y)):Ur.set(y,$-1))}g===We[We.length-1]?(We.pop(),We.length&&We[We.length-1].observe()):We.splice(We.indexOf(g),1)}}function Qx(e){let t=We[We.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}const it={top:"top",bottom:"top",left:"left",right:"left"},Ca={top:"bottom",bottom:"top",left:"right",right:"left"},e9={top:"left",left:"top"},Uo={top:"height",left:"width"},i4={width:"totalWidth",height:"totalHeight"},Da={};let t9=()=>typeof document<"u"?window.visualViewport:null;function a4(e,t){let n=0,r=0,i=0,a=0,l=0,o=0,s={},d=(t?.scale??1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let c=document.documentElement;i=c.clientWidth,a=c.clientHeight,n=t?.width??i,r=t?.height??a,s.top=c.scrollTop||e.scrollTop,s.left=c.scrollLeft||e.scrollLeft,t&&(l=t.offsetTop,o=t.offsetLeft)}else({width:n,height:r,top:l,left:o}=Wr(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,i=n,a=r;return gt()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d&&(s.top=0,s.left=0,l=t?.pageTop??0,o=t?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:a,scroll:s,top:l,left:o}}function n9(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function l4(e,t,n,r,i,a,l){let o=i.scroll[e]??0,s=r[Uo[e]],d=l[e]+r.scroll[it[e]]+a,c=l[e]+r.scroll[it[e]]+s-a,f=t-o+r.scroll[it[e]]+l[e]-r[it[e]],m=t-o+n+r.scroll[it[e]]+l[e]-r[it[e]];return f<d?d-f:m>c?Math.max(c-m,d-f):0}function r9(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 o4(e){if(Da[e])return Da[e];let[t,n]=e.split(" "),r=it[t]||"right",i=e9[r];it[n]||(n="center");let a=Uo[r],l=Uo[i];return Da[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:l},Da[e]}function Wo(e,t,n,r,i,a,l,o,s,d,c){let{placement:f,crossPlacement:m,axis:h,crossAxis:p,size:g,crossSize:y}=r,$={};$[p]=e[p]??0,m==="center"?$[p]+=((e[y]??0)-(n[y]??0))/2:m!==p&&($[p]+=(e[y]??0)-(n[y]??0)),$[p]+=a;const x=e[p]-n[y]+s+d,v=e[p]+e[y]-s-d;if($[p]=Dr($[p],x,v),f===h){let C=o?c[g]:c[i4[g]];$[Ca[h]]=Math.floor(C-e[h]+i)}else $[h]=Math.floor(e[h]+e[g]+i);return $}function i9(e,t,n,r,i,a,l,o,s,d,c){let f=(e.top!=null?e.top:s[i4.height]-(e.bottom??0)-l)-(s.scroll.top??0),m=d?n.top:0,h={top:Math.max(t.top+m,(c?.offsetTop??t.top)+m),bottom:Math.min(t.top+t.height+m,(c?.offsetTop??0)+(c?.height??0))};return o!=="top"?Math.max(0,h.bottom-f-((i.top??0)+(i.bottom??0)+a)):Math.max(0,f+l-h.top-((i.top??0)+(i.bottom??0)+a))}function u4(e,t,n,r,i,a,l,o){let{placement:s,axis:d,size:c}=a;return s===d?Math.max(0,n[d]-(l.scroll[d]??0)-(e[d]+(o?t[d]:0))-(r[d]??0)-r[Ca[d]]-i):Math.max(0,e[c]+e[d]+(o?t[d]:0)-n[d]-n[c]+(l.scroll[d]??0)-(r[d]??0)-r[Ca[d]]-i)}function a9(e,t,n,r,i,a,l,o,s,d,c,f,m,h,p,g,y,$){let x=o4(e),{size:v,crossAxis:C,crossSize:w,placement:S,crossPlacement:B}=x,E=Wo(t,o,n,x,c,f,d,m,p,g,s),k=c,M=u4(o,d,t,i,a+c,x,s,y);if(l&&n[v]>M){let A=o4(`${Ca[S]} ${B}`),V=Wo(t,o,n,A,c,f,d,m,p,g,s);u4(o,d,t,i,a+c,A,s,y)>M&&(x=A,E=V,k=c)}let F="bottom";x.axis==="top"?x.placement==="top"?F="top":x.placement==="bottom"&&(F="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?F="bottom":x.crossPlacement==="bottom"&&(F="top"));let I=l4(C,E[C],n[w],o,s,a,d);E[C]+=I;let j=i9(E,o,d,m,i,a,n.height,F,s,y,$);h&&h<j&&(j=h),n.height=Math.min(n.height,j),E=Wo(t,o,n,x,k,f,d,m,p,g,s),I=l4(C,E[C],n[w],o,s,a,d),E[C]+=I;let D={},T=t[C]-E[C]-i[it[C]],Y=T+.5*t[w];const K=p/2+g,q=it[C]==="left"?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),P=n[w]-q-p/2-g,N=t[C]+p/2-(E[C]+i[it[C]]),R=t[C]+t[w]-p/2-(E[C]+i[it[C]]),Q=Dr(Y,N,R);D[C]=Dr(Q,K,P),{placement:S,crossPlacement:B}=x,p?T=D[C]:B==="right"?T+=t[w]:B==="center"&&(T+=t[w]/2);let O=S==="left"||S==="top"?n[v]:0,z={x:S==="top"||S==="bottom"?T:O,y:S==="left"||S==="right"?T:O};return{position:E,maxHeight:j,arrowOffsetLeft:D.left,arrowOffsetTop:D.top,placement:S,triggerAnchorPoint:z}}function l9(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:l,boundaryElement:o,offset:s,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:m=0,targetRect:h}=e,p=t9(),g=r instanceof HTMLElement?o9(r):document.documentElement,y=g===document.documentElement;const $=window.getComputedStyle(g).position;let x=!!$&&$!=="static",v=y?Wr(n,!1,h):s4(n,g,!1,h);if(!y){let{marginTop:F,marginLeft:I}=window.getComputedStyle(n);v.top+=parseInt(F,10)||0,v.left+=parseInt(I,10)||0}let C=Wr(r,!0),w=r9(r);C.width+=(w.left??0)+(w.right??0),C.height+=(w.top??0)+(w.bottom??0);let S=n9(i),B=a4(o,p),E=a4(g,p),k;if((o.tagName==="BODY"||o.tagName==="HTML")&&!y){let F=Ea(g,!1);k={top:-(F.top-B.top),left:-(F.left-B.left),width:0,height:0}}else(o.tagName==="BODY"||o.tagName==="HTML")&&y?k={top:0,left:0,width:0,height:0}:k=s4(o,g,!1);let M=ae(o,g);return a9(t,v,C,S,w,a,l,B,E,k,s,d,x,c,f,m,M,p)}function Ea(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function Wr(e,t,n){let{top:r,left:i,width:a,height:l}=n||Ea(e,t),{scrollTop:o,scrollLeft:s,clientTop:d,clientLeft:c}=document.documentElement;return{top:r+o-d,left:i+s-c,width:a,height:l}}function s4(e,t,n,r){let i=window.getComputedStyle(e),a;if(i.position==="fixed")a=r||Ea(e,n);else{a=Wr(e,n,r);let l=Wr(t,n),o=window.getComputedStyle(t);l.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=l.top,a.left-=l.left}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function o9(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!d4(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!d4(t);)t=t.parentElement;return t||document.documentElement}function d4(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 c4=new WeakMap;function u9(e){let{triggerRef:t,isOpen:n,onClose:r}=e;u.useEffect(()=>{if(!n||r===null)return;let i=a=>{let l=G(a);if(!t.current||l instanceof Node&&!ae(l,t.current)||l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)return;let o=r||c4.get(t.current);o&&o()};return X$(Q$(t.current),"scroll",i,!0)},[n,r,t])}function s9(){return typeof window.ResizeObserver<"u"}function Gr(e){const{ref:t,box:n,onResize:r}=e;let i=De(r);u.useEffect(()=>{let a=t?.current;if(a)if(s9()){const l=new window.ResizeObserver(o=>{o.length&&i()});return l.observe(a,{box:n}),()=>{a&&l.unobserve(a)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[t,n])}let Pn=typeof document<"u"?window.visualViewport:null;function d9(e){let{direction:t}=be(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:l=i,placement:o="bottom",containerPadding:s=12,shouldFlip:d=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:f=0,crossOffset:m=0,shouldUpdatePosition:h=!0,isOpen:p=!0,onClose:g,maxHeight:y,arrowBoundaryOffset:$=0,getTargetRect:x}=e,[v,C]=u.useState(null),w=[h,o,i.current,r.current,a?.current,l.current,s,d,c,f,m,p,t,y,$,n],S=u.useRef(Pn?.scale);u.useEffect(()=>{p&&(S.current=Pn?.scale)},[p]);let B=u.useCallback(()=>{if(h===!1||!p||!i.current||!r.current||!c||Pn?.scale!==S.current)return;let M=null;if(l.current&&Ht(l.current)){let D=ce()?.getBoundingClientRect(),T=l.current.getBoundingClientRect();M={type:"top",offset:(D?.top??0)-T.top},M.offset>T.height/2&&(M.type="bottom",M.offset=(D?.bottom??0)-T.bottom)}let F=i.current;!y&&i.current&&(F.style.top="0px",F.style.bottom="",F.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let I=l9({placement:f9(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:l.current||i.current,padding:s,shouldFlip:d,boundaryElement:c,offset:f,crossOffset:m,maxHeight:y,arrowSize:n??(a?.current?Ea(a.current,!0).width:0),arrowBoundaryOffset:$,targetRect:x?.(r.current)});if(!I.position)return;F.style.top="",F.style.bottom="",F.style.left="",F.style.right="",Object.keys(I.position).forEach(D=>F.style[D]=I.position[D]+"px"),F.style.maxHeight=I.maxHeight!=null?I.maxHeight+"px":"";let j=ce();if(M&&j&&l.current){let D=j.getBoundingClientRect(),T=l.current.getBoundingClientRect(),Y=D[M.type]-T[M.type];l.current.scrollTop+=Y-M.offset}C(I)},w);fe(B,w),c9(B),Gr({ref:i,onResize:B}),Gr({ref:r,onResize:B});let E=u.useRef(!1);fe(()=>{let M,F=()=>{E.current=!0,clearTimeout(M),M=setTimeout(()=>{E.current=!1},500),B()},I=()=>{E.current&&F()};return Pn?.addEventListener("resize",F),Pn?.addEventListener("scroll",I),()=>{Pn?.removeEventListener("resize",F),Pn?.removeEventListener("scroll",I)}},[B]);let k=u.useCallback(()=>{E.current||g?.()},[g,E]);return u9({triggerRef:r,isOpen:p,onClose:g&&k}),{overlayProps:{style:{position:v?"absolute":"fixed",top:v?void 0:0,left:v?void 0:0,zIndex:1e5,...v?.position,maxHeight:v?.maxHeight??"100vh"}},placement:v?.placement??null,triggerAnchorPoint:v?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:B}}function c9(e){fe(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function f9(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function m9(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=De(s=>{n&&wa(s,t)&&(i&&i(s),a.current.isPointerDown=!0)}),o=De(s=>{n&&n(s)});u.useEffect(()=>{let s=a.current;if(r)return;const d=t.current,c=se(d);if(typeof PointerEvent<"u"){let f=m=>{s.isPointerDown&&wa(m,t)&&o(m),s.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",f,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=h=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&wa(h,t)&&o(h),s.isPointerDown=!1},m=h=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&wa(h,t)&&o(h),s.isPointerDown=!1};return c.addEventListener("mousedown",l,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",l,!0),c.addEventListener("touchend",m,!0),()=>{c.removeEventListener("mousedown",l,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",l,!0),c.removeEventListener("touchend",m,!0)}}},[t,r])}function wa(e,t){if(e.button>0)return!1;let n=G(e);if(n){const r=n.ownerDocument;if(!r||!ae(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const Et=[];function f4(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:o}=e,s=u.useRef(void 0);u.useEffect(()=>{if(i&&!Et.includes(t))return Et.push(t),()=>{let p=Et.indexOf(t);p>=0&&Et.splice(p,1)}},[i,t]);let d=()=>{Et[Et.length-1]===t&&n&&n()},c=p=>{const g=Et[Et.length-1];s.current=g,(!o||o(G(p)))&&g===t&&p.stopPropagation()},f=p=>{(!o||o(G(p)))&&(Et[Et.length-1]===t&&p.stopPropagation(),s.current===t&&d()),s.current=void 0},{keyboardProps:m}=Le({shortcuts:{Escape:()=>{if(!l){d();return}return!1}}});m9({ref:t,onInteractOutside:a&&i?f:void 0,onInteractOutsideStart:c});let{focusWithinProps:h}=jn({isDisabled:!r,onBlurWithin:p=>{!p.relatedTarget||Bx(p.relatedTarget)||(!o||o(p.relatedTarget))&&n?.()}});return{overlayProps:{...m,...h},underlayProps:{}}}const Zr=typeof document<"u"&&window.visualViewport;let Sa=0,Go;function m4(e={}){let{isDisabled:t}=e;fe(()=>{if(!t)return Sa++,Sa===1&&(bt()&>()?Go=p9():Go=h9()),()=>{Sa--,Sa===0&&Go()}},[t])}function h9(){let e=window.innerWidth-document.documentElement.clientWidth;return at(e>0&&("scrollbarGutter"in document.documentElement.style?Pa(document.documentElement,"scrollbarGutter","stable"):Pa(document.documentElement,"paddingRight",`${e}px`)),Pa(document.documentElement,"overflow","hidden"))}function p9(){let e=Pa(document.documentElement,"overflow","hidden"),t,n=!1,r=c=>{let f=G(c);t=en(f)?f:ot(f,!0),n=!1;let m=f.ownerDocument.defaultView.getSelection();m&&!m.isCollapsed&&m.containsNode(f,!0)&&(n=!0),c.composedPath().some(h=>h instanceof HTMLInputElement&&h.type==="range")&&(n=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(n=!0)},i=document.createElement("style"),a=wd();a&&(i.nonce=a),i.textContent=`
|
|
8
8
|
@layer {
|
|
9
9
|
* {
|
|
10
10
|
overscroll-behavior: contain;
|
|
11
11
|
}
|
|
12
|
-
}`.trim(),document.head.prepend(i);let l=c=>{if(!(c.touches.length===2||n)){if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()}},a=c=>{let f=z(c),p=c.relatedTarget;p&&Sn(p)?(p.focus({preventScroll:!0}),Fd(p,Sn(f))):p||f.parentElement?.closest("[tabindex]")?.focus({preventScroll:!0})},u=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let f=pe(),p=f!=null&&Sn(f);u.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&Fd(this,p)};let d=We(Uo(document,"touchstart",r,{passive:!1,capture:!0}),Uo(document,"touchmove",l,{passive:!1,capture:!0}),Uo(document,"blur",a,!0));return()=>{t(),d(),i.remove(),HTMLElement.prototype.focus=u}}function ri(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Uo(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Fd(t,e){e||!Xn?Md(t):Xn.addEventListener("resize",()=>Md(t),{once:!0})}function Md(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=mt(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),o=n.getBoundingClientRect();if(o.top<i.top||o.bottom>i.top+n.clientHeight){let l=i.bottom;Xn&&(l=Math.min(l,Xn.offsetTop+Xn.height));let a=o.top-i.top-((l-i.top)/2-o.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+a)),behavior:"smooth"})}}n=r.parentElement}}function q4(t,e){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...u}=t,d=u.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:f}=Id({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||d,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:p,arrowProps:h,placement:m,triggerAnchorPoint:b}=R4({...u,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!d?e.close:null,getTargetRect:u.getTargetRect??(e.point?()=>new DOMRect(e.point.x,e.point.y,0,0):void 0)});Bd({isDisabled:o||!e.isOpen}),s.useEffect(()=>{if(e.isOpen&&r.current)return o?B4(i?.current??r.current):Ho([i?.current??r.current],{shouldUseInert:!0})},[o,e.isOpen,r,i]);let{focusWithinProps:y}=Bn(t);return{popoverProps:G(c,p,y),arrowProps:h,underlayProps:f,placement:m,triggerAnchorPoint:b}}var Kd={};Kd={dismiss:"تجاهل"};var Ld={};Ld={dismiss:"Отхвърляне"};var Od={};Od={dismiss:"Odstranit"};var zd={};zd={dismiss:"Luk"};var _d={};_d={dismiss:"Schließen"};var Vd={};Vd={dismiss:"Απόρριψη"};var Hd={};Hd={dismiss:"Dismiss"};var jd={};jd={dismiss:"Descartar"};var Rd={};Rd={dismiss:"Lõpeta"};var Wd={};Wd={dismiss:"Hylkää"};var Ud={};Ud={dismiss:"Rejeter"};var Gd={};Gd={dismiss:"התעלם"};var Yd={};Yd={dismiss:"Odbaci"};var Xd={};Xd={dismiss:"Elutasítás"};var qd={};qd={dismiss:"Ignora"};var Zd={};Zd={dismiss:"閉じる"};var Jd={};Jd={dismiss:"무시"};var Qd={};Qd={dismiss:"Atmesti"};var ec={};ec={dismiss:"Nerādīt"};var tc={};tc={dismiss:"Lukk"};var nc={};nc={dismiss:"Negeren"};var rc={};rc={dismiss:"Zignoruj"};var ic={};ic={dismiss:"Descartar"};var oc={};oc={dismiss:"Dispensar"};var lc={};lc={dismiss:"Revocare"};var ac={};ac={dismiss:"Пропустить"};var sc={};sc={dismiss:"Zrušiť"};var uc={};uc={dismiss:"Opusti"};var dc={};dc={dismiss:"Odbaci"};var cc={};cc={dismiss:"Avvisa"};var fc={};fc={dismiss:"Kapat"};var pc={};pc={dismiss:"Скасувати"};var hc={};hc={dismiss:"取消"};var mc={};mc={dismiss:"關閉"};var gc={};gc={"ar-AE":Kd,"bg-BG":Ld,"cs-CZ":Od,"da-DK":zd,"de-DE":_d,"el-GR":Vd,"en-US":Hd,"es-ES":jd,"et-EE":Rd,"fi-FI":Wd,"fr-FR":Ud,"he-IL":Gd,"hr-HR":Yd,"hu-HU":Xd,"it-IT":qd,"ja-JP":Zd,"ko-KR":Jd,"lt-LT":Qd,"lv-LV":ec,"nb-NO":tc,"nl-NL":nc,"pl-PL":rc,"pt-BR":ic,"pt-PT":oc,"ro-RO":lc,"ru-RU":ac,"sk-SK":sc,"sl-SI":uc,"sr-SP":dc,"sv-SE":cc,"tr-TR":fc,"uk-UA":pc,"zh-CN":hc,"zh-TW":mc};function Z4(t){return t&&t.__esModule?t.default:t}function Go(t){let{onDismiss:e,...n}=t,r=Me(Z4(gc),"@react-aria/overlays"),i=tn(n,r.format("dismiss")),o=()=>{e&&e()};return s.createElement(H3,null,s.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}const J4=s.forwardRef(({children:t,...e},n)=>{let r=s.useRef(!1),i=s.useContext(An),o=G(i||{},{...e,register(){r.current=!0,i&&i.register()}});return o.ref=ke(n||i?.ref),qi(i,o.ref),s.useEffect(()=>{r.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."),r.current=!0)},[]),s.createElement(An.Provider,{value:o},t)});function Q4({children:t}){let e=s.useMemo(()=>({register:()=>{}}),[]);return s.createElement(An.Provider,{value:e},t)}const e2=s.createContext({});function t2(){return s.useContext(e2)??{}}const bc=s.createContext(null);function Yo(t){let e=xt(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=s.useState(!1),l=s.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=t2();if(!t.portalContainer&&a&&(n=a()),!n)return null;let u=t.children;return t.disableFocusManagement||(u=s.createElement(Yr,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},u)),u=s.createElement(bc.Provider,{value:l},s.createElement(Q4,null,s.createElement(Fr.Provider,{value:null},u))),vt.createPortal(u,n)}function yc(){let e=s.useContext(bc)?.setContain;de(()=>{e?.(!0)},[e])}function qn(t){let[e,n]=it(t.isOpen,t.defaultOpen||!1,t.onOpenChange),[r,i]=s.useState(null);const o=s.useCallback(()=>{n(!0)},[n]),l=s.useCallback(()=>{n(!1)},[n]),a=s.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:o,close:l,toggle:a,point:r,setPoint:i}}function Xo(t,e=!0){let[n,r]=s.useState(!0),i=n&&e;return de(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),$c(t,i,s.useCallback(()=>r(!1),[])),i}function qo(t,e){let[n,r]=s.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return $c(t,i,s.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function $c(t,e,n){de(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.allSettled(r.map(o=>o.finished)).then(()=>{i||vt.flushSync(()=>{n()})}),()=>{i=!0}}},[t,e,n])}const ii=s.createContext(null),vc=s.createContext(null),xc=s.forwardRef(function(e,n){[e,n]=ge(e,n,ii);let r=s.useContext(Tt),i=qn(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=qo(n,o.isOpen),a=e.isExiting||!e.shouldSkipAnimation&&l||!1,u=Ja(),{direction:d}=Ne();if(u){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),s.createElement(s.Fragment,null,c)}return o&&!o.isOpen&&!a?null:s.createElement(n2,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:a,dir:d})});function n2({state:t,isExiting:e,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let o=s.useRef(null),l=s.useRef(null),a=s.useContext(vc),u=a&&i.trigger==="SubmenuTrigger",{popoverProps:d,underlayProps:c,arrowProps:f,placement:p,triggerAnchorPoint:h}=q4({...i,offset:i.offset??8,arrowRef:o,groupRef:u?a:l},t),m=i.popoverRef,b=Xo(m,!!p),y=i.isEntering||!i.shouldSkipAnimation&&b||!1,$=se({...i,defaultClassName:"react-aria-Popover",values:{trigger:i.trigger||null,placement:p,isEntering:y,isExiting:e}}),x=!i.isNonModal||i.trigger==="SubmenuTrigger"||i.trigger==="PreviewTrigger",[v,C]=s.useState(i.trigger==="PreviewTrigger");de(()=>{m.current&&C(x&&!m.current.querySelector("[role=dialog]"))},[m,x]),s.useEffect(()=>{v&&i.trigger!=="PreviewTrigger"&&(i.trigger!=="SubmenuTrigger"||En()!=="pointer")&&m.current&&!Ft(m.current)&&Se(m.current)},[v,m,i.trigger]);let k=s.useMemo(()=>{let L=$.children;if(r)for(let _ of r)L=s.createElement(_.Provider,{value:null},L);return L},[$.children,r]),[P,N]=s.useState(null),w=s.useCallback(()=>{i.triggerRef.current&&N(i.triggerRef.current.getBoundingClientRect().width+"px")},[i.triggerRef]);de(w,[w]),Yn({ref:$.style?.["--trigger-width"]?void 0:i.triggerRef,onResize:w});let D={...d.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...$.style,"--trigger-width":$.style?.["--trigger-width"]||P},A=s.createElement(ee.div,{...G(re(i,{global:!0}),d),...$,id:v?i.id:void 0,role:v?"dialog":void 0,tabIndex:v?-1:void 0,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"],ref:m,slot:i.slot||void 0,style:D,dir:i.dir,"data-trigger":i.trigger,"data-placement":p,"data-entering":y||void 0,"data-exiting":e||void 0},!i.isNonModal&&s.createElement(Go,{onDismiss:t.close}),s.createElement(Cd.Provider,{value:{...f,placement:p,ref:o}},k),s.createElement(Go,{onDismiss:t.close}));return u?s.createElement(Yo,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:e,portalContainer:n??a?.current??void 0},A):s.createElement(Yo,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:e,portalContainer:n},!i.isNonModal&&t.isOpen&&s.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),s.createElement("div",{ref:l,style:{display:"contents"}},s.createElement(vc.Provider,{value:l},A)))}const r2=s.createContext({});var Cc={};Cc={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Ec={};Ec={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var wc={};wc={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Sc={};Sc={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Pc={};Pc={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var kc={};kc={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Dc={};Dc={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Nc={};Nc={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Tc={};Tc={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Ac={};Ac={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Ic={};Ic={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Bc={};Bc={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Fc={};Fc={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Mc={};Mc={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Kc={};Kc={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var Lc={};Lc={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Oc={};Oc={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var zc={};zc={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var _c={};_c={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Vc={};Vc={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Hc={};Hc={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var jc={};jc={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Rc={};Rc={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Wc={};Wc={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Uc={};Uc={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Gc={};Gc={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Yc={};Yc={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Xc={};Xc={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var qc={};qc={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Zc={};Zc={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Jc={};Jc={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Qc={};Qc={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var ef={};ef={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var tf={};tf={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var nf={};nf={"ar-AE":Cc,"bg-BG":Ec,"cs-CZ":wc,"da-DK":Sc,"de-DE":Pc,"el-GR":kc,"en-US":Dc,"es-ES":Nc,"et-EE":Tc,"fi-FI":Ac,"fr-FR":Ic,"he-IL":Bc,"hr-HR":Fc,"hu-HU":Mc,"it-IT":Kc,"ja-JP":Lc,"ko-KR":Oc,"lt-LT":zc,"lv-LV":_c,"nb-NO":Vc,"nl-NL":Hc,"pl-PL":jc,"pt-BR":Rc,"pt-PT":Wc,"ro-RO":Uc,"ru-RU":Gc,"sk-SK":Yc,"sl-SI":Xc,"sr-SP":qc,"sv-SE":Zc,"tr-TR":Jc,"uk-UA":Qc,"zh-CN":ef,"zh-TW":tf};function i2(t){let{onContextMenu:e}=t,n=s.useRef(!1),{longPressProps:r}=Ko({onLongPressStart(){n.current=!1},onLongPress(i){n.current?n.current=!1:e?.({target:i.target,x:i.x,y:i.y})}});return e?{contextMenuProps:G(ft()?r:{},{onContextMenu(i){i.stopPropagation(),i.preventDefault(),n.current=!0;let o=i.currentTarget.getBoundingClientRect();e({target:i.currentTarget,x:i.clientX-o.x,y:i.clientY-o.y})},onKeyDown(i){if(_e()&&i.ctrlKey&&i.key==="Enter"){n.current=!1;let o=i.currentTarget;i.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let l=o.getBoundingClientRect();e({target:o,x:l.width/2,y:l.height/2})}},10)}}})}:{contextMenuProps:{}}}function o2(t,e,n){let{type:r}=t,{isOpen:i}=e;s.useEffect(()=>{n&&n.current&&Ad.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=xe();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}function l2(t){return t&&t.__esModule?t.default:t}function Zo(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=xe(),{triggerProps:a,overlayProps:u}=o2({type:r},e,n),d=(y,$,x="first")=>{if(!y||$.isDefaultPrevented())return!1;e.toggle(x)},{keyboardProps:c}=Ge({isDisabled:i,shortcuts:{Enter:y=>d(o!=="longPress",y,"first")," ":y=>d(o!=="longPress",y,"first"),ArrowDown:y=>d(o!=="longPress",y,"first"),ArrowUp:y=>d(o!=="longPress",y,"last"),"Alt+Enter":y=>d(o==="longPress",y,"first"),"Alt+ ":y=>d(o==="longPress",y,"first"),"Alt+ArrowDown":y=>d(!0,y,"first"),"Alt+ArrowUp":y=>d(!0,y,"last")}}),f=Me(l2(nf),"@react-aria/menu"),{longPressProps:p}=Ko({isDisabled:i||o!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),h={preventFocusOnPress:!0,onPressStart(y){y.pointerType!=="touch"&&y.pointerType!=="keyboard"&&!i&&(Ue(y.target),e.open(y.pointerType==="virtual"?"first":null))},onPress(y){y.pointerType==="touch"&&!i&&(Ue(y.target),e.toggle())}};delete a.onPress;let{contextMenuProps:m}=i2({onContextMenu(y){let $=y.target.getBoundingClientRect();e.setPoint({x:$.x+y.x,y:$.y+y.y}),e.open()}});s.useEffect(()=>{if(e.isOpen&&o==="contextMenu"){let y=$=>{($.button===2||$.button===0&&$.ctrlKey===!0)&&z($)===document.body&&e.close()};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)}},[e,o]);let b;if(o==="press")b={...h,...c};else if(o==="longPress")b={...p,...c};else if(o==="contextMenu"){b=m;let{"aria-haspopup":y,"aria-expanded":$,"aria-controls":x,...v}=a;a=v}return{menuTriggerProps:{...a,...b,id:l},menuProps:{...u,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const rf=new WeakMap;function a2(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=re(t,{labelable:!0}),{listProps:u}=cd({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return rf.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:G(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...u,onKeyDown:d=>{(d.key!=="Escape"||t.shouldUseVirtualFocus)&&u.onKeyDown?.(d)}})}}function s2(t,e,n){let{id:r,key:i,closeOnSelect:o,shouldCloseOnSelect:l,isVirtualized:a,"aria-haspopup":u,onPressStart:d,onPressUp:c,onPress:f,onPressChange:p,onPressEnd:h,onClick:m,onHoverStart:b,onHoverChange:y,onHoverEnd:$,onKeyDown:x,onKeyUp:v,onFocus:C,onFocusChange:k,onBlur:P,selectionManager:N=e.selectionManager}=t,w=!!u,D=w&&t["aria-expanded"]==="true",A=t.isDisabled??N.isDisabled(i),L=t.isSelected??N.isSelected(i),_=rf.get(e),R=e.collection.getItem(i),E=t.onClose||_.onClose,F=Mt(),Z=()=>{if(!w&&(R?.props?.onAction?R.props.onAction():t.onAction&&t.onAction(i),_.onAction)){let ye=_.onAction;ye(i,R?.value)}},M="menuitem";w||(N.selectionMode==="single"?M="menuitemradio":N.selectionMode==="multiple"&&(M="menuitemcheckbox"));let Y=dt(),S=dt(),I=dt(),U={id:r,"aria-disabled":A||void 0,role:M,"aria-label":t["aria-label"],"aria-labelledby":Y,"aria-describedby":[t["aria-describedby"],S,I].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":u,"aria-expanded":t["aria-expanded"]};if(N.selectionMode!=="none"&&!w&&(U["aria-checked"]=L),a){let ye=Number(R?.index);U["aria-posinset"]=Number.isNaN(ye)?void 0:ye+1,U["aria-setsize"]=Oo(e.collection)}let oe=s.useRef(!1),V=ye=>{p?.(ye),oe.current=ye},ne=s.useRef(null),T=ye=>{ye.pointerType!=="keyboard"&&(ne.current={pointerType:ye.pointerType}),ye.pointerType==="mouse"&&(oe.current||ye.target.click()),c?.(ye)},O=ye=>{m?.(ye),Z(),Ia(ye,F,R.props.href,R?.props.routerOptions);let Bt=ne.current?.pointerType==="keyboard"?ne.current?.key==="Enter"||N.selectionMode==="none"||N.isLink(i):N.selectionMode!=="multiple"||N.isLink(i);Bt=l??o??Bt,E&&!w&&Bt&&E(),ne.current=null},{itemProps:J,isFocused:ce}=Hn({id:r,selectionManager:N,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:_.shouldUseVirtualFocus}),{pressProps:he,isPressed:et}=zt({onPressStart:d,onPress:f,onPressUp:T,onPressChange:V,onPressEnd:h,isDisabled:A}),{hoverProps:B}=Ie({isDisabled:A,onHoverStart(ye){!Et()&&!(D&&u)&&(N.setFocused(!0),N.setFocusedKey(i)),b?.(ye)},onHoverChange:y,onHoverEnd:$}),{keyboardProps:K}=Ge({shortcuts:{" ":ye=>{ne.current={pointerType:"keyboard",key:" "},z(ye).click(),en("keyboard")},Enter:ye=>{ne.current={pointerType:"keyboard",key:"Enter"};let Bt=z(ye);if(Bt.tagName!=="A"){Bt.click(),en("keyboard");return}return en("keyboard"),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:x,onKeyUp:v}),{focusableProps:ue}=rn({onBlur:P,onFocus:C,onFocusChange:k},n),fe=re(R?.props);delete fe.id;let ut=Er(R?.props);return{menuItemProps:{...U,...G(fe,ut,w?{onFocus:J.onFocus,"data-collection":J["data-collection"],"data-key":J["data-key"]}:J,he,B,K,ue,_.shouldUseVirtualFocus||w?{onMouseDown:ye=>ye.preventDefault()}:void 0,A?void 0:{onClick:O}),tabIndex:J.tabIndex!=null&&D&&!_.shouldUseVirtualFocus?-1:J.tabIndex},labelProps:{id:Y},descriptionProps:{id:S},keyboardShortcutProps:{id:I},isFocused:ce,isFocusVisible:ce&&N.isFocused&&Et()&&!D,isSelected:L,isPressed:et,isDisabled:A}}function u2(t){let{heading:e,"aria-label":n}=t,r=xe();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}function of(t){let e=qn(t),[n,r]=s.useState(null),[i,o]=s.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(d=null){r(d),e.open()},toggle(d=null){r(d),e.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(d,c)=>{o(f=>c>f.length?f:[...f.slice(0,c),d])},closeSubmenu:(d,c)=>{o(f=>f[c]===d?f.slice(0,c):f)}}}class d2{constructor(e,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,n=n||new Set;let r=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||n.has(l.key)))for(let a of l.childNodes)r(a)};for(let l of e)r(l);let i=null,o=0;for(let[l,a]of this.keyMap)i?(i.nextKey=l,a.prevKey=i.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=o++),i=a,i.nextKey=void 0;this.lastKey=i?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey??null:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}}function c2(t){let{onExpandedChange:e}=t,[n,r]=it(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=Rn(t),o=s.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=Vo(t,s.useCallback(u=>new d2(u,{expandedKeys:n}),[n]),null);return s.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:u=>{r(f2(n,u))},setExpandedKeys:r,selectionManager:new dn(l,i)}}function f2(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const lf=s.createContext(null),Jo=s.createContext(null),Qo=s.createContext(null),oi=s.createContext(null);function li(t){let e=of(t),n=s.useRef(null),{menuTriggerProps:r,menuProps:i}=Zo({...t,type:"menu"},e,n),o=s.useRef(null);return Ja()?null:s.createElement(Te,{values:[[lf,{...i,ref:o}],[Tt,e],[Qo,e],[ii,{trigger:"MenuTrigger",triggerRef:n,scrollRef:o,placement:"bottom start","aria-labelledby":i["aria-labelledby"],offset:t.trigger==="contextMenu"?0:void 0}]]},s.createElement(J4,{...r,ref:n,isPressed:e.isOpen},t.children))}const p2=s.createContext(null),ua=class ua extends He{filter(e,n,r){let i=e.getItem(this.firstChildKey);if(i&&r(i.textValue,this)){let o=this.clone();return n.addDescendants(o,e),o}return null}};ua.type="submenutrigger";let af=ua;const sf=s.forwardRef(function(e,n){return[e,n]=ge(e,n,lf),s.createElement(Lt,{content:s.createElement(Ot,e)},r=>s.createElement(h2,{props:e,collection:r,menuRef:n}))});function h2({props:t,collection:e,menuRef:n}){[t,n]=ge(t,n,Dn);let{filter:r,...i}=t,o=s.useMemo(()=>r?e.filter(r):e,[e,r]),l=c2({...t,collection:o,children:void 0}),a=s.useContext(Qo),{isVirtualized:u,CollectionRoot:d}=s.useContext(me),{menuProps:c}=a2({...t,isVirtualized:u,onClose:t.onClose||a?.close},l,n),f=se({...t,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),p=null;l.collection.size===0&&t.renderEmptyState&&(p=s.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState()));let h=re(t,{global:!0});return s.createElement(Yr,null,s.createElement(ee.div,{...G(h,f,c),ref:n,slot:t.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:t.onScroll},s.createElement(Te,{values:[[Jo,l],[ko,{elementType:"div"}],[ls,{name:"MenuSection",render:g2}],[p2,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[Zn,{shouldCloseOnSelect:t.shouldCloseOnSelect}],[Dn,null],[Nr,null],[oi,l.selectionManager],[Qo,a??of({})]]},s.createElement(Ur,null,s.createElement(d,{collection:l.collection,persistedKeys:ss(l.selectionManager.focusedKey),scrollRef:n}))),p))}class m2 extends dn{constructor(e,n){super(e.collection,n),this.parent=e}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,n){return this.parent.setFocusedKey(e,n)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}}function g2(t,e,n,r="react-aria-MenuSection"){let i=s.useContext(Jo),{CollectionBranch:o}=s.useContext(me),[l,a]=vn(),{headingProps:u,groupProps:d}=u2({heading:a,"aria-label":n.props["aria-label"]??void 0}),c=se({...t,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),f=s.useContext(oi),p=Rn(t),h=t.selectionMode!=null?new m2(f,p):f,m=Ct(Zn)?.shouldCloseOnSelect,b=re(t,{global:!0});return delete b.id,s.createElement(ee.section,{...G(b,c,d),ref:e},s.createElement(Te,{values:[[Po,{...u,ref:l}],[oi,h],[Zn,{shouldCloseOnSelect:t.shouldCloseOnSelect??m}]]},s.createElement(o,{collection:i.collection,parent:n})))}const Zn=s.createContext(null),uf=ot(Ir,function(e,n,r){[e,n]=ge(e,n,Zn);let i=Ct(Zn)?.id,o=s.useContext(Jo),l=ke(n),a=s.useContext(oi),{isVirtualized:u}=s.useContext(me),{menuItemProps:d,labelProps:c,descriptionProps:f,keyboardShortcutProps:p,...h}=s2({...e,id:i,key:r.key,selectionManager:a,isVirtualized:u},o,l),{hoverProps:m,isHovered:b}=Ie({isDisabled:h.isDisabled}),y=se({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...h,isHovered:b,isFocusVisible:h.isFocusVisible,selectionMode:a.selectionMode,selectionBehavior:a.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),$=e.href?ee.a:ee.div,x=re(e,{global:!0});return delete x.id,delete x.onClick,s.createElement($,{...G(x,y,d,m),ref:l,"data-disabled":h.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-selected":h.isSelected||void 0,"data-selection-mode":a.selectionMode==="none"?void 0:a.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},s.createElement(Te,{values:[[Pt,{slots:{[ct]:c,label:c,description:f}}],[r2,p],[zn,{isSelected:h.isSelected}]]},y.children))});function b2(t,e){let{role:n="dialog"}=t,r=dt();r=t["aria-label"]?void 0:r;let i=dt();i=n==="alertdialog"&&!t["aria-describedby"]?i:void 0;let o=s.useRef(!1);s.useEffect(()=>{if(e.current&&!Ft(e.current)){Se(e.current);let u=setTimeout(()=>{(pe()===e.current||pe()===document.body)&&(o.current=!0,e.current&&(e.current.blur(),Se(e.current)),o.current=!1)},500);return()=>{clearTimeout(u)}}},[e]),yc();let l=s.useRef(!1);s.useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!l.current&&e.current){let u=e.current,d=u.hasAttribute("aria-label"),c=u.hasAttribute("aria-labelledby");!d&&!c&&(console.warn("A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog."),l.current=!0)}});let a=t["aria-describedby"]??i;return{dialogProps:{...re(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]??r,"aria-describedby":a,onBlur:u=>{o.current&&u.stopPropagation()}},titleProps:{id:r},contentProps:{id:i}}}const y2=s.createContext(null),Tt=s.createContext(null),$2=s.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=ge(e,n,y2);let{dialogProps:i,titleProps:o,contentProps:l}=b2({...e,"aria-labelledby":r},n),a=s.useContext(Tt);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["aria-labelledby"]=e["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 u=se({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),d=re(e,{global:!0});return s.createElement(ee.section,{...G(d,u,i),render:e.render,ref:n,slot:e.slot||void 0},s.createElement(Te,{values:[[ou,{slots:{[ct]:{},title:{...o,level:2}}}],[Pt,{slots:{[ct]:{},description:l}}],[Ht,{slots:{[ct]:{},close:{onPress:()=>a?.close()}}}]]},u.children))});var df={};df={buttonLabel:"عرض المقترحات",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} خيار`,other:()=>`${e.number(t.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`المجموعة المدخلة ${t.groupTitle}, مع ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} خيار`,other:()=>`${e.number(t.groupCount)} خيارات`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", محدد",other:""},t.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:t=>`${t.optionText}، محدد`};var cf={};cf={buttonLabel:"Покажи предложения",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} опция`,other:()=>`${e.number(t.optionCount)} опции`})} на разположение.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Въведена група ${t.groupTitle}, с ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} опция`,other:()=>`${e.number(t.groupCount)} опции`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", избрани",other:""},t.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:t=>`${t.optionText}, избрани`};var ff={};ff={buttonLabel:"Zobrazit doporučení",countAnnouncement:(t,e)=>`K dispozici ${e.plural(t.optionCount,{one:()=>`je ${e.number(t.optionCount)} možnost`,other:()=>`jsou/je ${e.number(t.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Zadaná skupina „${t.groupTitle}“ ${e.plural(t.groupCount,{one:()=>`s ${e.number(t.groupCount)} možností`,other:()=>`se ${e.number(t.groupCount)} možnostmi`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:" (vybráno)",other:""},t.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:t=>`${t.optionText}, vybráno`};var pf={};pf={buttonLabel:"Vis forslag",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} mulighed tilgængelig`,other:()=>`${e.number(t.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Angivet gruppe ${t.groupTitle}, med ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} mulighed`,other:()=>`${e.number(t.groupCount)} muligheder`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valgt",other:""},t.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:t=>`${t.optionText}, valgt`};var hf={};hf={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} Option`,other:()=>`${e.number(t.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Eingetretene Gruppe ${t.groupTitle}, mit ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} Option`,other:()=>`${e.number(t.groupCount)} Optionen`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", ausgewählt",other:""},t.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:t=>`${t.optionText}, ausgewählt`};var mf={};mf={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} επιλογή`,other:()=>`${e.number(t.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Εισαγμένη ομάδα ${t.groupTitle}, με ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} επιλογή`,other:()=>`${e.number(t.groupCount)} επιλογές`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", επιλεγμένο",other:""},t.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:t=>`${t.optionText}, επιλέχθηκε`};var gf={};gf={focusAnnouncement:(t,e)=>`${e.select({true:()=>`Entered group ${t.groupTitle}, with ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} option`,other:()=>`${e.number(t.groupCount)} options`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selected",other:""},t.isSelected)}`,countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} option`,other:()=>`${e.number(t.optionCount)} options`})} available.`,selectedAnnouncement:t=>`${t.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var bf={};bf={buttonLabel:"Mostrar sugerencias",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opción`,other:()=>`${e.number(t.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Se ha unido al grupo ${t.groupTitle}, con ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opción`,other:()=>`${e.number(t.groupCount)} opciones`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", seleccionado",other:""},t.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:t=>`${t.optionText}, seleccionado`};var yf={};yf={buttonLabel:"Kuva soovitused",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} valik`,other:()=>`${e.number(t.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Sisestatud rühm ${t.groupTitle}, valikuga ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} valik`,other:()=>`${e.number(t.groupCount)} valikud`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valitud",other:""},t.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:t=>`${t.optionText}, valitud`};var $f={};$f={buttonLabel:"Näytä ehdotukset",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} vaihtoehto`,other:()=>`${e.number(t.optionCount)} vaihtoehtoa`})} saatavilla.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Siirtyi ryhmään ${t.groupTitle}, jossa ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} vaihtoehto`,other:()=>`${e.number(t.groupCount)} vaihtoehtoa`})}.`,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valittu",other:""},t.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:t=>`${t.optionText}, valittu`};var vf={};vf={buttonLabel:"Afficher les suggestions",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} option`,other:()=>`${e.number(t.optionCount)} options`})} disponible(s).`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Groupe ${t.groupTitle} rejoint, avec ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} option`,other:()=>`${e.number(t.groupCount)} options`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", sélectionné(s)",other:""},t.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:t=>`${t.optionText}, sélectionné`};var xf={};xf={buttonLabel:"הצג הצעות",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`אפשרות ${e.number(t.optionCount)}`,other:()=>`${e.number(t.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`נכנס לקבוצה ${t.groupTitle}, עם ${e.plural(t.groupCount,{one:()=>`אפשרות ${e.number(t.groupCount)}`,other:()=>`${e.number(t.groupCount)} אפשרויות`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", נבחר",other:""},t.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:t=>`${t.optionText}, נבחר`};var Cf={};Cf={buttonLabel:"Prikaži prijedloge",countAnnouncement:(t,e)=>`Dostupno još: ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcija`,other:()=>`${e.number(t.optionCount)} opcije/a`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Unesena skupina ${t.groupTitle}, s ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opcijom`,other:()=>`${e.number(t.groupCount)} opcije/a`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", odabranih",other:""},t.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:t=>`${t.optionText}, odabrano`};var Ef={};Ef={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} lehetőség`,other:()=>`${e.number(t.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Belépett a(z) ${t.groupTitle} csoportba, amely ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} lehetőséget`,other:()=>`${e.number(t.groupCount)} lehetőséget`})} tartalmaz. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", kijelölve",other:""},t.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:t=>`${t.optionText}, kijelölve`};var wf={};wf={buttonLabel:"Mostra suggerimenti",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opzione disponibile`,other:()=>`${e.number(t.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Ingresso nel gruppo ${t.groupTitle}, con ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opzione`,other:()=>`${e.number(t.groupCount)} opzioni`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selezionato",other:""},t.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:t=>`${t.optionText}, selezionato`};var Sf={};Sf={buttonLabel:"候補を表示",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} 個のオプション`,other:()=>`${e.number(t.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`入力されたグループ ${t.groupTitle}、${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} 個のオプション`,other:()=>`${e.number(t.groupCount)} 個のオプション`})}を含む。`,other:""},t.isGroupChange)}${t.optionText}${e.select({true:"、選択済み",other:""},t.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:t=>`${t.optionText}、選択済み`};var Pf={};Pf={buttonLabel:"제안 사항 표시",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)}개 옵션`,other:()=>`${e.number(t.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`입력한 그룹 ${t.groupTitle}, ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)}개 옵션`,other:()=>`${e.number(t.groupCount)}개 옵션`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", 선택됨",other:""},t.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:t=>`${t.optionText}, 선택됨`};var kf={};kf={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(t,e)=>`Yra ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} parinktis`,other:()=>`${e.number(t.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Įvesta grupė ${t.groupTitle}, su ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} parinktimi`,other:()=>`${e.number(t.groupCount)} parinktimis (-ių)`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", pasirinkta",other:""},t.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:t=>`${t.optionText}, pasirinkta`};var Df={};Df={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(t,e)=>`Pieejamo opciju skaits: ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcija`,other:()=>`${e.number(t.optionCount)} opcijas`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Ievadīta grupa ${t.groupTitle}, ar ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opciju`,other:()=>`${e.number(t.groupCount)} opcijām`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", atlasīta",other:""},t.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:t=>`${t.optionText}, atlasīta`};var Nf={};Nf={buttonLabel:"Vis forslag",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} alternativ`,other:()=>`${e.number(t.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Angitt gruppe ${t.groupTitle}, med ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} alternativ`,other:()=>`${e.number(t.groupCount)} alternativer`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valgt",other:""},t.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:t=>`${t.optionText}, valgt`};var Tf={};Tf={buttonLabel:"Suggesties weergeven",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} optie`,other:()=>`${e.number(t.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Groep ${t.groupTitle} ingevoerd met ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} optie`,other:()=>`${e.number(t.groupCount)} opties`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", geselecteerd",other:""},t.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:t=>`${t.optionText}, geselecteerd`};var Af={};Af={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(t,e)=>`dostępna/dostępne(-nych) ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcja`,other:()=>`${e.number(t.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Dołączono do grupy ${t.groupTitle}, z ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opcją`,other:()=>`${e.number(t.groupCount)} opcjami`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", wybrano",other:""},t.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:t=>`${t.optionText}, wybrano`};var If={};If={buttonLabel:"Mostrar sugestões",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opção`,other:()=>`${e.number(t.optionCount)} opções`})} disponível.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Grupo inserido ${t.groupTitle}, com ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opção`,other:()=>`${e.number(t.groupCount)} opções`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selecionado",other:""},t.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:t=>`${t.optionText}, selecionado`};var Bf={};Bf={buttonLabel:"Apresentar sugestões",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opção`,other:()=>`${e.number(t.optionCount)} opções`})} disponível.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Grupo introduzido ${t.groupTitle}, com ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opção`,other:()=>`${e.number(t.groupCount)} opções`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selecionado",other:""},t.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:t=>`${t.optionText}, selecionado`};var Ff={};Ff={buttonLabel:"Afișare sugestii",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opțiune`,other:()=>`${e.number(t.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Grup ${t.groupTitle} introdus, cu ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opțiune`,other:()=>`${e.number(t.groupCount)} opțiuni`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selectat",other:""},t.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:t=>`${t.optionText}, selectat`};var Mf={};Mf={buttonLabel:"Показать предложения",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} параметр`,other:()=>`${e.number(t.optionCount)} параметров`})} доступно.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Введенная группа ${t.groupTitle}, с ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} параметром`,other:()=>`${e.number(t.groupCount)} параметрами`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", выбранными",other:""},t.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:t=>`${t.optionText}, выбрано`};var Kf={};Kf={buttonLabel:"Zobraziť návrhy",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} možnosť`,other:()=>`${e.number(t.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Zadaná skupina ${t.groupTitle}, s ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} možnosťou`,other:()=>`${e.number(t.groupCount)} možnosťami`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", vybraté",other:""},t.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:t=>`${t.optionText}, vybraté`};var Lf={};Lf={buttonLabel:"Prikaži predloge",countAnnouncement:(t,e)=>`Na voljo je ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcija`,other:()=>`${e.number(t.optionCount)} opcije`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Vnesena skupina ${t.groupTitle}, z ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opcija`,other:()=>`${e.number(t.groupCount)} opcije`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", izbrano",other:""},t.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:t=>`${t.optionText}, izbrano`};var Of={};Of={buttonLabel:"Prikaži predloge",countAnnouncement:(t,e)=>`Dostupno još: ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcija`,other:()=>`${e.number(t.optionCount)} opcije/a`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Unesena grupa ${t.groupTitle}, s ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opcijom`,other:()=>`${e.number(t.groupCount)} optione/a`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", izabranih",other:""},t.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:t=>`${t.optionText}, izabrano`};var zf={};zf={buttonLabel:"Visa förslag",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} alternativ`,other:()=>`${e.number(t.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Ingick i gruppen ${t.groupTitle} med ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} alternativ`,other:()=>`${e.number(t.groupCount)} alternativ`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valda",other:""},t.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:t=>`${t.optionText}, valda`};var _f={};_f={buttonLabel:"Önerileri göster",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} seçenek`,other:()=>`${e.number(t.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Girilen grup ${t.groupTitle}, ile ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} seçenek`,other:()=>`${e.number(t.groupCount)} seçenekler`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", seçildi",other:""},t.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:t=>`${t.optionText}, seçildi`};var Vf={};Vf={buttonLabel:"Показати пропозиції",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} параметр`,other:()=>`${e.number(t.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Введена група ${t.groupTitle}, з ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} параметр`,other:()=>`${e.number(t.groupCount)} параметри(-ів)`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", вибрано",other:""},t.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:t=>`${t.optionText}, вибрано`};var Hf={};Hf={buttonLabel:"显示建议",countAnnouncement:(t,e)=>`有 ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} 个选项`,other:()=>`${e.number(t.optionCount)} 个选项`})}可用。`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`进入了 ${t.groupTitle} 组,其中有 ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} 个选项`,other:()=>`${e.number(t.groupCount)} 个选项`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", 已选择",other:""},t.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:t=>`${t.optionText}, 已选择`};var jf={};jf={buttonLabel:"顯示建議",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} 選項`,other:()=>`${e.number(t.optionCount)} 選項`})} 可用。`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`輸入的群組 ${t.groupTitle}, 有 ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} 選項`,other:()=>`${e.number(t.groupCount)} 選項`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", 已選取",other:""},t.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:t=>`${t.optionText}, 已選取`};var Rf={};Rf={"ar-AE":df,"bg-BG":cf,"cs-CZ":ff,"da-DK":pf,"de-DE":hf,"el-GR":mf,"en-US":gf,"es-ES":bf,"et-EE":yf,"fi-FI":$f,"fr-FR":vf,"he-IL":xf,"hr-HR":Cf,"hu-HU":Ef,"it-IT":wf,"ja-JP":Sf,"ko-KR":Pf,"lt-LT":kf,"lv-LV":Df,"nb-NO":Nf,"nl-NL":Tf,"pl-PL":Af,"pt-BR":If,"pt-PT":Bf,"ro-RO":Ff,"ru-RU":Mf,"sk-SK":Kf,"sl-SI":Lf,"sr-SP":Of,"sv-SE":zf,"tr-TR":_f,"uk-UA":Vf,"zh-CN":Hf,"zh-TW":jf};function v2(t){return t&&t.__esModule?t.default:t}function x2(t,e){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:l,layoutDelegate:a,shouldFocusWrap:u,isReadOnly:d,isDisabled:c}=t,f=s.useRef(null);n=n??f;let p=Me(v2(Rf),"@react-aria/combobox"),{menuTriggerProps:h,menuProps:m}=Zo({type:"listbox",isDisabled:c||d},e,n);Gr.set(e,{id:m.id});let{collection:b}=e,{disabledKeys:y}=e.selectionManager,$=s.useMemo(()=>l||new Vn({collection:b,disabledKeys:y,ref:o,layoutDelegate:a}),[l,a,b,y,o]),{collectionProps:x}=qr({selectionManager:e.selectionManager,keyboardDelegate:$,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:u,ref:i,isVirtualized:!0}),v=Mt(),{keyboardProps:C}=Ge({shortcuts:{Enter:B=>{let K=e.isOpen;if(e.isOpen&&o.current&&e.selectionManager.focusedKey!=null){let ue=e.collection.getItem(e.selectionManager.focusedKey);if(ue?.props.href){let fe=o.current.querySelector(`[data-key="${CSS.escape(e.selectionManager.focusedKey.toString())}"]`);return fe instanceof HTMLAnchorElement&&v.open(fe,B,ue.props.href,ue.props.routerOptions),e.close(),{shouldPreventDefault:K}}else if(ue?.props.onAction)return ue.props.onAction(),e.close(),{shouldPreventDefault:K}}return e.commit(),{shouldPreventDefault:K}},Tab:()=>{if(e.isOpen&&o.current&&e.selectionManager.focusedKey!=null){let B=e.collection.getItem(e.selectionManager.focusedKey);if(B?.props.href)return e.close(),{shouldPreventDefault:!1};if(B?.props.onAction)return B.props.onAction(),e.close(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}}return e.isOpen&&e.commit(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}},Escape:()=>{let B=!1;return(!e.selectionManager.isEmpty||e.inputValue===""||t.allowsCustomValue)&&(B=!0),e.revert(),{shouldContinuePropagation:B}}}}),{keyboardProps:k}=Ge({shortcuts:{ArrowDown:()=>(e.open("first","manual"),{shouldPreventDefault:!1}),ArrowUp:()=>(e.open("last","manual"),{shouldPreventDefault:!1}),ArrowLeft:()=>(e.selectionManager.setFocusedKey(null),{shouldPreventDefault:!1}),ArrowRight:()=>(e.selectionManager.setFocusedKey(null),{shouldPreventDefault:!1})},allowRepeats:!0}),P=B=>{let K=n?.current&&n.current===B.relatedTarget,ue=te(r.current,B.relatedTarget);K||ue||(t.onBlur&&t.onBlur(B),e.setFocused(!1))},N=B=>{e.isFocused||(t.onFocus&&t.onFocus(B),e.setFocused(!0))},w=C2([e.selectionManager.selectedKeys,e.selectionManager.selectionMode]),{isInvalid:D,validationErrors:A,validationDetails:L}=e.displayValidation,{labelProps:_,inputProps:R,descriptionProps:E,errorMessageProps:F}=Z3({...t,isRequired:t.selectionMode==="multiple"?t.isRequired&&e.selectionManager.isEmpty:t.isRequired,onChange:e.setInputValue,onKeyDown:d?t.onKeyDown:We(e.isOpen&&x.onKeyDown,C.onKeyDown,k.onKeyDown,t.onKeyDown),onBlur:P,value:e.inputValue,defaultValue:e.defaultInputValue,onFocus:N,autoComplete:"off",validate:void 0,[go]:e,"aria-describedby":[w,t["aria-describedby"]].filter(Boolean).join(" ")||void 0},i);vo(i,e.defaultValue,e.setValue);let Z=B=>{B.pointerType==="touch"&&(i.current?.focus(),e.toggle(null,"manual"))},M=B=>{B.pointerType!=="touch"&&(i.current?.focus(),e.toggle(B.pointerType==="keyboard"||B.pointerType==="virtual"?"first":null,"manual"))},Y=tn({id:h.id,"aria-label":p.format("buttonLabel"),"aria-labelledby":t["aria-labelledby"]||_.id}),S=tn({id:m.id,"aria-label":p.format("listboxLabel"),"aria-labelledby":t["aria-labelledby"]||_.id}),I=s.useRef(0),U=B=>{if(c||d)return;if(B.timeStamp-I.current<500){B.preventDefault(),i.current?.focus();return}let K=z(B).getBoundingClientRect(),ue=B.changedTouches[0],fe=Math.ceil(K.left+.5*K.width),ut=Math.ceil(K.top+.5*K.height);ue.clientX===fe&&ue.clientY===ut&&(B.preventDefault(),i.current?.focus(),e.toggle(null,"manual"),I.current=B.timeStamp)},oe=e.selectionManager.focusedKey!=null&&e.isOpen?e.collection.getItem(e.selectionManager.focusedKey):void 0,V=oe?.parentKey??null,ne=e.selectionManager.focusedKey??null,T=s.useRef(V),O=s.useRef(ne);s.useEffect(()=>{if(Cr()&&oe!=null&&ne!=null&&ne!==O.current){let B=e.selectionManager.isSelected(ne),K=V!=null?e.collection.getItem(V):null,ue=K?.["aria-label"]||(typeof K?.rendered=="string"?K.rendered:"")||"",fe=p.format("focusAnnouncement",{isGroupChange:(K&&V!==T.current)??!1,groupTitle:ue,groupCount:K?[...Ee(K,e.collection)].length:0,optionText:oe["aria-label"]||oe.textValue||"",isSelected:B});Vt(fe)}T.current=V,O.current=ne});let J=Oo(e.collection),ce=s.useRef(J),he=s.useRef(e.isOpen);s.useEffect(()=>{let B=e.isOpen!==he.current&&(e.selectionManager.focusedKey==null||Cr());if(e.isOpen&&(B||J!==ce.current)){let K=p.format("countAnnouncement",{optionCount:J});Vt(K)}ce.current=J,he.current=e.isOpen});let et=s.useRef(e.selectedKey);return s.useEffect(()=>{if(Cr()&&e.isFocused&&e.selectedItem&&e.selectedKey!==et.current){let B=e.selectedItem["aria-label"]||e.selectedItem.textValue||"",K=p.format("selectedAnnouncement",{optionText:B});Vt(K)}et.current=e.selectedKey}),s.useEffect(()=>{if(e.isOpen)return Ho([i.current,r.current].filter(B=>B!=null))},[e.isOpen,i,r]),po(()=>{!oe&&i.current&&pe(le(i.current))===i.current&&Ki(i.current,null)},[oe]),Pn(o,"react-aria-item-action",e.isOpen?()=>{e.close()}:void 0),{labelProps:{..._,onClick:"htmlFor"in _&&_.htmlFor||t.isDisabled?void 0:()=>{i.current?.focus(),en("keyboard")}},buttonProps:{...h,...Y,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:Z,onPressStart:M,isDisabled:c||d},inputProps:G(R,{role:"combobox","aria-expanded":h["aria-expanded"],"aria-controls":e.isOpen?m.id:void 0,"aria-autocomplete":"list","aria-activedescendant":oe?ed(e,oe.key):void 0,onTouchEnd:U,autoCorrect:"off",spellCheck:"false"}),listBoxProps:G(m,S,{onAction:void 0,autoFocus:e.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),valueProps:{id:w},descriptionProps:E,errorMessageProps:F,isInvalid:D,validationErrors:A,validationDetails:L}}function C2(t=[]){let e=xe(),[n,r]=s.useState(!0),[i,o]=s.useState(t);return i.some((l,a)=>!Object.is(l,t[a]))&&(r(!0),o(t)),s.useEffect(()=>{n&&!document.getElementById(e)&&r(!1)},[e,n,i]),n?e:void 0}function E2(t){let{defaultFilter:e,menuTrigger:n="input",allowsEmptyCollection:r=!1,allowsCustomValue:i,shouldCloseOnBlur:o=!0,selectionMode:l="single"}=t,[a,u]=s.useState(!1),[d,c]=s.useState(!1),[f,p]=s.useState(null),h=s.useMemo(()=>t.defaultValue!==void 0?t.defaultValue:l==="single"?t.defaultSelectedKey??null:[],[t.defaultValue,t.defaultSelectedKey,l]),m=s.useMemo(()=>t.value!==void 0?t.value:l==="single"?t.selectedKey:void 0,[t.value,t.selectedKey,l]),[b,y]=it(m,h,t.onChange),$=l==="single"&&Array.isArray(b)?b[0]:b,x=ie=>{if(l==="single"){let ve=Array.isArray(ie)?ie[0]??null:ie;y(ve),ve!==$&&t.onSelectionChange?.(ve)}else{let ve=[];Array.isArray(ie)?ve=ie:ie!=null&&(ve=[ie]),y(ve)}},{collection:v,selectionManager:C,disabledKeys:k}=Zr({...t,items:t.items??t.defaultItems,selectionMode:l,disallowEmptySelection:l==="single",allowDuplicateSelectionEvents:!0,selectedKeys:s.useMemo(()=>S2($),[$]),onSelectionChange:ie=>{if(ie!=="all")if(l==="single"){let ve=ie.values().next().value??null;ve===$?(t.onSelectionChange?.(ve),O(),V()):x(ve)}else x([...ie])}}),P=l==="single"?C.firstSelectedKey:null,N=s.useMemo(()=>[...C.selectedKeys].map(ie=>v.getItem(ie)).filter(ie=>ie!=null),[C.selectedKeys,v]),[w,D]=it(t.inputValue,Uf(t.defaultInputValue,P,v)||"",t.onInputChange),[A]=s.useState($),[L]=s.useState(w),_=v,R=s.useMemo(()=>t.items!=null||!e?v:w2(v,w,e),[v,w,e,t.items]),[E,F]=s.useState(R),Z=s.useRef("focus"),Y=qn({...t,onOpenChange:ie=>{t.onOpenChange&&t.onOpenChange(ie,ie?Z.current:void 0),C.setFocused(ie),ie||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),S=(ie=null,ve)=>{let gr=ve==="manual"||ve==="focus"&&n==="focus";(r||R.size>0||gr&&_.size>0||t.items)&&(gr&&!Y.isOpen&&t.items===void 0&&u(!0),Z.current=ve,p(ie),Y.open())},I=(ie=null,ve)=>{let gr=ve==="manual"||ve==="focus"&&n==="focus";!(r||R.size>0||gr&&_.size>0||t.items)&&!Y.isOpen||(gr&&!Y.isOpen&&t.items===void 0&&u(!0),Y.isOpen||(Z.current=ve),oe(ie))},U=s.useCallback(()=>{F(a?_:R)},[a,_,R]),oe=s.useCallback((ie=null)=>{Y.isOpen&&U(),p(ie),Y.toggle()},[Y,U]),V=s.useCallback(()=>{Y.isOpen&&(U(),Y.close())},[Y,U]),[ne,T]=s.useState(w),O=()=>{let ie=P!=null?v.getItem(P)?.textValue??"":"";T(ie),D(ie)},J=s.useRef($),ce=s.useRef(P!=null?v.getItem(P)?.textValue??"":"");s.useEffect(()=>{d&&(R.size>0||r)&&!Y.isOpen&&w!==ne&&n!=="manual"&&S(null,"input"),!a&&!r&&Y.isOpen&&R.size===0&&V(),$!=null&&$!==J.current&&l==="single"&&V(),w!==ne&&(C.setFocusedKey(null),u(!1),l==="single"&&w===""&&(t.inputValue===void 0||m===void 0)&&x(null)),$!==J.current&&(t.inputValue===void 0||m===void 0)?O():ne!==w&&T(w);let ie=P!=null?v.getItem(P)?.textValue??"":"";!d&&P!=null&&t.inputValue===void 0&&P===J.current&&ce.current!==ie&&(T(ie),D(ie)),J.current=$,ce.current=ie});let he=bo({...t,value:s.useMemo(()=>Array.isArray($)&&$.length===0?null:{inputValue:w,value:$,selectedKey:P},[w,P,$])}),et=()=>{i&&P==null?B():K()},B=()=>{if(l==="multiple"){T(w),V();return}let ie=null;J.current=ie,x(ie),V()},K=(ie=!1)=>{if(m!==void 0&&t.inputValue!==void 0){let ve=P!=null?v.getItem(P)?.textValue??"":"";(ie||l==="multiple"||w!==ve)&&(t.onSelectionChange?.(P),t.onChange?.($)),T(ve),V()}else O(),V()};const ue=()=>{if(i){const ie=P!=null?v.getItem(P)?.textValue??"":"";w===ie?K():B()}else K()};let fe=()=>{Y.isOpen&&C.focusedKey!=null?C.isSelected(C.focusedKey)&&l==="single"?K(!0):C.select(C.focusedKey):ue()},ut=s.useRef([w,$]),ye=ie=>{ie?(ut.current=[w,$],n==="focus"&&!t.isReadOnly&&S(null,"focus")):(o&&ue(),(w!==ut.current[0]||$!==ut.current[1])&&he.commitValidation()),c(ie)},Bt=s.useMemo(()=>Y.isOpen?a?_:R:E,[Y.isOpen,_,R,a,E]),Sg=t.defaultSelectedKey??(l==="single"?A:null);return{...he,...Y,focusStrategy:f,toggle:I,open:S,close:ue,selectionManager:C,value:$,defaultValue:h??A,setValue:x,selectedKey:P,selectedItems:N,defaultSelectedKey:Sg,setSelectedKey:x,disabledKeys:k,isFocused:d,setFocused:ye,selectedItem:N[0]??null,collection:Bt,inputValue:w,defaultInputValue:Uf(t.defaultInputValue,Sg,v)??L,setInputValue:D,commit:fe,revert:et}}function w2(t,e,n){return new zo(Wf(t,t,e,n))}function Wf(t,e,n,r){let i=[];for(let o of e)if(o.type==="section"&&o.hasChildNodes){let l=Wf(t,Ee(o,t),n,r);[...l].some(a=>a.type==="item")&&i.push({...o,childNodes:l})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}function Uf(t,e,n){return t==null&&e!=null?n.getItem(e)?.textValue??"":t}function S2(t){if(t!==void 0)return t===null?[]:Array.isArray(t)?t:[t]}function P2(t){let e=sn({usage:"search",...t}),n=s.useCallback((o,l)=>l.length===0?!0:(o=o.normalize("NFC"),l=l.normalize("NFC"),e.compare(o.slice(0,l.length),l)===0),[e]),r=s.useCallback((o,l)=>l.length===0?!0:(o=o.normalize("NFC"),l=l.normalize("NFC"),e.compare(o.slice(-l.length),l)===0),[e]),i=s.useCallback((o,l)=>{if(l.length===0)return!0;o=o.normalize("NFC"),l=l.normalize("NFC");let a=0,u=l.length;for(;a+u<=o.length;a++){let d=o.slice(a,a+u);if(e.compare(l,d)===0)return!0}return!1},[e]);return s.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function k2(t={}){let{locale:e}=Ne();return s.useMemo(()=>new Intl.ListFormat(e,t),[e,t])}const D2=s.createContext(null),el=s.createContext(null),N2=Nn(function(e,n){[e,n]=ge(e,n,D2);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1,isReadOnly:a=!1}=e,u=s.useMemo(()=>s.createElement(Wn.Provider,{value:{items:e.items??e.defaultItems}},typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,defaultChildren:null,isReadOnly:a}):r),[r,i,o,l,a,e.items,e.defaultItems]);return s.createElement(Lt,{content:u},d=>s.createElement(A2,{props:e,collection:d,comboBoxRef:n}))}),T2=[Fn,Ht,Eo,Nr,xo,Pt];function A2({props:t,collection:e,comboBoxRef:n}){let{name:r,formValue:i="key",allowsCustomValue:o}=t;o&&(i="text");let{validationBehavior:l}=Ct(cu)||{},a=t.validationBehavior??l??"native",{contains:u}=P2({sensitivity:"base"}),d=E2({...t,defaultFilter:t.defaultFilter||u,items:t.items,children:void 0,collection:e,validationBehavior:a}),c=s.useRef(null),f=s.useRef(null),p=s.useRef(null),h=s.useRef(null),m=s.useRef(null),[b,y]=vn(!t["aria-label"]&&!t["aria-labelledby"]),[$,x]=s.useState("label"),{buttonProps:v,inputProps:C,listBoxProps:k,labelProps:P,descriptionProps:N,errorMessageProps:w,valueProps:D,...A}=x2({...xa(t),label:y,inputRef:f,buttonRef:c,listBoxRef:h,popoverRef:m,name:i==="text"?r:void 0,validationBehavior:a,labelElementType:$},d),[L,_]=s.useState(null),R=s.useCallback(()=>{if(f.current&&!p.current){let S=c.current?.getBoundingClientRect(),I=f.current.getBoundingClientRect(),U=S?Math.min(S.left,I.left):I.left,oe=S?Math.max(S.right,I.right):I.right;_(oe-U+"px")}},[c,f,_]);Yn({ref:f,onResize:R});let E=s.useMemo(()=>({get current(){return p.current||f.current}}),[p,f]),F=s.useMemo(()=>({isOpen:d.isOpen,isDisabled:t.isDisabled||!1,isInvalid:A.isInvalid||!1,isRequired:t.isRequired||!1,isReadOnly:t.isReadOnly||!1}),[d.isOpen,t.isDisabled,A.isInvalid,t.isRequired,t.isReadOnly]),Z=se({...t,values:F,defaultClassName:"react-aria-ComboBox"}),M=re(t,{global:!0});delete M.id;let Y=[];if(r&&i==="key"){let S=Array.isArray(d.value)?d.value:[d.value];S.length===0&&(S=[null]),Y=S.map((I,U)=>s.createElement("input",{key:U,type:"hidden",name:r,form:t.form,value:I??""}))}return s.createElement(Te,{values:[[el,d],[Fn,{...P,elementType:$,ref:b}],[Ht,{...v,ref:c,isPressed:d.isOpen}],[Eo,{...C,ref:f}],[Nr,{...C,ref:s.useCallback(S=>{f.current=S,S&&x(S.tagName.toLowerCase()==="input"?"label":"span")},[]),value:d.inputValue,onChange:S=>d.setInputValue(S)}],[Tt,d],[ii,{ref:m,triggerRef:E,scrollRef:h,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":L},clearContexts:T2}],[Wn,{...k,ref:h}],[Wt,d],[Pt,{slots:{description:N,errorMessage:w}}],[xo,{ref:p,isInvalid:A.isInvalid,isDisabled:t.isDisabled||!1}],[au,A],[I2,D]]},s.createElement(ee.div,{...M,...Z,ref:n,slot:t.slot||void 0,"data-focused":d.isFocused||void 0,"data-open":d.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-invalid":A.isInvalid||void 0,"data-required":t.isRequired||void 0},Z.children,Y))}const I2=s.createContext(null);var Gf={};Gf={deselectedItem:t=>`${t.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${e.number(t.count)} عنصر محدد`,other:()=>`${e.number(t.count)} عنصر محدد`})}.`,selectedItem:t=>`${t.item} المحدد`};var Yf={};Yf={deselectedItem:t=>`${t.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Няма избрани елементи",one:()=>`${e.number(t.count)} избран елемент`,other:()=>`${e.number(t.count)} избрани елементи`})}.`,selectedItem:t=>`${t.item} избран.`};var Xf={};Xf={deselectedItem:t=>`Položka ${t.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${e.number(t.count)} položka`,other:()=>`Vybráno ${e.number(t.count)} položek`})}.`,selectedItem:t=>`Vybrána položka ${t.item}.`};var qf={};qf={deselectedItem:t=>`${t.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer valgt",one:()=>`${e.number(t.count)} element valgt`,other:()=>`${e.number(t.count)} elementer valgt`})}.`,selectedItem:t=>`${t.item} valgt.`};var Zf={};Zf={deselectedItem:t=>`${t.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${e.number(t.count)} Element ausgewählt`,other:()=>`${e.number(t.count)} Elemente ausgewählt`})}.`,selectedItem:t=>`${t.item} ausgewählt.`};var Jf={};Jf={deselectedItem:t=>`Δεν επιλέχθηκε το στοιχείο ${t.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${e.number(t.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${e.number(t.count)} στοιχεία`})}.`,selectedItem:t=>`Επιλέχθηκε το στοιχείο ${t.item}.`};var Qf={};Qf={deselectedItem:t=>`${t.item} not selected.`,select:"Select",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"No items selected",one:()=>`${e.number(t.count)} item selected`,other:()=>`${e.number(t.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:t=>`${t.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var e0={};e0={deselectedItem:t=>`${t.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ningún elemento seleccionado",one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}.`,selectedItem:t=>`${t.item} seleccionado.`};var t0={};t0={deselectedItem:t=>`${t.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Üksusi pole valitud",one:()=>`${e.number(t.count)} üksus valitud`,other:()=>`${e.number(t.count)} üksust valitud`})}.`,selectedItem:t=>`${t.item} valitud.`};var n0={};n0={deselectedItem:t=>`Kohdetta ${t.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${e.number(t.count)} kohde valittu`,other:()=>`${e.number(t.count)} kohdetta valittu`})}.`,selectedItem:t=>`${t.item} valittu.`};var r0={};r0={deselectedItem:t=>`${t.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Aucun élément sélectionné",one:()=>`${e.number(t.count)} élément sélectionné`,other:()=>`${e.number(t.count)} éléments sélectionnés`})}.`,selectedItem:t=>`${t.item} sélectionné.`};var i0={};i0={deselectedItem:t=>`${t.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${e.number(t.count)} נבחר`,other:()=>`${e.number(t.count)} פריטים נבחרו`})}.`,selectedItem:t=>`${t.item} נבחר.`};var o0={};o0={deselectedItem:t=>`Stavka ${t.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${e.number(t.count)} stavka`,other:()=>`Odabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`Stavka ${t.item} je odabrana.`};var l0={};l0={deselectedItem:t=>`${t.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${e.number(t.count)} elem kijelölve`,other:()=>`${e.number(t.count)} elem kijelölve`})}.`,selectedItem:t=>`${t.item} kijelölve.`};var a0={};a0={deselectedItem:t=>`${t.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nessun elemento selezionato",one:()=>`${e.number(t.count)} elemento selezionato`,other:()=>`${e.number(t.count)} elementi selezionati`})}.`,selectedItem:t=>`${t.item} selezionato.`};var s0={};s0={deselectedItem:t=>`${t.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"項目が選択されていません",one:()=>`${e.number(t.count)} 項目を選択しました`,other:()=>`${e.number(t.count)} 項目を選択しました`})}。`,selectedItem:t=>`${t.item} を選択しました。`};var u0={};u0={deselectedItem:t=>`${t.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"선택된 항목이 없습니다",one:()=>`${e.number(t.count)}개 항목이 선택되었습니다`,other:()=>`${e.number(t.count)}개 항목이 선택되었습니다`})}.`,selectedItem:t=>`${t.item}이(가) 선택되었습니다.`};var d0={};d0={deselectedItem:t=>`${t.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${e.number(t.count)} elementas`,other:()=>`Pasirinkta elementų: ${e.number(t.count)}`})}.`,selectedItem:t=>`Pasirinkta: ${t.item}.`};var c0={};c0={deselectedItem:t=>`Vienums ${t.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`,other:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`})}.`,selectedItem:t=>`Atlasīts vienums ${t.item}.`};var f0={};f0={deselectedItem:t=>`${t.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer er valgt",one:()=>`${e.number(t.count)} element er valgt`,other:()=>`${e.number(t.count)} elementer er valgt`})}.`,selectedItem:t=>`${t.item} er valgt.`};var p0={};p0={deselectedItem:t=>`${t.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Geen items geselecteerd",one:()=>`${e.number(t.count)} item geselecteerd`,other:()=>`${e.number(t.count)} items geselecteerd`})}.`,selectedItem:t=>`${t.item} geselecteerd.`};var h0={};h0={deselectedItem:t=>`Nie zaznaczono ${t.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${e.number(t.count)} zaznaczony element`,other:()=>`${e.number(t.count)} zaznaczonych elementów`})}.`,selectedItem:t=>`Zaznaczono ${t.item}.`};var m0={};m0={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var g0={};g0={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var b0={};b0={deselectedItem:t=>`${t.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Niciun element selectat",one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}.`,selectedItem:t=>`${t.item} selectat.`};var y0={};y0={deselectedItem:t=>`${t.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Нет выбранных элементов",one:()=>`${e.number(t.count)} элемент выбран`,other:()=>`${e.number(t.count)} элементов выбрано`})}.`,selectedItem:t=>`${t.item} выбрано.`};var $0={};$0={deselectedItem:t=>`Nevybraté položky: ${t.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Žiadne vybraté položky",one:()=>`${e.number(t.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${e.number(t.count)}`})}.`,selectedItem:t=>`Vybraté položky: ${t.item}.`};var v0={};v0={deselectedItem:t=>`Element ${t.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Noben element ni izbran",one:()=>`${e.number(t.count)} element je izbran`,other:()=>`${e.number(t.count)} elementov je izbranih`})}.`,selectedItem:t=>`Element ${t.item} je izbran.`};var x0={};x0={deselectedItem:t=>`${t.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${e.number(t.count)} stavka`,other:()=>`Izabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`${t.item} je izabrano.`};var C0={};C0={deselectedItem:t=>`${t.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Inga markerade objekt",one:()=>`${e.number(t.count)} markerat objekt`,other:()=>`${e.number(t.count)} markerade objekt`})}.`,selectedItem:t=>`${t.item} markerat.`};var E0={};E0={deselectedItem:t=>`${t.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${e.number(t.count)} öge seçildi`,other:()=>`${e.number(t.count)} öge seçildi`})}.`,selectedItem:t=>`${t.item} seçildi.`};var w0={};w0={deselectedItem:t=>`${t.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Жодних елементів не вибрано",one:()=>`${e.number(t.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${e.number(t.count)}`})}.`,selectedItem:t=>`${t.item} вибрано.`};var S0={};S0={deselectedItem:t=>`未选择 ${t.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未选择项目",one:()=>`已选择 ${e.number(t.count)} 个项目`,other:()=>`已选择 ${e.number(t.count)} 个项目`})}。`,selectedItem:t=>`已选择 ${t.item}。`};var P0={};P0={deselectedItem:t=>`未選取「${t.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未選取任何項目",one:()=>`已選取 ${e.number(t.count)} 個項目`,other:()=>`已選取 ${e.number(t.count)} 個項目`})}。`,selectedItem:t=>`已選取「${t.item}」。`};var ai={};ai={"ar-AE":Gf,"bg-BG":Yf,"cs-CZ":Xf,"da-DK":qf,"de-DE":Zf,"el-GR":Jf,"en-US":Qf,"es-ES":e0,"et-EE":t0,"fi-FI":n0,"fr-FR":r0,"he-IL":i0,"hr-HR":o0,"hu-HU":l0,"it-IT":a0,"ja-JP":s0,"ko-KR":u0,"lt-LT":d0,"lv-LV":c0,"nb-NO":f0,"nl-NL":p0,"pl-PL":h0,"pt-BR":m0,"pt-PT":g0,"ro-RO":b0,"ru-RU":y0,"sk-SK":$0,"sl-SI":v0,"sr-SP":x0,"sv-SE":C0,"tr-TR":E0,"uk-UA":w0,"zh-CN":S0,"zh-TW":P0};function B2(t){return t&&t.__esModule?t.default:t}function F2(t,e){let{getRowText:n=a=>e.collection.getTextValue?.(a)??e.collection.getItem(a)?.textValue}=t,r=Me(B2(ai),"@react-aria/grid"),i=e.selectionManager.rawSelection,o=s.useRef(i),l=s.useCallback(()=>{if(!e.selectionManager.isFocused||i===o.current){o.current=i;return}let a=k0(i,o.current),u=k0(o.current,i),d=e.selectionManager.selectionBehavior==="replace",c=[];if(e.selectionManager.selectedKeys.size===1&&d){let f=e.selectionManager.selectedKeys.keys().next().value;if(f!=null&&e.collection.getItem(f)){let p=n(f);p&&c.push(r.format("selectedItem",{item:p}))}}else if(a.size===1&&u.size===0){let f=a.keys().next().value;if(f!=null){let p=n(f);p&&c.push(r.format("selectedItem",{item:p}))}}else if(u.size===1&&a.size===0){let f=u.keys().next().value;if(f!=null&&e.collection.getItem(f)){let p=n(f);p&&c.push(r.format("deselectedItem",{item:p}))}}e.selectionManager.selectionMode==="multiple"&&(c.length===0||i==="all"||i.size>1||o.current==="all"||o.current?.size>1)&&c.push(i==="all"?r.format("selectedAll"):r.format("selectedCount",{count:i.size})),c.length>0&&Vt(c.join(" ")),o.current=i},[i,e.selectionManager.selectedKeys,e.selectionManager.isFocused,e.selectionManager.selectionBehavior,e.selectionManager.selectionMode,e.collection,n,r]);po(()=>{if(e.selectionManager.isFocused)l();else{let a=requestAnimationFrame(l);return()=>cancelAnimationFrame(a)}},[i,e.selectionManager.isFocused])}function k0(t,e){let n=new Set;if(t==="all"||e==="all")return n;for(let r of t.keys())e.has(r)||n.add(r);return n}function M2(t,e){let n=e?.isDisabled,[r,i]=s.useState(!1);return de(()=>{if(t?.current&&!n){let o=()=>{if(t.current){let a=ze(t.current,{tabbable:!0});i(!!a.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function K2(t){return t&&t.__esModule?t.default:t}function L2(t){let e=Me(K2(ai),"@react-aria/grid"),n=La(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,i=s.useMemo(()=>{let l=t.selectionManager.selectionMode,a=t.selectionManager.selectionBehavior,u;return r&&(u=e.format("longPressToSelect")),a==="replace"&&l!=="none"&&t.hasItemActions?u:void 0},[t.selectionManager.selectionMode,t.selectionManager.selectionBehavior,t.hasItemActions,e,r]);return Ln(i)}function O2(t){return t&&t.__esModule?t.default:t}function z2(t,e){let{key:n}=t,r=e.selectionManager,i=xe(),o=!e.selectionManager.canSelectItem(n),l=e.selectionManager.isSelected(n),a=()=>r.toggleSelection(n);const u=Me(O2(ai),"@react-aria/grid");return{checkboxProps:{id:i,"aria-label":u.format("select"),isSelected:l,isDisabled:o,onChange:a}}}function _2(t,e,n){let{overlayProps:r,underlayProps:i}=Id({...t,isOpen:e.isOpen,onClose:e.close},n);return Bd({isDisabled:!e.isOpen}),yc(),s.useEffect(()=>{if(e.isOpen&&n.current)return Ho([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:G(r),underlayProps:i}}let Le=typeof document<"u"&&window.visualViewport;function V2(){let t=xt(),[e,n]=s.useState(()=>t?{width:0,height:0}:tl());return s.useEffect(()=>{let r=a=>{n(u=>a.width===u.width&&a.height===u.height?u:a)},i=()=>{Le&&Le.scale>1||r(tl())},o,l=a=>{Le&&Le.scale>1||Sn(z(a))&&(o=requestAnimationFrame(()=>{let u=pe();(!u||!Sn(u))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(tl()),ft()&&rt()&&window.addEventListener("blur",l,!0),Le?Le.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(o),ft()&&rt()&&window.removeEventListener("blur",l,!0),Le?Le.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),e}function tl(){return{width:Le?Math.min(Le.width*Le.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:Le?Le.height*Le.scale:document.documentElement.clientHeight}}const H2=s.createContext(null),nl=s.createContext(null),j2=s.forwardRef(function(e,n){if(s.useContext(nl)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const b=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),y=Object.keys(e).filter($=>b.has($));console.warn(`This modal is already wrapped in a ModalOverlay, props [${y.join(", ")}] should be placed on the ModalOverlay instead.`)}return s.createElement(N0,{...e,modalRef:n},e.children)}let{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:a,onOpenChange:u,children:d,isEntering:c,isExiting:f,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:h,...m}=e;return s.createElement(D0,{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:a,onOpenChange:u,isEntering:c,isExiting:f,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:h},s.createElement(N0,{...m,modalRef:n},d))});function R2(t,e){[t,e]=ge(t,e,H2);let n=s.useContext(Tt),r=qn(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let o=ke(e),l=s.useRef(null),a=qo(o,i.isOpen),u=qo(l,i.isOpen),d=a||u||t.isExiting||!1,c=xt();return!i.isOpen&&!d||c?null:s.createElement(W2,{...t,state:i,isExiting:d,overlayRef:o,modalRef:l})}const D0=s.forwardRef(R2);function W2({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:r}=e,{modalProps:i,underlayProps:o}=_2(e,r,n),l=Xo(e.overlayRef)||e.isEntering||!1,a=se({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:e.isExiting,state:r}}),u=V2(),d,c;if(typeof document<"u"){let p=kt(document.body)?document.body:document.scrollingElement||document.documentElement,h=p.getBoundingClientRect().width%1,m=p.getBoundingClientRect().height%1;d=p.scrollWidth-h,c=p.scrollHeight-m}let f={...a.style,"--visual-viewport-width":u.width+"px","--visual-viewport-height":u.height+"px","--page-width":d!==void 0?d+"px":void 0,"--page-height":c!==void 0?c+"px":void 0};return s.createElement(Yo,{isExiting:e.isExiting,portalContainer:t},s.createElement(ee.div,{...G(re(e,{global:!0}),o),...a,style:f,ref:e.overlayRef,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},s.createElement(Te,{values:[[nl,{modalProps:i,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[Tt,r]]},a.children)))}function N0(t){let{modalProps:e,modalRef:n,isExiting:r,isDismissable:i}=s.useContext(nl),o=s.useContext(Tt),l=s.useMemo(()=>$n(t.modalRef,n),[t.modalRef,n]),a=ke(l),u=Xo(a),d=se({...t,defaultClassName:"react-aria-Modal",values:{isEntering:u,isExiting:r,state:o}});return s.createElement(ee.div,{...G(re(t,{global:!0}),e),...d,ref:a,"data-entering":u||void 0,"data-exiting":r||void 0},i&&s.createElement(Go,{onDismiss:o.close}),d.children)}const rl=new WeakMap;function U2(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,form:a,validationBehavior:u="aria"}=t,d=sn({usage:"search",sensitivity:"base"}),c=s.useMemo(()=>r||new Vn(e.collection,e.disabledKeys,n,d),[r,e.collection,e.disabledKeys,d,n]),{menuTriggerProps:f,menuProps:p}=Zo({isDisabled:i,type:"listbox"},e,n),{keyboardProps:h}=Ge({shortcuts:{ArrowLeft:()=>{if(e.selectionManager.selectionMode==="multiple")return!1;let D=e.selectedKey!=null?c.getKeyAbove?.(e.selectedKey):c.getFirstKey?.();D!=null&&e.setSelectedKey(D)},ArrowRight:()=>{if(e.selectionManager.selectionMode==="multiple")return!1;let D=e.selectedKey!=null?c.getKeyBelow?.(e.selectedKey):c.getFirstKey?.();D!=null&&e.setSelectedKey(D)}},allowRepeats:!0,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp}),{typeSelectProps:m}=ud({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(D){e.setSelectedKey(D)}}),{isInvalid:b,validationErrors:y,validationDetails:$}=e.displayValidation,{labelProps:x,fieldProps:v,descriptionProps:C,errorMessageProps:k}=fu({...t,labelElementType:"span",isInvalid:b,errorMessage:t.errorMessage||y});e.selectionManager.selectionMode==="multiple"&&(m={});let P=re(t,{labelable:!0}),N=G(m,f,v),w=xe();return rl.set(e,{isDisabled:i,isRequired:o,name:l,form:a,validationBehavior:u}),{labelProps:{...x,onClick:()=>{t.isDisabled||(n.current?.focus(),en("keyboard"))}},triggerProps:G(P,{...N,isDisabled:i,onKeyDown:We(N.onKeyDown,h.onKeyDown),onKeyUp:h.onKeyUp,"aria-labelledby":[w,N["aria-labelledby"],N["aria-label"]&&!N["aria-labelledby"]?N.id:null].filter(Boolean).join(" "),onFocus(D){e.isFocused||(t.onFocus&&t.onFocus(D),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(D){e.isOpen||(t.onBlur&&t.onBlur(D),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:w},menuProps:{...p,onAction:void 0,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:D=>{te(D.currentTarget,D.relatedTarget)||(t.onBlur&&t.onBlur(D),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[v["aria-labelledby"],N["aria-label"]&&!v["aria-labelledby"]?N.id:null].filter(Boolean).join(" ")},descriptionProps:C,errorMessageProps:k,isInvalid:b,validationErrors:y,validationDetails:$,hiddenSelectProps:{isDisabled:i,name:l,label:t.label,state:e,triggerRef:n,form:a}}}function G2(t,e,n){let r=rl.get(e)||{},{autoComplete:i,name:o=r.name,form:l=r.form,isDisabled:a=r.isDisabled}=t,{validationBehavior:u,isRequired:d}=r,{visuallyHiddenProps:c}=an({style:{position:"fixed",top:0,left:0}});vo(t.selectRef,e.defaultValue,e.setValue),pu({validationBehavior:u,focus:()=>n.current?.focus()},e,t.selectRef);let f=e.setValue,p=s.useCallback(h=>{let m=z(h);m.multiple?f(Array.from(m.selectedOptions,b=>b.value)):f(h.currentTarget.value)},[f]);return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:a,multiple:e.selectionManager.selectionMode==="multiple",required:u==="native"&&d,name:o,form:l,value:e.value??"",onChange:p,onInput:p}}}function Y2(t){let{state:e,triggerRef:n,label:r,name:i,form:o,isDisabled:l}=t,a=s.useRef(null),u=s.useRef(null),{containerProps:d,selectProps:c}=G2({...t,selectRef:e.collection.size<=300?a:u},e,n),f=Array.isArray(e.value)?e.value:[e.value];if(e.collection.size<=300)return s.createElement("div",{...d,"data-testid":"hidden-select-container"},s.createElement("label",null,r,s.createElement("select",{...c,ref:a},s.createElement("option",{value:"",label:" "}," "),[...e.collection.getKeys()].map(p=>{let h=e.collection.getItem(p);if(h&&h.type==="item")return s.createElement("option",{key:h.key,value:h.key},h.textValue)}),e.collection.size===0&&i&&f.map((p,h)=>s.createElement("option",{key:h,value:p??""})))));if(i){let p=rl.get(e)||{},{validationBehavior:h}=p;f.length===0&&(f=[null]);let m=f.map((b,y)=>{let $={type:"hidden",autoComplete:c.autoComplete,name:i,form:o,disabled:l,value:b??""};return h==="native"?s.createElement("input",{key:y,...$,ref:y===0?u:null,style:{display:"none"},type:"text",required:y===0?c.required:!1,onChange:()=>{}}):s.createElement("input",{key:y,...$,ref:y===0?u:null})});return s.createElement(s.Fragment,null,m)}return null}function X2(t){let{selectionMode:e="single",shouldCloseOnSelect:n=e==="single"}=t,r=qn(t),[i,o]=s.useState(null),l=s.useMemo(()=>t.defaultValue!==void 0?t.defaultValue:e==="single"?t.defaultSelectedKey??null:[],[t.defaultValue,t.defaultSelectedKey,e]),a=s.useMemo(()=>t.value!==void 0?t.value:e==="single"?t.selectedKey:void 0,[t.value,t.selectedKey,e]),[u,d]=it(a,l,t.onChange),c=e==="single"&&Array.isArray(u)?u[0]:u,f=v=>{if(e==="single"){let C=Array.isArray(v)?v[0]??null:v;d(C),C!==c&&t.onSelectionChange?.(C)}else{let C=[];Array.isArray(v)?C=v:v!=null&&(C=[v]),d(C)}},p=Zr({...t,selectionMode:e,disallowEmptySelection:e==="single",allowDuplicateSelectionEvents:!0,selectedKeys:s.useMemo(()=>q2(c),[c]),onSelectionChange:v=>{if(v!=="all"){if(e==="single"){let C=v.values().next().value??null;f(C)}else f([...v]);n&&r.close(),b.commitValidation()}}}),h=p.selectionManager.firstSelectedKey,m=s.useMemo(()=>[...p.selectionManager.selectedKeys].map(v=>p.collection.getItem(v)).filter(v=>v!=null),[p.selectionManager.selectedKeys,p.collection]),b=bo({...t,value:Array.isArray(c)&&c.length===0?null:c}),[y,$]=s.useState(!1),[x]=s.useState(c);return{...b,...p,...r,value:c,defaultValue:l??x,setValue:f,selectedKey:h,setSelectedKey:f,selectedItem:m[0]??null,selectedItems:m,defaultSelectedKey:t.defaultSelectedKey??(t.selectionMode==="single"?x:null),focusStrategy:i,open(v=null){(p.collection.size!==0||t.allowsEmptyCollection)&&(o(v),r.open())},toggle(v=null){(p.collection.size!==0||t.allowsEmptyCollection)&&(o(v),r.toggle())},isFocused:y,setFocused:$}}function q2(t){if(t!==void 0)return t===null?[]:Array.isArray(t)?t:[t]}function Z2(t){return t&&t.__esModule?t.default:t}const il=s.createContext(null),T0=s.createContext(null),J2=Nn(function(e,n){[e,n]=ge(e,n,il);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=s.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,o,l]);return s.createElement(Lt,{content:a},u=>s.createElement(e1,{props:e,collection:u,selectRef:n}))}),Q2=[Fn,Ht,Pt];function e1({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=Ct(cu)||{},i=t.validationBehavior??r??"native",o=X2({...t,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:l,focusProps:a}=Ae({within:!0}),u=s.useRef(null),[d,c]=vn(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:f,triggerProps:p,valueProps:h,menuProps:m,descriptionProps:b,errorMessageProps:y,hiddenSelectProps:$,...x}=U2({...xa(t),label:c,validationBehavior:i},o,u),v=s.useMemo(()=>({isOpen:o.isOpen,isFocused:o.isFocused,isFocusVisible:l,isDisabled:t.isDisabled||!1,isInvalid:x.isInvalid||!1,isRequired:t.isRequired||!1}),[o.isOpen,o.isFocused,l,t.isDisabled,x.isInvalid,t.isRequired]),C=se({...t,values:v,defaultClassName:"react-aria-Select"}),k=re(t,{global:!0});delete k.id;let P=s.useRef(null);return s.createElement(Te,{values:[[il,t],[T0,o],[A0,h],[Fn,{...f,ref:d,elementType:"span"}],[Ht,{...p,ref:u,isPressed:o.isOpen,autoFocus:t.autoFocus}],[Tt,o],[ii,{trigger:"Select",triggerRef:u,scrollRef:P,placement:"bottom start","aria-labelledby":m["aria-labelledby"],clearContexts:Q2}],[Wn,{...m,ref:P}],[Wt,o],[Pt,{slots:{description:b,errorMessage:y}}],[au,x]]},s.createElement(ee.div,{...G(k,C,a),ref:e,slot:t.slot||void 0,"data-focused":o.isFocused||void 0,"data-focus-visible":l||void 0,"data-open":o.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":x.isInvalid||void 0,"data-required":t.isRequired||void 0},C.children,s.createElement(Y2,{...$,autoComplete:t.autoComplete})))}const A0=s.createContext(null),t1=Nn(function(e,n){[e,n]=ge(e,n,A0);let r=s.useContext(T0),{placeholder:i}=Ct(il),o=r.selectedItems.map(m=>{let b=m.props?.children;return typeof b=="function"&&(b=b({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})),b}),l=k2(),a=s.useMemo(()=>r.selectedItems.map(m=>m?.textValue),[r.selectedItems]),u=r.selectionManager.selectionMode,d=s.useMemo(()=>u==="single"?a[0]??"":l.format(a),[u,l,a]),c=s.useMemo(()=>{if(u==="single")return o[0];let m=l.formatToParts(a);if(m.length===0)return null;let b=0;return m.map(y=>y.type==="element"?s.createElement(s.Fragment,{key:b},o[b++]):y.value)},[u,l,a,o]),f=Me(Z2(wo),"react-aria-components"),p=se({...e,defaultChildren:c??i??f.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:r.selectedItems[0]?.value??null,selectedItems:s.useMemo(()=>r.selectedItems.map(m=>m.value??null),[r.selectedItems]),selectedText:d,isPlaceholder:r.selectedItems.length===0,state:r}}),h=re(e,{global:!0});return s.createElement(ee.span,{ref:n,...h,...p,"data-placeholder":r.selectedItems.length===0||void 0},s.createElement(Pt.Provider,{value:void 0},p.children))}),I0=10,B0=5;class n1{setup(e,n,r){this.delegate=e,this.state=n,this.direction=r}getDropTargetFromPoint(e,n,r){let i=this.delegate.getDropTargetFromPoint(e,n,r);return!i||i.type==="root"?i:this.resolveDropTarget(i,e,n,r)}resolveDropTarget(e,n,r,i){let o=this.pointerTracking,l=r-o.lastY,a=n-o.lastX,u=o.yDirection,d=o.xDirection;if(Math.abs(l)>B0&&(u=l>0?"down":"up",o.yDirection=u,o.lastY=r),Math.abs(a)>I0&&(d=a>0?"right":"left",o.xDirection=d,o.lastX=n),e.dropPosition==="before"){let p=this.state.collection.getKeyBefore(e.key);for(;p!=null;){let h=this.state.collection.getItem(p);if(h?.type==="item")break;p=h?.parentKey??null}if(p!=null){let h={type:"item",key:p,dropPosition:"after"};i(h)&&(e=h)}}let c=this.getPotentialTargets(e,i);if(c.length===0)return{type:"root"};let f;return c.length>1?f=this.selectTarget(c,e,n,r,u,d):(f=c[0],o.boundaryContext=null),f}getPotentialTargets(e,n){if(e.dropPosition==="on")return[e];let r=e,i=this.state.collection,o=i.getItem(r.key);for(;o&&o?.type!=="item"&&o.nextKey!=null;)r.key=o.nextKey,o=i.getItem(o.nextKey);let l=[r];if(o&&o.hasChildNodes&&this.state.expandedKeys.has(o.key)&&i.getChildren&&r.dropPosition==="after"){let d=o.firstChildKey!=null?i.getItem(o.firstChildKey):null;for(;d&&d.type!=="item";)d=d.nextKey!=null?i.getItem(d.nextKey):null;if(d?.type==="item"){const c={type:"item",key:d.key,dropPosition:"before"};return n(c)?[c]:[]}}if(o?.nextKey!=null)return[e];let a=o?.parentKey,u=[];for(;a!=null;){let d=i.getItem(a),c=d?.nextKey!=null?i.getItem(d.nextKey):null;if(!c||c.parentKey!==a){let p={type:"item",key:a,dropPosition:"after"};if(n(p)&&u.push(p),c)break}a=d?.parentKey}if(u.length>0&&l.push(...u),l.length===1){let d=i.getKeyAfter(r.key),c=d!=null?i.getItem(d):null;if(d!=null&&c&&o&&c.level!=null&&o.level!=null&&c.level>o.level){let f={type:"item",key:d,dropPosition:"before"};if(n(f))return[f]}}return l.filter(n)}selectTarget(e,n,r,i,o,l){if(e.length<2)return e[0];let a=this.pointerTracking,d=this.state.collection.getItem(n.key)?.parentKey;if(d==null)return e[0];if(!a.boundaryContext||a.boundaryContext.parentKey!==d){let m=a.yDirection==="up"?e.length-1:0;a.boundaryContext={parentKey:d,preferredTargetIndex:m,lastSwitchY:i,lastSwitchX:r}}let c=a.boundaryContext,f=Math.abs(r-c.lastSwitchX);if(Math.abs(i-c.lastSwitchY)>B0&&o){let m=c.preferredTargetIndex||0;o==="down"&&m===0?c.preferredTargetIndex=e.length-1:o==="up"&&m===e.length-1&&(c.preferredTargetIndex=0),a.xDirection=null}if(f>I0&&l){let m=c.preferredTargetIndex||0;l==="left"?this.direction==="ltr"?m<e.length-1&&(c.preferredTargetIndex=m+1,c.lastSwitchX=r):m>0&&(c.preferredTargetIndex=m-1,c.lastSwitchX=r):l==="right"&&(this.direction==="ltr"?m>0&&(c.preferredTargetIndex=m-1,c.lastSwitchX=r):m<e.length-1&&(c.preferredTargetIndex=m+1,c.lastSwitchX=r)),a.yDirection=null}let h=Math.max(0,Math.min(c.preferredTargetIndex||0,e.length-1));return e[h]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class r1{constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=e?.columnCount,this.rows=[];let n=o=>{let l=this.keyMap.get(o.key);e.visitNode&&(o=e.visitNode(o)),this.keyMap.set(o.key,o);let a=new Set,u=null,d=!1;if(o.type==="item"){for(let c of o.childNodes)if(c.props?.colSpan!==void 0){d=!0;break}}for(let c of o.childNodes)c.type==="cell"&&d&&(c.colspan=c.props?.colSpan,c.colSpan=c.props?.colSpan,c.colIndex=u?(u.colIndex??u.index)+(u.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=o.key),a.add(c.key),u?(u.nextKey=c.key,c.prevKey=u.key):c.prevKey=null,n(c),u=c;if(u&&(u.nextKey=null),l)for(let c of l.childNodes)a.has(c.key)||r(c)},r=o=>{this.keyMap.delete(o.key);for(let l of o.childNodes)this.keyMap.get(l.key)===l&&r(l)},i=null;for(let[o,l]of e.items.entries()){let a={...l,level:l.level??0,key:l.key??"row-"+o,type:l.type??"row",value:l.value??null,hasChildNodes:!0,childNodes:[...l.childNodes],rendered:l.rendered,textValue:l.textValue??"",index:l.index??o};i?(i.nextKey=a.key,a.prevKey=i.key):a.prevKey=null,this.rows.push(a),n(a),i=a}i&&(i.nextKey=null)}*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey??null:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey??null:null}getFirstKey(){return[...this.rows][0]?.key}getLastKey(){let e=[...this.rows];return e[e.length-1]?.key}getItem(e){return this.keyMap.get(e)??null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}}const F0="row-header-column-"+Math.random().toString(36).slice(2);let ol="row-header-column-"+Math.random().toString(36).slice(2);for(;F0===ol;)ol="row-header-column-"+Math.random().toString(36).slice(2);function M0(t,e){if(e.length===0)return[];let n=[],r=new Map;for(let u of e){let d=u.parentKey,c=[u];for(;d!=null;){let f=t.get(d);if(!f)break;if(r.has(f)){f.colSpan??=0,f.colSpan++,f.colspan=f.colSpan;let{column:p,index:h}=r.get(f);if(h>c.length)break;for(let m=h;m<c.length;m++)p.splice(m,0,null);for(let m=c.length;m<p.length;m++)p[m]&&r.has(p[m])&&(r.get(p[m]).index=m)}else f.colSpan=1,f.colspan=1,c.push(f),r.set(f,{column:c,index:c.length-1});d=f.parentKey}n.push(c),u.index=n.length-1}let i=Math.max(...n.map(u=>u.length)),o=Array(i).fill(0).map(()=>[]),l=0;for(let u of n){let d=i-1;for(let c of u){if(c){let f=o[d],p=f.reduce((h,m)=>h+(m.colSpan??1),0);if(p<l){let h={type:"placeholder",key:"placeholder-"+c.key,colspan:l-p,colSpan:l-p,index:p,value:null,rendered:null,level:d,hasChildNodes:!1,childNodes:[],textValue:""};f.length>0&&(f[f.length-1].nextKey=h.key,h.prevKey=f[f.length-1].key),f.push(h)}f.length>0&&(f[f.length-1].nextKey=c.key,c.prevKey=f[f.length-1].key),c.level=d,c.colIndex=l,f.push(c)}d--}l++}let a=0;for(let u of o){let d=u.reduce((c,f)=>c+(f.colSpan??1),0);if(d<e.length){let c={type:"placeholder",key:"placeholder-"+u[u.length-1].key,colSpan:e.length-d,colspan:e.length-d,index:d,value:null,rendered:null,level:a,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:u[u.length-1].key};u.push(c)}a++}return o.map((u,d)=>({type:"headerrow",key:"headerrow-"+d,index:d,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:u,textValue:""}))}class i1 extends r1{constructor(e,n,r){let i=new Set,o=null,l=[];if(r?.showSelectionCheckboxes){let f={type:"column",key:F0,value:null,textValue:"",level:0,index:r?.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};l.unshift(f)}if(r?.showDragButtons){let f={type:"column",key:ol,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};l.unshift(f)}let a=[],u=new Map,d=f=>{switch(f.type){case"body":o=f;break;case"column":u.set(f.key,f),f.hasChildNodes||(l.push(f),f.props.isRowHeader&&i.add(f.key));break;case"item":a.push(f);return}for(let p of f.childNodes)d(p)};for(let f of e)d(f);let c=M0(u,l);if(c.forEach((f,p)=>a.splice(p,0,f)),super({columnCount:l.length,items:a,visitNode:f=>(f.column=l[f.index],f)}),this._size=0,this.columns=l,this.rowHeaderColumnKeys=i,this.body=o,this.headerRows=c,this._size=[...o.childNodes].length,this.rowHeaderColumnKeys.size===0){let f=this.columns.find(p=>!p.props?.isDragButtonCell&&!p.props?.isSelectionCell);f&&this.rowHeaderColumnKeys.add(f.key)}}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey??null}getKeyAfter(e){return this.keyMap.get(e)?.nextKey??null}getFirstKey(){return gt(this.body.childNodes)?.key??null}getLastKey(){return un(this.body.childNodes)?.key??null}getItem(e){return e===this.body.key?this.body:this.keyMap.get(e)??null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){if(e===this.body.key)return this.body.childNodes;let n=this.getItem(e);return n?.type==="item"?[...n.childNodes].filter(r=>r.type==="cell"):super.getChildren(e)}getTextValue(e){let n=this.getItem(e);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys;if(r){let i=[];for(let o of n.childNodes){let l=this.columns[o.index];if(r.has(l.key)&&o.textValue&&i.push(o.textValue),i.length===r.size)break}return i.join(" ")}return""}}function o1(t){return t!=null&&(!isNaN(t)||String(t).match(/^(\d+)(?=%$)/)!==null)}function l1(t){if(!t||typeof t=="number")return 1;let e=t.match(/^(.+)(?=fr$)/);return e?parseFloat(e[0]):(process.env.NODE_ENV!=="production"&&console.warn(`width: ${t} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,"defaulting to '1fr'"),1)}function ll(t,e){if(typeof t=="string"){let n=t.match(/^(\d+)(?=%$)/);if(!n)throw new Error("Only percentages or numbers are supported for static column widths");return e*(parseFloat(n[0])/100)}return t}function K0(t,e){return t!=null?ll(t,e):Number.MAX_SAFE_INTEGER}function L0(t,e){return t!=null?ll(t,e):0}function a1(t,e,n,r,i){let o=t,l=Math.floor(t),a=t-l>0;t=l;let u=!1,d=e.map((f,p)=>{let h=n.get(f.key)!=null?n.get(f.key)??"1fr":f.width??f.defaultWidth??r?.(p)??"1fr",m=!1,b=0,y=0,$=0;o1(h)?(b=ll(h,t),m=!0):(y=l1(h),y<=0&&(m=!0));let x=L0(f.minWidth??i?.(p)??0,t),v=K0(f.maxWidth,t),C=Math.max(x,Math.min(b,v));return m?$=C:b>C&&(m=!0,$=C),m||(u=!0),{frozen:m,baseSize:b,hypotheticalMainSize:C,min:x,max:v,flex:y,targetMainSize:$,violation:0}});for(;u;){let f=0,p=0;d.forEach(b=>{b.frozen?f+=b.targetMainSize:(f+=b.baseSize,p+=b.flex)});let h=t-f;h>0&&d.forEach(b=>{if(!b.frozen){let y=b.flex/p;b.targetMainSize=b.baseSize+y*h}});let m=0;d.forEach(b=>{if(b.violation=0,!b.frozen){let{min:y,max:$,targetMainSize:x}=b;b.targetMainSize=Math.max(y,Math.min(x,$)),b.violation=b.targetMainSize-x,m+=b.violation}}),u=!1,d.forEach(b=>{m===0||Math.sign(m)===Math.sign(b.violation)?b.frozen=!0:b.frozen||(u=!0)})}let c=s1(d);if(a&&c.length>0){let f=o.toString().split(".")[1],p=c[c.length-1].toString();c[c.length-1]=+(p+"."+f)}return c}function s1(t){let e=0,n=0,r=[];return t.forEach(function(i){let o=i.targetMainSize,l=Math.round(o+e)-n;e+=o,n+=l,r.push(l)}),r}class u1{constructor(e){this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,this.getDefaultWidth=e?.getDefaultWidth??(()=>"1fr"),this.getDefaultMinWidth=e?.getDefaultMinWidth??(()=>75)}splitColumnsIntoControlledAndUncontrolled(e){return e.reduce((n,r)=>(r.props.width!=null?n[0].set(r.key,r):n[1].set(r.key,r),n),[new Map,new Map])}recombineColumns(e,n,r,i){return new Map(e.map(o=>r.has(o.key)?[o.key,n.get(o.key)]:[o.key,i.get(o.key).props.width]))}getInitialUncontrolledWidths(e){return new Map(Array.from(e).map(([n,r])=>[n,r.props.defaultWidth??this.getDefaultWidth?.(r)??"1fr"]))}getColumnWidth(e){return this.columnWidths.get(e)??0}getColumnMinWidth(e){return this.columnMinWidths.get(e)??0}getColumnMaxWidth(e){return this.columnMaxWidths.get(e)??0}resizeColumnWidth(e,n,r,i){let o=this.columnWidths,l=!0,a=new Map;return i=Math.max(this.getColumnMinWidth(r),Math.min(this.getColumnMaxWidth(r),Math.floor(i))),e.columns.forEach(u=>{u.key===r?(a.set(u.key,i),l=!1):l?a.set(u.key,o.get(u.key)??0):a.set(u.key,u.props.width??n.get(u.key))}),a}buildColumnWidths(e,n,r){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,a1(e,n.columns.map(o=>({...o.props,key:o.key})),r,o=>this.getDefaultWidth(n.columns[o]),o=>this.getDefaultMinWidth(n.columns[o])).forEach((o,l)=>{let a=n.columns[l].key,u=n.columns[l];this.columnWidths.set(a,o),this.columnMinWidths.set(a,L0(u.props.minWidth??this.getDefaultMinWidth(u),e)),this.columnMaxWidths.set(a,K0(u.props.maxWidth,e))}),this.columnWidths}}function d1(t,e){let{getDefaultWidth:n,getDefaultMinWidth:r,tableWidth:i=0}=t,[o,l]=s.useState(null),a=s.useMemo(()=>new u1({getDefaultWidth:n,getDefaultMinWidth:r}),[n,r]),[u,d]=s.useMemo(()=>a.splitColumnsIntoControlledAndUncontrolled(e.collection.columns),[e.collection.columns,a]),[c,f]=s.useState(()=>a.getInitialUncontrolledWidths(d)),[p,h]=s.useState(e.collection.columns);if(e.collection.columns!==p){if(e.collection.columns.length!==p.length||e.collection.columns.some((v,C)=>v.key!==p[C].key)){let v=a.getInitialUncontrolledWidths(d);f(v)}h(e.collection.columns)}let m=s.useMemo(()=>a.recombineColumns(e.collection.columns,c,d,u),[e.collection.columns,c,d,u,a]),b=s.useCallback(v=>{l(v)},[l]),y=s.useCallback((v,C)=>{let k=a.resizeColumnWidth(e.collection,c,v,C),P=new Map(Array.from(d).map(([N])=>[N,k.get(N)]));return P.set(v,C),f(P),k},[d,f,a,e.collection,c]),$=s.useCallback(()=>{l(null)},[l]),x=s.useMemo(()=>a.buildColumnWidths(i,e.collection,m),[i,e.collection,m,a]);return s.useMemo(()=>({resizingColumn:o,updateResizedColumns:y,startResize:b,endResize:$,getColumnWidth:v=>a.getColumnWidth(v),getColumnMinWidth:v=>a.getColumnMinWidth(v),getColumnMaxWidth:v=>a.getColumnMaxWidth(v),tableState:e,columnWidths:x}),[a,x,o,y,b,$,e])}function c1(t){let{collection:e,focusMode:n}=t,r=t.UNSAFE_selectionState||Rn(t),i=s.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=r.setFocusedKey;r.setFocusedKey=(u,d)=>{if(n==="cell"&&u!=null){let c=e.getItem(u);if(c?.type==="item"){let f=Ee(c,e);d==="last"?u=un(f)?.key??null:u=gt(f)?.key??null}}o(u,d)};let l=s.useMemo(()=>new dn(e,r),[e,r]);const a=s.useRef(null);return s.useEffect(()=>{if(r.focusedKey!=null&&a.current&&!e.getItem(r.focusedKey)){const u=a.current.getItem(r.focusedKey),d=u?.parentKey!=null&&(u.type==="cell"||u.type==="rowheader"||u.type==="column")?a.current.getItem(u.parentKey):u;if(!d){r.setFocusedKey(null);return}const c=a.current.rows,f=e.rows,p=c.length-f.length;let h=Math.min(p>1?Math.max(d.index-p+1,0):d.index,f.length-1),m=null;for(let b=Math.max(0,h);b<f.length;b++)if(!l.isDisabled(f[b].key)&&f[b].type!=="headerrow"){m=f[b];break}if(m===null){for(let b=h-1;b>=0;b--)if(!l.isDisabled(f[b].key)&&f[b].type!=="headerrow"){m=f[b];break}}if(m){const b=m.hasChildNodes?[...Ee(m,e)]:[],y=m.hasChildNodes&&d!==u&&u&&u.index<b.length?b[u.index].key:m.key;r.setFocusedKey(y)}else r.setFocusedKey(null)}a.current=e},[e,l,r,r.focusedKey]),{collection:e,disabledKeys:i,isKeyboardNavigationDisabled:!1,selectionManager:l}}const f1={ascending:"descending",descending:"ascending"};function p1(t){let[e,n]=s.useState(!1),{selectionMode:r="none",showSelectionCheckboxes:i,showDragButtons:o,treeColumn:l=null}=t,a=s.useMemo(()=>({showSelectionCheckboxes:i&&r!=="none",showDragButtons:o,selectionMode:r,columns:[]}),[t.children,i,r,o]),u=Vo(t,s.useCallback(h=>new i1(h,null,a),[a]),a),{disabledKeys:d,selectionManager:c}=c1({...t,collection:u,disabledBehavior:t.disabledBehavior||"selection"}),[f,p]=it(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,t.onExpandedChange);return{collection:u,disabledKeys:d,selectionManager:c,showSelectionCheckboxes:t.showSelectionCheckboxes||!1,sortDescriptor:t.sortDescriptor??null,isKeyboardNavigationDisabled:u.size===0||e,setKeyboardNavigationDisabled:n,sort(h,m){t.onSortChange?.({column:h,direction:m??(t.sortDescriptor?.column===h?f1[t.sortDescriptor.direction]:"ascending")})},expandedKeys:f,toggleKey(h){p(m=>{let b=new Set(m);return b.has(h)?b.delete(h):b.add(h),b})},treeColumn:l}}function h1(t,e){let n=s.useMemo(()=>e?t.collection.filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return{...t,collection:n,selectionManager:r}}class O0{constructor(e){if(this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||"all",this.direction=e.direction,this.collator=e.collator,!e.layout&&!e.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=e.layoutDelegate||(e.layout?new m1(e.layout):new Fo(e.ref)),this.focusMode=e.focusMode??"row"}isCell(e){return e.type==="cell"}isRow(e){return e.type==="row"||e.type==="item"}isDisabled(e){return this.disabledBehavior==="all"&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!=="selection"}findPreviousKey(e,n,r=!1){let i=e!=null?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;i!=null;){let o=this.collection.getItem(i);if(!o)return null;if((r||!this.isDisabled(o))&&(!n||n(o)))return i;i=this.collection.getKeyBefore(i)}return null}findNextKey(e,n,r=!1){let i=e!=null?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;i!=null;){let o=this.collection.getItem(i);if(!o)return null;if((r||!this.isDisabled(o))&&(!n||n(o)))return i;if(i=this.collection.getKeyAfter(i),i==null)return null}return null}getKeyForItemInRowByIndex(e,n=0){if(n<0)return null;let r=this.collection.getItem(e);if(!r)return null;let i=0;for(let o of Ee(r,this.collection)){if(o.colSpan&&o.colSpan+i>n||(o.colSpan&&(i=i+o.colSpan-1),i===n))return o.key??null;i++}return null}getKeyBelow(e,n){let r=e,i=this.collection.getItem(r);if(!i||(this.isCell(i)&&(r=i.parentKey??null),r==null))return null;if(r=this.findNextKey(r,o=>o.type==="item",n?.includeDisabled),r!=null){if(this.isCell(i)){let o=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(r,o)}if(this.focusMode==="row")return r}return null}getKeyAbove(e,n){let r=e,i=this.collection.getItem(r);if(!i||(this.isCell(i)&&(r=i.parentKey??null),r==null))return null;if(r=this.findPreviousKey(r,o=>o.type==="item",n?.includeDisabled),r!=null){if(this.isCell(i)){let o=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(r,o)}if(this.focusMode==="row")return r}return null}getKeyRightOf(e){let n=this.collection.getItem(e);if(!n)return null;if(this.isRow(n)){let r=Ee(n,this.collection);return(this.direction==="rtl"?un(r)?.key:gt(r)?.key)??null}if(this.isCell(n)&&n.parentKey!=null){let r=this.collection.getItem(n.parentKey);if(!r)return null;let i=Ee(r,this.collection),o=(this.direction==="rtl"?jn(i,n.index-1):jn(i,n.index+1))??null;return o?o.key??null:this.focusMode==="row"?n.parentKey??null:(this.direction==="rtl"?this.getFirstKey(e):this.getLastKey(e))??null}return null}getKeyLeftOf(e){let n=this.collection.getItem(e);if(!n)return null;if(this.isRow(n)){let r=Ee(n,this.collection);return(this.direction==="rtl"?gt(r)?.key:un(r)?.key)??null}if(this.isCell(n)&&n.parentKey!=null){let r=this.collection.getItem(n.parentKey);if(!r)return null;let i=Ee(r,this.collection),o=(this.direction==="rtl"?jn(i,n.index+1):jn(i,n.index-1))??null;return o?o.key??null:this.focusMode==="row"?n.parentKey??null:(this.direction==="rtl"?this.getLastKey(e):this.getFirstKey(e))??null}return null}getFirstKey(e,n){let r=e??null,i;if(r!=null){if(i=this.collection.getItem(r),!i)return null;if(this.isCell(i)&&!n&&i.parentKey!=null){let o=this.collection.getItem(i.parentKey);return o?gt(Ee(o,this.collection))?.key??null:null}}if(r=this.findNextKey(void 0,o=>o.type==="item"),r!=null&&(i&&this.isCell(i)&&n||this.focusMode==="cell")){let o=this.collection.getItem(r);if(!o)return null;r=gt(Ee(o,this.collection))?.key??null}return r}getLastKey(e,n){let r=e??null,i;if(r!=null){if(i=this.collection.getItem(r),!i)return null;if(this.isCell(i)&&!n&&i.parentKey!=null){let o=this.collection.getItem(i.parentKey);if(!o)return null;let l=Ee(o,this.collection);return un(l)?.key??null}}if(r=this.findPreviousKey(void 0,o=>o.type==="item"),r!=null&&(i&&this.isCell(i)&&n||this.focusMode==="cell")){let o=this.collection.getItem(r);if(!o)return null;let l=Ee(o,this.collection);r=un(l)?.key??null}return r}getKeyPageAbove(e){let n=e,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&n!=null&&(n=this.getKeyAbove(n)??null,n!=null);)r=this.layoutDelegate.getItemRect(n);return n}getKeyPageBelow(e){let n=e,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let i=this.layoutDelegate.getVisibleRect().height,o=Math.min(this.layoutDelegate.getContentSize().height,r.y+i);for(;r&&r.y+r.height<o;){let l=this.getKeyBelow(n);if(l==null)break;r=this.layoutDelegate.getItemRect(l),n=l}return n}getKeyForSearch(e,n){let r=n??null;if(!this.collator)return null;let i=this.collection;if(r=n??this.getFirstKey(),r==null)return null;let o=i.getItem(r);if(!o)return null;o.type==="cell"&&(r=o.parentKey??null);let l=!1;for(;r!=null;){let a=i.getItem(r);if(!a)return null;if(a.textValue){let u=a.textValue.slice(0,e.length);if(this.collator.compare(u,e)===0)return this.isRow(a)&&this.focusMode==="cell"?gt(Ee(a,this.collection))?.key??null:a.key}r=this.findNextKey(r,u=>u.type==="item"),r==null&&!l&&(r=this.getFirstKey(),l=!0)}return null}}class m1{constructor(e){this.layout=e}getContentSize(){return this.layout.getContentSize()}getItemRect(e){return this.layout.getLayoutInfo(e)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}}const al=new WeakMap;function g1(t,e,n){let{isVirtualized:r,disallowTypeAhead:i,keyboardDelegate:o,focusMode:l,scrollRef:a,getRowText:u,onRowAction:d,onCellAction:c,escapeKeyBehavior:f="clearSelection",shouldSelectOnPressUp:p,keyboardNavigationBehavior:h="arrow"}=t,{selectionManager:m}=e;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let b=sn({usage:"search",sensitivity:"base"}),{direction:y}=Ne(),$=e.selectionManager.disabledBehavior,x=s.useMemo(()=>o||new O0({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:$,ref:n,direction:y,collator:b,focusMode:l}),[o,e.collection,e.disabledKeys,$,n,y,b,l]),{collectionProps:v}=qr({ref:n,selectionManager:m,keyboardDelegate:x,isVirtualized:r,scrollRef:a,disallowTypeAhead:i,escapeKeyBehavior:f}),C=xe(t.id);al.set(e,{keyboardDelegate:x,actions:{onRowAction:d,onCellAction:c},shouldSelectOnPressUp:p,keyboardNavigationBehavior:h});let k=L2({selectionManager:m,hasItemActions:!!(d||c)}),P=re(t,{labelable:!0}),N=s.useCallback(L=>{if(m.isFocused){te(L.currentTarget,z(L))||m.setFocused(!1);return}te(L.currentTarget,z(L))&&m.setFocused(!0)},[m]),w=s.useMemo(()=>({onBlur:v.onBlur,onFocus:N}),[N,v.onBlur]),D=M2(n,{isDisabled:e.collection.size!==0}),A=G(P,{role:"grid",id:C,"aria-multiselectable":m.selectionMode==="multiple"?"true":void 0},e.isKeyboardNavigationDisabled?w:v,e.collection.size===0&&{tabIndex:D?-1:0}||void 0,k);return r&&(A["aria-rowcount"]=e.collection.size,A["aria-colcount"]=e.collection.columnCount),F2({getRowText:u},e),{gridProps:A}}const sl=new WeakMap;function ul(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function z0(t,e){let n=sl.get(t);if(!n)throw new Error("Unknown grid");return`${n}-${ul(e)}`}function _0(t,e,n){let r=sl.get(t);if(!r)throw new Error("Unknown grid");return`${r}-${ul(e)}-${ul(n)}`}function dl(t,e){return[...t.collection.rowHeaderColumnKeys].map(n=>_0(t,e,n)).join(" ")}var V0={};V0={ascending:"تصاعدي",ascendingSort:t=>`ترتيب حسب العمود ${t.columnName} بترتيب تصاعدي`,collapse:"طي",columnSize:t=>`${t.value} بالبكسل`,descending:"تنازلي",descendingSort:t=>`ترتيب حسب العمود ${t.columnName} بترتيب تنازلي`,expand:"تمديد",resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var H0={};H0={ascending:"възходящ",ascendingSort:t=>`сортирано по колона ${t.columnName} във възходящ ред`,collapse:"Свиване",columnSize:t=>`${t.value} пиксела`,descending:"низходящ",descendingSort:t=>`сортирано по колона ${t.columnName} в низходящ ред`,expand:"Разширяване",resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var j0={};j0={ascending:"vzestupně",ascendingSort:t=>`řazeno vzestupně podle sloupce ${t.columnName}`,collapse:"Sbalit",columnSize:t=>`${t.value} pixelů`,descending:"sestupně",descendingSort:t=>`řazeno sestupně podle sloupce ${t.columnName}`,expand:"Roztáhnout",resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var R0={};R0={ascending:"stigende",ascendingSort:t=>`sorteret efter kolonne ${t.columnName} i stigende rækkefølge`,collapse:"Skjul",columnSize:t=>`${t.value} pixels`,descending:"faldende",descendingSort:t=>`sorteret efter kolonne ${t.columnName} i faldende rækkefølge`,expand:"Udvid",resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var W0={};W0={ascending:"aufsteigend",ascendingSort:t=>`sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,collapse:"Reduzieren",columnSize:t=>`${t.value} Pixel`,descending:"absteigend",descendingSort:t=>`sortiert nach Spalte ${t.columnName} in absteigender Reihenfolge`,expand:"Erweitern",resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var U0={};U0={ascending:"αύξουσα",ascendingSort:t=>`διαλογή ανά στήλη ${t.columnName} σε αύξουσα σειρά`,collapse:"Σύμπτυξη",columnSize:t=>`${t.value} pixel`,descending:"φθίνουσα",descendingSort:t=>`διαλογή ανά στήλη ${t.columnName} σε φθίνουσα σειρά`,expand:"Ανάπτυξη",resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var G0={};G0={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:t=>`sorted by column ${t.columnName} in ascending order`,descendingSort:t=>`sorted by column ${t.columnName} in descending order`,columnSize:t=>`${t.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"};var Y0={};Y0={ascending:"ascendente",ascendingSort:t=>`ordenado por columna ${t.columnName} en sentido ascendente`,collapse:"Contraer",columnSize:t=>`${t.value} píxeles`,descending:"descendente",descendingSort:t=>`ordenado por columna ${t.columnName} en orden descendente`,expand:"Ampliar",resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var X0={};X0={ascending:"tõusev järjestus",ascendingSort:t=>`sorditud veeru järgi ${t.columnName} tõusvas järjestuses`,collapse:"Ahenda",columnSize:t=>`${t.value} pikslit`,descending:"laskuv järjestus",descendingSort:t=>`sorditud veeru järgi ${t.columnName} laskuvas järjestuses`,expand:"Laienda",resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var q0={};q0={ascending:"nouseva",ascendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan nousevassa järjestyksessä`,collapse:"Pienennä",columnSize:t=>`${t.value} pikseliä`,descending:"laskeva",descendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan laskevassa järjestyksessä`,expand:"Laajenna",resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var Z0={};Z0={ascending:"croissant",ascendingSort:t=>`trié en fonction de la colonne ${t.columnName} par ordre croissant`,collapse:"Réduire",columnSize:t=>`${t.value} pixels`,descending:"décroissant",descendingSort:t=>`trié en fonction de la colonne ${t.columnName} par ordre décroissant`,expand:"Développer",resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var J0={};J0={ascending:"עולה",ascendingSort:t=>`מוין לפי עמודה ${t.columnName} בסדר עולה`,collapse:"כווץ",columnSize:t=>`${t.value} פיקסלים`,descending:"יורד",descendingSort:t=>`מוין לפי עמודה ${t.columnName} בסדר יורד`,expand:"הרחב",resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var Q0={};Q0={ascending:"rastući",ascendingSort:t=>`razvrstano po stupcima ${t.columnName} rastućem redoslijedom`,collapse:"Sažmi",columnSize:t=>`${t.value} piksela`,descending:"padajući",descendingSort:t=>`razvrstano po stupcima ${t.columnName} padajućim redoslijedom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var ep={};ep={ascending:"növekvő",ascendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, növekvő sorrendben`,collapse:"Összecsukás",columnSize:t=>`${t.value} képpont`,descending:"csökkenő",descendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, csökkenő sorrendben`,expand:"Kibontás",resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var tp={};tp={ascending:"crescente",ascendingSort:t=>`in ordine crescente in base alla colonna ${t.columnName}`,collapse:"Comprimi",columnSize:t=>`${t.value} pixel`,descending:"decrescente",descendingSort:t=>`in ordine decrescente in base alla colonna ${t.columnName}`,expand:"Espandi",resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var np={};np={ascending:"昇順",ascendingSort:t=>`列 ${t.columnName} を昇順で並べ替え`,collapse:"折りたたむ",columnSize:t=>`${t.value} ピクセル`,descending:"降順",descendingSort:t=>`列 ${t.columnName} を降順で並べ替え`,expand:"展開",resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var rp={};rp={ascending:"오름차순",ascendingSort:t=>`${t.columnName} 열을 기준으로 오름차순으로 정렬됨`,collapse:"접기",columnSize:t=>`${t.value} 픽셀`,descending:"내림차순",descendingSort:t=>`${t.columnName} 열을 기준으로 내림차순으로 정렬됨`,expand:"펼치기",resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var ip={};ip={ascending:"didėjančia tvarka",ascendingSort:t=>`surikiuota pagal stulpelį ${t.columnName} didėjančia tvarka`,collapse:"Sutraukti",columnSize:t=>`${t.value} piks.`,descending:"mažėjančia tvarka",descendingSort:t=>`surikiuota pagal stulpelį ${t.columnName} mažėjančia tvarka`,expand:"Išskleisti",resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var op={};op={ascending:"augošā secībā",ascendingSort:t=>`kārtots pēc kolonnas ${t.columnName} augošā secībā`,collapse:"Sakļaut",columnSize:t=>`${t.value} pikseļi`,descending:"dilstošā secībā",descendingSort:t=>`kārtots pēc kolonnas ${t.columnName} dilstošā secībā`,expand:"Izvērst",resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var lp={};lp={ascending:"stigende",ascendingSort:t=>`sortert etter kolonne ${t.columnName} i stigende rekkefølge`,collapse:"Skjul",columnSize:t=>`${t.value} piksler`,descending:"synkende",descendingSort:t=>`sortert etter kolonne ${t.columnName} i synkende rekkefølge`,expand:"Utvid",resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var ap={};ap={ascending:"oplopend",ascendingSort:t=>`gesorteerd in oplopende volgorde in kolom ${t.columnName}`,collapse:"Samenvouwen",columnSize:t=>`${t.value} pixels`,descending:"aflopend",descendingSort:t=>`gesorteerd in aflopende volgorde in kolom ${t.columnName}`,expand:"Uitvouwen",resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var sp={};sp={ascending:"rosnąco",ascendingSort:t=>`posortowano według kolumny ${t.columnName} w porządku rosnącym`,collapse:"Zwiń",columnSize:t=>`Liczba pikseli: ${t.value}`,descending:"malejąco",descendingSort:t=>`posortowano według kolumny ${t.columnName} w porządku malejącym`,expand:"Rozwiń",resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var up={};up={ascending:"crescente",ascendingSort:t=>`classificado pela coluna ${t.columnName} em ordem crescente`,collapse:"Recolher",columnSize:t=>`${t.value} pixels`,descending:"decrescente",descendingSort:t=>`classificado pela coluna ${t.columnName} em ordem decrescente`,expand:"Expandir",resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var dp={};dp={ascending:"ascendente",ascendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem ascendente`,collapse:"Colapsar",columnSize:t=>`${t.value} pixels`,descending:"descendente",descendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem descendente`,expand:"Expandir",resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var cp={};cp={ascending:"crescătoare",ascendingSort:t=>`sortate după coloana ${t.columnName} în ordine crescătoare`,collapse:"Restrângeți",columnSize:t=>`${t.value} pixeli`,descending:"descrescătoare",descendingSort:t=>`sortate după coloana ${t.columnName} în ordine descrescătoare`,expand:"Extindeți",resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var fp={};fp={ascending:"возрастание",ascendingSort:t=>`сортировать столбец ${t.columnName} в порядке возрастания`,collapse:"Свернуть",columnSize:t=>`${t.value} пикс.`,descending:"убывание",descendingSort:t=>`сортировать столбец ${t.columnName} в порядке убывания`,expand:"Развернуть",resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var pp={};pp={ascending:"vzostupne",ascendingSort:t=>`zoradené zostupne podľa stĺpca ${t.columnName}`,collapse:"Zbaliť",columnSize:t=>`Počet pixelov: ${t.value}`,descending:"zostupne",descendingSort:t=>`zoradené zostupne podľa stĺpca ${t.columnName}`,expand:"Rozbaliť",resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var hp={};hp={ascending:"naraščajoče",ascendingSort:t=>`razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,collapse:"Strni",columnSize:t=>`${t.value} slikovnih pik`,descending:"padajoče",descendingSort:t=>`razvrščeno po stolpcu ${t.columnName} v padajočem vrstnem redu`,expand:"Razširi",resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var mp={};mp={ascending:"rastući",ascendingSort:t=>`sortirano po kolonama ${t.columnName} rastućim redosledom`,collapse:"Skupi",columnSize:t=>`${t.value} piksela`,descending:"padajući",descendingSort:t=>`sortirano po kolonama ${t.columnName} padajućim redosledom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var gp={};gp={ascending:"stigande",ascendingSort:t=>`sorterat på kolumn ${t.columnName} i stigande ordning`,collapse:"Dölj",columnSize:t=>`${t.value} pixlar`,descending:"fallande",descendingSort:t=>`sorterat på kolumn ${t.columnName} i fallande ordning`,expand:"Expandera",resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var bp={};bp={ascending:"artan sırada",ascendingSort:t=>`${t.columnName} sütuna göre artan düzende sırala`,collapse:"Daralt",columnSize:t=>`${t.value} piksel`,descending:"azalan sırada",descendingSort:t=>`${t.columnName} sütuna göre azalan düzende sırala`,expand:"Genişlet",resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var yp={};yp={ascending:"висхідний",ascendingSort:t=>`відсортовано за стовпцем ${t.columnName} у висхідному порядку`,collapse:"Згорнути",columnSize:t=>`${t.value} пікс.`,descending:"низхідний",descendingSort:t=>`відсортовано за стовпцем ${t.columnName} у низхідному порядку`,expand:"Розгорнути",resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var $p={};$p={ascending:"升序",ascendingSort:t=>`按列 ${t.columnName} 升序排序`,collapse:"折叠",columnSize:t=>`${t.value} 像素`,descending:"降序",descendingSort:t=>`按列 ${t.columnName} 降序排序`,expand:"扩展",resizerDescription:"按 Enter 开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var vp={};vp={ascending:"遞增",ascendingSort:t=>`已依據「${t.columnName}」欄遞增排序`,collapse:"收合",columnSize:t=>`${t.value} 像素`,descending:"遞減",descendingSort:t=>`已依據「${t.columnName}」欄遞減排序`,expand:"展開",resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var cn={};cn={"ar-AE":V0,"bg-BG":H0,"cs-CZ":j0,"da-DK":R0,"de-DE":W0,"el-GR":U0,"en-US":G0,"es-ES":Y0,"et-EE":X0,"fi-FI":q0,"fr-FR":Z0,"he-IL":J0,"hr-HR":Q0,"hu-HU":ep,"it-IT":tp,"ja-JP":np,"ko-KR":rp,"lt-LT":ip,"lv-LV":op,"nb-NO":lp,"nl-NL":ap,"pl-PL":sp,"pt-BR":up,"pt-PT":dp,"ro-RO":cp,"ru-RU":fp,"sk-SK":pp,"sl-SI":hp,"sr-SP":mp,"sv-SE":gp,"tr-TR":bp,"uk-UA":yp,"zh-CN":$p,"zh-TW":vp};class b1 extends O0{isCell(e){return e.type==="cell"||e.type==="rowheader"||e.type==="column"}getKeyBelow(e,n){let r=this.collection.getItem(e);if(!r)return null;if(r.type==="column"){let i=gt(Ee(r,this.collection));if(i)return i.key;let o=this.getFirstKey();return o==null||!this.collection.getItem(o)?null:super.getKeyForItemInRowByIndex(o,r.index)}return super.getKeyBelow(e,n)}getKeyAbove(e,n){let r=this.collection.getItem(e);if(!r)return null;if(r.type==="column"){let l=r.parentKey!=null?this.collection.getItem(r.parentKey):null;return l&&l.type==="column"?l.key:null}let i=super.getKeyAbove(e,n),o=i!=null?this.collection.getItem(i):null;return o&&o.type!=="headerrow"?i:this.isCell(r)?this.collection.columns[r.index].key:this.collection.columns[0].key}findNextColumnKey(e){let n=this.findNextKey(e.key,i=>i.type==="column");if(n!=null)return n;let r=this.collection.headerRows[e.level];for(let i of Ee(r,this.collection))if(i.type==="column")return i.key;return null}findPreviousColumnKey(e){let n=this.findPreviousKey(e.key,o=>o.type==="column");if(n!=null)return n;let r=this.collection.headerRows[e.level],i=[...Ee(r,this.collection)];for(let o=i.length-1;o>=0;o--){let l=i[o];if(l.type==="column")return l.key}return null}getKeyRightOf(e){let n=this.collection.getItem(e);return n?n.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(n):this.findNextColumnKey(n):super.getKeyRightOf(e):null}getKeyLeftOf(e){let n=this.collection.getItem(e);return n?n.type==="column"?this.direction==="rtl"?this.findNextColumnKey(n):this.findPreviousColumnKey(n):super.getKeyLeftOf(e):null}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n??this.getFirstKey();if(i==null)return null;let o=r.getItem(i);o?.type==="cell"&&(i=o.parentKey??null);let l=!1;for(;i!=null;){let a=r.getItem(i);if(!a)return null;if(a.textValue){let u=a.textValue.slice(0,e.length);if(this.collator.compare(u,e)===0)return a.key}for(let u of Ee(a,this.collection)){let d=r.columns[u.index];if(r.rowHeaderColumnKeys.has(d.key)&&u.textValue){let c=u.textValue.slice(0,e.length);if(this.collator.compare(c,e)===0)return(n!=null?r.getItem(n):o)?.type==="cell"?u.key:a.key}}i=this.getKeyBelow(i),i==null&&!l&&(i=this.getFirstKey(),l=!0)}return null}}function y1(t){return t&&t.__esModule?t.default:t}function $1(t,e,n){let{keyboardDelegate:r,isVirtualized:i,layoutDelegate:o,layout:l}=t,a=sn({usage:"search",sensitivity:"base"}),{direction:u}=Ne(),d=e.selectionManager.disabledBehavior,c=s.useMemo(()=>r||new b1({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:d,ref:n,direction:u,collator:a,layoutDelegate:o,layout:l}),[r,e.collection,e.disabledKeys,d,n,u,a,o,l]),f=xe(t.id);sl.set(e,f);let{gridProps:p}=g1({...t,id:f,keyboardDelegate:c},e,n);i&&(p["aria-rowcount"]=e.collection.size+e.collection.headerRows.length),e.treeColumn!=null&&(p.role="treegrid");let{column:h,direction:m}=e.sortDescriptor||{},b=Me(y1(cn),"@react-aria/table"),y=s.useMemo(()=>{let x=e.collection.columns.find(v=>v.key===h)?.textValue??"";return m&&h?b.format(`${m}Sort`,{columnName:x}):void 0},[m,h,e.collection.columns]),$=Ln(y);return po(()=>{y&&Vt(y,"assertive",500)},[y]),{gridProps:G(p,$,{"aria-describedby":[$["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")})}}function xp(t,e,n){let{node:r,isVirtualized:i,focusMode:o,allowsArrowNavigation:l,shouldSelectOnPressUp:a,onAction:u}=t,{direction:d}=Ne(),{keyboardDelegate:c,actions:{onCellAction:f},keyboardNavigationBehavior:p}=al.get(e),h=o??(p==="tab"?"cell":"child"),m=s.useRef(null),b=()=>{if(n.current){let P=ze(n.current);if(h==="child"){if(Ft(n.current)&&n.current!==pe(le(n.current)))return;let N=e.selectionManager.childFocusStrategy==="last"?cl(P):P.firstChild();if(N){Se(N);return}}(m.current!=null&&r.key!==m.current||!Ft(n.current))&&Se(n.current)}},{itemProps:y,isPressed:$}=Hn({selectionManager:e.selectionManager,key:r.key,ref:n,isVirtualized:i,focus:b,shouldSelectOnPressUp:a,onAction:f?()=>f(r.key):u,isDisabled:e.collection.size===0}),x=P=>{let N=pe(le(n.current));if(!te(P.currentTarget,z(P))||e.isKeyboardNavigationDisabled||!n.current||!N)return;let w=ze(n.current);switch(w.currentNode=N,P.key){case"ArrowLeft":{let D=d==="rtl"?w.nextNode():w.previousNode();if(h==="child"&&D===n.current&&(D=null),P.preventDefault(),P.stopPropagation(),D)Se(D),Dt(D,{containingElement:mt(n.current)});else{if(c.getKeyLeftOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(P.nativeEvent.type,P.nativeEvent));break}h==="cell"&&d==="rtl"?(Se(n.current),Dt(n.current,{containingElement:mt(n.current)})):(w.currentNode=n.current,D=d==="rtl"?w.firstChild():cl(w),D&&(Se(D),Dt(D,{containingElement:mt(n.current)})))}break}case"ArrowRight":{let D=d==="rtl"?w.previousNode():w.nextNode();if(h==="child"&&D===n.current&&(D=null),P.preventDefault(),P.stopPropagation(),D)Se(D),Dt(D,{containingElement:mt(n.current)});else{if(c.getKeyRightOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(P.nativeEvent.type,P.nativeEvent));break}h==="cell"&&d==="ltr"?(Se(n.current),Dt(n.current,{containingElement:mt(n.current)})):(w.currentNode=n.current,D=d==="rtl"?cl(w):w.firstChild(),D&&(Se(D),Dt(D,{containingElement:mt(n.current)})))}break}case"ArrowUp":case"ArrowDown":!P.altKey&&te(n.current,z(P))&&(P.stopPropagation(),P.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(P.nativeEvent.type,P.nativeEvent)));break}},v=P=>{let N=pe(le(n.current));if(!(!te(P.currentTarget,z(P))||e.isKeyboardNavigationDisabled||!n.current||!N)){if(p==="tab"&&z(P)!==n.current&&P.key!=="Tab"){P.stopPropagation();return}switch(P.key){case"Tab":if(p==="tab"){let w=ze(n.current,{tabbable:!0});w.currentNode=N,(P.shiftKey?w.previousNode():w.nextNode())&&P.stopPropagation()}}}},C=P=>{if(m.current=r.key,z(P)!==n.current){Et()||e.selectionManager.setFocusedKey(r.key);return}h==="child"&&P.relatedTarget&&te(n.current,P.relatedTarget)||requestAnimationFrame(()=>{h==="child"&&pe(le(n.current))===n.current&&b()})},k=G(y,{role:"gridcell",onKeyDownCapture:p!=="tab"||l?x:void 0,onKeyDown:p==="tab"?v:void 0,"aria-colspan":r.colSpan,"aria-colindex":r.colIndex!=null?r.colIndex+1:void 0,colSpan:i?void 0:r.colSpan,onFocus:C,...h==="child"&&p==="tab"?{tabIndex:-1}:{}});return i&&(k["aria-colindex"]=(r.colIndex??r.index)+1),a&&k.tabIndex!=null&&k.onPointerDown==null&&(k.onPointerDown=P=>{let N=P.currentTarget,w=N.getAttribute("tabindex");N.removeAttribute("tabindex"),requestAnimationFrame(()=>{w!=null&&N.setAttribute("tabindex",w)})}),{gridCellProps:k,isPressed:$}}function cl(t){let e=null,n=null;do n=t.lastChild(),n&&(e=n);while(n);return e}function v1(t){return t&&t.__esModule?t.default:t}function x1(t,e,n){let{node:r}=t,i=r.props.allowsSorting,{gridCellProps:o}=xp({focusMode:"child",...t},e,n),l=r.props.isSelectionCell&&e.selectionManager.selectionMode==="single",{pressProps:a,isPressed:u}=zt({isDisabled:!i||l,onPress(){e.sort(r.key)},ref:n}),{focusableProps:d}=rn({},n),c,f=e.sortDescriptor?.column===r.key,p=e.sortDescriptor?.direction;r.props.allowsSorting&&!Qt()&&(c=f?p:"none");let h=Me(v1(cn),"@react-aria/table"),m;i&&(m=`${h.format("sortable")}`,f&&p&&Qt()&&(m=`${m}, ${h.format(p)}`));let b=Ln(m),y=e.collection.size===0;return s.useEffect(()=>{y&&e.selectionManager.focusedKey===r.key&&e.selectionManager.setFocusedKey(null)},[y,e.selectionManager,r.key]),{columnHeaderProps:{...G(d,o,a,b,y?{tabIndex:-1}:null),role:"columnheader",id:z0(e,r.key),"aria-colspan":r.colSpan&&r.colSpan>1?r.colSpan:void 0,"aria-sort":c},isPressed:u}}function C1(t,e,n){let{node:r,isVirtualized:i,shouldSelectOnPressUp:o,onAction:l}=t,{actions:a,shouldSelectOnPressUp:u}=al.get(e),d=a.onRowAction?()=>a.onRowAction?.(r.key):l,{itemProps:c,...f}=Hn({selectionManager:e.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:u||o,onAction:d||r?.props?.onAction?We(r?.props?.onAction,d):void 0,isDisabled:e.collection.size===0}),p=e.selectionManager.isSelected(r.key),h={role:"row","aria-selected":e.selectionManager.selectionMode!=="none"?p:void 0,"aria-disabled":f.isDisabled||void 0,...c};return i&&(h["aria-rowindex"]=r.index+1),{rowProps:h,...f}}function E1(t){return t&&t.__esModule?t.default:t}const Cp={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function w1(t,e,n){let{node:r,isVirtualized:i}=t,{rowProps:o,...l}=C1(t,e,n),{direction:a}=Ne();i&&e.treeColumn==null?o["aria-rowindex"]=r.index+1+e.collection.headerRows.length:delete o["aria-rowindex"];let u=e.treeColumn!=null&&(e.expandedKeys==="all"||e.expandedKeys.has(r.key)),d=Me(E1(cn),"@react-aria/table"),c=tn({"aria-label":u?d.format("collapse"):d.format("expand"),"aria-labelledby":dl(e,r.key)}),f={},p={};if(e.treeColumn!=null){let b=e.collection.getItem(r.key);if(b!=null){let y=Ep(e.collection,r),$=b.props?.hasChildRows||b.props?.UNSTABLE_childItems||y?.type!=="cell",x=e.collection.getItem(r.parentKey),v=x.type==="tablebody"||x.type==="body",C=Ep(e.collection,x);for(;C&&C.type!=="item"&&C.prevKey!=null;)C=e.collection.getItem(C.prevKey);f={onKeyDown:k=>{k.key===Cp.expand[a]&&e.selectionManager.focusedKey===b.key&&$&&e.expandedKeys!=="all"&&!e.expandedKeys.has(b.key)?(e.toggleKey(b.key),k.stopPropagation()):k.key===Cp.collapse[a]&&e.selectionManager.focusedKey===b.key&&(e.expandedKeys!=="all"?$&&e.expandedKeys.has(b.key)?(e.toggleKey(b.key),k.stopPropagation()):!e.expandedKeys.has(b.key)&&b.parentKey!=null&&b.level>0&&(e.selectionManager.setFocusedKey(b.parentKey),k.stopPropagation()):e.expandedKeys==="all"&&(e.toggleKey(b.key),k.stopPropagation()))},"aria-expanded":$?e.expandedKeys==="all"||e.expandedKeys.has(r.key):void 0,"aria-level":b.level+1,"aria-posinset":b.index-(v?0:e.collection.columnCount)+1,"aria-setsize":C.index-(v?0:e.collection.columnCount)+1},p={isDisabled:l.isDisabled,onPress:()=>{l.isDisabled||(e.toggleKey(r.key),e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(r.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...c}}}let h=bb(r.props),m=l.hasAction?h:{};return{rowProps:{...G(o,f,m),"aria-labelledby":dl(e,r.key)},expandButtonProps:p,...l}}function Ep(t,e){return"lastChildKey"in e?e.lastChildKey!=null?t.getItem(e.lastChildKey):null:Array.from(e.childNodes).findLast(n=>n.parentKey===e.key)}function S1(t,e,n){let{node:r,isVirtualized:i}=t,o={role:"row"};return i&&e.treeColumn==null&&(o["aria-rowindex"]=r.index+1),{rowProps:o}}function P1(t,e,n){let{gridCellProps:r,isPressed:i}=xp(t,e,n),o=t.node.column?.key;return o!=null&&e.collection.rowHeaderColumnKeys.has(o)&&(r.role="rowheader",r.id=_0(e,t.node.parentKey,o)),{gridCellProps:r,isPressed:i}}function k1(t){return t&&t.__esModule?t.default:t}function D1(t,e){let{key:n}=t;const{checkboxProps:r}=z2(t,e);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${dl(e,n)}`}}}function N1(t){let{isEmpty:e,isSelectAll:n,selectionMode:r}=t.selectionManager;return{checkboxProps:{"aria-label":Me(k1(cn),"@react-aria/table").format(r==="single"?"select":"selectAll"),isSelected:n,isDisabled:r!=="multiple"||t.collection.size===0||t.collection.rows.length===1&&t.collection.rows[0].type==="loader",isIndeterminate:!e&&!n,onChange:()=>t.selectionManager.toggleSelectAll()}}}function T1(t){return t&&t.__esModule?t.default:t}function A1(t,e,n){let{column:r,triggerRef:i,isDisabled:o,onResizeStart:l,onResize:a,onResizeEnd:u,"aria-label":d}=t;const c=Me(T1(cn),"@react-aria/table");let f=xe(),p=e.resizingColumn===r.key,h=s.useRef(p),m=s.useRef(null),b=s.useRef(!1),y=e.tableState.isKeyboardNavigationDisabled,[$,x]=s.useState(!1),{direction:v}=Ne(),C=s.useCallback(O=>{h.current||(m.current=e.updateResizedColumns(O.key,e.getColumnWidth(O.key)),e.startResize(O.key),e.tableState.setKeyboardNavigationDisabled(!0),l?.(m.current)),h.current=!0},[e,l]),k=s.useCallback((O,J)=>{let ce=e.updateResizedColumns(O.key,J);a?.(ce),m.current=ce},[e,a]),P=s.useCallback(O=>{h.current&&(m.current==null&&(m.current=e.updateResizedColumns(O.key,e.getColumnWidth(O.key))),e.endResize(),e.tableState.setKeyboardNavigationDisabled(!1),u?.(m.current),h.current=!1,i?.current&&!b.current&&Se(i.current)),m.current=null},[e,i,u]),N=()=>{if(y){P(r);return}return!1},{keyboardProps:w}=Ge({shortcuts:{Escape:()=>N(),Enter:()=>{y?P(r):C(r)}," ":()=>N(),Tab:()=>N()}});const D=s.useRef(0),{moveProps:A}=X3({onMoveStart(O){D.current=e.getColumnWidth(r.key),O.pointerType==="mouse"&&x(!0),C(r)},onMove(O){let{deltaX:J,deltaY:ce,pointerType:he}=O;v==="rtl"&&(J*=-1),he==="keyboard"&&(ce!==0&&J===0&&(J=ce*-1),J*=10),J!==0&&(D.current+=J,k(r,D.current))},onMoveEnd(O){let{pointerType:J}=O;D.current=0,x(!1),(J==="mouse"||J==="touch"&&b.current)&&P(r)}});let L=s.useCallback(O=>{y&&A.onKeyDown?.(O)},[y,A]),_=Math.floor(e.getColumnMinWidth(r.key)),R=Math.floor(e.getColumnMaxWidth(r.key));R===1/0&&(R=Number.MAX_SAFE_INTEGER);let E=Math.floor(e.getColumnWidth(r.key)),F=La();F==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(F="touch");let Z=i?.current==null&&(F==="keyboard"||F==="virtual")&&!p?c.format("resizerDescription"):void 0,M=Ln(Z),Y={"aria-label":d,"aria-orientation":"horizontal","aria-labelledby":`${f} ${z0(e.tableState,r.key)}`,"aria-valuetext":c.format("columnSize",{value:E}),type:"range",min:_,max:R,value:E,...M};const S=s.useCallback(()=>{n.current&&Se(n.current)},[n]);let I=e.resizingColumn,U=s.useRef(null),oe=De(C);s.useEffect(()=>{if(U.current!==I&&I!=null&&I===r.key){b.current=pe()===n.current,oe(r);let O=setTimeout(()=>S(),0),J=setTimeout(S,400);return()=>{clearTimeout(O),clearTimeout(J)}}U.current=I},[I,r,S,n]);let V=O=>{let J=e.getColumnWidth(r.key),ce=parseFloat(z(O).value);ce>J?ce=J+10:ce=J-10,k(r,ce)},{pressProps:ne}=zt({preventFocusOnPress:!0,onPressStart:O=>{if(!(O.ctrlKey||O.altKey||O.metaKey||O.shiftKey||O.pointerType==="keyboard")){if(O.pointerType==="virtual"&&e.resizingColumn!=null){P(r);return}S(),O.pointerType!=="virtual"&&C(r)}},onPress:O=>{(O.pointerType==="touch"&&b.current||O.pointerType==="mouse")&&e.resizingColumn!=null&&P(r)}}),{visuallyHiddenProps:T}=an();return{resizerProps:G(w,{...A,onKeyDown:L},ne,{style:{touchAction:"none"}}),inputProps:G(T,{id:f,onBlur:()=>{P(r)},onChange:V,disabled:o},Y),isResizing:p,isMouseResizing:$}}function I1(){return{rowGroupProps:{role:"rowgroup"}}}function fl(){return I1()}function B1(t){return t&&t.__esModule?t.default:t}class F1 extends Wa{withExpandedKeys(e){let n=this.clone();return n.expandedKeys=e,n.frozen=this.frozen,n.rows=Array.from(n.getRows()),n}addNode(e){super.addNode(e),this.columnsDirty||=e.type==="column",e.type==="tableheader"&&(this.head=e)}getRows(){let e=[];for(let n of this)(n.type==="tablebody"||n.type==="tablefooter")&&e.push(...this.getChildren(n.key));return e}get body(){for(let e of this)if(e.type==="tablebody")return e;return new ui(-2)}commit(e,n,r=!1){this.updateColumns(r),this.firstKey=e,this.lastKey=n,this.rows=[];for(let i of this.getRows()){let o=i.lastChildKey;if(o!=null){let l=this.getItem(o);for(;l&&l.type!=="cell";)l=l.prevKey!=null?this.getItem(l.prevKey):null;if(l){let a=(l.colIndex??l.index)+(l.colSpan??1);if(a!==this.columns.length&&!r)throw new Error(`Cell count must match column count. Found ${a} cells and ${this.columns.length} columns.`)}}this.rows.push(i)}super.commit(e,n,r)}updateColumns(e){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let n=new Map,r=i=>{i.type==="column"&&(n.set(i.key,i),i.hasChildNodes||(i.index=this.columns.length,this.columns.push(i),i.props.isRowHeader&&this.rowHeaderColumnKeys.add(i.key)));for(let o of this.getChildren(i.key))r(o)};for(let i of this.getChildren(this.head.key))r(i);if(this.headerRows=M0(n,this.columns),this.columnsDirty=!1,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!e)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let e=this.firstKey;for(;e!=null;){let n=this.getItem(e);n&&(yield n),e=n?.nextKey??null}}getFirstKey(){for(let e of this)if(e.type==="tablebody")return e.firstChildKey??null;return null}getLastKey(){let e=this.lastKey;if(e==null)return null;let n=this.getItem(e);for(;n?.lastChildKey!=null&&(n.type!=="item"||this.expandedKeys.has(n.key));)n=this.getItem(n.lastChildKey);return n?.key}getKeyAfter(e){let n=this.getItem(e);if(n?.type==="column")return n.nextKey??null;if(!n)return null;if(n.type==="item"&&n.firstChildKey!=null&&this.expandedKeys.has(n.key)){let r=this.getItem(n.firstChildKey);for(;r;){if(r.type==="item")return r.key;r=r.nextKey!=null?this.getItem(r.nextKey):null}}return super.getKeyAfter(e)}getKeyBefore(e){let n=this.getItem(e);if(n?.type==="column")return n.prevKey??null;if(!n)return null;let r=null;if(n.prevKey!=null){for(n=this.getItem(n.prevKey);n&&(n.type!=="item"||this.expandedKeys.has(n.key))&&n.lastChildKey!=null;)n=this.getItem(n.lastChildKey);r=n?.key??null}return r==null&&(r=n.parentKey),r!=null&&this.getItem(r)?.type==="tableheader"?null:r}getChildren(e){let n=this.getItem(e);if(!n){for(let i of this.headerRows)if(i.key===e)return i.childNodes}let r=this;return n?.type==="tablebody"||n?.type==="tablefooter"?{*[Symbol.iterator](){let i=n.firstChildKey,o=i!=null?r.getItem(i):null;for(;o;){yield o;let l=r.getKeyAfter(o.key);if(o=l!=null?r.getItem(l):null,o&&o.parentKey===n.parentKey)break}}}:{*[Symbol.iterator](){let i=r.getItem(e),o=i?.firstChildKey!=null?r.getItem(i.firstChildKey):null;for(;o&&(yield o,o=o.nextKey!=null?r.getItem(o.nextKey):null,!(i?.type==="item"&&o?.type!=="cell")););}}}clone(){let e=super.clone();return e.headerRows=this.headerRows,e.columns=this.columns,e.rows=this.rows,e.rowHeaderColumnKeys=this.rowHeaderColumnKeys,e.head=this.head,e}getTextValue(e){let n=this.getItem(e);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys,i=[];for(let o of this.getChildren(e)){let l=this.columns[o.index];if(r.has(l.key)&&o.textValue&&i.push(o.textValue),i.length===r.size)break}return i.join(" ")}constructor(...e){super(...e),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new si(-1),this.columnsDirty=!0,this.expandedKeys=new Set}}const pl=s.createContext(null),M1=s.forwardRef(function(e,n){let r=ke(n),i=s.useRef(null),o=s.useRef(null),[l,a]=s.useState(0);de(()=>{let d=i.current;for(;d&&d!==r.current&&!kt(d);)d=d.parentElement;o.current=d},[r]),Yn({ref:o,box:"border-box",onResize(){a(o.current?.clientWidth??0)}}),de(()=>{a(o.current?.clientWidth??0)},[]);let u=s.useMemo(()=>({tableRef:i,scrollRef:o,tableWidth:l,useTableColumnResizeState:d1,onResizeStart:e.onResizeStart,onResize:e.onResize,onResizeEnd:e.onResizeEnd}),[i,l,e.onResizeStart,e.onResize,e.onResizeEnd]);return s.createElement(ee.div,{render:e.render,...re(e,{global:!0}),ref:r,className:e.className||"react-aria-ResizableTableContainer",style:e.style,onScroll:e.onScroll},s.createElement(pl.Provider,{value:u},e.children))}),K1=s.createContext(null),Ze=s.createContext(null),hl=s.createContext(null),L1=s.forwardRef(function(e,n){[e,n]=ge(e,n,K1);let r=Rn(e),{selectionBehavior:i,selectionMode:o,disallowEmptySelection:l}=r,a=!!e.dragAndDropHooks?.useDraggableCollectionState,u=s.useMemo(()=>({selectionBehavior:o==="none"?null:i,selectionMode:o,disallowEmptySelection:l,allowsDragging:a}),[i,o,l,a]),d=s.createElement(_1.Provider,{value:u},s.createElement(Ot,e));return s.createElement(Lt,{content:d,createCollection:()=>new F1},c=>s.createElement(z1,{props:e,forwardedRef:n,selectionState:r,collection:c}))});let O1=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.table,{...e,ref:n})});const wp={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function z1({props:t,forwardedRef:e,selectionState:n,collection:r}){[t,e]=ge(t,e,Dn);let{shouldUseVirtualFocus:i,disallowTypeAhead:o,filter:l,...a}=t,u=s.useContext(pl);e=ke(s.useMemo(()=>$n(e,u?.tableRef),[e,u?.tableRef]));let[d,c]=it(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,t.onExpandedChange);r=s.useMemo(()=>r.withExpandedKeys(d),[r,d]);let f=p1({...a,collection:r,children:void 0,UNSAFE_selectionState:n,expandedKeys:d,onExpandedChange:c}),p=h1(f,l),{isVirtualized:h,layoutDelegate:m,dropTargetDelegate:b,CollectionRoot:y}=s.useContext(me),{dragAndDropHooks:$}=t,{gridProps:x}=$1({...a,layoutDelegate:m,isVirtualized:h},p,e),v=p.selectionManager,C=!!$?.useDraggableCollectionState,k=!!$?.useDroppableCollectionState,P=s.useRef(C),N=s.useRef(k);s.useEffect(()=>{process.env.NODE_ENV!=="production"&&(P.current!==C&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),N.current!==k&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[C,k]);let w,D,A,L=!1,_=null,R=s.useRef(null),{direction:E}=Ne(),[F]=s.useState(()=>new n1);if(C&&$){w=$.useDraggableCollectionState({collection:p.collection,selectionManager:v,preview:$.renderDragPreview?R:void 0}),$.useDraggableCollection({},w,e);let ne=$.DragPreview;_=$.renderDragPreview?s.createElement(ne,{ref:R},$.renderDragPreview):null}if(k&&$){D=$.useDroppableCollectionState({collection:p.collection,selectionManager:v});let ne=new Vn({collection:p.collection,disabledKeys:v.disabledKeys,disabledBehavior:v.disabledBehavior,ref:e,layoutDelegate:m}),T=$.dropTargetDelegate||b||new $.ListDropTargetDelegate(r.rows,e);F.setup(T,f,E),A=$.useDroppableCollection({keyboardDelegate:ne,dropTargetDelegate:F,onDropActivate:O=>{if(O.target.type==="item"){let J=O.target.key,ce=f.collection.getItem(J),he=d.has(J);ce&&ce.hasChildNodes&&(!he||$?.isVirtualDragging?.())&&f.toggleKey(J)}},onKeyDown:O=>{let J=D?.target;if(J&&J.type==="item"&&J.dropPosition==="on"){let ce=f.collection.getItem(J.key);(O.key===wp.expand[E]&&ce?.hasChildNodes&&!f.expandedKeys.has(J.key)||O.key===wp.collapse[E]&&ce?.hasChildNodes&&f.expandedKeys.has(J.key))&&f.toggleKey(J.key)}}},D,e),L=D.isDropTarget({type:"root"})}let{focusProps:Z,isFocused:M,isFocusVisible:Y}=Ae(),S=se({...t,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:L,isFocused:M,isFocusVisible:Y,state:p}}),I=!!(C&&!w?.isDisabled),U=S.style,oe=null;u&&(oe=u.useTableColumnResizeState({tableWidth:u.tableWidth},p),h||(U={...U,tableLayout:"fixed",width:"min-content"}));let V=re(t,{global:!0});return s.createElement(Te,{values:[[Ze,p],[hl,oe],[Ye,{dragAndDropHooks:$,dragState:w,dropState:D}],[So,{render:ey}],[Dn,null],[Nr,null]]},s.createElement(Yr,null,s.createElement(O1,{...G(V,S,x,Z,A?.collectionProps),style:U,ref:e,slot:t.slot||void 0,onScroll:t.onScroll,"data-allows-dragging":I||void 0,"data-drop-target":L||void 0,"data-focused":M||void 0,"data-focus-visible":Y||void 0},s.createElement(Ur,null,s.createElement(y,{collection:p.collection,scrollRef:u?.scrollRef??e,persistedKeys:Zu(v,$,D)})))),_)}const _1=s.createContext(null),da=class da extends He{};da.type="tableheader";let si=da,V1=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.thead,{...e,ref:n})});const H1=Lr(si,(t,e)=>{let n=s.useContext(Ze).collection,r=Gi({items:n.headerRows,children:s.useCallback(u=>{if(u.type==="headerrow")return s.createElement(R1,{item:u});throw new Error("Unsupported node type in TableHeader: "+u.type)},[])}),{rowGroupProps:i}=fl(),{hoverProps:o,isHovered:l}=Ie({onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),a=se({...t,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:l}});return s.createElement(V1,{...G(re(t,{global:!0}),i,o),...a,ref:e,"data-hovered":l||void 0},r)},t=>s.createElement(Ot,{dependencies:t.dependencies,items:t.columns},t.children));let j1=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement("div",{...e,ref:n}):s.createElement("tr",{...e,ref:n})});function R1({item:t}){let e=s.useRef(null),n=s.useContext(Ze),{isVirtualized:r,CollectionBranch:i}=s.useContext(me),{rowProps:o}=S1({node:t,isVirtualized:r},n,e),{checkboxProps:l}=N1(n);return s.createElement(j1,{...o,ref:e},s.createElement(Te,{values:[[hu,{slots:{selection:l}}],[mu,{slots:{selection:l}}]]},s.createElement(i,{collection:n.collection,parent:t})))}const ca=class ca extends He{};ca.type="column";let ml=ca,W1=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.th,{...e,ref:n})});const U1=ot(ml,(t,e,n)=>{let r=ke(e),i=s.useContext(Ze),{isVirtualized:o}=s.useContext(me),{columnHeaderProps:l,isPressed:a}=x1({node:n,isVirtualized:o,focusMode:t.focusMode,allowsArrowNavigation:t.allowsArrowNavigation},i,r),{isFocused:u,isFocusVisible:d,focusProps:c}=Ae(),f=s.useContext(hl),p=!1;if(f)p=f.resizingColumn===n.key;else if(process.env.NODE_ENV!=="production")for(let x in["width","defaultWidth","minWidth","maxWidth"])x in n.props&&console.warn(`The ${x} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);let{hoverProps:h,isHovered:m}=Ie({isDisabled:!t.allowsSorting}),b=se({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Column",values:{isHovered:m,isPressed:a,isFocused:u,isFocusVisible:d,allowsSorting:n.props.allowsSorting,sortDirection:i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0,isResizing:p,startResize:()=>{if(f)f.startResize(n.key),i.setKeyboardNavigationDisabled(!0);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:x=>{i.sort(n.key,x)}}}),y=b.style;f&&(y={...y,width:f.getColumnWidth(n.key)});let $=re(t,{global:!0});return delete $.id,s.createElement(W1,{...G($,l,c,h),...b,style:y,ref:r,"data-hovered":m||void 0,"data-pressed":a||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-resizing":p||void 0,"data-allows-sorting":n.props.allowsSorting||void 0,"data-sort-direction":i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0},s.createElement(Te,{values:[[Sp,{column:n,triggerRef:r}],[me,eo]]},b.children))}),Sp=s.createContext(null),G1=s.forwardRef(function(e,n){let r=s.useContext(hl);if(!r)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let i=Me(B1(wo),"react-aria-components"),{onResizeStart:o,onResize:l,onResizeEnd:a}=s.useContext(pl),{column:u,triggerRef:d}=s.useContext(Sp),c=s.useRef(null),{resizerProps:f,inputProps:p,isResizing:h,isMouseResizing:m}=A1({column:u,"aria-label":e["aria-label"]||i.format("tableResizer"),onResizeStart:o,onResize:l,onResizeEnd:a,triggerRef:d},r,c),{focusProps:b,isFocused:y,isFocusVisible:$}=Ae(),{hoverProps:x,isHovered:v}=Ie(e),C=r.getColumnMinWidth(u.key)>=r.getColumnWidth(u.key),k=r.getColumnMaxWidth(u.key)<=r.getColumnWidth(u.key),{direction:P}=Ne(),N="both";C?N=P==="rtl"?"right":"left":k?N=P==="rtl"?"left":"right":N="both";let w=ke(n),[D,A]=s.useState("");s.useEffect(()=>{if(!w.current)return;let R=window.getComputedStyle(w.current);A(R.cursor)},[w,N]);let L=se({...e,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:y,isFocusVisible:$,isResizing:h,isHovered:v,resizableDirection:N}}),_=re(e,{global:!0});return s.createElement(ee.div,{ref:w,role:"presentation",...G(_,L,f,x),"data-hovered":v||void 0,"data-focused":y||void 0,"data-focus-visible":$||void 0,"data-resizing":h||void 0,"data-resizable-direction":N},L.children,s.createElement("input",{ref:c,...G(p,b)}),h&&m&&vt.createPortal(s.createElement("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:D},"data-testid":"cursor-overlay"}),document.body))}),fa=class fa extends Tr{};fa.type="tablebody";let ui=fa,Y1=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.tbody,{...e,ref:n})});const X1=Lr(ui,(t,e,n)=>{let r=s.useContext(Ze),{isVirtualized:i}=s.useContext(me),o=r.collection,{CollectionBranch:l}=s.useContext(me),{dragAndDropHooks:a,dropState:u}=s.useContext(Ye),d=!!a?.useDroppableCollectionState&&!u?.isDisabled,c=d&&!!u&&(u.isDropTarget({type:"root"})??!1),f=o.size===0,p={isDropTarget:c,isEmpty:f},h=se({...t,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:p}),m,b=o.columnCount;if(f&&t.renderEmptyState&&r){let x={},v={},C={};i?(v["aria-colspan"]=b,C={display:"contents"}):v.colSpan=b,m=s.createElement(fn,{role:"row",...x,style:C},s.createElement(pn,{role:"rowheader",...v,style:C},t.renderEmptyState(p)))}let{rowGroupProps:y}=fl(),$=re(t,{global:!0});return s.createElement(Y1,{...G($,h,y),ref:e,"data-empty":f||void 0},d&&s.createElement(oy,null),s.createElement(l,{collection:o,parent:n,renderDropIndicator:Wr(a,u)}),m)}),pa=class pa extends Tr{};pa.type="tablefooter";let gl=pa,q1=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.tfoot,{...e,ref:n})});const Z1=Lr(gl,(t,e,n)=>{let i=s.useContext(Ze).collection,{CollectionBranch:o}=s.useContext(me),{dragAndDropHooks:l,dropState:a}=s.useContext(Ye),{rowGroupProps:u}=fl(),d=re(t,{global:!0}),c=se({style:t.style,className:t.className,defaultClassName:"react-aria-TableFooter",values:{}});return s.createElement(q1,{...G(d,c,u),ref:e},s.createElement(o,{collection:i,parent:n,renderDropIndicator:Wr(l,a)}))}),Pp=s.createContext({isFocusVisibleWithinRow:!1}),ha=class ha extends He{filter(e,n,r){let i=e.getChildren(this.key);for(let o of i)if(r(o.textValue,o)){let l=this.clone();return n.addDescendants(l,e),l}return null}};ha.type="item";let bl=ha,fn=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.tr,{...e,ref:n})});const J1=Lr(bl,(t,e,n)=>{let r=ke(e),i=s.useContext(Ze),{dragAndDropHooks:o,dragState:l,dropState:a}=s.useContext(Ye),{isVirtualized:u,CollectionBranch:d}=s.useContext(me),c=l&&!(l.isDisabled||l.selectionManager.isDisabled(n.key)),{rowProps:f,expandButtonProps:p,...h}=w1({node:n,shouldSelectOnPressUp:!!l,isVirtualized:u},i,r),{isFocused:m,isFocusVisible:b,focusProps:y}=Ae(),{isFocusVisible:$,focusProps:x}=Ae({within:!0}),{hoverProps:v,isHovered:C}=Ie({isDisabled:!h.allowsSelection&&!h.hasAction&&!c,onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),{checkboxProps:k}=D1({key:n.key},i),P;l&&o&&(P=o.useDraggableItem({key:n.key,hasDragButton:!0},l));let N,w=s.useRef(null),{visuallyHiddenProps:D}=an();a&&o&&(N=o.useDropIndicator({target:{type:"item",key:n.key,dropPosition:"on"}},a,w));let A=s.useRef(null);s.useEffect(()=>{l&&!A.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.')},[]);let L=l&&l.isDragging(n.key),{children:_,...R}=t,E=t.hasChildItems||i.collection.getItem(n.lastChildKey)?.type!=="cell",F=E&&i.expandedKeys.has(n.key),Z=se({...R,id:void 0,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":n.level+1},values:{...h,state:i,isHovered:C,isFocused:m,isFocusVisible:b,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,isDragging:L,isDropTarget:N?.isDropTarget,isFocusVisibleWithin:$,id:n.key,hasChildItems:E,isExpanded:F,level:n.level+1}}),M=re(t,{global:!0});return delete M.id,delete M.onClick,s.createElement(s.Fragment,null,N&&!N.isHidden&&s.createElement(fn,{role:"row",style:{height:0}},s.createElement(pn,{role:"gridcell",colSpan:i.collection.columnCount,style:{padding:0}},s.createElement("div",{role:"button",...D,...N.dropIndicatorProps,ref:w}))),s.createElement(fn,{...G(M,Z,f,y,v,P?.dragProps,x),ref:r,"data-disabled":h.isDisabled||void 0,"data-selected":h.isSelected||void 0,"data-hovered":C||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":b||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":L||void 0,"data-drop-target":N?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,"data-focus-visible-within":$||void 0,"data-expanded":F||void 0,"data-has-child-items":E||void 0,"data-level":n.level+1},s.createElement(Te,{values:[[hu,{slots:{[ct]:{},selection:k}}],[mu,{slots:{[ct]:{},selection:k}}],[Ht,{slots:{[ct]:{},chevron:p,drag:{...P?.dragButtonProps,ref:A,style:{pointerEvents:"none"}}}}],[zn,{isSelected:h.isSelected}],[Pp,{isFocusVisibleWithinRow:$}]]},s.createElement(d,{collection:i.collection,parent:n}))))},t=>{if(t.id==null&&typeof t.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let e=[t.value].concat(t.dependencies);return s.createElement(Ot,{dependencies:e,items:t.columns,idScope:t.id},t.children)}),ma=class ma extends He{};ma.type="cell";let yl=ma,pn=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.td,{...e,ref:n})});const Q1=ot(yl,(t,e,n)=>{let r=ke(e),i=s.useContext(Ze),{dragState:o}=s.useContext(Ye),{isVirtualized:l}=s.useContext(me);n.column=i.collection.columns[n.index];let{gridCellProps:a,isPressed:u}=P1({node:n,shouldSelectOnPressUp:!!o,isVirtualized:l,focusMode:t.focusMode,allowsArrowNavigation:t.allowsArrowNavigation},i,r),{isFocused:d,isFocusVisible:c,focusProps:f}=Ae(),{hoverProps:p,isHovered:h}=Ie({}),{isFocusVisibleWithinRow:m}=s.useContext(Pp),b=n.parentKey!=null?i.selectionManager.isSelected(n.parentKey):!1,y=n.colIndex||n.index,$=i.collection.getItem(n.parentKey),x=$.props.hasChildItems||i.collection.getItem($.lastChildKey)?.type!=="cell",v=x&&i.expandedKeys.has(n.parentKey),C=i.selectionManager.isDisabled(n.parentKey),k=se({...t,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:d,isFocusVisible:c,isFocusVisibleWithinRow:m,isPressed:u,isHovered:h,isSelected:b,id:n.key,columnIndex:y,hasChildItems:x,isExpanded:v,isDisabled:C,level:$.level+1,isTreeColumn:n.column.key===i.treeColumn}}),P=re(t,{global:!0});return delete P.id,s.createElement(pn,{...G(P,k,a,f,p),ref:r,"data-focused":d||void 0,"data-focus-visible":c||void 0,"data-focus-visible-within-row":m||void 0,"data-pressed":u||void 0,"data-selected":b||void 0,"data-column-index":y,"data-expanded":v||void 0,"data-has-child-items":x||void 0,"data-level":$.level+1,"data-tree-column":n.column.key===i.treeColumn||void 0,"data-disabled":C||void 0},s.createElement(me.Provider,{value:eo},k.children))});function ey(t,e){e=ke(e);let{dragAndDropHooks:n,dropState:r}=s.useContext(Ye),i=s.useRef(null),{dropIndicatorProps:o,isHidden:l,isDropTarget:a}=n.useDropIndicator(t,r,i);if(l)return null;let u=r&&t.target.type==="item"?(r.collection.getItem(t.target.key)?.level||0)+1:1;return s.createElement(iy,{...t,dropIndicatorProps:o,isDropTarget:a,buttonRef:i,level:u,ref:e})}let ty=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.tr,{...e,ref:n})}),ny=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.td,{...e,ref:n})});function ry(t,e){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,level:o,...l}=t,a=s.useContext(Ze),{visuallyHiddenProps:u}=an(),d=se({...l,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":o+1},values:{isDropTarget:r}});return s.createElement(ty,{...re(t,{global:!0}),...d,role:"row",ref:e,"data-drop-target":r||void 0,"aria-level":o},s.createElement(ny,{role:"gridcell",colSpan:a.collection.columnCount,style:{padding:0}},s.createElement("div",{...u,role:"button",...n,ref:i}),d.children))}const iy=s.forwardRef(ry);function oy(){let t=s.useContext(Ze),{dragAndDropHooks:e,dropState:n}=s.useContext(Ye),r=s.useRef(null),{dropIndicatorProps:i}=e.useDropIndicator({target:{type:"root"}},n,r),o=n.isDropTarget({type:"root"}),{visuallyHiddenProps:l}=an();return!o&&i["aria-hidden"]?null:s.createElement(fn,{role:"row","aria-hidden":i["aria-hidden"],style:{height:0}},s.createElement(pn,{role:"gridcell",colSpan:t.collection.columnCount,style:{padding:0}},s.createElement("div",{role:"button",...l,...i,ref:r})))}const ly=ot(Ar,function(e,n,r){let i=s.useContext(Ze),{isVirtualized:o}=s.useContext(me),{isLoading:l,onLoadMore:a,scrollOffset:u,...d}=e,c=i.collection.columns.length,f=s.useRef(null),p=s.useMemo(()=>({onLoadMore:a,collection:i?.collection,sentinelRef:f,scrollOffset:u}),[a,u,i?.collection]);vd(p,f);let h=se({...d,id:void 0,children:r.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":r.level+1},values:void 0}),m={},b={},y={};return o?(b["aria-colspan"]=c,y={display:"contents"}):b.colSpan=c,s.createElement(s.Fragment,null,s.createElement(fn,{style:{height:0},inert:gd(!0)},s.createElement(pn,{style:{padding:0,border:0}},s.createElement("div",{"data-testid":"loadMoreSentinel",ref:f,style:{position:"relative",height:1,width:1}}))),l&&h.children&&s.createElement(fn,{...G(re(e,{global:!0}),m),...h,role:"row",ref:n,"aria-level":r.level+1,"data-level":r.level+1},s.createElement(pn,{role:"rowheader",...b,style:y},h.children)))}),kp=new WeakMap;function Dp(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=kp.get(t);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${e}`}function ay(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,u=r===a,d=i||e.isDisabled||e.selectionManager.isDisabled(r),c=e.collection.getItem(r),{itemProps:f,isPressed:p}=Hn({selectionManager:l,key:r,ref:n,isDisabled:d,shouldSelectOnPressUp:o??c?.props.href!=null,linkBehavior:"selection"}),h=Dp(e,r,"tab"),m=Dp(e,r,"tabpanel"),{tabIndex:b}=f,y=re(c?.props,{labelable:!0});delete y.id;let $=Er(c?.props),{focusableProps:x}=rn({...c?.props,isDisabled:d},n);return{tabProps:G(y,x,$,f,{id:h,"aria-selected":u,"aria-disabled":d||void 0,"aria-controls":u?m:void 0,tabIndex:d?void 0:b,role:"tab"}),isSelected:u,isDisabled:d,isPressed:p}}class sy{constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n)&&n!==e);return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n)&&n!==e);return n}}function uy(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:u}=Ne(),d=s.useMemo(()=>new sy(o,u,r,a),[o,a,r,u]),{collectionProps:c}=qr({ref:n,selectionManager:l,keyboardDelegate:d,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=xe();kp.set(e,f);let p=tn({...t,id:f});return{tabListProps:{...G(c,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function dy(t){let[e,n]=it(t.selectedKey,t.defaultSelectedKey??null,t.onSelectionChange),r=s.useMemo(()=>e!=null?[e]:[],[e]),{collection:i,disabledKeys:o,selectionManager:l}=Zr({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:u=>{if(u==="all")return;let d=u.values().next().value??null;d===e&&t.onSelectionChange&&t.onSelectionChange(d),n(d)}}),a=e!=null?i.getItem(e):null;return{collection:i,disabledKeys:o,selectionManager:l,selectedKey:e,setSelectedKey:n,selectedItem:a}}function cy(t){let e=dy({...t,onSelectionChange:t.onSelectionChange?l=>{l!=null&&t.onSelectionChange?.(l)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:t.defaultSelectedKey??Np(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=e,o=s.useRef(i);return s.useEffect(()=>{let l=i;t.selectedKey==null&&(n.isEmpty||l==null||!r.getItem(l))&&(l=Np(r,e.disabledKeys),l!=null&&n.setSelectedKeys([l])),(l!=null&&n.focusedKey==null||!n.isFocused&&l!==o.current)&&n.setFocusedKey(l),o.current=l}),{...e,isDisabled:t.isDisabled||!1}}function Np(t,e){let n=null;if(t){for(n=t.getFirstKey();n!=null&&(e.has(n)||t.getItem(n)?.props?.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||t.getItem(n)?.props?.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}const $l=s.createContext(null),di=s.createContext(null),Tp=s.forwardRef(function(e,n){[e,n]=ge(e,n,$l);let{children:r,orientation:i="horizontal"}=e;return r=s.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),s.createElement(Lt,{content:r},o=>s.createElement(fy,{props:e,collection:o,tabsRef:n}))});function fy({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=cy({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=Ae({within:!0}),u=s.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),d=se({...t,defaultClassName:"react-aria-Tabs",values:u}),c=re(t,{global:!0});return s.createElement(ee.div,{...G(c,d,o),ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},s.createElement(Te,{values:[[$l,t],[di,i]]},d.children))}const Ap=s.forwardRef(function(e,n){return s.useContext(di)?s.createElement(py,{props:e,forwardedRef:n}):s.createElement(Ot,e)});function py({props:t,forwardedRef:e}){let n=s.useContext(di),{CollectionRoot:r}=s.useContext(me),{orientation:i="horizontal",keyboardActivation:o="automatic"}=Ct($l),l=ke(e),{tabListProps:a}=uy({...t,orientation:i,keyboardActivation:o},n,l),u=se({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),d=re(t,{global:!0});return delete d.id,s.createElement(ee.div,{...G(d,u,a),ref:l,"data-orientation":i||void 0},s.createElement(Ur,null,s.createElement(r,{collection:n.collection,persistedKeys:ss(n.selectionManager.focusedKey)})))}const ga=class ga extends He{};ga.type="item";let vl=ga;const Ip=ot(vl,(t,e,n)=>{let r=s.useContext(di),i=ke(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:u}=ay({key:n.key,...t},r,i),{focusProps:d,isFocused:c,isFocusVisible:f}=Ae(),{hoverProps:p,isHovered:h}=Ie({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),m=se({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:c,isFocusVisible:f,isPressed:u,isHovered:h}}),b=n.props.href?ee.a:ee.div,y=re(t,{global:!0});return delete y.id,delete y.onClick,s.createElement(b,{...G(y,m,o,d,p),ref:i,"data-selected":l||void 0,"data-disabled":a||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-pressed":u||void 0,"data-hovered":h||void 0},s.createElement(zn.Provider,{value:{isSelected:l}},m.children))}),hy=s.createContext({});let my=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const gy=s.forwardRef(function(e,n){[e,n]=ge(e,n,hy);let{hoverProps:r,isHovered:i}=Ie(e),{isFocused:o,isFocusVisible:l,focusProps:a}=Ae({isTextInput:!0,autoFocus:e.autoFocus}),u=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",d=se({...e,values:{isHovered:i,isFocused:o,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:u},defaultClassName:"react-aria-TextArea"});return s.createElement(ee.textarea,{...G(my(e),a,r),...d,ref:n,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":u||void 0})}),by=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},yy=(t,e)=>({classGroupId:t,validator:e}),Bp=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),ci="-",Fp=[],$y="arbitrary..",vy=t=>{const e=Cy(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return xy(l);const a=l.split(ci),u=a[0]===""&&a.length>1?1:0;return Mp(a,u,e)},getConflictingClassGroupIds:(l,a)=>{if(a){const u=r[l],d=n[l];return u?d?by(d,u):u:d||Fp}return n[l]||Fp}}},Mp=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],o=n.nextPart.get(i);if(o){const d=Mp(t,e+1,o);if(d)return d}const l=n.validators;if(l===null)return;const a=e===0?t.join(ci):t.slice(e).join(ci),u=l.length;for(let d=0;d<u;d++){const c=l[d];if(c.validator(a))return c.classGroupId}},xy=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?$y+r:void 0})(),Cy=t=>{const{theme:e,classGroups:n}=t;return Ey(n,e)},Ey=(t,e)=>{const n=Bp();for(const r in t){const i=t[r];xl(i,n,r,e)}return n},xl=(t,e,n,r)=>{const i=t.length;for(let o=0;o<i;o++){const l=t[o];wy(l,e,n,r)}},wy=(t,e,n,r)=>{if(typeof t=="string"){Sy(t,e,n);return}if(typeof t=="function"){Py(t,e,n,r);return}ky(t,e,n,r)},Sy=(t,e,n)=>{const r=t===""?e:Kp(e,t);r.classGroupId=n},Py=(t,e,n,r)=>{if(Dy(t)){xl(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(yy(n,t))},ky=(t,e,n,r)=>{const i=Object.entries(t),o=i.length;for(let l=0;l<o;l++){const[a,u]=i[l];xl(u,Kp(e,a),n,r)}},Kp=(t,e)=>{let n=t;const r=e.split(ci),i=r.length;for(let o=0;o<i;o++){const l=r[o];let a=n.nextPart.get(l);a||(a=Bp(),n.nextPart.set(l,a)),n=a}return n},Dy=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Ny=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const i=(o,l)=>{n[o]=l,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=r[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},Cl="!",Lp=":",Ty=[],Op=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ay=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const o=[];let l=0,a=0,u=0,d;const c=i.length;for(let b=0;b<c;b++){const y=i[b];if(l===0&&a===0){if(y===Lp){o.push(i.slice(u,b)),u=b+1;continue}if(y==="/"){d=b;continue}}y==="["?l++:y==="]"?l--:y==="("?a++:y===")"&&a--}const f=o.length===0?i:i.slice(u);let p=f,h=!1;f.endsWith(Cl)?(p=f.slice(0,-1),h=!0):f.startsWith(Cl)&&(p=f.slice(1),h=!0);const m=d&&d>u?d-u:void 0;return Op(o,h,p,m)};if(e){const i=e+Lp,o=r;r=l=>l.startsWith(i)?o(l.slice(i.length)):Op(Ty,!1,l,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},Iy=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],a=l[0]==="[",u=e.has(l);a||u?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},By=t=>({cache:Ny(t.cacheSize),parseClassName:Ay(t),sortModifiers:Iy(t),postfixLookupClassGroupIds:Fy(t),...vy(t)}),Fy=t=>{const e=Object.create(null),n=t.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)e[n[r]]=!0;return e},My=/\s+/,Ky=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o,postfixLookupClassGroupIds:l}=e,a=[],u=t.trim().split(My);let d="";for(let c=u.length-1;c>=0;c-=1){const f=u[c],{isExternal:p,modifiers:h,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:y}=n(f);if(p){d=f+(d.length>0?" "+d:d);continue}let $=!!y,x;if($){const N=b.substring(0,y);x=r(N);const w=x&&l[x]?r(b):void 0;w&&w!==x&&(x=w,$=!1)}else x=r(b);if(!x){if(!$){d=f+(d.length>0?" "+d:d);continue}if(x=r(b),!x){d=f+(d.length>0?" "+d:d);continue}$=!1}const v=h.length===0?"":h.length===1?h[0]:o(h).join(":"),C=m?v+Cl:v,k=C+x;if(a.indexOf(k)>-1)continue;a.push(k);const P=i(x,$);for(let N=0;N<P.length;++N){const w=P[N];a.push(C+w)}d=f+(d.length>0?" "+d:d)}return d},Ly=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=zp(n))&&(i&&(i+=" "),i+=r);return i},zp=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=zp(t[r]))&&(n&&(n+=" "),n+=e);return n},_p=(t,...e)=>{let n,r,i,o;const l=u=>{const d=e.reduce((c,f)=>f(c),t());return n=By(d),r=n.cache.get,i=n.cache.set,o=a,a(u)},a=u=>{const d=r(u);if(d)return d;const c=Ky(u,n);return i(u,c),c};return o=l,(...u)=>o(Ly(...u))},Oy=[],we=t=>{const e=n=>n[t]||Oy;return e.isThemeGetter=!0,e},Vp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zy=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_y=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vy=/\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$/,Hy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ry=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,At=t=>zy.test(t),ae=t=>!!t&&!Number.isNaN(Number(t)),at=t=>!!t&&Number.isInteger(Number(t)),El=t=>t.endsWith("%")&&ae(t.slice(0,-1)),bt=t=>_y.test(t),jp=()=>!0,Wy=t=>Vy.test(t)&&!Hy.test(t),wl=()=>!1,Uy=t=>jy.test(t),Gy=t=>Ry.test(t),Yy=t=>!q(t)&&!Q(t),Xy=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),qy=t=>It(t,Xp,wl),q=t=>Vp.test(t),Gt=t=>It(t,qp,Wy),Rp=t=>It(t,i$,ae),Zy=t=>It(t,Jp,jp),Jy=t=>It(t,Zp,wl),Wp=t=>It(t,Gp,wl),Qy=t=>It(t,Yp,Gy),fi=t=>It(t,Qp,Uy),Q=t=>Hp.test(t),Jn=t=>Yt(t,qp),e$=t=>Yt(t,Zp),Up=t=>Yt(t,Gp),t$=t=>Yt(t,Xp),n$=t=>Yt(t,Yp),pi=t=>Yt(t,Qp,!0),r$=t=>Yt(t,Jp,!0),It=(t,e,n)=>{const r=Vp.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Yt=(t,e,n=!1)=>{const r=Hp.exec(t);return r?r[1]?e(r[1]):n:!1},Gp=t=>t==="position"||t==="percentage",Yp=t=>t==="image"||t==="url",Xp=t=>t==="length"||t==="size"||t==="bg-size",qp=t=>t==="length",i$=t=>t==="number",Zp=t=>t==="family-name",Jp=t=>t==="number"||t==="weight",Qp=t=>t==="shadow",eh=()=>{const t=we("color"),e=we("font"),n=we("text"),r=we("font-weight"),i=we("tracking"),o=we("leading"),l=we("breakpoint"),a=we("container"),u=we("spacing"),d=we("radius"),c=we("shadow"),f=we("inset-shadow"),p=we("text-shadow"),h=we("drop-shadow"),m=we("blur"),b=we("perspective"),y=we("aspect"),$=we("ease"),x=we("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...C(),Q,q],P=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],w=()=>[Q,q,u],D=()=>[At,"full","auto",...w()],A=()=>[at,"none","subgrid",Q,q],L=()=>["auto",{span:["full",at,Q,q]},at,Q,q],_=()=>[at,"auto",Q,q],R=()=>["auto","min","max","fr",Q,q],E=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...w()],M=()=>[At,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],Y=()=>[At,"screen","full","dvw","lvw","svw","min","max","fit",...w()],S=()=>[At,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],I=()=>[t,Q,q],U=()=>[...C(),Up,Wp,{position:[Q,q]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",t$,qy,{size:[Q,q]}],ne=()=>[El,Jn,Gt],T=()=>["","none","full",d,Q,q],O=()=>["",ae,Jn,Gt],J=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[ae,El,Up,Wp],et=()=>["","none",m,Q,q],B=()=>["none",ae,Q,q],K=()=>["none",ae,Q,q],ue=()=>[ae,Q,q],fe=()=>[At,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[bt],breakpoint:[bt],color:[jp],container:[bt],"drop-shadow":[bt],ease:["in","out","in-out"],font:[Yy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[bt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[bt],shadow:[bt],spacing:["px",ae],text:[bt],"text-shadow":[bt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",At,q,Q,y]}],container:["container"],"container-type":[{"@container":["","normal","size",Q,q]}],"container-named":[Xy],columns:[{columns:[ae,q,Q,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"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:k()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[at,"auto",Q,q]}],basis:[{basis:[At,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,At,"auto","initial","none",q]}],grow:[{grow:["",ae,Q,q]}],shrink:[{shrink:["",ae,Q,q]}],order:[{order:[at,"first","last","none",Q,q]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...E(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...E()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mbs:[{mbs:Z()}],mbe:[{mbe:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],"inline-size":[{inline:["auto",...Y()]}],"min-inline-size":[{"min-inline":["auto",...Y()]}],"max-inline-size":[{"max-inline":["none",...Y()]}],"block-size":[{block:["auto",...S()]}],"min-block-size":[{"min-block":["auto",...S()]}],"max-block-size":[{"max-block":["none",...S()]}],w:[{w:[a,"screen",...M()]}],"min-w":[{"min-w":[a,"screen","none",...M()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",n,Jn,Gt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,r$,Zy]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",El,q]}],"font-family":[{font:[e$,Jy,e]}],"font-features":[{"font-features":[q]}],"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:[i,Q,q]}],"line-clamp":[{"line-clamp":[ae,"none",Q,Rp]}],leading:[{leading:[o,...w()]}],"list-image":[{"list-image":["none",Q,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",Q,Gt]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[ae,"auto",Q,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"tab-size":[{tab:[at,Q,q]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,q]}],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",Q,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},at,Q,q],radial:["",Q,q],conic:[at,Q,q]},n$,Qy]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],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:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-bs":[{"border-bs":O()}],"border-w-be":[{"border-be":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ae,Q,q]}],"outline-w":[{outline:["",ae,Jn,Gt]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",c,pi,fi]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",f,pi,fi]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[ae,Gt]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",p,pi,fi]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[ae,Q,q]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[Q,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,q]}],filter:[{filter:["","none",Q,q]}],blur:[{blur:et()}],brightness:[{brightness:[ae,Q,q]}],contrast:[{contrast:[ae,Q,q]}],"drop-shadow":[{"drop-shadow":["","none",h,pi,fi]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",ae,Q,q]}],"hue-rotate":[{"hue-rotate":[ae,Q,q]}],invert:[{invert:["",ae,Q,q]}],saturate:[{saturate:[ae,Q,q]}],sepia:[{sepia:["",ae,Q,q]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,q]}],"backdrop-blur":[{"backdrop-blur":et()}],"backdrop-brightness":[{"backdrop-brightness":[ae,Q,q]}],"backdrop-contrast":[{"backdrop-contrast":[ae,Q,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,Q,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,Q,q]}],"backdrop-invert":[{"backdrop-invert":["",ae,Q,q]}],"backdrop-opacity":[{"backdrop-opacity":[ae,Q,q]}],"backdrop-saturate":[{"backdrop-saturate":[ae,Q,q]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,Q,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",Q,q]}],ease:[{ease:["linear","initial",$,Q,q]}],delay:[{delay:[ae,Q,q]}],animate:[{animate:["none",x,Q,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,Q,q]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:B()}],"rotate-x":[{"rotate-x":B()}],"rotate-y":[{"rotate-y":B()}],"rotate-z":[{"rotate-z":B()}],scale:[{scale:K()}],"scale-x":[{"scale-x":K()}],"scale-y":[{"scale-y":K()}],"scale-z":[{"scale-z":K()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[Q,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":["translate-none"],zoom:[{zoom:[at,Q,q]}],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",Q,q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",Q,q]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[ae,Jn,Gt,Rp]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},o$=(t,{cacheSize:e,prefix:n,experimentalParseClassName:r,extend:i={},override:o={}})=>(hn(t,"cacheSize",e),hn(t,"prefix",n),hn(t,"experimentalParseClassName",r),hi(t.theme,o.theme),hi(t.classGroups,o.classGroups),hi(t.conflictingClassGroups,o.conflictingClassGroups),hi(t.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),hn(t,"postfixLookupClassGroups",o.postfixLookupClassGroups),hn(t,"orderSensitiveModifiers",o.orderSensitiveModifiers),mi(t.theme,i.theme),mi(t.classGroups,i.classGroups),mi(t.conflictingClassGroups,i.conflictingClassGroups),mi(t.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Sl(t,i,"postfixLookupClassGroups"),Sl(t,i,"orderSensitiveModifiers"),t),hn=(t,e,n)=>{n!==void 0&&(t[e]=n)},hi=(t,e)=>{if(e)for(const n in e)hn(t,n,e[n])},mi=(t,e)=>{if(e)for(const n in e)Sl(t,e,n)},Sl=(t,e,n)=>{const r=e[n];r!==void 0&&(t[n]=t[n]?t[n].concat(r):r)},l$=((t,...e)=>typeof t=="function"?_p(eh,t,...e):_p(()=>o$(eh(),t),...e))({extend:{theme:{text:["h1","h2","h3","h4","h5","h6","body-lg","body-sm","caption-lg","caption-sm"]}}});function j(...t){return l$(X(t))}const th=s.createContext({size:"md"}),a$=()=>s.useContext(th),nh=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,rh=X,H=(t,e)=>n=>{var r;if(e?.variants==null)return rh(t,n?.class,n?.className);const{variants:i,defaultVariants:o}=e,l=Object.keys(i).map(d=>{const c=n?.[d],f=o?.[d];if(c===null)return null;const p=nh(c)||nh(f);return i[d][p]}),a=n&&Object.entries(n).reduce((d,c)=>{let[f,p]=c;return p===void 0||(d[f]=p),d},{}),u=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((d,c)=>{let{class:f,className:p,...h}=c;return Object.entries(h).every(m=>{let[b,y]=m;return Array.isArray(y)?y.includes({...o,...a}[b]):{...o,...a}[b]===y})?[...d,f,p]:d},[]);return rh(t,l,u,n?.class,n?.className)},s$={xs:18,sm:20,md:20,lg:24,xl:28,"2xl":28},u$=H("inline-flex shrink-0 items-center justify-center [&_svg]:size-full",{variants:{size:{xs:"size-[18px]",sm:"size-[20px]",md:"size-[20px]",lg:"size-[24px]",xl:"size-[28px]","2xl":"size-[28px]"}},defaultVariants:{size:"md"}}),d$=H(["relative inline-flex items-center justify-center font-bold","transition-[color,background-color,border-color,box-shadow,filter,transform] duration-150","focus-visible:outline-none","[-webkit-tap-highlight-color:transparent]","disabled:cursor-not-allowed data-[disabled]:cursor-not-allowed data-[pending]:cursor-wait","data-[pressed]:brightness-[0.96]"],{variants:{size:{xs:"py-1 px-2 gap-1 rounded-md text-caption-sm",sm:"h-[36px] px-4 gap-1 rounded-lg text-caption-sm",md:"h-[44px] px-4 gap-2 rounded-lg text-sm",lg:"h-[52px] px-5 gap-2 rounded-[10px] text-body-sm",xl:"h-[60px] px-6 gap-2 rounded-[10px] text-body-lg","2xl":"h-[68px] px-6 gap-2 rounded-[10px] text-body-lg"},tone:{primary:"",destructive:""},iconOnly:{true:"!p-0",false:""},variant:{solid:["text-white","disabled:bg-light-100 disabled:text-light-400","data-[pending]:!bg-light-100 data-[pending]:!text-light-400"],outline:["bg-white border","disabled:bg-white disabled:text-light-400 disabled:border-light-200","data-[pending]:!bg-white data-[pending]:!text-light-400 data-[pending]:!border-light-200"],ghost:["bg-transparent","disabled:text-light-400","data-[pending]:!bg-transparent data-[pending]:!text-light-400"],"outline-primary":["bg-white border border-primary-500 text-primary-500","hover:bg-primary-100 hover:border-primary-300 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400 disabled:border-light-200","data-[pending]:!bg-white data-[pending]:!text-light-400 data-[pending]:!border-light-200"],"ghost-primary":["bg-transparent text-primary-500","hover:bg-primary-50 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:text-light-400","data-[pending]:!bg-transparent data-[pending]:!text-light-400"],plain:["bg-transparent h-auto rounded-none p-0 gap-1","disabled:text-light-400 data-[pending]:!text-light-400"],"plain-black":["bg-transparent h-auto rounded-none p-0 gap-1","disabled:text-light-400 data-[pending]:!text-light-400"]}},compoundVariants:[{tone:"primary",variant:"solid",class:["bg-primary-500","hover:bg-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"outline",class:["border-light-200 text-light-900","hover:bg-light-50","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"ghost",class:["text-light-800","hover:bg-light-50 hover:text-light-900","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain",class:["text-primary-500","hover:text-primary-800 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain-black",class:["text-light-800","hover:text-light-900 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"solid",class:["bg-error-500 text-white","hover:bg-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-light-100 data-[pending]:!bg-light-100"].join(" ")},{tone:"destructive",variant:"outline",class:["border-error-500 text-error-500","hover:border-error-300 hover:bg-error-100 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"ghost",class:["text-error-500","hover:bg-error-50 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400","data-[pending]:!bg-white data-[pending]:!text-light-400"].join(" ")},{tone:"destructive",variant:"plain",class:["text-error-500","hover:text-error-800 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{size:"xs",iconOnly:!0,class:"!w-[26px] !h-[26px]"},{size:"sm",iconOnly:!0,class:"!w-[36px] !h-[36px]"},{size:"md",iconOnly:!0,class:"!w-[44px] !h-[44px]"},{size:"lg",iconOnly:!0,class:"!w-[52px] !h-[52px]"},{size:"xl",iconOnly:!0,class:"!w-[60px] !h-[60px]"},{size:"2xl",iconOnly:!0,class:"!w-[68px] !h-[68px]"}],defaultVariants:{size:"md",tone:"primary",variant:"solid",iconOnly:!1}}),c$={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":22},ih=s.forwardRef(({children:t,className:e,tone:n,variant:r,size:i="md",iconOnly:o,isDisabled:l,disabled:a,isPending:u,title:d,value:c,...f},p)=>{const h=s.useCallback(b=>{b&&(d===void 0?b.removeAttribute("title"):b.title=d,c===void 0?b.removeAttribute("value"):b.value=String(c)),typeof p=="function"?p(b):p&&(p.current=b)},[p,d,c]),m=f;return s.createElement(th.Provider,{value:{size:i}},s.createElement(Kn,{...m,ref:h,isDisabled:l||a,isPending:u,className:Fi(e,b=>j(d$({tone:n,variant:r,size:i,iconOnly:o}),b))},Fi(t,(b,{isPending:y})=>s.createElement(s.Fragment,null,y?s.createElement("span",{className:"flex shrink-0 items-center","aria-hidden":!0},s.createElement(ba,{size:c$[i],className:"animate-spin"})):null,y&&o?null:b))))});ih.displayName="Button";const f$=({children:t})=>{const{size:e}=a$();return s.createElement("span",{className:u$({size:e})},t)},p$=({children:t})=>s.createElement("span",{className:"whitespace-nowrap"},t),Oe=ih;Oe.Icon=f$,Oe.Text=p$;const oh=H(["inline-flex items-center justify-center","border transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4 rounded-[4px]",md:"h-5 w-5 rounded-[6px]",lg:"h-5 w-5 rounded-[6px]"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-white border-light-200 hover:border-light-400"},{checked:!0,disabled:!1,className:"bg-primary-500 border-primary-500 text-white hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"bg-light-100 border-light-200 text-white"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),h$={sm:{width:12,height:9},md:{width:14,height:10},lg:{width:14,height:10}},lh=g.forwardRef(({id:t,checked:e,indeterminate:n=!1,disabled:r,size:i="md",onCheckedChange:o,className:l},a)=>{const u=()=>{r||o?.(!e)},d=h$[i],c=r?"text-white/80":"text-current";return g.createElement("button",{id:t,ref:a,type:"button",role:"checkbox","aria-checked":n?"mixed":e,disabled:r,onClick:u,className:X(oh({size:i,checked:e,disabled:r}),l)},e&&!n&&g.createElement("svg",{width:d.width,height:d.height,viewBox:"0 0 14 10",fill:"none",className:c},g.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),n&&g.createElement("span",{className:X(c,"bg-current rounded-sm",i==="sm"&&"h-0.5 w-3",(i==="md"||i==="lg")&&"h-0.5 w-4")}))});lh.displayName="Checkbox";const ah=g.createContext(null),m$=({value:t,defaultValue:e,onValueChange:n,children:r,className:i})=>{const[o,l]=g.useState(e),a=t??o,u=d=>{l(d),n?.(d)};return g.createElement(ah.Provider,{value:{value:a,onValueChange:u}},g.createElement("div",{role:"radiogroup",className:i},r))},g$=()=>{const t=g.useContext(ah);if(!t)throw new Error("RadioGroupItem must be used within RadioGroup");return t},b$=H(["relative inline-flex items-center justify-center","border rounded-full transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"border-light-200 bg-white hover:border-light-400"},{checked:!0,disabled:!1,className:"border-primary-500 bg-primary-500 hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"border-light-200 bg-light-100"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),y$=H(["rounded-full bg-white transition-all"],{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2 w-2"},checked:{true:"scale-100",false:"scale-0"}},defaultVariants:{size:"md",checked:!1}}),sh=g.forwardRef(({id:t,value:e,disabled:n,size:r="md",className:i},o)=>{const{value:l,onValueChange:a}=g$(),u=l===e;return g.createElement("button",{ref:o,id:t,type:"button",role:"radio","aria-checked":u,disabled:n,onClick:()=>{n||a?.(e)},className:X(b$({size:r,checked:u,disabled:n}),i)},g.createElement("span",{className:y$({size:r,checked:u})}))});sh.displayName="RadioGroupItem";const $$=H(["inline-flex items-center shrink-0 rounded-full p-[2px]","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-5 w-9",md:"h-6 w-11",lg:"h-6 w-11"},checked:{true:"justify-end",false:"justify-start"},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"},variant:{default:"",success:""}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-light-200"},{checked:!0,disabled:!1,variant:"default",className:"bg-primary-500 hover:bg-primary-800"},{checked:!0,disabled:!1,variant:"success",className:"bg-success-500 hover:bg-success-800"},{disabled:!0,className:"bg-light-100"},{variant:"default",className:"focus-visible:ring-primary-400"},{variant:"success",className:"focus-visible:ring-success-500"}],defaultVariants:{size:"md",checked:!1,disabled:!1,variant:"default"}}),v$=H("rounded-full shrink-0 shadow-[0_1px_3px_0_rgba(16,24,40,0.10),0_1px_2px_0_rgba(16,24,40,0.06)]",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},disabled:{true:"bg-light-50",false:"bg-white"}},defaultVariants:{size:"md",disabled:!1}}),uh=g.forwardRef(({checked:t=!1,size:e="md",variant:n="default",disabled:r,onCheckedChange:i,className:o},l)=>g.createElement("button",{ref:l,type:"button",role:"switch","aria-checked":t,disabled:r,onClick:()=>{r||i?.(!t)},className:X($$({size:e,checked:t,disabled:r,variant:n}),o)},g.createElement("span",{className:v$({size:e,disabled:r})})));uh.displayName="Toggle";const x$=1e3,C$=900,E$=H(["flex flex-col overflow-hidden","rounded-lg border border-light-200 bg-white shadow-lg","outline-none"]);function w$(t){g.useEffect(()=>{let e=0;const n=r=>{!t.current||e||r.target instanceof Node&&t.current.contains(r.target)||(e=requestAnimationFrame(()=>{e=0,window.dispatchEvent(new Event("resize"))}))};return document.addEventListener("scroll",n,!0),()=>{document.removeEventListener("scroll",n,!0),e&&cancelAnimationFrame(e)}},[t])}function S$(t){const e=()=>{t.hasAttribute("role")&&t.removeAttribute("role")};e();const n=new MutationObserver(e);return n.observe(t,{attributes:!0,attributeFilter:["role"]}),()=>n.disconnect()}const Qn=g.forwardRef(({className:t,style:e,matchTriggerWidth:n=!1,children:r,...i},o)=>{const l=g.useRef(null),a=g.useRef(null),u=g.useCallback(d=>{l.current=d,typeof o=="function"?o(d):o&&(o.current=d),a.current?.(),a.current=d?S$(d):null},[o]);return w$(l),g.createElement(xc,{ref:u,...i,style:{zIndex:x$,...n?{width:"var(--trigger-width)"}:void 0,...e},className:j(E$(),t)},r)});Qn.displayName="Popover";const P$=H(["relative rounded-lg text-caption-sm font-semibold text-white","bg-primary-900","shadow-lg","pointer-events-none","select-none"],{variants:{side:{top:"",bottom:"",left:"",right:""},hasSupportingText:{true:"p-3",false:"px-3 py-2"}},defaultVariants:{side:"top",hasSupportingText:!1}}),k$="mt-1 font-medium text-light-100",D$="overflow-visible border-0 bg-transparent shadow-none pointer-events-none",N$="block text-primary-900",T$=12,A$={top:"M0 0H16L8 6Z",bottom:"M0 6H16L8 0Z",left:"M0 0V16L6 8Z",right:"M6 0V16L0 8Z"};function I$({placement:t}){const e=t==="left"||t==="right";return g.createElement("svg",{"aria-hidden":"true",width:e?6:16,height:e?16:6,viewBox:e?"0 0 6 16":"0 0 16 6",className:N$,shapeRendering:"geometricPrecision"},g.createElement("path",{d:A$[t],fill:"currentColor"}))}const gi=({content:t,supportingText:e,side:n="top",open:r,defaultOpen:i=!1,disabled:o=!1,delay:l=100,className:a,children:u})=>{const[d,c]=g.useState(i),f=r??d,p=g.useRef(null),h=g.useRef(null),m=()=>{o||(h.current&&clearTimeout(h.current),l>0?h.current=window.setTimeout(()=>c(!0),l):c(!0))},b=()=>{o||(h.current&&(clearTimeout(h.current),h.current=null),c(!0))},y=()=>{h.current&&clearTimeout(h.current),l>0?h.current=window.setTimeout(()=>c(!1),l):c(!1)},$=()=>{h.current&&(clearTimeout(h.current),h.current=null),c(!1)};return g.createElement(g.Fragment,null,g.createElement("span",{ref:p,className:"inline-flex",onMouseEnter:m,onMouseLeave:y,onFocus:b,onBlur:$,tabIndex:0},u),g.createElement(Qn,{isNonModal:!0,triggerRef:p,isOpen:f,onOpenChange:c,placement:n,offset:T$,className:D$},({placement:x})=>g.createElement(g.Fragment,null,g.createElement("div",{role:"tooltip",className:X(P$({side:n,hasSupportingText:!!e}),a)},t,e&&g.createElement("p",{className:k$},e)),g.createElement(A4,{className:"react-aria-OverlayArrow data-[placement=bottom]:!bottom-[calc(100%-1px)]"},g.createElement(I$,{placement:x==null||x==="center"?n:x})))))};gi.displayName="Tooltip";const B$="text-light-800",F$="hover:text-light-900",M$="border-light-200",K$="group-hover:border-light-500",L$={brand:{bg:"bg-primary-50",border:"border-primary-300",hoverBg:"hover:bg-primary-100",hoverBorder:"hover:border-primary-500"},gray:{bg:"bg-white",border:"border-light-200",hoverBg:"hover:bg-light-100",hoverBorder:"hover:border-light-500"},error:{bg:"bg-error-50",border:"border-error-200",hoverBg:"hover:bg-error-100",hoverBorder:"hover:border-error-500"},warning:{bg:"bg-warning-50",border:"border-warning-200",hoverBg:"hover:bg-warning-100",hoverBorder:"hover:border-warning-500"},success:{bg:"bg-success-50",border:"border-success-200",hoverBg:"hover:bg-success-100",hoverBorder:"hover:border-success-500"},"blue-gray":{bg:"bg-blue-gray-50",border:"border-blue-gray-200",hoverBg:"hover:bg-blue-gray-100",hoverBorder:"hover:border-blue-gray-500"},"blue-light":{bg:"bg-blue-light-50",border:"border-blue-light-200",hoverBg:"hover:bg-blue-light-100",hoverBorder:"hover:border-blue-light-500"},indigo:{bg:"bg-indigo-50",border:"border-indigo-200",hoverBg:"hover:bg-indigo-100",hoverBorder:"hover:border-indigo-500"},purple:{bg:"bg-purple-50",border:"border-purple-200",hoverBg:"hover:bg-purple-100",hoverBorder:"hover:border-purple-500"},blue:{bg:"bg-blue-50",border:"border-blue-200",hoverBg:"hover:bg-blue-100",hoverBorder:"hover:border-blue-500"},pink:{bg:"bg-pink-50",border:"border-pink-200",hoverBg:"hover:bg-pink-100",hoverBorder:"hover:border-pink-500"},orange:{bg:"bg-orange-50",border:"border-orange-200",hoverBg:"hover:bg-orange-100",hoverBorder:"hover:border-orange-500"}},O$=H(["inline-flex items-center gap-1 border","font-medium transition-colors duration-150","select-none"],{variants:{size:{sm:"text-caption-sm py-[3px]",md:"text-caption-lg py-[2px]",lg:"text-caption-lg py-1"},shape:{rounded:"rounded-md",pill:"rounded-full"},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},interactive:{true:"group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{size:"sm",hasLeading:!1,className:"pl-2"},{size:"sm",hasLeading:!0,className:"pl-1"},{size:"sm",hasTrailing:!1,className:"pr-2"},{size:"sm",hasTrailing:!0,className:"pr-1"},{size:"md",hasLeading:!1,className:"pl-[9px]"},{size:"md",hasLeading:!0,className:"pl-1"},{size:"md",hasTrailing:!1,className:"pr-[9px]"},{size:"md",hasTrailing:!0,className:"pr-1"},{size:"lg",hasLeading:!1,className:"pl-2.5"},{size:"lg",hasLeading:!0,className:"pl-1.5"},{size:"lg",hasTrailing:!1,className:"pr-2.5"},{size:"lg",hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"rounded",hasLeading:!1,hasTrailing:!1,interactive:!1,disabled:!1}}),z$=H(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"},checked:{true:"bg-primary-500 border-primary-500",false:""}},defaultVariants:{size:"sm",checked:!1}}),_$="shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800",V$=H(["shrink-0 inline-flex items-center justify-center rounded-[3px]","hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[20px]"}},defaultVariants:{size:"sm"}}),dh=/^#([0-9a-f]{6})$/i,ch=t=>dh.test(t.trim()),fh=(t,e)=>{const n=dh.exec(t.trim());if(!n)return;const r=parseInt(n[1],16),i=r>>16&255,o=r>>8&255,l=r&255;return`rgba(${i}, ${o}, ${l}, ${e})`},Pl=({children:t,size:e="sm",shape:n="rounded",icon:r,checked:i,onCheckedChange:o,onClose:l,count:a,disabled:u=!1,className:d,color:c="gray",customColor:f})=>{const p=o!==void 0,h=i!==void 0||!!r,m=!!l||a!==void 0,b=p&&!u,y=L$[c],$=!!(f&&ch(f)),x=$?{borderColor:f,backgroundColor:fh(f,.12)}:void 0,v=()=>{u||o?.(!i)},C=k=>{!p||u||(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),v())};return g.createElement("div",{role:p?"checkbox":void 0,"aria-checked":p?!!i:void 0,"aria-disabled":u||void 0,tabIndex:p&&!u?0:void 0,onClick:p?v:void 0,onKeyDown:C,style:x,className:X(O$({size:e,shape:n,hasLeading:h,hasTrailing:m,interactive:b,disabled:u}),!$&&y.bg,!$&&y.border,B$,b&&!$&&y.hoverBg,b&&!$&&y.hoverBorder,b&&F$,d)},i!==void 0&&g.createElement("span",{className:X(z$({checked:i,size:e}),!i&&M$,b&&!i&&K$)},i&&g.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},g.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),r,g.createElement("span",{className:"whitespace-nowrap"},t),a!==void 0&&g.createElement("span",{className:_$},a),l&&g.createElement("button",{type:"button","aria-label":"Remove",disabled:u,onClick:k=>{k.stopPropagation(),l()},className:V$({size:e})},g.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:e==="sm"?"size-2":e==="md"?"size-2.5":"size-3"},g.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};Pl.displayName="Tag";const H$={brand:{solidBg:"bg-primary-50",solidBorder:"border-primary-300",solidText:"text-primary-500",outlineBorder:"border-primary-500",outlineText:"text-primary-700",hoverSolidBg:"hover:bg-primary-100",hoverSolidBorder:"hover:border-primary-500",hoverSolidText:"hover:text-primary-800",hoverOutlineBg:"hover:bg-primary-50",hoverOutlineBorder:"hover:border-primary-300",hoverOutlineText:"hover:text-primary-800",checkboxHoverBorder:"group-hover:border-primary-500"},gray:{solidBg:"bg-light-50",solidBorder:"border-light-200",solidText:"text-light-700",outlineBorder:"border-light-600",outlineText:"text-light-700",hoverSolidBg:"hover:bg-light-100",hoverSolidBorder:"hover:border-light-500",hoverSolidText:"hover:text-light-900",hoverOutlineBg:"hover:bg-light-50",hoverOutlineBorder:"hover:border-light-300",hoverOutlineText:"hover:text-light-900",checkboxHoverBorder:"group-hover:border-light-500"},error:{solidBg:"bg-error-50",solidBorder:"border-error-200",solidText:"text-error-700",outlineBorder:"border-error-600",outlineText:"text-error-700",hoverSolidBg:"hover:bg-error-100",hoverSolidBorder:"hover:border-error-500",hoverSolidText:"hover:text-error-800",hoverOutlineBg:"hover:bg-error-50",hoverOutlineBorder:"hover:border-error-300",hoverOutlineText:"hover:text-error-800",checkboxHoverBorder:"group-hover:border-error-500"},warning:{solidBg:"bg-warning-50",solidBorder:"border-warning-200",solidText:"text-warning-700",outlineBorder:"border-warning-600",outlineText:"text-warning-700",hoverSolidBg:"hover:bg-warning-100",hoverSolidBorder:"hover:border-warning-500",hoverSolidText:"hover:text-warning-800",hoverOutlineBg:"hover:bg-warning-50",hoverOutlineBorder:"hover:border-warning-300",hoverOutlineText:"hover:text-warning-800",checkboxHoverBorder:"group-hover:border-warning-500"},success:{solidBg:"bg-success-50",solidBorder:"border-success-200",solidText:"text-success-700",outlineBorder:"border-success-600",outlineText:"text-success-700",hoverSolidBg:"hover:bg-success-100",hoverSolidBorder:"hover:border-success-500",hoverSolidText:"hover:text-success-800",hoverOutlineBg:"hover:bg-success-50",hoverOutlineBorder:"hover:border-success-300",hoverOutlineText:"hover:text-success-800",checkboxHoverBorder:"group-hover:border-success-500"},"blue-gray":{solidBg:"bg-blue-gray-50",solidBorder:"border-blue-gray-200",solidText:"text-blue-gray-700",outlineBorder:"border-blue-gray-600",outlineText:"text-blue-gray-700",hoverSolidBg:"hover:bg-blue-gray-100",hoverSolidBorder:"hover:border-blue-gray-500",hoverSolidText:"hover:text-blue-gray-800",hoverOutlineBg:"hover:bg-blue-gray-50",hoverOutlineBorder:"hover:border-blue-gray-300",hoverOutlineText:"hover:text-blue-gray-800",checkboxHoverBorder:"group-hover:border-blue-gray-500"},"blue-light":{solidBg:"bg-blue-light-50",solidBorder:"border-blue-light-200",solidText:"text-blue-light-700",outlineBorder:"border-blue-light-600",outlineText:"text-blue-light-700",hoverSolidBg:"hover:bg-blue-light-100",hoverSolidBorder:"hover:border-blue-light-500",hoverSolidText:"hover:text-blue-light-800",hoverOutlineBg:"hover:bg-blue-light-50",hoverOutlineBorder:"hover:border-blue-light-300",hoverOutlineText:"hover:text-blue-light-800",checkboxHoverBorder:"group-hover:border-blue-light-500"},indigo:{solidBg:"bg-indigo-50",solidBorder:"border-indigo-200",solidText:"text-indigo-700",outlineBorder:"border-indigo-600",outlineText:"text-indigo-700",hoverSolidBg:"hover:bg-indigo-100",hoverSolidBorder:"hover:border-indigo-500",hoverSolidText:"hover:text-indigo-800",hoverOutlineBg:"hover:bg-indigo-50",hoverOutlineBorder:"hover:border-indigo-300",hoverOutlineText:"hover:text-indigo-800",checkboxHoverBorder:"group-hover:border-indigo-500"},purple:{solidBg:"bg-purple-50",solidBorder:"border-purple-200",solidText:"text-purple-700",outlineBorder:"border-purple-600",outlineText:"text-purple-700",hoverSolidBg:"hover:bg-purple-100",hoverSolidBorder:"hover:border-purple-500",hoverSolidText:"hover:text-purple-800",hoverOutlineBg:"hover:bg-purple-50",hoverOutlineBorder:"hover:border-purple-300",hoverOutlineText:"hover:text-purple-800",checkboxHoverBorder:"group-hover:border-purple-500"},blue:{solidBg:"bg-blue-50",solidBorder:"border-blue-200",solidText:"text-blue-700",outlineBorder:"border-blue-600",outlineText:"text-blue-700",hoverSolidBg:"hover:bg-blue-100",hoverSolidBorder:"hover:border-blue-500",hoverSolidText:"hover:text-blue-800",hoverOutlineBg:"hover:bg-blue-50",hoverOutlineBorder:"hover:border-blue-300",hoverOutlineText:"hover:text-blue-800",checkboxHoverBorder:"group-hover:border-blue-500"},pink:{solidBg:"bg-pink-50",solidBorder:"border-pink-200",solidText:"text-pink-700",outlineBorder:"border-pink-600",outlineText:"text-pink-700",hoverSolidBg:"hover:bg-pink-100",hoverSolidBorder:"hover:border-pink-500",hoverSolidText:"hover:text-pink-800",hoverOutlineBg:"hover:bg-pink-50",hoverOutlineBorder:"hover:border-pink-300",hoverOutlineText:"hover:text-pink-800",checkboxHoverBorder:"group-hover:border-pink-500"},orange:{solidBg:"bg-orange-50",solidBorder:"border-orange-200",solidText:"text-orange-700",outlineBorder:"border-orange-600",outlineText:"text-orange-700",hoverSolidBg:"hover:bg-orange-100",hoverSolidBorder:"hover:border-orange-500",hoverSolidText:"hover:text-orange-800",hoverOutlineBg:"hover:bg-orange-50",hoverOutlineBorder:"hover:border-orange-300",hoverOutlineText:"hover:text-orange-800",checkboxHoverBorder:"group-hover:border-orange-500"}},j$=H(["inline-flex items-center gap-1 border font-medium","transition-colors duration-150"],{variants:{size:{sm:"text-caption-sm py-0.5",md:"text-caption-lg py-0.5",lg:"text-caption-lg py-1"},shape:{pill:"rounded-full",badge:""},modern:{true:"rounded-md shadow-xs",false:""},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},iconOnly:{true:"p-[5px]",false:""},interactive:{true:"group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{shape:"badge",size:"sm",modern:!1,className:"rounded-md"},{shape:"badge",size:"md",modern:!1,className:"rounded-md"},{shape:"badge",size:"lg",modern:!1,className:"rounded-lg"},{size:"sm",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-2"},{size:"sm",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-1.5"},{size:"sm",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"sm",iconOnly:!1,hasTrailing:!1,className:"pr-2"},{size:"sm",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"md",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"md",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"md",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"md",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"lg",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-3"},{size:"lg",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"lg",iconOnly:!1,hasLeading:!0,className:"pl-1.5"},{size:"lg",shape:"pill",iconOnly:!1,hasTrailing:!1,className:"pr-3"},{size:"lg",shape:"badge",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"lg",iconOnly:!1,hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"pill",modern:!1,hasLeading:!1,hasTrailing:!1,iconOnly:!1,interactive:!1,disabled:!1}}),R$=H(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"}},defaultVariants:{size:"sm"}}),W$=H(["shrink-0 inline-flex items-center justify-center rounded","hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"],{variants:{size:{sm:"size-[16px]",md:"size-[16px]",lg:"size-[16px]"}},defaultVariants:{size:"sm"}}),ph=({children:t,size:e="sm",shape:n="pill",variant:r="solid",color:i="brand",customColor:o,modern:l=!1,icon:a,trailingIcon:u,checked:d,onCheckedChange:c,onClose:f,iconOnly:p=!1,disabled:h=!1,className:m})=>{const b=c!==void 0,y=d!==void 0||!!a,$=!!f||!!u,x=b&&!h,v=H$[i],C=!!(o&&ch(o)),k=C?{borderColor:o,color:o,backgroundColor:r==="outline"?"transparent":fh(o,.1)}:void 0,P=()=>{h||c?.(!d)},N=w=>{!b||h||(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),P())};return g.createElement("div",{role:b?"checkbox":void 0,"aria-checked":b?!!d:void 0,"aria-disabled":h||void 0,tabIndex:b&&!h?0:void 0,onClick:b?P:void 0,onKeyDown:N,style:k,className:X(j$({size:e,shape:n,modern:l,hasLeading:y,hasTrailing:$,iconOnly:p,interactive:x,disabled:h}),!C&&(r==="outline"?X("bg-transparent",v.outlineBorder,v.outlineText):X(v.solidBg,v.solidBorder,v.solidText)),x&&!C&&(r==="outline"?X(v.hoverOutlineBg,v.hoverOutlineBorder,v.hoverOutlineText):X(v.hoverSolidBg,v.hoverSolidBorder,v.hoverSolidText)),m)},d!==void 0&&g.createElement("span",{className:X(R$({size:e}),d?"bg-primary-500 border-primary-500":!C&&v.solidBorder,x&&!d&&!C&&v.checkboxHoverBorder),style:!d&&C?{borderColor:o}:void 0},d&&g.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},g.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),a,!p&&g.createElement("span",{className:"whitespace-nowrap"},t),u,f&&g.createElement("button",{type:"button","aria-label":"Remove",disabled:h,onClick:w=>{w.stopPropagation(),f()},className:W$({size:e})},g.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:e==="sm"?"size-2":"size-2.5"},g.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};ph.displayName="Badge";const U$={brand:{bg50:"bg-primary-50",hoverBg100:"hover:bg-primary-100",border200:"border-primary-200",border500:"border-primary-500",text500:"text-primary-500"},gray:{bg50:"bg-light-50",hoverBg100:"hover:bg-light-100",border200:"border-light-200",border500:"border-light-500",text500:"text-light-500"},error:{bg50:"bg-error-50",hoverBg100:"hover:bg-error-100",border200:"border-error-200",border500:"border-error-500",text500:"text-error-500"},warning:{bg50:"bg-warning-50",hoverBg100:"hover:bg-warning-100",border200:"border-warning-200",border500:"border-warning-500",text500:"text-warning-500"},success:{bg50:"bg-success-50",hoverBg100:"hover:bg-success-100",border200:"border-success-200",border500:"border-success-500",text500:"text-success-500"}},G$={md:{outerPad:{leading:"pl-1 pr-2.5 py-1",trailing:"pl-3 pr-1 py-1"},gap:"gap-2",chipPad:"px-2 py-0.5",text:"text-caption-lg"},lg:{outerPad:{leading:"pl-1.5 pr-3 py-1.5",trailing:"pl-3 pr-1.5 py-1.5"},gap:"gap-2",chipPad:"px-2.5 py-[3px]",text:"text-body-sm"}},hh=({badgeLabel:t,children:e,size:n="md",theme:r="light",color:i="brand",badgePosition:o="leading",icon:l,onClick:a,className:u})=>{const d=U$[i],c=G$[n],f=r==="modern",p=r==="outline",h=X("inline-flex items-center border transition-colors duration-150",c.gap,c.outerPad[o],f?"rounded-lg bg-light-50 border-light-200 shadow-xs":p?X("rounded-full bg-white border-[1.5px]",d.border500):X("rounded-full",d.bg50,d.border200,d.hoverBg100),a&&"cursor-pointer",u),m=X("inline-flex shrink-0 items-center gap-1 border font-medium whitespace-nowrap",c.chipPad,c.text,f?"rounded-md bg-white border-light-200 text-light-800":p?X("rounded-full bg-white border-[1.5px]",d.border500,d.text500):X("rounded-full bg-white",d.border200,d.text500)),b=X("inline-flex items-center gap-1 font-medium",c.text,f?"text-light-800":d.text500),y=g.createElement("span",{className:m},f&&g.createElement("span",{className:"size-2 shrink-0 rounded-full bg-light-400"}),t);return g.createElement("div",{role:a?"button":void 0,tabIndex:a?0:void 0,onClick:a,className:h},o==="leading"&&y,g.createElement("span",{className:b},e,l),o==="trailing"&&y)};hh.displayName="BadgeGroup";const Y$=({size:t})=>{const e=t*.09,n=(t-e)/2,r=2*Math.PI*n;return g.createElement("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,fill:"none",className:"animate-spin"},g.createElement("circle",{cx:t/2,cy:t/2,r:n,strokeWidth:e,className:"stroke-light-100"}),g.createElement("circle",{cx:t/2,cy:t/2,r:n,strokeWidth:e,strokeLinecap:"round",strokeDasharray:`${r*.25} ${r}`,className:"stroke-primary-600"}))},X$=({size:t})=>{const e=g.useId(),n=t*.125,r=(t-n)/2,i=2*Math.PI*r;return g.createElement("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,fill:"none",className:"animate-spin text-primary-600"},g.createElement("defs",null,g.createElement("linearGradient",{id:e,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},g.createElement("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"1"}),g.createElement("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0"}))),g.createElement("circle",{cx:t/2,cy:t/2,r,strokeWidth:n,className:"stroke-light-100"}),g.createElement("circle",{cx:t/2,cy:t/2,r,strokeWidth:n,strokeLinecap:"round",stroke:`url(#${e})`,strokeDasharray:`${i*.75} ${i}`}))},q$=({size:t})=>{const n=Math.max(t*.1,3),r=(t-n)/2;return g.createElement("div",{className:"relative animate-spin",style:{width:t,height:t}},Array.from({length:12}).map((i,o)=>{const l=30*o,a=.15+.85*o/11;return g.createElement("span",{key:o,className:"absolute rounded-full bg-primary-600 top-1/2 left-1/2",style:{width:n,height:n,opacity:a,marginTop:-n/2,marginLeft:-n/2,transform:`rotate(${l}deg) translate(${r}px) rotate(${-l}deg)`}})}))},Z$={sm:{box:32,gapClass:"gap-4",textClass:"text-caption-lg"},md:{box:48,gapClass:"gap-4",textClass:"text-caption-lg"},lg:{box:56,gapClass:"gap-4",textClass:"text-body-lg"},xl:{box:64,gapClass:"gap-5",textClass:"text-body-lg"}},mh=({size:t="sm",style:e="line-simple",supportingText:n=!0,label:r="Loading...",className:i})=>{const{box:o,gapClass:l,textClass:a}=Z$[t],u=typeof r=="string"?r:"Loading";return g.createElement("div",{"aria-live":"polite","aria-atomic":"true"},g.createElement(M3,{isIndeterminate:!0,"aria-label":u,className:j("inline-flex flex-col items-center",l,i)},e==="line-simple"&&g.createElement(Y$,{size:o}),e==="line-spinner"&&g.createElement(X$,{size:o}),e==="dot-circle"&&g.createElement(q$,{size:o}),n&&g.createElement("p",{className:j("font-nunito font-medium text-light-700 whitespace-nowrap",a)},r)))};mh.displayName="Loading";const gh=({className:t,style:e})=>g.createElement("svg",{viewBox:"0 0 24 24",fill:"none",className:t,style:e},g.createElement("path",{d:"M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z",stroke:"currentColor",strokeWidth:"1.75"}),g.createElement("path",{d:"M3.75 20.25a8.25 8.25 0 0 1 16.5 0",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})),bh=({className:t})=>g.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:t},g.createElement("circle",{cx:"10",cy:"10",r:"9",className:"fill-primary-500 stroke-white",strokeWidth:"1.5"}),g.createElement("path",{d:"M6 10.2 8.6 12.8 14 7",stroke:"white",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})),J$={xs:{box:24,borderWidth:"0.5px",statusSize:6,badgeSize:10,textClass:"text-caption-sm"},sm:{box:32,borderWidth:"0.5px",statusSize:8,badgeSize:12,textClass:"text-caption-lg"},md:{box:40,borderWidth:"0.75px",statusSize:10,badgeSize:14,textClass:"text-body-sm"},lg:{box:48,borderWidth:"0.75px",statusSize:12,badgeSize:16,textClass:"text-body-lg"},xl:{box:56,borderWidth:"0.75px",statusSize:14,badgeSize:18,textClass:"text-h6"},"2xl":{box:64,borderWidth:"0.75px",statusSize:16,badgeSize:20,textClass:"text-h5 leading-7"}},Q$="#17B26A",bi={brand:{bg:"bg-primary-500",text:"text-white",iconText:"text-white"},gray:{bg:"bg-light-50",text:"text-light-500",iconText:"text-light-300"},error:{bg:"bg-error-500",text:"text-white",iconText:"text-white"},warning:{bg:"bg-warning-500",text:"text-white",iconText:"text-white"},success:{bg:"bg-success-500",text:"text-white",iconText:"text-white"}},yi=({src:t,alt:e,initials:n,size:r="md",color:i="gray",status:o="none",statusIcon:l,contrastBorder:a=!0,className:u})=>{const{box:d,borderWidth:c,statusSize:f,badgeSize:p,textClass:h}=J$[r],m=t?"image":n!==void 0?"initials":"placeholder";return g.createElement("div",{className:X("relative inline-block shrink-0 rounded-full",u),style:{width:d,height:d}},m==="image"&&g.createElement("img",{src:t,alt:e??"",className:"absolute inset-0 size-full rounded-full object-cover"}),m==="placeholder"&&g.createElement("div",{className:X("absolute inset-0 flex items-center justify-center rounded-full",bi[i].bg)},g.createElement(gh,{className:bi[i].iconText,style:{width:d*.55,height:d*.55}})),m==="initials"&&g.createElement("div",{className:X("absolute inset-0 flex items-center justify-center rounded-full font-semibold",bi[i].bg,bi[i].text,h)},n),a&&g.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",style:{borderWidth:c,borderStyle:"solid"}}),o==="online"&&g.createElement("span",{className:"absolute bottom-0 right-0 rounded-full border-[1.5px] border-white",style:{width:f,height:f,backgroundColor:Q$}}),o==="company"&&g.createElement("div",{className:"absolute bottom-0 right-0 flex items-center justify-center overflow-hidden rounded-full border-[1.5px] border-white bg-white",style:{width:p,height:p}},l),o==="verified"&&g.createElement("div",{className:"absolute bottom-0 right-0",style:{width:p,height:p}},g.createElement(bh,{className:"size-full"})))};yi.displayName="Avatar";const yh=[{bg:"bg-primary-100",text:"text-primary-600"},{bg:"bg-secondary-100",text:"text-secondary-600"},{bg:"bg-purple-100",text:"text-purple-600"},{bg:"bg-pink-100",text:"text-pink-600"},{bg:"bg-orange-100",text:"text-orange-600"},{bg:"bg-teal-100",text:"text-teal-600"},{bg:"bg-indigo-100",text:"text-indigo-600"},{bg:"bg-rose-100",text:"text-rose-600"}],ev=t=>{let e=0;for(let r=0;r<t.length;r+=1)e=e*31+t.charCodeAt(r)|0;const n=Math.abs(e)%yh.length;return yh[n]},tv={xs:{box:24,overlap:-4,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-sm"},sm:{box:32,overlap:-8,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-lg"},md:{box:40,overlap:-12,contrastBorderWidth:"0.75px",plusIconSize:20,textClass:"text-body-sm"}},$h=({avatars:t,max:e,size:n="xs",onAdd:r,className:i})=>{const{box:o,overlap:l,contrastBorderWidth:a,textClass:u}=tv[n],d=e?t.slice(0,e):t,c=e&&t.length>e?t.length-e:0;return g.createElement("div",{className:X("inline-flex items-start gap-2",i)},g.createElement("div",{className:"flex items-start"},d.map((f,p)=>{const h=p<d.length-1||c>0;return g.createElement(gi,{key:p,content:f.label,disabled:!f.label,side:"top"},g.createElement("div",{className:"relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",style:{width:o,height:o,marginRight:h?l:0}},f.src?g.createElement("img",{src:f.src,alt:f.alt??"",className:"size-full object-cover"}):(()=>{const{text:m,bg:b}=ev(String(f.label??f.alt??f.initials??p));return g.createElement("div",{className:X("flex size-full items-center justify-center font-semibold",f.initialsBgColor??b,f.initialsTextColor??m,u)},f.initials)})(),g.createElement("div",{className:X("pointer-events-none absolute inset-0 rounded-full",f.borderColor??"border-black/[0.08]"),style:{borderWidth:a,borderStyle:"solid"}})))}),c>0&&g.createElement(gi,{content:t.slice(e).map((f,p)=>g.createElement("div",{key:p},f.label)),disabled:!t.slice(e).some(f=>f.label),side:"top"},g.createElement("div",{className:"relative flex shrink-0 items-center justify-center rounded-full border-2 border-white bg-light-100",style:{width:o,height:o}},g.createElement("span",{className:X("font-semibold text-light-600",u)},"+",c)))),r&&g.createElement("button",{type:"button",onClick:r,"aria-label":"Add",className:"flex shrink-0 items-center justify-center rounded-full border border-dashed border-light-300 bg-white text-light-500 hover:bg-light-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",style:{width:o,height:o}},g.createElement("svg",{width:o*.4,height:o*.4,viewBox:"0 0 20 20",fill:"none"},g.createElement("path",{d:"M10 4v12M4 10h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}))))};$h.displayName="AvatarGroup";const nv={xs:{nameClass:"text-caption-sm",subtitleClass:"text-caption-sm"},sm:{nameClass:"text-caption-lg",subtitleClass:"text-caption-sm"},md:{nameClass:"text-caption-lg",subtitleClass:"text-caption-lg"},lg:{nameClass:"text-body-sm",subtitleClass:"text-body-sm"},xl:{nameClass:"text-body-lg",subtitleClass:"text-body-sm"}},vh=({name:t,subtitle:e,src:n,initials:r,size:i="xs",status:o="none",statusIcon:l,className:a})=>{const{nameClass:u,subtitleClass:d}=nv[i];return g.createElement("div",{className:X("inline-flex items-center gap-2",a)},g.createElement(yi,{src:n,initials:r,size:i,status:o,statusIcon:l}),g.createElement("div",{className:"flex flex-col items-start whitespace-nowrap"},g.createElement("span",{className:X("font-bold text-light-800",u)},t),e&&g.createElement("span",{className:X("font-normal text-light-700",d)},e)))};vh.displayName="AvatarLabelGroup";const rv={sm:{box:72,ringWidth:3,shadowClass:"shadow-md",iconSize:36,textClass:"text-h4",verifiedSize:20,verifiedOffset:0},md:{box:96,ringWidth:4,shadowClass:"shadow-lg",iconSize:48,textClass:"text-h3",verifiedSize:24,verifiedOffset:0},lg:{box:160,ringWidth:4,shadowClass:"shadow-lg",iconSize:80,textClass:"text-h1",verifiedSize:32,verifiedOffset:4}},xh=({src:t,alt:e,initials:n,size:r="sm",verified:i=!0,contrastBorder:o=!0,className:l})=>{const{box:a,ringWidth:u,shadowClass:d,iconSize:c,textClass:f,verifiedSize:p,verifiedOffset:h}=rv[r],m=t?"image":n!==void 0?"initials":"placeholder";return g.createElement("div",{className:X("relative rounded-full",l),style:{width:a,height:a}},g.createElement("div",{className:X("absolute inset-0 overflow-hidden rounded-full border-white",d,m!=="image"&&"bg-light-100"),style:{borderWidth:u,borderStyle:"solid"}},m==="image"&&g.createElement("img",{src:t,alt:e??"",className:"absolute inset-0 size-full rounded-full object-cover"}),o&&g.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border border-black/[0.08]"}),m==="placeholder"&&g.createElement("div",{className:"absolute inset-0 flex items-center justify-center"},g.createElement(gh,{className:"text-light-300",style:{width:c,height:c}})),m==="initials"&&g.createElement("div",{className:X("absolute inset-0 flex items-center justify-center font-semibold text-light-500",f)},n)),i&&g.createElement("div",{className:"absolute",style:{width:p,height:p,bottom:h,right:h}},g.createElement(bh,{className:"size-full"})))};xh.displayName="AvatarProfilePhoto";const iv={"button-gray":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},"button-white":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},"button-primary":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},underline:{sm:"h-8 px-1 pb-3 text-sm gap-2",md:"h-9 px-1 pb-3 text-base gap-2"},"underline-filled":{sm:"h-11 p-3 text-sm gap-2",md:"h-12 p-3 text-base gap-2"},line:{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3.5 py-2.5 text-base gap-2"}},ov={"button-gray":"rounded-md","button-white":"rounded-md","button-primary":"rounded-md",underline:"rounded-none","underline-filled":"rounded-none",line:"rounded-none"},lv={"button-gray":{active:"bg-light-50 text-light-700",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-light-50 hover:text-light-700",hasFocusRing:!0},"button-white":{active:"bg-white text-light-700 shadow-sm",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-white hover:text-light-700 hover:shadow-sm",hasFocusRing:!0},"button-primary":{active:"bg-primary-50 text-primary-700",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-primary-50 hover:text-primary-700",hasFocusRing:!0},underline:{active:"border-b-2 border-primary-500 text-primary-700",inactive:"border-b-2 border-transparent text-light-500",hoverInactive:"hover:border-primary-500 hover:text-primary-700",hasFocusRing:!1},"underline-filled":{active:"bg-primary-50 border-b-2 border-primary-500 text-primary-700",inactive:"bg-transparent border-b-2 border-transparent text-light-500",hoverInactive:"hover:bg-primary-50 hover:border-primary-500 hover:text-primary-700",hasFocusRing:!1},line:{active:"bg-transparent border-l-2 border-primary-500 text-primary-700",inactive:"bg-transparent border-l-2 border-transparent text-light-500",hoverInactive:"hover:border-primary-500 hover:text-primary-700",hasFocusRing:!0}},av="inline-flex items-center justify-center rounded-full border border-light-200 bg-light-50 px-2 py-0.5 text-caption-sm font-medium text-light-700",sv={"button-gray":{gapClass:"gap-1",hasHairline:!1},"button-white":{gapClass:"gap-1",hasHairline:!1},"button-primary":{gapClass:"gap-1",hasHairline:!1},underline:{gapClass:"gap-3",hasHairline:!0},"underline-filled":{gapClass:"gap-3",hasHairline:!0},line:{gapClass:"gap-1",hasHairline:!1}},Ch=({children:t,variant:e="button-primary",size:n="sm",fullWidth:r=!1,count:i,iconLeft:o,iconRight:l,disabled:a=!1,onClick:u,className:d,id:c,active:f})=>{const p=lv[e];return g.createElement(Ip,{id:c,isDisabled:a,onPress:()=>u?.(),className:({isSelected:h})=>j("inline-flex items-center justify-center font-semibold transition-colors duration-150",iv[e][n],ov[e],h?p.active:p.inactive,!h&&!a&&p.hoverInactive,p.hasFocusRing&&"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",r&&"w-full",a?"cursor-not-allowed opacity-60":"cursor-pointer",d)},o&&g.createElement("span",{className:"shrink-0"},o),g.createElement("span",{className:"whitespace-nowrap"},t),i!==void 0&&g.createElement("span",{className:av},i),l&&g.createElement("span",{className:"shrink-0"},l))};Ch.displayName="Tab";const Eh=({children:t,variant:e="button-primary",orientation:n="horizontal",boxed:r=!1,"aria-label":i="Tabs",keyboardActivation:o,disabledKeys:l,className:a})=>{const{gapClass:u,hasHairline:d}=sv[e],c=g.Children.toArray(t),f=c.map((b,y)=>String(y)),p=c.findIndex(b=>b.props.active),h=f[p>=0?p:0],m=b=>{const y=f.indexOf(String(b));y>=0&&c[y].props.onClick?.()};return g.createElement(Tp,{orientation:n,keyboardActivation:o,disabledKeys:l,selectedKey:c.length?h:void 0,onSelectionChange:m},g.createElement(Ap,{"aria-label":i,className:j("inline-flex",n==="vertical"?"flex-col items-stretch":"flex-row items-center",u,r&&"rounded-lg border border-light-200 bg-light-50 p-1",d&&n==="horizontal"&&!r&&"border-b border-light-200",a)},c.map((b,y)=>g.cloneElement(b,{key:f[y],id:f[y]}))))};Eh.displayName="TabList";const wh=9,st=1,uv=30;function Sh(t){const e=wh,n=st-t,r=n?`calc(100% - ${n}px)`:"100%",i=`calc(100% - ${e+1}px)`,o=`calc(100% - ${e}px)`;return`shape(${[`from ${-t}px 100%`,...n?[`vline to ${r}`]:[],`curve to ${e}px ${i} with ${e}px ${r}`,`vline to ${e-t}px`,`curve to ${2*e-t}px 0 with ${e}px 0`,`hline to calc(100% - ${2*e-t}px)`,`curve to ${o} ${e-t}px with ${o} 0`,`vline to ${i}`,`curve to ${t?`calc(100% + ${t}px)`:"100%"} ${r} with ${o} ${r}`,...n?["vline to 100%"]:[]].join(", ")})`}const Ph=Sh(0),kh=Sh(st),Dh={default:{box:"h-12 shrink-0",padX:uv},"max-width":{box:"h-9 min-w-px flex-1",padX:wh}},dv={clipPath:Ph,paddingInline:`${st}px`},cv={paddingInline:`${st}px`},Nh=g.forwardRef(({type:t="default",disabled:e=!1,unstyled:n=!1,iconLeft:r,trailing:i,tooltip:o,children:l,className:a,style:u,contentClassName:d,contentStyle:c,onClick:f,id:p,active:h,...m},b)=>{const{box:y,padX:$}=Dh[t];return g.createElement(Ip,{ref:b,id:p,isDisabled:e,onPress:()=>f?.(void 0),...m,className:({isSelected:x})=>j("group relative flex transition-colors duration-150 focus-visible:outline-none",!n&&"rounded-t-lg pt-px",!n&&y,e&&"cursor-not-allowed opacity-60",!e&&!x&&"cursor-pointer",!n&&x&&"-mb-px bg-light-200 focus-visible:bg-primary-400",x&&"cursor-default",a),style:({isSelected:x})=>n?u:{...x?dv:cv,...u}},({isSelected:x})=>{const v=!e&&!x,C=x?{clipPath:kh,paddingInline:`${$-st}px`}:{paddingInline:`${$-st}px`};return g.createElement("span",{title:o,className:j("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!n&&"rounded-t-lg",!n&&(x?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!n&&v&&"group-hover:bg-light-100 group-hover:text-light-800",!n&&v&&"group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",d),style:n?c:{...C,...c}},r&&g.createElement("span",{className:"shrink-0"},r),g.createElement("span",{className:"overflow-hidden text-ellipsis"},l),i)})});Nh.displayName="TabBrowser";const fv=48,Th=({children:t,separators:e=!1,trailingSlot:n,overflow:r=!1,overflowLabel:i,className:o})=>{const l=g.Children.toArray(t),a=g.useMemo(()=>l.map((w,D)=>String(D)),[l.length]),u=l.findIndex(w=>w.props.active),d=g.useRef(null),c=g.useRef(null),f=g.useRef(new Map),p=g.useRef(new Map),[h,m]=g.useState(l.length),b=a.join("|");g.useLayoutEffect(()=>{r&&(p.current.clear(),m(l.length))},[r,b]);const y=g.useCallback(()=>{const w=d.current;if(!w||l.length===0||(p.current.size<l.length&&a.forEach(R=>{const E=f.current.get(R);E&&p.current.set(R,E.getBoundingClientRect().width)}),p.current.size<l.length))return;const D=w.clientWidth,A=c.current?.getBoundingClientRect().width||fv;let L=0,_=0;for(;_<a.length;_++){const R=p.current.get(a[_])??0,E=_<a.length-1?A:0;if(L+R+E>D&&_>0)break;L+=R}m(R=>R===_?R:_)},[l.length,a]),$=h===l.length;g.useLayoutEffect(()=>{r&&y()},[r,y,$]),g.useEffect(()=>{if(!r)return;const w=d.current;if(!w||typeof ResizeObserver>"u")return;const D=new ResizeObserver(()=>y());return D.observe(w),()=>D.disconnect()},[r,y]);const x=r&&h<l.length?Math.max(h,1):l.length,v=r?u>=0&&u>=x?[...Array(x-1).keys(),u]:[...Array(x).keys()]:a.map((w,D)=>D),C=new Set(v),k=a.map((w,D)=>D).filter(w=>!C.has(w)),P=u>=0?a[u]:v.length?a[v[0]]:void 0,N=w=>{const D=a.indexOf(String(w));D>=0&&l[D].props.onClick?.(void 0)};return g.createElement(Tp,{selectedKey:l.length?P:void 0,onSelectionChange:N,className:j("flex items-end",r&&"min-w-0 flex-1",o)},(()=>{const w=g.createElement(Ap,{"aria-label":"Tabs",className:j("flex min-w-0 items-end",r?"shrink-0":"flex-1")},v.map((D,A)=>{const L=l[D],_=A===v.length-1&&k.length===0,R=v[A+1],E=L.props.active||l[R]?.props.active;return g.cloneElement(L,{key:a[D],id:a[D],ref:r?F=>{F?f.current.set(a[D],F):f.current.delete(a[D])}:void 0,className:j(L.props.className,e&&!_&&!E&&"after:absolute after:-right-px after:bottom-3 after:h-5 after:w-px after:bg-light-200 after:content-['']")})}));return r?g.createElement("div",{ref:d,className:"flex min-w-0 flex-1 items-end overflow-hidden"},w,k.length>0&&g.createElement(li,null,g.createElement(Kn,{ref:c,className:"mb-3 flex h-7 shrink-0 items-center self-end rounded-md px-2 text-caption-sm font-semibold text-light-600 hover:bg-light-100 hover:text-light-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"},i?i(k.length):`+${k.length}`),g.createElement(xc,{placement:"bottom end",className:"flex flex-col overflow-hidden rounded-lg border border-light-200 bg-white p-1 shadow-lg"},g.createElement(sf,{className:"flex max-h-[320px] min-h-0 min-w-[160px] flex-1 flex-col gap-0.5 overflow-y-auto outline-none [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",onAction:D=>{const A=a.indexOf(String(D));A>=0&&l[A].props.onClick?.(void 0)}},k.map(D=>{const A=l[D],L=A.props.children;return g.createElement(uf,{key:a[D],id:a[D],isDisabled:A.props.disabled,textValue:typeof L=="string"?L:void 0,className:"flex h-9 shrink-0 cursor-pointer items-center gap-2 truncate rounded-md px-2 text-caption-sm text-light-800 outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-60 data-[focused]:bg-light-50 data-[focused]:text-light-900"},A.props.iconLeft&&g.createElement("span",{className:"shrink-0"},A.props.iconLeft),g.createElement("span",{className:"truncate"},L),A.props.trailing&&g.createElement("span",{className:"ml-auto shrink-0"},A.props.trailing))}))))):w})(),n)};Th.displayName="TabBrowserBar";const pv={clipPath:Ph,paddingInline:`${st}px`},hv={paddingInline:`${st}px`},Ah=g.forwardRef(({type:t="default",disabled:e=!1,unstyled:n=!1,active:r=!1,iconLeft:i,trailing:o,tooltip:l,children:a,className:u,style:d,contentClassName:c,contentStyle:f,...p},h)=>{const{box:m,padX:b}=Dh[t],y=!e&&!r,$=r?{clipPath:kh,paddingInline:`${b-st}px`}:{paddingInline:`${b-st}px`};return g.createElement("div",{ref:h,role:"tab","aria-disabled":e,"aria-selected":r,...p,className:j("group relative flex transition-colors duration-150 focus-visible:outline-none",!n&&"rounded-t-lg pt-px",!n&&m,e&&"cursor-not-allowed opacity-60",!e&&!r&&"cursor-pointer",!n&&r&&"-mb-px bg-light-200 focus-visible:bg-primary-400",r&&"cursor-default",u),style:n?d:{...r?pv:hv,...d}},g.createElement("span",{title:l,className:j("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!n&&"rounded-t-lg",!n&&(r?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!n&&y&&"group-hover:bg-light-100 group-hover:text-light-800",!n&&y&&"group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",c),style:n?f:{...$,...f}},i&&g.createElement("span",{className:"shrink-0"},i),g.createElement("span",{className:"overflow-hidden text-ellipsis"},a),o))});Ah.displayName="TabBrowserPreview";const mv=H("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),gv=H("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),bv=H(["flex items-center w-full border","bg-white transition-[border-color,border-width]"],{variants:{size:{xs:"h-7 px-2 gap-1 rounded text-caption-sm",sm:"h-9 px-3 gap-2 rounded-lg",md:"h-11 px-3 gap-2 rounded-lg"},error:{true:["border-error-200","focus-within:border-2 focus-within:border-error-500"],false:["border-light-200","focus-within:border-2 focus-within:border-primary-500"]},disabled:{true:"bg-light-100 text-light-400 cursor-not-allowed",false:""}},defaultVariants:{size:"md",error:!1,disabled:!1}}),yv=H(["flex-1 bg-transparent outline-none text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},error:{true:"",false:"text-light-900"}},defaultVariants:{size:"md",error:!1}}),$v=H("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}}}),vv=H("flex items-stretch w-full bg-white border overflow-hidden transition-[border-color,border-width]",{variants:{size:{xs:"rounded",sm:"rounded-lg",md:"rounded-lg"},error:{true:["border-error-200","focus-within:border-2 focus-within:border-error-500"],false:["border-light-200","focus-within:border-2 focus-within:border-primary-500"]},disabled:{true:"bg-light-100",false:""}},defaultVariants:{size:"md",error:!1,disabled:!1}}),xv=H("flex flex-1 items-center min-w-0",{variants:{size:{xs:"gap-1 px-2 py-1",sm:"gap-2 px-3 py-2",md:"gap-2 px-3 py-2"},disabled:{true:"text-light-400 cursor-not-allowed",false:""}},defaultVariants:{size:"md",disabled:!1}}),Cv=H("flex items-center text-light-700 whitespace-nowrap border-r border-light-200",{variants:{size:{xs:"px-2 text-caption-sm",sm:"px-3 text-caption-lg",md:"px-3 text-body-sm"}},defaultVariants:{size:"md"}}),Ih=H(["flex items-center gap-1 shrink-0 bg-transparent p-0 text-light-800 cursor-pointer","hover:bg-transparent hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),Ev=H("flex shrink-0 items-center justify-center gap-1 w-[92px] border-l border-light-200 bg-white font-semibold text-light-800 hover:bg-light-50 disabled:cursor-not-allowed disabled:text-light-400",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),Bh=({className:t})=>s.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:t},s.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),wv={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},Sv=({size:t,error:e,disabled:n})=>X("flex items-center w-full gap-2 rounded-lg border bg-white px-2 transition-[border-color,border-width]",wv[t],e?"border-error-200 focus-within:border-2 focus-within:border-error-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",n&&"bg-light-100 text-light-400 cursor-not-allowed"),Pv=({error:t})=>X("flex items-center gap-1 text-caption-sm font-semibold",t?"":"text-light-800"),kv="flex flex-col w-full max-w-[320px]",Fh=s.forwardRef(function({label:e,required:n,hint:r,rightIcon:i,size:o="md",error:l=!1,disabled:a=!1,compact:u=!1,hideCalendarIcon:d=!1,type:c,prefix:f,suffix:p,leadingAddon:h,leadingDropdown:m,trailingDropdown:b,trailingButton:y,maxLength:$,value:x,className:v,wrapperClassName:C,...k},P){const N=!!(h||y),w=s.createElement(s.Fragment,null,m&&s.createElement("button",{type:"button",onClick:m.onClick,disabled:m.disabled||a,className:Ih({size:o})},s.createElement("span",null,m.value),s.createElement(Bh,{className:"size-5 text-light-500"})),f&&s.createElement("div",{className:"flex items-center"},f),s.createElement("input",{...k,ref:P,type:c,disabled:a,maxLength:$,value:x,className:X(yv({size:o,error:l}),"h-full",d&&"[&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-clear-button]:hidden",c==="date"&&"[&::-webkit-datetime-edit]:p-0 [&::-webkit-datetime-edit-fields-wrapper]:p-0",v)}),(i||p)&&s.createElement("div",{className:"flex h-full items-center gap-2"},i&&s.createElement("div",{className:"flex h-full items-center pb-0.5 text-light-400 hover:text-light-600"},i),p&&s.createElement("div",{className:"flex h-full items-center gap-1 leading-none text-light-700"},p)),b&&s.createElement("button",{type:"button",onClick:b.onClick,disabled:b.disabled||a,className:Ih({size:o})},s.createElement("span",null,b.value),s.createElement(Bh,{className:"size-5 text-light-500"})));return s.createElement("div",{className:X(u?kv:mv({size:o}),C)},e&&s.createElement("label",{className:u?Pv({error:l}):gv({error:l})},e,n&&s.createElement("span",{className:"text-error-400"},"*")),N?s.createElement("div",{className:vv({size:o,error:l,disabled:a})},h&&s.createElement("div",{className:Cv({size:o})},h),s.createElement("div",{className:xv({size:o,disabled:a})},w),y&&s.createElement("button",{type:"button",onClick:y.onClick,disabled:y.disabled||a,className:Ev({size:o})},y.icon,s.createElement("span",null,y.label))):s.createElement("div",{className:u?Sv({size:o,error:l,disabled:a}):bv({size:o,error:l,disabled:a})},w),$&&typeof x=="string"&&s.createElement("div",{className:"text-right text-xs text-light-400"},x.length,"/",$),r&&s.createElement("p",{className:$v({error:l})},r))});function Dv({children:t}){return React.createElement("div",{className:"flex items-center text-light-500"},t)}function Nv({children:t}){return React.createElement("div",{className:"flex items-center text-light-500"},t)}const Tv=H("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),Av=H("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),kl={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},Iv=H(["flex items-center w-full gap-2 border bg-white","transition-[border-color,border-width]","data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100 data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 px-2 rounded text-caption-sm",sm:"h-9 px-3 rounded-lg",md:"h-11 px-3 rounded-lg"},compact:{true:"rounded-lg px-2",false:""},error:{true:"",false:"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500"}},compoundVariants:[{compact:!0,size:"xs",class:kl.xs},{compact:!0,size:"sm",class:kl.sm},{compact:!0,size:"md",class:kl.md}],defaultVariants:{size:"md",compact:!1,error:!1}}),Bv=H(["flex-1 min-w-0 bg-transparent outline-none text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),Mh="flex items-center shrink-0",Fv=H("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),er=g.forwardRef(function({label:e,required:n,hint:r,size:i="md",error:o=!1,disabled:l=!1,compact:a=!1,leftSlot:u,rightSlot:d,className:c,wrapperClassName:f,...p},h){return g.createElement("div",{className:j(Tv({size:i}),f)},e&&g.createElement("label",{className:Av({error:o})},e,n&&g.createElement("span",{className:"text-error-400"},"*")),g.createElement(Co,{isDisabled:l,isInvalid:o,className:Iv({size:i,compact:a,error:o})},u&&g.createElement("div",{className:Mh},u),g.createElement(gu,{...p,ref:h,disabled:l,required:n,className:j(Bv({size:i}),c)}),d&&g.createElement("div",{className:Mh},d)),r&&g.createElement("p",{className:Fv({error:o})},r))});er.displayName="BaseInput";const Mv={xs:12,sm:16,md:20,lg:24,xl:32},Xt=({icon:t,size:e="md",strokeWidth:n=2,label:r,className:i,...o})=>g.createElement(t,{size:Mv[e],stroke:n,className:X("shrink-0",i),"aria-hidden":r?void 0:!0,role:r?"img":void 0,"aria-label":r,...o});Xt.displayName="Icon";const Kh=j("flex max-h-60 w-full flex-col overflow-y-auto py-1 outline-none","[scrollbar-width:thin] [scrollbar-color:theme(colors.light.300)_theme(colors.light.50)]","[&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-light-50","[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-light-300"),Lh=j("flex min-h-[38px] w-full items-center gap-2 rounded-md px-4","text-left text-caption-sm font-bold text-light-800","outline-none cursor-pointer","data-[hovered]:bg-light-100 data-[hovered]:text-light-900","data-[focus-visible]:shadow-focus","data-[disabled]:cursor-not-allowed data-[disabled]:text-light-400"),$i=j("flex size-4 shrink-0 items-center justify-center text-light-500"),Oh=j("ml-auto shrink-0 font-normal text-caption-sm text-light-500"),zh=j("my-1 h-px w-full shrink-0 bg-light-200"),Kv=j("flex w-full flex-col items-start border-b border-light-200 px-4 py-3");function Lv({className:t,style:e,...n},r){return g.createElement(sf,{ref:r,...n,style:e,className:j(Kh,t)})}const Dl=g.forwardRef(Lv);function Ov({className:t,style:e,content:n="none",icon:r,shortcut:i,children:o,...l},a){return g.createElement(uf,{ref:a,...l,style:e,className:j(Lh,t)},u=>g.createElement(g.Fragment,null,n==="icon"&&r&&g.createElement("span",{className:$i},r),n==="selection"&&g.createElement("span",{className:$i},u.isSelected&&g.createElement(Xt,{icon:Ni,size:"sm","aria-hidden":"true"})),g.createElement("span",{className:"min-w-0 flex-1 truncate"},typeof o=="function"?o(u):o),i&&g.createElement("span",{className:Oh},i)))}const Nl=g.forwardRef(Ov),zv=({className:t})=>g.createElement(Qu,{className:j(zh,t)}),_v=({children:t,className:e})=>g.createElement(Q3,{className:j(Kv,e)},t),Vv=H(["flex items-center gap-1 shrink-0 border-r border-light-200 bg-transparent","text-light-800 cursor-pointer","hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"pr-2 text-caption-sm",sm:"pr-2 text-caption-lg",md:"pr-2 text-body-sm"}},defaultVariants:{size:"md"}}),Hv="w-72",jv="border-b border-light-200 p-2";function Rv({size:t,disabled:e,countries:n,selected:r,onSelect:i}){const[o,l]=g.useState(""),a=o?n.filter(u=>u.name.toLowerCase().includes(o.toLowerCase())||u.dial_code.includes(o)||u.code.toLowerCase()===o.toLowerCase()):n;return g.createElement(li,{onOpenChange:u=>{u||l("")}},g.createElement(Kn,{isDisabled:e,"aria-label":`Country: ${r.name} (${r.dial_code})`,className:Vv({size:t})},g.createElement("span",null,r.code),g.createElement(Ti,{size:14,"aria-hidden":"true"})),g.createElement(Qn,{placement:"bottom start"},g.createElement("div",{className:jv},g.createElement("input",{autoFocus:!0,value:o,onChange:u=>l(u.target.value),placeholder:"Search country...",className:"w-full bg-transparent text-sm text-light-900 outline-none placeholder:text-light-500"})),g.createElement(Dl,{"aria-label":"Country",className:j(Hv,"max-h-60 overflow-y-auto"),items:a,onAction:u=>{const d=a.find(c=>c.code===u);d&&i(d)}},u=>g.createElement(Nl,{id:u.code,textValue:`${u.name} ${u.dial_code}`},g.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2"},g.createElement("span",{className:"min-w-0 flex-1 truncate"},u.name),g.createElement("span",{className:"shrink-0 text-light-500"},u.dial_code))))))}const _h={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Tl(t,e){var n=Array.prototype.slice.call(e);return n.push(_h),t.apply(this,n)}function Vh(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[0].split("."),i=0;i<3;i++){var o=Number(n[i]),l=Number(r[i]);if(o>l)return 1;if(l>o)return-1;if(!isNaN(o)&&isNaN(l))return 1;if(isNaN(o)&&!isNaN(l))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]<e[1]?-1:0:!t[1]&&e[1]?1:t[1]&&!e[1]?-1:0}var Wv={}.constructor;function qt(t){return t!=null&&t.constructor===Wv}var Uv=/^\d+$/;function Gv(t){return Uv.test(t)}function mn(t){"@babel/helpers - typeof";return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mn(t)}function vi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Xv(r.key),r)}}function xi(t,e,n){return e&&Yv(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Xv(t){var e=qv(t,"string");return mn(e)=="symbol"?e:e+""}function qv(t,e){if(mn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(mn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Zv="1.2.0",Jv="1.7.35",Hh=" ext. ",Pe=(function(){function t(e){vi(this,t),Wh(e),this.metadata=e,Uh.call(this,e)}return xi(t,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){var i,o;if(n&&(Gv(n)?o=n:i=n),r&&(o=r),i&&i!=="001"){var l=this.getCountryMetadata(i);if(!l)throw new Error("Unknown country: ".concat(i));this.numberingPlan=new jh(l,this)}else if(o){if(!this.hasCallingCode(o))throw new Error("Unknown calling code: ".concat(o));this.numberingPlan=new jh(this.getNumberingPlanMetadata(o),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var o=this.countryCallingCodes()[n];if(o&&o.length===1&&o[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),jh=(function(){function t(e,n){vi(this,t),this.globalMetadataObject=n,this.metadata=e,Uh.call(this,n.metadata)}return xi(t,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return r.map(function(i){return new Qv(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&Rh(this.types(),n))return new t5(Rh(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Hh:this.metadata[13]||Hh}}])})(),Qv=(function(){function t(e,n){vi(this,t),this._format=e,this.metadata=n}return xi(t,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!e5.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),e5=/^\(?\$1\)?$/,t5=(function(){function t(e,n){vi(this,t),this.type=e,this.metadata=n}return xi(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function Rh(t,e){switch(e){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function Wh(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!qt(t)||!qt(t.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(qt(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+n5(t)+": "+t,"."))}var n5=function(e){return mn(e)};function Al(t,e){var n=new Pe(e);if(n.hasCountry(t))return n.selectNumberingPlan(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function r5(t,e){return e.countries.hasOwnProperty(t)}function Uh(t){var e=t.version;typeof e=="number"?(this.v1=e===1,this.v2=e===2,this.v3=e===3,this.v4=e===4):e?Vh(e,Zv)===-1?this.v2=!0:Vh(e,Jv)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function tr(t,e,n){return i5(t,void 0,e,n)}function i5(t,e,n,r){n&&(r=new Pe(r.metadata),r.selectNumberingPlan(n));var i=r.type(e),o=i&&i.possibleLengths()||r.possibleLengths();if(!o)return"IS_POSSIBLE";var l=t.length,a=o[0];return a===l?"IS_POSSIBLE":a>l?"TOO_SHORT":o[o.length-1]<l?"TOO_LONG":o.indexOf(l,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function o5(t,e,n){e===void 0&&(e={});var r=new Pe(n);if(e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(t.country||t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!r.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));r.selectNumberingPlan(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(t.countryCallingCode)}}if(r.possibleLengths())return Gh(t.phone||t.nationalNumber,r);if(t.countryCallingCode&&r.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Gh(t,e){return tr(t,void 0,e)==="IS_POSSIBLE"}function yt(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function l5(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=a5(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S5(t,e){if(t){if(typeof t=="string")return qh(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qh(t,e):void 0}}function qh(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Zh(t,e,n){for(var r=new Pe(n),i=w5(e),o;!(o=i()).done;){var l=o.value;if(r.selectNumberingPlan(l),r.leadingDigits()){if(t&&t.search(r.leadingDigits())===0)return l}else if(Il({phone:t,country:l},void 0,r.metadata))return l}}function Kl(t,e){var n=e.nationalNumber,r=e.metadata,i=r.getCountryCodesForCallingCode(t);if(i)return i.length===1?i[0]:Zh(n,i,r.metadata)}function Ll(t,e,n){var r=Ml(t,n),i=r.carrierCode,o=r.nationalNumber;if(o!==t){if(!P5(t,o,n))return{nationalNumber:t};if(n.numberingPlan.possibleLengths()&&(e||(e=Kl(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n})),!k5(o,e,n)))return{nationalNumber:t}}return{nationalNumber:o,carrierCode:i}}function P5(t,e,n){return!(yt(t,n.nationalNumberPattern())&&!yt(e,n.nationalNumberPattern()))}function k5(t,e,n){switch(tr(t,e,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Jh(t,e,n,r,i){if(!(e||n||r))return{number:t};var o=e||n?Al(e||n,i):r;if(t.indexOf(o)===0){var l=new Pe(i);l.selectNumberingPlan(e||n||r);var a=t.slice(o.length),u=Ll(a,void 0,l),d=u.nationalNumber,c=Ll(t,void 0,l),f=c.nationalNumber;if(!yt(f,l.nationalNumberPattern())&&yt(d,l.nationalNumberPattern())||tr(f,void 0,l)==="TOO_LONG")return{countryCallingCode:o,number:a}}return{number:t}}function Ol(t,e,n,r,i){if(!t)return{};var o;if(t[0]!=="+"){var l=Xh(t,e||n,r,i);if(l&&l!==t)o=!0,t="+"+l;else{if(e||n||r){var a=Jh(t,e,n,r,i),u=a.countryCallingCode,d=a.number;if(u)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:u,number:d}}return{number:t}}}if(t[1]==="0")return{};for(var c=new Pe(i),f=2;f-1<=g5&&f<=t.length;){var p=t.slice(1,f);if(c.hasCallingCode(p))return c.selectNumberingPlan(p),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:p,number:t.slice(f)};f++}return{}}function Qh(t){return t.replace(new RegExp("[".concat(Je,"]+"),"g")," ").trim()}var em=/(\$\d)/;function tm(t,e,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var o=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():i&&e.nationalPrefixFormattingRule()?e.format().replace(em,e.nationalPrefixFormattingRule()):e.format());return r?Qh(o):o}var D5=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function N5(t,e,n){var r=new Pe(n);if(r.selectNumberingPlan(t||e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(D5.test(r.IDDPrefix()))return r.IDDPrefix()}var T5=";ext=",gn=function(e){return"([".concat(Be,"]{1,").concat(e,"})")};function nm(t){var e="20",n="15",r="9",i="6",o="[ \\t,]*",l="[:\\..]?[ \\t,-]*",a="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",c="[- ]+",f="[ \\t]*",p="(?:,{2}|;)",h=T5+gn(e),m=o+u+l+gn(e)+a,b=o+d+l+gn(r)+a,y=c+gn(i)+"#",$=f+p+l+gn(n)+a,x=f+"(?:,)+"+l+gn(r)+a;return h+"|"+m+"|"+b+"|"+y+"|"+$+"|"+x}var A5="["+Be+"]{"+Fl+"}",I5="["+Ci+"]{0,1}(?:["+Je+"]*["+Be+"]){3,}["+Je+Be+"]*",B5=new RegExp("^["+Ci+"]{0,1}(?:["+Je+"]*["+Be+"]){1,2}$","i"),F5=I5+"(?:"+nm()+")?",M5=new RegExp("^"+A5+"$|^"+F5+"$","i");function K5(t){return t.length>=Fl&&M5.test(t)}function L5(t){return B5.test(t)}function O5(t){var e=t.number,n=t.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}var rm={formatExtension:function(e,n,r){return"".concat(e).concat(r.ext()).concat(n)}};function z5(t,e,n,r){n?n=H5({},rm,n):n=rm;var i=new Pe(r);if(t.country&&t.country!=="001"){if(!i.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));i.selectNumberingPlan(t.country)}else if(t.countryCallingCode)i.selectNumberingPlan(t.countryCallingCode);else return t.phone||"";var o=i.countryCallingCode(),l=n.v2?t.nationalNumber:t.phone,a;switch(e){case"NATIONAL":return l?(a=Ei(l,t.carrierCode,"NATIONAL",i,n),zl(a,t.ext,i,n.formatExtension)):"";case"INTERNATIONAL":return l?(a=Ei(l,null,"INTERNATIONAL",i,n),a="+".concat(o," ").concat(a),zl(a,t.ext,i,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(l);case"RFC3966":return O5({number:"+".concat(o).concat(l),ext:t.ext});case"IDD":if(!n.fromCountry)return;var u=V5(l,t.carrierCode,o,n.fromCountry,i);return u?zl(u,t.ext,i,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}function Ei(t,e,n,r,i){var o=_5(r.formats(),t);return o?tm(t,o,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:e,metadata:r}):t}function _5(t,e){return j5(t,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(e.search(r)!==0)return!1}return yt(e,n.pattern())})}function zl(t,e,n,r){return e?r(t,e,n):t}function V5(t,e,n,r,i){var o=Al(r,i.metadata);if(o===n){var l=Ei(t,e,"NATIONAL",i);return n==="1"?n+" "+l:l}var a=N5(r,void 0,i.metadata);if(a)return"".concat(a," ").concat(n," ").concat(Ei(t,null,"INTERNATIONAL",i))}function H5(){for(var t=1,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(;t<n.length;){if(n[t])for(var i in n[t])n[0][i]=n[t][i];t++}return n[0]}function j5(t,e){for(var n=0;n<t.length;){if(e(t[n]))return t[n];n++}}function nr(t){"@babel/helpers - typeof";return nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nr(t)}function im(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function om(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?im(Object(n),!0).forEach(function(r){R5(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):im(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function R5(t,e,n){return(e=lm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function W5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U5(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,lm(r.key),r)}}function G5(t,e,n){return e&&U5(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function lm(t){var e=Y5(t,"string");return nr(e)=="symbol"?e:e+""}function Y5(t,e){if(nr(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(nr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var am=(function(){function t(e,n,r){if(W5(this,t),!e)throw new TypeError("First argument is required");if(typeof e!="string")throw new TypeError("First argument must be a string");if(e[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(qt(n)&&qt(n.countries)){r=n;var i=e;if(!X5.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=Ol(i,void 0,void 0,void 0,r),l=o.countryCallingCode,a=o.number;if(n=a,e=l,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");Wh(r);var u=f5(e,r),d=u.country,c=u.callingCode;this.country=d,this.countryCallingCode=c,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return G5(t,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:p5(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return o5(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return u5(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new Pe(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return Il(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return z5(this,n,r?om(om({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),X5=/^\+\d+$/;function _l(t){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_l(t)}function q5(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function Z5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function J5(t,e,n){return e=ir(e),Q5(t,Hl()?Reflect.construct(e,n||[],ir(t).constructor):e.apply(t,n))}function Q5(t,e){if(e&&(_l(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ex(t)}function ex(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rr(t,e)}function Vl(t){var e=typeof Map=="function"?new Map:void 0;return Vl=function(r){if(r===null||!rx(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return nx(r,arguments,ir(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),rr(i,r)},Vl(t)}function nx(t,e,n){if(Hl())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&rr(i,n.prototype),i}function Hl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hl=function(){return!!t})()}function rx(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function rr(t,e){return rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rr(t,e)}function ir(t){return ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ir(t)}var $t=(function(t){function e(n){var r;return Z5(this,e),r=J5(this,e,[n]),Object.setPrototypeOf(r,e.prototype),r.name=r.constructor.name,r}return tx(e,t),q5(e)})(Vl(Error)),sm=new RegExp("(?:"+nm()+")$","i");function ix(t){var e=t.search(sm);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(sm),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}function ox(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=lx(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
15
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
16
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
17
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
18
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
19
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
20
|
-
`.concat(JSON.stringify(
|
|
21
|
-
`.concat(JSON.stringify(
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
24
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o9(t,e){if(t){if(typeof t=="string")return Im(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Im(t,e):void 0}}function Im(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function l9(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,l,a=[],u=!0,d=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);u=!0);}catch(c){d=!0,i=c}finally{try{if(!u&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return a}}function a9(t){if(Array.isArray(t))return t}function s9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c9(r.key),r)}}function d9(t,e,n){return e&&u9(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function c9(t){var e=f9(t,"string");return pr(e)=="symbol"?e:e+""}function f9(t,e){if(pr(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(pr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Bm=(function(){function t(e,n){s9(this,t),this.metadata=new Pe(n);var r=this.getCountryAndCallingCode(e),i=r9(r,2),o=i[0],l=i[1];this.defaultCountry=o,this.defaultCallingCode=l,this.reset()}return d9(t,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(qt(n)?(r=n.defaultCountry,i=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,i]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),i=r.digits,o=r.justLeadingPlus;if(o)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var l;if(this.metadata.hasSelectedNumberingPlan()&&(l=this.formatter.format(i,this.state)),l===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var a=this.state.getNationalDigits();a&&(l=this.formatter.format(a,this.state))}this.formattedOutput=l?this.getFullNumber(l):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new t6({onCountryChange:function(i){n.country=i},onCallingCodeChange:function(i,o){n.metadata.selectNumberingPlan(o||i),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new O6({state:this.state,metadata:this.metadata}),this.parser=new Q6({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var i=function(a){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!a})+a},o=this.state.callingCode;return i(o?n?"".concat(o," ").concat(n):o:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,o=n.nationalPrefix,l=r,a=i||o;return a&&(l=a+l),l}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(n?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,Qe)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){var n=Kl(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata});n!==this.state.country&&(this.state.setCountry(n),n&&this.metadata.selectNumberingPlan(n))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,o=n.country,l=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+l:"+"+r;if(o||i){var a=o?this.metadata.countryCallingCode():i;return"+"+a+l}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,o=n.callingCode;if(r){var l=this._getCountry();if(!(!l&&!o)){if(l&&l===this.defaultCountry){var a=this.metadata.numberingPlan.callingCode(),u=p9(a,r,this.metadata);u&&(l=u)}var d=new am(l||o,r,this.metadata.metadata);return i&&(d.carrierCode=i),d}}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"validateLength",value:function(){var n=this.state,r=n.digits,i=n.nationalSignificantNumber;if(!r)return"NOT_A_NUMBER";if(!this.metadata.numberingPlan)return"INVALID_COUNTRY";if(!i)return"TOO_SHORT";var o=tr(i,void 0,this.metadata);if(o!=="IS_POSSIBLE")return o}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])})();function p9(t,e,n){var r=n.getCountryCodesForCallingCode(t);if(r.length>1)return Zh(e,r,n.metadata)}function h9(t){return new Pe(t).getCountries()}function Fm(){return Tl(Xx,arguments)}function Pi(t){return Bm.call(this,t,_h)}Pi.prototype=Object.create(Bm.prototype,{}),Pi.prototype.constructor=Pi;function m9(){return Tl(h9,arguments)}function g9(){return Tl(Al,arguments)}function b9(t){return t.toUpperCase().replace(/./g,e=>String.fromCodePoint(127397+e.charCodeAt(0)))}let ki=null;function Mm(){if(ki)return ki;const t=typeof Intl<"u"&&"DisplayNames"in Intl?new Intl.DisplayNames(["en"],{type:"region"}):null;return ki=m9().map(e=>({code:e,dial_code:`+${g9(e)}`,name:t?.of(e)??e,flag:b9(e)})).sort((e,n)=>e.name.localeCompare(n.name)),ki}function Km(t,e,n){let r=t.replace(/\D/g,"");const i=n.replace(/\D/g,"");r.startsWith(i)&&(r=r.slice(i.length)),r=r.replace(/^0+/,"");const o=15-i.length;if(r=r.slice(0,o),!r)return n;const a=new Pi(e).input(r);return`${n} ${a}`}function Lm(t,e){return t?Fm(t,e)?.isValid()??!1:!1}function Om(t,e){const n=Fm(t,e);return n?.isValid()?n.number:void 0}function y9({size:t="md",label:e,required:n,hint:r,error:i,disabled:o=!1,placeholder:l,value:a="",defaultCountry:u="ID",countries:d,onChange:c,className:f,wrapperClassName:p}){const h=d??Mm(),[m,b]=g.useState(()=>h.find(C=>C.code===u)??h[0]),y=C=>{const k=Lm(C,m.code),P=k?Om(C,m.code):void 0;c?.(C,k,P)},$=C=>{const k=Km(C.target.value,m.code,m.dial_code);y(k)},x=()=>{a||c?.(m.dial_code,!1,void 0)},v=C=>{const k=Km(a,C.code,C.dial_code);b(C);const P=Lm(k,C.code),N=P?Om(k,C.code):void 0;c?.(k,P,N)};return g.createElement(er,{size:t,label:e,required:n,hint:r,error:i,disabled:o,placeholder:l??"Enter phone number",inputMode:"numeric",value:a,onChange:$,onFocus:x,className:f,wrapperClassName:p,leftSlot:g.createElement(Rv,{size:t,disabled:o,countries:h,selected:m,onSelect:v})})}const $9=H(["flex items-center gap-1 shrink-0 border-l border-light-200 bg-transparent","text-light-800 cursor-pointer","hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"pl-2 text-caption-sm",sm:"pl-2 text-caption-lg",md:"pl-2 text-body-sm"}},defaultVariants:{size:"md"}}),v9="w-64",x9="select-none text-light-700";function C9({size:t,disabled:e,currencies:n,selected:r,onSelect:i}){return g.createElement(li,null,g.createElement(Kn,{isDisabled:e,"aria-label":`Currency: ${r.label} (${r.code})`,className:$9({size:t})},g.createElement("span",null,r.code),g.createElement(Ti,{size:14,"aria-hidden":"true"})),g.createElement(Qn,{placement:"bottom end"},g.createElement(Dl,{"aria-label":"Currency",className:j(v9,"max-h-60 overflow-y-auto"),items:n,onAction:o=>{const l=n.find(a=>a.code===o);l&&i(l)}},o=>g.createElement(Nl,{id:o.code,textValue:`${o.label} ${o.code}`},g.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2"},g.createElement("span",{className:"min-w-0 flex-1 truncate"},o.label),g.createElement("span",{className:"shrink-0 text-light-500"},o.code))))))}function Xl(t){const e=new Intl.NumberFormat(t).formatToParts(123456789e-2),n=e.find(i=>i.type==="group")?.value??",",r=e.find(i=>i.type==="decimal")?.value??".";return{group:n,decimal:r}}function zm(t,e){return t?t.replace(/\B(?=(\d{3})+(?!\d))/g,e):""}function E9(t,e){const{group:n,decimal:r}=Xl(e);let i=t.split("").filter(d=>/\d/.test(d)||d===r).join("");const o=i.indexOf(r);if(o!==-1){const d=i.slice(0,o).split(r).join(""),c=i.slice(o+1).split(r).join("").slice(0,2);i=`${d}${r}${c}`}const[l,a]=i.split(r),u=zm(l??"",n);return a!==void 0?`${u}${r}${a}`:u}function w9(t,e){const{group:n,decimal:r}=Xl(e),i=t.split(n).join("").split(r).join("."),o=Number.parseFloat(i);return Number.isNaN(o)?0:o}function ql(t,e){if(t===void 0||Number.isNaN(t))return"";const{group:n,decimal:r}=Xl(e),[i,o]=t.toString().split("."),l=zm(i??"0",n);return o?`${l}${r}${o}`:l}function S9({size:t="md",label:e,required:n,hint:r,error:i,disabled:o=!1,placeholder:l,value:a,currency:u,currencies:d,onCurrencyChange:c,onChange:f,className:p,wrapperClassName:h}){const m=d.find(C=>C.code===u)??d[0],[b,y]=g.useState(()=>ql(a,m?.locale)),$=g.useRef(!1);g.useEffect(()=>{if($.current){$.current=!1;return}y(ql(a,m?.locale))},[a,m?.locale]);const x=C=>{$.current=!0;const k=E9(C.target.value,m?.locale);y(k),f?.(w9(k,m?.locale))},v=C=>{c?.(C.code),$.current=!0,y(ql(a,C.locale))};return g.createElement(er,{size:t,label:e,required:n,hint:r,error:i,disabled:o,placeholder:l??"0.00",inputMode:"decimal",value:b,onChange:x,className:p,wrapperClassName:h,leftSlot:m?g.createElement("span",{className:x9},m.symbol):void 0,rightSlot:m?g.createElement(C9,{size:t,disabled:o,currencies:d,selected:m,onSelect:v}):void 0})}function P9({size:t="md",label:e,required:n,hint:r,disabled:i,error:o,className:l,wrapperClassName:a,value:u,maxLength:d,placeholder:c,onChange:f}){const p=u.length>d,h=o||p;return s.createElement(Fh,{size:t,label:e,required:n,disabled:i,error:h,value:u,placeholder:c,onChange:f,className:l,wrapperClassName:a,hint:r,suffix:s.createElement("span",{className:X("text-caption-lg",p?"text-error-600":"text-light-400")},u.length,"/",d)})}const _m=[{brand:"visa",pattern:/^4/,length:[13,16,19]},{brand:"mastercard",pattern:/^(5[1-5]|2[2-7])/,length:[16]},{brand:"amex",pattern:/^3[47]/,length:[15]},{brand:"discover",pattern:/^6(?:011|5)/,length:[16]},{brand:"jcb",pattern:/^35/,length:[16]},{brand:"diners",pattern:/^3(?:0[0-5]|[68])/,length:[14]},{brand:"unionpay",pattern:/^62/,length:[16,19]}];function k9(t){return _m.find(({pattern:n})=>n.test(t))?.brand??null}function D9(t){if(!t)return!1;let e=0,n=!1;for(let r=t.length-1;r>=0;r--){let i=Number.parseInt(t[r]??"0",10);n&&(i*=2,i>9&&(i-=9)),e+=i,n=!n}return e%10===0}function N9(t,e){if(!e||!t)return!1;const n=_m.find(r=>r.brand===e);return!n||!n.length.includes(t.length)?!1:D9(t)}function T9(t,e){return e==="amex"?[t.slice(0,4),t.slice(4,10),t.slice(10,15)].filter(Boolean).join(" "):t.replace(/(.{4})/g,"$1 ").trim()}const A9=19;function I9(t){const e=t.replace(/\D/g,"").slice(0,A9),n=k9(e),r=T9(e,n),i=N9(e,n);return{formatted:r,brand:n,isValid:i}}function B9({size:t="md",label:e="Card number",required:n,hint:r,error:i,disabled:o=!1,placeholder:l="Card number",value:a="",leftSlot:u,onChange:d,className:c,wrapperClassName:f}){const p=h=>{const{formatted:m,brand:b,isValid:y}=I9(h.target.value);d?.(m,b,y)};return g.createElement(er,{size:t,label:e,required:n,hint:r,error:i,disabled:o,placeholder:l,value:a,onChange:p,inputMode:"numeric",autoComplete:"cc-number",className:c,wrapperClassName:f,leftSlot:u})}const Zl=Fh;Zl.Prefix=Dv,Zl.Suffix=Nv;const F9="flex flex-col gap-1 w-full",M9=H("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),K9=H(["flex w-full items-start gap-2 border rounded-lg p-3 bg-white","transition-[border-color,border-width]","data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100"],{variants:{error:{true:"",false:"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500"}},defaultVariants:{error:!1}}),L9=H(["flex-1 min-h-[132px] bg-transparent outline-none text-caption-lg text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed disabled:resize-none"],{variants:{resizable:{true:"resize-y",false:"resize-none"}},defaultVariants:{resizable:!0}}),O9=H("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),z9=({error:t})=>X("flex w-full items-start gap-2 rounded-lg border bg-white p-2 transition-[border-color,border-width]",t?"data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500":"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500","data-[disabled]:bg-light-100 data-[disabled]:cursor-not-allowed"),_9=({error:t})=>X("flex items-center gap-1 text-caption-sm font-semibold",t?"":"text-light-800"),V9=t=>X("flex-1 min-h-[64px] bg-transparent outline-none text-sm text-light-900","placeholder:text-light-500",t?"resize-y":"resize-none"),H9="flex flex-col w-full max-w-[320px]",Vm=g.forwardRef(({label:t,required:e,hint:n,helpIcon:r,error:i=!1,disabled:o=!1,resizable:l=!0,compact:a=!1,rows:u,style:d,className:c,wrapperClassName:f,...p},h)=>{const m=u?{minHeight:`${u*20}px`}:void 0;return g.createElement("div",{className:X(a?H9:F9,f)},t&&g.createElement("label",{className:a?_9({error:i}):M9({error:i})},t,e&&g.createElement("span",{className:"text-error-400"},"*"),r),g.createElement(Co,{isDisabled:o,isInvalid:i,className:a?z9({error:i}):K9({error:i})},g.createElement(gy,{ref:h,disabled:o,rows:u,style:{...m,...d},className:X(a?V9(l&&!o):L9({resizable:l&&!o}),c),...p})),n&&g.createElement("p",{className:O9({error:i})},n))});Vm.displayName="Textarea";const j9=H("flex w-[320px] flex-col gap-1"),R9=H("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}}}),W9=H("flex items-stretch rounded-lg border bg-white transition-colors",{variants:{error:{true:"",false:"border-light-200"},disabled:{true:"bg-light-100",false:""}}}),U9=H("flex items-center px-3 text-sm text-light-500 rounded-l-lg select-none",{variants:{size:{sm:"h-9",md:"h-11"},disabled:{true:"bg-light-100",false:"bg-white"}}}),G9="w-px bg-light-200",Y9=H(["flex flex-1 items-center gap-2 px-3 rounded-r-lg","transition-shadow","focus-within:ring-2 focus-within:ring-offset-0"],{variants:{size:{sm:"h-9",md:"h-11"},error:{true:"border border-error-200 focus-within:ring-error-500",false:"focus-within:ring-primary-500"},disabled:{true:"cursor-not-allowed",false:""}}}),X9=H("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),q9=H("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function Z9({size:t="md",label:e,required:n,hint:r,error:i=!1,disabled:o=!1,placeholder:l="www.cekat.ai",value:a,rightIcon:u,onChange:d,className:c,wrapperClassName:f}){return s.createElement("div",{className:X(j9(),f)},e&&s.createElement("label",{className:R9({error:i})},e,n&&s.createElement("span",{className:"text-error-400"},"*")),s.createElement("div",{className:W9({error:i,disabled:o})},s.createElement("div",{className:U9({size:t})},"http://"),s.createElement("div",{className:G9}),s.createElement("div",{className:Y9({size:t,error:i,disabled:o})},s.createElement("input",{value:a,onChange:d,placeholder:l,disabled:o,className:X(X9({disabled:o}),c)}),u&&s.createElement("div",{className:"flex items-center text-light-400"},u))),r&&s.createElement("p",{className:q9({error:i})},r))}const J9=H("flex w-[320px] flex-col gap-1"),Q9=H("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"text-error-600",false:"text-light-800"}}}),e8=H("flex items-stretch rounded-lg border border-light-200 bg-white transition-colors",{variants:{disabled:{true:"bg-light-100",false:""}}}),t8=H(["flex flex-1 items-center gap-2 px-3 rounded-l-lg","transition-shadow","focus-within:ring-2 focus-within:ring-offset-0"],{variants:{size:{sm:"h-9",md:"h-11"},error:{true:"border border-error-200 focus-within:ring-error-500",false:"focus-within:ring-primary-500"},disabled:{true:"cursor-not-allowed",false:""}}}),n8=H("w-px transition-colors",{variants:{error:{true:"focus:bg-error-200 group-focus-within:bg-error-500",false:"focus:bg-light-200 group-focus-within:bg-primary-500"}}}),r8=H("flex items-center gap-1 px-3 text-sm text-light-700 rounded-r-lg select-none",{variants:{size:{sm:"h-9",md:"h-11"},disabled:{true:"bg-white",false:"bg-white"}}}),i8=H("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),o8=H("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function l8({size:t="md",label:e,required:n,hint:r,error:i=!1,disabled:o=!1,placeholder:l="www.cekat.ai",value:a,rightIcon:u,suffix:d,onChange:c,className:f,wrapperClassName:p}){return s.createElement("div",{className:X(J9(),p)},e&&s.createElement("label",{className:Q9({error:i})},e,n&&s.createElement("span",{className:"text-error-400"},"*")),s.createElement("div",{className:e8({disabled:o})},s.createElement("div",{className:t8({size:t,error:i,disabled:o})},s.createElement("input",{value:a,onChange:c,placeholder:l,disabled:o,className:X(i8({disabled:o}),f)}),u&&s.createElement("div",{className:"text-light-400"},u)),s.createElement("div",{className:n8({error:i})}),s.createElement("div",{className:r8({size:t,disabled:o})},d)),r&&s.createElement("p",{className:o8({error:i})},r))}const a8=H("flex w-full flex-col gap-1"),s8=H("flex items-center gap-1 text-sm font-bold text-light-800"),Hm=H(["flex w-full items-center border bg-white text-left","transition-[border-color,border-width]"],{variants:{size:{xs:"h-7 gap-1 rounded px-2 text-caption-sm",sm:"h-9 gap-2 rounded-lg px-3 text-caption-lg",md:"h-11 gap-2 rounded-lg px-3 text-body-sm"},open:{true:"border-2 border-primary-500",false:"border-light-200 focus-within:border-2 focus-within:border-primary-500"},disabled:{true:"cursor-not-allowed bg-light-100",false:"cursor-pointer"}},defaultVariants:{size:"md",open:!1,disabled:!1}}),u8=H(["absolute left-0 top-full z-10 mt-2 w-full overflow-y-auto","rounded-lg border border-light-200 bg-white py-1","shadow-[0_12px_16px_-4px_rgba(16,24,40,0.08),0_4px_6px_-2px_rgba(16,24,40,0.03)]"],{variants:{size:{xs:"max-h-52",sm:"max-h-64",md:"max-h-80"}},defaultVariants:{size:"md"}}),jm=H("flex w-full items-center rounded-md text-left",{variants:{size:{xs:"gap-1 px-2 py-1 text-caption-sm",sm:"gap-2 px-3 py-1.5 text-caption-lg",md:"gap-2 py-2.5 pl-4 pr-2.5 text-body-sm"},disabled:{true:"cursor-not-allowed text-light-400",false:"cursor-pointer hover:bg-light-50"}},defaultVariants:{size:"md",disabled:!1}}),d8=H("text-caption-lg text-light-700"),c8=({className:t})=>g.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:t},g.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),f8=({className:t})=>g.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:t},g.createElement("path",{d:"M17.5 17.5L14.1 14.1M16 9.25C16 12.98 12.98 16 9.25 16C5.52 16 2.5 12.98 2.5 9.25C2.5 5.52 5.52 2.5 9.25 2.5C12.98 2.5 16 5.52 16 9.25Z",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),p8=({className:t})=>g.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:t},g.createElement("path",{d:"M16.67 5L7.5 14.17L3.33 10",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),Jl={xs:"size-4",sm:"size-5",md:"size-6"},h8={xs:"sm",sm:"sm",md:"sm"},Rm={xs:"size-4",sm:"size-5",md:"size-5"},m8={xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},g8={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},Wm=({size:t,open:e,disabled:n})=>X("flex w-full items-center gap-2 rounded-lg border bg-white px-2 text-left transition-[border-color,border-width]",m8[t],g8[t],e?"border-2 border-primary-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",n?"cursor-not-allowed bg-light-100":"cursor-pointer"),b8=()=>"flex items-center gap-1 text-caption-sm font-semibold text-light-800",y8="flex w-full max-w-[320px] flex-col";function $8({size:t="md",type:e="default",label:n,required:r,helpIcon:i,hint:o,placeholder:l="Select option",disabled:a=!1,compact:u=!1,leadingIcon:d,options:c,value:f=null,onChange:p,values:h=[],onValuesChange:m,hideTagsOnFocus:b=!1,className:y,wrapperClassName:$}){const[x,v]=g.useState(!1),[C,k]=g.useState(""),P=g.useRef(null),N=g.useRef(null),w=e==="tags",D=e==="search"||w,A=c.find(V=>V.id===f)??null,L=c.filter(V=>h.includes(V.id)),_=w&&(!b||!x),R=w&&b&&!x&&L.length>0,E=C?c.filter(V=>`${V.label} ${V.supportingText??""}`.toLowerCase().includes(C.toLowerCase())):c,F=()=>{v(!1),k("")};g.useEffect(()=>{if(!x)return;const V=ne=>{P.current?.contains(ne.target)||F()};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[x]),g.useEffect(()=>{x&&D&&N.current?.focus()},[x,D]);const Z=()=>{a||(x?F():v(!0))},M=V=>{V.disabled||(w?(m?.(h.includes(V.id)?h.filter(ne=>ne!==V.id):[...h,V.id]),k(""),N.current?.focus()):(p?.(V),F()))},Y=V=>{if(V.key==="Enter"){V.preventDefault();const ne=E.find(T=>!T.disabled);x&&ne&&M(ne)}else V.key==="Backspace"&&w&&!C&&h.length?m?.(h.slice(0,-1)):x||v(!0)},S=V=>V.avatar?g.createElement("img",{src:V.avatar,alt:"",className:X(Jl[t],"shrink-0 rounded-full object-cover")}):V.icon?g.createElement("span",{className:X(Jl[t],"flex shrink-0 items-center justify-center",a?"text-light-400":"text-light-500")},V.icon):V.dot?g.createElement("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:a?"#d0d5dd":V.dot}}):null,I=A?S(A):d?g.createElement("span",{className:X(Jl[t],"flex shrink-0 items-center justify-center",a?"text-light-400":"text-light-500")},d):null,U=A?g.createElement("span",{className:"flex min-w-0 items-center gap-2 whitespace-nowrap"},g.createElement("span",{className:X("truncate font-medium",a?"text-light-400":"text-light-800")},A.label),A.supportingText&&g.createElement("span",{className:a?"text-light-400":"text-light-700"},A.supportingText)):g.createElement("span",{className:a?"text-light-400":"text-light-500"},l),oe=x&&g.createElement("div",{role:"listbox",className:u8({size:t})},E.length===0&&g.createElement("div",{className:X(jm({size:t}),"mx-1 w-auto text-light-500 hover:bg-transparent")},"No options found"),E.map(V=>{const ne=w?h.includes(V.id):V.id===f;return g.createElement("div",{key:V.id,className:"px-1 py-0.5"},g.createElement("button",{type:"button",role:"option","aria-selected":ne,disabled:V.disabled,onClick:()=>M(V),className:X(jm({size:t,disabled:V.disabled}),!w&&ne&&!V.disabled&&"bg-light-50")},w&&g.createElement("span",{"aria-hidden":"true",className:oh({size:h8[t],checked:ne,disabled:V.disabled})},ne&&g.createElement(p8,{className:"size-3 text-white"})),S(V),g.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2 whitespace-nowrap"},g.createElement("span",{className:X("truncate font-medium",V.disabled?"text-light-400":"text-light-900")},V.label),V.supportingText&&g.createElement("span",{className:V.disabled?"text-light-400":"text-light-700"},V.supportingText))))}));return g.createElement("div",{ref:P,className:X(u?y8:a8(),$)},n&&g.createElement("label",{className:u?b8():s8()},n,r&&g.createElement("span",{className:"text-error-400"},"*"),i),g.createElement("div",{className:"relative",onKeyDown:V=>{V.key==="Escape"&&F()}},e==="default"?g.createElement("button",{type:"button","aria-haspopup":"listbox","aria-expanded":x,disabled:a,onClick:Z,className:X(u?Wm({size:t,open:x,disabled:a}):Hm({size:t,open:x,disabled:a}),y)},I,g.createElement("span",{className:"flex min-w-0 flex-1 items-center"},U),g.createElement(c8,{className:X(Rm[t],"shrink-0 text-light-500")})):g.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-expanded":x,onClick:Z,className:X(u?Wm({size:t,open:x,disabled:a}):Hm({size:t,open:x,disabled:a}),y)},g.createElement(f8,{className:X(Rm[t],"shrink-0",a?"text-light-400":"text-light-500")}),_&&L.length>0&&g.createElement("div",{className:"flex shrink items-center gap-1 overflow-x-auto whitespace-nowrap [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"},L.map(V=>g.createElement(Pl,{key:V.id,size:"sm",disabled:a,icon:V.avatar?g.createElement("img",{src:V.avatar,alt:"",className:"size-4 shrink-0 rounded-full object-cover"}):void 0,onClose:()=>M(V)},V.label))),!w&&!x&&A?g.createElement("span",{className:"flex min-w-0 flex-1 items-center"},U):R?null:g.createElement("input",{ref:N,value:C,disabled:a,placeholder:l,onChange:V=>{k(V.target.value),x||v(!0)},onKeyDown:Y,className:"min-w-8 flex-1 bg-transparent text-light-900 outline-none placeholder:text-light-500 disabled:cursor-not-allowed disabled:placeholder:text-light-400"})),oe),o&&g.createElement("p",{className:d8()},o))}const Um=H("relative",{variants:{layout:{floating:["flex w-full flex-col gap-4 p-4","rounded-xl border shadow-xs","sm:flex-row sm:items-start"],"full-width":"w-full border-b"}},defaultVariants:{layout:"floating"}}),v8={default:{surface:"bg-light-50",border:"border-light-300",iconSurface:"border border-light-200 bg-white shadow-xs",iconSurfaceOnLight:"border border-light-200 bg-white shadow-xs",iconText:"text-light-800"},brand:{surface:"bg-primary-50",border:"border-primary-300",iconSurface:"bg-primary-100",iconSurfaceOnLight:"bg-white",iconText:"text-primary-500"},gray:{surface:"bg-light-50",border:"border-light-300",iconSurface:"bg-light-100",iconSurfaceOnLight:"bg-white",iconText:"text-light-800"},error:{surface:"bg-error-50",border:"border-error-300",iconSurface:"bg-error-50",iconSurfaceOnLight:"bg-white",iconText:"text-error-500"},warning:{surface:"bg-warning-50",border:"border-warning-300",iconSurface:"bg-warning-100",iconSurfaceOnLight:"bg-white",iconText:"text-warning-500"},success:{surface:"bg-success-50",border:"border-success-300",iconSurface:"bg-success-50",iconSurfaceOnLight:"bg-white",iconText:"text-success-500"}},x8="bg-white border-light-200",C8="relative mx-auto flex w-full max-w-[1280px] flex-col gap-4 px-4 py-4 sm:flex-row sm:items-center sm:gap-3 sm:px-8 sm:py-3",E8=H("flex shrink-0 items-center justify-center",{variants:{layout:{floating:"","full-width":"hidden sm:flex"},shape:{square:"",circle:""},variant:{featured:"",plain:""}},compoundVariants:[{variant:"featured",layout:"floating",class:"size-8"},{variant:"featured",layout:"full-width",class:"size-10"},{variant:"featured",shape:"circle",class:"rounded-full"},{variant:"featured",shape:"square",layout:"floating",class:"rounded-md"},{variant:"featured",shape:"square",layout:"full-width",class:"rounded-lg"}],defaultVariants:{layout:"floating",shape:"square",variant:"featured"}}),Gm=H("flex min-w-0 flex-1",{variants:{layout:{floating:"flex-col gap-3","full-width":"items-center gap-4"}},defaultVariants:{layout:"floating"}}),w8=H("flex min-w-0",{variants:{layout:{floating:"flex-col gap-1","full-width":"flex-col gap-0.5 sm:flex-row sm:flex-wrap sm:gap-x-1.5"},closable:{true:"",false:""}},compoundVariants:[{layout:"floating",closable:!0,class:"pr-8"},{layout:"full-width",closable:!0,class:"pr-8 sm:pr-0"}],defaultVariants:{layout:"floating",closable:!1}}),S8="text-caption-lg font-bold text-light-800",P8="text-caption-lg text-light-600",k8=H("flex gap-3",{variants:{layout:{floating:"flex-wrap items-center","full-width":""},actionVariant:{link:"flex-wrap items-center",button:""}},compoundVariants:[{layout:"full-width",actionVariant:"button",class:"flex-col-reverse sm:flex-row sm:items-center"}],defaultVariants:{layout:"floating",actionVariant:"link"}}),D8=H(["inline-flex items-center justify-center gap-1 bg-transparent p-0","text-caption-lg font-bold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{emphasis:{primary:"text-primary-500 hover:text-primary-800",secondary:"text-light-800 hover:text-light-900"}},defaultVariants:{emphasis:"secondary"}}),N8=H(["flex size-9 shrink-0 items-center justify-center rounded-lg","bg-transparent text-light-500 transition-colors","hover:bg-light-50 hover:text-light-700","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{layout:{floating:"absolute right-[7px] top-[7px]","full-width":"absolute right-2 top-2 sm:static"}},defaultVariants:{layout:"floating"}}),T8={default:bn,brand:bn,gray:bn,error:br,warning:br,success:Ai},Ym=({title:t,description:e,color:n="default",layout:r="floating",background:i="white",icon:o,iconVariant:l="featured",showIcon:a=!0,primaryAction:u,secondaryAction:d,actionVariant:c,actions:f,onClose:p,closeLabel:h="Close",className:m,...b})=>{const y=T8[n],$=r==="floating"?16:20,x=c??(r==="floating"?"link":"button"),v=v8[n],C=i==="light",k=C?X(v.surface,v.border):x8,P=(_,R)=>_?x==="link"?s.createElement("button",{type:"button",onClick:_.onClick,className:D8({emphasis:R})},_.label):s.createElement(Oe,{size:"sm",variant:R==="primary"?"solid":"outline",onPress:_.onClick,className:r==="full-width"?"w-full sm:w-auto":void 0},_.label):null,w=!!(f||u||d)?s.createElement("div",{className:k8({layout:r,actionVariant:x})},f??s.createElement(s.Fragment,null,P(d,"secondary"),P(u,"primary"))):null,D=a&&(o||y)?s.createElement("div",{className:X(E8({layout:r,variant:l,shape:n==="default"?"square":"circle"}),v.iconText,l==="featured"&&(C?v.iconSurfaceOnLight:v.iconSurface))},o??s.createElement(y,{size:$,stroke:2})):null,A=p?s.createElement("button",{type:"button","aria-label":h,onClick:p,className:N8({layout:r})},s.createElement(yn,{size:16,stroke:2})):null,L=s.createElement("div",{className:w8({layout:r,closable:!!p})},s.createElement("p",{className:S8},t),e&&s.createElement("p",{className:P8},e));return r==="full-width"?s.createElement("div",{role:"alert",className:X(Um({layout:r}),k,m),...b},s.createElement("div",{className:C8},s.createElement("div",{className:Gm({layout:r})},D,L),(w||A)&&s.createElement("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-2"},w,A))):s.createElement("div",{role:"alert",className:X(Um({layout:r}),k,m),...b},D,s.createElement("div",{className:Gm({layout:r})},L,w),A)};Ym.displayName="Alert";const A8={success:{container:"bg-success-100",badge:"bg-success-900",iconColor:"text-success-100",text:"text-success-900",defaultTitle:"Success!"},error:{container:"bg-error-100",badge:"bg-error-800",iconColor:"text-error-100",text:"text-error-800",defaultTitle:"Error!"},warning:{container:"bg-warning-100",badge:"bg-warning-800",iconColor:"text-warning-100",text:"text-warning-800",defaultTitle:"Warning!"},info:{container:"bg-info-100",badge:"bg-info-900",iconColor:"text-info-100",text:"text-info-900",defaultTitle:"Info"}},I8=H("relative flex w-full max-w-[400px] items-center gap-2 rounded-md px-2 py-3 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.04)]"),B8="mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-full",F8="flex-1 break-words font-nunito text-sm leading-5",M8=H(["absolute -left-4 -top-3 flex size-6 shrink-0 items-center justify-center rounded-full","shadow-[0px_4px_4px_0px_rgba(0,0,0,0.04)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{variant:{success:"bg-success-100 text-success-900",error:"bg-error-100 text-error-800",warning:"bg-warning-100 text-warning-800",info:"bg-info-100 text-info-900"}}}),K8={success:Ai,error:yn,warning:Dg,info:bn},Xm=({variant:t,message:e,title:n,onClose:r,closeLabel:i="Close",className:o})=>{const l=A8[t],a=K8[t];return g.createElement("div",{role:"status",className:j(I8(),l.container,o)},g.createElement("div",{className:j(B8,l.badge)},g.createElement(a,{size:16,stroke:3,className:l.iconColor})),g.createElement("p",{className:j(F8,l.text)},g.createElement("span",{className:"font-bold"},n??l.defaultTitle),g.createElement("span",{className:"ml-1 font-normal"},e)),r&&g.createElement("button",{type:"button","aria-label":i,onClick:r,className:M8({variant:t})},g.createElement(yn,{size:14,stroke:2.5})))};Xm.displayName="Toast";const Ql=H(["relative flex w-full max-w-[504px] items-start gap-4 rounded-xl border border-light-200","bg-white p-4 shadow-lg"],{variants:{type:{image:"flex-col gap-4 p-0 sm:flex-row"}}}),L8={"primary-icon":{shape:"rounded-full",bg:"bg-primary-100",iconText:"text-primary-500"},"gray-icon":{shape:"rounded-lg border border-light-200 shadow-xs",bg:"bg-white",iconText:"text-light-700"},progress:{shape:"rounded-lg border border-light-200 shadow-xs",bg:"bg-white",iconText:"text-light-700"},success:{shape:"rounded-full",bg:"bg-success-50",iconText:"text-success-500"},warning:{shape:"rounded-full",bg:"bg-warning-100",iconText:"text-warning-500"},error:{shape:"rounded-full",bg:"bg-error-50",iconText:"text-error-500"},avatar:null,image:null,"no-icon":null},qm="font-nunito font-bold text-caption-lg text-light-800",Zm="font-nunito font-normal text-caption-lg text-light-600",O8="flex flex-wrap items-center gap-3",z8=H(["inline-flex items-center justify-center gap-1 bg-transparent p-0","text-caption-lg font-semibold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{emphasis:{primary:"text-primary-500 hover:text-primary-800",secondary:"text-light-800 hover:text-light-900"}},defaultVariants:{emphasis:"secondary"}}),_8="absolute right-[7px] top-[7px] flex size-9 shrink-0 items-center justify-center rounded-lg bg-transparent text-light-500 transition-colors hover:bg-light-50 hover:text-light-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",V8="h-2 w-full rounded-full bg-light-200",H8="h-2 rounded-full bg-primary-500",j8="font-nunito text-caption-lg font-medium text-light-600",R8="h-[122px] w-full shrink-0 overflow-hidden rounded-md bg-light-50 sm:h-auto sm:w-20 sm:self-stretch sm:rounded-none sm:rounded-l-xl",W8="flex flex-1 flex-col gap-3 p-4 sm:py-4 sm:pl-5 sm:pr-4",U8={"primary-icon":bn,progress:Bg,success:Ai,warning:br,error:br},Jm=({action:t,emphasis:e})=>g.createElement("button",{type:"button",onClick:t.onClick,className:z8({emphasis:e})},t.label),Qm=({type:t,title:e,supportingText:n,primaryAction:r,secondaryAction:i,onClose:o,closeLabel:l="Close",icon:a,avatarSrc:u,avatarAlt:d,timestamp:c,imageSrc:f,imageAlt:p,progressValue:h,progressLabel:m,className:b})=>{const y=L8[t],$=U8[t],v=!!(r||i)?g.createElement("div",{className:O8},i&&g.createElement(Jm,{action:i,emphasis:"secondary"}),r&&g.createElement(Jm,{action:r,emphasis:"primary"})):null,C=o?g.createElement("button",{type:"button","aria-label":l,onClick:o,className:_8},g.createElement(Xt,{icon:yn,size:"sm",strokeWidth:2})):null,k=g.createElement("div",{className:"flex flex-col gap-1"},g.createElement("p",{className:qm},e),n&&g.createElement("p",{className:Zm},n)),P=t==="progress"?g.createElement("div",{className:"flex flex-col items-end gap-2"},g.createElement("div",{className:V8},g.createElement("div",{className:H8,style:{width:`${Math.min(100,Math.max(0,h??0))}%`}})),m&&g.createElement("p",{className:j8},m)):null,N=t==="avatar"?g.createElement(yi,{src:u,alt:d,size:"md",status:"online"}):y?g.createElement("div",{className:j("flex size-8 shrink-0 items-center justify-center",y.shape,y.bg)},a??($&&g.createElement(Xt,{icon:$,size:"sm",strokeWidth:2,className:y.iconText}))):null;return t==="image"?g.createElement("div",{role:"status",className:j(Ql({type:t}),b)},g.createElement("div",{className:R8},f&&g.createElement("img",{src:f,alt:p??"",className:"size-full object-cover"})),g.createElement("div",{className:W8},k,v),C):t==="avatar"?g.createElement("div",{role:"status",className:j(Ql(),b)},N,g.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-3"},g.createElement("div",{className:"flex flex-col gap-1"},g.createElement("div",{className:"flex flex-wrap items-center gap-2"},g.createElement("p",{className:qm},e),c&&g.createElement("span",{className:"font-nunito text-caption-lg text-light-500"},c)),n&&g.createElement("p",{className:Zm},n)),v),C):g.createElement("div",{role:"status",className:j(Ql(),b)},N,g.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-3"},k,P,v),C)};Qm.displayName="NotificationToast";const G8=j("relative overflow-auto rounded-lg border border-light-200 bg-white"),Y8=j("w-full border-collapse text-left"),X8=j("sticky top-0 z-10 bg-light-100"),q8=j("data-[empty]:h-full"),Z8=j("border-t border-light-200 bg-light-100 [&_tr]:!bg-light-100"),J8=j("relative min-h-[36px] whitespace-nowrap px-5 py-2 align-middle","border-b border-r border-light-200 last:border-r-0","has-[[data-resizable-direction]]:border-r-0","font-nunito text-caption-lg leading-caption-lg text-light-800","select-none","data-[hovered]:bg-light-200","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500 data-[focus-visible]:-outline-offset-2"),Q8={start:"text-left",center:"text-center",end:"text-right"},e7=j("sticky z-30 bg-light-100 data-[hovered]:bg-light-200"),eg={left:"border-r-0 shadow-[inset_-1px_0_0_0_#D0D5DD]",right:"border-l-0 shadow-[inset_1px_0_0_0_#D0D5DD]"},t7=j("sticky z-20 bg-white","data-[hovered]:bg-light-100","group-data-[selected]/row:bg-primary-100","group-data-[selected]/row:data-[hovered]:bg-primary-200"),n7=j("flex min-w-0 items-center justify-between gap-3 self-stretch"),tg={inactive:"text-light-500",active:"text-light-800"},r7=j("group/row","bg-white data-[hovered]:bg-light-100","data-[selected]:bg-primary-100","data-[selected]:data-[hovered]:bg-primary-200","data-[disabled]:bg-white data-[disabled]:text-light-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500","data-[focus-visible]:-outline-offset-2"),i7=j("group/cell relative min-h-[42px] min-w-0 px-5 py-2 align-middle","border-b border-r border-light-200 last:border-r-0","font-nunito text-caption-lg leading-caption-lg text-light-800","data-[disabled]:text-light-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500","data-[focus-visible]:-outline-offset-2"),o7=j("flex min-h-[26px] min-w-0 items-center gap-3 self-stretch"),l7=j("group-first/cell:group-data-[selected]/row:shadow-[inset_2px_0_0_0_#1352BF]"),a7="block truncate",s7=j("absolute right-[-3px] top-0 h-full w-2 shrink-0 cursor-col-resize touch-none","data-[resizable-direction=left]:cursor-w-resize","data-[resizable-direction=right]:cursor-e-resize","after:absolute after:right-1/2 after:top-0 after:h-full after:w-px after:translate-x-1/2 after:bg-light-300","after:transition-[width,background-color] after:duration-100 after:ease-out","data-[hovered]:after:w-0.5 data-[hovered]:after:bg-light-500","data-[resizing]:after:w-0.5 data-[resizing]:after:bg-primary-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500 data-[focus-visible]:-outline-offset-2"),u7=j("w-full border-t border-light-200 py-3 text-center"),hr={container:j("flex flex-col items-center gap-3 px-6 py-10 text-center"),iconWrap:j("flex h-14 w-14 items-center justify-center rounded-full bg-light-100 text-light-500 [&>svg]:h-6 [&>svg]:w-6"),title:j("font-nunito text-body-sm font-semibold text-light-800"),description:j("max-w-sm font-nunito text-caption-lg text-light-600"),actions:j("mt-2 flex items-center gap-2")};function ng({sticky:t,stickyOffset:e=0},n){return t?{...n,[t]:e}:n}const rg=s.forwardRef(({className:t,...e},n)=>g.createElement(M1,{ref:n,...e,className:j(G8,t)}));rg.displayName="TableContainer";const ig=s.forwardRef(({className:t,...e},n)=>g.createElement(L1,{ref:n,...e,className:j(Y8,t)}));ig.displayName="Table";const d7=s.forwardRef(({className:t,...e},n)=>g.createElement(H1,{ref:n,...e,className:j(X8,t)})),c7=s.forwardRef(({className:t,...e},n)=>g.createElement(X1,{ref:n,...e,className:j(q8,t)})),f7=s.forwardRef(({className:t,...e},n)=>g.createElement(Z1,{ref:n,...e,className:j(Z8,t)})),p7={onPointerDown:t=>t.stopPropagation(),onMouseDown:t=>t.stopPropagation(),onClick:t=>t.stopPropagation(),onKeyDown:t=>t.stopPropagation()},og=s.forwardRef(({className:t,align:e="start",children:n,allowsSorting:r,actions:i,sticky:o,stickyOffset:l,style:a,...u},d)=>g.createElement(U1,{ref:d,allowsSorting:r,...u,style:ng({sticky:o,stickyOffset:l},a),className:j(J8,Q8[e],o&&e7,o&&eg[o],t)},c=>{const{allowsSorting:f,sortDirection:p}=c;let h=typeof n=="function"?n(c):n;g.isValidElement(h)&&h.type===g.Fragment&&(h=h.props.children);const m=g.Children.toArray(h),b=m.filter($=>g.isValidElement($)&&$.type===Di),y=m.filter($=>!(g.isValidElement($)&&$.type===Di));return g.createElement("div",{className:n7},g.createElement("span",{className:"min-w-0 truncate"},y),f&&g.createElement("span",{className:j("shrink-0",p?tg.active:tg.inactive)},p==="ascending"&&g.createElement(Tg,{size:14,"aria-hidden":"true"}),p==="descending"&&g.createElement(Ng,{size:14,"aria-hidden":"true"}),!p&&g.createElement(Ag,{size:14,"aria-hidden":"true"})),i&&g.createElement("span",{className:"shrink-0",...p7},i),b)}));og.displayName="Column";const h7=s.forwardRef(({className:t,...e},n)=>g.createElement(J1,{ref:n,...e,className:j(r7,t)})),lg=s.forwardRef(({className:t,children:e,sticky:n,stickyOffset:r,style:i,...o},l)=>g.createElement(Q1,{ref:l,...o,style:ng({sticky:n,stickyOffset:r},i),className:j(i7,l7,n&&t7,n&&eg[n],t)},a=>g.createElement("div",{className:o7},typeof e=="function"?e(a):e)));lg.displayName="Cell";const Di=s.forwardRef(({className:t,...e},n)=>g.createElement(G1,{ref:n,...e,className:j(s7,t)}));Di.displayName="ColumnResizer";const ag=s.forwardRef(({className:t,children:e,isLoading:n,...r},i)=>g.createElement(ly,{ref:i,isLoading:n,...r,className:j(u7,t)},e??(n&&g.createElement(ba,{size:18,className:"inline-block animate-spin text-light-500","aria-label":"Loading more"}))));ag.displayName="TableLoadMoreItem";const sg=g.forwardRef(({icon:t,title:e,description:n,actions:r,className:i},o)=>g.createElement("div",{ref:o,className:j(hr.container,i)},t&&g.createElement("div",{className:hr.iconWrap},t),g.createElement("p",{className:hr.title},e),n&&g.createElement("p",{className:hr.description},n),r&&g.createElement("div",{className:hr.actions},r)));sg.displayName="EmptyState";const m7=H(["fixed inset-0 flex items-center justify-center","bg-black/40 p-4"]),g7=H(["relative flex max-h-full items-stretch overflow-hidden","rounded-xl border border-light-200 bg-white","shadow-[0px_2px_4px_-1px_rgba(16,24,40,0.08),0px_8px_24px_-4px_rgba(16,24,40,0.14)]","outline-none"]),b7=H(["flex min-w-0 shrink-0 flex-col self-stretch overflow-hidden outline-none"],{variants:{size:{sm:"w-[500px]",md:"w-[640px]",lg:"w-[800px]"}},defaultVariants:{size:"sm"}}),y7=H(["absolute right-[7px] top-[7px] z-10"]),$7=H(["flex w-full shrink-0 items-center gap-3 px-6 py-4"]),v7=H(["min-h-0 w-full flex-1 overflow-y-auto"]),x7=H(["flex shrink-0 items-center justify-center self-stretch overflow-hidden py-2 pr-2"]),C7=H(["flex h-full w-[240px] items-center justify-center overflow-hidden","rounded-lg border border-light-200 bg-primary-50"]),E7=H(["flex w-full shrink-0 items-center gap-3 px-6 py-4"],{variants:{layout:{"horizontal-fill":"[&>*]:flex-1",horizontal:"justify-end","vertical-fill":"flex-col items-stretch","right-aligned":"","right-aligned-checkbox":"","wizard-navigation":"","single-cta":""}},defaultVariants:{layout:"horizontal-fill"}}),ug=g.forwardRef(({className:t,style:e,size:n="sm",showCloseButton:r=!0,isDismissable:i=!0,imagePanel:o,children:l,"aria-label":a,"aria-labelledby":u,...d},c)=>g.createElement(D0,{...d,isDismissable:i,className:m7(),style:{zIndex:C$}},g.createElement(j2,{ref:c,className:g7()},g.createElement($2,{"aria-label":a,"aria-labelledby":u,style:e,className:j(b7({size:n}),t)},f=>g.createElement(g.Fragment,null,r&&g.createElement(Oe,{type:"button",size:"sm",variant:"ghost",iconOnly:!0,onPress:f.close,"aria-label":"Close",className:y7()},g.createElement(Oe.Icon,null,g.createElement(yn,{size:16}))),typeof l=="function"?l(f):l)),o)));ug.displayName="Modal";const w7=({title:t,subtitle:e,icon:n,className:r})=>g.createElement("div",{className:j($7(),r)},n&&g.createElement("span",{className:"flex size-6 shrink-0 items-center justify-center","aria-hidden":"true"},n),g.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5"},g.createElement(_3,{slot:"title",className:"text-[18px] font-bold leading-5 text-light-800"},t),e&&g.createElement("p",{className:"text-caption-sm text-light-500"},e))),S7=({children:t,className:e})=>g.createElement("div",{className:j(v7(),e)},t),P7=({children:t,className:e})=>g.createElement("div",{className:x7()},g.createElement("div",{className:j(C7(),e)},t)),dg=g.createElement("div",{className:"h-px min-w-px flex-1","aria-hidden":"true"}),k7=({layout:t="horizontal-fill",destructive:e=!1,isPending:n=!1,cancelLabel:r,onCancel:i,confirmLabel:o,onConfirm:l,isConfirmDisabled:a=!1,backLabel:u="Back",onBack:d,checkbox:c,className:f})=>{const p=g.createElement(Oe,{type:"button",size:"sm",tone:e?"destructive":"primary",isDisabled:a||n,isPending:n,onPress:l},g.createElement(Oe.Text,null,o)),h=r&&g.createElement(Oe,{type:"button",size:"sm",variant:"outline",isDisabled:n,onPress:i},g.createElement(Oe.Text,null,r)),m=r&&g.createElement(Oe,{type:"button",size:"sm",variant:"plain",isDisabled:n,onPress:i},g.createElement(Oe.Text,null,r)),b=g.createElement(Oe,{type:"button",size:"sm",variant:"outline",isDisabled:n,onPress:d},g.createElement(Oe.Text,null,u));let y;switch(t){case"single-cta":y=g.createElement("div",{className:"w-full"},p);break;case"vertical-fill":y=g.createElement(g.Fragment,null,g.createElement("div",{className:"w-full"},p),r&&g.createElement("div",{className:"flex w-full items-center justify-center"},m));break;case"right-aligned":y=g.createElement(g.Fragment,null,m,dg,p);break;case"right-aligned-checkbox":y=g.createElement(g.Fragment,null,c&&g.createElement("div",{className:"flex min-w-0 flex-1 items-start"},c),g.createElement("div",{className:"flex shrink-0 items-center gap-3"},h,p));break;case"wizard-navigation":y=g.createElement(g.Fragment,null,m,dg,g.createElement("div",{className:"flex shrink-0 items-center gap-3"},b,p));break;default:y=g.createElement(g.Fragment,null,h,p);break}return g.createElement("div",{className:j(E7({layout:t}),f)},y)},mr=ug;mr.Header=w7,mr.Body=S7,mr.ImagePanel=P7,mr.Footer=k7;function D7({className:t,style:e,...n},r){return g.createElement(w4,{ref:r,...n,style:e,className:j(Kh,t)})}const N7=g.forwardRef(D7);function T7({className:t,style:e,content:n="none",icon:r,shortcut:i,children:o,...l},a){return g.createElement(k4,{ref:a,...l,style:e,className:j(Lh,t)},u=>g.createElement(g.Fragment,null,n==="icon"&&r&&g.createElement("span",{className:$i},r),n==="selection"&&g.createElement("span",{className:$i},u.isSelected&&g.createElement(Ni,{size:16,"aria-hidden":"true"})),g.createElement("span",{className:"min-w-0 flex-1 truncate"},typeof o=="function"?o(u):o),i&&g.createElement("span",{className:Oh},i)))}const ea=g.forwardRef(T7),A7=({className:t})=>g.createElement(Qu,{className:j(zh,t)}),cg="data-[selected]:bg-primary-50 data-[selected]:text-primary-700",I7=H(["flex w-full items-center justify-between gap-2 border bg-white text-left","text-light-900 outline-none cursor-pointer","transition-[border-color,box-shadow]","border-light-200 group-data-[open]:border-primary-500","group-data-[focus-visible]:shadow-focus","group-data-[invalid]:border-error-200 group-data-[invalid]:group-data-[open]:border-error-500 group-data-[invalid]:group-data-[focus-visible]:border-error-500","group-data-[disabled]:cursor-not-allowed group-data-[disabled]:bg-light-100 group-data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),B7="flex size-4 shrink-0 items-center justify-center text-light-500",F7={xs:18,sm:20,md:24},M7=H("min-w-0 flex-1 truncate",{variants:{placeholder:{true:"text-light-400",false:"font-medium text-light-800"}},defaultVariants:{placeholder:!1}}),K7=H("shrink-0 text-light-500 transition-transform",{variants:{open:{true:"rotate-180",false:""}},defaultVariants:{open:!1}});function L7({className:t,style:e,children:n,...r},i){return g.createElement(J2,{ref:i,...r,style:e,className:j("group",t)},n)}const O7=g.forwardRef(L7),fg=g.forwardRef(({className:t,style:e,size:n="md",icon:r,children:i,...o},l)=>g.createElement(Kn,{ref:l,...o,style:e,className:j(I7({size:n}),t)},a=>g.createElement(g.Fragment,null,r&&g.createElement("span",{className:B7},r),typeof i=="function"?i(a):i,g.createElement(Ti,{size:F7[n],"aria-hidden":"true",className:K7({open:a.isPressed})}))));fg.displayName="SelectTrigger";function z7({className:t,style:e,...n},r){return g.createElement(t1,{ref:r,...n,style:e,className:i=>j(M7({placeholder:i.isPlaceholder}),t)})}const _7=g.forwardRef(z7);function V7({className:t,...e}){return g.createElement(ea,{...e,content:"selection",className:j(cg,t)})}const H7=H(["flex w-full flex-nowrap items-center gap-2 border bg-white text-left","border-light-200 text-light-900","transition-[border-color,box-shadow]","group-data-[open]:border-primary-500","group-data-[focus-visible]:shadow-focus","group-data-[invalid]:border-error-200 group-data-[invalid]:group-data-[open]:border-error-500 group-data-[invalid]:group-data-[focus-visible]:border-error-500","group-data-[disabled]:cursor-not-allowed group-data-[disabled]:bg-light-100 group-data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),j7=H("flex shrink-0 items-center justify-center text-light-500",{variants:{size:{xs:"size-5",sm:"size-6",md:"size-7"}},defaultVariants:{size:"md"}}),R7="flex min-w-0 flex-nowrap items-center gap-1.5 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",W7="min-w-[4rem] flex-1 bg-transparent font-medium text-light-800 outline-none placeholder:font-normal placeholder:text-light-400 disabled:cursor-not-allowed";function U7({className:t,style:e,children:n,...r},i){return g.createElement(N2,{ref:i,...r,style:e,className:j("group",t)},n)}const G7=g.forwardRef(U7),pg=g.forwardRef(({className:t,size:e="md",icon:n,children:r,onClick:i,...o},l)=>{const a=g.useCallback(u=>{i?.(u),u.target.closest("button, input")||u.currentTarget.querySelector("input")?.focus()},[i]);return g.createElement(Co,{ref:l,...o,onClick:a,className:j(H7({size:e}),t)},n&&g.createElement("span",{className:j7({size:e})},n),r)});pg.displayName="ComboBoxTrigger";const hg=g.forwardRef(({className:t,style:e,onKeyDown:n,...r},i)=>{const o=g.useContext(el),l=g.useCallback(a=>{if(n?.(a),a.key==="Backspace"&&!a.defaultPrevented&&a.currentTarget.value===""&&o?.selectionManager.selectionMode==="multiple"){const u=o.selectedItems[o.selectedItems.length-1];u&&o.selectionManager.toggleSelection(u.key)}},[n,o]);return g.createElement(gu,{ref:i,...r,style:e,onKeyDown:l,className:j(W7,t)})});hg.displayName="ComboBoxInput";const Y7=({children:t})=>{const e=g.useContext(el);return e?g.createElement("div",{className:R7},e.selectedItems.map(n=>n?g.createElement(g.Fragment,{key:n.key},t({key:n.key,textValue:n.textValue??String(n.key),onRemove:()=>e.selectionManager.toggleSelection(n.key)})):null)):null};function X7({className:t,...e}){return g.createElement(ea,{...e,content:"selection",className:j(cg,t)})}const q7=H(["relative inline-flex w-fit items-center font-semibold","transition-[color,background-color] duration-150","focus-visible:outline-none","[-webkit-tap-highlight-color:transparent]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:text-light-400"],{variants:{size:{xs:"gap-1 text-caption-sm",sm:"gap-1 text-caption-lg",md:"gap-1.5 text-body-sm"},variant:{text:["bg-transparent text-light-600","data-[hovered]:text-light-900","data-[current]:text-light-800","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],ghost:["bg-transparent text-light-500 rounded-md","data-[hovered]:bg-light-50 data-[hovered]:text-light-700","data-[current]:bg-light-50 data-[current]:text-light-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],"ghost-primary":["bg-transparent text-primary-500 rounded-md","data-[hovered]:bg-primary-100 data-[hovered]:text-primary-800","data-[current]:bg-primary-100 data-[current]:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"]},underline:{none:"",hover:"data-[hovered]:underline underline-offset-2",always:"underline underline-offset-2"}},compoundVariants:[{variant:"ghost",size:"xs",class:"px-1.5 py-0.5"},{variant:"ghost",size:"sm",class:"px-2 py-1"},{variant:"ghost",size:"md",class:"px-2.5 py-1.5"},{variant:"ghost-primary",size:"xs",class:"px-1.5 py-0.5"},{variant:"ghost-primary",size:"sm",class:"px-2 py-1"},{variant:"ghost-primary",size:"md",class:"px-2.5 py-1.5"}],defaultVariants:{size:"sm",variant:"text",underline:"none"}}),ta=g.forwardRef(({children:t,className:e,variant:n="text",size:r="sm",underline:i="none",...o},l)=>g.createElement(S3,{...o,ref:l,className:Fi(e,a=>j(q7({variant:n,size:r,underline:i}),a))},t));ta.displayName="Link";const mg=g.createContext({separator:"chevron",variant:"text",size:"sm"}),gg=()=>g.useContext(mg),Z7="flex flex-wrap items-center",J7="inline-flex items-center gap-1.5",Q7=H("shrink-0 text-light-400",{variants:{type:{chevron:"size-4",slash:"size-3.5"}},defaultVariants:{type:"chevron"}}),eC="inline-flex size-5 shrink-0 items-center justify-center [&_svg]:size-full",bg=({"aria-label":t="Breadcrumb",separator:e="chevron",variant:n="text",size:r="sm",isDisabled:i,className:o,children:l})=>{const a=g.useMemo(()=>({separator:e,variant:n,size:r}),[e,n,r]);return g.createElement("nav",{"aria-label":t},g.createElement(mg.Provider,{value:a},g.createElement(D3,{isDisabled:i,className:j(Z7,o)},l)))};bg.displayName="Breadcrumbs";const na=({type:t="chevron",className:e})=>{const n=t==="slash"?Fg:Ig;return g.createElement("span",{"aria-hidden":"true",className:j(Q7({type:t}),e)},g.createElement(n,{className:"size-full",stroke:2}))};na.displayName="BreadcrumbSeparator";const yg=({className:t,children:e})=>{const{separator:n}=gg();return g.createElement(N3,{className:j(J7,t)},({isCurrent:r})=>g.createElement(g.Fragment,null,e,!r&&g.createElement(na,{type:n})))};yg.displayName="Breadcrumb";const $g=({variant:t,size:e,icon:n,children:r,...i})=>{const o=gg();return g.createElement(ta,{variant:t??o.variant,size:e??o.size,...i},n&&g.createElement("span",{className:eC,"aria-hidden":"true"},n),r)};$g.displayName="BreadcrumbLink";const tC={xs:24,sm:32,md:40,lg:48,xl:56},nC={xs:12,sm:16,md:20,lg:24,xl:28},vg={brand:{light:"bg-primary-100",dark:"bg-primary-500",glass:"bg-primary-100/60 backdrop-blur-sm"},gray:{light:"bg-light-100",dark:"bg-light-600",modern:"bg-white border border-light-200 shadow-xs"},error:{light:"bg-error-50",dark:"bg-error-500"},warning:{light:"bg-warning-100",dark:"bg-warning-600"},success:{light:"bg-success-50",dark:"bg-success-500"}},xg={brand:{light:"text-primary-500",dark:"text-white",glass:"text-primary-700"},gray:{light:"text-light-700",dark:"text-white",modern:"text-light-700"},error:{light:"text-error-500",dark:"text-white"},warning:{light:"text-warning-600",dark:"text-white"},success:{light:"text-success-500",dark:"text-white"}};function rC(t,e){return vg[t][e]??vg[t].light??""}function iC(t,e){return xg[t][e]??xg[t].light??""}const oC=H("relative inline-flex shrink-0 items-center justify-center",{variants:{type:{light:"rounded-full",dark:"rounded-lg",modern:"rounded-lg",glass:"rounded-full"}},defaultVariants:{type:"light"}}),Cg=({icon:t,size:e="md",color:n="brand",type:r="light",className:i})=>{const o=tC[e],l=nC[e];return g.createElement("div",{"aria-hidden":!0,className:X(oC({type:r}),rC(n,r),i),style:{width:o,height:o}},g.createElement(Xt,{icon:t,strokeWidth:2,className:iC(n,r),style:{width:l,height:l}}))};Cg.displayName="FeaturedIcon";const lC={xs:20,sm:24,md:28,lg:32},aC={xs:9,sm:11,md:12,lg:14},sC={primary:{default:"bg-primary-100",line:"bg-transparent border border-primary-300",filled:"bg-primary-500"},gray:{default:"bg-light-100",line:"bg-transparent border border-light-300",filled:"bg-light-600"},success:{default:"bg-success-50",line:"bg-transparent border border-success-300",filled:"bg-success-500"}},uC={primary:{default:"text-primary-500",line:"text-primary-500",filled:"text-white"},gray:{default:"text-light-700",line:"text-light-700",filled:"text-white"},success:{default:"text-success-500",line:"text-success-500",filled:"text-white"}};function dC(t,e){return sC[t][e]}function cC(t,e){return uC[t][e]}const fC=H("relative inline-flex shrink-0 items-center justify-center rounded-full"),Eg=({size:t="sm",color:e="primary",type:n="default",className:r})=>{const i=lC[t],o=aC[t];return g.createElement("div",{"aria-hidden":!0,className:X(fC(),dC(e,n),r),style:{width:i,height:i}},g.createElement(Xt,{icon:Ni,strokeWidth:2.5,className:cC(e,n),style:{width:o,height:o}}))};Eg.displayName="CheckIcon";const pC={sm:8,md:10,lg:12},hC={sm:6,md:8,lg:10},mC=H("relative shrink-0 rounded-full bg-current",{variants:{outline:{true:"ring-2 ring-white",false:""}},defaultVariants:{outline:!1}}),wg=({size:t="sm",outline:e=!1,className:n})=>{const r=pC[t],i=hC[t];return g.createElement("span",{"aria-hidden":!0,className:"relative inline-flex shrink-0 items-center justify-center",style:{width:r,height:r}},g.createElement("span",{className:X(mC({outline:e}),n),style:{width:i,height:i}}))};wg.displayName="Dot",W.Alert=Ym,W.Avatar=yi,W.AvatarGroup=$h,W.AvatarLabelGroup=vh,W.AvatarProfilePhoto=xh,W.Badge=ph,W.BadgeGroup=hh,W.BaseInput=er,W.Breadcrumb=yg,W.BreadcrumbLink=$g,W.BreadcrumbSeparator=na,W.Breadcrumbs=bg,W.Button=Oe,W.Cell=lg,W.CheckIcon=Eg,W.Checkbox=lh,W.Column=og,W.ColumnResizer=Di,W.ComboBox=G7,W.ComboBoxInput=hg,W.ComboBoxItem=X7,W.ComboBoxTags=Y7,W.ComboBoxTrigger=pg,W.Dot=wg,W.EmptyState=sg,W.FeaturedIcon=Cg,W.Icon=Xt,W.Input=Zl,W.InputCardNumber=B9,W.InputCounter=P9,W.InputDropdown=$8,W.InputPhone=y9,W.InputPrice=S9,W.Link=ta,W.ListBox=N7,W.ListBoxItem=ea,W.ListBoxSeparator=A7,W.Loading=mh,W.Menu=Dl,W.MenuHeader=_v,W.MenuItem=Nl,W.MenuSeparator=zv,W.MenuTrigger=li,W.Modal=mr,W.NotificationToast=Qm,W.Popover=Qn,W.RadioGroup=m$,W.RadioGroupItem=sh,W.Row=h7,W.Select=O7,W.SelectItem=V7,W.SelectTrigger=fg,W.SelectValue=_7,W.SelectionIndicator=t4,W.Tab=Ch,W.TabBrowser=Nh,W.TabBrowserBar=Th,W.TabBrowserPreview=Ah,W.TabList=Eh,W.Table=ig,W.TableBody=c7,W.TableContainer=rg,W.TableFooter=f7,W.TableHeader=d7,W.TableLoadMoreItem=ag,W.Tag=Pl,W.Textarea=Vm,W.Toast=Xm,W.Toggle=uh,W.Tooltip=gi,W.WebsiteCopyInput=l8,W.WebsiteInput=Z9,W.buttonIconSizePx=s$,W.cellTruncate=a7,W.getDefaultCountryOptions=Mm,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})}));
|
|
12
|
+
}`.trim(),document.head.prepend(i);let l=c=>{if(!(c.touches.length===2||n)){if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()}},o=c=>{let f=G(c),m=c.relatedTarget;m&&gr(m)?(m.focus({preventScroll:!0}),h4(m,gr(f))):m||f.parentElement?.closest("[tabindex]")?.focus({preventScroll:!0})},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let f=ce(),m=f!=null&&gr(f);s.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&h4(this,m)};let d=at(Zo(document,"touchstart",r,{passive:!1,capture:!0}),Zo(document,"touchmove",l,{passive:!1,capture:!0}),Zo(document,"blur",o,!0));return()=>{e(),d(),i.remove(),HTMLElement.prototype.focus=s}}function Pa(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Zo(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function h4(e,t){t||!Zr?p4(e):Zr.addEventListener("resize",()=>p4(e),{once:!0})}function p4(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=ot(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(a.top<i.top||a.bottom>i.top+n.clientHeight){let l=i.bottom;Zr&&(l=Math.min(l,Zr.offsetTop+Zr.height));let o=a.top-i.top-((l-i.top)/2-a.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}n=r.parentElement}}function b9(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o,...s}=e,d=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:f}=f4({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||d,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o},i??r),{overlayProps:m,arrowProps:h,placement:p,triggerAnchorPoint:g}=d9({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!d?t.close:null,getTargetRect:s.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});m4({isDisabled:a||!t.isOpen}),u.useEffect(()=>{if(t.isOpen&&r.current)return a?Qx(i?.current??r.current):Ho([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:y}=jn(e);return{popoverProps:X(c,m,y),arrowProps:h,underlayProps:f,placement:p,triggerAnchorPoint:g}}var b4={};b4={dismiss:"تجاهل"};var g4={};g4={dismiss:"Отхвърляне"};var y4={};y4={dismiss:"Odstranit"};var $4={};$4={dismiss:"Luk"};var v4={};v4={dismiss:"Schließen"};var x4={};x4={dismiss:"Απόρριψη"};var C4={};C4={dismiss:"Dismiss"};var D4={};D4={dismiss:"Descartar"};var E4={};E4={dismiss:"Lõpeta"};var w4={};w4={dismiss:"Hylkää"};var S4={};S4={dismiss:"Rejeter"};var P4={};P4={dismiss:"התעלם"};var k4={};k4={dismiss:"Odbaci"};var B4={};B4={dismiss:"Elutasítás"};var N4={};N4={dismiss:"Ignora"};var A4={};A4={dismiss:"閉じる"};var F4={};F4={dismiss:"무시"};var T4={};T4={dismiss:"Atmesti"};var I4={};I4={dismiss:"Nerādīt"};var M4={};M4={dismiss:"Lukk"};var K4={};K4={dismiss:"Negeren"};var L4={};L4={dismiss:"Zignoruj"};var O4={};O4={dismiss:"Descartar"};var z4={};z4={dismiss:"Dispensar"};var V4={};V4={dismiss:"Revocare"};var _4={};_4={dismiss:"Пропустить"};var R4={};R4={dismiss:"Zrušiť"};var j4={};j4={dismiss:"Opusti"};var H4={};H4={dismiss:"Odbaci"};var U4={};U4={dismiss:"Avvisa"};var W4={};W4={dismiss:"Kapat"};var G4={};G4={dismiss:"Скасувати"};var Z4={};Z4={dismiss:"取消"};var Y4={};Y4={dismiss:"關閉"};var q4={};q4={"ar-AE":b4,"bg-BG":g4,"cs-CZ":y4,"da-DK":$4,"de-DE":v4,"el-GR":x4,"en-US":C4,"es-ES":D4,"et-EE":E4,"fi-FI":w4,"fr-FR":S4,"he-IL":P4,"hr-HR":k4,"hu-HU":B4,"it-IT":N4,"ja-JP":A4,"ko-KR":F4,"lt-LT":T4,"lv-LV":I4,"nb-NO":M4,"nl-NL":K4,"pl-PL":L4,"pt-BR":O4,"pt-PT":z4,"ro-RO":V4,"ru-RU":_4,"sk-SK":R4,"sl-SI":j4,"sr-SP":H4,"sv-SE":U4,"tr-TR":W4,"uk-UA":G4,"zh-CN":Z4,"zh-TW":Y4};function g9(e){return e&&e.__esModule?e.default:e}function Yo(e){let{onDismiss:t,...n}=e,r=ke(g9(q4),"@react-aria/overlays"),i=Ft(n,r.format("dismiss")),a=()=>{t&&t()};return u.createElement(Mr,null,u.createElement("button",{...i,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}const X4=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),i=u.useContext(Cr),a=X(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=Te(n||i?.ref),xl(i,a.ref),u.useEffect(()=>{r.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."),r.current=!0)},[]),u.createElement(Cr.Provider,{value:a},e)});function y9({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(Cr.Provider,{value:t},e)}const $9=u.createContext({});function v9(){return u.useContext($9)??{}}const J4=u.createContext(null);function qo(e){let t=jt(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=u.useState(!1),l=u.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:o}=v9();if(!e.portalContainer&&o&&(n=o()),!n)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement(ya,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},s)),s=u.createElement(J4.Provider,{value:l},u.createElement(y9,null,u.createElement(Ii.Provider,{value:null},s))),Rt.createPortal(s,n)}function Q4(){let t=u.useContext(J4)?.setContain;fe(()=>{t?.(!0)},[t])}function Yr(e){let[t,n]=He(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,i]=u.useState(null);const a=u.useCallback(()=>{n(!0)},[n]),l=u.useCallback(()=>{n(!1)},[n]),o=u.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:a,close:l,toggle:o,point:r,setPoint:i}}function Xo(e,t=!0){let[n,r]=u.useState(!0),i=n&&t;return fe(()=>{if(i&&e.current&&"getAnimations"in e.current)for(let a of e.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[e,i]),e3(e,i,u.useCallback(()=>r(!1),[])),i}function Jo(e,t){let[n,r]=u.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let i=n==="exiting";return e3(e,i,u.useCallback(()=>{r(a=>a==="exiting"?"closed":a)},[])),i}function e3(e,t,n){fe(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.allSettled(r.map(a=>a.finished)).then(()=>{i||Rt.flushSync(()=>{n()})}),()=>{i=!0}}},[e,t,n])}const qr=u.createContext(null),t3=u.createContext(null),n3=u.forwardRef(function(t,n){[t,n]=pe(t,n,qr);let r=u.useContext(Ot),i=Yr(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,l=Jo(n,a.isOpen),o=t.isExiting||!t.shouldSkipAnimation&&l||!1,s=fd(),{direction:d}=be();if(s){let c=t.children;return typeof c=="function"&&(c=c({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),u.createElement(u.Fragment,null,c)}return a&&!a.isOpen&&!o?null:u.createElement(x9,{...t,triggerRef:t.triggerRef,state:a,popoverRef:n,isExiting:o,dir:d})});function x9({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=u.useRef(null),l=u.useRef(null),o=u.useContext(t3),s=o&&i.trigger==="SubmenuTrigger",{popoverProps:d,underlayProps:c,arrowProps:f,placement:m,triggerAnchorPoint:h}=b9({...i,offset:i.offset??8,arrowRef:a,groupRef:s?o:l},e),p=i.popoverRef,g=Xo(p,!!m),y=i.isEntering||!i.shouldSkipAnimation&&g||!1,$=ue({...i,defaultClassName:"react-aria-Popover",values:{trigger:i.trigger||null,placement:m,isEntering:y,isExiting:t}}),x=!i.isNonModal||i.trigger==="SubmenuTrigger"||i.trigger==="PreviewTrigger",[v,C]=u.useState(i.trigger==="PreviewTrigger");fe(()=>{p.current&&C(x&&!p.current.querySelector("[role=dialog]"))},[p,x]),u.useEffect(()=>{v&&i.trigger!=="PreviewTrigger"&&(i.trigger!=="SubmenuTrigger"||Kn()!=="pointer")&&p.current&&!Ht(p.current)&&Ie(p.current)},[v,p,i.trigger]);let w=u.useMemo(()=>{let F=$.children;if(r)for(let I of r)F=u.createElement(I.Provider,{value:null},F);return F},[$.children,r]),[S,B]=u.useState(null),E=u.useCallback(()=>{i.triggerRef.current&&B(i.triggerRef.current.getBoundingClientRect().width+"px")},[i.triggerRef]);fe(E,[E]),Gr({ref:$.style?.["--trigger-width"]?void 0:i.triggerRef,onResize:E});let k={...d.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...$.style,"--trigger-width":$.style?.["--trigger-width"]||S},M=u.createElement(re.div,{...X(ie(i,{global:!0}),d),...$,id:v?i.id:void 0,role:v?"dialog":void 0,tabIndex:v?-1:void 0,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"],ref:p,slot:i.slot||void 0,style:k,dir:i.dir,"data-trigger":i.trigger,"data-placement":m,"data-entering":y||void 0,"data-exiting":t||void 0},!i.isNonModal&&u.createElement(Yo,{onDismiss:e.close}),u.createElement(n4.Provider,{value:{...f,placement:m,ref:a}},w),u.createElement(Yo,{onDismiss:e.close}));return s?u.createElement(qo,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:t,portalContainer:n??o?.current??void 0},M):u.createElement(qo,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:l,style:{display:"contents"}},u.createElement(t3.Provider,{value:l},M)))}const C9=u.createContext({});var r3={};r3={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var i3={};i3={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var a3={};a3={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var l3={};l3={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var o3={};o3={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var u3={};u3={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var s3={};s3={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var d3={};d3={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var c3={};c3={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var f3={};f3={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var m3={};m3={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var h3={};h3={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var p3={};p3={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var b3={};b3={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var g3={};g3={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var y3={};y3={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var $3={};$3={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var v3={};v3={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var x3={};x3={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var C3={};C3={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var D3={};D3={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var E3={};E3={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var w3={};w3={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var S3={};S3={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var P3={};P3={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var k3={};k3={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var B3={};B3={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var N3={};N3={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var A3={};A3={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var F3={};F3={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var T3={};T3={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var I3={};I3={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var M3={};M3={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var K3={};K3={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var L3={};L3={"ar-AE":r3,"bg-BG":i3,"cs-CZ":a3,"da-DK":l3,"de-DE":o3,"el-GR":u3,"en-US":s3,"es-ES":d3,"et-EE":c3,"fi-FI":f3,"fr-FR":m3,"he-IL":h3,"hr-HR":p3,"hu-HU":b3,"it-IT":g3,"ja-JP":y3,"ko-KR":$3,"lt-LT":v3,"lv-LV":x3,"nb-NO":C3,"nl-NL":D3,"pl-PL":E3,"pt-BR":w3,"pt-PT":S3,"ro-RO":P3,"ru-RU":k3,"sk-SK":B3,"sl-SI":N3,"sr-SP":A3,"sv-SE":F3,"tr-TR":T3,"uk-UA":I3,"zh-CN":M3,"zh-TW":K3};function D9(e){let{onContextMenu:t}=e,n=u.useRef(!1),{longPressProps:r}=Oo({onLongPressStart(){n.current=!1},onLongPress(i){n.current?n.current=!1:t?.({target:i.target,x:i.x,y:i.y})}});return t?{contextMenuProps:X(bt()?r:{},{onContextMenu(i){i.stopPropagation(),i.preventDefault(),n.current=!0;let a=i.currentTarget.getBoundingClientRect();t({target:i.currentTarget,x:i.clientX-a.x,y:i.clientY-a.y})},onKeyDown(i){if(Je()&&i.ctrlKey&&i.key==="Enter"){n.current=!1;let a=i.currentTarget;i.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let l=a.getBoundingClientRect();t({target:a,x:l.width/2,y:l.height/2})}},10)}}})}:{contextMenuProps:{}}}function O3(e,t,n){let{type:r}=e,{isOpen:i}=t;u.useEffect(()=>{n&&n.current&&c4.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let l=Ee();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:t.toggle},overlayProps:{id:l}}}function E9(e){return e&&e.__esModule?e.default:e}function Qo(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,l=Ee(),{triggerProps:o,overlayProps:s}=O3({type:r},t,n),d=(y,$,x="first")=>{if(!y||$.isDefaultPrevented())return!1;t.toggle(x)},{keyboardProps:c}=Le({isDisabled:i,shortcuts:{Enter:y=>d(a!=="longPress",y,"first")," ":y=>d(a!=="longPress",y,"first"),ArrowDown:y=>d(a!=="longPress",y,"first"),ArrowUp:y=>d(a!=="longPress",y,"last"),"Alt+Enter":y=>d(a==="longPress",y,"first"),"Alt+ ":y=>d(a==="longPress",y,"first"),"Alt+ArrowDown":y=>d(!0,y,"first"),"Alt+ArrowUp":y=>d(!0,y,"last")}}),f=ke(E9(L3),"@react-aria/menu"),{longPressProps:m}=Oo({isDisabled:i||a!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),h={preventFocusOnPress:!0,onPressStart(y){y.pointerType!=="touch"&&y.pointerType!=="keyboard"&&!i&&(Xe(y.target),t.open(y.pointerType==="virtual"?"first":null))},onPress(y){y.pointerType==="touch"&&!i&&(Xe(y.target),t.toggle())}};delete o.onPress;let{contextMenuProps:p}=D9({onContextMenu(y){let $=y.target.getBoundingClientRect();t.setPoint({x:$.x+y.x,y:$.y+y.y}),t.open()}});u.useEffect(()=>{if(t.isOpen&&a==="contextMenu"){let y=$=>{($.button===2||$.button===0&&$.ctrlKey===!0)&&G($)===document.body&&t.close()};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)}},[t,a]);let g;if(a==="press")g={...h,...c};else if(a==="longPress")g={...m,...c};else if(a==="contextMenu"){g=p;let{"aria-haspopup":y,"aria-expanded":$,"aria-controls":x,...v}=o;o=v}return{menuTriggerProps:{...o,...g,id:l},menuProps:{...s,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const z3=new WeakMap;function w9(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...l}=e;!e["aria-label"]&&!e["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let o=ie(e,{labelable:!0}),{listProps:s}=Um({...l,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return z3.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:X(o,{onKeyDown:i,onKeyUp:a},{role:"menu",...s,onKeyDown:d=>{(d.key!=="Escape"||e.shouldUseVirtualFocus)&&s.onKeyDown?.(d)}})}}function S9(e,t,n){let{id:r,key:i,closeOnSelect:a,shouldCloseOnSelect:l,isVirtualized:o,"aria-haspopup":s,onPressStart:d,onPressUp:c,onPress:f,onPressChange:m,onPressEnd:h,onClick:p,onHoverStart:g,onHoverChange:y,onHoverEnd:$,onKeyDown:x,onKeyUp:v,onFocus:C,onFocusChange:w,onBlur:S,selectionManager:B=t.selectionManager}=e,E=!!s,k=E&&e["aria-expanded"]==="true",M=e.isDisabled??B.isDisabled(i),F=e.isSelected??B.isSelected(i),I=z3.get(t),j=t.collection.getItem(i),D=e.onClose||I.onClose,T=sn(),Y=()=>{if(!E&&(j?.props?.onAction?j.props.onAction():e.onAction&&e.onAction(i),I.onAction)){let ve=I.onAction;ve(i,j?.value)}},K="menuitem";E||(B.selectionMode==="single"?K="menuitemradio":B.selectionMode==="multiple"&&(K="menuitemcheckbox"));let q=mt(),P=mt(),N=mt(),R={id:r,"aria-disabled":M||void 0,role:K,"aria-label":e["aria-label"],"aria-labelledby":q,"aria-describedby":[e["aria-describedby"],P,N].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};if(B.selectionMode!=="none"&&!E&&(R["aria-checked"]=F),o){let ve=Number(j?.index);R["aria-posinset"]=Number.isNaN(ve)?void 0:ve+1,R["aria-setsize"]=Vo(t.collection)}let Q=u.useRef(!1),O=ve=>{m?.(ve),Q.current=ve},z=u.useRef(null),A=ve=>{ve.pointerType!=="keyboard"&&(z.current={pointerType:ve.pointerType}),ve.pointerType==="mouse"&&(Q.current||ve.target.click()),c?.(ve)},V=ve=>{p?.(ve),Y(),Hs(ve,T,j.props.href,j?.props.routerOptions);let on=z.current?.pointerType==="keyboard"?z.current?.key==="Enter"||B.selectionMode==="none"||B.isLink(i):B.selectionMode!=="multiple"||B.isLink(i);on=l??a??on,D&&!E&&on&&D(),z.current=null},{itemProps:L,isFocused:J}=_r({id:r,selectionManager:B,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:I.shouldUseVirtualFocus}),{pressProps:le,isPressed:Ke}=Tt({onPressStart:d,onPress:f,onPressUp:A,onPressChange:O,onPressEnd:h,isDisabled:M}),{hoverProps:_}=ze({isDisabled:M,onHoverStart(ve){!Ut()&&!(k&&s)&&(B.setFocused(!0),B.setFocusedKey(i)),g?.(ve)},onHoverChange:y,onHoverEnd:$}),{keyboardProps:H}=Le({shortcuts:{" ":ve=>{z.current={pointerType:"keyboard",key:" "},G(ve).click(),Ln("keyboard")},Enter:ve=>{z.current={pointerType:"keyboard",key:"Enter"};let on=G(ve);if(on.tagName!=="A"){on.click(),Ln("keyboard");return}return Ln("keyboard"),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:x,onKeyUp:v}),{focusableProps:me}=zn({onBlur:S,onFocus:C,onFocusChange:w},n),he=ie(j?.props);delete he.id;let kt=wi(j?.props);return{menuItemProps:{...R,...X(he,kt,E?{onFocus:L.onFocus,"data-collection":L["data-collection"],"data-key":L["data-key"]}:L,le,_,H,me,I.shouldUseVirtualFocus||E?{onMouseDown:ve=>ve.preventDefault()}:void 0,M?void 0:{onClick:V}),tabIndex:L.tabIndex!=null&&k&&!I.shouldUseVirtualFocus?-1:L.tabIndex},labelProps:{id:q},descriptionProps:{id:P},keyboardShortcutProps:{id:N},isFocused:J,isFocusVisible:J&&B.isFocused&&Ut()&&!k,isSelected:F,isPressed:Ke,isDisabled:M}}function P9(e){let{heading:t,"aria-label":n}=e,r=Ee();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}function eu(e){let t=Yr(e),[n,r]=u.useState(null),[i,a]=u.useState([]),l=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(d=null){r(d),t.open()},toggle(d=null){r(d),t.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(d,c)=>{a(f=>c>f.length?f:[...f.slice(0,c),d])},closeSubmenu:(d,c)=>{a(f=>f[c]===d?f.slice(0,c):f)}}}class k9{constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||n.has(l.key)))for(let o of l.childNodes)r(o)};for(let l of t)r(l);let i=null,a=0;for(let[l,o]of this.keyMap)i?(i.nextKey=l,o.prevKey=i.key):(this.firstKey=l,o.prevKey=void 0),o.type==="item"&&(o.index=a++),i=o,i.nextKey=void 0;this.lastKey=i?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}}function B9(e){let{onExpandedChange:t}=e,[n,r]=He(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=jr(e),a=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),l=jo(e,u.useCallback(s=>new k9(s,{expandedKeys:n}),[n]),null);return u.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:a,toggleKey:s=>{r(N9(n,s))},setExpandedKeys:r,selectionManager:new tr(l,i)}}function N9(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const V3=u.createContext(null),tu=u.createContext(null),ka=u.createContext(null),Ba=u.createContext(null);function Na(e){let t=eu(e),n=u.useRef(null),{menuTriggerProps:r,menuProps:i}=Qo({...e,type:"menu"},t,n),a=u.useRef(null);return fd()?null:u.createElement(Pe,{values:[[V3,{...i,ref:a}],[Ot,t],[ka,t],[qr,{trigger:"MenuTrigger",triggerRef:n,scrollRef:a,placement:"bottom start","aria-labelledby":i["aria-labelledby"],offset:e.trigger==="contextMenu"?0:void 0}]]},u.createElement(X4,{...r,ref:n,isPressed:t.isOpen},e.children))}const A9=u.createContext(null),xs=class xs extends et{filter(t,n,r){let i=t.getItem(this.firstChildKey);if(i&&r(i.textValue,this)){let a=this.clone();return n.addDescendants(a,t),a}return null}};xs.type="submenutrigger";let _3=xs;const R3=u.forwardRef(function(t,n){return[t,n]=pe(t,n,V3),u.createElement(fn,{content:u.createElement(mn,t)},r=>u.createElement(F9,{props:t,collection:r,menuRef:n}))});function F9({props:e,collection:t,menuRef:n}){[e,n]=pe(e,n,$r);let{filter:r,...i}=e,a=u.useMemo(()=>r?t.filter(r):t,[t,r]),l=B9({...e,collection:a,children:void 0}),o=u.useContext(ka),{isVirtualized:s,CollectionRoot:d}=u.useContext(ge),{menuProps:c}=w9({...e,isVirtualized:s,onClose:e.onClose||o?.close},l,n),f=ue({...e,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),m=null;l.collection.size===0&&e.renderEmptyState&&(m=u.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let h=ie(e,{global:!0});return u.createElement(ya,null,u.createElement(re.div,{...X(h,f,c),ref:n,slot:e.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:e.onScroll},u.createElement(Pe,{values:[[tu,l],[ko,{elementType:"div"}],[vd,{name:"MenuSection",render:I9}],[A9,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[Xr,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[$r,null],[vr,null],[Ba,l.selectionManager],[ka,o??eu({})]]},u.createElement(ba,null,u.createElement(d,{collection:l.collection,persistedKeys:Cd(l.selectionManager.focusedKey),scrollRef:n}))),m))}class T9 extends tr{constructor(t,n){super(t.collection,n),this.parent=t}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}}function I9(e,t,n,r="react-aria-MenuSection"){let i=u.useContext(tu),{CollectionBranch:a}=u.useContext(ge),[l,o]=un(),{headingProps:s,groupProps:d}=P9({heading:o,"aria-label":n.props["aria-label"]??void 0}),c=ue({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),f=u.useContext(Ba),m=jr(e),h=e.selectionMode!=null?new T9(f,m):f,p=qe(Xr)?.shouldCloseOnSelect,g=ie(e,{global:!0});return delete g.id,u.createElement(re.section,{...X(g,c,d),ref:t},u.createElement(Pe,{values:[[Po,{...s,ref:l}],[Ba,h],[Xr,{shouldCloseOnSelect:e.shouldCloseOnSelect??p}]]},u.createElement(a,{collection:i.collection,parent:n})))}const Xr=u.createContext(null),j3=yt(Fi,function(t,n,r){[t,n]=pe(t,n,Xr);let i=qe(Xr)?.id,a=u.useContext(tu),l=Te(n),o=u.useContext(Ba),{isVirtualized:s}=u.useContext(ge),{menuItemProps:d,labelProps:c,descriptionProps:f,keyboardShortcutProps:m,...h}=S9({...t,id:i,key:r.key,selectionManager:o,isVirtualized:s},a,l),{hoverProps:p,isHovered:g}=ze({isDisabled:h.isDisabled}),y=ue({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...h,isHovered:g,isFocusVisible:h.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),$=t.href?re.a:re.div,x=ie(t,{global:!0});return delete x.id,delete x.onClick,u.createElement($,{...X(x,y,d,p),ref:l,"data-disabled":h.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-selected":h.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0},u.createElement(Pe,{values:[[tt,{slots:{[Bt]:c,label:c,description:f}}],[C9,m],[Or,{isSelected:h.isSelected}]]},y.children))});function M9(e,t){let{role:n="dialog"}=e,r=mt();r=e["aria-label"]?void 0:r;let i=mt();i=n==="alertdialog"&&!e["aria-describedby"]?i:void 0;let a=u.useRef(!1);u.useEffect(()=>{if(t.current&&!Ht(t.current)){Ie(t.current);let s=setTimeout(()=>{(ce()===t.current||ce()===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Ie(t.current)),a.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),Q4();let l=u.useRef(!1);u.useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!l.current&&t.current){let s=t.current,d=s.hasAttribute("aria-label"),c=s.hasAttribute("aria-labelledby");!d&&!c&&(console.warn("A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog."),l.current=!0)}});let o=e["aria-describedby"]??i;return{dialogProps:{...ie(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]??r,"aria-describedby":o,onBlur:s=>{a.current&&s.stopPropagation()}},titleProps:{id:r},contentProps:{id:i}}}const H3=u.createContext(null),Ot=u.createContext(null);function K9(e){let t=eu(e),n=u.useRef(null),{triggerProps:r,overlayProps:i}=O3({type:"dialog"},t,n);return r.id=Ee(),i["aria-labelledby"]=r.id,u.createElement(Pe,{values:[[Ot,t],[ka,t],[H3,i],[qr,{trigger:"DialogTrigger",triggerRef:n,id:i.id,"aria-labelledby":i["aria-labelledby"]}]]},u.createElement(X4,{...r,ref:n,isPressed:t.isOpen},e.children))}const U3=u.forwardRef(function(t,n){let r=t["aria-labelledby"];[t,n]=pe(t,n,H3);let{dialogProps:i,titleProps:a,contentProps:l}=M9({...t,"aria-labelledby":r},n),o=u.useContext(Ot);!i["aria-label"]&&!i["aria-labelledby"]&&(t["aria-labelledby"]?i["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 s=ue({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:o?.close||(()=>{})}}),d=ie(t,{global:!0});return u.createElement(re.section,{...X(d,s,i),render:t.render,ref:n,slot:t.slot||void 0},u.createElement(Pe,{values:[[Ui,{slots:{[Bt]:{},title:{...a,level:2}}}],[tt,{slots:{[Bt]:{},description:l}}],[vt,{slots:{[Bt]:{},close:{onPress:()=>o?.close()}}}]]},s.children))});var W3={};W3={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var G3={};G3={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var Z3={};Z3={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var Y3={};Y3={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var q3={};q3={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var X3={};X3={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var J3={};J3={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Q3={};Q3={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var eh={};eh={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var th={};th={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehtoa`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Siirtyi ryhmään ${e.groupTitle}, jossa ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehto`,other:()=>`${t.number(e.groupCount)} vaihtoehtoa`})}.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var nh={};nh={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var rh={};rh={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var ih={};ih={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var ah={};ah={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var lh={};lh={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var oh={};oh={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var uh={};uh={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var sh={};sh={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var dh={};dh={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var ch={};ch={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var fh={};fh={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var mh={};mh={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var hh={};hh={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var ph={};ph={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var bh={};bh={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var gh={};gh={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var yh={};yh={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var $h={};$h={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var vh={};vh={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var xh={};xh={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var Ch={};Ch={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var Dh={};Dh={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var Eh={};Eh={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var wh={};wh={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var Sh={};Sh={"ar-AE":W3,"bg-BG":G3,"cs-CZ":Z3,"da-DK":Y3,"de-DE":q3,"el-GR":X3,"en-US":J3,"es-ES":Q3,"et-EE":eh,"fi-FI":th,"fr-FR":nh,"he-IL":rh,"hr-HR":ih,"hu-HU":ah,"it-IT":lh,"ja-JP":oh,"ko-KR":uh,"lt-LT":sh,"lv-LV":dh,"nb-NO":ch,"nl-NL":fh,"pl-PL":mh,"pt-BR":hh,"pt-PT":ph,"ro-RO":bh,"ru-RU":gh,"sk-SK":yh,"sl-SI":$h,"sr-SP":vh,"sv-SE":xh,"tr-TR":Ch,"uk-UA":Dh,"zh-CN":Eh,"zh-TW":wh};function L9(e){return e&&e.__esModule?e.default:e}function O9(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:l,layoutDelegate:o,shouldFocusWrap:s,isReadOnly:d,isDisabled:c}=e,f=u.useRef(null);n=n??f;let m=ke(L9(Sh),"@react-aria/combobox"),{menuTriggerProps:h,menuProps:p}=Qo({type:"listbox",isDisabled:c||d},t,n);ga.set(t,{id:p.id});let{collection:g}=t,{disabledKeys:y}=t.selectionManager,$=u.useMemo(()=>l||new Vr({collection:g,disabledKeys:y,ref:a,layoutDelegate:o}),[l,o,g,y,a]),{collectionProps:x}=va({selectionManager:t.selectionManager,keyboardDelegate:$,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:i,isVirtualized:!0}),v=sn(),{keyboardProps:C}=Le({shortcuts:{Enter:_=>{let H=t.isOpen;if(t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let me=t.collection.getItem(t.selectionManager.focusedKey);if(me?.props.href){let he=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);return he instanceof HTMLAnchorElement&&v.open(he,_,me.props.href,me.props.routerOptions),t.close(),{shouldPreventDefault:H}}else if(me?.props.onAction)return me.props.onAction(),t.close(),{shouldPreventDefault:H}}return t.commit(),{shouldPreventDefault:H}},Tab:()=>{if(t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let _=t.collection.getItem(t.selectionManager.focusedKey);if(_?.props.href)return t.close(),{shouldPreventDefault:!1};if(_?.props.onAction)return _.props.onAction(),t.close(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}}return t.isOpen&&t.commit(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}},Escape:()=>{let _=!1;return(!t.selectionManager.isEmpty||t.inputValue===""||e.allowsCustomValue)&&(_=!0),t.revert(),{shouldContinuePropagation:_}}}}),{keyboardProps:w}=Le({shortcuts:{ArrowDown:()=>(t.open("first","manual"),{shouldPreventDefault:!1}),ArrowUp:()=>(t.open("last","manual"),{shouldPreventDefault:!1}),ArrowLeft:()=>(t.selectionManager.setFocusedKey(null),{shouldPreventDefault:!1}),ArrowRight:()=>(t.selectionManager.setFocusedKey(null),{shouldPreventDefault:!1})},allowRepeats:!0}),S=_=>{let H=n?.current&&n.current===_.relatedTarget,me=ae(r.current,_.relatedTarget);H||me||(e.onBlur&&e.onBlur(_),t.setFocused(!1))},B=_=>{t.isFocused||(e.onFocus&&e.onFocus(_),t.setFocused(!0))},E=z9([t.selectionManager.selectedKeys,t.selectionManager.selectionMode]),{isInvalid:k,validationErrors:M,validationDetails:F}=t.displayValidation,{labelProps:I,inputProps:j,descriptionProps:D,errorMessageProps:T}=m0({...e,isRequired:e.selectionMode==="multiple"?e.isRequired&&t.selectionManager.isEmpty:e.isRequired,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:at(t.isOpen&&x.onKeyDown,C.onKeyDown,w.onKeyDown,e.onKeyDown),onBlur:S,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:B,autoComplete:"off",validate:void 0,[vo]:t,"aria-describedby":[E,e["aria-describedby"]].filter(Boolean).join(" ")||void 0},i);ma(i,t.defaultValue,t.setValue);let Y=_=>{_.pointerType==="touch"&&(i.current?.focus(),t.toggle(null,"manual"))},K=_=>{_.pointerType!=="touch"&&(i.current?.focus(),t.toggle(_.pointerType==="keyboard"||_.pointerType==="virtual"?"first":null,"manual"))},q=Ft({id:h.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||I.id}),P=Ft({id:p.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||I.id}),N=u.useRef(0),R=_=>{if(c||d)return;if(_.timeStamp-N.current<500){_.preventDefault(),i.current?.focus();return}let H=G(_).getBoundingClientRect(),me=_.changedTouches[0],he=Math.ceil(H.left+.5*H.width),kt=Math.ceil(H.top+.5*H.height);me.clientX===he&&me.clientY===kt&&(_.preventDefault(),i.current?.focus(),t.toggle(null,"manual"),N.current=_.timeStamp)},Q=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0,O=Q?.parentKey??null,z=t.selectionManager.focusedKey??null,A=u.useRef(O),V=u.useRef(z);u.useEffect(()=>{if(Ei()&&Q!=null&&z!=null&&z!==V.current){let _=t.selectionManager.isSelected(z),H=O!=null?t.collection.getItem(O):null,me=H?.["aria-label"]||(typeof H?.rendered=="string"?H.rendered:"")||"",he=m.format("focusAnnouncement",{isGroupChange:(H&&O!==A.current)??!1,groupTitle:me,groupCount:H?[...Ne(H,t.collection)].length:0,optionText:Q["aria-label"]||Q.textValue||"",isSelected:_});$t(he)}A.current=O,V.current=z});let L=Vo(t.collection),J=u.useRef(L),le=u.useRef(t.isOpen);u.useEffect(()=>{let _=t.isOpen!==le.current&&(t.selectionManager.focusedKey==null||Ei());if(t.isOpen&&(_||L!==J.current)){let H=m.format("countAnnouncement",{optionCount:L});$t(H)}J.current=L,le.current=t.isOpen});let Ke=u.useRef(t.selectedKey);return u.useEffect(()=>{if(Ei()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Ke.current){let _=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",H=m.format("selectedAnnouncement",{optionText:_});$t(H)}Ke.current=t.selectedKey}),u.useEffect(()=>{if(t.isOpen)return Ho([i.current,r.current].filter(_=>_!=null))},[t.isOpen,i,r]),Tr(()=>{!Q&&i.current&&ce(se(i.current))===i.current&&ol(i.current,null)},[Q]),lt(a,"react-aria-item-action",t.isOpen?()=>{t.close()}:void 0),{labelProps:{...I,onClick:"htmlFor"in I&&I.htmlFor||e.isDisabled?void 0:()=>{i.current?.focus(),Ln("keyboard")}},buttonProps:{...h,...q,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:Y,onPressStart:K,isDisabled:c||d},inputProps:X(j,{role:"combobox","aria-expanded":h["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":Q?Tm(t,Q.key):void 0,onTouchEnd:R,autoCorrect:"off",spellCheck:"false"}),listBoxProps:X(p,P,{onAction:void 0,autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),valueProps:{id:E},descriptionProps:D,errorMessageProps:T,isInvalid:k,validationErrors:M,validationDetails:F}}function z9(e=[]){let t=Ee(),[n,r]=u.useState(!0),[i,a]=u.useState(e);return i.some((l,o)=>!Object.is(l,e[o]))&&(r(!0),a(e)),u.useEffect(()=>{n&&!document.getElementById(t)&&r(!1)},[t,n,i]),n?t:void 0}function V9(e){let{defaultFilter:t,menuTrigger:n="input",allowsEmptyCollection:r=!1,allowsCustomValue:i,shouldCloseOnBlur:a=!0,selectionMode:l="single"}=e,[o,s]=u.useState(!1),[d,c]=u.useState(!1),[f,m]=u.useState(null),h=u.useMemo(()=>e.defaultValue!==void 0?e.defaultValue:l==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,l]),p=u.useMemo(()=>e.value!==void 0?e.value:l==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,l]),[g,y]=He(p,h,e.onChange),$=l==="single"&&Array.isArray(g)?g[0]:g,x=oe=>{if(l==="single"){let Se=Array.isArray(oe)?oe[0]??null:oe;y(Se),Se!==$&&e.onSelectionChange?.(Se)}else{let Se=[];Array.isArray(oe)?Se=oe:oe!=null&&(Se=[oe]),y(Se)}},{collection:v,selectionManager:C,disabledKeys:w}=xa({...e,items:e.items??e.defaultItems,selectionMode:l,disallowEmptySelection:l==="single",allowDuplicateSelectionEvents:!0,selectedKeys:u.useMemo(()=>R9($),[$]),onSelectionChange:oe=>{if(oe!=="all")if(l==="single"){let Se=oe.values().next().value??null;Se===$?(e.onSelectionChange?.(Se),V(),O()):x(Se)}else x([...oe])}}),S=l==="single"?C.firstSelectedKey:null,B=u.useMemo(()=>[...C.selectedKeys].map(oe=>v.getItem(oe)).filter(oe=>oe!=null),[C.selectedKeys,v]),[E,k]=He(e.inputValue,kh(e.defaultInputValue,S,v)||"",e.onInputChange),[M]=u.useState($),[F]=u.useState(E),I=v,j=u.useMemo(()=>e.items!=null||!t?v:_9(v,E,t),[v,E,t,e.items]),[D,T]=u.useState(j),Y=u.useRef("focus"),q=Yr({...e,onOpenChange:oe=>{e.onOpenChange&&e.onOpenChange(oe,oe?Y.current:void 0),C.setFocused(oe),oe||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),P=(oe=null,Se)=>{let bi=Se==="manual"||Se==="focus"&&n==="focus";(r||j.size>0||bi&&I.size>0||e.items)&&(bi&&!q.isOpen&&e.items===void 0&&s(!0),Y.current=Se,m(oe),q.open())},N=(oe=null,Se)=>{let bi=Se==="manual"||Se==="focus"&&n==="focus";!(r||j.size>0||bi&&I.size>0||e.items)&&!q.isOpen||(bi&&!q.isOpen&&e.items===void 0&&s(!0),q.isOpen||(Y.current=Se),Q(oe))},R=u.useCallback(()=>{T(o?I:j)},[o,I,j]),Q=u.useCallback((oe=null)=>{q.isOpen&&R(),m(oe),q.toggle()},[q,R]),O=u.useCallback(()=>{q.isOpen&&(R(),q.close())},[q,R]),[z,A]=u.useState(E),V=()=>{let oe=S!=null?v.getItem(S)?.textValue??"":"";A(oe),k(oe)},L=u.useRef($),J=u.useRef(S!=null?v.getItem(S)?.textValue??"":"");u.useEffect(()=>{d&&(j.size>0||r)&&!q.isOpen&&E!==z&&n!=="manual"&&P(null,"input"),!o&&!r&&q.isOpen&&j.size===0&&O(),$!=null&&$!==L.current&&l==="single"&&O(),E!==z&&(C.setFocusedKey(null),s(!1),l==="single"&&E===""&&(e.inputValue===void 0||p===void 0)&&x(null)),$!==L.current&&(e.inputValue===void 0||p===void 0)?V():z!==E&&A(E);let oe=S!=null?v.getItem(S)?.textValue??"":"";!d&&S!=null&&e.inputValue===void 0&&S===L.current&&J.current!==oe&&(A(oe),k(oe)),L.current=$,J.current=oe});let le=ca({...e,value:u.useMemo(()=>Array.isArray($)&&$.length===0?null:{inputValue:E,value:$,selectedKey:S},[E,S,$])}),Ke=()=>{i&&S==null?_():H()},_=()=>{if(l==="multiple"){A(E),O();return}let oe=null;L.current=oe,x(oe),O()},H=(oe=!1)=>{if(p!==void 0&&e.inputValue!==void 0){let Se=S!=null?v.getItem(S)?.textValue??"":"";(oe||l==="multiple"||E!==Se)&&(e.onSelectionChange?.(S),e.onChange?.($)),A(Se),O()}else V(),O()};const me=()=>{if(i){const oe=S!=null?v.getItem(S)?.textValue??"":"";E===oe?H():_()}else H()};let he=()=>{q.isOpen&&C.focusedKey!=null?C.isSelected(C.focusedKey)&&l==="single"?H(!0):C.select(C.focusedKey):me()},kt=u.useRef([E,$]),ve=oe=>{oe?(kt.current=[E,$],n==="focus"&&!e.isReadOnly&&P(null,"focus")):(a&&me(),(E!==kt.current[0]||$!==kt.current[1])&&le.commitValidation()),c(oe)},on=u.useMemo(()=>q.isOpen?o?I:j:D,[q.isOpen,I,j,o,D]),D$=e.defaultSelectedKey??(l==="single"?M:null);return{...le,...q,focusStrategy:f,toggle:N,open:P,close:me,selectionManager:C,value:$,defaultValue:h??M,setValue:x,selectedKey:S,selectedItems:B,defaultSelectedKey:D$,setSelectedKey:x,disabledKeys:w,isFocused:d,setFocused:ve,selectedItem:B[0]??null,collection:on,inputValue:E,defaultInputValue:kh(e.defaultInputValue,D$,v)??F,setInputValue:k,commit:he,revert:Ke}}function _9(e,t,n){return new _o(Ph(e,e,t,n))}function Ph(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let l=Ph(e,Ne(a,e),n,r);[...l].some(o=>o.type==="item")&&i.push({...a,childNodes:l})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}function kh(e,t,n){return e==null&&t!=null?n.getItem(t)?.textValue??"":e}function R9(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Bh(e){let t=Qn({usage:"search",...e}),n=u.useCallback((a,l)=>l.length===0?!0:(a=a.normalize("NFC"),l=l.normalize("NFC"),t.compare(a.slice(0,l.length),l)===0),[t]),r=u.useCallback((a,l)=>l.length===0?!0:(a=a.normalize("NFC"),l=l.normalize("NFC"),t.compare(a.slice(-l.length),l)===0),[t]),i=u.useCallback((a,l)=>{if(l.length===0)return!0;a=a.normalize("NFC"),l=l.normalize("NFC");let o=0,s=l.length;for(;o+s<=a.length;o++){let d=a.slice(o,o+s);if(t.compare(l,d)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function j9(e={}){let{locale:t}=be();return u.useMemo(()=>new Intl.ListFormat(t,e),[t,e])}const H9=u.createContext(null),nu=u.createContext(null),U9=Vn(function(t,n){[t,n]=pe(t,n,H9);let{children:r,isDisabled:i=!1,isInvalid:a=!1,isRequired:l=!1,isReadOnly:o=!1}=t,s=u.useMemo(()=>u.createElement(Hr.Provider,{value:{items:t.items??t.defaultItems}},typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:l,defaultChildren:null,isReadOnly:o}):r),[r,i,a,l,o,t.items,t.defaultItems]);return u.createElement(fn,{content:s},d=>u.createElement(G9,{props:t,collection:d,comboBoxRef:n}))}),W9=[pn,vt,Jn,vr,Xn,tt];function G9({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:i="key",allowsCustomValue:a}=e;a&&(i="text");let{validationBehavior:l}=qe(fa)||{},o=e.validationBehavior??l??"native",{contains:s}=Bh({sensitivity:"base"}),d=V9({...e,defaultFilter:e.defaultFilter||s,items:e.items,children:void 0,collection:t,validationBehavior:o}),c=u.useRef(null),f=u.useRef(null),m=u.useRef(null),h=u.useRef(null),p=u.useRef(null),[g,y]=un(!e["aria-label"]&&!e["aria-labelledby"]),[$,x]=u.useState("label"),{buttonProps:v,inputProps:C,listBoxProps:w,labelProps:S,descriptionProps:B,errorMessageProps:E,valueProps:k,...M}=O9({...mr(e),label:y,inputRef:f,buttonRef:c,listBoxRef:h,popoverRef:p,name:i==="text"?r:void 0,validationBehavior:o,labelElementType:$},d),[F,I]=u.useState(null),j=u.useCallback(()=>{if(f.current&&!m.current){let P=c.current?.getBoundingClientRect(),N=f.current.getBoundingClientRect(),R=P?Math.min(P.left,N.left):N.left,Q=P?Math.max(P.right,N.right):N.right;I(Q-R+"px")}},[c,f,I]);Gr({ref:f,onResize:j});let D=u.useMemo(()=>({get current(){return m.current||f.current}}),[m,f]),T=u.useMemo(()=>({isOpen:d.isOpen,isDisabled:e.isDisabled||!1,isInvalid:M.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1}),[d.isOpen,e.isDisabled,M.isInvalid,e.isRequired,e.isReadOnly]),Y=ue({...e,values:T,defaultClassName:"react-aria-ComboBox"}),K=ie(e,{global:!0});delete K.id;let q=[];if(r&&i==="key"){let P=Array.isArray(d.value)?d.value:[d.value];P.length===0&&(P=[null]),q=P.map((N,R)=>u.createElement("input",{key:R,type:"hidden",name:r,form:e.form,value:N??""}))}return u.createElement(Pe,{values:[[nu,d],[pn,{...S,elementType:$,ref:g}],[vt,{...v,ref:c,isPressed:d.isOpen}],[Jn,{...C,ref:f}],[vr,{...C,ref:u.useCallback(P=>{f.current=P,P&&x(P.tagName.toLowerCase()==="input"?"label":"span")},[]),value:d.inputValue,onChange:P=>d.setInputValue(P)}],[Ot,d],[qr,{ref:p,triggerRef:D,scrollRef:h,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":F},clearContexts:W9}],[Hr,{...w,ref:h}],[Sn,d],[tt,{slots:{description:B,errorMessage:E}}],[Xn,{ref:m,isInvalid:M.isInvalid,isDisabled:e.isDisabled||!1}],[da,M],[Z9,k]]},u.createElement(re.div,{...K,...Y,ref:n,slot:e.slot||void 0,"data-focused":d.isFocused||void 0,"data-open":d.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-invalid":M.isInvalid||void 0,"data-required":e.isRequired||void 0},Y.children,q))}const Z9=u.createContext(null),Y9=["day","month","year"],q9={hour:1,minute:2,second:3};function X9(e,t){let{autoComplete:n,isDisabled:r,name:i}=e,{visuallyHiddenProps:a}=Dn({style:{position:"fixed",top:0,left:0}}),l=60;t.granularity==="second"?l=1:t.granularity==="hour"&&(l=3600);let o="";t.value&&(t.granularity==="day"?o=Ve(t.value).toString():o=Jt("timeZone"in t.value?r6(t.value):t.value).toString());let s=t.granularity==="day"?"date":"datetime-local",d=["hour","minute","second"],c=0;return d.includes(t.granularity)&&(c=q9[t.granularity],d=d.slice(0,c)),{containerProps:{...a,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:n,disabled:r,type:s,form:"",name:i,step:l,value:o,onChange:f=>{let m=G(f).value.toString();if(m)try{let h=h6(m);if(t.granularity==="day"&&(h=m6(m)),"setSegment"in t)for(let p in h)Y9.includes(p)&&t.setSegment(p,h[p]),d.includes(p)&&t.setSegment(p,h[p]);t.setValue(h)}catch{}}}}}function J9(e){let{state:t}=e,{containerProps:n,inputProps:r}=X9({...e},t);return u.createElement("div",{...n,"data-testid":"hidden-dateinput-container"},u.createElement("input",r))}var Nh={};Nh={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Ah={};Ah={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Fh={};Fh={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Th={};Th={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Ih={};Ih={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var Mh={};Mh={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var Kh={};Kh={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var Lh={};Lh={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var Oh={};Oh={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var zh={};zh={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var Vh={};Vh={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var _h={};_h={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var Rh={};Rh={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var jh={};jh={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var Hh={};Hh={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var Uh={};Uh={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var Wh={};Wh={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var Gh={};Gh={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var Zh={};Zh={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var Yh={};Yh={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var qh={};qh={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var Xh={};Xh={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var Jh={};Jh={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var Qh={};Qh={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var ep={};ep={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var tp={};tp={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var np={};np={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var rp={};rp={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var ip={};ip={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var ap={};ap={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var lp={};lp={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var op={};op={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var up={};up={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var sp={};sp={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var ru={};ru={"ar-AE":Nh,"bg-BG":Ah,"cs-CZ":Fh,"da-DK":Th,"de-DE":Ih,"el-GR":Mh,"en-US":Kh,"es-ES":Lh,"et-EE":Oh,"fi-FI":zh,"fr-FR":Vh,"he-IL":_h,"hr-HR":Rh,"hu-HU":jh,"it-IT":Hh,"ja-JP":Uh,"ko-KR":Wh,"lt-LT":Gh,"lv-LV":Zh,"nb-NO":Yh,"nl-NL":qh,"pl-PL":Xh,"pt-BR":Jh,"pt-PT":Qh,"ro-RO":ep,"ru-RU":tp,"sk-SK":np,"sl-SI":rp,"sr-SP":ip,"sv-SE":ap,"tr-TR":lp,"uk-UA":op,"zh-CN":up,"zh-TW":sp};function Q9(e,t,n){let{direction:r}=be(),i=u.useMemo(()=>Vm(t),[t]),{keyboardProps:a}=Le({shortcuts:{"Alt+ArrowDown":()=>{if("setOpen"in e){e.setOpen(!0);return}return!1},"Alt+ArrowUp":()=>{if("setOpen"in e){e.setOpen(!0);return}return!1},ArrowLeft:s=>{if(n)return!1;if(r==="rtl"){if(t.current){let d=G(s),c=dp(t.current,d.getBoundingClientRect().left,-1);if(c){c.focus();return}}}else{i.focusPrevious();return}return!1},ArrowRight:s=>{if(n)return!1;if(r==="rtl"){if(t.current){let d=G(s),c=dp(t.current,d.getBoundingClientRect().left,1);if(c){c.focus();return}}}else{i.focusNext();return}return!1}},allowRepeats:!0}),l=()=>{if(!t.current)return;let s=window.event?G(window.event):null,d=Ae(t.current,{tabbable:!0});if(s&&(d.currentNode=s,s=d.previousNode()),!s){let c;do c=d.lastChild(),c&&(s=c);while(c)}for(;s?.hasAttribute("data-placeholder");){let c=d.previousNode();if(c&&c.hasAttribute("data-placeholder"))s=c;else break}s&&s.focus()},{pressProps:o}=Tt({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(s){s.pointerType==="mouse"&&l()},onPress(s){(s.pointerType==="touch"||s.pointerType==="pen")&&l()}});return X(o,a)}function dp(e,t,n){let r=Ae(e,{tabbable:!0}),i=r.nextNode(),a=null,l=1/0;for(;i;){let s=i.getBoundingClientRect().left-t,d=Math.abs(s);Math.sign(s)===n&&d<l&&(a=i,l=d),i=r.nextNode()}return a}function e8(e){return e&&e.__esModule?e.default:e}const cp=new WeakMap,iu="__reactAriaDateFieldRole",t8="__reactAriaDateFieldFocusManager";function fp(e,t,n){let{isInvalid:r,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:l,fieldProps:o,descriptionProps:s,errorMessageProps:d}=Do({...e,labelElementType:"span",isInvalid:r,errorMessage:e.errorMessage||i}),c=u.useRef(null),{focusWithinProps:f}=jn({...e,onFocusWithin(k){c.current=t.value,e.onFocus?.(k)},onBlurWithin:k=>{t.confirmPlaceholder(),t.value!==c.current&&t.commitValidation(),e.onBlur?.(k)},onFocusWithinChange:e.onFocusChange}),m=ke(e8(ru),"@react-aria/datepicker"),h=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",p=t.maxGranularity==="hour"?"time":"date",g=t.value?m.format(h,{[p]:t.formatValue({month:"long"})}):"",y=xn(g),$=e[iu]==="presentation"?o["aria-describedby"]:[y["aria-describedby"],o["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[t8],v=u.useMemo(()=>x||Vm(n),[x,n]),C=Q9(t,n,e[iu]==="presentation");cp.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:$,focusManager:v});let w=u.useRef(e.autoFocus),S;e[iu]==="presentation"?S={role:"presentation"}:S=X(o,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":$}),u.useEffect(()=>{w.current&&v.focusFirst(),w.current=!1},[v]),ma(e.inputRef,t.defaultValue,t.setValue),Eo({...e,focus(){v.focusFirst()}},t,e.inputRef);let B={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(B.type="text",B.hidden=!0,B.required=e.isRequired,B.onChange=()=>{});let E=ie(e);return{labelProps:{...l,onClick:()=>{v.focusFirst()}},fieldProps:X(E,S,C,f,{onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,style:{unicodeBidi:"isolate"}}),inputProps:B,descriptionProps:s,errorMessageProps:d,isInvalid:r,validationErrors:i,validationDetails:a}}function n8(e){return e&&e.__esModule?e.default:e}function r8(){let{locale:e}=be(),t=rd(n8(ru),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new i8(e,t)}},[e,t])}class i8{constructor(t,n){this.locale=t,this.dictionary=n}of(t){return this.dictionary.getStringForLocale(t,this.locale)}}function a8(e,t,n){let r=u.useRef(""),{locale:i,direction:a}=be(),l=r8(),{ariaLabel:o,ariaLabelledBy:s,ariaDescribedBy:d,focusManager:c}=cp.get(t),f=e.isPlaceholder?"":e.text,m=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),h=Ye({month:"long",timeZone:m.timeZone}),p=Ye({hour:"numeric",hour12:m.hour12,timeZone:m.timeZone});if(e.type==="month"&&!e.isPlaceholder){let N=h.format(t.dateValue);f=N!==f?`${f} – ${N}`:N}else e.type==="hour"&&!e.isPlaceholder&&(f=p.format(t.dateValue));let{spinButtonProps:g}=gx({value:e.value??void 0,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{r.current="",t.decrementToMin(e.type)}}),y=u.useMemo(()=>new gc(i,{maximumFractionDigits:0}),[i]),$=()=>{if(e.text===e.placeholder&&c.focusPrevious(),y.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let N=e.text.slice(0,-1),R=y.parse(N);N=R===0?"":N,N.length===0||R===0?t.clearSegment(e.type):t.setSegment(e.type,R),r.current=N}else(e.type==="dayPeriod"||e.type==="era")&&t.clearSegment(e.type)},{keyboardProps:x}=Le({shortcuts:{Backspace:()=>{$()},Delete:()=>{$()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:v}=Bh({sensitivity:"base"}),C=Ye({hour:"numeric",hour12:!0}),w=u.useMemo(()=>{let N=new Date;return N.setHours(0),C.formatToParts(N).find(R=>R.type==="dayPeriod").value},[C]),S=u.useMemo(()=>{let N=new Date;return N.setHours(12),C.formatToParts(N).find(R=>R.type==="dayPeriod").value},[C]),B=Ye({year:"numeric",era:"narrow",timeZone:"UTC"}),E=u.useMemo(()=>{if(e.type!=="era")return[];let N=ye(new we(1,1,1),t.calendar),R=t.calendar.getEras().map(O=>{let z=N.set({year:1,month:1,day:1,era:O}).toDate("UTC"),V=B.formatToParts(z).find(L=>L.type==="era").value;return{era:O,formatted:V}}),Q=l8(R.map(O=>O.formatted));if(Q)for(let O of R)O.formatted=O.formatted.slice(Q);return R},[B,t.calendar,e.type]),k=N=>{if(t.isDisabled||t.isReadOnly)return;let R=r.current+N;switch(e.type){case"dayPeriod":if(v(w,N))t.setSegment("dayPeriod",0);else if(v(S,N))t.setSegment("dayPeriod",1);else break;c.focusNext();break;case"era":{let Q=E.find(O=>v(O.formatted,N));Q&&(t.setSegment("era",Q.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!y.isValidPartialNumber(R))return;let Q=y.parse(R),O=Q;if(e.maxValue!==void 0&&Q>e.maxValue&&(O=y.parse(N)),isNaN(Q))return;t.setSegment(e.type,O),e.maxValue!==void 0&&(+(Q+"0")>e.maxValue||R.length>=String(e.maxValue).length)?(r.current="",c.focusNext()):r.current=R;break}}},M=()=>{r.current="",n.current&&Ct(n.current,{containingElement:ot(n.current)}),window.getSelection()?.collapse(n.current)},F=u.useRef(typeof document<"u"?document:null);lt(F,"selectionchange",()=>{let N=window.getSelection();N?.anchorNode&&ae(n.current,N?.anchorNode)&&ce()===n.current&&N.collapse(n.current)});let I=u.useRef("");lt(n,"beforeinput",N=>{if(n.current)switch(N.preventDefault(),N.inputType){case"deleteContentBackward":case"deleteContentForward":y.isValidPartialNumber(e.text)&&!t.isReadOnly&&$();break;case"insertCompositionText":I.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:N.data!=null&&k(N.data);break}}),lt(n,"input",N=>{let{inputType:R,data:Q}=N;R==="insertCompositionText"&&(n.current&&(n.current.textContent=I.current),Q!=null&&(v(w,Q)||v(S,Q))&&k(Q))}),fe(()=>{let N=n.current;return()=>{ce()===N&&(c.focusPrevious()||c.focusNext())}},[n,c]);let j=bt()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},D=u.useMemo(()=>t.segments.find(N=>N.isEditable),[t.segments]);e!==D&&!t.isInvalid&&(d=void 0);let T=Ee(),Y=!t.isDisabled&&!t.isReadOnly&&e.isEditable,K=e.type==="literal"?"":l.of(e.type),q=Ft({"aria-label":`${K}${o?`, ${o}`:""}${s?", ":""}`,"aria-labelledby":s});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let P={caretColor:"transparent"};if(a==="rtl"){P.unicodeBidi="embed";let N=m[e.type];(N==="numeric"||N==="2-digit")&&(P.direction="ltr")}return{segmentProps:X(g,q,{id:T,...j,...x,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:Y,suppressContentEditableWarning:Y,spellCheck:Y?"false":void 0,autoCorrect:Y?"off":void 0,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Y?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!Y?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onFocus:M,style:P,onPointerDown(N){N.stopPropagation()},onMouseDown(N){N.stopPropagation()}})}}function l8(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}var mp={};mp={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var hp={};hp={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var pp={};pp={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var bp={};bp={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var gp={};gp={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var yp={};yp={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var $p={};$p={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var vp={};vp={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var xp={};xp={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var Cp={};Cp={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var Dp={};Dp={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var Ep={};Ep={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var wp={};wp={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var Sp={};Sp={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var Pp={};Pp={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var kp={};kp={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Bp={};Bp={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이후여야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Np={};Np={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var Ap={};Ap={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var Fp={};Fp={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Tp={};Tp={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Ip={};Ip={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var Mp={};Mp={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Kp={};Kp={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Lp={};Lp={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var Op={};Op={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var zp={};zp={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var Vp={};Vp={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var _p={};_p={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Rp={};Rp={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var jp={};jp={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var Hp={};Hp={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var Up={};Up={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var Wp={};Wp={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var Gp={};Gp={"ar-AE":mp,"bg-BG":hp,"cs-CZ":pp,"da-DK":bp,"de-DE":gp,"el-GR":yp,"en-US":$p,"es-ES":vp,"et-EE":xp,"fi-FI":Cp,"fr-FR":Dp,"he-IL":Ep,"hr-HR":wp,"hu-HU":Sp,"it-IT":Pp,"ja-JP":kp,"ko-KR":Bp,"lt-LT":Np,"lv-LV":Ap,"nb-NO":Fp,"nl-NL":Tp,"pl-PL":Ip,"pt-BR":Mp,"pt-PT":Kp,"ro-RO":Lp,"ru-RU":Op,"sk-SK":zp,"sl-SI":Vp,"sr-SP":_p,"sv-SE":Rp,"tr-TR":jp,"uk-UA":Hp,"zh-CN":Up,"zh-TW":Wp};function o8(e){return e&&e.__esModule?e.default:e}const u8=new cn(o8(Gp));function s8(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function d8(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,l=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&r?.(e)||!1,s=a||l||o,d=[];if(s){let c=s8(),f=cn.getGlobalDictionaryForPackage("@react-stately/datepicker")||u8,m=new td(c,f),h=new vn(c,Aa({},i)),p=h.resolvedOptions().timeZone;l&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:h.format(t.toDate(p))})),a&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:h.format(n.toDate(p))})),o&&d.push(m.format("unavailableDate"))}return{isInvalid:s,validationErrors:d,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}const c8={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},f8={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Aa(e,t){e={...t.shouldForceLeadingZeros?f8:c8,...e};let r=t.granularity||"minute",i=Object.keys(e),a=i.indexOf(t.maxGranularity??"year");a<0&&(a=0);let l=i.indexOf(r);if(l<0&&(l=2),a>l)throw new Error("maxGranularity must be greater than granularity");let o=i.slice(a,l+1).reduce((d,c)=>(d[c]=e[c],d),{});return t.hourCycle!=null&&(o.hour12=t.hourCycle===12),o.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(o.timeZoneName="short"),t.showEra&&a===0&&(o.era="short"),o}function Zp(e,t){if(e===null)return null;if(e)return ye(e,t)}function m8(e,t,n,r){if(e)return Zp(e,n);let i=ye(df(r??Zi()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Ve(i):r?i:Jt(i)}function h8(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=u.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let l=e?n:i[1];return[t,l]}const p8=new cn({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"áááá",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"åååå",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function b8(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?p8.getStringForLocale(e,n):"––"}class wt{constructor(t,n,r){if(this.era=r?.era??null,this.calendar=t,this.year=r?.year??null,this.month=r?.month??null,this.day=r?.day??null,this.hour=r?.hour??null,this.hourCycle=n,this.dayPeriod=null,this.minute=r?.minute??null,this.second=r?.second??null,this.millisecond=r?.millisecond??null,this.offset="offset"in(r??{})?r.offset:null,this.hour!=null){let[i,a]=nr(this.hour,n);this.dayPeriod=i,this.hour=a}}copy(){let t=new wt(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(t){return t.every(n=>this[n]!=null)}validate(t,n){return n.every(r=>{if((r==="hour"||r==="dayPeriod")&&"hour"in t){let[i,a]=nr(t.hour,this.hourCycle);return this.dayPeriod===i&&this.hour===a}return this[r]===t[r]})}isCleared(t){return t.every(n=>this[n]===null)}set(t,n,r){let i=this.copy();return i[t]=n,t==="hour"&&i.dayPeriod==null&&"hour"in r&&(i.dayPeriod=nr(r.hour,this.hourCycle)[0]),t==="year"&&i.era==null&&(i.era=r.era),t!=="second"&&t!=="literal"&&t!=="timeZoneName"&&(i.offset=null),i}clear(t){let n=this.copy();return n[t]=null,t==="year"&&(n.era=null),n.offset=null,n}cycle(t,n,r,i){let a=this.copy();if(a[t]==null&&t!=="dayPeriod"&&t!=="era"){if(t==="hour"&&"hour"in r){let[l,o]=nr(r.hour,this.hourCycle);a.dayPeriod=l,a.hour=o}else a[t]=r[t];return t==="year"&&a.era==null&&(a.era=r.era),a}switch(t){case"era":{let l=this.calendar.getEras(),o=l.indexOf(a.era);o=kn(o,n,0,l.length-1),a.era=l[o];break}case"year":{let l=new we(this.calendar,this.era??r.era,this.year??r.year,this.month??1,this.day??1);l=l.cycle(t,n,{round:t==="year"}),a.era=l.era,a.year=l.year;break}case"month":a.month=kn(a.month??1,n,1,this.calendar.getMaximumMonthsInYear());break;case"day":a.day=kn(a.day??1,n,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let l=i.some(o=>["year","month","day"].includes(o));if("timeZone"in r&&(!l||a.year!=null&&a.month!=null&&a.day!=null)){let o=this.toValue(r);o=o.cycle("hour",n,{hourCycle:this.hourCycle==="h12"?12:24,round:!1});let[s,d]=nr(o.hour,this.hourCycle);a.hour=d,a.dayPeriod=s,a.offset=o.offset}else{let o=a.hour??0,s=this.getSegmentLimits("hour");a.hour=kn(o,n,s.minValue,s.maxValue),a.dayPeriod==null&&"hour"in r&&(a.dayPeriod=nr(r.hour,this.hourCycle)[0])}break}case"dayPeriod":a.dayPeriod=kn(a.dayPeriod??0,n,0,1);break;case"minute":a.minute=kn(a.minute??0,n,0,59,!0);break;case"second":a.second=kn(a.second??0,n,0,59,!0);break}return a}toValue(t){if("hour"in t){let n=this.hour;n!=null?n=g8(n,this.dayPeriod??0,this.hourCycle):(this.hourCycle==="h12"||this.hourCycle==="h11")&&(n=this.dayPeriod===1?12:0);let r=t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day,hour:n??t.hour,minute:this.minute??t.minute,second:this.second??t.second,millisecond:this.millisecond??t.millisecond});return"offset"in r&&this.offset!=null&&r.offset!==this.offset&&(r=r.add({milliseconds:r.offset-this.offset})),r}else return t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day})}getSegmentLimits(t){switch(t){case"era":{let n=this.calendar.getEras();return{value:this.era!=null?n.indexOf(this.era):n.length-1,minValue:0,maxValue:n.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let n=0,r=23;return this.hourCycle==="h12"?(n=1,r=12):this.hourCycle==="h11"&&(n=0,r=11),{value:this.hour,minValue:n,maxValue:r}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function kn(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function nr(e,t){let n=e>=12?1:0;switch(t){case"h11":e>=12&&(e-=12);break;case"h12":e===0?e=12:e>12&&(e-=12);break;case"h23":n=null;break;case"h24":e+=1,n=null}return[n,e]}function g8(e,t,n){switch(n){case"h11":t===1&&(e+=12);break;case"h12":e===12&&(e=0),t===1&&(e+=12);break;case"h24":e-=1;break}return e}const au={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Yp={year:5,month:2,day:7,hour:2,minute:15,second:15},y8={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function qp(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:l=!1,minValue:o,maxValue:s,isDateUnavailable:d}=e,c=e.value||e.defaultValue||e.placeholderValue||null,[f,m]=h8(c,e.granularity),h=m||"UTC";if(c&&!(f in c))throw new Error("Invalid granularity "+f+" for value "+c.toString());let[p,g]=u.useMemo(()=>{let J=new vn(t,{dateStyle:"short",timeStyle:"short",hour12:e.hourCycle!=null?e.hourCycle===12:void 0}).resolvedOptions();return[n(J.calendar),J.hourCycle]},[t,e.hourCycle,n]),[y,$]=He(e.value,e.defaultValue??null,e.onChange),[x]=u.useState(y),v=u.useMemo(()=>Zp(y,p)??null,[y,p]),[C,w]=u.useState(()=>new wt(p,g,v)),S=p.identifier==="gregory"&&C.era==="BC",B=u.useMemo(()=>({granularity:f,maxGranularity:e.maxGranularity??"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,m,r,S]),E=u.useMemo(()=>Aa({},B),[B]),k=u.useMemo(()=>new vn(t,E),[t,E]),M=u.useMemo(()=>k.resolvedOptions(),[k]),F=u.useMemo(()=>m8(e.placeholderValue,f,p,m),[e.placeholderValue,f,p,m]),I=u.useMemo(()=>{let L=g==="h11"||g==="h12",J=["era","year","month","day","hour",...L?["dayPeriod"]:[],"minute","second"],le=J.indexOf(e.maxGranularity||"era"),Ke=J.indexOf(f==="hour"&&L?"dayPeriod":f);return J.slice(le,Ke+1)},[e.maxGranularity,f,g]),[j,D]=u.useState(v),[T,Y]=u.useState(p),[K,q]=u.useState(g);(v!==j||g!==K||!Gi(p,T))&&(C=new wt(p,g,v),D(v),Y(p),q(g),w(C));let P=L=>{if(!(e.isDisabled||e.isReadOnly))if(L==null||L instanceof wt&&L.isCleared(I))w(new wt(p,g,v)),$(null);else if(!(L instanceof wt))L=ye(L,c?.calendar||new Re),w(new wt(p,g,v)),$(L);else{if(L.isComplete(I)){let J=L.toValue(v??F);if(L.validate(J,I)){let le=ye(J,c?.calendar||new Re);if(!y||le.compare(y)!==0){w(new wt(p,g,v)),$(le);return}}}w(L)}},N=u.useMemo(()=>C.toValue(v??F).toDate(h),[C,h,v,F]),R=u.useMemo(()=>$8(N,C,k,M,p,t,f),[N,k,M,C,p,t,f]),Q=(L,J)=>{P(C.cycle(L,J,F,I))},O=u.useMemo(()=>d8(y,o,s,d,B),[y,o,s,d,B]),z=ca({...e,value:y,builtinValidation:O}),A=z.displayValidation.isInvalid,V=e.validationState||(A?"invalid":null);return{...z,value:v,defaultValue:e.defaultValue??x,dateValue:N,calendar:p,setValue:P,segments:R,dateFormatter:k,validationState:V,isInvalid:A,granularity:f,maxGranularity:e.maxGranularity??"year",isDisabled:i,isReadOnly:a,isRequired:l,increment(L){Q(L,1)},decrement(L){Q(L,-1)},incrementPage(L){Q(L,Yp[L]||1)},decrementPage(L){Q(L,-(Yp[L]||1))},incrementToMax(L){let J=L==="hour"&&g==="h12"?11:C.getSegmentLimits(L).maxValue;P(C.set(L,J,F))},decrementToMin(L){let J=L==="hour"&&g==="h12"?12:C.getSegmentLimits(L).minValue;P(C.set(L,J,F))},setSegment(L,J){P(C.set(L,J,F))},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&C.isComplete(I)){let L=C.toValue(v??F),J=ye(L,c?.calendar||new Re);(!y||J.compare(y)!==0)&&$(J),w(new wt(p,g,v))}},clearSegment(L){let J=C;L!=="timeZoneName"&&L!=="literal"&&(J=C.clear(L)),P(J)},formatValue(L){if(!v)return"";let J=Aa(L,B);return new vn(t,J).format(N)},getDateFormatter(L,J){let le={...B,...J},Ke=Aa({},le);return new vn(L,Ke)}}}function $8(e,t,n,r,i,a,l){let o=["hour","minute","second"],s=n.formatToParts(e),d=new Hi(a,{useGrouping:!1}),c=new Hi(a,{useGrouping:!1,minimumIntegerDigits:2});for(let m of s)if(m.type==="year"||m.type==="month"||m.type==="day"||m.type==="hour"){let h=t[m.type]??0;r[m.type]==="2-digit"?m.value=c.format(h):m.value=d.format(h)}let f=[];for(let m of s){let h=y8[m.type]||m.type,p=au[h];h==="era"&&i.getEras().length===1&&(p=!1);let g=au[h]&&t[m.type]==null,y=au[h]?b8(h,m.value,a):null,$={type:h,text:g?y:m.value,...t.getSegmentLimits(h),isPlaceholder:g,placeholder:y,isEditable:p};h==="hour"?(f.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1}),f.push($),h===l&&f.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):o.includes(h)&&h===l?(f.push($),f.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):f.push($)}return f}const Xp=u.createContext(null),Jr=u.createContext(null),lu=u.createContext(null),v8=u.forwardRef(function(t,n){[t,n]=pe(t,n,Xp);let{validationBehavior:r}=qe(fa)||{},i=t.validationBehavior??r??"native",{locale:a}=be(),l=qp({...t,locale:a,createCalendar:oa,validationBehavior:i}),o=u.useRef(null),[s,d]=un(!t["aria-label"]&&!t["aria-labelledby"]),c=u.useRef(null),{labelProps:f,fieldProps:m,inputProps:h,descriptionProps:p,errorMessageProps:g,...y}=fp({...mr(t),label:d,inputRef:c,validationBehavior:i},l,o),$=ue({...mr(t),values:{state:l,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isReadOnly:l.isReadOnly,isRequired:t.isRequired||!1},defaultClassName:"react-aria-DateField"}),x=ie(t,{global:!0});return delete x.id,u.createElement(Pe,{values:[[Jr,l],[Xn,{...m,ref:o,isInvalid:l.isInvalid,isDisabled:l.isDisabled}],[Jn,{...h,ref:c}],[pn,{...f,ref:s,elementType:"span"}],[tt,{slots:{description:p,errorMessage:g}}],[da,y]]},u.createElement(re.div,{...x,...$,ref:n,slot:t.slot||void 0,"data-invalid":l.isInvalid||void 0,"data-disabled":l.isDisabled||void 0,"data-readonly":l.isReadOnly||void 0,"data-required":t.isRequired||void 0}),u.createElement(J9,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:l}))}),x8=u.forwardRef(function(t,n){let r=u.useContext(Jr),i=u.useContext(lu);return r||i?u.createElement(Jp,{...t,ref:n}):u.createElement(C8,{...t,ref:n})}),C8=u.forwardRef((e,t)=>{let[n,r]=pe({slot:e.slot},t,Xp),{locale:i}=be(),a=qp({...n,locale:i,createCalendar:oa}),l=u.useRef(null),{fieldProps:o,inputProps:s}=fp({...n,inputRef:l},a,r);return u.createElement(Pe,{values:[[Jr,a],[Jn,{...s,ref:l}],[Xn,{...o,ref:r,isInvalid:a.isInvalid,isDisabled:a.isDisabled}]]},u.createElement(Jp,e))}),Jp=u.forwardRef((e,t)=>{let{className:n,children:r}=e,i=u.useContext(Jr),a=u.useContext(lu),l=i??a;return u.createElement(u.Fragment,null,u.createElement(Lr,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled},l.segments.map((o,s)=>u.cloneElement(r(o),{key:s}))),u.createElement(ha,{className:""}))}),D8=u.forwardRef(function({segment:t,...n},r){let i=u.useContext(Jr),a=u.useContext(lu),l=i??a,o=Te(r),{segmentProps:s}=a8(t,l,o),{focusProps:d,isFocused:c,isFocusVisible:f}=Oe(),{hoverProps:m,isHovered:h}=ze({...n,isDisabled:l.isDisabled||t.type==="literal"}),p=ue({...n,values:{...t,isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isHovered:h,isFocused:c,isFocusVisible:f},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return u.createElement(re.span,{...X(ie(n,{global:!0}),s,d,m),...p,style:s.style,ref:o,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":l.isInvalid||void 0,"data-readonly":l.isReadOnly||void 0,"data-disabled":l.isDisabled||void 0,"data-type":t.type,"data-hovered":h||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0})});var Qp={};Qp={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var eb={};eb={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var tb={};tb={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var nb={};nb={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var rb={};rb={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var ib={};ib={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var ab={};ab={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var lb={};lb={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var ob={};ob={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var ub={};ub={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var sb={};sb={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var db={};db={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var cb={};cb={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var fb={};fb={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var mb={};mb={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var hb={};hb={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var pb={};pb={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var bb={};bb={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var gb={};gb={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var yb={};yb={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var $b={};$b={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var vb={};vb={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var xb={};xb={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var Cb={};Cb={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var Db={};Db={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var Eb={};Eb={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var wb={};wb={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var Sb={};Sb={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var Pb={};Pb={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var kb={};kb={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var Bb={};Bb={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var Nb={};Nb={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var Ab={};Ab={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var Fb={};Fb={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var Fa={};Fa={"ar-AE":Qp,"bg-BG":eb,"cs-CZ":tb,"da-DK":nb,"de-DE":rb,"el-GR":ib,"en-US":ab,"es-ES":lb,"et-EE":ob,"fi-FI":ub,"fr-FR":sb,"he-IL":db,"hr-HR":cb,"hu-HU":fb,"it-IT":mb,"ja-JP":hb,"ko-KR":pb,"lt-LT":bb,"lv-LV":gb,"nb-NO":yb,"nl-NL":$b,"pl-PL":vb,"pt-BR":xb,"pt-PT":Cb,"ro-RO":Db,"ru-RU":Eb,"sk-SK":wb,"sl-SI":Sb,"sr-SP":Pb,"sv-SE":kb,"tr-TR":Bb,"uk-UA":Nb,"zh-CN":Ab,"zh-TW":Fb};function E8(e){return e&&e.__esModule?e.default:e}function w8(e,t){let{getRowText:n=o=>t.collection.getTextValue?.(o)??t.collection.getItem(o)?.textValue}=e,r=ke(E8(Fa),"@react-aria/grid"),i=t.selectionManager.rawSelection,a=u.useRef(i),l=u.useCallback(()=>{if(!t.selectionManager.isFocused||i===a.current){a.current=i;return}let o=Tb(i,a.current),s=Tb(a.current,i),d=t.selectionManager.selectionBehavior==="replace",c=[];if(t.selectionManager.selectedKeys.size===1&&d){let f=t.selectionManager.selectedKeys.keys().next().value;if(f!=null&&t.collection.getItem(f)){let m=n(f);m&&c.push(r.format("selectedItem",{item:m}))}}else if(o.size===1&&s.size===0){let f=o.keys().next().value;if(f!=null){let m=n(f);m&&c.push(r.format("selectedItem",{item:m}))}}else if(s.size===1&&o.size===0){let f=s.keys().next().value;if(f!=null&&t.collection.getItem(f)){let m=n(f);m&&c.push(r.format("deselectedItem",{item:m}))}}t.selectionManager.selectionMode==="multiple"&&(c.length===0||i==="all"||i.size>1||a.current==="all"||a.current?.size>1)&&c.push(i==="all"?r.format("selectedAll"):r.format("selectedCount",{count:i.size})),c.length>0&&$t(c.join(" ")),a.current=i},[i,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,n,r]);Tr(()=>{if(t.selectionManager.isFocused)l();else{let o=requestAnimationFrame(l);return()=>cancelAnimationFrame(o)}},[i,t.selectionManager.isFocused])}function Tb(e,t){let n=new Set;if(e==="all"||t==="all")return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function S8(e,t){let n=t?.isDisabled,[r,i]=u.useState(!1);return fe(()=>{if(e?.current&&!n){let a=()=>{if(e.current){let o=Ae(e.current,{tabbable:!0});i(!!o.nextNode())}};a();let l=new MutationObserver(a);return l.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function P8(e){return e&&e.__esModule?e.default:e}function k8(e){let t=ke(P8(Fa),"@react-aria/grid"),n=Ys(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,i=u.useMemo(()=>{let l=e.selectionManager.selectionMode,o=e.selectionManager.selectionBehavior,s;return r&&(s=t.format("longPressToSelect")),o==="replace"&&l!=="none"&&e.hasItemActions?s:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]);return xn(i)}function B8(e){return e&&e.__esModule?e.default:e}function N8(e,t){let{key:n}=e,r=t.selectionManager,i=Ee(),a=!t.selectionManager.canSelectItem(n),l=t.selectionManager.isSelected(n),o=()=>r.toggleSelection(n);const s=ke(B8(Fa),"@react-aria/grid");return{checkboxProps:{id:i,"aria-label":s.format("select"),isSelected:l,isDisabled:a,onChange:o}}}function A8(e,t,n){let{overlayProps:r,underlayProps:i}=f4({...e,isOpen:t.isOpen,onClose:t.close},n);return m4({isDisabled:!t.isOpen}),Q4(),u.useEffect(()=>{if(t.isOpen&&n.current)return Ho([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:X(r),underlayProps:i}}let Ge=typeof document<"u"&&window.visualViewport;function F8(){let e=jt(),[t,n]=u.useState(()=>e?{width:0,height:0}:ou());return u.useEffect(()=>{let r=o=>{n(s=>o.width===s.width&&o.height===s.height?s:o)},i=()=>{Ge&&Ge.scale>1||r(ou())},a,l=o=>{Ge&&Ge.scale>1||gr(G(o))&&(a=requestAnimationFrame(()=>{let s=ce();(!s||!gr(s))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(ou()),bt()&>()&&window.addEventListener("blur",l,!0),Ge?Ge.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(a),bt()&>()&&window.removeEventListener("blur",l,!0),Ge?Ge.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),t}function ou(){return{width:Ge?Math.min(Ge.width*Ge.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:Ge?Ge.height*Ge.scale:document.documentElement.clientHeight}}const T8=u.createContext(null),uu=u.createContext(null),I8=u.forwardRef(function(t,n){if(u.useContext(uu)){if(process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)){const g=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),y=Object.keys(t).filter($=>g.has($));console.warn(`This modal is already wrapped in a ModalOverlay, props [${y.join(", ")}] should be placed on the ModalOverlay instead.`)}return u.createElement(Mb,{...t,modalRef:n},t.children)}let{isDismissable:i,isKeyboardDismissDisabled:a,isOpen:l,defaultOpen:o,onOpenChange:s,children:d,isEntering:c,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:h,...p}=t;return u.createElement(Ib,{isDismissable:i,isKeyboardDismissDisabled:a,isOpen:l,defaultOpen:o,onOpenChange:s,isEntering:c,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:h},u.createElement(Mb,{...p,modalRef:n},d))});function M8(e,t){[e,t]=pe(e,t,T8);let n=u.useContext(Ot),r=Yr(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let a=Te(t),l=u.useRef(null),o=Jo(a,i.isOpen),s=Jo(l,i.isOpen),d=o||s||e.isExiting||!1,c=jt();return!i.isOpen&&!d||c?null:u.createElement(K8,{...e,state:i,isExiting:d,overlayRef:a,modalRef:l})}const Ib=u.forwardRef(M8);function K8({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:i,underlayProps:a}=A8(t,r,n),l=Xo(t.overlayRef)||t.isEntering||!1,o=ue({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:t.isExiting,state:r}}),s=F8(),d,c;if(typeof document<"u"){let m=en(document.body)?document.body:document.scrollingElement||document.documentElement,h=m.getBoundingClientRect().width%1,p=m.getBoundingClientRect().height%1;d=m.scrollWidth-h,c=m.scrollHeight-p}let f={...o.style,"--visual-viewport-width":s.width+"px","--visual-viewport-height":s.height+"px","--page-width":d!==void 0?d+"px":void 0,"--page-height":c!==void 0?c+"px":void 0};return u.createElement(qo,{isExiting:t.isExiting,portalContainer:e},u.createElement(re.div,{...X(ie(t,{global:!0}),a),...o,style:f,ref:t.overlayRef,"data-entering":l||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Pe,{values:[[uu,{modalProps:i,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Ot,r]]},o.children)))}function Mb(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i}=u.useContext(uu),a=u.useContext(Ot),l=u.useMemo(()=>fr(e.modalRef,n),[e.modalRef,n]),o=Te(l),s=Xo(o),d=ue({...e,defaultClassName:"react-aria-Modal",values:{isEntering:s,isExiting:r,state:a}});return u.createElement(re.div,{...X(ie(e,{global:!0}),t),...d,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},i&&u.createElement(Yo,{onDismiss:a.close}),d.children)}var Kb={};Kb={"Clear search":"مسح البحث"};var Lb={};Lb={"Clear search":"Изчистване на търсене"};var Ob={};Ob={"Clear search":"Vymazat hledání"};var zb={};zb={"Clear search":"Ryd søgning"};var Vb={};Vb={"Clear search":"Suche zurücksetzen"};var _b={};_b={"Clear search":"Απαλοιφή αναζήτησης"};var Rb={};Rb={"Clear search":"Clear search"};var jb={};jb={"Clear search":"Borrar búsqueda"};var Hb={};Hb={"Clear search":"Tühjenda otsing"};var Ub={};Ub={"Clear search":"Tyhjennä haku"};var Wb={};Wb={"Clear search":"Effacer la recherche"};var Gb={};Gb={"Clear search":"נקה חיפוש"};var Zb={};Zb={"Clear search":"Obriši pretragu"};var Yb={};Yb={"Clear search":"Keresés törlése"};var qb={};qb={"Clear search":"Cancella ricerca"};var Xb={};Xb={"Clear search":"検索をクリア"};var Jb={};Jb={"Clear search":"검색 지우기"};var Qb={};Qb={"Clear search":"Išvalyti iešką"};var eg={};eg={"Clear search":"Notīrīt meklēšanu"};var tg={};tg={"Clear search":"Tøm søk"};var ng={};ng={"Clear search":"Zoekactie wissen"};var rg={};rg={"Clear search":"Wyczyść zawartość wyszukiwania"};var ig={};ig={"Clear search":"Limpar pesquisa"};var ag={};ag={"Clear search":"Limpar pesquisa"};var lg={};lg={"Clear search":"Ştergeţi căutarea"};var og={};og={"Clear search":"Очистить поиск"};var ug={};ug={"Clear search":"Vymazať vyhľadávanie"};var sg={};sg={"Clear search":"Počisti iskanje"};var dg={};dg={"Clear search":"Obriši pretragu"};var cg={};cg={"Clear search":"Rensa sökning"};var fg={};fg={"Clear search":"Aramayı temizle"};var mg={};mg={"Clear search":"Очистити пошук"};var hg={};hg={"Clear search":"清除搜索"};var pg={};pg={"Clear search":"清除搜尋條件"};var bg={};bg={"ar-AE":Kb,"bg-BG":Lb,"cs-CZ":Ob,"da-DK":zb,"de-DE":Vb,"el-GR":_b,"en-US":Rb,"es-ES":jb,"et-EE":Hb,"fi-FI":Ub,"fr-FR":Wb,"he-IL":Gb,"hr-HR":Zb,"hu-HU":Yb,"it-IT":qb,"ja-JP":Xb,"ko-KR":Jb,"lt-LT":Qb,"lv-LV":eg,"nb-NO":tg,"nl-NL":ng,"pl-PL":rg,"pt-BR":ig,"pt-PT":ag,"ro-RO":lg,"ru-RU":og,"sk-SK":ug,"sl-SI":sg,"sr-SP":dg,"sv-SE":cg,"tr-TR":fg,"uk-UA":mg,"zh-CN":hg,"zh-TW":pg};function L8(e){return e&&e.__esModule?e.default:e}function O8(e,t,n){let r=ke(L8(bg),"@react-aria/searchfield"),{isDisabled:i,isReadOnly:a,onSubmit:l,onClear:o,type:s="search"}=e,{keyboardProps:d}=Le({isDisabled:i||a,shortcuts:{Enter:()=>{if(l){l(t.value);return}return!1},Escape:()=>{if(t.value===""&&(!n.current||n.current.value===""))return!1;t.setValue(""),o?.()}}}),c=()=>{t.setValue(""),o&&o()},f=()=>{n.current?.focus()},{labelProps:m,inputProps:h,descriptionProps:p,errorMessageProps:g,...y}=m0({...e,value:t.value,onChange:t.setValue,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,type:s},n);return{labelProps:m,inputProps:X(d,{...h,defaultValue:void 0}),clearButtonProps:{"aria-label":r.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:i||a,onPress:c,onPressStart:f},descriptionProps:p,errorMessageProps:g,...y}}function z8(e){let[t,n]=He(gg(e.value),gg(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}function gg(e){if(e!=null)return e.toString()}const V8=u.createContext(null),_8=Vn(function(t,n){[t,n]=pe(t,n,V8);let{validationBehavior:r}=qe(fa)||{},i=t.validationBehavior??r??"native",a=u.useRef(null);[t,a]=pe(t,a,vr);let[l,o]=un(!t["aria-label"]&&!t["aria-labelledby"]),s=z8({...t,validationBehavior:i}),{labelProps:d,inputProps:c,clearButtonProps:f,descriptionProps:m,errorMessageProps:h,...p}=O8({...mr(t),label:o,validationBehavior:i},s,a),g=ue({...t,values:{isEmpty:s.value==="",isDisabled:t.isDisabled||!1,isInvalid:p.isInvalid||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,state:s},defaultClassName:"react-aria-SearchField"}),y=ie(t,{global:!0});return delete y.id,u.createElement(re.div,{...y,...g,ref:n,slot:t.slot||void 0,"data-empty":s.value===""||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},u.createElement(Pe,{values:[[pn,{...d,ref:l}],[Jn,{...c,ref:a}],[vt,f],[tt,{slots:{description:m,errorMessage:h}}],[Xn,{isInvalid:p.isInvalid,isDisabled:t.isDisabled||!1}],[da,p]]},g.children))}),su=new WeakMap;function R8(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:l,form:o,validationBehavior:s="aria"}=e,d=Qn({usage:"search",sensitivity:"base"}),c=u.useMemo(()=>r||new Vr(t.collection,t.disabledKeys,n,d),[r,t.collection,t.disabledKeys,d,n]),{menuTriggerProps:f,menuProps:m}=Qo({isDisabled:i,type:"listbox"},t,n),{keyboardProps:h}=Le({shortcuts:{ArrowLeft:()=>{if(t.selectionManager.selectionMode==="multiple")return!1;let k=t.selectedKey!=null?c.getKeyAbove?.(t.selectedKey):c.getFirstKey?.();k!=null&&t.setSelectedKey(k)},ArrowRight:()=>{if(t.selectionManager.selectionMode==="multiple")return!1;let k=t.selectedKey!=null?c.getKeyBelow?.(t.selectedKey):c.getFirstKey?.();k!=null&&t.setSelectedKey(k)}},allowRepeats:!0,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp}),{typeSelectProps:p}=jm({keyboardDelegate:c,selectionManager:t.selectionManager,onTypeSelect(k){t.setSelectedKey(k)}}),{isInvalid:g,validationErrors:y,validationDetails:$}=t.displayValidation,{labelProps:x,fieldProps:v,descriptionProps:C,errorMessageProps:w}=Do({...e,labelElementType:"span",isInvalid:g,errorMessage:e.errorMessage||y});t.selectionManager.selectionMode==="multiple"&&(p={});let S=ie(e,{labelable:!0}),B=X(p,f,v),E=Ee();return su.set(t,{isDisabled:i,isRequired:a,name:l,form:o,validationBehavior:s}),{labelProps:{...x,onClick:()=>{e.isDisabled||(n.current?.focus(),Ln("keyboard"))}},triggerProps:X(S,{...B,isDisabled:i,onKeyDown:at(B.onKeyDown,h.onKeyDown),onKeyUp:h.onKeyUp,"aria-labelledby":[E,B["aria-labelledby"],B["aria-label"]&&!B["aria-labelledby"]?B.id:null].filter(Boolean).join(" "),onFocus(k){t.isFocused||(e.onFocus&&e.onFocus(k),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(k){t.isOpen||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:E},menuProps:{...m,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:k=>{ae(k.currentTarget,k.relatedTarget)||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[v["aria-labelledby"],B["aria-label"]&&!v["aria-labelledby"]?B.id:null].filter(Boolean).join(" ")},descriptionProps:C,errorMessageProps:w,isInvalid:g,validationErrors:y,validationDetails:$,hiddenSelectProps:{isDisabled:i,name:l,label:e.label,state:t,triggerRef:n,form:o}}}function j8(e,t,n){let r=su.get(t)||{},{autoComplete:i,name:a=r.name,form:l=r.form,isDisabled:o=r.isDisabled}=e,{validationBehavior:s,isRequired:d}=r,{visuallyHiddenProps:c}=Dn({style:{position:"fixed",top:0,left:0}});ma(e.selectRef,t.defaultValue,t.setValue),Eo({validationBehavior:s,focus:()=>n.current?.focus()},t,e.selectRef);let f=t.setValue,m=u.useCallback(h=>{let p=G(h);p.multiple?f(Array.from(p.selectedOptions,g=>g.value)):f(h.currentTarget.value)},[f]);return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:o,multiple:t.selectionManager.selectionMode==="multiple",required:s==="native"&&d,name:a,form:l,value:t.value??"",onChange:m,onInput:m}}}function H8(e){let{state:t,triggerRef:n,label:r,name:i,form:a,isDisabled:l}=e,o=u.useRef(null),s=u.useRef(null),{containerProps:d,selectProps:c}=j8({...e,selectRef:t.collection.size<=300?o:s},t,n),f=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return u.createElement("div",{...d,"data-testid":"hidden-select-container"},u.createElement("label",null,r,u.createElement("select",{...c,ref:o},u.createElement("option",{value:"",label:" "}," "),[...t.collection.getKeys()].map(m=>{let h=t.collection.getItem(m);if(h&&h.type==="item")return u.createElement("option",{key:h.key,value:h.key},h.textValue)}),t.collection.size===0&&i&&f.map((m,h)=>u.createElement("option",{key:h,value:m??""})))));if(i){let m=su.get(t)||{},{validationBehavior:h}=m;f.length===0&&(f=[null]);let p=f.map((g,y)=>{let $={type:"hidden",autoComplete:c.autoComplete,name:i,form:a,disabled:l,value:g??""};return h==="native"?u.createElement("input",{key:y,...$,ref:y===0?s:null,style:{display:"none"},type:"text",required:y===0?c.required:!1,onChange:()=>{}}):u.createElement("input",{key:y,...$,ref:y===0?s:null})});return u.createElement(u.Fragment,null,p)}return null}function U8(e){let{selectionMode:t="single",shouldCloseOnSelect:n=t==="single"}=e,r=Yr(e),[i,a]=u.useState(null),l=u.useMemo(()=>e.defaultValue!==void 0?e.defaultValue:t==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,t]),o=u.useMemo(()=>e.value!==void 0?e.value:t==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,t]),[s,d]=He(o,l,e.onChange),c=t==="single"&&Array.isArray(s)?s[0]:s,f=v=>{if(t==="single"){let C=Array.isArray(v)?v[0]??null:v;d(C),C!==c&&e.onSelectionChange?.(C)}else{let C=[];Array.isArray(v)?C=v:v!=null&&(C=[v]),d(C)}},m=xa({...e,selectionMode:t,disallowEmptySelection:t==="single",allowDuplicateSelectionEvents:!0,selectedKeys:u.useMemo(()=>W8(c),[c]),onSelectionChange:v=>{if(v!=="all"){if(t==="single"){let C=v.values().next().value??null;f(C)}else f([...v]);n&&r.close(),g.commitValidation()}}}),h=m.selectionManager.firstSelectedKey,p=u.useMemo(()=>[...m.selectionManager.selectedKeys].map(v=>m.collection.getItem(v)).filter(v=>v!=null),[m.selectionManager.selectedKeys,m.collection]),g=ca({...e,value:Array.isArray(c)&&c.length===0?null:c}),[y,$]=u.useState(!1),[x]=u.useState(c);return{...g,...m,...r,value:c,defaultValue:l??x,setValue:f,selectedKey:h,setSelectedKey:f,selectedItem:p[0]??null,selectedItems:p,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode==="single"?x:null),focusStrategy:i,open(v=null){(m.collection.size!==0||e.allowsEmptyCollection)&&(a(v),r.open())},toggle(v=null){(m.collection.size!==0||e.allowsEmptyCollection)&&(a(v),r.toggle())},isFocused:y,setFocused:$}}function W8(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function G8(e){return e&&e.__esModule?e.default:e}const du=u.createContext(null),yg=u.createContext(null),Z8=Vn(function(t,n){[t,n]=pe(t,n,du);let{children:r,isDisabled:i=!1,isInvalid:a=!1,isRequired:l=!1}=t,o=u.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,a,l]);return u.createElement(fn,{content:o},s=>u.createElement(q8,{props:t,collection:s,selectRef:n}))}),Y8=[pn,vt,tt];function q8({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=qe(fa)||{},i=e.validationBehavior??r??"native",a=U8({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:l,focusProps:o}=Oe({within:!0}),s=u.useRef(null),[d,c]=un(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:f,triggerProps:m,valueProps:h,menuProps:p,descriptionProps:g,errorMessageProps:y,hiddenSelectProps:$,...x}=R8({...mr(e),label:c,validationBehavior:i},a,s),v=u.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:l,isDisabled:e.isDisabled||!1,isInvalid:x.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,l,e.isDisabled,x.isInvalid,e.isRequired]),C=ue({...e,values:v,defaultClassName:"react-aria-Select"}),w=ie(e,{global:!0});delete w.id;let S=u.useRef(null);return u.createElement(Pe,{values:[[du,e],[yg,a],[$g,h],[pn,{...f,ref:d,elementType:"span"}],[vt,{...m,ref:s,isPressed:a.isOpen,autoFocus:e.autoFocus}],[Ot,a],[qr,{trigger:"Select",triggerRef:s,scrollRef:S,placement:"bottom start","aria-labelledby":p["aria-labelledby"],clearContexts:Y8}],[Hr,{...p,ref:S}],[Sn,a],[tt,{slots:{description:g,errorMessage:y}}],[da,x]]},u.createElement(re.div,{...X(w,C,o),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":l||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":x.isInvalid||void 0,"data-required":e.isRequired||void 0},C.children,u.createElement(H8,{...$,autoComplete:e.autoComplete})))}const $g=u.createContext(null),X8=Vn(function(t,n){[t,n]=pe(t,n,$g);let r=u.useContext(yg),{placeholder:i}=qe(du),a=r.selectedItems.map(p=>{let g=p.props?.children;return typeof g=="function"&&(g=g({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})),g}),l=j9(),o=u.useMemo(()=>r.selectedItems.map(p=>p?.textValue),[r.selectedItems]),s=r.selectionManager.selectionMode,d=u.useMemo(()=>s==="single"?o[0]??"":l.format(o),[s,l,o]),c=u.useMemo(()=>{if(s==="single")return a[0];let p=l.formatToParts(o);if(p.length===0)return null;let g=0;return p.map(y=>y.type==="element"?u.createElement(u.Fragment,{key:g},a[g++]):y.value)},[s,l,o,a]),f=ke(G8(wo),"react-aria-components"),m=ue({...t,defaultChildren:c??i??f.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:r.selectedItems[0]?.value??null,selectedItems:u.useMemo(()=>r.selectedItems.map(p=>p.value??null),[r.selectedItems]),selectedText:d,isPlaceholder:r.selectedItems.length===0,state:r}}),h=ie(t,{global:!0});return u.createElement(re.span,{ref:n,...h,...m,"data-placeholder":r.selectedItems.length===0||void 0},u.createElement(tt.Provider,{value:void 0},m.children))}),vg=10,xg=5;class J8{setup(t,n,r){this.delegate=t,this.state=n,this.direction=r}getDropTargetFromPoint(t,n,r){let i=this.delegate.getDropTargetFromPoint(t,n,r);return!i||i.type==="root"?i:this.resolveDropTarget(i,t,n,r)}resolveDropTarget(t,n,r,i){let a=this.pointerTracking,l=r-a.lastY,o=n-a.lastX,s=a.yDirection,d=a.xDirection;if(Math.abs(l)>xg&&(s=l>0?"down":"up",a.yDirection=s,a.lastY=r),Math.abs(o)>vg&&(d=o>0?"right":"left",a.xDirection=d,a.lastX=n),t.dropPosition==="before"){let m=this.state.collection.getKeyBefore(t.key);for(;m!=null;){let h=this.state.collection.getItem(m);if(h?.type==="item")break;m=h?.parentKey??null}if(m!=null){let h={type:"item",key:m,dropPosition:"after"};i(h)&&(t=h)}}let c=this.getPotentialTargets(t,i);if(c.length===0)return{type:"root"};let f;return c.length>1?f=this.selectTarget(c,t,n,r,s,d):(f=c[0],a.boundaryContext=null),f}getPotentialTargets(t,n){if(t.dropPosition==="on")return[t];let r=t,i=this.state.collection,a=i.getItem(r.key);for(;a&&a?.type!=="item"&&a.nextKey!=null;)r.key=a.nextKey,a=i.getItem(a.nextKey);let l=[r];if(a&&a.hasChildNodes&&this.state.expandedKeys.has(a.key)&&i.getChildren&&r.dropPosition==="after"){let d=a.firstChildKey!=null?i.getItem(a.firstChildKey):null;for(;d&&d.type!=="item";)d=d.nextKey!=null?i.getItem(d.nextKey):null;if(d?.type==="item"){const c={type:"item",key:d.key,dropPosition:"before"};return n(c)?[c]:[]}}if(a?.nextKey!=null)return[t];let o=a?.parentKey,s=[];for(;o!=null;){let d=i.getItem(o),c=d?.nextKey!=null?i.getItem(d.nextKey):null;if(!c||c.parentKey!==o){let m={type:"item",key:o,dropPosition:"after"};if(n(m)&&s.push(m),c)break}o=d?.parentKey}if(s.length>0&&l.push(...s),l.length===1){let d=i.getKeyAfter(r.key),c=d!=null?i.getItem(d):null;if(d!=null&&c&&a&&c.level!=null&&a.level!=null&&c.level>a.level){let f={type:"item",key:d,dropPosition:"before"};if(n(f))return[f]}}return l.filter(n)}selectTarget(t,n,r,i,a,l){if(t.length<2)return t[0];let o=this.pointerTracking,d=this.state.collection.getItem(n.key)?.parentKey;if(d==null)return t[0];if(!o.boundaryContext||o.boundaryContext.parentKey!==d){let p=o.yDirection==="up"?t.length-1:0;o.boundaryContext={parentKey:d,preferredTargetIndex:p,lastSwitchY:i,lastSwitchX:r}}let c=o.boundaryContext,f=Math.abs(r-c.lastSwitchX);if(Math.abs(i-c.lastSwitchY)>xg&&a){let p=c.preferredTargetIndex||0;a==="down"&&p===0?c.preferredTargetIndex=t.length-1:a==="up"&&p===t.length-1&&(c.preferredTargetIndex=0),o.xDirection=null}if(f>vg&&l){let p=c.preferredTargetIndex||0;l==="left"?this.direction==="ltr"?p<t.length-1&&(c.preferredTargetIndex=p+1,c.lastSwitchX=r):p>0&&(c.preferredTargetIndex=p-1,c.lastSwitchX=r):l==="right"&&(this.direction==="ltr"?p>0&&(c.preferredTargetIndex=p-1,c.lastSwitchX=r):p<t.length-1&&(c.preferredTargetIndex=p+1,c.lastSwitchX=r)),o.yDirection=null}let h=Math.max(0,Math.min(c.preferredTargetIndex||0,t.length-1));return t[h]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class Q8{constructor(t){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=t?.columnCount,this.rows=[];let n=a=>{let l=this.keyMap.get(a.key);t.visitNode&&(a=t.visitNode(a)),this.keyMap.set(a.key,a);let o=new Set,s=null,d=!1;if(a.type==="item"){for(let c of a.childNodes)if(c.props?.colSpan!==void 0){d=!0;break}}for(let c of a.childNodes)c.type==="cell"&&d&&(c.colspan=c.props?.colSpan,c.colSpan=c.props?.colSpan,c.colIndex=s?(s.colIndex??s.index)+(s.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=a.key),o.add(c.key),s?(s.nextKey=c.key,c.prevKey=s.key):c.prevKey=null,n(c),s=c;if(s&&(s.nextKey=null),l)for(let c of l.childNodes)o.has(c.key)||r(c)},r=a=>{this.keyMap.delete(a.key);for(let l of a.childNodes)this.keyMap.get(l.key)===l&&r(l)},i=null;for(let[a,l]of t.items.entries()){let o={...l,level:l.level??0,key:l.key??"row-"+a,type:l.type??"row",value:l.value??null,hasChildNodes:!0,childNodes:[...l.childNodes],rendered:l.rendered,textValue:l.textValue??"",index:l.index??a};i?(i.nextKey=o.key,o.prevKey=i.key):o.prevKey=null,this.rows.push(o),n(o),i=o}i&&(i.nextKey=null)}*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return[...this.rows][0]?.key}getLastKey(){let t=[...this.rows];return t[t.length-1]?.key}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}}const Cg="row-header-column-"+Math.random().toString(36).slice(2);let cu="row-header-column-"+Math.random().toString(36).slice(2);for(;Cg===cu;)cu="row-header-column-"+Math.random().toString(36).slice(2);function Dg(e,t){if(t.length===0)return[];let n=[],r=new Map;for(let s of t){let d=s.parentKey,c=[s];for(;d!=null;){let f=e.get(d);if(!f)break;if(r.has(f)){f.colSpan??=0,f.colSpan++,f.colspan=f.colSpan;let{column:m,index:h}=r.get(f);if(h>c.length)break;for(let p=h;p<c.length;p++)m.splice(p,0,null);for(let p=c.length;p<m.length;p++)m[p]&&r.has(m[p])&&(r.get(m[p]).index=p)}else f.colSpan=1,f.colspan=1,c.push(f),r.set(f,{column:c,index:c.length-1});d=f.parentKey}n.push(c),s.index=n.length-1}let i=Math.max(...n.map(s=>s.length)),a=Array(i).fill(0).map(()=>[]),l=0;for(let s of n){let d=i-1;for(let c of s){if(c){let f=a[d],m=f.reduce((h,p)=>h+(p.colSpan??1),0);if(m<l){let h={type:"placeholder",key:"placeholder-"+c.key,colspan:l-m,colSpan:l-m,index:m,value:null,rendered:null,level:d,hasChildNodes:!1,childNodes:[],textValue:""};f.length>0&&(f[f.length-1].nextKey=h.key,h.prevKey=f[f.length-1].key),f.push(h)}f.length>0&&(f[f.length-1].nextKey=c.key,c.prevKey=f[f.length-1].key),c.level=d,c.colIndex=l,f.push(c)}d--}l++}let o=0;for(let s of a){let d=s.reduce((c,f)=>c+(f.colSpan??1),0);if(d<t.length){let c={type:"placeholder",key:"placeholder-"+s[s.length-1].key,colSpan:t.length-d,colspan:t.length-d,index:d,value:null,rendered:null,level:o,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:s[s.length-1].key};s.push(c)}o++}return a.map((s,d)=>({type:"headerrow",key:"headerrow-"+d,index:d,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:s,textValue:""}))}class e7 extends Q8{constructor(t,n,r){let i=new Set,a=null,l=[];if(r?.showSelectionCheckboxes){let f={type:"column",key:Cg,value:null,textValue:"",level:0,index:r?.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};l.unshift(f)}if(r?.showDragButtons){let f={type:"column",key:cu,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};l.unshift(f)}let o=[],s=new Map,d=f=>{switch(f.type){case"body":a=f;break;case"column":s.set(f.key,f),f.hasChildNodes||(l.push(f),f.props.isRowHeader&&i.add(f.key));break;case"item":o.push(f);return}for(let m of f.childNodes)d(m)};for(let f of t)d(f);let c=Dg(s,l);if(c.forEach((f,m)=>o.splice(m,0,f)),super({columnCount:l.length,items:o,visitNode:f=>(f.column=l[f.index],f)}),this._size=0,this.columns=l,this.rowHeaderColumnKeys=i,this.body=a,this.headerRows=c,this._size=[...a.childNodes].length,this.rowHeaderColumnKeys.size===0){let f=this.columns.find(m=>!m.props?.isDragButtonCell&&!m.props?.isSelectionCell);f&&this.rowHeaderColumnKeys.add(f.key)}}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){return this.keyMap.get(t)?.prevKey??null}getKeyAfter(t){return this.keyMap.get(t)?.nextKey??null}getFirstKey(){return Lt(this.body.childNodes)?.key??null}getLastKey(){return er(this.body.childNodes)?.key??null}getItem(t){return t===this.body.key?this.body:this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){if(t===this.body.key)return this.body.childNodes;let n=this.getItem(t);return n?.type==="item"?[...n.childNodes].filter(r=>r.type==="cell"):super.getChildren(t)}getTextValue(t){let n=this.getItem(t);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys;if(r){let i=[];for(let a of n.childNodes){let l=this.columns[a.index];if(r.has(l.key)&&a.textValue&&i.push(a.textValue),i.length===r.size)break}return i.join(" ")}return""}}function t7(e){return e!=null&&(!isNaN(e)||String(e).match(/^(\d+)(?=%$)/)!==null)}function n7(e){if(!e||typeof e=="number")return 1;let t=e.match(/^(.+)(?=fr$)/);return t?parseFloat(t[0]):(process.env.NODE_ENV!=="production"&&console.warn(`width: ${e} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,"defaulting to '1fr'"),1)}function fu(e,t){if(typeof e=="string"){let n=e.match(/^(\d+)(?=%$)/);if(!n)throw new Error("Only percentages or numbers are supported for static column widths");return t*(parseFloat(n[0])/100)}return e}function Eg(e,t){return e!=null?fu(e,t):Number.MAX_SAFE_INTEGER}function wg(e,t){return e!=null?fu(e,t):0}function r7(e,t,n,r,i){let a=e,l=Math.floor(e),o=e-l>0;e=l;let s=!1,d=t.map((f,m)=>{let h=n.get(f.key)!=null?n.get(f.key)??"1fr":f.width??f.defaultWidth??r?.(m)??"1fr",p=!1,g=0,y=0,$=0;t7(h)?(g=fu(h,e),p=!0):(y=n7(h),y<=0&&(p=!0));let x=wg(f.minWidth??i?.(m)??0,e),v=Eg(f.maxWidth,e),C=Math.max(x,Math.min(g,v));return p?$=C:g>C&&(p=!0,$=C),p||(s=!0),{frozen:p,baseSize:g,hypotheticalMainSize:C,min:x,max:v,flex:y,targetMainSize:$,violation:0}});for(;s;){let f=0,m=0;d.forEach(g=>{g.frozen?f+=g.targetMainSize:(f+=g.baseSize,m+=g.flex)});let h=e-f;h>0&&d.forEach(g=>{if(!g.frozen){let y=g.flex/m;g.targetMainSize=g.baseSize+y*h}});let p=0;d.forEach(g=>{if(g.violation=0,!g.frozen){let{min:y,max:$,targetMainSize:x}=g;g.targetMainSize=Math.max(y,Math.min(x,$)),g.violation=g.targetMainSize-x,p+=g.violation}}),s=!1,d.forEach(g=>{p===0||Math.sign(p)===Math.sign(g.violation)?g.frozen=!0:g.frozen||(s=!0)})}let c=i7(d);if(o&&c.length>0){let f=a.toString().split(".")[1],m=c[c.length-1].toString();c[c.length-1]=+(m+"."+f)}return c}function i7(e){let t=0,n=0,r=[];return e.forEach(function(i){let a=i.targetMainSize,l=Math.round(a+t)-n;t+=a,n+=l,r.push(l)}),r}class a7{constructor(t){this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,this.getDefaultWidth=t?.getDefaultWidth??(()=>"1fr"),this.getDefaultMinWidth=t?.getDefaultMinWidth??(()=>75)}splitColumnsIntoControlledAndUncontrolled(t){return t.reduce((n,r)=>(r.props.width!=null?n[0].set(r.key,r):n[1].set(r.key,r),n),[new Map,new Map])}recombineColumns(t,n,r,i){return new Map(t.map(a=>r.has(a.key)?[a.key,n.get(a.key)]:[a.key,i.get(a.key).props.width]))}getInitialUncontrolledWidths(t){return new Map(Array.from(t).map(([n,r])=>[n,r.props.defaultWidth??this.getDefaultWidth?.(r)??"1fr"]))}getColumnWidth(t){return this.columnWidths.get(t)??0}getColumnMinWidth(t){return this.columnMinWidths.get(t)??0}getColumnMaxWidth(t){return this.columnMaxWidths.get(t)??0}resizeColumnWidth(t,n,r,i){let a=this.columnWidths,l=!0,o=new Map;return i=Math.max(this.getColumnMinWidth(r),Math.min(this.getColumnMaxWidth(r),Math.floor(i))),t.columns.forEach(s=>{s.key===r?(o.set(s.key,i),l=!1):l?o.set(s.key,a.get(s.key)??0):o.set(s.key,s.props.width??n.get(s.key))}),o}buildColumnWidths(t,n,r){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,r7(t,n.columns.map(a=>({...a.props,key:a.key})),r,a=>this.getDefaultWidth(n.columns[a]),a=>this.getDefaultMinWidth(n.columns[a])).forEach((a,l)=>{let o=n.columns[l].key,s=n.columns[l];this.columnWidths.set(o,a),this.columnMinWidths.set(o,wg(s.props.minWidth??this.getDefaultMinWidth(s),t)),this.columnMaxWidths.set(o,Eg(s.props.maxWidth,t))}),this.columnWidths}}function l7(e,t){let{getDefaultWidth:n,getDefaultMinWidth:r,tableWidth:i=0}=e,[a,l]=u.useState(null),o=u.useMemo(()=>new a7({getDefaultWidth:n,getDefaultMinWidth:r}),[n,r]),[s,d]=u.useMemo(()=>o.splitColumnsIntoControlledAndUncontrolled(t.collection.columns),[t.collection.columns,o]),[c,f]=u.useState(()=>o.getInitialUncontrolledWidths(d)),[m,h]=u.useState(t.collection.columns);if(t.collection.columns!==m){if(t.collection.columns.length!==m.length||t.collection.columns.some((v,C)=>v.key!==m[C].key)){let v=o.getInitialUncontrolledWidths(d);f(v)}h(t.collection.columns)}let p=u.useMemo(()=>o.recombineColumns(t.collection.columns,c,d,s),[t.collection.columns,c,d,s,o]),g=u.useCallback(v=>{l(v)},[l]),y=u.useCallback((v,C)=>{let w=o.resizeColumnWidth(t.collection,c,v,C),S=new Map(Array.from(d).map(([B])=>[B,w.get(B)]));return S.set(v,C),f(S),w},[d,f,o,t.collection,c]),$=u.useCallback(()=>{l(null)},[l]),x=u.useMemo(()=>o.buildColumnWidths(i,t.collection,p),[i,t.collection,p,o]);return u.useMemo(()=>({resizingColumn:a,updateResizedColumns:y,startResize:g,endResize:$,getColumnWidth:v=>o.getColumnWidth(v),getColumnMinWidth:v=>o.getColumnMinWidth(v),getColumnMaxWidth:v=>o.getColumnMaxWidth(v),tableState:t,columnWidths:x}),[o,x,a,y,g,$,t])}function o7(e){let{collection:t,focusMode:n}=e,r=e.UNSAFE_selectionState||jr(e),i=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=r.setFocusedKey;r.setFocusedKey=(s,d)=>{if(n==="cell"&&s!=null){let c=t.getItem(s);if(c?.type==="item"){let f=Ne(c,t);d==="last"?s=er(f)?.key??null:s=Lt(f)?.key??null}}a(s,d)};let l=u.useMemo(()=>new tr(t,r),[t,r]);const o=u.useRef(null);return u.useEffect(()=>{if(r.focusedKey!=null&&o.current&&!t.getItem(r.focusedKey)){const s=o.current.getItem(r.focusedKey),d=s?.parentKey!=null&&(s.type==="cell"||s.type==="rowheader"||s.type==="column")?o.current.getItem(s.parentKey):s;if(!d){r.setFocusedKey(null);return}const c=o.current.rows,f=t.rows,m=c.length-f.length;let h=Math.min(m>1?Math.max(d.index-m+1,0):d.index,f.length-1),p=null;for(let g=Math.max(0,h);g<f.length;g++)if(!l.isDisabled(f[g].key)&&f[g].type!=="headerrow"){p=f[g];break}if(p===null){for(let g=h-1;g>=0;g--)if(!l.isDisabled(f[g].key)&&f[g].type!=="headerrow"){p=f[g];break}}if(p){const g=p.hasChildNodes?[...Ne(p,t)]:[],y=p.hasChildNodes&&d!==s&&s&&s.index<g.length?g[s.index].key:p.key;r.setFocusedKey(y)}else r.setFocusedKey(null)}o.current=t},[t,l,r,r.focusedKey]),{collection:t,disabledKeys:i,isKeyboardNavigationDisabled:!1,selectionManager:l}}const u7={ascending:"descending",descending:"ascending"};function s7(e){let[t,n]=u.useState(!1),{selectionMode:r="none",showSelectionCheckboxes:i,showDragButtons:a,treeColumn:l=null}=e,o=u.useMemo(()=>({showSelectionCheckboxes:i&&r!=="none",showDragButtons:a,selectionMode:r,columns:[]}),[e.children,i,r,a]),s=jo(e,u.useCallback(h=>new e7(h,null,o),[o]),o),{disabledKeys:d,selectionManager:c}=o7({...e,collection:s,disabledBehavior:e.disabledBehavior||"selection"}),[f,m]=He(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);return{collection:s,disabledKeys:d,selectionManager:c,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor??null,isKeyboardNavigationDisabled:s.size===0||t,setKeyboardNavigationDisabled:n,sort(h,p){e.onSortChange?.({column:h,direction:p??(e.sortDescriptor?.column===h?u7[e.sortDescriptor.direction]:"ascending")})},expandedKeys:f,toggleKey(h){m(p=>{let g=new Set(p);return g.has(h)?g.delete(h):g.add(h),g})},treeColumn:l}}function d7(e,t){let n=u.useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return{...e,collection:n,selectionManager:r}}class Sg{constructor(t){if(this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,!t.layout&&!t.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=t.layoutDelegate||(t.layout?new c7(t.layout):new Ko(t.ref)),this.focusMode=t.focusMode??"row"}isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findPreviousKey(t,n,r=!1){let i=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;i!=null;){let a=this.collection.getItem(i);if(!a)return null;if((r||!this.isDisabled(a))&&(!n||n(a)))return i;i=this.collection.getKeyBefore(i)}return null}findNextKey(t,n,r=!1){let i=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;i!=null;){let a=this.collection.getItem(i);if(!a)return null;if((r||!this.isDisabled(a))&&(!n||n(a)))return i;if(i=this.collection.getKeyAfter(i),i==null)return null}return null}getKeyForItemInRowByIndex(t,n=0){if(n<0)return null;let r=this.collection.getItem(t);if(!r)return null;let i=0;for(let a of Ne(r,this.collection)){if(a.colSpan&&a.colSpan+i>n||(a.colSpan&&(i=i+a.colSpan-1),i===n))return a.key??null;i++}return null}getKeyBelow(t,n){let r=t,i=this.collection.getItem(r);if(!i||(this.isCell(i)&&(r=i.parentKey??null),r==null))return null;if(r=this.findNextKey(r,a=>a.type==="item",n?.includeDisabled),r!=null){if(this.isCell(i)){let a=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(r,a)}if(this.focusMode==="row")return r}return null}getKeyAbove(t,n){let r=t,i=this.collection.getItem(r);if(!i||(this.isCell(i)&&(r=i.parentKey??null),r==null))return null;if(r=this.findPreviousKey(r,a=>a.type==="item",n?.includeDisabled),r!=null){if(this.isCell(i)){let a=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(r,a)}if(this.focusMode==="row")return r}return null}getKeyRightOf(t){let n=this.collection.getItem(t);if(!n)return null;if(this.isRow(n)){let r=Ne(n,this.collection);return(this.direction==="rtl"?er(r)?.key:Lt(r)?.key)??null}if(this.isCell(n)&&n.parentKey!=null){let r=this.collection.getItem(n.parentKey);if(!r)return null;let i=Ne(r,this.collection),a=(this.direction==="rtl"?Rr(i,n.index-1):Rr(i,n.index+1))??null;return a?a.key??null:this.focusMode==="row"?n.parentKey??null:(this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))??null}return null}getKeyLeftOf(t){let n=this.collection.getItem(t);if(!n)return null;if(this.isRow(n)){let r=Ne(n,this.collection);return(this.direction==="rtl"?Lt(r)?.key:er(r)?.key)??null}if(this.isCell(n)&&n.parentKey!=null){let r=this.collection.getItem(n.parentKey);if(!r)return null;let i=Ne(r,this.collection),a=(this.direction==="rtl"?Rr(i,n.index+1):Rr(i,n.index-1))??null;return a?a.key??null:this.focusMode==="row"?n.parentKey??null:(this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))??null}return null}getFirstKey(t,n){let r=t??null,i;if(r!=null){if(i=this.collection.getItem(r),!i)return null;if(this.isCell(i)&&!n&&i.parentKey!=null){let a=this.collection.getItem(i.parentKey);return a?Lt(Ne(a,this.collection))?.key??null:null}}if(r=this.findNextKey(void 0,a=>a.type==="item"),r!=null&&(i&&this.isCell(i)&&n||this.focusMode==="cell")){let a=this.collection.getItem(r);if(!a)return null;r=Lt(Ne(a,this.collection))?.key??null}return r}getLastKey(t,n){let r=t??null,i;if(r!=null){if(i=this.collection.getItem(r),!i)return null;if(this.isCell(i)&&!n&&i.parentKey!=null){let a=this.collection.getItem(i.parentKey);if(!a)return null;let l=Ne(a,this.collection);return er(l)?.key??null}}if(r=this.findPreviousKey(void 0,a=>a.type==="item"),r!=null&&(i&&this.isCell(i)&&n||this.focusMode==="cell")){let a=this.collection.getItem(r);if(!a)return null;let l=Ne(a,this.collection);r=er(l)?.key??null}return r}getKeyPageAbove(t){let n=t,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&n!=null&&(n=this.getKeyAbove(n)??null,n!=null);)r=this.layoutDelegate.getItemRect(n);return n}getKeyPageBelow(t){let n=t,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let i=this.layoutDelegate.getVisibleRect().height,a=Math.min(this.layoutDelegate.getContentSize().height,r.y+i);for(;r&&r.y+r.height<a;){let l=this.getKeyBelow(n);if(l==null)break;r=this.layoutDelegate.getItemRect(l),n=l}return n}getKeyForSearch(t,n){let r=n??null;if(!this.collator)return null;let i=this.collection;if(r=n??this.getFirstKey(),r==null)return null;let a=i.getItem(r);if(!a)return null;a.type==="cell"&&(r=a.parentKey??null);let l=!1;for(;r!=null;){let o=i.getItem(r);if(!o)return null;if(o.textValue){let s=o.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return this.isRow(o)&&this.focusMode==="cell"?Lt(Ne(o,this.collection))?.key??null:o.key}r=this.findNextKey(r,s=>s.type==="item"),r==null&&!l&&(r=this.getFirstKey(),l=!0)}return null}}class c7{constructor(t){this.layout=t}getContentSize(){return this.layout.getContentSize()}getItemRect(t){return this.layout.getLayoutInfo(t)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}}const mu=new WeakMap;function f7(e,t,n){let{isVirtualized:r,disallowTypeAhead:i,keyboardDelegate:a,focusMode:l,scrollRef:o,getRowText:s,onRowAction:d,onCellAction:c,escapeKeyBehavior:f="clearSelection",shouldSelectOnPressUp:m,keyboardNavigationBehavior:h="arrow"}=e,{selectionManager:p}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let g=Qn({usage:"search",sensitivity:"base"}),{direction:y}=be(),$=t.selectionManager.disabledBehavior,x=u.useMemo(()=>a||new Sg({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:$,ref:n,direction:y,collator:g,focusMode:l}),[a,t.collection,t.disabledKeys,$,n,y,g,l]),{collectionProps:v}=va({ref:n,selectionManager:p,keyboardDelegate:x,isVirtualized:r,scrollRef:o,disallowTypeAhead:i,escapeKeyBehavior:f}),C=Ee(e.id);mu.set(t,{keyboardDelegate:x,actions:{onRowAction:d,onCellAction:c},shouldSelectOnPressUp:m,keyboardNavigationBehavior:h});let w=k8({selectionManager:p,hasItemActions:!!(d||c)}),S=ie(e,{labelable:!0}),B=u.useCallback(F=>{if(p.isFocused){ae(F.currentTarget,G(F))||p.setFocused(!1);return}ae(F.currentTarget,G(F))&&p.setFocused(!0)},[p]),E=u.useMemo(()=>({onBlur:v.onBlur,onFocus:B}),[B,v.onBlur]),k=S8(n,{isDisabled:t.collection.size!==0}),M=X(S,{role:"grid",id:C,"aria-multiselectable":p.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?E:v,t.collection.size===0&&{tabIndex:k?-1:0}||void 0,w);return r&&(M["aria-rowcount"]=t.collection.size,M["aria-colcount"]=t.collection.columnCount),w8({getRowText:s},t),{gridProps:M}}const hu=new WeakMap;function pu(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Pg(e,t){let n=hu.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${pu(t)}`}function kg(e,t,n){let r=hu.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${pu(t)}-${pu(n)}`}function bu(e,t){return[...e.collection.rowHeaderColumnKeys].map(n=>kg(e,t,n)).join(" ")}var Bg={};Bg={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,collapse:"طي",columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,expand:"تمديد",resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var Ng={};Ng={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,collapse:"Свиване",columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,expand:"Разширяване",resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var Ag={};Ag={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,collapse:"Sbalit",columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,expand:"Roztáhnout",resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var Fg={};Fg={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,collapse:"Skjul",columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,expand:"Udvid",resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var Tg={};Tg={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,collapse:"Reduzieren",columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,expand:"Erweitern",resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var Ig={};Ig={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,collapse:"Σύμπτυξη",columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,expand:"Ανάπτυξη",resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var Mg={};Mg={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"};var Kg={};Kg={ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,collapse:"Contraer",columnSize:e=>`${e.value} píxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,expand:"Ampliar",resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var Lg={};Lg={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,collapse:"Ahenda",columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,expand:"Laienda",resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var Og={};Og={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,collapse:"Pienennä",columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,expand:"Laajenna",resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var zg={};zg={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,collapse:"Réduire",columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,expand:"Développer",resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var Vg={};Vg={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,collapse:"כווץ",columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,expand:"הרחב",resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var _g={};_g={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,collapse:"Sažmi",columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var Rg={};Rg={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,collapse:"Összecsukás",columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,expand:"Kibontás",resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var jg={};jg={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,collapse:"Comprimi",columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,expand:"Espandi",resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var Hg={};Hg={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,collapse:"折りたたむ",columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,expand:"展開",resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var Ug={};Ug={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,collapse:"접기",columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,expand:"펼치기",resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var Wg={};Wg={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,collapse:"Sutraukti",columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,expand:"Išskleisti",resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var Gg={};Gg={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,collapse:"Sakļaut",columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,expand:"Izvērst",resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var Zg={};Zg={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,collapse:"Skjul",columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,expand:"Utvid",resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var Yg={};Yg={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,collapse:"Samenvouwen",columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,expand:"Uitvouwen",resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var qg={};qg={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,collapse:"Zwiń",columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,expand:"Rozwiń",resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var Xg={};Xg={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,collapse:"Recolher",columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,expand:"Expandir",resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var Jg={};Jg={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,collapse:"Colapsar",columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,expand:"Expandir",resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var Qg={};Qg={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,collapse:"Restrângeți",columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,expand:"Extindeți",resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var e2={};e2={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,collapse:"Свернуть",columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,expand:"Развернуть",resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var t2={};t2={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,collapse:"Zbaliť",columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,expand:"Rozbaliť",resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var n2={};n2={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,collapse:"Strni",columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,expand:"Razširi",resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var r2={};r2={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,collapse:"Skupi",columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var i2={};i2={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,collapse:"Dölj",columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,expand:"Expandera",resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var a2={};a2={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,collapse:"Daralt",columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,expand:"Genişlet",resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var l2={};l2={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,collapse:"Згорнути",columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,expand:"Розгорнути",resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var o2={};o2={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,collapse:"折叠",columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,expand:"扩展",resizerDescription:"按 Enter 开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var u2={};u2={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,collapse:"收合",columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,expand:"展開",resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var rr={};rr={"ar-AE":Bg,"bg-BG":Ng,"cs-CZ":Ag,"da-DK":Fg,"de-DE":Tg,"el-GR":Ig,"en-US":Mg,"es-ES":Kg,"et-EE":Lg,"fi-FI":Og,"fr-FR":zg,"he-IL":Vg,"hr-HR":_g,"hu-HU":Rg,"it-IT":jg,"ja-JP":Hg,"ko-KR":Ug,"lt-LT":Wg,"lv-LV":Gg,"nb-NO":Zg,"nl-NL":Yg,"pl-PL":qg,"pt-BR":Xg,"pt-PT":Jg,"ro-RO":Qg,"ru-RU":e2,"sk-SK":t2,"sl-SI":n2,"sr-SP":r2,"sv-SE":i2,"tr-TR":a2,"uk-UA":l2,"zh-CN":o2,"zh-TW":u2};class m7 extends Sg{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t,n){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let i=Lt(Ne(r,this.collection));if(i)return i.key;let a=this.getFirstKey();return a==null||!this.collection.getItem(a)?null:super.getKeyForItemInRowByIndex(a,r.index)}return super.getKeyBelow(t,n)}getKeyAbove(t,n){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let l=r.parentKey!=null?this.collection.getItem(r.parentKey):null;return l&&l.type==="column"?l.key:null}let i=super.getKeyAbove(t,n),a=i!=null?this.collection.getItem(i):null;return a&&a.type!=="headerrow"?i:this.isCell(r)?this.collection.columns[r.index].key:this.collection.columns[0].key}findNextColumnKey(t){let n=this.findNextKey(t.key,i=>i.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level];for(let i of Ne(r,this.collection))if(i.type==="column")return i.key;return null}findPreviousColumnKey(t){let n=this.findPreviousKey(t.key,a=>a.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level],i=[...Ne(r,this.collection)];for(let a=i.length-1;a>=0;a--){let l=i[a];if(l.type==="column")return l.key}return null}getKeyRightOf(t){let n=this.collection.getItem(t);return n?n.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(n):this.findNextColumnKey(n):super.getKeyRightOf(t):null}getKeyLeftOf(t){let n=this.collection.getItem(t);return n?n.type==="column"?this.direction==="rtl"?this.findNextColumnKey(n):this.findPreviousColumnKey(n):super.getKeyLeftOf(t):null}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n??this.getFirstKey();if(i==null)return null;let a=r.getItem(i);a?.type==="cell"&&(i=a.parentKey??null);let l=!1;for(;i!=null;){let o=r.getItem(i);if(!o)return null;if(o.textValue){let s=o.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return o.key}for(let s of Ne(o,this.collection)){let d=r.columns[s.index];if(r.rowHeaderColumnKeys.has(d.key)&&s.textValue){let c=s.textValue.slice(0,t.length);if(this.collator.compare(c,t)===0)return(n!=null?r.getItem(n):a)?.type==="cell"?s.key:o.key}}i=this.getKeyBelow(i),i==null&&!l&&(i=this.getFirstKey(),l=!0)}return null}}function h7(e){return e&&e.__esModule?e.default:e}function p7(e,t,n){let{keyboardDelegate:r,isVirtualized:i,layoutDelegate:a,layout:l}=e,o=Qn({usage:"search",sensitivity:"base"}),{direction:s}=be(),d=t.selectionManager.disabledBehavior,c=u.useMemo(()=>r||new m7({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:d,ref:n,direction:s,collator:o,layoutDelegate:a,layout:l}),[r,t.collection,t.disabledKeys,d,n,s,o,a,l]),f=Ee(e.id);hu.set(t,f);let{gridProps:m}=f7({...e,id:f,keyboardDelegate:c},t,n);i&&(m["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),t.treeColumn!=null&&(m.role="treegrid");let{column:h,direction:p}=t.sortDescriptor||{},g=ke(h7(rr),"@react-aria/table"),y=u.useMemo(()=>{let x=t.collection.columns.find(v=>v.key===h)?.textValue??"";return p&&h?g.format(`${p}Sort`,{columnName:x}):void 0},[p,h,t.collection.columns]),$=xn(y);return Tr(()=>{y&&$t(y,"assertive",500)},[y]),{gridProps:X(m,$,{"aria-describedby":[$["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")})}}function s2(e,t,n){let{node:r,isVirtualized:i,focusMode:a,allowsArrowNavigation:l,shouldSelectOnPressUp:o,onAction:s}=e,{direction:d}=be(),{keyboardDelegate:c,actions:{onCellAction:f},keyboardNavigationBehavior:m}=mu.get(t),h=a??(m==="tab"?"cell":"child"),p=u.useRef(null),g=()=>{if(n.current){let S=Ae(n.current);if(h==="child"){if(Ht(n.current)&&n.current!==ce(se(n.current)))return;let B=t.selectionManager.childFocusStrategy==="last"?gu(S):S.firstChild();if(B){Ie(B);return}}(p.current!=null&&r.key!==p.current||!Ht(n.current))&&Ie(n.current)}},{itemProps:y,isPressed:$}=_r({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,focus:g,shouldSelectOnPressUp:o,onAction:f?()=>f(r.key):s,isDisabled:t.collection.size===0}),x=S=>{let B=ce(se(n.current));if(!ae(S.currentTarget,G(S))||t.isKeyboardNavigationDisabled||!n.current||!B)return;let E=Ae(n.current);switch(E.currentNode=B,S.key){case"ArrowLeft":{let k=d==="rtl"?E.nextNode():E.previousNode();if(h==="child"&&k===n.current&&(k=null),S.preventDefault(),S.stopPropagation(),k)Ie(k),Ct(k,{containingElement:ot(n.current)});else{if(c.getKeyLeftOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent));break}h==="cell"&&d==="rtl"?(Ie(n.current),Ct(n.current,{containingElement:ot(n.current)})):(E.currentNode=n.current,k=d==="rtl"?E.firstChild():gu(E),k&&(Ie(k),Ct(k,{containingElement:ot(n.current)})))}break}case"ArrowRight":{let k=d==="rtl"?E.previousNode():E.nextNode();if(h==="child"&&k===n.current&&(k=null),S.preventDefault(),S.stopPropagation(),k)Ie(k),Ct(k,{containingElement:ot(n.current)});else{if(c.getKeyRightOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent));break}h==="cell"&&d==="ltr"?(Ie(n.current),Ct(n.current,{containingElement:ot(n.current)})):(E.currentNode=n.current,k=d==="rtl"?gu(E):E.firstChild(),k&&(Ie(k),Ct(k,{containingElement:ot(n.current)})))}break}case"ArrowUp":case"ArrowDown":!S.altKey&&ae(n.current,G(S))&&(S.stopPropagation(),S.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent)));break}},v=S=>{let B=ce(se(n.current));if(!(!ae(S.currentTarget,G(S))||t.isKeyboardNavigationDisabled||!n.current||!B)){if(m==="tab"&&G(S)!==n.current&&S.key!=="Tab"){S.stopPropagation();return}switch(S.key){case"Tab":if(m==="tab"){let E=Ae(n.current,{tabbable:!0});E.currentNode=B,(S.shiftKey?E.previousNode():E.nextNode())&&S.stopPropagation()}}}},C=S=>{if(p.current=r.key,G(S)!==n.current){Ut()||t.selectionManager.setFocusedKey(r.key);return}h==="child"&&S.relatedTarget&&ae(n.current,S.relatedTarget)||requestAnimationFrame(()=>{h==="child"&&ce(se(n.current))===n.current&&g()})},w=X(y,{role:"gridcell",onKeyDownCapture:m!=="tab"||l?x:void 0,onKeyDown:m==="tab"?v:void 0,"aria-colspan":r.colSpan,"aria-colindex":r.colIndex!=null?r.colIndex+1:void 0,colSpan:i?void 0:r.colSpan,onFocus:C,...h==="child"&&m==="tab"?{tabIndex:-1}:{}});return i&&(w["aria-colindex"]=(r.colIndex??r.index)+1),o&&w.tabIndex!=null&&w.onPointerDown==null&&(w.onPointerDown=S=>{let B=S.currentTarget,E=B.getAttribute("tabindex");B.removeAttribute("tabindex"),requestAnimationFrame(()=>{E!=null&&B.setAttribute("tabindex",E)})}),{gridCellProps:w,isPressed:$}}function gu(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function b7(e){return e&&e.__esModule?e.default:e}function g7(e,t,n){let{node:r}=e,i=r.props.allowsSorting,{gridCellProps:a}=s2({focusMode:"child",...e},t,n),l=r.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:o,isPressed:s}=Tt({isDisabled:!i||l,onPress(){t.sort(r.key)},ref:n}),{focusableProps:d}=zn({},n),c,f=t.sortDescriptor?.column===r.key,m=t.sortDescriptor?.direction;r.props.allowsSorting&&!Mn()&&(c=f?m:"none");let h=ke(b7(rr),"@react-aria/table"),p;i&&(p=`${h.format("sortable")}`,f&&m&&Mn()&&(p=`${p}, ${h.format(m)}`));let g=xn(p),y=t.collection.size===0;return u.useEffect(()=>{y&&t.selectionManager.focusedKey===r.key&&t.selectionManager.setFocusedKey(null)},[y,t.selectionManager,r.key]),{columnHeaderProps:{...X(d,a,o,g,y?{tabIndex:-1}:null),role:"columnheader",id:Pg(t,r.key),"aria-colspan":r.colSpan&&r.colSpan>1?r.colSpan:void 0,"aria-sort":c},isPressed:s}}function y7(e,t,n){let{node:r,isVirtualized:i,shouldSelectOnPressUp:a,onAction:l}=e,{actions:o,shouldSelectOnPressUp:s}=mu.get(t),d=o.onRowAction?()=>o.onRowAction?.(r.key):l,{itemProps:c,...f}=_r({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:s||a,onAction:d||r?.props?.onAction?at(r?.props?.onAction,d):void 0,isDisabled:t.collection.size===0}),m=t.selectionManager.isSelected(r.key),h={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?m:void 0,"aria-disabled":f.isDisabled||void 0,...c};return i&&(h["aria-rowindex"]=r.index+1),{rowProps:h,...f}}function $7(e){return e&&e.__esModule?e.default:e}const d2={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function v7(e,t,n){let{node:r,isVirtualized:i}=e,{rowProps:a,...l}=y7(e,t,n),{direction:o}=be();i&&t.treeColumn==null?a["aria-rowindex"]=r.index+1+t.collection.headerRows.length:delete a["aria-rowindex"];let s=t.treeColumn!=null&&(t.expandedKeys==="all"||t.expandedKeys.has(r.key)),d=ke($7(rr),"@react-aria/table"),c=Ft({"aria-label":s?d.format("collapse"):d.format("expand"),"aria-labelledby":bu(t,r.key)}),f={},m={};if(t.treeColumn!=null){let g=t.collection.getItem(r.key);if(g!=null){let y=c2(t.collection,r),$=g.props?.hasChildRows||g.props?.UNSTABLE_childItems||y?.type!=="cell",x=t.collection.getItem(r.parentKey),v=x.type==="tablebody"||x.type==="body",C=c2(t.collection,x);for(;C&&C.type!=="item"&&C.prevKey!=null;)C=t.collection.getItem(C.prevKey);f={onKeyDown:w=>{w.key===d2.expand[o]&&t.selectionManager.focusedKey===g.key&&$&&t.expandedKeys!=="all"&&!t.expandedKeys.has(g.key)?(t.toggleKey(g.key),w.stopPropagation()):w.key===d2.collapse[o]&&t.selectionManager.focusedKey===g.key&&(t.expandedKeys!=="all"?$&&t.expandedKeys.has(g.key)?(t.toggleKey(g.key),w.stopPropagation()):!t.expandedKeys.has(g.key)&&g.parentKey!=null&&g.level>0&&(t.selectionManager.setFocusedKey(g.parentKey),w.stopPropagation()):t.expandedKeys==="all"&&(t.toggleKey(g.key),w.stopPropagation()))},"aria-expanded":$?t.expandedKeys==="all"||t.expandedKeys.has(r.key):void 0,"aria-level":g.level+1,"aria-posinset":g.index-(v?0:t.collection.columnCount)+1,"aria-setsize":C.index-(v?0:t.collection.columnCount)+1},m={isDisabled:l.isDisabled,onPress:()=>{l.isDisabled||(t.toggleKey(r.key),t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...c}}}let h=b5(r.props),p=l.hasAction?h:{};return{rowProps:{...X(a,f,p),"aria-labelledby":bu(t,r.key)},expandButtonProps:m,...l}}function c2(e,t){return"lastChildKey"in t?t.lastChildKey!=null?e.getItem(t.lastChildKey):null:Array.from(t.childNodes).findLast(n=>n.parentKey===t.key)}function x7(e,t,n){let{node:r,isVirtualized:i}=e,a={role:"row"};return i&&t.treeColumn==null&&(a["aria-rowindex"]=r.index+1),{rowProps:a}}function C7(e,t,n){let{gridCellProps:r,isPressed:i}=s2(e,t,n),a=e.node.column?.key;return a!=null&&t.collection.rowHeaderColumnKeys.has(a)&&(r.role="rowheader",r.id=kg(t,e.node.parentKey,a)),{gridCellProps:r,isPressed:i}}function D7(e){return e&&e.__esModule?e.default:e}function E7(e,t){let{key:n}=e;const{checkboxProps:r}=N8(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${bu(t,n)}`}}}function w7(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":ke(D7(rr),"@react-aria/table").format(r==="single"?"select":"selectAll"),isSelected:n,isDisabled:r!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function S7(e){return e&&e.__esModule?e.default:e}function P7(e,t,n){let{column:r,triggerRef:i,isDisabled:a,onResizeStart:l,onResize:o,onResizeEnd:s,"aria-label":d}=e;const c=ke(S7(rr),"@react-aria/table");let f=Ee(),m=t.resizingColumn===r.key,h=u.useRef(m),p=u.useRef(null),g=u.useRef(!1),y=t.tableState.isKeyboardNavigationDisabled,[$,x]=u.useState(!1),{direction:v}=be(),C=u.useCallback(V=>{h.current||(p.current=t.updateResizedColumns(V.key,t.getColumnWidth(V.key)),t.startResize(V.key),t.tableState.setKeyboardNavigationDisabled(!0),l?.(p.current)),h.current=!0},[t,l]),w=u.useCallback((V,L)=>{let J=t.updateResizedColumns(V.key,L);o?.(J),p.current=J},[t,o]),S=u.useCallback(V=>{h.current&&(p.current==null&&(p.current=t.updateResizedColumns(V.key,t.getColumnWidth(V.key))),t.endResize(),t.tableState.setKeyboardNavigationDisabled(!1),s?.(p.current),h.current=!1,i?.current&&!g.current&&Ie(i.current)),p.current=null},[t,i,s]),B=()=>{if(y){S(r);return}return!1},{keyboardProps:E}=Le({shortcuts:{Escape:()=>B(),Enter:()=>{y?S(r):C(r)}," ":()=>B(),Tab:()=>B()}});const k=u.useRef(0),{moveProps:M}=hx({onMoveStart(V){k.current=t.getColumnWidth(r.key),V.pointerType==="mouse"&&x(!0),C(r)},onMove(V){let{deltaX:L,deltaY:J,pointerType:le}=V;v==="rtl"&&(L*=-1),le==="keyboard"&&(J!==0&&L===0&&(L=J*-1),L*=10),L!==0&&(k.current+=L,w(r,k.current))},onMoveEnd(V){let{pointerType:L}=V;k.current=0,x(!1),(L==="mouse"||L==="touch"&&g.current)&&S(r)}});let F=u.useCallback(V=>{y&&M.onKeyDown?.(V)},[y,M]),I=Math.floor(t.getColumnMinWidth(r.key)),j=Math.floor(t.getColumnMaxWidth(r.key));j===1/0&&(j=Number.MAX_SAFE_INTEGER);let D=Math.floor(t.getColumnWidth(r.key)),T=Ys();T==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(T="touch");let Y=i?.current==null&&(T==="keyboard"||T==="virtual")&&!m?c.format("resizerDescription"):void 0,K=xn(Y),q={"aria-label":d,"aria-orientation":"horizontal","aria-labelledby":`${f} ${Pg(t.tableState,r.key)}`,"aria-valuetext":c.format("columnSize",{value:D}),type:"range",min:I,max:j,value:D,...K};const P=u.useCallback(()=>{n.current&&Ie(n.current)},[n]);let N=t.resizingColumn,R=u.useRef(null),Q=De(C);u.useEffect(()=>{if(R.current!==N&&N!=null&&N===r.key){g.current=ce()===n.current,Q(r);let V=setTimeout(()=>P(),0),L=setTimeout(P,400);return()=>{clearTimeout(V),clearTimeout(L)}}R.current=N},[N,r,P,n]);let O=V=>{let L=t.getColumnWidth(r.key),J=parseFloat(G(V).value);J>L?J=L+10:J=L-10,w(r,J)},{pressProps:z}=Tt({preventFocusOnPress:!0,onPressStart:V=>{if(!(V.ctrlKey||V.altKey||V.metaKey||V.shiftKey||V.pointerType==="keyboard")){if(V.pointerType==="virtual"&&t.resizingColumn!=null){S(r);return}P(),V.pointerType!=="virtual"&&C(r)}},onPress:V=>{(V.pointerType==="touch"&&g.current||V.pointerType==="mouse")&&t.resizingColumn!=null&&S(r)}}),{visuallyHiddenProps:A}=Dn();return{resizerProps:X(E,{...M,onKeyDown:F},z,{style:{touchAction:"none"}}),inputProps:X(A,{id:f,onBlur:()=>{S(r)},onChange:O,disabled:a},q),isResizing:m,isMouseResizing:$}}function k7(){return{rowGroupProps:{role:"rowgroup"}}}function yu(){return k7()}function B7(e){return e&&e.__esModule?e.default:e}class N7 extends ad{withExpandedKeys(t){let n=this.clone();return n.expandedKeys=t,n.frozen=this.frozen,n.rows=Array.from(n.getRows()),n}addNode(t){super.addNode(t),this.columnsDirty||=t.type==="column",t.type==="tableheader"&&(this.head=t)}getRows(){let t=[];for(let n of this)(n.type==="tablebody"||n.type==="tablefooter")&&t.push(...this.getChildren(n.key));return t}get body(){for(let t of this)if(t.type==="tablebody")return t;return new Ia(-2)}commit(t,n,r=!1){this.updateColumns(r),this.firstKey=t,this.lastKey=n,this.rows=[];for(let i of this.getRows()){let a=i.lastChildKey;if(a!=null){let l=this.getItem(a);for(;l&&l.type!=="cell";)l=l.prevKey!=null?this.getItem(l.prevKey):null;if(l){let o=(l.colIndex??l.index)+(l.colSpan??1);if(o!==this.columns.length&&!r)throw new Error(`Cell count must match column count. Found ${o} cells and ${this.columns.length} columns.`)}}this.rows.push(i)}super.commit(t,n,r)}updateColumns(t){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let n=new Map,r=i=>{i.type==="column"&&(n.set(i.key,i),i.hasChildNodes||(i.index=this.columns.length,this.columns.push(i),i.props.isRowHeader&&this.rowHeaderColumnKeys.add(i.key)));for(let a of this.getChildren(i.key))r(a)};for(let i of this.getChildren(this.head.key))r(i);if(this.headerRows=Dg(n,this.columns),this.columnsDirty=!1,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!t)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let t=this.firstKey;for(;t!=null;){let n=this.getItem(t);n&&(yield n),t=n?.nextKey??null}}getFirstKey(){for(let t of this)if(t.type==="tablebody")return t.firstChildKey??null;return null}getLastKey(){let t=this.lastKey;if(t==null)return null;let n=this.getItem(t);for(;n?.lastChildKey!=null&&(n.type!=="item"||this.expandedKeys.has(n.key));)n=this.getItem(n.lastChildKey);return n?.key}getKeyAfter(t){let n=this.getItem(t);if(n?.type==="column")return n.nextKey??null;if(!n)return null;if(n.type==="item"&&n.firstChildKey!=null&&this.expandedKeys.has(n.key)){let r=this.getItem(n.firstChildKey);for(;r;){if(r.type==="item")return r.key;r=r.nextKey!=null?this.getItem(r.nextKey):null}}return super.getKeyAfter(t)}getKeyBefore(t){let n=this.getItem(t);if(n?.type==="column")return n.prevKey??null;if(!n)return null;let r=null;if(n.prevKey!=null){for(n=this.getItem(n.prevKey);n&&(n.type!=="item"||this.expandedKeys.has(n.key))&&n.lastChildKey!=null;)n=this.getItem(n.lastChildKey);r=n?.key??null}return r==null&&(r=n.parentKey),r!=null&&this.getItem(r)?.type==="tableheader"?null:r}getChildren(t){let n=this.getItem(t);if(!n){for(let i of this.headerRows)if(i.key===t)return i.childNodes}let r=this;return n?.type==="tablebody"||n?.type==="tablefooter"?{*[Symbol.iterator](){let i=n.firstChildKey,a=i!=null?r.getItem(i):null;for(;a;){yield a;let l=r.getKeyAfter(a.key);if(a=l!=null?r.getItem(l):null,a&&a.parentKey===n.parentKey)break}}}:{*[Symbol.iterator](){let i=r.getItem(t),a=i?.firstChildKey!=null?r.getItem(i.firstChildKey):null;for(;a&&(yield a,a=a.nextKey!=null?r.getItem(a.nextKey):null,!(i?.type==="item"&&a?.type!=="cell")););}}}clone(){let t=super.clone();return t.headerRows=this.headerRows,t.columns=this.columns,t.rows=this.rows,t.rowHeaderColumnKeys=this.rowHeaderColumnKeys,t.head=this.head,t}getTextValue(t){let n=this.getItem(t);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys,i=[];for(let a of this.getChildren(t)){let l=this.columns[a.index];if(r.has(l.key)&&a.textValue&&i.push(a.textValue),i.length===r.size)break}return i.join(" ")}constructor(...t){super(...t),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new Ta(-1),this.columnsDirty=!0,this.expandedKeys=new Set}}const $u=u.createContext(null),A7=u.forwardRef(function(t,n){let r=Te(n),i=u.useRef(null),a=u.useRef(null),[l,o]=u.useState(0);fe(()=>{let d=i.current;for(;d&&d!==r.current&&!en(d);)d=d.parentElement;a.current=d},[r]),Gr({ref:a,box:"border-box",onResize(){o(a.current?.clientWidth??0)}}),fe(()=>{o(a.current?.clientWidth??0)},[]);let s=u.useMemo(()=>({tableRef:i,scrollRef:a,tableWidth:l,useTableColumnResizeState:l7,onResizeStart:t.onResizeStart,onResize:t.onResize,onResizeEnd:t.onResizeEnd}),[i,l,t.onResizeStart,t.onResize,t.onResizeEnd]);return u.createElement(re.div,{render:t.render,...ie(t,{global:!0}),ref:r,className:t.className||"react-aria-ResizableTableContainer",style:t.style,onScroll:t.onScroll},u.createElement($u.Provider,{value:s},t.children))}),F7=u.createContext(null),dt=u.createContext(null),vu=u.createContext(null),T7=u.forwardRef(function(t,n){[t,n]=pe(t,n,F7);let r=jr(t),{selectionBehavior:i,selectionMode:a,disallowEmptySelection:l}=r,o=!!t.dragAndDropHooks?.useDraggableCollectionState,s=u.useMemo(()=>({selectionBehavior:a==="none"?null:i,selectionMode:a,disallowEmptySelection:l,allowsDragging:o}),[i,a,l,o]),d=u.createElement(K7.Provider,{value:s},u.createElement(mn,t));return u.createElement(fn,{content:d,createCollection:()=>new N7},c=>u.createElement(M7,{props:t,forwardedRef:n,selectionState:r,collection:c}))});let I7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.table,{...t,ref:n})});const f2={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function M7({props:e,forwardedRef:t,selectionState:n,collection:r}){[e,t]=pe(e,t,$r);let{shouldUseVirtualFocus:i,disallowTypeAhead:a,filter:l,...o}=e,s=u.useContext($u);t=Te(u.useMemo(()=>fr(t,s?.tableRef),[t,s?.tableRef]));let[d,c]=He(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);r=u.useMemo(()=>r.withExpandedKeys(d),[r,d]);let f=s7({...o,collection:r,children:void 0,UNSAFE_selectionState:n,expandedKeys:d,onExpandedChange:c}),m=d7(f,l),{isVirtualized:h,layoutDelegate:p,dropTargetDelegate:g,CollectionRoot:y}=u.useContext(ge),{dragAndDropHooks:$}=e,{gridProps:x}=p7({...o,layoutDelegate:p,isVirtualized:h},m,t),v=m.selectionManager,C=!!$?.useDraggableCollectionState,w=!!$?.useDroppableCollectionState,S=u.useRef(C),B=u.useRef(w);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(S.current!==C&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),B.current!==w&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[C,w]);let E,k,M,F=!1,I=null,j=u.useRef(null),{direction:D}=be(),[T]=u.useState(()=>new J8);if(C&&$){E=$.useDraggableCollectionState({collection:m.collection,selectionManager:v,preview:$.renderDragPreview?j:void 0}),$.useDraggableCollection({},E,t);let z=$.DragPreview;I=$.renderDragPreview?u.createElement(z,{ref:j},$.renderDragPreview):null}if(w&&$){k=$.useDroppableCollectionState({collection:m.collection,selectionManager:v});let z=new Vr({collection:m.collection,disabledKeys:v.disabledKeys,disabledBehavior:v.disabledBehavior,ref:t,layoutDelegate:p}),A=$.dropTargetDelegate||g||new $.ListDropTargetDelegate(r.rows,t);T.setup(A,f,D),M=$.useDroppableCollection({keyboardDelegate:z,dropTargetDelegate:T,onDropActivate:V=>{if(V.target.type==="item"){let L=V.target.key,J=f.collection.getItem(L),le=d.has(L);J&&J.hasChildNodes&&(!le||$?.isVirtualDragging?.())&&f.toggleKey(L)}},onKeyDown:V=>{let L=k?.target;if(L&&L.type==="item"&&L.dropPosition==="on"){let J=f.collection.getItem(L.key);(V.key===f2.expand[D]&&J?.hasChildNodes&&!f.expandedKeys.has(L.key)||V.key===f2.collapse[D]&&J?.hasChildNodes&&f.expandedKeys.has(L.key))&&f.toggleKey(L.key)}}},k,t),F=k.isDropTarget({type:"root"})}let{focusProps:Y,isFocused:K,isFocusVisible:q}=Oe(),P=ue({...e,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:F,isFocused:K,isFocusVisible:q,state:m}}),N=!!(C&&!E?.isDisabled),R=P.style,Q=null;s&&(Q=s.useTableColumnResizeState({tableWidth:s.tableWidth},m),h||(R={...R,tableLayout:"fixed",width:"min-content"}));let O=ie(e,{global:!0});return u.createElement(Pe,{values:[[dt,m],[vu,Q],[ut,{dragAndDropHooks:$,dragState:E,dropState:k}],[So,{render:q7}],[$r,null],[vr,null]]},u.createElement(ya,null,u.createElement(I7,{...X(O,P,x,Y,M?.collectionProps),style:R,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":N||void 0,"data-drop-target":F||void 0,"data-focused":K||void 0,"data-focus-visible":q||void 0},u.createElement(ba,null,u.createElement(y,{collection:m.collection,scrollRef:s?.scrollRef??t,persistedKeys:Nm(v,$,k)})))),I)}const K7=u.createContext(null),Cs=class Cs extends et{};Cs.type="tableheader";let Ta=Cs,L7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.thead,{...t,ref:n})});const O7=Li(Ta,(e,t)=>{let n=u.useContext(dt).collection,r=yl({items:n.headerRows,children:u.useCallback(s=>{if(s.type==="headerrow")return u.createElement(V7,{item:s});throw new Error("Unsupported node type in TableHeader: "+s.type)},[])}),{rowGroupProps:i}=yu(),{hoverProps:a,isHovered:l}=ze({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),o=ue({...e,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:l}});return u.createElement(L7,{...X(ie(e,{global:!0}),i,a),...o,ref:t,"data-hovered":l||void 0},r)},e=>u.createElement(mn,{dependencies:e.dependencies,items:e.columns},e.children));let z7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement("div",{...t,ref:n}):u.createElement("tr",{...t,ref:n})});function V7({item:e}){let t=u.useRef(null),n=u.useContext(dt),{isVirtualized:r,CollectionBranch:i}=u.useContext(ge),{rowProps:a}=x7({node:e,isVirtualized:r},n,t),{checkboxProps:l}=w7(n);return u.createElement(z7,{...a,ref:t},u.createElement(Pe,{values:[[c0,{slots:{selection:l}}],[f0,{slots:{selection:l}}]]},u.createElement(i,{collection:n.collection,parent:e})))}const Ds=class Ds extends et{};Ds.type="column";let xu=Ds,_7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.th,{...t,ref:n})});const R7=yt(xu,(e,t,n)=>{let r=Te(t),i=u.useContext(dt),{isVirtualized:a}=u.useContext(ge),{columnHeaderProps:l,isPressed:o}=g7({node:n,isVirtualized:a,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:s,isFocusVisible:d,focusProps:c}=Oe(),f=u.useContext(vu),m=!1;if(f)m=f.resizingColumn===n.key;else if(process.env.NODE_ENV!=="production")for(let x in["width","defaultWidth","minWidth","maxWidth"])x in n.props&&console.warn(`The ${x} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);let{hoverProps:h,isHovered:p}=ze({isDisabled:!e.allowsSorting}),g=ue({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Column",values:{isHovered:p,isPressed:o,isFocused:s,isFocusVisible:d,allowsSorting:n.props.allowsSorting,sortDirection:i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0,isResizing:m,startResize:()=>{if(f)f.startResize(n.key),i.setKeyboardNavigationDisabled(!0);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:x=>{i.sort(n.key,x)}}}),y=g.style;f&&(y={...y,width:f.getColumnWidth(n.key)});let $=ie(e,{global:!0});return delete $.id,u.createElement(_7,{...X($,l,c,h),...g,style:y,ref:r,"data-hovered":p||void 0,"data-pressed":o||void 0,"data-focused":s||void 0,"data-focus-visible":d||void 0,"data-resizing":m||void 0,"data-allows-sorting":n.props.allowsSorting||void 0,"data-sort-direction":i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0},u.createElement(Pe,{values:[[m2,{column:n,triggerRef:r}],[ge,wl]]},g.children))}),m2=u.createContext(null),j7=u.forwardRef(function(t,n){let r=u.useContext(vu);if(!r)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let i=ke(B7(wo),"react-aria-components"),{onResizeStart:a,onResize:l,onResizeEnd:o}=u.useContext($u),{column:s,triggerRef:d}=u.useContext(m2),c=u.useRef(null),{resizerProps:f,inputProps:m,isResizing:h,isMouseResizing:p}=P7({column:s,"aria-label":t["aria-label"]||i.format("tableResizer"),onResizeStart:a,onResize:l,onResizeEnd:o,triggerRef:d},r,c),{focusProps:g,isFocused:y,isFocusVisible:$}=Oe(),{hoverProps:x,isHovered:v}=ze(t),C=r.getColumnMinWidth(s.key)>=r.getColumnWidth(s.key),w=r.getColumnMaxWidth(s.key)<=r.getColumnWidth(s.key),{direction:S}=be(),B="both";C?B=S==="rtl"?"right":"left":w?B=S==="rtl"?"left":"right":B="both";let E=Te(n),[k,M]=u.useState("");u.useEffect(()=>{if(!E.current)return;let j=window.getComputedStyle(E.current);M(j.cursor)},[E,B]);let F=ue({...t,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:y,isFocusVisible:$,isResizing:h,isHovered:v,resizableDirection:B}}),I=ie(t,{global:!0});return u.createElement(re.div,{ref:E,role:"presentation",...X(I,F,f,x),"data-hovered":v||void 0,"data-focused":y||void 0,"data-focus-visible":$||void 0,"data-resizing":h||void 0,"data-resizable-direction":B},F.children,u.createElement("input",{ref:c,...X(m,g)}),h&&p&&Rt.createPortal(u.createElement("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:k},"data-testid":"cursor-overlay"}),document.body))}),Es=class Es extends Ni{};Es.type="tablebody";let Ia=Es,H7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tbody,{...t,ref:n})});const U7=Li(Ia,(e,t,n)=>{let r=u.useContext(dt),{isVirtualized:i}=u.useContext(ge),a=r.collection,{CollectionBranch:l}=u.useContext(ge),{dragAndDropHooks:o,dropState:s}=u.useContext(ut),d=!!o?.useDroppableCollectionState&&!s?.isDisabled,c=d&&!!s&&(s.isDropTarget({type:"root"})??!1),f=a.size===0,m={isDropTarget:c,isEmpty:f},h=ue({...e,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:m}),p,g=a.columnCount;if(f&&e.renderEmptyState&&r){let x={},v={},C={};i?(v["aria-colspan"]=g,C={display:"contents"}):v.colSpan=g,p=u.createElement(ir,{role:"row",...x,style:C},u.createElement(ar,{role:"rowheader",...v,style:C},e.renderEmptyState(m)))}let{rowGroupProps:y}=yu(),$=ie(e,{global:!0});return u.createElement(H7,{...X($,h,y),ref:t,"data-empty":f||void 0},d&&u.createElement(tC,null),u.createElement(l,{collection:a,parent:n,renderDropIndicator:pa(o,s)}),p)}),ws=class ws extends Ni{};ws.type="tablefooter";let Cu=ws,W7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tfoot,{...t,ref:n})});const G7=Li(Cu,(e,t,n)=>{let i=u.useContext(dt).collection,{CollectionBranch:a}=u.useContext(ge),{dragAndDropHooks:l,dropState:o}=u.useContext(ut),{rowGroupProps:s}=yu(),d=ie(e,{global:!0}),c=ue({style:e.style,className:e.className,defaultClassName:"react-aria-TableFooter",values:{}});return u.createElement(W7,{...X(d,c,s),ref:t},u.createElement(a,{collection:i,parent:n,renderDropIndicator:pa(l,o)}))}),h2=u.createContext({isFocusVisibleWithinRow:!1}),Ss=class Ss extends et{filter(t,n,r){let i=t.getChildren(this.key);for(let a of i)if(r(a.textValue,a)){let l=this.clone();return n.addDescendants(l,t),l}return null}};Ss.type="item";let Du=Ss,ir=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tr,{...t,ref:n})});const Z7=Li(Du,(e,t,n)=>{let r=Te(t),i=u.useContext(dt),{dragAndDropHooks:a,dragState:l,dropState:o}=u.useContext(ut),{isVirtualized:s,CollectionBranch:d}=u.useContext(ge),c=l&&!(l.isDisabled||l.selectionManager.isDisabled(n.key)),{rowProps:f,expandButtonProps:m,...h}=v7({node:n,shouldSelectOnPressUp:!!l,isVirtualized:s},i,r),{isFocused:p,isFocusVisible:g,focusProps:y}=Oe(),{isFocusVisible:$,focusProps:x}=Oe({within:!0}),{hoverProps:v,isHovered:C}=ze({isDisabled:!h.allowsSelection&&!h.hasAction&&!c,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:w}=E7({key:n.key},i),S;l&&a&&(S=a.useDraggableItem({key:n.key,hasDragButton:!0},l));let B,E=u.useRef(null),{visuallyHiddenProps:k}=Dn();o&&a&&(B=a.useDropIndicator({target:{type:"item",key:n.key,dropPosition:"on"}},o,E));let M=u.useRef(null);u.useEffect(()=>{l&&!M.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.')},[]);let F=l&&l.isDragging(n.key),{children:I,...j}=e,D=e.hasChildItems||i.collection.getItem(n.lastChildKey)?.type!=="cell",T=D&&i.expandedKeys.has(n.key),Y=ue({...j,id:void 0,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":n.level+1},values:{...h,state:i,isHovered:C,isFocused:p,isFocusVisible:g,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,isDragging:F,isDropTarget:B?.isDropTarget,isFocusVisibleWithin:$,id:n.key,hasChildItems:D,isExpanded:T,level:n.level+1}}),K=ie(e,{global:!0});return delete K.id,delete K.onClick,u.createElement(u.Fragment,null,B&&!B.isHidden&&u.createElement(ir,{role:"row",style:{height:0}},u.createElement(ar,{role:"gridcell",colSpan:i.collection.columnCount,style:{padding:0}},u.createElement("div",{role:"button",...k,...B.dropIndicatorProps,ref:E}))),u.createElement(ir,{...X(K,Y,f,y,v,S?.dragProps,x),ref:r,"data-disabled":h.isDisabled||void 0,"data-selected":h.isSelected||void 0,"data-hovered":C||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":g||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":F||void 0,"data-drop-target":B?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,"data-focus-visible-within":$||void 0,"data-expanded":T||void 0,"data-has-child-items":D||void 0,"data-level":n.level+1},u.createElement(Pe,{values:[[c0,{slots:{[Bt]:{},selection:w}}],[f0,{slots:{[Bt]:{},selection:w}}],[vt,{slots:{[Bt]:{},chevron:m,drag:{...S?.dragButtonProps,ref:M,style:{pointerEvents:"none"}}}}],[Or,{isSelected:h.isSelected}],[h2,{isFocusVisibleWithinRow:$}]]},u.createElement(d,{collection:i.collection,parent:n}))))},e=>{if(e.id==null&&typeof e.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let t=[e.value].concat(e.dependencies);return u.createElement(mn,{dependencies:t,items:e.columns,idScope:e.id},e.children)}),Ps=class Ps extends et{};Ps.type="cell";let Eu=Ps,ar=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.td,{...t,ref:n})});const Y7=yt(Eu,(e,t,n)=>{let r=Te(t),i=u.useContext(dt),{dragState:a}=u.useContext(ut),{isVirtualized:l}=u.useContext(ge);n.column=i.collection.columns[n.index];let{gridCellProps:o,isPressed:s}=C7({node:n,shouldSelectOnPressUp:!!a,isVirtualized:l,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:d,isFocusVisible:c,focusProps:f}=Oe(),{hoverProps:m,isHovered:h}=ze({}),{isFocusVisibleWithinRow:p}=u.useContext(h2),g=n.parentKey!=null?i.selectionManager.isSelected(n.parentKey):!1,y=n.colIndex||n.index,$=i.collection.getItem(n.parentKey),x=$.props.hasChildItems||i.collection.getItem($.lastChildKey)?.type!=="cell",v=x&&i.expandedKeys.has(n.parentKey),C=i.selectionManager.isDisabled(n.parentKey),w=ue({...e,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:d,isFocusVisible:c,isFocusVisibleWithinRow:p,isPressed:s,isHovered:h,isSelected:g,id:n.key,columnIndex:y,hasChildItems:x,isExpanded:v,isDisabled:C,level:$.level+1,isTreeColumn:n.column.key===i.treeColumn}}),S=ie(e,{global:!0});return delete S.id,u.createElement(ar,{...X(S,w,o,f,m),ref:r,"data-focused":d||void 0,"data-focus-visible":c||void 0,"data-focus-visible-within-row":p||void 0,"data-pressed":s||void 0,"data-selected":g||void 0,"data-column-index":y,"data-expanded":v||void 0,"data-has-child-items":x||void 0,"data-level":$.level+1,"data-tree-column":n.column.key===i.treeColumn||void 0,"data-disabled":C||void 0},u.createElement(ge.Provider,{value:wl},w.children))});function q7(e,t){t=Te(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ut),i=u.useRef(null),{dropIndicatorProps:a,isHidden:l,isDropTarget:o}=n.useDropIndicator(e,r,i);if(l)return null;let s=r&&e.target.type==="item"?(r.collection.getItem(e.target.key)?.level||0)+1:1;return u.createElement(eC,{...e,dropIndicatorProps:a,isDropTarget:o,buttonRef:i,level:s,ref:t})}let X7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tr,{...t,ref:n})}),J7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.td,{...t,ref:n})});function Q7(e,t){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,level:a,...l}=e,o=u.useContext(dt),{visuallyHiddenProps:s}=Dn(),d=ue({...l,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":a+1},values:{isDropTarget:r}});return u.createElement(X7,{...ie(e,{global:!0}),...d,role:"row",ref:t,"data-drop-target":r||void 0,"aria-level":a},u.createElement(J7,{role:"gridcell",colSpan:o.collection.columnCount,style:{padding:0}},u.createElement("div",{...s,role:"button",...n,ref:i}),d.children))}const eC=u.forwardRef(Q7);function tC(){let e=u.useContext(dt),{dragAndDropHooks:t,dropState:n}=u.useContext(ut),r=u.useRef(null),{dropIndicatorProps:i}=t.useDropIndicator({target:{type:"root"}},n,r),a=n.isDropTarget({type:"root"}),{visuallyHiddenProps:l}=Dn();return!a&&i["aria-hidden"]?null:u.createElement(ir,{role:"row","aria-hidden":i["aria-hidden"],style:{height:0}},u.createElement(ar,{role:"gridcell",colSpan:e.collection.columnCount,style:{padding:0}},u.createElement("div",{role:"button",...l,...i,ref:r})))}const nC=yt(Ai,function(t,n,r){let i=u.useContext(dt),{isVirtualized:a}=u.useContext(ge),{isLoading:l,onLoadMore:o,scrollOffset:s,...d}=t,c=i.collection.columns.length,f=u.useRef(null),m=u.useMemo(()=>({onLoadMore:o,collection:i?.collection,sentinelRef:f,scrollOffset:s}),[o,s,i?.collection]);e4(m,f);let h=ue({...d,id:void 0,children:r.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":r.level+1},values:void 0}),p={},g={},y={};return a?(g["aria-colspan"]=c,y={display:"contents"}):g.colSpan=c,u.createElement(u.Fragment,null,u.createElement(ir,{style:{height:0},inert:qm(!0)},u.createElement(ar,{style:{padding:0,border:0}},u.createElement("div",{"data-testid":"loadMoreSentinel",ref:f,style:{position:"relative",height:1,width:1}}))),l&&h.children&&u.createElement(ir,{...X(ie(t,{global:!0}),p),...h,role:"row",ref:n,"aria-level":r.level+1,"data-level":r.level+1},u.createElement(ar,{role:"rowheader",...g,style:y},h.children)))}),p2=new WeakMap;function b2(e,t,n){if(!e)return"";typeof t=="string"&&(t=t.replace(/\s+/g,""));let r=p2.get(e);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${t}`}function rC(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:l,selectedKey:o}=t,s=r===o,d=i||t.isDisabled||t.selectionManager.isDisabled(r),c=t.collection.getItem(r),{itemProps:f,isPressed:m}=_r({selectionManager:l,key:r,ref:n,isDisabled:d,shouldSelectOnPressUp:a??c?.props.href!=null,linkBehavior:"selection"}),h=b2(t,r,"tab"),p=b2(t,r,"tabpanel"),{tabIndex:g}=f,y=ie(c?.props,{labelable:!0});delete y.id;let $=wi(c?.props),{focusableProps:x}=zn({...c?.props,isDisabled:d},n);return{tabProps:X(y,x,$,f,{id:h,"aria-selected":s,"aria-disabled":d||void 0,"aria-controls":s?p:void 0,tabIndex:d?void 0:g,role:"tab"}),isSelected:s,isDisabled:d,isPressed:m}}class iC{constructor(t,n,r,i=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){return this.disabledKeys.has(t)||!!this.collection.getItem(t)?.props?.isDisabled}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){let n=t;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n)&&n!==t);return n}getPreviousKey(t){let n=t;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n)&&n!==t);return n}}function aC(e,t,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=e,{collection:a,selectionManager:l,disabledKeys:o}=t,{direction:s}=be(),d=u.useMemo(()=>new iC(a,s,r,o),[a,o,r,s]),{collectionProps:c}=va({ref:n,selectionManager:l,keyboardDelegate:d,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ee();p2.set(t,f);let m=Ft({...e,id:f});return{tabListProps:{...X(c,m),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function lC(e){let[t,n]=He(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=u.useMemo(()=>t!=null?[t]:[],[t]),{collection:i,disabledKeys:a,selectionManager:l}=xa({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:s=>{if(s==="all")return;let d=s.values().next().value??null;d===t&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),o=t!=null?i.getItem(t):null;return{collection:i,disabledKeys:a,selectionManager:l,selectedKey:t,setSelectedKey:n,selectedItem:o}}function oC(e){let t=lC({...e,onSelectionChange:e.onSelectionChange?l=>{l!=null&&e.onSelectionChange?.(l)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??g2(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=u.useRef(i);return u.useEffect(()=>{let l=i;e.selectedKey==null&&(n.isEmpty||l==null||!r.getItem(l))&&(l=g2(r,t.disabledKeys),l!=null&&n.setSelectedKeys([l])),(l!=null&&n.focusedKey==null||!n.isFocused&&l!==a.current)&&n.setFocusedKey(l),a.current=l}),{...t,isDisabled:e.isDisabled||!1}}function g2(e,t){let n=null;if(e){for(n=e.getFirstKey();n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}const wu=u.createContext(null),Ma=u.createContext(null),y2=u.forwardRef(function(t,n){[t,n]=pe(t,n,wu);let{children:r,orientation:i="horizontal"}=t;return r=u.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),u.createElement(fn,{content:r},a=>u.createElement(uC,{props:t,collection:a,tabsRef:n}))});function uC({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,i=oC({...e,collection:n,children:void 0}),{focusProps:a,isFocused:l,isFocusVisible:o}=Oe({within:!0}),s=u.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:o}),[r,l,o]),d=ue({...e,defaultClassName:"react-aria-Tabs",values:s}),c=ie(e,{global:!0});return u.createElement(re.div,{...X(c,d,a),ref:t,slot:e.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":o||void 0,"data-disabled":i.isDisabled||void 0},u.createElement(Pe,{values:[[wu,e],[Ma,i]]},d.children))}const $2=u.forwardRef(function(t,n){return u.useContext(Ma)?u.createElement(sC,{props:t,forwardedRef:n}):u.createElement(mn,t)});function sC({props:e,forwardedRef:t}){let n=u.useContext(Ma),{CollectionRoot:r}=u.useContext(ge),{orientation:i="horizontal",keyboardActivation:a="automatic"}=qe(wu),l=Te(t),{tabListProps:o}=aC({...e,orientation:i,keyboardActivation:a},n,l),s=ue({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),d=ie(e,{global:!0});return delete d.id,u.createElement(re.div,{...X(d,s,o),ref:l,"data-orientation":i||void 0},u.createElement(ba,null,u.createElement(r,{collection:n.collection,persistedKeys:Cd(n.selectionManager.focusedKey)})))}const ks=class ks extends et{};ks.type="item";let Su=ks;const v2=yt(Su,(e,t,n)=>{let r=u.useContext(Ma),i=Te(t),{tabProps:a,isSelected:l,isDisabled:o,isPressed:s}=rC({key:n.key,...e},r,i),{focusProps:d,isFocused:c,isFocusVisible:f}=Oe(),{hoverProps:m,isHovered:h}=ze({isDisabled:o,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),p=ue({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:o,isFocused:c,isFocusVisible:f,isPressed:s,isHovered:h}}),g=n.props.href?re.a:re.div,y=ie(e,{global:!0});return delete y.id,delete y.onClick,u.createElement(g,{...X(y,p,a,d,m),ref:i,"data-selected":l||void 0,"data-disabled":o||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":h||void 0},u.createElement(Or.Provider,{value:{isSelected:l}},p.children))}),dC=u.createContext({});let cC=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i};const fC=u.forwardRef(function(t,n){[t,n]=pe(t,n,dC);let{hoverProps:r,isHovered:i}=ze(t),{isFocused:a,isFocusVisible:l,focusProps:o}=Oe({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=ue({...t,values:{isHovered:i,isFocused:a,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-TextArea"});return u.createElement(re.textarea,{...X(cC(t),o,r),...d,ref:n,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":s||void 0})}),mC=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},hC=(e,t)=>({classGroupId:e,validator:t}),x2=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ka="-",C2=[],pC="arbitrary..",bC=e=>{const t=yC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return gC(l);const o=l.split(Ka),s=o[0]===""&&o.length>1?1:0;return D2(o,s,t)},getConflictingClassGroupIds:(l,o)=>{if(o){const s=r[l],d=n[l];return s?d?mC(d,s):s:d||C2}return n[l]||C2}}},D2=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const d=D2(e,t+1,a);if(d)return d}const l=n.validators;if(l===null)return;const o=t===0?e.join(Ka):e.slice(t).join(Ka),s=l.length;for(let d=0;d<s;d++){const c=l[d];if(c.validator(o))return c.classGroupId}},gC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?pC+r:void 0})(),yC=e=>{const{theme:t,classGroups:n}=e;return $C(n,t)},$C=(e,t)=>{const n=x2();for(const r in e){const i=e[r];Pu(i,n,r,t)}return n},Pu=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const l=e[a];vC(l,t,n,r)}},vC=(e,t,n,r)=>{if(typeof e=="string"){xC(e,t,n);return}if(typeof e=="function"){CC(e,t,n,r);return}DC(e,t,n,r)},xC=(e,t,n)=>{const r=e===""?t:E2(t,e);r.classGroupId=n},CC=(e,t,n,r)=>{if(EC(e)){Pu(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(hC(n,e))},DC=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let l=0;l<a;l++){const[o,s]=i[l];Pu(s,E2(t,o),n,r)}},E2=(e,t)=>{let n=e;const r=t.split(Ka),i=r.length;for(let a=0;a<i;a++){const l=r[a];let o=n.nextPart.get(l);o||(o=x2(),n.nextPart.set(l,o)),n=o}return n},EC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,wC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,l)=>{n[a]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let l=n[a];if(l!==void 0)return l;if((l=r[a])!==void 0)return i(a,l),l},set(a,l){a in n?n[a]=l:i(a,l)}}},ku="!",w2=":",SC=[],S2=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),PC=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let l=0,o=0,s=0,d;const c=i.length;for(let g=0;g<c;g++){const y=i[g];if(l===0&&o===0){if(y===w2){a.push(i.slice(s,g)),s=g+1;continue}if(y==="/"){d=g;continue}}y==="["?l++:y==="]"?l--:y==="("?o++:y===")"&&o--}const f=a.length===0?i:i.slice(s);let m=f,h=!1;f.endsWith(ku)?(m=f.slice(0,-1),h=!0):f.startsWith(ku)&&(m=f.slice(1),h=!0);const p=d&&d>s?d-s:void 0;return S2(a,h,m,p)};if(t){const i=t+w2,a=r;r=l=>l.startsWith(i)?a(l.slice(i.length)):S2(SC,!1,l,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},kC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const l=n[a],o=l[0]==="[",s=t.has(l);o||s?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},BC=e=>({cache:wC(e.cacheSize),parseClassName:PC(e),sortModifiers:kC(e),postfixLookupClassGroupIds:NC(e),...bC(e)}),NC=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},AC=/\s+/,FC=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:l}=t,o=[],s=e.trim().split(AC);let d="";for(let c=s.length-1;c>=0;c-=1){const f=s[c],{isExternal:m,modifiers:h,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:y}=n(f);if(m){d=f+(d.length>0?" "+d:d);continue}let $=!!y,x;if($){const B=g.substring(0,y);x=r(B);const E=x&&l[x]?r(g):void 0;E&&E!==x&&(x=E,$=!1)}else x=r(g);if(!x){if(!$){d=f+(d.length>0?" "+d:d);continue}if(x=r(g),!x){d=f+(d.length>0?" "+d:d);continue}$=!1}const v=h.length===0?"":h.length===1?h[0]:a(h).join(":"),C=p?v+ku:v,w=C+x;if(o.indexOf(w)>-1)continue;o.push(w);const S=i(x,$);for(let B=0;B<S.length;++B){const E=S[B];o.push(C+E)}d=f+(d.length>0?" "+d:d)}return d},TC=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=P2(n))&&(i&&(i+=" "),i+=r);return i},P2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=P2(e[r]))&&(n&&(n+=" "),n+=t);return n},k2=(e,...t)=>{let n,r,i,a;const l=s=>{const d=t.reduce((c,f)=>f(c),e());return n=BC(d),r=n.cache.get,i=n.cache.set,a=o,o(s)},o=s=>{const d=r(s);if(d)return d;const c=FC(s,n);return i(s,c),c};return a=l,(...s)=>a(TC(...s))},IC=[],Fe=e=>{const t=n=>n[e]||IC;return t.isThemeGetter=!0,t},B2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,N2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,MC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,KC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LC=/\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$/,OC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,VC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rn=e=>MC.test(e),de=e=>!!e&&!Number.isNaN(Number(e)),St=e=>!!e&&Number.isInteger(Number(e)),Bu=e=>e.endsWith("%")&&de(e.slice(0,-1)),zt=e=>KC.test(e),A2=()=>!0,_C=e=>LC.test(e)&&!OC.test(e),Nu=()=>!1,RC=e=>zC.test(e),jC=e=>VC.test(e),HC=e=>!te(e)&&!ne(e),UC=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),WC=e=>an(e,L2,Nu),te=e=>B2.test(e),Bn=e=>an(e,O2,_C),F2=e=>an(e,eD,de),GC=e=>an(e,V2,A2),ZC=e=>an(e,z2,Nu),T2=e=>an(e,M2,Nu),YC=e=>an(e,K2,jC),La=e=>an(e,_2,RC),ne=e=>N2.test(e),Qr=e=>Nn(e,O2),qC=e=>Nn(e,z2),I2=e=>Nn(e,M2),XC=e=>Nn(e,L2),JC=e=>Nn(e,K2),Oa=e=>Nn(e,_2,!0),QC=e=>Nn(e,V2,!0),an=(e,t,n)=>{const r=B2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Nn=(e,t,n=!1)=>{const r=N2.exec(e);return r?r[1]?t(r[1]):n:!1},M2=e=>e==="position"||e==="percentage",K2=e=>e==="image"||e==="url",L2=e=>e==="length"||e==="size"||e==="bg-size",O2=e=>e==="length",eD=e=>e==="number",z2=e=>e==="family-name",V2=e=>e==="number"||e==="weight",_2=e=>e==="shadow",R2=()=>{const e=Fe("color"),t=Fe("font"),n=Fe("text"),r=Fe("font-weight"),i=Fe("tracking"),a=Fe("leading"),l=Fe("breakpoint"),o=Fe("container"),s=Fe("spacing"),d=Fe("radius"),c=Fe("shadow"),f=Fe("inset-shadow"),m=Fe("text-shadow"),h=Fe("drop-shadow"),p=Fe("blur"),g=Fe("perspective"),y=Fe("aspect"),$=Fe("ease"),x=Fe("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...C(),ne,te],S=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],E=()=>[ne,te,s],k=()=>[rn,"full","auto",...E()],M=()=>[St,"none","subgrid",ne,te],F=()=>["auto",{span:["full",St,ne,te]},St,ne,te],I=()=>[St,"auto",ne,te],j=()=>["auto","min","max","fr",ne,te],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...E()],K=()=>[rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],q=()=>[rn,"screen","full","dvw","lvw","svw","min","max","fit",...E()],P=()=>[rn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],N=()=>[e,ne,te],R=()=>[...C(),I2,T2,{position:[ne,te]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",XC,WC,{size:[ne,te]}],z=()=>[Bu,Qr,Bn],A=()=>["","none","full",d,ne,te],V=()=>["",de,Qr,Bn],L=()=>["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"],le=()=>[de,Bu,I2,T2],Ke=()=>["","none",p,ne,te],_=()=>["none",de,ne,te],H=()=>["none",de,ne,te],me=()=>[de,ne,te],he=()=>[rn,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zt],breakpoint:[zt],color:[A2],container:[zt],"drop-shadow":[zt],ease:["in","out","in-out"],font:[HC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zt],shadow:[zt],spacing:["px",de],text:[zt],"text-shadow":[zt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rn,te,ne,y]}],container:["container"],"container-type":[{"@container":["","normal","size",ne,te]}],"container-named":[UC],columns:[{columns:[de,te,ne,o]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"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:w()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{"inset-s":k(),start:k()}],end:[{"inset-e":k(),end:k()}],"inset-bs":[{"inset-bs":k()}],"inset-be":[{"inset-be":k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[St,"auto",ne,te]}],basis:[{basis:[rn,"full","auto",o,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,rn,"auto","initial","none",te]}],grow:[{grow:["",de,ne,te]}],shrink:[{shrink:["",de,ne,te]}],order:[{order:[St,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mbs:[{mbs:Y()}],mbe:[{mbe:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...q()]}],"min-inline-size":[{"min-inline":["auto",...q()]}],"max-inline-size":[{"max-inline":["none",...q()]}],"block-size":[{block:["auto",...P()]}],"min-block-size":[{"min-block":["auto",...P()]}],"max-block-size":[{"max-block":["none",...P()]}],w:[{w:[o,"screen",...K()]}],"min-w":[{"min-w":[o,"screen","none",...K()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[l]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,Qr,Bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,QC,GC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Bu,te]}],"font-family":[{font:[qC,ZC,t]}],"font-features":[{"font-features":[te]}],"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:[i,ne,te]}],"line-clamp":[{"line-clamp":[de,"none",ne,F2]}],leading:[{leading:[a,...E()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"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:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",ne,Bn]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[de,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"tab-size":[{tab:[St,ne,te]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],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",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},St,ne,te],radial:["",ne,te],conic:[St,ne,te]},JC,YC]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-bs":[{"border-bs":V()}],"border-w-be":[{"border-be":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...L(),"hidden","none"]}],"divide-style":[{divide:[...L(),"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-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":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:[...L(),"none","hidden"]}],"outline-offset":[{"outline-offset":[de,ne,te]}],"outline-w":[{outline:["",de,Qr,Bn]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",c,Oa,La]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",f,Oa,La]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[de,Bn]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",m,Oa,La]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[de,ne,te]}],"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":[de]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"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":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"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":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"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":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"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":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"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":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"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":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[de]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"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:R()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:Ke()}],brightness:[{brightness:[de,ne,te]}],contrast:[{contrast:[de,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",h,Oa,La]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",de,ne,te]}],"hue-rotate":[{"hue-rotate":[de,ne,te]}],invert:[{invert:["",de,ne,te]}],saturate:[{saturate:[de,ne,te]}],sepia:[{sepia:["",de,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":Ke()}],"backdrop-brightness":[{"backdrop-brightness":[de,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[de,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",de,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[de,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[de,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",de,ne,te]}],"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",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[de,"initial",ne,te]}],ease:[{ease:["linear","initial",$,ne,te]}],delay:[{delay:[de,ne,te]}],animate:[{animate:["none",x,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ne,te]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:_()}],"rotate-x":[{"rotate-x":_()}],"rotate-y":[{"rotate-y":_()}],"rotate-z":[{"rotate-z":_()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],zoom:[{zoom:[St,ne,te]}],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",ne,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":N()}],"scrollbar-track-color":[{"scrollbar-track":N()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"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-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":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-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":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",ne,te]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[de,Qr,Bn,F2]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},tD=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>(lr(e,"cacheSize",t),lr(e,"prefix",n),lr(e,"experimentalParseClassName",r),za(e.theme,a.theme),za(e.classGroups,a.classGroups),za(e.conflictingClassGroups,a.conflictingClassGroups),za(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),lr(e,"postfixLookupClassGroups",a.postfixLookupClassGroups),lr(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),Va(e.theme,i.theme),Va(e.classGroups,i.classGroups),Va(e.conflictingClassGroups,i.conflictingClassGroups),Va(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Au(e,i,"postfixLookupClassGroups"),Au(e,i,"orderSensitiveModifiers"),e),lr=(e,t,n)=>{n!==void 0&&(e[t]=n)},za=(e,t)=>{if(t)for(const n in t)lr(e,n,t[n])},Va=(e,t)=>{if(t)for(const n in t)Au(e,t,n)},Au=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},nD=((e,...t)=>typeof e=="function"?k2(R2,e,...t):k2(()=>tD(R2(),e),...t))({extend:{theme:{text:["h1","h2","h3","h4","h5","h6","body-lg","body-sm","caption-lg","caption-sm"]}}});function U(...e){return nD(ee(e))}const j2=u.createContext({size:"md"}),rD=()=>u.useContext(j2),H2=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,U2=ee,Z=(e,t)=>n=>{var r;if(t?.variants==null)return U2(e,n?.class,n?.className);const{variants:i,defaultVariants:a}=t,l=Object.keys(i).map(d=>{const c=n?.[d],f=a?.[d];if(c===null)return null;const m=H2(c)||H2(f);return i[d][m]}),o=n&&Object.entries(n).reduce((d,c)=>{let[f,m]=c;return m===void 0||(d[f]=m),d},{}),s=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,c)=>{let{class:f,className:m,...h}=c;return Object.entries(h).every(p=>{let[g,y]=p;return Array.isArray(y)?y.includes({...a,...o}[g]):{...a,...o}[g]===y})?[...d,f,m]:d},[]);return U2(e,l,s,n?.class,n?.className)},iD={xs:18,sm:20,md:20,lg:24,xl:28,"2xl":28},aD=Z("inline-flex shrink-0 items-center justify-center [&_svg]:size-full",{variants:{size:{xs:"size-[18px]",sm:"size-[20px]",md:"size-[20px]",lg:"size-[24px]",xl:"size-[28px]","2xl":"size-[28px]"}},defaultVariants:{size:"md"}}),lD=Z(["relative inline-flex items-center justify-center font-bold","transition-[color,background-color,border-color,box-shadow,filter,transform] duration-150","focus-visible:outline-none","[-webkit-tap-highlight-color:transparent]","disabled:cursor-not-allowed data-[disabled]:cursor-not-allowed data-[pending]:cursor-wait","data-[pressed]:brightness-[0.96]"],{variants:{size:{xs:"py-1 px-2 gap-1 rounded-md text-caption-sm",sm:"h-[36px] px-4 gap-1 rounded-lg text-caption-sm",md:"h-[44px] px-4 gap-2 rounded-lg text-sm",lg:"h-[52px] px-5 gap-2 rounded-[10px] text-body-sm",xl:"h-[60px] px-6 gap-2 rounded-[10px] text-body-lg","2xl":"h-[68px] px-6 gap-2 rounded-[10px] text-body-lg"},tone:{primary:"",destructive:""},iconOnly:{true:"!p-0",false:""},variant:{solid:["text-white","disabled:bg-light-100 disabled:text-light-400","data-[pending]:!bg-light-100 data-[pending]:!text-light-400"],outline:["bg-white border","disabled:bg-white disabled:text-light-400 disabled:border-light-200","data-[pending]:!bg-white data-[pending]:!text-light-400 data-[pending]:!border-light-200"],ghost:["bg-transparent","disabled:text-light-400","data-[pending]:!bg-transparent data-[pending]:!text-light-400"],"outline-primary":["bg-white border border-primary-500 text-primary-500","hover:bg-primary-100 hover:border-primary-300 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400 disabled:border-light-200","data-[pending]:!bg-white data-[pending]:!text-light-400 data-[pending]:!border-light-200"],"ghost-primary":["bg-transparent text-primary-500","hover:bg-primary-50 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:text-light-400","data-[pending]:!bg-transparent data-[pending]:!text-light-400"],plain:["bg-transparent h-auto rounded-none p-0 gap-1","disabled:text-light-400 data-[pending]:!text-light-400"],"plain-black":["bg-transparent h-auto rounded-none p-0 gap-1","disabled:text-light-400 data-[pending]:!text-light-400"]}},compoundVariants:[{tone:"primary",variant:"solid",class:["bg-primary-500","hover:bg-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"outline",class:["border-light-200 text-light-900","hover:bg-light-50","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"ghost",class:["text-light-800","hover:bg-light-50 hover:text-light-900","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain",class:["text-primary-500","hover:text-primary-800 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain-black",class:["text-light-800","hover:text-light-900 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"solid",class:["bg-error-500 text-white","hover:bg-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-light-100 data-[pending]:!bg-light-100"].join(" ")},{tone:"destructive",variant:"outline",class:["border-error-500 text-error-500","hover:border-error-300 hover:bg-error-100 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"ghost",class:["text-error-500","hover:bg-error-50 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400","data-[pending]:!bg-white data-[pending]:!text-light-400"].join(" ")},{tone:"destructive",variant:"plain",class:["text-error-500","hover:text-error-800 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{size:"xs",iconOnly:!0,class:"!w-[26px] !h-[26px]"},{size:"sm",iconOnly:!0,class:"!w-[36px] !h-[36px]"},{size:"md",iconOnly:!0,class:"!w-[44px] !h-[44px]"},{size:"lg",iconOnly:!0,class:"!w-[52px] !h-[52px]"},{size:"xl",iconOnly:!0,class:"!w-[60px] !h-[60px]"},{size:"2xl",iconOnly:!0,class:"!w-[68px] !h-[68px]"}],defaultVariants:{size:"md",tone:"primary",variant:"solid",iconOnly:!1}}),oD={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":22},W2=u.forwardRef(({children:e,className:t,tone:n,variant:r,size:i="md",iconOnly:a,isDisabled:l,disabled:o,isPending:s,title:d,value:c,...f},m)=>{const h=u.useCallback(g=>{g&&(d===void 0?g.removeAttribute("title"):g.title=d,c===void 0?g.removeAttribute("value"):g.value=String(c)),typeof m=="function"?m(g):m&&(m.current=g)},[m,d,c]),p=f;return u.createElement(j2.Provider,{value:{size:i}},u.createElement(qt,{...p,ref:h,isDisabled:l||o,isPending:s,className:al(t,g=>U(lD({tone:n,variant:r,size:i,iconOnly:a}),g))},al(e,(g,{isPending:y})=>u.createElement(u.Fragment,null,y?u.createElement("span",{className:"flex shrink-0 items-center","aria-hidden":!0},u.createElement(Ns,{size:oD[i],className:"animate-spin"})):null,y&&a?null:g))))});W2.displayName="Button";const uD=({children:e})=>{const{size:t}=rD();return u.createElement("span",{className:aD({size:t})},e)},sD=({children:e})=>u.createElement("span",{className:"whitespace-nowrap"},e),Ze=W2;Ze.Icon=uD,Ze.Text=sD;const G2=Z(["inline-flex items-center justify-center","border transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4 rounded-[4px]",md:"h-5 w-5 rounded-[6px]",lg:"h-5 w-5 rounded-[6px]"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-white border-light-200 hover:border-light-400"},{checked:!0,disabled:!1,className:"bg-primary-500 border-primary-500 text-white hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"bg-light-100 border-light-200 text-white"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),dD={sm:{width:12,height:9},md:{width:14,height:10},lg:{width:14,height:10}},Z2=b.forwardRef(({id:e,checked:t,indeterminate:n=!1,disabled:r,size:i="md",onCheckedChange:a,className:l},o)=>{const s=()=>{r||a?.(!t)},d=dD[i],c=r?"text-white/80":"text-current";return b.createElement("button",{id:e,ref:o,type:"button",role:"checkbox","aria-checked":n?"mixed":t,disabled:r,onClick:s,className:ee(G2({size:i,checked:t,disabled:r}),l)},t&&!n&&b.createElement("svg",{width:d.width,height:d.height,viewBox:"0 0 14 10",fill:"none",className:c},b.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),n&&b.createElement("span",{className:ee(c,"bg-current rounded-sm",i==="sm"&&"h-0.5 w-3",(i==="md"||i==="lg")&&"h-0.5 w-4")}))});Z2.displayName="Checkbox";const Y2=b.createContext(null),cD=({value:e,defaultValue:t,onValueChange:n,children:r,className:i})=>{const[a,l]=b.useState(t),o=e??a,s=d=>{l(d),n?.(d)};return b.createElement(Y2.Provider,{value:{value:o,onValueChange:s}},b.createElement("div",{role:"radiogroup",className:i},r))},fD=()=>{const e=b.useContext(Y2);if(!e)throw new Error("RadioGroupItem must be used within RadioGroup");return e},mD=Z(["relative inline-flex items-center justify-center","border rounded-full transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"border-light-200 bg-white hover:border-light-400"},{checked:!0,disabled:!1,className:"border-primary-500 bg-primary-500 hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"border-light-200 bg-light-100"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),hD=Z(["rounded-full bg-white transition-all"],{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2 w-2"},checked:{true:"scale-100",false:"scale-0"}},defaultVariants:{size:"md",checked:!1}}),q2=b.forwardRef(({id:e,value:t,disabled:n,size:r="md",className:i},a)=>{const{value:l,onValueChange:o}=fD(),s=l===t;return b.createElement("button",{ref:a,id:e,type:"button",role:"radio","aria-checked":s,disabled:n,onClick:()=>{n||o?.(t)},className:ee(mD({size:r,checked:s,disabled:n}),i)},b.createElement("span",{className:hD({size:r,checked:s})}))});q2.displayName="RadioGroupItem";const pD=Z(["inline-flex items-center shrink-0 rounded-full p-[2px]","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-5 w-9",md:"h-6 w-11",lg:"h-6 w-11"},checked:{true:"justify-end",false:"justify-start"},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"},variant:{default:"",success:""}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-light-200"},{checked:!0,disabled:!1,variant:"default",className:"bg-primary-500 hover:bg-primary-800"},{checked:!0,disabled:!1,variant:"success",className:"bg-success-500 hover:bg-success-800"},{disabled:!0,className:"bg-light-100"},{variant:"default",className:"focus-visible:ring-primary-400"},{variant:"success",className:"focus-visible:ring-success-500"}],defaultVariants:{size:"md",checked:!1,disabled:!1,variant:"default"}}),bD=Z("rounded-full shrink-0 shadow-[0_1px_3px_0_rgba(16,24,40,0.10),0_1px_2px_0_rgba(16,24,40,0.06)]",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},disabled:{true:"bg-light-50",false:"bg-white"}},defaultVariants:{size:"md",disabled:!1}}),X2=b.forwardRef(({checked:e=!1,size:t="md",variant:n="default",disabled:r,onCheckedChange:i,className:a},l)=>b.createElement("button",{ref:l,type:"button",role:"switch","aria-checked":e,disabled:r,onClick:()=>{r||i?.(!e)},className:ee(pD({size:t,checked:e,disabled:r,variant:n}),a)},b.createElement("span",{className:bD({size:t,disabled:r})})));X2.displayName="Toggle";const gD=1e3,yD=900,$D=Z(["flex flex-col overflow-hidden","rounded-lg border border-light-200 bg-white shadow-lg","outline-none"]);function vD(e){b.useEffect(()=>{let t=0;const n=r=>{!e.current||t||r.target instanceof Node&&e.current.contains(r.target)||(t=requestAnimationFrame(()=>{t=0,window.dispatchEvent(new Event("resize"))}))};return document.addEventListener("scroll",n,!0),()=>{document.removeEventListener("scroll",n,!0),t&&cancelAnimationFrame(t)}},[e])}function xD(e){const t=()=>{e.hasAttribute("role")&&e.removeAttribute("role")};t();const n=new MutationObserver(t);return n.observe(e,{attributes:!0,attributeFilter:["role"]}),()=>n.disconnect()}const ln=b.forwardRef(({className:e,style:t,matchTriggerWidth:n=!1,children:r,...i},a)=>{const l=b.useRef(null),o=b.useRef(null),s=b.useCallback(d=>{l.current=d,typeof a=="function"?a(d):a&&(a.current=d),o.current?.(),o.current=d?xD(d):null},[a]);return vD(l),b.createElement(n3,{ref:s,...i,style:{zIndex:gD,...n?{width:"var(--trigger-width)"}:void 0,...t},className:U($D(),e)},r)});ln.displayName="Popover";const CD=Z(["relative rounded-lg text-caption-sm font-semibold text-white","bg-primary-900","shadow-lg","pointer-events-none","select-none"],{variants:{side:{top:"",bottom:"",left:"",right:""},hasSupportingText:{true:"p-3",false:"px-3 py-2"}},defaultVariants:{side:"top",hasSupportingText:!1}}),DD="mt-1 font-medium text-light-100",ED="overflow-visible border-0 bg-transparent shadow-none pointer-events-none",wD="block text-primary-900",SD=12,PD={top:"M0 0H16L8 6Z",bottom:"M0 6H16L8 0Z",left:"M0 0V16L6 8Z",right:"M6 0V16L0 8Z"};function kD({placement:e}){const t=e==="left"||e==="right";return b.createElement("svg",{"aria-hidden":"true",width:t?6:16,height:t?16:6,viewBox:t?"0 0 6 16":"0 0 16 6",className:wD,shapeRendering:"geometricPrecision"},b.createElement("path",{d:PD[e],fill:"currentColor"}))}const _a=({content:e,supportingText:t,side:n="top",open:r,defaultOpen:i=!1,disabled:a=!1,delay:l=100,className:o,children:s})=>{const[d,c]=b.useState(i),f=r??d,m=b.useRef(null),h=b.useRef(null),p=()=>{a||(h.current&&clearTimeout(h.current),l>0?h.current=window.setTimeout(()=>c(!0),l):c(!0))},g=()=>{a||(h.current&&(clearTimeout(h.current),h.current=null),c(!0))},y=()=>{h.current&&clearTimeout(h.current),l>0?h.current=window.setTimeout(()=>c(!1),l):c(!1)},$=()=>{h.current&&(clearTimeout(h.current),h.current=null),c(!1)};return b.createElement(b.Fragment,null,b.createElement("span",{ref:m,className:"inline-flex",onMouseEnter:p,onMouseLeave:y,onFocus:g,onBlur:$,tabIndex:0},s),b.createElement(ln,{isNonModal:!0,triggerRef:m,isOpen:f,onOpenChange:c,placement:n,offset:SD,className:ED},({placement:x})=>b.createElement(b.Fragment,null,b.createElement("div",{role:"tooltip",className:ee(CD({side:n,hasSupportingText:!!t}),o)},e,t&&b.createElement("p",{className:DD},t)),b.createElement(Xx,{className:"react-aria-OverlayArrow data-[placement=bottom]:!bottom-[calc(100%-1px)]"},b.createElement(kD,{placement:x==null||x==="center"?n:x})))))};_a.displayName="Tooltip";const BD="text-light-800",ND="hover:text-light-900",AD="border-light-200",FD="group-hover:border-light-500",TD={brand:{bg:"bg-primary-50",border:"border-primary-300",hoverBg:"hover:bg-primary-100",hoverBorder:"hover:border-primary-500"},gray:{bg:"bg-white",border:"border-light-200",hoverBg:"hover:bg-light-100",hoverBorder:"hover:border-light-500"},error:{bg:"bg-error-50",border:"border-error-200",hoverBg:"hover:bg-error-100",hoverBorder:"hover:border-error-500"},warning:{bg:"bg-warning-50",border:"border-warning-200",hoverBg:"hover:bg-warning-100",hoverBorder:"hover:border-warning-500"},success:{bg:"bg-success-50",border:"border-success-200",hoverBg:"hover:bg-success-100",hoverBorder:"hover:border-success-500"},"blue-gray":{bg:"bg-blue-gray-50",border:"border-blue-gray-200",hoverBg:"hover:bg-blue-gray-100",hoverBorder:"hover:border-blue-gray-500"},"blue-light":{bg:"bg-blue-light-50",border:"border-blue-light-200",hoverBg:"hover:bg-blue-light-100",hoverBorder:"hover:border-blue-light-500"},indigo:{bg:"bg-indigo-50",border:"border-indigo-200",hoverBg:"hover:bg-indigo-100",hoverBorder:"hover:border-indigo-500"},purple:{bg:"bg-purple-50",border:"border-purple-200",hoverBg:"hover:bg-purple-100",hoverBorder:"hover:border-purple-500"},blue:{bg:"bg-blue-50",border:"border-blue-200",hoverBg:"hover:bg-blue-100",hoverBorder:"hover:border-blue-500"},pink:{bg:"bg-pink-50",border:"border-pink-200",hoverBg:"hover:bg-pink-100",hoverBorder:"hover:border-pink-500"},orange:{bg:"bg-orange-50",border:"border-orange-200",hoverBg:"hover:bg-orange-100",hoverBorder:"hover:border-orange-500"}},ID=Z(["inline-flex items-center gap-1 border","font-medium transition-colors duration-150","select-none"],{variants:{size:{sm:"text-caption-sm py-[3px]",md:"text-caption-lg py-[2px]",lg:"text-caption-lg py-1"},shape:{rounded:"rounded-md",pill:"rounded-full"},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},interactive:{true:"group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{size:"sm",hasLeading:!1,className:"pl-2"},{size:"sm",hasLeading:!0,className:"pl-1"},{size:"sm",hasTrailing:!1,className:"pr-2"},{size:"sm",hasTrailing:!0,className:"pr-1"},{size:"md",hasLeading:!1,className:"pl-[9px]"},{size:"md",hasLeading:!0,className:"pl-1"},{size:"md",hasTrailing:!1,className:"pr-[9px]"},{size:"md",hasTrailing:!0,className:"pr-1"},{size:"lg",hasLeading:!1,className:"pl-2.5"},{size:"lg",hasLeading:!0,className:"pl-1.5"},{size:"lg",hasTrailing:!1,className:"pr-2.5"},{size:"lg",hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"rounded",hasLeading:!1,hasTrailing:!1,interactive:!1,disabled:!1}}),MD=Z(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"},checked:{true:"bg-primary-500 border-primary-500",false:""}},defaultVariants:{size:"sm",checked:!1}}),KD="shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800",LD=Z(["shrink-0 inline-flex items-center justify-center rounded-[3px]","hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[20px]"}},defaultVariants:{size:"sm"}}),J2=/^#([0-9a-f]{6})$/i,Q2=e=>J2.test(e.trim()),e1=(e,t)=>{const n=J2.exec(e.trim());if(!n)return;const r=parseInt(n[1],16),i=r>>16&255,a=r>>8&255,l=r&255;return`rgba(${i}, ${a}, ${l}, ${t})`},Fu=({children:e,size:t="sm",shape:n="rounded",icon:r,checked:i,onCheckedChange:a,onClose:l,count:o,disabled:s=!1,className:d,color:c="gray",customColor:f})=>{const m=a!==void 0,h=i!==void 0||!!r,p=!!l||o!==void 0,g=m&&!s,y=TD[c],$=!!(f&&Q2(f)),x=$?{borderColor:f,backgroundColor:e1(f,.12)}:void 0,v=()=>{s||a?.(!i)},C=w=>{!m||s||(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),v())};return b.createElement("div",{role:m?"checkbox":void 0,"aria-checked":m?!!i:void 0,"aria-disabled":s||void 0,tabIndex:m&&!s?0:void 0,onClick:m?v:void 0,onKeyDown:C,style:x,className:ee(ID({size:t,shape:n,hasLeading:h,hasTrailing:p,interactive:g,disabled:s}),!$&&y.bg,!$&&y.border,BD,g&&!$&&y.hoverBg,g&&!$&&y.hoverBorder,g&&ND,d)},i!==void 0&&b.createElement("span",{className:ee(MD({checked:i,size:t}),!i&&AD,g&&!i&&FD)},i&&b.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},b.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),r,b.createElement("span",{className:"whitespace-nowrap"},e),o!==void 0&&b.createElement("span",{className:KD},o),l&&b.createElement("button",{type:"button","aria-label":"Remove",disabled:s,onClick:w=>{w.stopPropagation(),l()},className:LD({size:t})},b.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:t==="sm"?"size-2":t==="md"?"size-2.5":"size-3"},b.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};Fu.displayName="Tag";const OD={brand:{solidBg:"bg-primary-50",solidBorder:"border-primary-300",solidText:"text-primary-500",outlineBorder:"border-primary-500",outlineText:"text-primary-700",hoverSolidBg:"hover:bg-primary-100",hoverSolidBorder:"hover:border-primary-500",hoverSolidText:"hover:text-primary-800",hoverOutlineBg:"hover:bg-primary-50",hoverOutlineBorder:"hover:border-primary-300",hoverOutlineText:"hover:text-primary-800",checkboxHoverBorder:"group-hover:border-primary-500"},gray:{solidBg:"bg-light-50",solidBorder:"border-light-200",solidText:"text-light-700",outlineBorder:"border-light-600",outlineText:"text-light-700",hoverSolidBg:"hover:bg-light-100",hoverSolidBorder:"hover:border-light-500",hoverSolidText:"hover:text-light-900",hoverOutlineBg:"hover:bg-light-50",hoverOutlineBorder:"hover:border-light-300",hoverOutlineText:"hover:text-light-900",checkboxHoverBorder:"group-hover:border-light-500"},error:{solidBg:"bg-error-50",solidBorder:"border-error-200",solidText:"text-error-700",outlineBorder:"border-error-600",outlineText:"text-error-700",hoverSolidBg:"hover:bg-error-100",hoverSolidBorder:"hover:border-error-500",hoverSolidText:"hover:text-error-800",hoverOutlineBg:"hover:bg-error-50",hoverOutlineBorder:"hover:border-error-300",hoverOutlineText:"hover:text-error-800",checkboxHoverBorder:"group-hover:border-error-500"},warning:{solidBg:"bg-warning-50",solidBorder:"border-warning-200",solidText:"text-warning-700",outlineBorder:"border-warning-600",outlineText:"text-warning-700",hoverSolidBg:"hover:bg-warning-100",hoverSolidBorder:"hover:border-warning-500",hoverSolidText:"hover:text-warning-800",hoverOutlineBg:"hover:bg-warning-50",hoverOutlineBorder:"hover:border-warning-300",hoverOutlineText:"hover:text-warning-800",checkboxHoverBorder:"group-hover:border-warning-500"},success:{solidBg:"bg-success-50",solidBorder:"border-success-200",solidText:"text-success-700",outlineBorder:"border-success-600",outlineText:"text-success-700",hoverSolidBg:"hover:bg-success-100",hoverSolidBorder:"hover:border-success-500",hoverSolidText:"hover:text-success-800",hoverOutlineBg:"hover:bg-success-50",hoverOutlineBorder:"hover:border-success-300",hoverOutlineText:"hover:text-success-800",checkboxHoverBorder:"group-hover:border-success-500"},"blue-gray":{solidBg:"bg-blue-gray-50",solidBorder:"border-blue-gray-200",solidText:"text-blue-gray-700",outlineBorder:"border-blue-gray-600",outlineText:"text-blue-gray-700",hoverSolidBg:"hover:bg-blue-gray-100",hoverSolidBorder:"hover:border-blue-gray-500",hoverSolidText:"hover:text-blue-gray-800",hoverOutlineBg:"hover:bg-blue-gray-50",hoverOutlineBorder:"hover:border-blue-gray-300",hoverOutlineText:"hover:text-blue-gray-800",checkboxHoverBorder:"group-hover:border-blue-gray-500"},"blue-light":{solidBg:"bg-blue-light-50",solidBorder:"border-blue-light-200",solidText:"text-blue-light-700",outlineBorder:"border-blue-light-600",outlineText:"text-blue-light-700",hoverSolidBg:"hover:bg-blue-light-100",hoverSolidBorder:"hover:border-blue-light-500",hoverSolidText:"hover:text-blue-light-800",hoverOutlineBg:"hover:bg-blue-light-50",hoverOutlineBorder:"hover:border-blue-light-300",hoverOutlineText:"hover:text-blue-light-800",checkboxHoverBorder:"group-hover:border-blue-light-500"},indigo:{solidBg:"bg-indigo-50",solidBorder:"border-indigo-200",solidText:"text-indigo-700",outlineBorder:"border-indigo-600",outlineText:"text-indigo-700",hoverSolidBg:"hover:bg-indigo-100",hoverSolidBorder:"hover:border-indigo-500",hoverSolidText:"hover:text-indigo-800",hoverOutlineBg:"hover:bg-indigo-50",hoverOutlineBorder:"hover:border-indigo-300",hoverOutlineText:"hover:text-indigo-800",checkboxHoverBorder:"group-hover:border-indigo-500"},purple:{solidBg:"bg-purple-50",solidBorder:"border-purple-200",solidText:"text-purple-700",outlineBorder:"border-purple-600",outlineText:"text-purple-700",hoverSolidBg:"hover:bg-purple-100",hoverSolidBorder:"hover:border-purple-500",hoverSolidText:"hover:text-purple-800",hoverOutlineBg:"hover:bg-purple-50",hoverOutlineBorder:"hover:border-purple-300",hoverOutlineText:"hover:text-purple-800",checkboxHoverBorder:"group-hover:border-purple-500"},blue:{solidBg:"bg-blue-50",solidBorder:"border-blue-200",solidText:"text-blue-700",outlineBorder:"border-blue-600",outlineText:"text-blue-700",hoverSolidBg:"hover:bg-blue-100",hoverSolidBorder:"hover:border-blue-500",hoverSolidText:"hover:text-blue-800",hoverOutlineBg:"hover:bg-blue-50",hoverOutlineBorder:"hover:border-blue-300",hoverOutlineText:"hover:text-blue-800",checkboxHoverBorder:"group-hover:border-blue-500"},pink:{solidBg:"bg-pink-50",solidBorder:"border-pink-200",solidText:"text-pink-700",outlineBorder:"border-pink-600",outlineText:"text-pink-700",hoverSolidBg:"hover:bg-pink-100",hoverSolidBorder:"hover:border-pink-500",hoverSolidText:"hover:text-pink-800",hoverOutlineBg:"hover:bg-pink-50",hoverOutlineBorder:"hover:border-pink-300",hoverOutlineText:"hover:text-pink-800",checkboxHoverBorder:"group-hover:border-pink-500"},orange:{solidBg:"bg-orange-50",solidBorder:"border-orange-200",solidText:"text-orange-700",outlineBorder:"border-orange-600",outlineText:"text-orange-700",hoverSolidBg:"hover:bg-orange-100",hoverSolidBorder:"hover:border-orange-500",hoverSolidText:"hover:text-orange-800",hoverOutlineBg:"hover:bg-orange-50",hoverOutlineBorder:"hover:border-orange-300",hoverOutlineText:"hover:text-orange-800",checkboxHoverBorder:"group-hover:border-orange-500"}},zD=Z(["inline-flex items-center gap-1 border font-medium","transition-colors duration-150"],{variants:{size:{sm:"text-caption-sm py-0.5",md:"text-caption-lg py-0.5",lg:"text-caption-lg py-1"},shape:{pill:"rounded-full",badge:""},modern:{true:"rounded-md shadow-xs",false:""},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},iconOnly:{true:"p-[5px]",false:""},interactive:{true:"group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{shape:"badge",size:"sm",modern:!1,className:"rounded-md"},{shape:"badge",size:"md",modern:!1,className:"rounded-md"},{shape:"badge",size:"lg",modern:!1,className:"rounded-lg"},{size:"sm",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-2"},{size:"sm",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-1.5"},{size:"sm",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"sm",iconOnly:!1,hasTrailing:!1,className:"pr-2"},{size:"sm",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"md",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"md",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"md",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"md",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"lg",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-3"},{size:"lg",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"lg",iconOnly:!1,hasLeading:!0,className:"pl-1.5"},{size:"lg",shape:"pill",iconOnly:!1,hasTrailing:!1,className:"pr-3"},{size:"lg",shape:"badge",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"lg",iconOnly:!1,hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"pill",modern:!1,hasLeading:!1,hasTrailing:!1,iconOnly:!1,interactive:!1,disabled:!1}}),VD=Z(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"}},defaultVariants:{size:"sm"}}),_D=Z(["shrink-0 inline-flex items-center justify-center rounded","hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"],{variants:{size:{sm:"size-[16px]",md:"size-[16px]",lg:"size-[16px]"}},defaultVariants:{size:"sm"}}),t1=({children:e,size:t="sm",shape:n="pill",variant:r="solid",color:i="brand",customColor:a,modern:l=!1,icon:o,trailingIcon:s,checked:d,onCheckedChange:c,onClose:f,iconOnly:m=!1,disabled:h=!1,className:p})=>{const g=c!==void 0,y=d!==void 0||!!o,$=!!f||!!s,x=g&&!h,v=OD[i],C=!!(a&&Q2(a)),w=C?{borderColor:a,color:a,backgroundColor:r==="outline"?"transparent":e1(a,.1)}:void 0,S=()=>{h||c?.(!d)},B=E=>{!g||h||(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),S())};return b.createElement("div",{role:g?"checkbox":void 0,"aria-checked":g?!!d:void 0,"aria-disabled":h||void 0,tabIndex:g&&!h?0:void 0,onClick:g?S:void 0,onKeyDown:B,style:w,className:ee(zD({size:t,shape:n,modern:l,hasLeading:y,hasTrailing:$,iconOnly:m,interactive:x,disabled:h}),!C&&(r==="outline"?ee("bg-transparent",v.outlineBorder,v.outlineText):ee(v.solidBg,v.solidBorder,v.solidText)),x&&!C&&(r==="outline"?ee(v.hoverOutlineBg,v.hoverOutlineBorder,v.hoverOutlineText):ee(v.hoverSolidBg,v.hoverSolidBorder,v.hoverSolidText)),p)},d!==void 0&&b.createElement("span",{className:ee(VD({size:t}),d?"bg-primary-500 border-primary-500":!C&&v.solidBorder,x&&!d&&!C&&v.checkboxHoverBorder),style:!d&&C?{borderColor:a}:void 0},d&&b.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},b.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),o,!m&&b.createElement("span",{className:"whitespace-nowrap"},e),s,f&&b.createElement("button",{type:"button","aria-label":"Remove",disabled:h,onClick:E=>{E.stopPropagation(),f()},className:_D({size:t})},b.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:t==="sm"?"size-2":"size-2.5"},b.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};t1.displayName="Badge";const RD={brand:{bg50:"bg-primary-50",hoverBg100:"hover:bg-primary-100",border200:"border-primary-200",border500:"border-primary-500",text500:"text-primary-500"},gray:{bg50:"bg-light-50",hoverBg100:"hover:bg-light-100",border200:"border-light-200",border500:"border-light-500",text500:"text-light-500"},error:{bg50:"bg-error-50",hoverBg100:"hover:bg-error-100",border200:"border-error-200",border500:"border-error-500",text500:"text-error-500"},warning:{bg50:"bg-warning-50",hoverBg100:"hover:bg-warning-100",border200:"border-warning-200",border500:"border-warning-500",text500:"text-warning-500"},success:{bg50:"bg-success-50",hoverBg100:"hover:bg-success-100",border200:"border-success-200",border500:"border-success-500",text500:"text-success-500"}},jD={md:{outerPad:{leading:"pl-1 pr-2.5 py-1",trailing:"pl-3 pr-1 py-1"},gap:"gap-2",chipPad:"px-2 py-0.5",text:"text-caption-lg"},lg:{outerPad:{leading:"pl-1.5 pr-3 py-1.5",trailing:"pl-3 pr-1.5 py-1.5"},gap:"gap-2",chipPad:"px-2.5 py-[3px]",text:"text-body-sm"}},n1=({badgeLabel:e,children:t,size:n="md",theme:r="light",color:i="brand",badgePosition:a="leading",icon:l,onClick:o,className:s})=>{const d=RD[i],c=jD[n],f=r==="modern",m=r==="outline",h=ee("inline-flex items-center border transition-colors duration-150",c.gap,c.outerPad[a],f?"rounded-lg bg-light-50 border-light-200 shadow-xs":m?ee("rounded-full bg-white border-[1.5px]",d.border500):ee("rounded-full",d.bg50,d.border200,d.hoverBg100),o&&"cursor-pointer",s),p=ee("inline-flex shrink-0 items-center gap-1 border font-medium whitespace-nowrap",c.chipPad,c.text,f?"rounded-md bg-white border-light-200 text-light-800":m?ee("rounded-full bg-white border-[1.5px]",d.border500,d.text500):ee("rounded-full bg-white",d.border200,d.text500)),g=ee("inline-flex items-center gap-1 font-medium",c.text,f?"text-light-800":d.text500),y=b.createElement("span",{className:p},f&&b.createElement("span",{className:"size-2 shrink-0 rounded-full bg-light-400"}),e);return b.createElement("div",{role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o,className:h},a==="leading"&&y,b.createElement("span",{className:g},t,l),a==="trailing"&&y)};n1.displayName="BadgeGroup";const HD=({size:e})=>{const t=e*.09,n=(e-t)/2,r=2*Math.PI*n;return b.createElement("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",className:"animate-spin"},b.createElement("circle",{cx:e/2,cy:e/2,r:n,strokeWidth:t,className:"stroke-light-100"}),b.createElement("circle",{cx:e/2,cy:e/2,r:n,strokeWidth:t,strokeLinecap:"round",strokeDasharray:`${r*.25} ${r}`,className:"stroke-primary-600"}))},UD=({size:e})=>{const t=b.useId(),n=e*.125,r=(e-n)/2,i=2*Math.PI*r;return b.createElement("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",className:"animate-spin text-primary-600"},b.createElement("defs",null,b.createElement("linearGradient",{id:t,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},b.createElement("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"1"}),b.createElement("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0"}))),b.createElement("circle",{cx:e/2,cy:e/2,r,strokeWidth:n,className:"stroke-light-100"}),b.createElement("circle",{cx:e/2,cy:e/2,r,strokeWidth:n,strokeLinecap:"round",stroke:`url(#${t})`,strokeDasharray:`${i*.75} ${i}`}))},WD=({size:e})=>{const n=Math.max(e*.1,3),r=(e-n)/2;return b.createElement("div",{className:"relative animate-spin",style:{width:e,height:e}},Array.from({length:12}).map((i,a)=>{const l=30*a,o=.15+.85*a/11;return b.createElement("span",{key:a,className:"absolute rounded-full bg-primary-600 top-1/2 left-1/2",style:{width:n,height:n,opacity:o,marginTop:-n/2,marginLeft:-n/2,transform:`rotate(${l}deg) translate(${r}px) rotate(${-l}deg)`}})}))},GD={sm:{box:32,gapClass:"gap-4",textClass:"text-caption-lg"},md:{box:48,gapClass:"gap-4",textClass:"text-caption-lg"},lg:{box:56,gapClass:"gap-4",textClass:"text-body-lg"},xl:{box:64,gapClass:"gap-5",textClass:"text-body-lg"}},r1=({size:e="sm",style:t="line-simple",supportingText:n=!0,label:r="Loading...",className:i})=>{const{box:a,gapClass:l,textClass:o}=GD[e],s=typeof r=="string"?r:"Loading";return b.createElement("div",{"aria-live":"polite","aria-atomic":"true"},b.createElement(Mv,{isIndeterminate:!0,"aria-label":s,className:U("inline-flex flex-col items-center",l,i)},t==="line-simple"&&b.createElement(HD,{size:a}),t==="line-spinner"&&b.createElement(UD,{size:a}),t==="dot-circle"&&b.createElement(WD,{size:a}),n&&b.createElement("p",{className:U("font-nunito font-medium text-light-700 whitespace-nowrap",o)},r)))};r1.displayName="Loading";const i1=({className:e,style:t})=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",className:e,style:t},b.createElement("path",{d:"M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z",stroke:"currentColor",strokeWidth:"1.75"}),b.createElement("path",{d:"M3.75 20.25a8.25 8.25 0 0 1 16.5 0",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})),a1=({className:e})=>b.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},b.createElement("circle",{cx:"10",cy:"10",r:"9",className:"fill-primary-500 stroke-white",strokeWidth:"1.5"}),b.createElement("path",{d:"M6 10.2 8.6 12.8 14 7",stroke:"white",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})),ZD={xs:{box:24,borderWidth:"0.5px",statusSize:6,badgeSize:10,textClass:"text-caption-sm"},sm:{box:32,borderWidth:"0.5px",statusSize:8,badgeSize:12,textClass:"text-caption-lg"},md:{box:40,borderWidth:"0.75px",statusSize:10,badgeSize:14,textClass:"text-body-sm"},lg:{box:48,borderWidth:"0.75px",statusSize:12,badgeSize:16,textClass:"text-body-lg"},xl:{box:56,borderWidth:"0.75px",statusSize:14,badgeSize:18,textClass:"text-h6"},"2xl":{box:64,borderWidth:"0.75px",statusSize:16,badgeSize:20,textClass:"text-h5 leading-7"}},YD="#17B26A",Ra={brand:{bg:"bg-primary-500",text:"text-white",iconText:"text-white"},gray:{bg:"bg-light-50",text:"text-light-500",iconText:"text-light-300"},error:{bg:"bg-error-500",text:"text-white",iconText:"text-white"},warning:{bg:"bg-warning-500",text:"text-white",iconText:"text-white"},success:{bg:"bg-success-500",text:"text-white",iconText:"text-white"}},ja=({src:e,alt:t,initials:n,size:r="md",color:i="gray",status:a="none",statusIcon:l,contrastBorder:o=!0,className:s})=>{const{box:d,borderWidth:c,statusSize:f,badgeSize:m,textClass:h}=ZD[r],p=e?"image":n!==void 0?"initials":"placeholder";return b.createElement("div",{className:ee("relative inline-block shrink-0 rounded-full",s),style:{width:d,height:d}},p==="image"&&b.createElement("img",{src:e,alt:t??"",className:"absolute inset-0 size-full rounded-full object-cover"}),p==="placeholder"&&b.createElement("div",{className:ee("absolute inset-0 flex items-center justify-center rounded-full",Ra[i].bg)},b.createElement(i1,{className:Ra[i].iconText,style:{width:d*.55,height:d*.55}})),p==="initials"&&b.createElement("div",{className:ee("absolute inset-0 flex items-center justify-center rounded-full font-semibold",Ra[i].bg,Ra[i].text,h)},n),o&&b.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",style:{borderWidth:c,borderStyle:"solid"}}),a==="online"&&b.createElement("span",{className:"absolute bottom-0 right-0 rounded-full border-[1.5px] border-white",style:{width:f,height:f,backgroundColor:YD}}),a==="company"&&b.createElement("div",{className:"absolute bottom-0 right-0 flex items-center justify-center overflow-hidden rounded-full border-[1.5px] border-white bg-white",style:{width:m,height:m}},l),a==="verified"&&b.createElement("div",{className:"absolute bottom-0 right-0",style:{width:m,height:m}},b.createElement(a1,{className:"size-full"})))};ja.displayName="Avatar";const l1=[{bg:"bg-primary-100",text:"text-primary-600"},{bg:"bg-secondary-100",text:"text-secondary-600"},{bg:"bg-purple-100",text:"text-purple-600"},{bg:"bg-pink-100",text:"text-pink-600"},{bg:"bg-orange-100",text:"text-orange-600"},{bg:"bg-teal-100",text:"text-teal-600"},{bg:"bg-indigo-100",text:"text-indigo-600"},{bg:"bg-rose-100",text:"text-rose-600"}],qD=e=>{let t=0;for(let r=0;r<e.length;r+=1)t=t*31+e.charCodeAt(r)|0;const n=Math.abs(t)%l1.length;return l1[n]},XD={xs:{box:24,overlap:-4,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-sm"},sm:{box:32,overlap:-8,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-lg"},md:{box:40,overlap:-12,contrastBorderWidth:"0.75px",plusIconSize:20,textClass:"text-body-sm"}},o1=({avatars:e,max:t,size:n="xs",onAdd:r,className:i})=>{const{box:a,overlap:l,contrastBorderWidth:o,textClass:s}=XD[n],d=t?e.slice(0,t):e,c=t&&e.length>t?e.length-t:0;return b.createElement("div",{className:ee("inline-flex items-start gap-2",i)},b.createElement("div",{className:"flex items-start"},d.map((f,m)=>{const h=m<d.length-1||c>0;return b.createElement(_a,{key:m,content:f.label,disabled:!f.label,side:"top"},b.createElement("div",{className:"relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",style:{width:a,height:a,marginRight:h?l:0}},f.src?b.createElement("img",{src:f.src,alt:f.alt??"",className:"size-full object-cover"}):(()=>{const{text:p,bg:g}=qD(String(f.label??f.alt??f.initials??m));return b.createElement("div",{className:ee("flex size-full items-center justify-center font-semibold",f.initialsBgColor??g,f.initialsTextColor??p,s)},f.initials)})(),b.createElement("div",{className:ee("pointer-events-none absolute inset-0 rounded-full",f.borderColor??"border-black/[0.08]"),style:{borderWidth:o,borderStyle:"solid"}})))}),c>0&&b.createElement(_a,{content:e.slice(t).map((f,m)=>b.createElement("div",{key:m},f.label)),disabled:!e.slice(t).some(f=>f.label),side:"top"},b.createElement("div",{className:"relative flex shrink-0 items-center justify-center rounded-full border-2 border-white bg-light-100",style:{width:a,height:a}},b.createElement("span",{className:ee("font-semibold text-light-600",s)},"+",c)))),r&&b.createElement("button",{type:"button",onClick:r,"aria-label":"Add",className:"flex shrink-0 items-center justify-center rounded-full border border-dashed border-light-300 bg-white text-light-500 hover:bg-light-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",style:{width:a,height:a}},b.createElement("svg",{width:a*.4,height:a*.4,viewBox:"0 0 20 20",fill:"none"},b.createElement("path",{d:"M10 4v12M4 10h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}))))};o1.displayName="AvatarGroup";const JD={xs:{nameClass:"text-caption-sm",subtitleClass:"text-caption-sm"},sm:{nameClass:"text-caption-lg",subtitleClass:"text-caption-sm"},md:{nameClass:"text-caption-lg",subtitleClass:"text-caption-lg"},lg:{nameClass:"text-body-sm",subtitleClass:"text-body-sm"},xl:{nameClass:"text-body-lg",subtitleClass:"text-body-sm"}},u1=({name:e,subtitle:t,src:n,initials:r,size:i="xs",status:a="none",statusIcon:l,className:o})=>{const{nameClass:s,subtitleClass:d}=JD[i];return b.createElement("div",{className:ee("inline-flex items-center gap-2",o)},b.createElement(ja,{src:n,initials:r,size:i,status:a,statusIcon:l}),b.createElement("div",{className:"flex flex-col items-start whitespace-nowrap"},b.createElement("span",{className:ee("font-bold text-light-800",s)},e),t&&b.createElement("span",{className:ee("font-normal text-light-700",d)},t)))};u1.displayName="AvatarLabelGroup";const QD={sm:{box:72,ringWidth:3,shadowClass:"shadow-md",iconSize:36,textClass:"text-h4",verifiedSize:20,verifiedOffset:0},md:{box:96,ringWidth:4,shadowClass:"shadow-lg",iconSize:48,textClass:"text-h3",verifiedSize:24,verifiedOffset:0},lg:{box:160,ringWidth:4,shadowClass:"shadow-lg",iconSize:80,textClass:"text-h1",verifiedSize:32,verifiedOffset:4}},s1=({src:e,alt:t,initials:n,size:r="sm",verified:i=!0,contrastBorder:a=!0,className:l})=>{const{box:o,ringWidth:s,shadowClass:d,iconSize:c,textClass:f,verifiedSize:m,verifiedOffset:h}=QD[r],p=e?"image":n!==void 0?"initials":"placeholder";return b.createElement("div",{className:ee("relative rounded-full",l),style:{width:o,height:o}},b.createElement("div",{className:ee("absolute inset-0 overflow-hidden rounded-full border-white",d,p!=="image"&&"bg-light-100"),style:{borderWidth:s,borderStyle:"solid"}},p==="image"&&b.createElement("img",{src:e,alt:t??"",className:"absolute inset-0 size-full rounded-full object-cover"}),a&&b.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border border-black/[0.08]"}),p==="placeholder"&&b.createElement("div",{className:"absolute inset-0 flex items-center justify-center"},b.createElement(i1,{className:"text-light-300",style:{width:c,height:c}})),p==="initials"&&b.createElement("div",{className:ee("absolute inset-0 flex items-center justify-center font-semibold text-light-500",f)},n)),i&&b.createElement("div",{className:"absolute",style:{width:m,height:m,bottom:h,right:h}},b.createElement(a1,{className:"size-full"})))};s1.displayName="AvatarProfilePhoto";const eE={"button-gray":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},"button-white":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},"button-primary":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},underline:{sm:"h-8 px-1 pb-3 text-sm gap-2",md:"h-9 px-1 pb-3 text-base gap-2"},"underline-filled":{sm:"h-11 p-3 text-sm gap-2",md:"h-12 p-3 text-base gap-2"},line:{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3.5 py-2.5 text-base gap-2"}},tE={"button-gray":"rounded-md","button-white":"rounded-md","button-primary":"rounded-md",underline:"rounded-none","underline-filled":"rounded-none",line:"rounded-none"},nE={"button-gray":{active:"bg-light-50 text-light-700",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-light-50 hover:text-light-700",hasFocusRing:!0},"button-white":{active:"bg-white text-light-700 shadow-sm",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-white hover:text-light-700 hover:shadow-sm",hasFocusRing:!0},"button-primary":{active:"bg-primary-50 text-primary-700",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-primary-50 hover:text-primary-700",hasFocusRing:!0},underline:{active:"border-b-2 border-primary-500 text-primary-700",inactive:"border-b-2 border-transparent text-light-500",hoverInactive:"hover:border-primary-500 hover:text-primary-700",hasFocusRing:!1},"underline-filled":{active:"bg-primary-50 border-b-2 border-primary-500 text-primary-700",inactive:"bg-transparent border-b-2 border-transparent text-light-500",hoverInactive:"hover:bg-primary-50 hover:border-primary-500 hover:text-primary-700",hasFocusRing:!1},line:{active:"bg-transparent border-l-2 border-primary-500 text-primary-700",inactive:"bg-transparent border-l-2 border-transparent text-light-500",hoverInactive:"hover:border-primary-500 hover:text-primary-700",hasFocusRing:!0}},rE="inline-flex items-center justify-center rounded-full border border-light-200 bg-light-50 px-2 py-0.5 text-caption-sm font-medium text-light-700",iE={"button-gray":{gapClass:"gap-1",hasHairline:!1},"button-white":{gapClass:"gap-1",hasHairline:!1},"button-primary":{gapClass:"gap-1",hasHairline:!1},underline:{gapClass:"gap-3",hasHairline:!0},"underline-filled":{gapClass:"gap-3",hasHairline:!0},line:{gapClass:"gap-1",hasHairline:!1}},d1=({children:e,variant:t="button-primary",size:n="sm",fullWidth:r=!1,count:i,iconLeft:a,iconRight:l,disabled:o=!1,onClick:s,className:d,id:c,active:f})=>{const m=nE[t];return b.createElement(v2,{id:c,isDisabled:o,onPress:()=>s?.(),className:({isSelected:h})=>U("inline-flex items-center justify-center font-semibold transition-colors duration-150",eE[t][n],tE[t],h?m.active:m.inactive,!h&&!o&&m.hoverInactive,m.hasFocusRing&&"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",r&&"w-full",o?"cursor-not-allowed opacity-60":"cursor-pointer",d)},a&&b.createElement("span",{className:"shrink-0"},a),b.createElement("span",{className:"whitespace-nowrap"},e),i!==void 0&&b.createElement("span",{className:rE},i),l&&b.createElement("span",{className:"shrink-0"},l))};d1.displayName="Tab";const c1=({children:e,variant:t="button-primary",orientation:n="horizontal",boxed:r=!1,"aria-label":i="Tabs",keyboardActivation:a,disabledKeys:l,className:o})=>{const{gapClass:s,hasHairline:d}=iE[t],c=b.Children.toArray(e),f=c.map((g,y)=>String(y)),m=c.findIndex(g=>g.props.active),h=f[m>=0?m:0],p=g=>{const y=f.indexOf(String(g));y>=0&&c[y].props.onClick?.()};return b.createElement(y2,{orientation:n,keyboardActivation:a,disabledKeys:l,selectedKey:c.length?h:void 0,onSelectionChange:p},b.createElement($2,{"aria-label":i,className:U("inline-flex",n==="vertical"?"flex-col items-stretch":"flex-row items-center",s,r&&"rounded-lg border border-light-200 bg-light-50 p-1",d&&n==="horizontal"&&!r&&"border-b border-light-200",o)},c.map((g,y)=>b.cloneElement(g,{key:f[y],id:f[y]}))))};c1.displayName="TabList";const f1=9,Pt=1,aE=30;function m1(e){const t=f1,n=Pt-e,r=n?`calc(100% - ${n}px)`:"100%",i=`calc(100% - ${t+1}px)`,a=`calc(100% - ${t}px)`;return`shape(${[`from ${-e}px 100%`,...n?[`vline to ${r}`]:[],`curve to ${t}px ${i} with ${t}px ${r}`,`vline to ${t-e}px`,`curve to ${2*t-e}px 0 with ${t}px 0`,`hline to calc(100% - ${2*t-e}px)`,`curve to ${a} ${t-e}px with ${a} 0`,`vline to ${i}`,`curve to ${e?`calc(100% + ${e}px)`:"100%"} ${r} with ${a} ${r}`,...n?["vline to 100%"]:[]].join(", ")})`}const h1=m1(0),p1=m1(Pt),b1={default:{box:"h-12 shrink-0",padX:aE},"max-width":{box:"h-9 min-w-px flex-1",padX:f1}},lE={clipPath:h1,paddingInline:`${Pt}px`},oE={paddingInline:`${Pt}px`},g1=b.forwardRef(({type:e="default",disabled:t=!1,unstyled:n=!1,iconLeft:r,trailing:i,tooltip:a,children:l,className:o,style:s,contentClassName:d,contentStyle:c,onClick:f,id:m,active:h,...p},g)=>{const{box:y,padX:$}=b1[e];return b.createElement(v2,{ref:g,id:m,isDisabled:t,onPress:()=>f?.(void 0),...p,className:({isSelected:x})=>U("group relative flex transition-colors duration-150 focus-visible:outline-none",!n&&"rounded-t-lg pt-px",!n&&y,t&&"cursor-not-allowed opacity-60",!t&&!x&&"cursor-pointer",!n&&x&&"-mb-px bg-light-200 focus-visible:bg-primary-400",x&&"cursor-default",o),style:({isSelected:x})=>n?s:{...x?lE:oE,...s}},({isSelected:x})=>{const v=!t&&!x,C=x?{clipPath:p1,paddingInline:`${$-Pt}px`}:{paddingInline:`${$-Pt}px`};return b.createElement("span",{title:a,className:U("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!n&&"rounded-t-lg",!n&&(x?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!n&&v&&"group-hover:bg-light-100 group-hover:text-light-800",!n&&v&&"group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",d),style:n?c:{...C,...c}},r&&b.createElement("span",{className:"shrink-0"},r),b.createElement("span",{className:"overflow-hidden text-ellipsis"},l),i)})});g1.displayName="TabBrowser";const uE=48,y1=({children:e,separators:t=!1,trailingSlot:n,overflow:r=!1,overflowLabel:i,className:a})=>{const l=b.Children.toArray(e),o=b.useMemo(()=>l.map((E,k)=>String(k)),[l.length]),s=l.findIndex(E=>E.props.active),d=b.useRef(null),c=b.useRef(null),f=b.useRef(new Map),m=b.useRef(new Map),[h,p]=b.useState(l.length),g=o.join("|");b.useLayoutEffect(()=>{r&&(m.current.clear(),p(l.length))},[r,g]);const y=b.useCallback(()=>{const E=d.current;if(!E||l.length===0||(m.current.size<l.length&&o.forEach(j=>{const D=f.current.get(j);D&&m.current.set(j,D.getBoundingClientRect().width)}),m.current.size<l.length))return;const k=E.clientWidth,M=c.current?.getBoundingClientRect().width||uE;let F=0,I=0;for(;I<o.length;I++){const j=m.current.get(o[I])??0,D=I<o.length-1?M:0;if(F+j+D>k&&I>0)break;F+=j}p(j=>j===I?j:I)},[l.length,o]),$=h===l.length;b.useLayoutEffect(()=>{r&&y()},[r,y,$]),b.useEffect(()=>{if(!r)return;const E=d.current;if(!E||typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>y());return k.observe(E),()=>k.disconnect()},[r,y]);const x=r&&h<l.length?Math.max(h,1):l.length,v=r?s>=0&&s>=x?[...Array(x-1).keys(),s]:[...Array(x).keys()]:o.map((E,k)=>k),C=new Set(v),w=o.map((E,k)=>k).filter(E=>!C.has(E)),S=s>=0?o[s]:v.length?o[v[0]]:void 0,B=E=>{const k=o.indexOf(String(E));k>=0&&l[k].props.onClick?.(void 0)};return b.createElement(y2,{selectedKey:l.length?S:void 0,onSelectionChange:B,className:U("flex items-end",r&&"min-w-0 flex-1",a)},(()=>{const E=b.createElement($2,{"aria-label":"Tabs",className:U("flex min-w-0 items-end",r?"shrink-0":"flex-1")},v.map((k,M)=>{const F=l[k],I=M===v.length-1&&w.length===0,j=v[M+1],D=F.props.active||l[j]?.props.active;return b.cloneElement(F,{key:o[k],id:o[k],ref:r?T=>{T?f.current.set(o[k],T):f.current.delete(o[k])}:void 0,className:U(F.props.className,t&&!I&&!D&&"after:absolute after:-right-px after:bottom-3 after:h-5 after:w-px after:bg-light-200 after:content-['']")})}));return r?b.createElement("div",{ref:d,className:"flex min-w-0 flex-1 items-end overflow-hidden"},E,w.length>0&&b.createElement(Na,null,b.createElement(qt,{ref:c,className:"mb-3 flex h-7 shrink-0 items-center self-end rounded-md px-2 text-caption-sm font-semibold text-light-600 hover:bg-light-100 hover:text-light-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"},i?i(w.length):`+${w.length}`),b.createElement(n3,{placement:"bottom end",className:"flex flex-col overflow-hidden rounded-lg border border-light-200 bg-white p-1 shadow-lg"},b.createElement(R3,{className:"flex max-h-[320px] min-h-0 min-w-[160px] flex-1 flex-col gap-0.5 overflow-y-auto outline-none [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",onAction:k=>{const M=o.indexOf(String(k));M>=0&&l[M].props.onClick?.(void 0)}},w.map(k=>{const M=l[k],F=M.props.children;return b.createElement(j3,{key:o[k],id:o[k],isDisabled:M.props.disabled,textValue:typeof F=="string"?F:void 0,className:"flex h-9 shrink-0 cursor-pointer items-center gap-2 truncate rounded-md px-2 text-caption-sm text-light-800 outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-60 data-[focused]:bg-light-50 data-[focused]:text-light-900"},M.props.iconLeft&&b.createElement("span",{className:"shrink-0"},M.props.iconLeft),b.createElement("span",{className:"truncate"},F),M.props.trailing&&b.createElement("span",{className:"ml-auto shrink-0"},M.props.trailing))}))))):E})(),n)};y1.displayName="TabBrowserBar";const sE={clipPath:h1,paddingInline:`${Pt}px`},dE={paddingInline:`${Pt}px`},$1=b.forwardRef(({type:e="default",disabled:t=!1,unstyled:n=!1,active:r=!1,iconLeft:i,trailing:a,tooltip:l,children:o,className:s,style:d,contentClassName:c,contentStyle:f,...m},h)=>{const{box:p,padX:g}=b1[e],y=!t&&!r,$=r?{clipPath:p1,paddingInline:`${g-Pt}px`}:{paddingInline:`${g-Pt}px`};return b.createElement("div",{ref:h,role:"tab","aria-disabled":t,"aria-selected":r,...m,className:U("group relative flex transition-colors duration-150 focus-visible:outline-none",!n&&"rounded-t-lg pt-px",!n&&p,t&&"cursor-not-allowed opacity-60",!t&&!r&&"cursor-pointer",!n&&r&&"-mb-px bg-light-200 focus-visible:bg-primary-400",r&&"cursor-default",s),style:n?d:{...r?sE:dE,...d}},b.createElement("span",{title:l,className:U("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!n&&"rounded-t-lg",!n&&(r?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!n&&y&&"group-hover:bg-light-100 group-hover:text-light-800",!n&&y&&"group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",c),style:n?f:{...$,...f}},i&&b.createElement("span",{className:"shrink-0"},i),b.createElement("span",{className:"overflow-hidden text-ellipsis"},o),a))});$1.displayName="TabBrowserPreview";const cE=Z("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),fE=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),mE=Z(["flex items-center w-full border","bg-white transition-[border-color,border-width]"],{variants:{size:{xs:"h-7 px-2 gap-1 rounded text-caption-sm",sm:"h-9 px-3 gap-2 rounded-lg",md:"h-11 px-3 gap-2 rounded-lg"},error:{true:["border-error-200","focus-within:border-2 focus-within:border-error-500"],false:["border-light-200","focus-within:border-2 focus-within:border-primary-500"]},disabled:{true:"bg-light-100 text-light-400 cursor-not-allowed",false:""}},defaultVariants:{size:"md",error:!1,disabled:!1}}),hE=Z(["flex-1 bg-transparent outline-none text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},error:{true:"",false:"text-light-900"}},defaultVariants:{size:"md",error:!1}}),pE=Z("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}}}),bE=Z("flex items-stretch w-full bg-white border overflow-hidden transition-[border-color,border-width]",{variants:{size:{xs:"rounded",sm:"rounded-lg",md:"rounded-lg"},error:{true:["border-error-200","focus-within:border-2 focus-within:border-error-500"],false:["border-light-200","focus-within:border-2 focus-within:border-primary-500"]},disabled:{true:"bg-light-100",false:""}},defaultVariants:{size:"md",error:!1,disabled:!1}}),gE=Z("flex flex-1 items-center min-w-0",{variants:{size:{xs:"gap-1 px-2 py-1",sm:"gap-2 px-3 py-2",md:"gap-2 px-3 py-2"},disabled:{true:"text-light-400 cursor-not-allowed",false:""}},defaultVariants:{size:"md",disabled:!1}}),yE=Z("flex items-center text-light-700 whitespace-nowrap border-r border-light-200",{variants:{size:{xs:"px-2 text-caption-sm",sm:"px-3 text-caption-lg",md:"px-3 text-body-sm"}},defaultVariants:{size:"md"}}),v1=Z(["flex items-center gap-1 shrink-0 bg-transparent p-0 text-light-800 cursor-pointer","hover:bg-transparent hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),$E=Z("flex shrink-0 items-center justify-center gap-1 w-[92px] border-l border-light-200 bg-white font-semibold text-light-800 hover:bg-light-50 disabled:cursor-not-allowed disabled:text-light-400",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),x1=({className:e})=>u.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},u.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),vE={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},xE=({size:e,error:t,disabled:n})=>ee("flex items-center w-full gap-2 rounded-lg border bg-white px-2 transition-[border-color,border-width]",vE[e],t?"border-error-200 focus-within:border-2 focus-within:border-error-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",n&&"bg-light-100 text-light-400 cursor-not-allowed"),CE=({error:e})=>ee("flex items-center gap-1 text-caption-sm font-semibold",e?"":"text-light-800"),DE="flex flex-col w-full max-w-[320px]",C1=u.forwardRef(function({label:t,required:n,hint:r,rightIcon:i,size:a="md",error:l=!1,disabled:o=!1,compact:s=!1,hideCalendarIcon:d=!1,type:c,prefix:f,suffix:m,leadingAddon:h,leadingDropdown:p,trailingDropdown:g,trailingButton:y,maxLength:$,value:x,className:v,wrapperClassName:C,...w},S){const B=!!(h||y),E=u.createElement(u.Fragment,null,p&&u.createElement("button",{type:"button",onClick:p.onClick,disabled:p.disabled||o,className:v1({size:a})},u.createElement("span",null,p.value),u.createElement(x1,{className:"size-5 text-light-500"})),f&&u.createElement("div",{className:"flex items-center"},f),u.createElement("input",{...w,ref:S,type:c,disabled:o,maxLength:$,value:x,className:ee(hE({size:a,error:l}),"h-full",d&&"[&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-clear-button]:hidden",c==="date"&&"[&::-webkit-datetime-edit]:p-0 [&::-webkit-datetime-edit-fields-wrapper]:p-0",v)}),(i||m)&&u.createElement("div",{className:"flex h-full items-center gap-2"},i&&u.createElement("div",{className:"flex h-full items-center pb-0.5 text-light-400 hover:text-light-600"},i),m&&u.createElement("div",{className:"flex h-full items-center gap-1 leading-none text-light-700"},m)),g&&u.createElement("button",{type:"button",onClick:g.onClick,disabled:g.disabled||o,className:v1({size:a})},u.createElement("span",null,g.value),u.createElement(x1,{className:"size-5 text-light-500"})));return u.createElement("div",{className:ee(s?DE:cE({size:a}),C)},t&&u.createElement("label",{className:s?CE({error:l}):fE({error:l})},t,n&&u.createElement("span",{className:"text-error-400"},"*")),B?u.createElement("div",{className:bE({size:a,error:l,disabled:o})},h&&u.createElement("div",{className:yE({size:a})},h),u.createElement("div",{className:gE({size:a,disabled:o})},E),y&&u.createElement("button",{type:"button",onClick:y.onClick,disabled:y.disabled||o,className:$E({size:a})},y.icon,u.createElement("span",null,y.label))):u.createElement("div",{className:s?xE({size:a,error:l,disabled:o}):mE({size:a,error:l,disabled:o})},E),$&&typeof x=="string"&&u.createElement("div",{className:"text-right text-xs text-light-400"},x.length,"/",$),r&&u.createElement("p",{className:pE({error:l})},r))});function EE({children:e}){return React.createElement("div",{className:"flex items-center text-light-500"},e)}function wE({children:e}){return React.createElement("div",{className:"flex items-center text-light-500"},e)}const SE=Z("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),PE=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),Tu={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},kE=Z(["flex items-center w-full gap-2 border bg-white","transition-[border-color,border-width]","data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100 data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 px-2 rounded text-caption-sm",sm:"h-9 px-3 rounded-lg",md:"h-11 px-3 rounded-lg"},compact:{true:"rounded-lg px-2",false:""},error:{true:"",false:"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500"}},compoundVariants:[{compact:!0,size:"xs",class:Tu.xs},{compact:!0,size:"sm",class:Tu.sm},{compact:!0,size:"md",class:Tu.md}],defaultVariants:{size:"md",compact:!1,error:!1}}),BE=Z(["flex-1 min-w-0 bg-transparent outline-none text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),D1="flex items-center shrink-0",NE=Z("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),ei=b.forwardRef(function({label:t,required:n,hint:r,size:i="md",error:a=!1,disabled:l=!1,compact:o=!1,leftSlot:s,rightSlot:d,className:c,wrapperClassName:f,...m},h){return b.createElement("div",{className:U(SE({size:i}),f)},t&&b.createElement("label",{className:PE({error:a})},t,n&&b.createElement("span",{className:"text-error-400"},"*")),b.createElement(Lr,{isDisabled:l,isInvalid:a,className:kE({size:i,compact:o,error:a})},s&&b.createElement("div",{className:D1},s),b.createElement(ha,{...m,ref:h,disabled:l,required:n,className:U(BE({size:i}),c)}),d&&b.createElement("div",{className:D1},d)),r&&b.createElement("p",{className:NE({error:a})},r))});ei.displayName="BaseInput";const AE={xs:12,sm:16,md:20,lg:24,xl:32},An=({icon:e,size:t="md",strokeWidth:n=2,label:r,className:i,...a})=>b.createElement(e,{size:AE[t],stroke:n,className:ee("shrink-0",i),"aria-hidden":r?void 0:!0,role:r?"img":void 0,"aria-label":r,...a});An.displayName="Icon";const E1=U("flex max-h-60 w-full flex-col overflow-y-auto py-1 outline-none","[scrollbar-width:thin] [scrollbar-color:theme(colors.light.300)_theme(colors.light.50)]","[&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-light-50","[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-light-300"),w1=U("flex size-4 shrink-0 items-center justify-center text-light-500"),S1=U("ml-auto shrink-0 font-normal text-caption-sm text-light-500"),P1=U("my-1 h-px w-full shrink-0 bg-light-200"),FE=U("flex w-full flex-col items-start border-b border-light-200 px-4 py-3"),Iu=U("group flex h-12 w-full items-center px-2 py-0.5 outline-none","cursor-pointer data-[disabled]:cursor-not-allowed"),TE=Z(["flex h-11 min-w-0 flex-1 items-center gap-2 overflow-hidden rounded-md","py-2.5 pl-1 pr-2.5 text-left font-nunito text-body-sm font-medium","[&_[data-slot=supporting-text]]:font-normal"],{variants:{active:{true:"bg-light-50 text-light-800",false:"text-light-900"},focusVisible:{true:"shadow-focus",false:""},nativeInteraction:{true:"group-hover:bg-light-50 group-active:bg-light-50",false:""},disabled:{true:"text-light-400 [&_[data-slot=supporting-text]]:text-light-400",false:"[&_[data-slot=supporting-text]]:text-light-700"}},defaultVariants:{active:!1,focusVisible:!1,nativeInteraction:!1,disabled:!1}}),IE="flex shrink-0 items-center justify-center",ME="flex min-w-0 flex-1 items-center gap-2 overflow-hidden whitespace-nowrap",KE="ml-auto flex shrink-0 items-center justify-center",k1=e=>e!=null&&e!==!1;function Mu({state:e,leadingSlot:t,hasCustomLeadingSlot:n=!1,children:r,trailingSlot:i,nativeInteraction:a=!1}){const l=n?t:e.selectionMode==="multiple"?b.createElement("span",{"aria-hidden":"true","data-slot":"selection-indicator","data-selected":String(e.isSelected),className:`${G2({size:"sm",checked:e.isSelected,disabled:e.isDisabled})} pointer-events-none shrink-0`},e.isSelected&&b.createElement(yi,{size:12,strokeWidth:2.5})):null;return b.createElement("span",{"data-slot":"collection-item-content",className:U(TE({active:e.isHovered||e.isPressed||e.isSelected||e.isFocusVisible,focusVisible:e.isFocusVisible,nativeInteraction:a&&!e.isDisabled,disabled:e.isDisabled}))},k1(l)&&b.createElement("span",{"data-slot":"leading",className:IE},l),b.createElement("span",{"data-slot":"main",className:ME},r),k1(i)&&b.createElement("span",{"data-slot":"trailing",className:KE},i))}const or=(e,t)=>typeof e=="function"?e(t):e,B1=e=>({isHovered:e.isHovered,isPressed:e.isPressed,isSelected:e.isSelected,isFocused:e.isFocused,isFocusVisible:e.isFocusVisible,isDisabled:e.isDisabled,selectionMode:e.selectionMode,selectionBehavior:e.selectionBehavior});function LE({className:e,style:t,leadingSlot:n,children:r,trailingSlot:i,...a},l){const o=a.textValue??(typeof r=="string"?r:void 0);return b.createElement(Gx,{ref:l,...a,textValue:o,style:t,className:U(Iu,e)},s=>b.createElement(Mu,{state:B1(s),leadingSlot:or(n,s),hasCustomLeadingSlot:n!==void 0,trailingSlot:or(i,s)},or(r,s)))}const N1=b.forwardRef(LE);function OE({className:e,style:t,leadingSlot:n,children:r,trailingSlot:i,...a},l){const o=a.textValue??(typeof r=="string"?r:void 0);return b.createElement(j3,{ref:l,...a,textValue:o,style:t,className:U(Iu,e)},s=>b.createElement(Mu,{state:B1(s),leadingSlot:or(n,s),hasCustomLeadingSlot:n!==void 0,trailingSlot:or(i,s)},or(r,s)))}const A1=b.forwardRef(OE),Ku=b.createContext(null);function zE({className:e,style:t,...n},r){return b.createElement(Ku.Provider,{value:"menu"},b.createElement(R3,{ref:r,...n,style:t,className:U(E1,e)}))}const Lu=b.forwardRef(zE);function VE({className:e,style:t,content:n="none",icon:r,shortcut:i,children:a,...l},o){const s=n==="icon"?r:n==="selection"?d=>b.createElement("span",{className:w1},d.isSelected&&b.createElement(An,{icon:yi,size:"sm","aria-hidden":"true"})):void 0;return b.createElement(A1,{ref:o,...l,style:t,className:e,leadingSlot:s,trailingSlot:i?b.createElement("span",{className:S1},i):void 0},a)}const Ou=b.forwardRef(VE),_E=({className:e})=>b.createElement(Fm,{className:U(P1,e)}),RE=({children:e,className:t})=>b.createElement($x,{className:U(FE,t)},e),jE=Z(["flex items-center gap-1 shrink-0 border-r border-light-200 bg-transparent","text-light-800 cursor-pointer","hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"pr-2 text-caption-sm",sm:"pr-2 text-caption-lg",md:"pr-2 text-body-sm"}},defaultVariants:{size:"md"}}),HE="w-72",UE="border-b border-light-200 p-2";function WE({size:e,disabled:t,countries:n,selected:r,onSelect:i}){const[a,l]=b.useState(""),o=a?n.filter(s=>s.name.toLowerCase().includes(a.toLowerCase())||s.dial_code.includes(a)||s.code.toLowerCase()===a.toLowerCase()):n;return b.createElement(Na,{onOpenChange:s=>{s||l("")}},b.createElement(qt,{isDisabled:t,"aria-label":`Country: ${r.name} (${r.dial_code})`,className:jE({size:e})},b.createElement("span",null,r.code),b.createElement($i,{size:14,"aria-hidden":"true"})),b.createElement(ln,{placement:"bottom start"},b.createElement("div",{className:UE},b.createElement("input",{autoFocus:!0,value:a,onChange:s=>l(s.target.value),placeholder:"Search country...",className:"w-full bg-transparent text-sm text-light-900 outline-none placeholder:text-light-500"})),b.createElement(Lu,{"aria-label":"Country",className:U(HE,"max-h-60 overflow-y-auto"),items:o,onAction:s=>{const d=o.find(c=>c.code===s);d&&i(d)}},s=>b.createElement(Ou,{id:s.code,textValue:`${s.name} ${s.dial_code}`},b.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2"},b.createElement("span",{className:"min-w-0 flex-1 truncate"},s.name),b.createElement("span",{className:"shrink-0 text-light-500"},s.dial_code))))))}const F1={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function zu(e,t){var n=Array.prototype.slice.call(t);return n.push(F1),e.apply(this,n)}function T1(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),l=Number(r[i]);if(a>l)return 1;if(l>a)return-1;if(!isNaN(a)&&isNaN(l))return 1;if(isNaN(a)&&!isNaN(l))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var GE={}.constructor;function Fn(e){return e!=null&&e.constructor===GE}var ZE=/^\d+$/;function YE(e){return ZE.test(e)}function ur(e){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(e)}function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XE(r.key),r)}}function Ua(e,t,n){return t&&qE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XE(e){var t=JE(e,"string");return ur(t)=="symbol"?t:t+""}function JE(e,t){if(ur(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ur(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var QE="1.2.0",ew="1.7.35",I1=" ext. ",Me=(function(){function e(t){Ha(this,e),L1(t),this.metadata=t,O1.call(this,t)}return Ua(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){var i,a;if(n&&(YE(n)?a=n:i=n),r&&(a=r),i&&i!=="001"){var l=this.getCountryMetadata(i);if(!l)throw new Error("Unknown country: ".concat(i));this.numberingPlan=new M1(l,this)}else if(a){if(!this.hasCallingCode(a))throw new Error("Unknown calling code: ".concat(a));this.numberingPlan=new M1(this.getNumberingPlanMetadata(a),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),M1=(function(){function e(t,n){Ha(this,e),this.globalMetadataObject=n,this.metadata=t,O1.call(this,n.metadata)}return Ua(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return r.map(function(i){return new tw(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&K1(this.types(),n))return new rw(K1(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?I1:this.metadata[13]||I1}}])})(),tw=(function(){function e(t,n){Ha(this,e),this._format=t,this.metadata=n}return Ua(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!nw.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),nw=/^\(?\$1\)?$/,rw=(function(){function e(t,n){Ha(this,e),this.type=t,this.metadata=n}return Ua(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function K1(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function L1(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Fn(e)||!Fn(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Fn(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+iw(e)+": "+e,"."))}var iw=function(t){return ur(t)};function Vu(e,t){var n=new Me(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function aw(e,t){return t.countries.hasOwnProperty(e)}function O1(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?T1(t,QE)===-1?this.v2=!0:T1(t,ew)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function ti(e,t,n){return lw(e,void 0,t,n)}function lw(e,t,n,r){n&&(r=new Me(r.metadata),r.selectNumberingPlan(n));var i=r.type(t),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";var l=e.length,o=a[0];return o===l?"IS_POSSIBLE":o>l?"TOO_SHORT":a[a.length-1]<l?"TOO_LONG":a.indexOf(l,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function ow(e,t,n){t===void 0&&(t={});var r=new Me(n);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return z1(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function z1(e,t){return ti(e,void 0,t)==="IS_POSSIBLE"}function Vt(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function uw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=sw(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sw(e,t){if(e){if(typeof e=="string")return V1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V1(e,t):void 0}}function V1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var dw=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function _u(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){var r=new Me(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(Vt(i,r.nationalNumberPattern())){if(Ru(i,"FIXED_LINE",r))return r.type("MOBILE")&&r.type("MOBILE").pattern()===""||!r.type("MOBILE")||Ru(i,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=uw(dw),l;!(l=a()).done;){var o=l.value;if(Ru(i,o,r))return o}}}}function Ru(e,t,n){var r=n.type(t);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?!1:Vt(e,r.pattern())}function cw(e,t,n){t=t||{};var r=new Me(n);if(r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes())return _u(e,t,r.metadata)!==void 0;var i=t.v2?e.nationalNumber:e.phone;return Vt(i,r.nationalNumberPattern())}var fw=/^[A-Z]{2}$/;function mw(e){return fw.test(e)}function hw(e,t){var n,r,i=new Me(t);return mw(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e,{country:n,callingCode:r}}function pw(e,t,n){var r=new Me(n),i=r.getCountryCodesForCallingCode(e);return i?i.filter(function(a){return bw(t,a,n)}):[]}function bw(e,t,n){var r=new Me(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var ju=2,gw=17,yw=3,Ue="0-90-9٠-٩۰-۹",$w="-‐-―−ー-",vw="//",xw="..",Cw=" ",Dw="()()[]\\[\\]",Ew="~⁓∼~",ct="".concat($w).concat(vw).concat(xw).concat(Cw).concat(Dw).concat(Ew),Wa="++",ww=new RegExp("(["+Ue+"])");function _1(e,t,n,r){if(t){var i=new Me(r);i.selectNumberingPlan(t||n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var l=e.match(ww);if(!(l&&l[1]!=null&&l[1].length>0&&l[1]==="0"))return e}}}function Hu(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,l=r.length-1,o=l>0&&r[l];if(t.nationalPrefixTransformRule()&&o)i=e.replace(n,t.nationalPrefixTransformRule()),l>1&&(a=r[1]);else{var s=r[0];i=e.slice(s.length),o&&(a=r[1])}var d;if(o){var c=e.indexOf(r[1]),f=e.slice(0,c);f===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:i,nationalPrefix:d,carrierCode:a}}}return{nationalNumber:e}}function Sw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Pw(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pw(e,t){if(e){if(typeof e=="string")return R1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R1(e,t):void 0}}function R1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j1(e,t,n){for(var r=new Me(n),i=Sw(t),a;!(a=i()).done;){var l=a.value;if(r.selectNumberingPlan(l),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return l}else if(_u({phone:e,country:l},void 0,r.metadata))return l}}function Uu(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:j1(n,i,r.metadata)}function Wu(e,t,n){var r=Hu(e,n),i=r.carrierCode,a=r.nationalNumber;if(a!==e){if(!kw(e,a,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=Uu(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n})),!Bw(a,t,n)))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:i}}function kw(e,t,n){return!(Vt(e,n.nationalNumberPattern())&&!Vt(t,n.nationalNumberPattern()))}function Bw(e,t,n){switch(ti(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function H1(e,t,n,r,i){if(!(t||n||r))return{number:e};var a=t||n?Vu(t||n,i):r;if(e.indexOf(a)===0){var l=new Me(i);l.selectNumberingPlan(t||n||r);var o=e.slice(a.length),s=Wu(o,void 0,l),d=s.nationalNumber,c=Wu(e,void 0,l),f=c.nationalNumber;if(!Vt(f,l.nationalNumberPattern())&&Vt(d,l.nationalNumberPattern())||ti(f,void 0,l)==="TOO_LONG")return{countryCallingCode:a,number:o}}return{number:e}}function Gu(e,t,n,r,i){if(!e)return{};var a;if(e[0]!=="+"){var l=_1(e,t||n,r,i);if(l&&l!==e)a=!0,e="+"+l;else{if(t||n||r){var o=H1(e,t,n,r,i),s=o.countryCallingCode,d=o.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:d}}return{number:e}}}if(e[1]==="0")return{};for(var c=new Me(i),f=2;f-1<=yw&&f<=e.length;){var m=e.slice(1,f);if(c.hasCallingCode(m))return c.selectNumberingPlan(m),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:m,number:e.slice(f)};f++}return{}}function U1(e){return e.replace(new RegExp("[".concat(ct,"]+"),"g")," ").trim()}var W1=/(\$\d)/;function G1(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(W1,t.nationalPrefixFormattingRule()):t.format());return r?U1(a):a}var Nw=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Aw(e,t,n){var r=new Me(n);if(r.selectNumberingPlan(e||t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Nw.test(r.IDDPrefix()))return r.IDDPrefix()}var Fw=";ext=",sr=function(t){return"([".concat(Ue,"]{1,").concat(t,"})")};function Z1(e){var t="20",n="15",r="9",i="6",a="[ \\t,]*",l="[:\\..]?[ \\t,-]*",o="#?",s="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",c="[- ]+",f="[ \\t]*",m="(?:,{2}|;)",h=Fw+sr(t),p=a+s+l+sr(t)+o,g=a+d+l+sr(r)+o,y=c+sr(i)+"#",$=f+m+l+sr(n)+o,x=f+"(?:,)+"+l+sr(r)+o;return h+"|"+p+"|"+g+"|"+y+"|"+$+"|"+x}var Tw="["+Ue+"]{"+ju+"}",Iw="["+Wa+"]{0,1}(?:["+ct+"]*["+Ue+"]){3,}["+ct+Ue+"]*",Mw=new RegExp("^["+Wa+"]{0,1}(?:["+ct+"]*["+Ue+"]){1,2}$","i"),Kw=Iw+"(?:"+Z1()+")?",Lw=new RegExp("^"+Tw+"$|^"+Kw+"$","i");function Ow(e){return e.length>=ju&&Lw.test(e)}function zw(e){return Mw.test(e)}function Vw(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var Y1={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function _w(e,t,n,r){n?n=Hw({},Y1,n):n=Y1;var i=new Me(r);if(e.country&&e.country!=="001"){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=i.countryCallingCode(),l=n.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return l?(o=Ga(l,e.carrierCode,"NATIONAL",i,n),Zu(o,e.ext,i,n.formatExtension)):"";case"INTERNATIONAL":return l?(o=Ga(l,null,"INTERNATIONAL",i,n),o="+".concat(a," ").concat(o),Zu(o,e.ext,i,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(l);case"RFC3966":return Vw({number:"+".concat(a).concat(l),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=jw(l,e.carrierCode,a,n.fromCountry,i);return s?Zu(s,e.ext,i,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Ga(e,t,n,r,i){var a=Rw(r.formats(),e);return a?G1(e,a,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function Rw(e,t){return Uw(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return Vt(t,n.pattern())})}function Zu(e,t,n,r){return t?r(e,t,n):e}function jw(e,t,n,r,i){var a=Vu(r,i.metadata);if(a===n){var l=Ga(e,t,"NATIONAL",i);return n==="1"?n+" "+l:l}var o=Aw(r,void 0,i.metadata);if(o)return"".concat(o," ").concat(n," ").concat(Ga(e,null,"INTERNATIONAL",i))}function Hw(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}function Uw(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function q1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function X1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q1(Object(n),!0).forEach(function(r){Ww(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ww(e,t,n){return(t=J1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,J1(r.key),r)}}function Yw(e,t,n){return t&&Zw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function J1(e){var t=qw(e,"string");return ni(t)=="symbol"?t:t+""}function qw(e,t){if(ni(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ni(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Q1=(function(){function e(t,n,r){if(Gw(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Fn(n)&&Fn(n.countries)){r=n;var i=t;if(!Xw.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=Gu(i,void 0,void 0,void 0,r),l=a.countryCallingCode,o=a.number;if(n=o,t=l,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");L1(r);var s=hw(t,r),d=s.country,c=s.callingCode;this.country=d,this.countryCallingCode=c,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Yw(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:pw(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return ow(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return cw(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new Me(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return _u(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return _w(this,n,r?X1(X1({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),Xw=/^\+\d+$/;function Yu(e){"@babel/helpers - typeof";return Yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yu(e)}function Jw(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Qw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eS(e,t,n){return t=ii(t),tS(e,Xu()?Reflect.construct(t,n||[],ii(e).constructor):t.apply(e,n))}function tS(e,t){if(t&&(Yu(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nS(e)}function nS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ri(e,t)}function qu(e){var t=typeof Map=="function"?new Map:void 0;return qu=function(r){if(r===null||!aS(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return iS(r,arguments,ii(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ri(i,r)},qu(e)}function iS(e,t,n){if(Xu())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&ri(i,n.prototype),i}function Xu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xu=function(){return!!e})()}function aS(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ri(e,t){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ri(e,t)}function ii(e){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ii(e)}var _t=(function(e){function t(n){var r;return Qw(this,t),r=eS(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return rS(t,e),Jw(t)})(qu(Error)),ey=new RegExp("(?:"+Z1()+")$","i");function lS(e){var t=e.search(ey);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(ey),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}function oS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=uS(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uS(e,t){if(e){if(typeof e=="string")return ty(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ty(e,t):void 0}}function ty(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var sS={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function ny(e){return sS[e]}function Za(e){for(var t="",n=oS(e.split("")),r;!(r=n()).done;){var i=r.value,a=ny(i);a&&(t+=a)}return t}function dS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=cS(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cS(e,t){if(e){if(typeof e=="string")return ry(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ry(e,t):void 0}}function ry(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iy(e){for(var t="",n=dS(e.split("")),r;!(r=n()).done;){var i=r.value;t+=fS(i,t)||""}return t}function fS(e,t,n){return e==="+"?t?void 0:"+":ny(e)}var ay="+",mS="[\\-\\.\\(\\)]?",ly="(["+Ue+"]|"+mS+")",hS="^\\"+ay+ly+"*["+Ue+"]"+ly+"*$",pS=new RegExp(hS,"g"),Ju=Ue,bS="["+Ju+"]+((\\-)*["+Ju+"])*",gS="a-zA-Z",yS="["+gS+"]+((\\-)*["+Ju+"])*",$S="^("+bS+"\\.)*"+yS+"\\.?$",vS=new RegExp($S,"g"),oy="tel:",Qu=";phone-context=",xS=";isub=";function CS(e){var t=e.indexOf(Qu);if(t<0)return null;var n=t+Qu.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function DS(e){return e===null?!0:e.length===0?!1:pS.test(e)||vS.test(e)}function ES(e,t){var n=t.extractFormattedPhoneNumber,r=CS(e);if(!DS(r))throw new _t("NOT_A_NUMBER");var i;if(r===null)i=n(e)||"";else{i="",r.charAt(0)===ay&&(i+=r);var a=e.indexOf(oy),l;a>=0?l=a+oy.length:l=0;var o=e.indexOf(Qu);i+=e.substring(l,o)}var s=i.indexOf(xS);if(s>0&&(i=i.substring(0,s)),i!=="")return i}var wS=250,SS=new RegExp("["+Wa+Ue+"]"),PS=new RegExp("[^"+Ue+"#]+$");function kS(e,t,n){t=t||{};var r=new Me(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new _t("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var i=NS(e,t.v2,t.extract),a=i.number,l=i.ext,o=i.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new _t("TOO_SHORT"):new _t("NOT_A_NUMBER");return{}}var s=FS(a,t.defaultCountry,t.defaultCallingCode,r),d=s.country,c=s.nationalNumber,f=s.countryCallingCode,m=s.countryCallingCodeSource,h=s.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new _t("INVALID_COUNTRY");return{}}if(!c||c.length<ju){if(t.v2)throw new _t("TOO_SHORT");return{}}if(c.length>gw){if(t.v2)throw new _t("TOO_LONG");return{}}if(t.v2){var p=new Q1(f,c,r.metadata);return d&&(p.country=d),h&&(p.carrierCode=h),l&&(p.ext=l),p.__countryCallingCodeSource=m,p}var g=(t.extended?r.hasSelectedNumberingPlan():d)?Vt(c,r.nationalNumberPattern()):!1;return t.extended?{country:d,countryCallingCode:f,carrierCode:h,valid:g,possible:g?!0:!!(t.extended===!0&&r.possibleLengths()&&z1(c,r)),phone:c,ext:l}:g?AS(d,c,l):{}}function BS(e,t,n){if(e){if(e.length>wS){if(n)throw new _t("TOO_LONG");return}if(t===!1)return e;var r=e.search(SS);if(!(r<0))return e.slice(r).replace(PS,"")}}function NS(e,t,n){var r=ES(e,{extractFormattedPhoneNumber:function(l){return BS(l,n,t)}});if(!r)return{};if(!Ow(r))return zw(r)?{error:"TOO_SHORT"}:{};var i=lS(r);return i.ext?i:{number:r}}function AS(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function FS(e,t,n,r){var i=Gu(iy(e),void 0,t,n,r.metadata),a=i.countryCallingCodeSource,l=i.countryCallingCode,o=i.number,s;if(l)r.selectNumberingPlan(l);else if(o&&(t||n))t?(s=t,r.selectNumberingPlan(t),l=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),l=n);else return{};if(!o)return{countryCallingCodeSource:a,countryCallingCode:l};var d=Wu(iy(o),void 0,r),c=d.nationalNumber,f=d.carrierCode,m=Uu(l,{nationalNumber:c,metadata:r});return m&&(s=m,m==="001"||r.selectNumberingPlan(s)),{country:s,countryCallingCode:l,countryCallingCodeSource:a,nationalNumber:c,carrierCode:f}}function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uy(Object(n),!0).forEach(function(r){TS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TS(e,t,n){return(t=IS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IS(e){var t=MS(e,"string");return ai(t)=="symbol"?t:t+""}function MS(e,t){if(ai(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ai(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KS(e,t,n){return kS(e,sy(sy({},t),{},{v2:!0}),n)}function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function dy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dy(Object(n),!0).forEach(function(r){OS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OS(e,t,n){return(t=zS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zS(e){var t=VS(e,"string");return li(t)=="symbol"?t:t+""}function VS(e,t){if(li(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(li(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _S(e,t){return US(e)||HS(e,t)||jS(e,t)||RS()}function RS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jS(e,t){if(e){if(typeof e=="string")return cy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cy(e,t):void 0}}function cy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,o=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(c){d=!0,i=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function US(e){if(Array.isArray(e))return e}function WS(e){var t=Array.prototype.slice.call(e),n=_S(t,4),r=n[0],i=n[1],a=n[2],l=n[3],o,s,d;if(typeof r=="string")o=r;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")l?(s=a,d=l):(s=void 0,d=a),i&&(s=LS({defaultCountry:i},s));else if(Fn(i))a?(s=i,d=a):d=i;else throw new Error("Invalid second argument: ".concat(i));return{text:o,options:s,metadata:d}}function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function fy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function my(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fy(Object(n),!0).forEach(function(r){GS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GS(e,t,n){return(t=ZS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZS(e){var t=YS(e,"string");return oi(t)=="symbol"?t:t+""}function YS(e,t){if(oi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qS(e,t,n){t&&t.defaultCountry&&!aw(t.defaultCountry,n)&&(t=my(my({},t),{},{defaultCountry:void 0}));try{return KS(e,t,n)}catch(r){if(!(r instanceof _t))throw r}}function XS(){var e=WS(arguments),t=e.text,n=e.options,r=e.metadata;return qS(t,n,r)}function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function JS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tP(r.key),r)}}function eP(e,t,n){return t&&QS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tP(e){var t=nP(e,"string");return ui(t)=="symbol"?t:t+""}function nP(e,t){if(ui(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ui(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rP=(function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;JS(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return eP(e,[{key:"reset",value:function(n){var r=n.country,i=n.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(r,i)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:"update",value:function(n){for(var r=0,i=Object.keys(n);r<i.length;r++){var a=i[r];this[a]=n[a]}}},{key:"initCountryAndCallingCode",value:function(n,r){this.setCountry(n),this.setCallingCode(r)}},{key:"setCountry",value:function(n){this.country=n,this.onCountryChange(n)}},{key:"setCallingCode",value:function(n){this.callingCode=n,this.onCallingCodeChange(n,this.country)}},{key:"startInternationalNumber",value:function(n,r){this.international=!0,this.initCountryAndCallingCode(n,r)}},{key:"appendDigits",value:function(n){this.digits+=n}},{key:"appendNationalSignificantNumberDigits",value:function(n){this.nationalSignificantNumber+=n}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])})();function iP(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=aP(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aP(e,t){if(e){if(typeof e=="string")return hy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hy(e,t):void 0}}function hy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ft="x",es=new RegExp(ft);function Ya(e,t){if(t<1)return"";for(var n="";t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function py(e,t){return e[t]===")"&&t++,lP(e.slice(0,t))}function lP(e){for(var t=[],n=0;n<e.length;)e[n]==="("?t.push(n):e[n]===")"&&t.pop(),n++;var r=0,i="";t.push(e.length);for(var a=0,l=t;a<l.length;a++){var o=l[a];i+=e.slice(r,o),r=o+1}return i}function oP(e,t,n){for(var r=iP(n.split("")),i;!(i=r()).done;){var a=i.value;if(e.slice(t+1).search(es)<0)return;t=e.search(es),e=e.replace(es,a)}return[e,t]}function uP(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,l=new RegExp("^(?:".concat(t.pattern(),")$"));if(l.test(e.nationalSignificantNumber))return dP(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:a})}function sP(e,t){return ti(e,void 0,t)==="IS_POSSIBLE"}function dP(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var l=by(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:r});if(l)return l}return by(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:r})}function by(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,l=G1(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:r});if(i||(e.nationalPrefix?l=e.nationalPrefix+a(t)+l:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(l=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+l)),cP(l,e))return l}function cP(e,t){return Za(e)===t.getNationalDigits()}function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function fP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pP(r.key),r)}}function hP(e,t,n){return t&&mP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pP(e){var t=bP(e,"string");return si(t)=="symbol"?t:t+""}function bP(e,t){if(si(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(si(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gP=(function(){function e(){fP(this,e)}return hP(e,[{key:"parse",value:function(n){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(n),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var r=this.context[0],i=r.branches,a=r.instructions;if(i)return{op:"|",args:i.concat([ts(a)])};if(a.length===0)throw new Error("Pattern is required");return a.length===1?a[0]:a}},{key:"startContext",value:function(n){this.context.push(n)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(n){if(!n)throw new Error("Pattern is required");var r=n.match(vP);if(!r){if($P.test(n))throw new Error("Illegal characters found in a pattern: ".concat(n));this.getContext().instructions=this.getContext().instructions.concat(n.split(""));return}var i=r[1],a=n.slice(0,r.index),l=n.slice(r.index+i.length);switch(i){case"(?:":a&&this.parsePattern(a),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(a&&this.parsePattern(a),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var o=this.getContext(),s=o.branches;s.push(ts(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:s});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(a&&this.parsePattern(a),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(ts(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":a&&this.parsePattern(a),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:yP(a)});break;default:throw new Error("Unknown operator: ".concat(i))}l&&this.parsePattern(l)}}])})();function yP(e){for(var t=[],n=0;n<e.length;){if(e[n]==="-"){if(n===0||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,i=e[n+1].charCodeAt(0)-1,a=r;a<=i;)t.push(String.fromCharCode(a)),a++}else t.push(e[n]);n++}return t}var $P=/[\(\)\[\]\?\:\|]/,vP=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function ts(e){return e.length===1?e[0]:e}function gy(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=xP(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xP(e,t){if(e){if(typeof e=="string")return yy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yy(e,t):void 0}}function yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function CP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wP(r.key),r)}}function EP(e,t,n){return t&&DP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wP(e){var t=SP(e,"string");return di(t)=="symbol"?t:t+""}function SP(e,t){if(di(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(di(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var PP=(function(){function e(t){CP(this,e),this.matchTree=new gP().parse(t)}return EP(e,[{key:"match",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.allowOverflow;if(!n)throw new Error("String is required");var a=ns(n.split(""),this.matchTree,!0);if(a&&a.match&&delete a.matchedChars,!(a&&a.overflow&&!i))return a}}])})();function ns(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var i=e.slice(),a=0;a<t.length;){var l=t[a],o=ns(i,l,n&&a===t.length-1);if(o){if(o.overflow)return o;if(o.match){if(i=i.slice(o.matchedChars.length),i.length===0)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(o.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
|
|
20
|
+
`.concat(JSON.stringify(o,null,2)))}}else return;a++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case"|":for(var s,d=gy(t.args),c;!(c=d()).done;){var f=c.value,m=ns(e,f,n);if(m){if(m.overflow)return m;if(m.match)return{match:!0,matchedChars:m.matchedChars};if(m.partialMatch)s=!0;else throw new Error(`Unsupported match result:
|
|
21
|
+
`.concat(JSON.stringify(m,null,2)))}}return s?{partialMatch:!0}:void 0;case"[]":for(var h=gy(t.args),p;!(p=h()).done;){var g=p.value;if(e[0]===g)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[g]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function $y(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=kP(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kP(e,t){if(e){if(typeof e=="string")return vy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vy(e,t):void 0}}function vy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FP(r.key),r)}}function AP(e,t,n){return t&&NP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FP(e){var t=TP(e,"string");return ci(t)=="symbol"?t:t+""}function TP(e,t){if(ci(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ci(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rs="9",IP=15,MP=Ya(rs,IP),KP=/[- ]/,LP=function(){return/\[([^\[\]])*\]/g},OP=function(){return/\d(?=[^,}][^,}])/g},zP=new RegExp("["+ct+"]*\\$1["+ct+"]*(\\$\\d["+ct+"]*)*$"),xy=3,VP=(function(){function e(t){t.state;var n=t.metadata;BP(this,e),this.metadata=n,this.resetFormat()}return AP(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(n,r){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,r){var i=this;if(sP(r.nationalSignificantNumber,this.metadata))for(var a=$y(this.matchingFormats),l;!(l=a()).done;){var o=l.value,s=uP(r,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(c){return i.shouldTryNationalPrefixFormattingRule(c,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(c){return i.getSeparatorAfterNationalPrefix(c)}});if(s)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(s.replace(/\d/g,ft),r),this.populatedNationalNumberTemplate=s,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(ft),s}return this.formatNationalNumberWithNextDigits(n,r)}},{key:"formatNationalNumberWithNextDigits",value:function(n,r){var i=this.chosenFormat,a=this.chooseFormat(r);if(a)return a===i?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var r=this,i=n.nationalSignificantNumber,a=n.nationalPrefix,l=n.international,o=i,s=o.length-xy;s<0&&(s=0),this.matchingFormats=this.matchingFormats.filter(function(d){return r.formatSuits(d,l,a)&&r.formatMatches(d,o,s)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,r,i){return!(i&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!i&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,r,i){var a=n.leadingDigitsPatterns().length;if(a===0)return!0;i=Math.min(i,a-1);var l=n.leadingDigitsPatterns()[i];if(r.length<xy)try{return new PP(l).match(r,{allowOverflow:!0})!==void 0}catch(o){return console.error(o),!0}return new RegExp("^(".concat(l,")")).test(r)}},{key:"getFormatFormat",value:function(n,r){return r?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var r=this,i=function(){var d=o.value;return r.chosenFormat===d?0:zP.test(r.getFormatFormat(d,n.international))?r.createTemplateForFormat(d,n)?(r.chosenFormat=d,0):(r.matchingFormats=r.matchingFormats.filter(function(c){return c!==d}),1):1},a,l=$y(this.matchingFormats.slice()),o;!(o=l()).done&&(a=i(),a!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,r){if(!(n.pattern().indexOf("|")>=0)){var i=this.getTemplateForFormat(n,r);if(i)return this.setNationalNumberTemplate(i,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&KP.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var i=n.IDDPrefix,a=n.missingPlus;return i?r&&r.spacing===!1?i:i+" ":a?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,i=0,a=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";i<a.length+n.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(ft,r+1),i++;return py(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(n,r){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,ft)+Ya(ft,r.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,r){var i=r.nationalSignificantNumber,a=r.international,l=r.nationalPrefix,o=r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,s=n.pattern();s=s.replace(LP(),"\\d").replace(OP(),"\\d");var d=MP.match(s)[0];if(!(i.length>d.length)){var c=new RegExp("^"+s+"$"),f=i.replace(/\d/g,rs);c.test(f)&&(d=f);var m=this.getFormatFormat(n,a),h;if(this.shouldTryNationalPrefixFormattingRule(n,{international:a,nationalPrefix:l})){var p=m.replace(W1,n.nationalPrefixFormattingRule());if(Za(n.nationalPrefixFormattingRule())===(l||"")+Za("$1")&&(m=p,h=!0,l))for(var g=l.length;g>0;)m=m.replace(/\d/,ft),g--}var y=d.replace(new RegExp(s),m).replace(new RegExp(rs,"g"),ft);return h||(o?y=Ya(ft,o.length)+" "+y:l&&(y=Ya(ft,l.length)+this.getSeparatorAfterNationalPrefix(n)+y)),a&&(y=U1(y)),y}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=oP(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],py(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var i=r.international,a=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var l=n.usesNationalPrefix();if(l&&a||!l&&!i)return!0}}}])})();function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function Cy(e,t){return HP(e)||jP(e,t)||RP(e,t)||_P()}function _P(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RP(e,t){if(e){if(typeof e=="string")return Dy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dy(e,t):void 0}}function Dy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,o=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(c){d=!0,i=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function HP(e){if(Array.isArray(e))return e}function UP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZP(r.key),r)}}function GP(e,t,n){return t&&WP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZP(e){var t=YP(e,"string");return fi(t)=="symbol"?t:t+""}function YP(e,t){if(fi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qP="["+ct+Ue+"]+",XP=new RegExp("^"+qP+"$","i"),JP="(?:["+Wa+"]["+ct+Ue+"]*|["+ct+Ue+"]+)",QP=new RegExp("[^"+ct+Ue+"]+.*$"),ek=/[^\d\[\]]/,tk=(function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,a=t.onNationalSignificantNumberChange;UP(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}return GP(e,[{key:"input",value:function(n,r){var i=ik(n),a=Cy(i,2),l=a[0],o=a[1],s=Za(l),d;return o&&(r.digits||(r.startInternationalNumber(void 0,void 0),s||(d=!0))),s&&this.inputDigits(s,r),{digits:s,justLeadingPlus:d}}},{key:"inputDigits",value:function(n,r){var i=r.digits,a=i.length<3&&i.length+n.length>=3;if(r.appendDigits(n),a&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(l){return r.update(l)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=Gu("+"+n.getDigitsWithoutInternationalPrefix(),n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,a=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&ek.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=Hu(n,this.metadata),a=i.nationalPrefix,l=i.nationalNumber,o=i.carrierCode;if(l!==n)return this.onExtractedNationalNumber(a,o,l,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=Hu(n,this.metadata),l=a.nationalPrefix,o=a.nationalNumber,s=a.carrierCode;if(o!==r)return this.onExtractedNationalNumber(l,s,o,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,a,l){var o=!1,s,d=a.lastIndexOf(i);if(d<0||d!==a.length-i.length)o=!0;else{var c=a.slice(0,d);c&&c!==n&&(s=c)}l({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberIsModified:o,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:s}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,a=n.digits;if(n.nationalSignificantNumber,!(r||i)){var l=_1(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(l!==void 0&&l!==a)return n.update({IDDPrefix:a.slice(0,a.length-l.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=H1(n.digits,n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,a=r.callingCode;n.startInternationalNumber(i,a),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}])})();function nk(e){var t=e.search(JP);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(QP,""),n&&(e="+"+e),e}}function rk(e){var t=nk(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function ik(e){var t=rk(e),n=Cy(t,2),r=n[0],i=n[1];return XP.test(r)||(r=""),[r,i]}function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function ak(e,t){return sk(e)||uk(e,t)||ok(e,t)||lk()}function lk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
24
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ok(e,t){if(e){if(typeof e=="string")return Ey(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ey(e,t):void 0}}function Ey(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,o=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(c){d=!0,i=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function sk(e){if(Array.isArray(e))return e}function dk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ck(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mk(r.key),r)}}function fk(e,t,n){return t&&ck(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mk(e){var t=hk(e,"string");return mi(t)=="symbol"?t:t+""}function hk(e,t){if(mi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wy=(function(){function e(t,n){dk(this,e),this.metadata=new Me(n);var r=this.getCountryAndCallingCode(t),i=ak(r,2),a=i[0],l=i[1];this.defaultCountry=a,this.defaultCallingCode=l,this.reset()}return fk(e,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(Fn(n)?(r=n.defaultCountry,i=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,i]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),i=r.digits,a=r.justLeadingPlus;if(a)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var l;if(this.metadata.hasSelectedNumberingPlan()&&(l=this.formatter.format(i,this.state)),l===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var o=this.state.getNationalDigits();o&&(l=this.formatter.format(o,this.state))}this.formattedOutput=l?this.getFullNumber(l):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new rP({onCountryChange:function(i){n.country=i},onCallingCodeChange:function(i,a){n.metadata.selectNumberingPlan(a||i),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new VP({state:this.state,metadata:this.metadata}),this.parser=new tk({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var i=function(o){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!o})+o},a=this.state.callingCode;return i(a?n?"".concat(a," ").concat(n):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,a=n.nationalPrefix,l=r,o=i||a;return o&&(l=o+l),l}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(n?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,ft)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){var n=Uu(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata});n!==this.state.country&&(this.state.setCountry(n),n&&this.metadata.selectNumberingPlan(n))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,a=n.country,l=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+l:"+"+r;if(a||i){var o=a?this.metadata.countryCallingCode():i;return"+"+o+l}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,a=n.callingCode;if(r){var l=this._getCountry();if(!(!l&&!a)){if(l&&l===this.defaultCountry){var o=this.metadata.numberingPlan.callingCode(),s=pk(o,r,this.metadata);s&&(l=s)}var d=new Q1(l||a,r,this.metadata.metadata);return i&&(d.carrierCode=i),d}}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"validateLength",value:function(){var n=this.state,r=n.digits,i=n.nationalSignificantNumber;if(!r)return"NOT_A_NUMBER";if(!this.metadata.numberingPlan)return"INVALID_COUNTRY";if(!i)return"TOO_SHORT";var a=ti(i,void 0,this.metadata);if(a!=="IS_POSSIBLE")return a}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])})();function pk(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r.length>1)return j1(t,r,n.metadata)}function bk(e){return new Me(e).getCountries()}function Sy(){return zu(XS,arguments)}function qa(e){return wy.call(this,e,F1)}qa.prototype=Object.create(wy.prototype,{}),qa.prototype.constructor=qa;function gk(){return zu(bk,arguments)}function yk(){return zu(Vu,arguments)}function $k(e){return e.toUpperCase().replace(/./g,t=>String.fromCodePoint(127397+t.charCodeAt(0)))}let Xa=null;function Py(){if(Xa)return Xa;const e=typeof Intl<"u"&&"DisplayNames"in Intl?new Intl.DisplayNames(["en"],{type:"region"}):null;return Xa=gk().map(t=>({code:t,dial_code:`+${yk(t)}`,name:e?.of(t)??t,flag:$k(t)})).sort((t,n)=>t.name.localeCompare(n.name)),Xa}function ky(e,t,n){let r=e.replace(/\D/g,"");const i=n.replace(/\D/g,"");r.startsWith(i)&&(r=r.slice(i.length)),r=r.replace(/^0+/,"");const a=15-i.length;if(r=r.slice(0,a),!r)return n;const o=new qa(t).input(r);return`${n} ${o}`}function By(e,t){return e?Sy(e,t)?.isValid()??!1:!1}function Ny(e,t){const n=Sy(e,t);return n?.isValid()?n.number:void 0}function vk({size:e="md",label:t,required:n,hint:r,error:i,disabled:a=!1,placeholder:l,value:o="",defaultCountry:s="ID",countries:d,onChange:c,className:f,wrapperClassName:m}){const h=d??Py(),[p,g]=b.useState(()=>h.find(C=>C.code===s)??h[0]),y=C=>{const w=By(C,p.code),S=w?Ny(C,p.code):void 0;c?.(C,w,S)},$=C=>{const w=ky(C.target.value,p.code,p.dial_code);y(w)},x=()=>{o||c?.(p.dial_code,!1,void 0)},v=C=>{const w=ky(o,C.code,C.dial_code);g(C);const S=By(w,C.code),B=S?Ny(w,C.code):void 0;c?.(w,S,B)};return b.createElement(ei,{size:e,label:t,required:n,hint:r,error:i,disabled:a,placeholder:l??"Enter phone number",inputMode:"numeric",value:o,onChange:$,onFocus:x,className:f,wrapperClassName:m,leftSlot:b.createElement(WE,{size:e,disabled:a,countries:h,selected:p,onSelect:v})})}const xk=Z(["flex items-center gap-1 shrink-0 border-l border-light-200 bg-transparent","text-light-800 cursor-pointer","hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"pl-2 text-caption-sm",sm:"pl-2 text-caption-lg",md:"pl-2 text-body-sm"}},defaultVariants:{size:"md"}}),Ck="w-64",Dk="select-none text-light-700";function Ek({size:e,disabled:t,currencies:n,selected:r,onSelect:i}){return b.createElement(Na,null,b.createElement(qt,{isDisabled:t,"aria-label":`Currency: ${r.label} (${r.code})`,className:xk({size:e})},b.createElement("span",null,r.code),b.createElement($i,{size:14,"aria-hidden":"true"})),b.createElement(ln,{placement:"bottom end"},b.createElement(Lu,{"aria-label":"Currency",className:U(Ck,"max-h-60 overflow-y-auto"),items:n,onAction:a=>{const l=n.find(o=>o.code===a);l&&i(l)}},a=>b.createElement(Ou,{id:a.code,textValue:`${a.label} ${a.code}`},b.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2"},b.createElement("span",{className:"min-w-0 flex-1 truncate"},a.label),b.createElement("span",{className:"shrink-0 text-light-500"},a.code))))))}function is(e){const t=new Intl.NumberFormat(e).formatToParts(123456789e-2),n=t.find(i=>i.type==="group")?.value??",",r=t.find(i=>i.type==="decimal")?.value??".";return{group:n,decimal:r}}function Ay(e,t){return e?e.replace(/\B(?=(\d{3})+(?!\d))/g,t):""}function wk(e,t){const{group:n,decimal:r}=is(t);let i=e.split("").filter(d=>/\d/.test(d)||d===r).join("");const a=i.indexOf(r);if(a!==-1){const d=i.slice(0,a).split(r).join(""),c=i.slice(a+1).split(r).join("").slice(0,2);i=`${d}${r}${c}`}const[l,o]=i.split(r),s=Ay(l??"",n);return o!==void 0?`${s}${r}${o}`:s}function Sk(e,t){const{group:n,decimal:r}=is(t),i=e.split(n).join("").split(r).join("."),a=Number.parseFloat(i);return Number.isNaN(a)?0:a}function as(e,t){if(e===void 0||Number.isNaN(e))return"";const{group:n,decimal:r}=is(t),[i,a]=e.toString().split("."),l=Ay(i??"0",n);return a?`${l}${r}${a}`:l}function Pk({size:e="md",label:t,required:n,hint:r,error:i,disabled:a=!1,placeholder:l,value:o,currency:s,currencies:d,onCurrencyChange:c,onChange:f,className:m,wrapperClassName:h}){const p=d.find(C=>C.code===s)??d[0],[g,y]=b.useState(()=>as(o,p?.locale)),$=b.useRef(!1);b.useEffect(()=>{if($.current){$.current=!1;return}y(as(o,p?.locale))},[o,p?.locale]);const x=C=>{$.current=!0;const w=wk(C.target.value,p?.locale);y(w),f?.(Sk(w,p?.locale))},v=C=>{c?.(C.code),$.current=!0,y(as(o,C.locale))};return b.createElement(ei,{size:e,label:t,required:n,hint:r,error:i,disabled:a,placeholder:l??"0.00",inputMode:"decimal",value:g,onChange:x,className:m,wrapperClassName:h,leftSlot:p?b.createElement("span",{className:Dk},p.symbol):void 0,rightSlot:p?b.createElement(Ek,{size:e,disabled:a,currencies:d,selected:p,onSelect:v}):void 0})}function kk({size:e="md",label:t,required:n,hint:r,disabled:i,error:a,className:l,wrapperClassName:o,value:s,maxLength:d,placeholder:c,onChange:f}){const m=s.length>d,h=a||m;return u.createElement(C1,{size:e,label:t,required:n,disabled:i,error:h,value:s,placeholder:c,onChange:f,className:l,wrapperClassName:o,hint:r,suffix:u.createElement("span",{className:ee("text-caption-lg",m?"text-error-600":"text-light-400")},s.length,"/",d)})}const Fy=[{brand:"visa",pattern:/^4/,length:[13,16,19]},{brand:"mastercard",pattern:/^(5[1-5]|2[2-7])/,length:[16]},{brand:"amex",pattern:/^3[47]/,length:[15]},{brand:"discover",pattern:/^6(?:011|5)/,length:[16]},{brand:"jcb",pattern:/^35/,length:[16]},{brand:"diners",pattern:/^3(?:0[0-5]|[68])/,length:[14]},{brand:"unionpay",pattern:/^62/,length:[16,19]}];function Bk(e){return Fy.find(({pattern:n})=>n.test(e))?.brand??null}function Nk(e){if(!e)return!1;let t=0,n=!1;for(let r=e.length-1;r>=0;r--){let i=Number.parseInt(e[r]??"0",10);n&&(i*=2,i>9&&(i-=9)),t+=i,n=!n}return t%10===0}function Ak(e,t){if(!t||!e)return!1;const n=Fy.find(r=>r.brand===t);return!n||!n.length.includes(e.length)?!1:Nk(e)}function Fk(e,t){return t==="amex"?[e.slice(0,4),e.slice(4,10),e.slice(10,15)].filter(Boolean).join(" "):e.replace(/(.{4})/g,"$1 ").trim()}const Tk=19;function Ik(e){const t=e.replace(/\D/g,"").slice(0,Tk),n=Bk(t),r=Fk(t,n),i=Ak(t,n);return{formatted:r,brand:n,isValid:i}}function Mk({size:e="md",label:t="Card number",required:n,hint:r,error:i,disabled:a=!1,placeholder:l="Card number",value:o="",leftSlot:s,onChange:d,className:c,wrapperClassName:f}){const m=h=>{const{formatted:p,brand:g,isValid:y}=Ik(h.target.value);d?.(p,g,y)};return b.createElement(ei,{size:e,label:t,required:n,hint:r,error:i,disabled:a,placeholder:l,value:o,onChange:m,inputMode:"numeric",autoComplete:"cc-number",className:c,wrapperClassName:f,leftSlot:s})}const ls=C1;ls.Prefix=EE,ls.Suffix=wE;const Kk="flex flex-col gap-1 w-full",Lk=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),Ok=Z(["flex w-full items-start gap-2 border rounded-lg p-3 bg-white","transition-[border-color,border-width]","data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100"],{variants:{error:{true:"",false:"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500"}},defaultVariants:{error:!1}}),zk=Z(["flex-1 min-h-[132px] bg-transparent outline-none text-caption-lg text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed disabled:resize-none"],{variants:{resizable:{true:"resize-y",false:"resize-none"}},defaultVariants:{resizable:!0}}),Vk=Z("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),_k=({error:e})=>ee("flex w-full items-start gap-2 rounded-lg border bg-white p-2 transition-[border-color,border-width]",e?"data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500":"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500","data-[disabled]:bg-light-100 data-[disabled]:cursor-not-allowed"),Rk=({error:e})=>ee("flex items-center gap-1 text-caption-sm font-semibold",e?"":"text-light-800"),jk=e=>ee("flex-1 min-h-[64px] bg-transparent outline-none text-sm text-light-900","placeholder:text-light-500",e?"resize-y":"resize-none"),Hk="flex flex-col w-full max-w-[320px]",Ty=b.forwardRef(({label:e,required:t,hint:n,helpIcon:r,error:i=!1,disabled:a=!1,resizable:l=!0,compact:o=!1,rows:s,style:d,className:c,wrapperClassName:f,...m},h)=>{const p=s?{minHeight:`${s*20}px`}:void 0;return b.createElement("div",{className:ee(o?Hk:Kk,f)},e&&b.createElement("label",{className:o?Rk({error:i}):Lk({error:i})},e,t&&b.createElement("span",{className:"text-error-400"},"*"),r),b.createElement(Lr,{isDisabled:a,isInvalid:i,className:o?_k({error:i}):Ok({error:i})},b.createElement(fC,{ref:h,disabled:a,rows:s,style:{...p,...d},className:ee(o?jk(l&&!a):zk({resizable:l&&!a}),c),...m})),n&&b.createElement("p",{className:Vk({error:i})},n))});Ty.displayName="Textarea";const Uk=Z("flex w-[320px] flex-col gap-1"),Wk=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}}}),Gk=Z("flex items-stretch rounded-lg border bg-white transition-colors",{variants:{error:{true:"",false:"border-light-200"},disabled:{true:"bg-light-100",false:""}}}),Zk=Z("flex items-center px-3 text-sm text-light-500 rounded-l-lg select-none",{variants:{size:{sm:"h-9",md:"h-11"},disabled:{true:"bg-light-100",false:"bg-white"}}}),Yk="w-px bg-light-200",qk=Z(["flex flex-1 items-center gap-2 px-3 rounded-r-lg","transition-shadow","focus-within:ring-2 focus-within:ring-offset-0"],{variants:{size:{sm:"h-9",md:"h-11"},error:{true:"border border-error-200 focus-within:ring-error-500",false:"focus-within:ring-primary-500"},disabled:{true:"cursor-not-allowed",false:""}}}),Xk=Z("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),Jk=Z("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function Qk({size:e="md",label:t,required:n,hint:r,error:i=!1,disabled:a=!1,placeholder:l="www.cekat.ai",value:o,rightIcon:s,onChange:d,className:c,wrapperClassName:f}){return u.createElement("div",{className:ee(Uk(),f)},t&&u.createElement("label",{className:Wk({error:i})},t,n&&u.createElement("span",{className:"text-error-400"},"*")),u.createElement("div",{className:Gk({error:i,disabled:a})},u.createElement("div",{className:Zk({size:e})},"http://"),u.createElement("div",{className:Yk}),u.createElement("div",{className:qk({size:e,error:i,disabled:a})},u.createElement("input",{value:o,onChange:d,placeholder:l,disabled:a,className:ee(Xk({disabled:a}),c)}),s&&u.createElement("div",{className:"flex items-center text-light-400"},s))),r&&u.createElement("p",{className:Jk({error:i})},r))}const eB=Z("flex w-[320px] flex-col gap-1"),tB=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"text-error-600",false:"text-light-800"}}}),nB=Z("flex items-stretch rounded-lg border border-light-200 bg-white transition-colors",{variants:{disabled:{true:"bg-light-100",false:""}}}),rB=Z(["flex flex-1 items-center gap-2 px-3 rounded-l-lg","transition-shadow","focus-within:ring-2 focus-within:ring-offset-0"],{variants:{size:{sm:"h-9",md:"h-11"},error:{true:"border border-error-200 focus-within:ring-error-500",false:"focus-within:ring-primary-500"},disabled:{true:"cursor-not-allowed",false:""}}}),iB=Z("w-px transition-colors",{variants:{error:{true:"focus:bg-error-200 group-focus-within:bg-error-500",false:"focus:bg-light-200 group-focus-within:bg-primary-500"}}}),aB=Z("flex items-center gap-1 px-3 text-sm text-light-700 rounded-r-lg select-none",{variants:{size:{sm:"h-9",md:"h-11"},disabled:{true:"bg-white",false:"bg-white"}}}),lB=Z("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),oB=Z("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function uB({size:e="md",label:t,required:n,hint:r,error:i=!1,disabled:a=!1,placeholder:l="www.cekat.ai",value:o,rightIcon:s,suffix:d,onChange:c,className:f,wrapperClassName:m}){return u.createElement("div",{className:ee(eB(),m)},t&&u.createElement("label",{className:tB({error:i})},t,n&&u.createElement("span",{className:"text-error-400"},"*")),u.createElement("div",{className:nB({disabled:a})},u.createElement("div",{className:rB({size:e,error:i,disabled:a})},u.createElement("input",{value:o,onChange:c,placeholder:l,disabled:a,className:ee(lB({disabled:a}),f)}),s&&u.createElement("div",{className:"text-light-400"},s)),u.createElement("div",{className:iB({error:i})}),u.createElement("div",{className:aB({size:e,disabled:a})},d)),r&&u.createElement("p",{className:oB({error:i})},r))}const sB=Z("flex w-full flex-col gap-1"),dB=Z("flex items-center gap-1 text-sm font-bold text-light-800"),Iy=Z(["flex w-full items-center border bg-white text-left","transition-[border-color,border-width]"],{variants:{size:{xs:"h-7 gap-1 rounded px-2 text-caption-sm",sm:"h-9 gap-2 rounded-lg px-3 text-caption-lg",md:"h-11 gap-2 rounded-lg px-3 text-body-sm"},open:{true:"border-2 border-primary-500",false:"border-light-200 focus-within:border-2 focus-within:border-primary-500"},disabled:{true:"cursor-not-allowed bg-light-100",false:"cursor-pointer"}},defaultVariants:{size:"md",open:!1,disabled:!1}}),cB=Z(["absolute left-0 top-full z-10 mt-2 w-full overflow-y-auto","rounded-lg border border-light-200 bg-white py-1","shadow-[0_12px_16px_-4px_rgba(16,24,40,0.08),0_4px_6px_-2px_rgba(16,24,40,0.03)]"],{variants:{size:{xs:"max-h-52",sm:"max-h-64",md:"max-h-80"}},defaultVariants:{size:"md"}}),fB=Z("text-caption-lg text-light-700"),mB=({className:e})=>b.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},b.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),hB=({className:e})=>b.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},b.createElement("path",{d:"M17.5 17.5L14.1 14.1M16 9.25C16 12.98 12.98 16 9.25 16C5.52 16 2.5 12.98 2.5 9.25C2.5 5.52 5.52 2.5 9.25 2.5C12.98 2.5 16 5.52 16 9.25Z",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),os={xs:"size-4",sm:"size-5",md:"size-6"},My={xs:"size-4",sm:"size-5",md:"size-5"},pB={xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},bB={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},Ky=({size:e,open:t,disabled:n})=>ee("flex w-full items-center gap-2 rounded-lg border bg-white px-2 text-left transition-[border-color,border-width]",pB[e],bB[e],t?"border-2 border-primary-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",n?"cursor-not-allowed bg-light-100":"cursor-pointer"),gB=()=>"flex items-center gap-1 text-caption-sm font-semibold text-light-800",yB="flex w-full max-w-[320px] flex-col";function $B({size:e="md",type:t="default",label:n,required:r,helpIcon:i,hint:a,placeholder:l="Select option",disabled:o=!1,compact:s=!1,leadingIcon:d,options:c,value:f=null,onChange:m,values:h=[],onValuesChange:p,hideTagsOnFocus:g=!1,className:y,wrapperClassName:$}){const[x,v]=b.useState(!1),[C,w]=b.useState(""),S=b.useRef(null),B=b.useRef(null),E=t==="tags",k=t==="search"||E,M=c.find(O=>O.id===f)??null,F=c.filter(O=>h.includes(O.id)),I=E&&(!g||!x),j=E&&g&&!x&&F.length>0,D=C?c.filter(O=>`${O.label} ${O.supportingText??""}`.toLowerCase().includes(C.toLowerCase())):c,T=()=>{v(!1),w("")};b.useEffect(()=>{if(!x)return;const O=z=>{S.current?.contains(z.target)||T()};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[x]),b.useEffect(()=>{x&&k&&B.current?.focus()},[x,k]);const Y=()=>{o||(x?T():v(!0))},K=O=>{O.disabled||(E?(p?.(h.includes(O.id)?h.filter(z=>z!==O.id):[...h,O.id]),w(""),B.current?.focus()):(m?.(O),T()))},q=O=>{if(O.key==="Enter"){O.preventDefault();const z=D.find(A=>!A.disabled);x&&z&&K(z)}else O.key==="Backspace"&&E&&!C&&h.length?p?.(h.slice(0,-1)):x||v(!0)},P=O=>O.avatar?b.createElement("img",{src:O.avatar,alt:"",className:ee(os[e],"shrink-0 rounded-full object-cover")}):O.icon?b.createElement("span",{className:ee(os[e],"flex shrink-0 items-center justify-center",o?"text-light-400":"text-light-500")},O.icon):O.dot?b.createElement("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:o?"#d0d5dd":O.dot}}):null,N=M?P(M):d?b.createElement("span",{className:ee(os[e],"flex shrink-0 items-center justify-center",o?"text-light-400":"text-light-500")},d):null,R=M?b.createElement("span",{className:"flex min-w-0 items-center gap-2 whitespace-nowrap"},b.createElement("span",{className:ee("truncate font-medium",o?"text-light-400":"text-light-800")},M.label),M.supportingText&&b.createElement("span",{className:o?"text-light-400":"text-light-700"},M.supportingText)):b.createElement("span",{className:o?"text-light-400":"text-light-500"},l),Q=x&&b.createElement("div",{role:"listbox",className:cB({size:e})},D.length===0&&b.createElement("div",{className:"flex h-12 items-center px-4 text-light-500"},"No options found"),D.map(O=>{const z=E?h.includes(O.id):O.id===f,A={isHovered:!1,isPressed:!1,isSelected:z,isFocusVisible:!1,isDisabled:!!O.disabled,selectionMode:E?"multiple":"single"};return b.createElement("button",{key:O.id,type:"button",role:"option","aria-selected":z,disabled:O.disabled,onClick:()=>K(O),className:ee(Iu,O.disabled&&"cursor-not-allowed")},b.createElement(Mu,{state:A,nativeInteraction:!0},b.createElement(b.Fragment,null,P(O),b.createElement("span",{className:"truncate"},O.label),O.supportingText&&b.createElement("span",{"data-slot":"supporting-text"},O.supportingText))))}));return b.createElement("div",{ref:S,className:ee(s?yB:sB(),$)},n&&b.createElement("label",{className:s?gB():dB()},n,r&&b.createElement("span",{className:"text-error-400"},"*"),i),b.createElement("div",{className:"relative",onKeyDown:O=>{O.key==="Escape"&&T()}},t==="default"?b.createElement("button",{type:"button","aria-haspopup":"listbox","aria-expanded":x,disabled:o,onClick:Y,className:ee(s?Ky({size:e,open:x,disabled:o}):Iy({size:e,open:x,disabled:o}),y)},N,b.createElement("span",{className:"flex min-w-0 flex-1 items-center"},R),b.createElement(mB,{className:ee(My[e],"shrink-0 text-light-500")})):b.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-expanded":x,onClick:Y,className:ee(s?Ky({size:e,open:x,disabled:o}):Iy({size:e,open:x,disabled:o}),y)},b.createElement(hB,{className:ee(My[e],"shrink-0",o?"text-light-400":"text-light-500")}),I&&F.length>0&&b.createElement("div",{className:"flex shrink items-center gap-1 overflow-x-auto whitespace-nowrap [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"},F.map(O=>b.createElement(Fu,{key:O.id,size:"sm",disabled:o,icon:O.avatar?b.createElement("img",{src:O.avatar,alt:"",className:"size-4 shrink-0 rounded-full object-cover"}):void 0,onClose:()=>K(O)},O.label))),!E&&!x&&M?b.createElement("span",{className:"flex min-w-0 flex-1 items-center"},R):j?null:b.createElement("input",{ref:B,value:C,disabled:o,placeholder:l,onChange:O=>{w(O.target.value),x||v(!0)},onKeyDown:q,className:"min-w-8 flex-1 bg-transparent text-light-900 outline-none placeholder:text-light-500 disabled:cursor-not-allowed disabled:placeholder:text-light-400"})),Q),a&&b.createElement("p",{className:fB()},a))}function vB({id:e,value:t,textValue:n,"aria-label":r,isDisabled:i,onAction:a,className:l,style:o,leadingSlot:s,children:d,trailingSlot:c},f){const m=b.useContext(Ku),h={id:e,value:t,textValue:n,"aria-label":r,isDisabled:i,onAction:a,className:l,style:o,leadingSlot:s,children:d,trailingSlot:c};if(m==="menu")return b.createElement(A1,{ref:f,...h});if(m==="listbox")return b.createElement(N1,{ref:f,...h});throw new Error("CollectionItem must be rendered inside a supported collection parent.")}const xB=b.forwardRef(vB),Ly=Z("relative",{variants:{layout:{floating:["flex w-full flex-col gap-4 p-4","rounded-xl border shadow-xs","sm:flex-row sm:items-start"],"full-width":"w-full border-b"}},defaultVariants:{layout:"floating"}}),CB={default:{surface:"bg-light-50",border:"border-light-300",iconSurface:"border border-light-200 bg-white shadow-xs",iconSurfaceOnLight:"border border-light-200 bg-white shadow-xs",iconText:"text-light-800"},brand:{surface:"bg-primary-50",border:"border-primary-300",iconSurface:"bg-primary-100",iconSurfaceOnLight:"bg-white",iconText:"text-primary-500"},gray:{surface:"bg-light-50",border:"border-light-300",iconSurface:"bg-light-100",iconSurfaceOnLight:"bg-white",iconText:"text-light-800"},error:{surface:"bg-error-50",border:"border-error-300",iconSurface:"bg-error-50",iconSurfaceOnLight:"bg-white",iconText:"text-error-500"},warning:{surface:"bg-warning-50",border:"border-warning-300",iconSurface:"bg-warning-100",iconSurfaceOnLight:"bg-white",iconText:"text-warning-500"},success:{surface:"bg-success-50",border:"border-success-300",iconSurface:"bg-success-50",iconSurfaceOnLight:"bg-white",iconText:"text-success-500"}},DB="bg-white border-light-200",EB="relative mx-auto flex w-full max-w-[1280px] flex-col gap-4 px-4 py-4 sm:flex-row sm:items-center sm:gap-3 sm:px-8 sm:py-3",wB=Z("flex shrink-0 items-center justify-center",{variants:{layout:{floating:"","full-width":"hidden sm:flex"},shape:{square:"",circle:""},variant:{featured:"",plain:""}},compoundVariants:[{variant:"featured",layout:"floating",class:"size-8"},{variant:"featured",layout:"full-width",class:"size-10"},{variant:"featured",shape:"circle",class:"rounded-full"},{variant:"featured",shape:"square",layout:"floating",class:"rounded-md"},{variant:"featured",shape:"square",layout:"full-width",class:"rounded-lg"}],defaultVariants:{layout:"floating",shape:"square",variant:"featured"}}),Oy=Z("flex min-w-0 flex-1",{variants:{layout:{floating:"flex-col gap-3","full-width":"items-center gap-4"}},defaultVariants:{layout:"floating"}}),SB=Z("flex min-w-0",{variants:{layout:{floating:"flex-col gap-1","full-width":"flex-col gap-0.5 sm:flex-row sm:flex-wrap sm:gap-x-1.5"},closable:{true:"",false:""}},compoundVariants:[{layout:"floating",closable:!0,class:"pr-8"},{layout:"full-width",closable:!0,class:"pr-8 sm:pr-0"}],defaultVariants:{layout:"floating",closable:!1}}),PB="text-caption-lg font-bold text-light-800",kB="text-caption-lg text-light-600",BB=Z("flex gap-3",{variants:{layout:{floating:"flex-wrap items-center","full-width":""},actionVariant:{link:"flex-wrap items-center",button:""}},compoundVariants:[{layout:"full-width",actionVariant:"button",class:"flex-col-reverse sm:flex-row sm:items-center"}],defaultVariants:{layout:"floating",actionVariant:"link"}}),NB=Z(["inline-flex items-center justify-center gap-1 bg-transparent p-0","text-caption-lg font-bold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{emphasis:{primary:"text-primary-500 hover:text-primary-800",secondary:"text-light-800 hover:text-light-900"}},defaultVariants:{emphasis:"secondary"}}),AB=Z(["flex size-9 shrink-0 items-center justify-center rounded-lg","bg-transparent text-light-500 transition-colors","hover:bg-light-50 hover:text-light-700","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{layout:{floating:"absolute right-[7px] top-[7px]","full-width":"absolute right-2 top-2 sm:static"}},defaultVariants:{layout:"floating"}}),FB={default:dr,brand:dr,gray:dr,error:gi,warning:gi,success:nl},zy=({title:e,description:t,color:n="default",layout:r="floating",background:i="white",icon:a,iconVariant:l="featured",showIcon:o=!0,primaryAction:s,secondaryAction:d,actionVariant:c,actions:f,onClose:m,closeLabel:h="Close",className:p,...g})=>{const y=FB[n],$=r==="floating"?16:20,x=c??(r==="floating"?"link":"button"),v=CB[n],C=i==="light",w=C?ee(v.surface,v.border):DB,S=(I,j)=>I?x==="link"?u.createElement("button",{type:"button",onClick:I.onClick,className:NB({emphasis:j})},I.label):u.createElement(Ze,{size:"sm",variant:j==="primary"?"solid":"outline",onPress:I.onClick,className:r==="full-width"?"w-full sm:w-auto":void 0},I.label):null,E=!!(f||s||d)?u.createElement("div",{className:BB({layout:r,actionVariant:x})},f??u.createElement(u.Fragment,null,S(d,"secondary"),S(s,"primary"))):null,k=o&&(a||y)?u.createElement("div",{className:ee(wB({layout:r,variant:l,shape:n==="default"?"square":"circle"}),v.iconText,l==="featured"&&(C?v.iconSurfaceOnLight:v.iconSurface))},a??u.createElement(y,{size:$,stroke:2})):null,M=m?u.createElement("button",{type:"button","aria-label":h,onClick:m,className:AB({layout:r})},u.createElement(cr,{size:16,stroke:2})):null,F=u.createElement("div",{className:SB({layout:r,closable:!!m})},u.createElement("p",{className:PB},e),t&&u.createElement("p",{className:kB},t));return r==="full-width"?u.createElement("div",{role:"alert",className:ee(Ly({layout:r}),w,p),...g},u.createElement("div",{className:EB},u.createElement("div",{className:Oy({layout:r})},k,F),(E||M)&&u.createElement("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-2"},E,M))):u.createElement("div",{role:"alert",className:ee(Ly({layout:r}),w,p),...g},k,u.createElement("div",{className:Oy({layout:r})},F,E),M)};zy.displayName="Alert";const TB={success:{container:"bg-success-100",badge:"bg-success-900",iconColor:"text-success-100",text:"text-success-900",defaultTitle:"Success!"},error:{container:"bg-error-100",badge:"bg-error-800",iconColor:"text-error-100",text:"text-error-800",defaultTitle:"Error!"},warning:{container:"bg-warning-100",badge:"bg-warning-800",iconColor:"text-warning-100",text:"text-warning-800",defaultTitle:"Warning!"},info:{container:"bg-info-100",badge:"bg-info-900",iconColor:"text-info-100",text:"text-info-900",defaultTitle:"Info"}},IB=Z("relative flex w-full max-w-[400px] items-center gap-2 rounded-md px-2 py-3 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.04)]"),MB="mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-full",KB="flex-1 break-words font-nunito text-sm leading-5",LB=Z(["absolute -left-4 -top-3 flex size-6 shrink-0 items-center justify-center rounded-full","shadow-[0px_4px_4px_0px_rgba(0,0,0,0.04)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{variant:{success:"bg-success-100 text-success-900",error:"bg-error-100 text-error-800",warning:"bg-warning-100 text-warning-800",info:"bg-info-100 text-info-900"}}}),OB={success:nl,error:cr,warning:S$,info:dr},Vy=({variant:e,message:t,title:n,onClose:r,closeLabel:i="Close",className:a})=>{const l=TB[e],o=OB[e];return b.createElement("div",{role:"status",className:U(IB(),l.container,a)},b.createElement("div",{className:U(MB,l.badge)},b.createElement(o,{size:16,stroke:3,className:l.iconColor})),b.createElement("p",{className:U(KB,l.text)},b.createElement("span",{className:"font-bold"},n??l.defaultTitle),b.createElement("span",{className:"ml-1 font-normal"},t)),r&&b.createElement("button",{type:"button","aria-label":i,onClick:r,className:LB({variant:e})},b.createElement(cr,{size:14,stroke:2.5})))};Vy.displayName="Toast";const us=Z(["relative flex w-full max-w-[504px] items-start gap-4 rounded-xl border border-light-200","bg-white p-4 shadow-lg"],{variants:{type:{image:"flex-col gap-4 p-0 sm:flex-row"}}}),zB={"primary-icon":{shape:"rounded-full",bg:"bg-primary-100",iconText:"text-primary-500"},"gray-icon":{shape:"rounded-lg border border-light-200 shadow-xs",bg:"bg-white",iconText:"text-light-700"},progress:{shape:"rounded-lg border border-light-200 shadow-xs",bg:"bg-white",iconText:"text-light-700"},success:{shape:"rounded-full",bg:"bg-success-50",iconText:"text-success-500"},warning:{shape:"rounded-full",bg:"bg-warning-100",iconText:"text-warning-500"},error:{shape:"rounded-full",bg:"bg-error-50",iconText:"text-error-500"},avatar:null,image:null,"no-icon":null},_y="font-nunito font-bold text-caption-lg text-light-800",Ry="font-nunito font-normal text-caption-lg text-light-600",VB="flex flex-wrap items-center gap-3",_B=Z(["inline-flex items-center justify-center gap-1 bg-transparent p-0","text-caption-lg font-semibold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{emphasis:{primary:"text-primary-500 hover:text-primary-800",secondary:"text-light-800 hover:text-light-900"}},defaultVariants:{emphasis:"secondary"}}),RB="absolute right-[7px] top-[7px] flex size-9 shrink-0 items-center justify-center rounded-lg bg-transparent text-light-500 transition-colors hover:bg-light-50 hover:text-light-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",jB="h-2 w-full rounded-full bg-light-200",HB="h-2 rounded-full bg-primary-500",UB="font-nunito text-caption-lg font-medium text-light-600",WB="h-[122px] w-full shrink-0 overflow-hidden rounded-md bg-light-50 sm:h-auto sm:w-20 sm:self-stretch sm:rounded-none sm:rounded-l-xl",GB="flex flex-1 flex-col gap-3 p-4 sm:py-4 sm:pl-5 sm:pr-4",ZB={"primary-icon":dr,progress:A$,success:nl,warning:gi,error:gi},jy=({action:e,emphasis:t})=>b.createElement("button",{type:"button",onClick:e.onClick,className:_B({emphasis:t})},e.label),Hy=({type:e,title:t,supportingText:n,primaryAction:r,secondaryAction:i,onClose:a,closeLabel:l="Close",icon:o,avatarSrc:s,avatarAlt:d,timestamp:c,imageSrc:f,imageAlt:m,progressValue:h,progressLabel:p,className:g})=>{const y=zB[e],$=ZB[e],v=!!(r||i)?b.createElement("div",{className:VB},i&&b.createElement(jy,{action:i,emphasis:"secondary"}),r&&b.createElement(jy,{action:r,emphasis:"primary"})):null,C=a?b.createElement("button",{type:"button","aria-label":l,onClick:a,className:RB},b.createElement(An,{icon:cr,size:"sm",strokeWidth:2})):null,w=b.createElement("div",{className:"flex flex-col gap-1"},b.createElement("p",{className:_y},t),n&&b.createElement("p",{className:Ry},n)),S=e==="progress"?b.createElement("div",{className:"flex flex-col items-end gap-2"},b.createElement("div",{className:jB},b.createElement("div",{className:HB,style:{width:`${Math.min(100,Math.max(0,h??0))}%`}})),p&&b.createElement("p",{className:UB},p)):null,B=e==="avatar"?b.createElement(ja,{src:s,alt:d,size:"md",status:"online"}):y?b.createElement("div",{className:U("flex size-8 shrink-0 items-center justify-center",y.shape,y.bg)},o??($&&b.createElement(An,{icon:$,size:"sm",strokeWidth:2,className:y.iconText}))):null;return e==="image"?b.createElement("div",{role:"status",className:U(us({type:e}),g)},b.createElement("div",{className:WB},f&&b.createElement("img",{src:f,alt:m??"",className:"size-full object-cover"})),b.createElement("div",{className:GB},w,v),C):e==="avatar"?b.createElement("div",{role:"status",className:U(us(),g)},B,b.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-3"},b.createElement("div",{className:"flex flex-col gap-1"},b.createElement("div",{className:"flex flex-wrap items-center gap-2"},b.createElement("p",{className:_y},t),c&&b.createElement("span",{className:"font-nunito text-caption-lg text-light-500"},c)),n&&b.createElement("p",{className:Ry},n)),v),C):b.createElement("div",{role:"status",className:U(us(),g)},B,b.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-3"},w,S,v),C)};Hy.displayName="NotificationToast";const YB=U("relative overflow-auto rounded-lg border border-light-200 bg-white"),qB=U("w-full border-collapse text-left"),XB=U("sticky top-0 z-10 bg-light-100"),JB=U("data-[empty]:h-full"),QB=U("border-t border-light-200 bg-light-100 [&_tr]:!bg-light-100"),eN=U("relative min-h-[36px] whitespace-nowrap px-5 py-2 align-middle","border-b border-r border-light-200 last:border-r-0","has-[[data-resizable-direction]]:border-r-0","font-nunito text-caption-lg leading-caption-lg text-light-800","select-none","data-[hovered]:bg-light-200","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500 data-[focus-visible]:-outline-offset-2"),tN={start:"text-left",center:"text-center",end:"text-right"},nN=U("sticky z-30 bg-light-100 data-[hovered]:bg-light-200"),Uy={left:"border-r-0 shadow-[inset_-1px_0_0_0_#D0D5DD]",right:"border-l-0 shadow-[inset_1px_0_0_0_#D0D5DD]"},rN=U("sticky z-20 bg-white","data-[hovered]:bg-light-100","group-data-[selected]/row:bg-primary-100","group-data-[selected]/row:data-[hovered]:bg-primary-200"),iN=U("flex min-w-0 items-center justify-between gap-3 self-stretch"),Wy={inactive:"text-light-500",active:"text-light-800"},aN=U("group/row","bg-white data-[hovered]:bg-light-100","data-[selected]:bg-primary-100","data-[selected]:data-[hovered]:bg-primary-200","data-[disabled]:bg-white data-[disabled]:text-light-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500","data-[focus-visible]:-outline-offset-2"),lN=U("group/cell relative min-h-[42px] min-w-0 px-5 py-2 align-middle","border-b border-r border-light-200 last:border-r-0","font-nunito text-caption-lg leading-caption-lg text-light-800","data-[disabled]:text-light-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500","data-[focus-visible]:-outline-offset-2"),oN=U("flex min-h-[26px] min-w-0 items-center gap-3 self-stretch"),uN=U("group-first/cell:group-data-[selected]/row:shadow-[inset_2px_0_0_0_#1352BF]"),sN="block truncate",dN=U("absolute right-[-3px] top-0 h-full w-2 shrink-0 cursor-col-resize touch-none","data-[resizable-direction=left]:cursor-w-resize","data-[resizable-direction=right]:cursor-e-resize","after:absolute after:right-1/2 after:top-0 after:h-full after:w-px after:translate-x-1/2 after:bg-light-300","after:transition-[width,background-color] after:duration-100 after:ease-out","data-[hovered]:after:w-0.5 data-[hovered]:after:bg-light-500","data-[resizing]:after:w-0.5 data-[resizing]:after:bg-primary-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500 data-[focus-visible]:-outline-offset-2"),cN=U("w-full border-t border-light-200 py-3 text-center"),hi={container:U("flex flex-col items-center gap-3 px-6 py-10 text-center"),iconWrap:U("flex h-14 w-14 items-center justify-center rounded-full bg-light-100 text-light-500 [&>svg]:h-6 [&>svg]:w-6"),title:U("font-nunito text-body-sm font-semibold text-light-800"),description:U("max-w-sm font-nunito text-caption-lg text-light-600"),actions:U("mt-2 flex items-center gap-2")};function Gy({sticky:e,stickyOffset:t=0},n){return e?{...n,[e]:t}:n}const Zy=u.forwardRef(({className:e,...t},n)=>b.createElement(A7,{ref:n,...t,className:U(YB,e)}));Zy.displayName="TableContainer";const Yy=u.forwardRef(({className:e,...t},n)=>b.createElement(T7,{ref:n,...t,className:U(qB,e)}));Yy.displayName="Table";const fN=u.forwardRef(({className:e,...t},n)=>b.createElement(O7,{ref:n,...t,className:U(XB,e)})),mN=u.forwardRef(({className:e,...t},n)=>b.createElement(U7,{ref:n,...t,className:U(JB,e)})),hN=u.forwardRef(({className:e,...t},n)=>b.createElement(G7,{ref:n,...t,className:U(QB,e)})),pN={onPointerDown:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation()},qy=u.forwardRef(({className:e,align:t="start",children:n,allowsSorting:r,actions:i,sticky:a,stickyOffset:l,style:o,...s},d)=>b.createElement(R7,{ref:d,allowsSorting:r,...s,style:Gy({sticky:a,stickyOffset:l},o),className:U(eN,tN[t],a&&nN,a&&Uy[a],e)},c=>{const{allowsSorting:f,sortDirection:m}=c;let h=typeof n=="function"?n(c):n;b.isValidElement(h)&&h.type===b.Fragment&&(h=h.props.children);const p=b.Children.toArray(h),g=p.filter($=>b.isValidElement($)&&$.type===Ja),y=p.filter($=>!(b.isValidElement($)&&$.type===Ja));return b.createElement("div",{className:iN},b.createElement("span",{className:"min-w-0 truncate"},y),f&&b.createElement("span",{className:U("shrink-0",m?Wy.active:Wy.inactive)},m==="ascending"&&b.createElement(k$,{size:14,"aria-hidden":"true"}),m==="descending"&&b.createElement(P$,{size:14,"aria-hidden":"true"}),!m&&b.createElement(B$,{size:14,"aria-hidden":"true"})),i&&b.createElement("span",{className:"shrink-0",...pN},i),g)}));qy.displayName="Column";const bN=u.forwardRef(({className:e,...t},n)=>b.createElement(Z7,{ref:n,...t,className:U(aN,e)})),Xy=u.forwardRef(({className:e,children:t,sticky:n,stickyOffset:r,style:i,...a},l)=>b.createElement(Y7,{ref:l,...a,style:Gy({sticky:n,stickyOffset:r},i),className:U(lN,uN,n&&rN,n&&Uy[n],e)},o=>b.createElement("div",{className:oN},typeof t=="function"?t(o):t)));Xy.displayName="Cell";const Ja=u.forwardRef(({className:e,...t},n)=>b.createElement(j7,{ref:n,...t,className:U(dN,e)}));Ja.displayName="ColumnResizer";const Jy=u.forwardRef(({className:e,children:t,isLoading:n,...r},i)=>b.createElement(nC,{ref:i,isLoading:n,...r,className:U(cN,e)},t??(n&&b.createElement(Ns,{size:18,className:"inline-block animate-spin text-light-500","aria-label":"Loading more"}))));Jy.displayName="TableLoadMoreItem";const Qy=b.forwardRef(({icon:e,title:t,description:n,actions:r,className:i},a)=>b.createElement("div",{ref:a,className:U(hi.container,i)},e&&b.createElement("div",{className:hi.iconWrap},e),b.createElement("p",{className:hi.title},t),n&&b.createElement("p",{className:hi.description},n),r&&b.createElement("div",{className:hi.actions},r)));Qy.displayName="EmptyState";const gN=Z(["fixed inset-0 flex items-center justify-center","bg-black/40 p-4"]),yN=Z(["relative flex max-h-full items-stretch overflow-hidden","rounded-xl border border-light-200 bg-white","shadow-[0px_2px_4px_-1px_rgba(16,24,40,0.08),0px_8px_24px_-4px_rgba(16,24,40,0.14)]","outline-none"]),$N=Z(["flex min-w-0 shrink-0 flex-col self-stretch overflow-hidden outline-none"],{variants:{size:{sm:"w-[500px]",md:"w-[640px]",lg:"w-[800px]"}},defaultVariants:{size:"sm"}}),vN=Z(["absolute right-[7px] top-[7px] z-10"]),xN=Z(["flex w-full shrink-0 items-center gap-3 px-6 py-4"]),CN=Z(["min-h-0 w-full flex-1 overflow-y-auto"]),DN=Z(["flex shrink-0 items-center justify-center self-stretch overflow-hidden py-2 pr-2"]),EN=Z(["flex h-full w-[240px] items-center justify-center overflow-hidden","rounded-lg border border-light-200 bg-primary-50"]),wN=Z(["flex w-full shrink-0 items-center gap-3 px-6 py-4"],{variants:{layout:{"horizontal-fill":"[&>*]:flex-1",horizontal:"justify-end","vertical-fill":"flex-col items-stretch","right-aligned":"","right-aligned-checkbox":"","wizard-navigation":"","single-cta":""}},defaultVariants:{layout:"horizontal-fill"}}),e$=b.forwardRef(({className:e,style:t,size:n="sm",showCloseButton:r=!0,isDismissable:i=!0,imagePanel:a,children:l,"aria-label":o,"aria-labelledby":s,...d},c)=>b.createElement(Ib,{...d,isDismissable:i,className:gN(),style:{zIndex:yD}},b.createElement(I8,{ref:c,className:yN()},b.createElement(U3,{"aria-label":o,"aria-labelledby":s,style:t,className:U($N({size:n}),e)},f=>b.createElement(b.Fragment,null,r&&b.createElement(Ze,{type:"button",size:"sm",variant:"ghost",iconOnly:!0,onPress:f.close,"aria-label":"Close",className:vN()},b.createElement(Ze.Icon,null,b.createElement(cr,{size:16}))),typeof l=="function"?l(f):l)),a)));e$.displayName="Modal";const SN=({title:e,subtitle:t,icon:n,className:r})=>b.createElement("div",{className:U(xN(),r)},n&&b.createElement("span",{className:"flex size-6 shrink-0 items-center justify-center","aria-hidden":"true"},n),b.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5"},b.createElement(wc,{slot:"title",className:"text-[18px] font-bold leading-5 text-light-800"},e),t&&b.createElement("p",{className:"text-caption-sm text-light-500"},t))),PN=({children:e,className:t})=>b.createElement("div",{className:U(CN(),t)},e),kN=({children:e,className:t})=>b.createElement("div",{className:DN()},b.createElement("div",{className:U(EN(),t)},e)),t$=b.createElement("div",{className:"h-px min-w-px flex-1","aria-hidden":"true"}),BN=({layout:e="horizontal-fill",destructive:t=!1,isPending:n=!1,cancelLabel:r,onCancel:i,confirmLabel:a,onConfirm:l,isConfirmDisabled:o=!1,backLabel:s="Back",onBack:d,checkbox:c,className:f})=>{const m=b.createElement(Ze,{type:"button",size:"sm",tone:t?"destructive":"primary",isDisabled:o||n,isPending:n,onPress:l},b.createElement(Ze.Text,null,a)),h=r&&b.createElement(Ze,{type:"button",size:"sm",variant:"outline",isDisabled:n,onPress:i},b.createElement(Ze.Text,null,r)),p=r&&b.createElement(Ze,{type:"button",size:"sm",variant:"plain",isDisabled:n,onPress:i},b.createElement(Ze.Text,null,r)),g=b.createElement(Ze,{type:"button",size:"sm",variant:"outline",isDisabled:n,onPress:d},b.createElement(Ze.Text,null,s));let y;switch(e){case"single-cta":y=b.createElement("div",{className:"w-full"},m);break;case"vertical-fill":y=b.createElement(b.Fragment,null,b.createElement("div",{className:"w-full"},m),r&&b.createElement("div",{className:"flex w-full items-center justify-center"},p));break;case"right-aligned":y=b.createElement(b.Fragment,null,p,t$,m);break;case"right-aligned-checkbox":y=b.createElement(b.Fragment,null,c&&b.createElement("div",{className:"flex min-w-0 flex-1 items-start"},c),b.createElement("div",{className:"flex shrink-0 items-center gap-3"},h,m));break;case"wizard-navigation":y=b.createElement(b.Fragment,null,p,t$,b.createElement("div",{className:"flex shrink-0 items-center gap-3"},g,m));break;default:y=b.createElement(b.Fragment,null,h,m);break}return b.createElement("div",{className:U(wN({layout:e}),f)},y)},pi=e$;pi.Header=SN,pi.Body=PN,pi.ImagePanel=kN,pi.Footer=BN;function NN({className:e,style:t,...n},r){return b.createElement(Ku.Provider,{value:"listbox"},b.createElement(Hx,{ref:r,...n,style:t,className:U(E1,e)}))}const Qa=b.forwardRef(NN);function AN({className:e,style:t,content:n="none",icon:r,shortcut:i,children:a,...l},o){const s=n==="icon"?r:n==="selection"?d=>b.createElement("span",{className:w1},d.isSelected&&b.createElement(yi,{size:16,"aria-hidden":"true"})):void 0;return b.createElement(N1,{ref:o,...l,style:t,className:e,leadingSlot:s,trailingSlot:i?b.createElement("span",{className:S1},i):void 0},a)}const ss=b.forwardRef(AN),FN=({className:e})=>b.createElement(Fm,{className:U(P1,e)}),TN=Z(["flex w-full items-center justify-between gap-2 border bg-white text-left","text-light-900 outline-none cursor-pointer","transition-[border-color,box-shadow]","border-light-200 group-data-[open]:border-primary-500","group-data-[focus-visible]:shadow-focus","group-data-[invalid]:border-error-200 group-data-[invalid]:group-data-[open]:border-error-500 group-data-[invalid]:group-data-[focus-visible]:border-error-500","group-data-[disabled]:cursor-not-allowed group-data-[disabled]:bg-light-100 group-data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),IN="flex size-4 shrink-0 items-center justify-center text-light-500",MN={xs:18,sm:20,md:24},KN=Z("min-w-0 flex-1 truncate",{variants:{placeholder:{true:"text-light-400",false:"font-medium text-light-800"}},defaultVariants:{placeholder:!1}}),LN=Z("shrink-0 text-light-500 transition-transform",{variants:{open:{true:"rotate-180",false:""}},defaultVariants:{open:!1}});function ON({className:e,style:t,children:n,...r},i){return b.createElement(Z8,{ref:i,...r,style:t,className:U("group",e)},n)}const ds=b.forwardRef(ON),el=b.forwardRef(({className:e,style:t,size:n="md",icon:r,children:i,...a},l)=>b.createElement(qt,{ref:l,...a,style:t,className:U(TN({size:n}),e)},o=>b.createElement(b.Fragment,null,r&&b.createElement("span",{className:IN},r),typeof i=="function"?i(o):i,b.createElement($i,{size:MN[n],"aria-hidden":"true",className:LN({open:o.isPressed})}))));el.displayName="SelectTrigger";function zN({className:e,style:t,...n},r){return b.createElement(X8,{ref:r,...n,style:t,className:i=>U(KN({placeholder:i.isPlaceholder}),e)})}const cs=b.forwardRef(zN);function fs({className:e,...t}){return b.createElement(ss,{...t,content:"selection",className:e})}const VN=Z(["flex w-full flex-nowrap items-center gap-2 border bg-white text-left","border-light-200 text-light-900","transition-[border-color,box-shadow]","group-data-[open]:border-primary-500","group-data-[focus-visible]:shadow-focus","group-data-[invalid]:border-error-200 group-data-[invalid]:group-data-[open]:border-error-500 group-data-[invalid]:group-data-[focus-visible]:border-error-500","group-data-[disabled]:cursor-not-allowed group-data-[disabled]:bg-light-100 group-data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),_N=Z("flex shrink-0 items-center justify-center text-light-500",{variants:{size:{xs:"size-5",sm:"size-6",md:"size-7"}},defaultVariants:{size:"md"}}),RN="flex min-w-0 flex-nowrap items-center gap-1.5 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",jN="min-w-[4rem] flex-1 bg-transparent font-medium text-light-800 outline-none placeholder:font-normal placeholder:text-light-400 disabled:cursor-not-allowed";function HN({className:e,style:t,children:n,...r},i){return b.createElement(U9,{ref:i,...r,style:t,className:U("group",e)},n)}const UN=b.forwardRef(HN),n$=b.forwardRef(({className:e,size:t="md",icon:n,children:r,onClick:i,...a},l)=>{const o=b.useCallback(s=>{i?.(s),s.target.closest("button, input")||s.currentTarget.querySelector("input")?.focus()},[i]);return b.createElement(Lr,{ref:l,...a,onClick:o,className:U(VN({size:t}),e)},n&&b.createElement("span",{className:_N({size:t})},n),r)});n$.displayName="ComboBoxTrigger";const r$=b.forwardRef(({className:e,style:t,onKeyDown:n,...r},i)=>{const a=b.useContext(nu),l=b.useCallback(o=>{if(n?.(o),o.key==="Backspace"&&!o.defaultPrevented&&o.currentTarget.value===""&&a?.selectionManager.selectionMode==="multiple"){const s=a.selectedItems[a.selectedItems.length-1];s&&a.selectionManager.toggleSelection(s.key)}},[n,a]);return b.createElement(ha,{ref:i,...r,style:t,onKeyDown:l,className:U(jN,e)})});r$.displayName="ComboBoxInput";const WN=({children:e})=>{const t=b.useContext(nu);return t?b.createElement("div",{className:RN},t.selectedItems.map(n=>n?b.createElement(b.Fragment,{key:n.key},e({key:n.key,textValue:n.textValue??String(n.key),onRemove:()=>t.selectionManager.toggleSelection(n.key)})):null)):null};function GN({className:e,...t}){return b.createElement(ss,{...t,content:"selection",className:e})}const i$=b.createContext(null);function a$(){const e=b.useContext(i$);if(!e)throw new Error("MultiSelect components must be rendered inside MultiSelect.");return e}function ZN({"aria-label":e,items:t,children:n,selectedKeys:r,defaultSelectedKeys:i,onSelectionChange:a,disabledKeys:l,getTextValue:o,filter:s,searchValue:d,defaultSearchValue:c="",onSearchChange:f,isDisabled:m=!1,className:h}){const p=b.useMemo(()=>Array.from(t),[t]),g=r!==void 0,[y,$]=b.useState(()=>new Set(i)),x=b.useMemo(()=>g?new Set(r):y,[r,g,y]),v=d!==void 0,[C,w]=b.useState(c),S=v?d:C,[B,E]=b.useState(!1),k=b.useCallback(T=>{v||w(T),f?.(T)},[v,f]),M=b.useCallback(T=>{E(T),!T&&!v&&w("")},[v]),F=b.useCallback(T=>{if(T==="all")return;const Y=new Set(T);g||$(Y),a?.(Y)},[g,a]),I=b.useMemo(()=>{const T=S.trim().toLocaleLowerCase();return T?p.filter(Y=>s?s(Y,S):o(Y).toLocaleLowerCase().includes(T)):p},[s,o,p,S]),j=b.useMemo(()=>new Set(l),[l]),D={label:e,items:p,filteredItems:I,selectedKeys:x,disabledKeys:j,onSelectionChange:F,query:S,setQuery:k,isOpen:B,setOpen:M,isDisabled:m};return b.createElement(i$.Provider,{value:D},b.createElement("div",{className:U("w-full",h)},b.createElement(K9,{isOpen:B,onOpenChange:M},n)))}const YN=Z(["flex w-full items-center justify-between gap-2 border bg-white text-left","font-medium text-light-800 outline-none transition-[border-color,box-shadow]","hover:border-light-300 focus-visible:shadow-focus","disabled:cursor-not-allowed disabled:bg-light-100 disabled:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"},open:{true:"border-primary-500",false:"border-light-200"}},defaultVariants:{size:"md",open:!1}}),qN="overflow-hidden rounded-lg border border-light-200 bg-white shadow-lg outline-none",XN="outline-none",JN="p-2 pb-1",QN="flex h-9 items-center gap-2 rounded-lg border border-light-200 px-3 focus-within:border-primary-500 focus-within:shadow-focus",eA="min-w-0 flex-1 bg-transparent text-caption-lg text-light-800 outline-none placeholder:text-light-400",tA={xs:18,sm:20,md:20},l$=b.forwardRef(({children:e,size:t="md",className:n,style:r,...i},a)=>{const{isOpen:l,isDisabled:o}=a$();return b.createElement(qt,{ref:a,isDisabled:o,style:r,className:U(YN({size:t,open:l}),n),...i},b.createElement("span",{className:"min-w-0 flex-1 truncate"},e),b.createElement($i,{size:tA[t],"aria-hidden":"true",className:U("shrink-0 text-light-500 transition-transform",l&&"rotate-180")}))});l$.displayName="MultiSelectTrigger";function nA({children:e,searchPlaceholder:t="Search...",emptyState:n="No options found",className:r}){const{label:i,filteredItems:a,selectedKeys:l,disabledKeys:o,onSelectionChange:s,query:d,setQuery:c,setOpen:f}=a$(),m=b.useRef(null),h=p=>{if(p.key!=="ArrowDown")return;const g=m.current?.querySelector('[role="option"]:not([data-disabled])');g&&(p.preventDefault(),g.focus())};return b.createElement(ln,{matchTriggerWidth:!0,placement:"bottom start",className:U(qN,r)},b.createElement(U3,{"aria-label":i,className:XN},b.createElement("div",{onKeyDownCapture:p=>{const g=p.target;if(p.key.toLowerCase()==="a"&&(p.ctrlKey||p.metaKey)&&!!g.closest('[role="listbox"]')){p.preventDefault(),p.stopPropagation();return}p.key==="Escape"&&(p.preventDefault(),p.stopPropagation(),f(!1))}},b.createElement("div",{className:JN},b.createElement(_8,{"aria-label":`Search ${i.toLocaleLowerCase()}`,value:d,onChange:c},b.createElement("div",{className:QN},b.createElement(F$,{size:18,"aria-hidden":"true",className:"shrink-0 text-light-500"}),b.createElement(ha,{autoFocus:!0,placeholder:t,className:eA,onKeyDown:h})))),b.createElement(Qa,{ref:m,"aria-label":`${i} options`,items:a,selectionMode:"multiple",selectedKeys:l,disabledKeys:o,onSelectionChange:s,escapeKeyBehavior:"none",renderEmptyState:()=>n},e))))}const rA=Z(["relative inline-flex w-fit items-center font-semibold","transition-[color,background-color] duration-150","focus-visible:outline-none","[-webkit-tap-highlight-color:transparent]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:text-light-400"],{variants:{size:{xs:"gap-1 text-caption-sm",sm:"gap-1 text-caption-lg",md:"gap-1.5 text-body-sm"},variant:{text:["bg-transparent text-light-600","data-[hovered]:text-light-900","data-[current]:text-light-800","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],ghost:["bg-transparent text-light-500 rounded-md","data-[hovered]:bg-light-50 data-[hovered]:text-light-700","data-[current]:bg-light-50 data-[current]:text-light-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],"ghost-primary":["bg-transparent text-primary-500 rounded-md","data-[hovered]:bg-primary-100 data-[hovered]:text-primary-800","data-[current]:bg-primary-100 data-[current]:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"]},underline:{none:"",hover:"data-[hovered]:underline underline-offset-2",always:"underline underline-offset-2"}},compoundVariants:[{variant:"ghost",size:"xs",class:"px-1.5 py-0.5"},{variant:"ghost",size:"sm",class:"px-2 py-1"},{variant:"ghost",size:"md",class:"px-2.5 py-1.5"},{variant:"ghost-primary",size:"xs",class:"px-1.5 py-0.5"},{variant:"ghost-primary",size:"sm",class:"px-2 py-1"},{variant:"ghost-primary",size:"md",class:"px-2.5 py-1.5"}],defaultVariants:{size:"sm",variant:"text",underline:"none"}}),ms=b.forwardRef(({children:e,className:t,variant:n="text",size:r="sm",underline:i="none",...a},l)=>b.createElement(Cv,{...a,ref:l,className:al(t,o=>U(rA({variant:n,size:r,underline:i}),o))},e));ms.displayName="Link";const o$=b.createContext({separator:"chevron",variant:"text",size:"sm"}),u$=()=>b.useContext(o$),iA="flex flex-wrap items-center",aA="inline-flex items-center gap-1.5",lA=Z("shrink-0 text-light-400",{variants:{type:{chevron:"size-4",slash:"size-3.5"}},defaultVariants:{type:"chevron"}}),oA="inline-flex size-5 shrink-0 items-center justify-center [&_svg]:size-full",s$=({"aria-label":e="Breadcrumb",separator:t="chevron",variant:n="text",size:r="sm",isDisabled:i,className:a,children:l})=>{const o=b.useMemo(()=>({separator:t,variant:n,size:r}),[t,n,r]);return b.createElement("nav",{"aria-label":e},b.createElement(o$.Provider,{value:o},b.createElement(wv,{isDisabled:i,className:U(iA,a)},l)))};s$.displayName="Breadcrumbs";const hs=({type:e="chevron",className:t})=>{const n=e==="slash"?T$:Bs;return b.createElement("span",{"aria-hidden":"true",className:U(lA({type:e}),t)},b.createElement(n,{className:"size-full",stroke:2}))};hs.displayName="BreadcrumbSeparator";const d$=({className:e,children:t})=>{const{separator:n}=u$();return b.createElement(Sv,{className:U(aA,e)},({isCurrent:r})=>b.createElement(b.Fragment,null,t,!r&&b.createElement(hs,{type:n})))};d$.displayName="Breadcrumb";const c$=({variant:e,size:t,icon:n,children:r,...i})=>{const a=u$();return b.createElement(ms,{variant:e??a.variant,size:t??a.size,...i},n&&b.createElement("span",{className:oA,"aria-hidden":"true"},n),r)};c$.displayName="BreadcrumbLink";const uA={xs:24,sm:32,md:40,lg:48,xl:56},sA={xs:12,sm:16,md:20,lg:24,xl:28},f$={brand:{light:"bg-primary-100",dark:"bg-primary-500",glass:"bg-primary-100/60 backdrop-blur-sm"},gray:{light:"bg-light-100",dark:"bg-light-600",modern:"bg-white border border-light-200 shadow-xs"},error:{light:"bg-error-50",dark:"bg-error-500"},warning:{light:"bg-warning-100",dark:"bg-warning-600"},success:{light:"bg-success-50",dark:"bg-success-500"}},m$={brand:{light:"text-primary-500",dark:"text-white",glass:"text-primary-700"},gray:{light:"text-light-700",dark:"text-white",modern:"text-light-700"},error:{light:"text-error-500",dark:"text-white"},warning:{light:"text-warning-600",dark:"text-white"},success:{light:"text-success-500",dark:"text-white"}};function dA(e,t){return f$[e][t]??f$[e].light??""}function cA(e,t){return m$[e][t]??m$[e].light??""}const fA=Z("relative inline-flex shrink-0 items-center justify-center",{variants:{type:{light:"rounded-full",dark:"rounded-lg",modern:"rounded-lg",glass:"rounded-full"}},defaultVariants:{type:"light"}}),h$=({icon:e,size:t="md",color:n="brand",type:r="light",className:i})=>{const a=uA[t],l=sA[t];return b.createElement("div",{"aria-hidden":!0,className:ee(fA({type:r}),dA(n,r),i),style:{width:a,height:a}},b.createElement(An,{icon:e,strokeWidth:2,className:cA(n,r),style:{width:l,height:l}}))};h$.displayName="FeaturedIcon";const mA={xs:20,sm:24,md:28,lg:32},hA={xs:9,sm:11,md:12,lg:14},pA={primary:{default:"bg-primary-100",line:"bg-transparent border border-primary-300",filled:"bg-primary-500"},gray:{default:"bg-light-100",line:"bg-transparent border border-light-300",filled:"bg-light-600"},success:{default:"bg-success-50",line:"bg-transparent border border-success-300",filled:"bg-success-500"}},bA={primary:{default:"text-primary-500",line:"text-primary-500",filled:"text-white"},gray:{default:"text-light-700",line:"text-light-700",filled:"text-white"},success:{default:"text-success-500",line:"text-success-500",filled:"text-white"}};function gA(e,t){return pA[e][t]}function yA(e,t){return bA[e][t]}const $A=Z("relative inline-flex shrink-0 items-center justify-center rounded-full"),p$=({size:e="sm",color:t="primary",type:n="default",className:r})=>{const i=mA[e],a=hA[e];return b.createElement("div",{"aria-hidden":!0,className:ee($A(),gA(t,n),r),style:{width:i,height:i}},b.createElement(An,{icon:yi,strokeWidth:2.5,className:yA(t,n),style:{width:a,height:a}}))};p$.displayName="CheckIcon";const vA={sm:8,md:10,lg:12},xA={sm:6,md:8,lg:10},CA=Z("relative shrink-0 rounded-full bg-current",{variants:{outline:{true:"ring-2 ring-white",false:""}},defaultVariants:{outline:!1}}),b$=({size:e="sm",outline:t=!1,className:n})=>{const r=vA[e],i=xA[e];return b.createElement("span",{"aria-hidden":!0,className:"relative inline-flex shrink-0 items-center justify-center",style:{width:r,height:r}},b.createElement("span",{className:ee(CA({outline:t}),n),style:{width:i,height:i}}))};b$.displayName="Dot";const g$="inline-flex flex-col gap-3 text-light-900",DA="flex h-9 w-full items-center justify-between gap-1",EA="flex-1 text-center text-body-sm font-semibold text-light-900",wA="flex min-w-0 flex-1 items-center justify-center gap-2",SA=Z("h-fit self-start border-separate border-spacing-x-0",{variants:{size:{sm:"border-spacing-y-1",md:"border-spacing-y-1"}},defaultVariants:{size:"md"}}),PA=Z("font-medium text-light-500",{variants:{size:{sm:"size-8 text-caption-sm",md:"size-10 text-caption-lg"}},defaultVariants:{size:"md"}}),kA=Z(["group/cell relative flex cursor-pointer select-none items-center justify-center rounded-full","font-medium text-light-800 outline-none","transition-colors","data-[outside-month]:pointer-events-none data-[outside-month]:text-light-400","data-[hovered]:bg-light-100","data-[disabled]:pointer-events-none data-[disabled]:text-light-400","data-[unavailable]:pointer-events-none data-[unavailable]:text-light-400 data-[unavailable]:line-through","data-[selected]:bg-primary-500 data-[selected]:text-white","data-[selected]:data-[hovered]:bg-primary-600","data-[focus-visible]:shadow-focus"],{variants:{size:{sm:"size-8 text-caption-sm",md:"size-10 text-caption-lg"}},defaultVariants:{size:"md"}}),BA=["data-[selected]:rounded-none data-[selected]:bg-light-50 data-[selected]:text-light-700","data-[selected]:data-[hovered]:bg-light-100","[td:first-child_&]:data-[selected]:rounded-l-full","[td:last-child_&]:data-[selected]:rounded-r-full","data-[selected]:data-[selection-start]:rounded-full data-[selected]:data-[selection-start]:bg-primary-500 data-[selected]:data-[selection-start]:text-white","data-[selected]:data-[selection-end]:rounded-full data-[selected]:data-[selection-end]:bg-primary-500 data-[selected]:data-[selection-end]:text-white","data-[selected]:data-[hovered]:data-[selection-start]:bg-primary-600","data-[selected]:data-[hovered]:data-[selection-end]:bg-primary-600"],NA=["pointer-events-none absolute bottom-1 left-1/2 size-1 -translate-x-1/2 rounded-full","bg-primary-500","group-data-[selected]/cell:group-data-[selection-start]/cell:bg-white","group-data-[selected]/cell:group-data-[selection-end]/cell:bg-white","group-data-[disabled]/cell:bg-light-400","group-data-[unavailable]/cell:bg-light-400"],AA=["data-[today]:font-bold data-[today]:text-primary-500","data-[today]:data-[selected]:text-primary-500","data-[today]:data-[selected]:data-[selection-start]:text-white","data-[today]:data-[selected]:data-[selection-end]:text-white"],FA=["data-[today]:font-bold data-[today]:text-primary-500","data-[today]:data-[selected]:text-white"],y$=["flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg","text-light-500 outline-none transition-colors","data-[hovered]:bg-light-100 data-[hovered]:text-light-700","data-[focus-visible]:shadow-focus","data-[disabled]:cursor-not-allowed data-[disabled]:text-light-300"],tl=b.createContext({size:"md",isRange:!1});function TA(e,t){return b.useMemo(()=>t?new Proxy(e,{get(n,r,i){return r==="focusedDate"?n.focusedDate.add(t):r==="setFocusedDate"?a=>n.setFocusedDate(a.subtract(t)):Reflect.get(n,r,i)}}):e,[e,t])}function $$(e){const t=b.useContext(Yn),n=b.useContext(qn),r=t??n;if(!r)throw new Error("CalendarMonthSelect/CalendarYearSelect must be rendered inside a Calendar or RangeCalendar.");return TA(r,e)}function IA({previousLabel:e,nextLabel:t,withPickers:n=!1,visibleYears:r=20,offset:i,className:a}){return b.createElement("header",{className:U(DA,a)},b.createElement(qt,{slot:"previous","aria-label":e,className:U(y$)},b.createElement(N$,{size:20,"aria-hidden":"true"})),n?b.createElement("div",{className:wA},b.createElement(v$,{offset:i}),b.createElement(x$,{visibleYears:r,offset:i})):b.createElement(ox,{offset:i,className:EA}),b.createElement(qt,{slot:"next","aria-label":t,className:U(y$)},b.createElement(Bs,{size:20,"aria-hidden":"true"})))}function v$({format:e="long",size:t="sm",offset:n,className:r}){const i=$$(n),{items:a,value:l,onChange:o,"aria-label":s}=Z6({format:e},i);return b.createElement(ds,{"aria-label":s,selectedKey:l,onSelectionChange:o,className:r},b.createElement(el,{size:t},b.createElement(cs,null)),b.createElement(ln,null,b.createElement(Qa,{items:a},d=>b.createElement(fs,{id:d.id,textValue:d.formatted},d.formatted))))}function x$({visibleYears:e=20,size:t="sm",offset:n,className:r}){const i=$$(n),{items:a,value:l,onChange:o,"aria-label":s}=Y6({visibleYears:e},i);return b.createElement(ds,{"aria-label":s,selectedKey:l,onSelectionChange:o,className:r},b.createElement(el,{size:t},b.createElement(cs,null)),b.createElement(ln,null,b.createElement(Qa,{items:a},d=>b.createElement(fs,{id:d.id,textValue:d.formatted},d.formatted))))}function MA({size:e,className:t,...n}){const r=b.useContext(tl),i=e??r.size;return b.createElement(nx,{...n,className:U(SA({size:i}),t)},b.createElement(a0,null,a=>b.createElement(l0,{className:PA({size:i})},a)),b.createElement(o0,null,a=>b.createElement(C$,{date:a,size:i})))}function C$({date:e,size:t,className:n,...r}){const i=b.useContext(tl),a=t??i.size,l=i.hasActivity?.(e)??!1;return b.createElement(lx,{...r,date:e,className:U(kA({size:a}),i.isRange&&BA,i.isRange?AA:FA,n)},({formattedDate:o})=>b.createElement(b.Fragment,null,o,l?b.createElement("span",{"aria-hidden":"true",className:U(NA)}):null))}function KA({size:e="md",hasActivity:t,className:n,children:r,...i}){const a=b.useMemo(()=>({size:e,isRange:!1,hasActivity:t}),[e,t]);return b.createElement(tl.Provider,{value:a},b.createElement(ex,{...i,className:U(g$,n)},r))}function LA({size:e="md",hasActivity:t,className:n,children:r,...i}){const a=b.useMemo(()=>({size:e,isRange:!0,hasActivity:t}),[e,t]);return b.createElement(tl.Provider,{value:a},b.createElement(tx,{...i,className:U(g$,n)},r))}const OA=Z(["flex w-full items-center border bg-white text-left","border-light-200 text-light-800","transition-[border-color,box-shadow]","data-[focus-within]:border-primary-500","data-[focus-visible]:shadow-focus","data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100 data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 gap-1 rounded px-2 text-caption-sm",sm:"h-9 gap-2 rounded-lg px-3 text-caption-lg",md:"h-11 gap-2 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),zA="flex min-w-0 flex-1 items-center",VA=["rounded px-0.5 tabular-nums outline-none","text-light-800 caret-transparent","data-[placeholder]:text-light-400","data-[focused]:bg-primary-500 data-[focused]:text-white","data-[disabled]:text-light-400","data-[type=literal]:px-0 data-[type=literal]:text-light-400"],_A=Z("flex shrink-0 items-center justify-center text-light-500",{variants:{size:{xs:"size-5",sm:"size-6",md:"size-7"}},defaultVariants:{size:"md"}});function RA({size:e="md",icon:t,trailing:n,className:r,style:i,...a}){return b.createElement(v8,{...a,style:i,className:U("group w-full",r)},b.createElement(Lr,{className:OA({size:e})},t?b.createElement("span",{className:_A({size:e}),"aria-hidden":"true"},t):null,b.createElement(x8,{className:zA},l=>b.createElement(D8,{segment:l,className:U(VA)})),n))}W.Alert=zy,W.Avatar=ja,W.AvatarGroup=o1,W.AvatarLabelGroup=u1,W.AvatarProfilePhoto=s1,W.Badge=t1,W.BadgeGroup=n1,W.BaseInput=ei,W.Breadcrumb=d$,W.BreadcrumbLink=c$,W.BreadcrumbSeparator=hs,W.Breadcrumbs=s$,W.Button=Ze,W.Calendar=KA,W.CalendarCell=C$,W.CalendarGrid=MA,W.CalendarHeader=IA,W.CalendarMonthSelect=v$,W.CalendarYearSelect=x$,W.Cell=Xy,W.CheckIcon=p$,W.Checkbox=Z2,W.CollectionItem=xB,W.Column=qy,W.ColumnResizer=Ja,W.ComboBox=UN,W.ComboBoxInput=r$,W.ComboBoxItem=GN,W.ComboBoxTags=WN,W.ComboBoxTrigger=n$,W.DateField=RA,W.Dot=b$,W.EmptyState=Qy,W.FeaturedIcon=h$,W.Icon=An,W.Input=ls,W.InputCardNumber=Mk,W.InputCounter=kk,W.InputDropdown=$B,W.InputPhone=vk,W.InputPrice=Pk,W.Link=ms,W.ListBox=Qa,W.ListBoxItem=ss,W.ListBoxSeparator=FN,W.Loading=r1,W.Menu=Lu,W.MenuHeader=RE,W.MenuItem=Ou,W.MenuSeparator=_E,W.MenuTrigger=Na,W.Modal=pi,W.MultiSelect=ZN,W.MultiSelectPopover=nA,W.MultiSelectTrigger=l$,W.NotificationToast=Hy,W.Popover=ln,W.RadioGroup=cD,W.RadioGroupItem=q2,W.RangeCalendar=LA,W.Row=bN,W.Select=ds,W.SelectItem=fs,W.SelectTrigger=el,W.SelectValue=cs,W.SelectionIndicator=xx,W.Tab=d1,W.TabBrowser=g1,W.TabBrowserBar=y1,W.TabBrowserPreview=$1,W.TabList=c1,W.Table=Yy,W.TableBody=mN,W.TableContainer=Zy,W.TableFooter=hN,W.TableHeader=fN,W.TableLoadMoreItem=Jy,W.Tag=Fu,W.Textarea=Ty,W.Toast=Vy,W.Toggle=X2,W.Tooltip=_a,W.WebsiteCopyInput=uB,W.WebsiteInput=Qk,W.buttonIconSizePx=iD,W.cellTruncate=sN,W.getDefaultCountryOptions=Py,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})}));
|