@marimo-team/frontend 0.18.5-dev168 → 0.18.5-dev171
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/assets/{CellStatus-C5QfWAQj.js → CellStatus-ClrYbUob.js} +1 -1
- package/dist/assets/{ConnectedDataExplorerComponent-B0tKPs5t.js → ConnectedDataExplorerComponent-KlUs_Sz3.js} +1 -1
- package/dist/assets/{ErrorBoundary-BYCO3_zw.js → ErrorBoundary-Drf1manw.js} +1 -1
- package/dist/assets/{ImperativeModal-7Thr73Oo.js → ImperativeModal-q6QlC2aZ.js} +1 -1
- package/dist/assets/{JsonOutput-NOfbbuUx.js → JsonOutput-CkeISXrs.js} +9 -9
- package/dist/assets/{LazyAnyLanguageCodeMirror-DIbHWNF6.js → LazyAnyLanguageCodeMirror-jpEDlD0M.js} +2 -2
- package/dist/assets/{MarimoErrorOutput-usFICLUe.js → MarimoErrorOutput-CO8cm8-0.js} +2 -2
- package/dist/assets/{RenderHTML-LxV1eecf.js → RenderHTML-D6fh5YLC.js} +1 -1
- package/dist/assets/{VisuallyHidden-BLp5kXtE.js → VisuallyHidden-BodIky8L.js} +1 -1
- package/dist/assets/{add-cell-with-ai-CEKGThxQ.js → add-cell-with-ai-B3V6Mgb9.js} +12 -12
- package/dist/assets/{add-database-form-DQyrphh9.js → add-database-form-C-K88iSC.js} +1 -1
- package/dist/assets/{agent-panel-CnTn12AW.js → agent-panel-BvLqBe3U.js} +6 -6
- package/dist/assets/{ai-model-dropdown-CxRols0L.js → ai-model-dropdown-D1nEKS8b.js} +1 -1
- package/dist/assets/{alert-dialog-B3T1GCoD.js → alert-dialog-k5KxevGr.js} +1 -1
- package/dist/assets/any-language-editor-DQu1Tt2N.js +3 -0
- package/dist/assets/{app-config-button-DtMP2_j5.js → app-config-button-BD5l-v4I.js} +1 -1
- package/dist/assets/{button-C9TEIJJh.js → button-DuYGqRtX.js} +1 -1
- package/dist/assets/{cache-panel-C-YLXsti.js → cache-panel-C1So4Zu3.js} +1 -1
- package/dist/assets/{capabilities-h9_pyvFv.js → capabilities-BmAOeMOK.js} +1 -1
- package/dist/assets/{capitalize-D4JsDDXI.js → capitalize-DQeWKRGx.js} +1 -1
- package/dist/assets/{cell-actions-DCZqhhwF.js → cell-actions-CJiaF9Tu.js} +1 -1
- package/dist/assets/cell-link-Hwo1QbqQ.js +1 -0
- package/dist/assets/{cells-DAR6V-0d.js → cells-rr1jjvJk.js} +33 -33
- package/dist/assets/{chat-components-CyY2c7cG.js → chat-components-DXJsXOD8.js} +1 -1
- package/dist/assets/{chat-display-BgCCmGdz.js → chat-display-C08N0rx5.js} +1 -1
- package/dist/assets/{chat-panel-ByuXM3gc.js → chat-panel-CNL6ANh8.js} +2 -2
- package/dist/assets/client-SMzMTiO_.js +4 -0
- package/dist/assets/{column-preview-DBqi4KCj.js → column-preview-BzvHnhPG.js} +1 -1
- package/dist/assets/command-palette-B_md1fzh.js +1 -0
- package/dist/assets/{command-BXWdrTY9.js → command-xU8ykulh.js} +1 -1
- package/dist/assets/{common-D10A9aix.js → common-_RAkDTpe.js} +1 -1
- package/dist/assets/{config-D3ojpe3F.js → config-cCkBQ_ER.js} +1 -1
- package/dist/assets/{copy-Bmkr29w4.js → copy-DRhpWiOq.js} +1 -1
- package/dist/assets/{copy-icon-qVgCqhII.js → copy-icon-B69c-352.js} +1 -1
- package/dist/assets/{createReducer-CaezzNVH.js → createReducer-DDa-hVe3.js} +1 -1
- package/dist/assets/{datasource-CW2RMV2e.js → datasource-DHbNHnua.js} +2 -2
- package/dist/assets/{dates-B2_O0-if.js → dates-CdsE1R40.js} +1 -1
- package/dist/assets/{dependency-graph-panel-CtlDdK0s.js → dependency-graph-panel-BGp5UzmZ.js} +3 -3
- package/dist/assets/{dialog-DIUTtzeB.js → dialog-DUEuLcT2.js} +1 -1
- package/dist/assets/{dist-vrNOUnFF.js → dist-DOFFh6Ii.js} +1 -1
- package/dist/assets/{documentation-panel-Cup0ghBs.js → documentation-panel-CuPlvIjJ.js} +1 -1
- package/dist/assets/{download-D3Uujsn_.js → download-DKRxBkYD.js} +1 -1
- package/dist/assets/edit-page-DAFshpgY.js +13 -0
- package/dist/assets/{error-banner-D2-5vgE4.js → error-banner-DU5Qb8a8.js} +1 -1
- package/dist/assets/{error-panel-DcRvXIwA.js → error-panel-CoYFpNUd.js} +1 -1
- package/dist/assets/{es-DCqUUmrq.js → es-YVwBDiDw.js} +1 -1
- package/dist/assets/{field-D2_0r7wT.js → field-DDKGFzpC.js} +1 -1
- package/dist/assets/{file-explorer-panel-9Bt20tRi.js → file-explorer-panel-BcpntT7Q.js} +1 -1
- package/dist/assets/{floating-outline-BTc4L5BF.js → floating-outline-CHprSkP6.js} +1 -1
- package/dist/assets/{focus-6-St0ai2.js → focus-D3ygI6Sy.js} +1 -1
- package/dist/assets/{form-1WOcPtE8.js → form-B_zRT4QS.js} +2 -2
- package/dist/assets/{formats-nh-sPUUZ.js → formats-B9CrBoaO.js} +1 -1
- package/dist/assets/{glide-data-editor-EdMWe-iv.js → glide-data-editor-Brckuic5.js} +1 -1
- package/dist/assets/{globals-CJb4gcmW.js → globals-D46Vbo5D.js} +1 -1
- package/dist/assets/{home-page-Lqy9A89-.js → home-page-DuPzZzUf.js} +2 -2
- package/dist/assets/hotkeys-uKX61F1_.js +1 -0
- package/dist/assets/{index-CIoUDThG.js → index-CQBtzy-J.js} +9 -9
- package/dist/assets/index-G6ss-VDT.css +2 -0
- package/dist/assets/{input-DP44ewsS.js → input-CaEtLL8p.js} +1 -1
- package/dist/assets/{kiosk-mode-C3lS9kUL.js → kiosk-mode-CTjr_Jn4.js} +1 -1
- package/dist/assets/{label-DJo0Eeb3.js → label-qwandMoh.js} +1 -1
- package/dist/assets/{layout-F63rlsGg.js → layout-CprHgyfx.js} +4 -4
- package/dist/assets/links-Cw9RjHIY.js +1 -0
- package/dist/assets/{logs-panel-fnMYUf4-.js → logs-panel-CFM-1lMP.js} +1 -1
- package/dist/assets/{maps-DELIOfTw.js → maps-s2pQkyf5.js} +1 -1
- package/dist/assets/{markdown-renderer-B9gYLzJX.js → markdown-renderer-DecoaRsV.js} +1 -1
- package/dist/assets/{mermaid-BUMgiGGr.js → mermaid-BPkO79lo.js} +1 -1
- package/dist/assets/{mode-D4GlAyEq.js → mode-BYulXE3t.js} +1 -1
- package/dist/assets/{multi-map-TecGBFLS.js → multi-map-fjX9ImVF.js} +1 -1
- package/dist/assets/{name-cell-input-BMtblyo6.js → name-cell-input-BGJDnv5Z.js} +1 -1
- package/dist/assets/{numbers-Ckcn6C-H.js → numbers-C9_R_vlY.js} +1 -1
- package/dist/assets/outline-panel-C-__7mIh.js +1 -0
- package/dist/assets/{packages-panel-DyC7zUxG.js → packages-panel-B4bQCG8Y.js} +1 -1
- package/dist/assets/{cell-editor-DJ1tY3mU.js → panel-context-Bee798AZ.js} +13 -13
- package/dist/assets/{panels-wYHy1fpG.js → panels-CuLZ4Xjj.js} +1 -1
- package/dist/assets/{process-output-D1GR6Ero.js → process-output-2gz8Uri2.js} +1 -1
- package/dist/assets/{readonly-python-code-CGnOB_RP.js → readonly-python-code-ihKi3Mrq.js} +1 -1
- package/dist/assets/{renderShortcut-CV_tqoEI.js → renderShortcut-D0Pei-OA.js} +1 -1
- package/dist/assets/{run-page-BLnJcKtg.js → run-page-Q1ifcEUY.js} +1 -1
- package/dist/assets/{runs-BbV5uZz6.js → runs-yuOchwkU.js} +1 -1
- package/dist/assets/scratchpad-panel-B75Qsjwz.js +1 -0
- package/dist/assets/{secrets-panel-K7EccfRa.js → secrets-panel-CDWmmmBS.js} +1 -1
- package/dist/assets/{select-BJ18Dxpd.js → select-D0g5GnIs.js} +1 -1
- package/dist/assets/{session-panel-C3rDPyig.js → session-panel-Bn5_JmbT.js} +1 -1
- package/dist/assets/{share-0dWXMs9M.js → share-CXQVxivL.js} +1 -1
- package/dist/assets/{slides-component-CZ76zal6.js → slides-component-DUIqQih1.js} +1 -1
- package/dist/assets/{snippets-panel-s0p4CCoa.js → snippets-panel-CVBBnX9H.js} +1 -1
- package/dist/assets/{spec-D9TFI5I_.js → spec-qp_XZeSS.js} +1 -1
- package/dist/assets/{state-DwSzcmzL.js → state-BHFBtWym.js} +1 -1
- package/dist/assets/{state-CGq6kn1k.js → state-CIznbe1J.js} +1 -1
- package/dist/assets/{state-BK5o1KAL.js → state-DNwec0Uj.js} +1 -1
- package/dist/assets/{switch-C8yab1pC.js → switch-iJj-D3dz.js} +1 -1
- package/dist/assets/{terminal-CA6CqpuO.js → terminal-CRIGvHBN.js} +1 -1
- package/dist/assets/{textarea-DBFtOima.js → textarea-DmNrZcLR.js} +1 -1
- package/dist/assets/{tooltip-BNPhCMFo.js → tooltip-CrRUCOBw.js} +1 -1
- package/dist/assets/tracing-D9h130fg.js +1 -0
- package/dist/assets/{tracing-panel-C-o1Db4W.js → tracing-panel-DaDvGMEN.js} +2 -2
- package/dist/assets/{type-drzC-SxF.js → type-BdyvjzTI.js} +1 -1
- package/dist/assets/{types-Bt3U-XJV.js → types-4-l_7Ws2.js} +1 -1
- package/dist/assets/{useAddCell-CNI3pgez.js → useAddCell-BpMe5DB-.js} +1 -1
- package/dist/assets/{useBoolean-C_vQizET.js → useBoolean-BDG41CyP.js} +1 -1
- package/dist/assets/{useCellActionButton-BbfiHu5s.js → useCellActionButton-Dh4wbVPA.js} +1 -1
- package/dist/assets/{useDeleteCell-B_jFiS1Y.js → useDeleteCell-DBzN8QcP.js} +1 -1
- package/dist/assets/{useIframeCapabilities-ZISlVepl.js → useIframeCapabilities-CU-WWxnz.js} +1 -1
- package/dist/assets/{useInstallPackage-CBvG269f.js → useInstallPackage-RldLPyJs.js} +1 -1
- package/dist/assets/{useLifecycle-BX7GmOQ5.js → useLifecycle-CmDXEyIC.js} +1 -1
- package/dist/assets/{useNotebookActions-BeM5fet2.js → useNotebookActions-DKyQBNlS.js} +1 -1
- package/dist/assets/useRunCells-BGzo-QMk.js +1 -0
- package/dist/assets/{useSplitCell-COPg5dJw.js → useSplitCell-CvKAuKQ_.js} +1 -1
- package/dist/assets/{useTheme-CuOCKnyR.js → useTheme-DfP1CWaW.js} +1 -1
- package/dist/assets/{utilities.esm-B7XtzwiJ.js → utilities.esm-CT3NbLA9.js} +2 -2
- package/dist/assets/{utils-Cxqw03y3.js → utils-CJJIceVn.js} +1 -1
- package/dist/assets/{vega-component-arPQXQS8.js → vega-component-CLrcy81y.js} +1 -1
- package/dist/assets/{write-secret-modal-CIbhcoWF.js → write-secret-modal-CLm48gMe.js} +1 -1
- package/dist/index.html +68 -68
- package/package.json +1 -1
- package/src/components/editor/actions/useNotebookActions.tsx +1 -1
- package/src/components/editor/chrome/panels/panel-context.tsx +34 -0
- package/src/components/editor/chrome/state.ts +30 -15
- package/src/components/editor/chrome/types.ts +67 -77
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +216 -139
- package/src/components/editor/chrome/wrapper/sidebar.tsx +76 -43
- package/src/components/scratchpad/scratchpad.tsx +17 -4
- package/src/components/ui/reorderable-list.tsx +190 -31
- package/src/core/codemirror/cells/extensions.ts +7 -4
- package/src/core/hotkeys/__tests__/shortcuts.test.ts +61 -4
- package/src/core/hotkeys/shortcuts.ts +34 -2
- package/dist/assets/any-language-editor-CTAS1EXW.js +0 -3
- package/dist/assets/cell-link-DjST51KF.js +0 -1
- package/dist/assets/client-BQowSjqE.js +0 -4
- package/dist/assets/command-palette-CjFiCjws.js +0 -1
- package/dist/assets/edit-page-fJ4hHm67.js +0 -13
- package/dist/assets/hotkeys-D3ICc8RW.js +0 -1
- package/dist/assets/index-D-BWugLn.css +0 -2
- package/dist/assets/links-ZVVAwqm7.js +0 -1
- package/dist/assets/outline-panel-Blq76m9b.js +0 -1
- package/dist/assets/scratchpad-panel-CTJDEy90.js +0 -1
- package/dist/assets/tracing-VZVj-gEo.js +0 -1
- package/dist/assets/useRunCells-oeY0TrS1.js +0 -1
- /package/dist/assets/{cell-editor-Iey559K_.css → panel-context-Iey559K_.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as mt}from"./chunk-LvLJmgfZ.js";import{t as zr}from"./react-BGmjiNul.js";import{t as ft}from"./compiler-runtime-DeeZ7FnK.js";import{t as Kr}from"./jsx-runtime-DN_bIXfG.js";import{r as Gr}from"./button-C9TEIJJh.js";import{t as R}from"./cn-C1rgT0yh.js";import{t as qr}from"./createLucideIcon-CW2xpJ57.js";import{_ as Zr,g as Yr,h as Xr}from"./select-BJ18Dxpd.js";import{S as Jr}from"./Combination-D1TsGrBC.js";import{A as re,C as Qr,D as pt,E as ei,F as ti,I as vt,L as B,N as O,O as V,P as H,R as _,a as ai,d as ri,f as ii,i as bt,j as ht,k as gt,m as ni,o as yt,p as Se,r as oi,t as li,w as si,y as ui,z as Et}from"./usePress-C2LPFxyv.js";import{t as di}from"./SSRProvider-DD7JA3RM.js";import{t as Fe}from"./context-BAYdLMF_.js";import{n as Me,t as Pt}from"./useNumberFormatter-D8ks3oPN.js";import{t as ci}from"./numbers-Ckcn6C-H.js";import{t as wt}from"./useDebounce-em3gna-v.js";var Lt=qr("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);function mi(...e){return e.length===1&&e[0]?e[0]:a=>{let t=!1,r=e.map(i=>{let n=xt(i,a);return t||(t=typeof n=="function"),n});if(t)return()=>{r.forEach((i,n)=>{typeof i=="function"?i():xt(e[n],null)})}}}function xt(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}var fi=new Set(["id"]),pi=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),vi=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),bi=new Set(["dir","lang","hidden","inert","translate"]),Ct=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".split(".")),hi=/^(data-.*)$/;function z(e,a={}){let{labelable:t,isLink:r,global:i,events:n=i,propNames:o}=a,s={};for(let u in e)Object.prototype.hasOwnProperty.call(e,u)&&(fi.has(u)||t&&pi.has(u)||r&&vi.has(u)||i&&bi.has(u)||n&&Ct.has(u)||u.endsWith("Capture")&&Ct.has(u.slice(0,-7))||o!=null&&o.has(u)||hi.test(u))&&(s[u]=e[u]);return s}function Dt(e,a){let{id:t,"aria-label":r,"aria-labelledby":i}=e;return t=B(t),i&&r?i=[...new Set([t,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&a&&(r=a),{id:t,"aria-label":r,"aria-labelledby":i}}var l=mt(zr(),1);function Nt(e){let a=(0,l.useRef)(null),t=(0,l.useRef)(void 0),r=(0,l.useCallback)(i=>{if(typeof e=="function"){let n=e,o=n(i);return()=>{typeof o=="function"?o():n(null)}}else if(e)return e.current=i,()=>{e.current=null}},[e]);return(0,l.useMemo)(()=>({get current(){return a.current},set current(i){a.current=i,t.current&&(t.current=(t.current(),void 0)),i!=null&&(t.current=r(i))}}),[r])}function St(e,a,t,r){let i=_(t),n=t==null;(0,l.useEffect)(()=>{if(n||!e.current)return;let o=e.current;return o.addEventListener(a,i,r),()=>{o.removeEventListener(a,i,r)}},[e,a,r,n,i])}function Te(e,a,t){let r=_(()=>{t&&t(a)});(0,l.useEffect)(()=>{var n;let i=(n=e==null?void 0:e.current)==null?void 0:n.form;return i==null||i.addEventListener("reset",r),()=>{i==null||i.removeEventListener("reset",r)}},[e,r])}function Ve(e,a,t){let[r,i]=(0,l.useState)(e||a),n=(0,l.useRef)(e!==void 0),o=e!==void 0;(0,l.useEffect)(()=>{n.current,n.current=o},[o]);let s=o?e:r,u=(0,l.useCallback)((d,...f)=>{let c=(m,...v)=>{t&&(Object.is(s,m)||t(m,...v)),o||(s=m)};typeof d=="function"?i((m,...v)=>{let b=d(o?s:m,...v);return c(b,...f),o?m:b}):(o||i(d),c(d,...f))},[o,s,t]);return[s,u]}function de(e,a=-1/0,t=1/0){return Math.min(Math.max(e,a),t)}function ce(e,a){let t=e,r=0,i=a.toString(),n=i.toLowerCase().indexOf("e-");if(n>0)r=Math.abs(Math.floor(Math.log10(Math.abs(a))))+n;else{let o=i.indexOf(".");o>=0&&(r=i.length-o)}if(r>0){let o=10**r;t=Math.round(t*o)/o}return t}function j(e,a,t,r){a=Number(a),t=Number(t);let i=(e-(isNaN(a)?0:a))%r,n=ce(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(a)?!isNaN(t)&&n>t&&(n=Math.floor(ce(t/r,r))*r):n<a?n=a:!isNaN(t)&&n>t&&(n=a+Math.floor(ce((t-a)/r,r))*r),n=ce(n,r),n}var Ft=Symbol("default");function Mt({values:e,children:a}){for(let[t,r]of e)a=l.createElement(t.Provider,{value:r},a);return a}function Z(e){let{className:a,style:t,children:r,defaultClassName:i,defaultChildren:n,defaultStyle:o,values:s}=e;return(0,l.useMemo)(()=>{let u,d,f;return u=typeof a=="function"?a({...s,defaultClassName:i}):a,d=typeof t=="function"?t({...s,defaultStyle:o||{}}):t,f=typeof r=="function"?r({...s,defaultChildren:n}):r??n,{className:u??i,style:d||o?{...o,...d}:void 0,children:f??n,"data-rac":""}},[a,t,r,i,n,o,s])}function gi(e,a){return t=>a(typeof e=="function"?e(t):e,t)}function $e(e,a){let t=(0,l.useContext)(e);if(a===null)return null;if(t&&typeof t=="object"&&"slots"in t&&t.slots){let r=a||Ft;if(!t.slots[r]){let i=new Intl.ListFormat().format(Object.keys(t.slots).map(o=>`"${o}"`)),n=a?`Invalid slot "${a}".`:"A slot prop is required.";throw Error(`${n} Valid slot names are ${i}.`)}return t.slots[r]}return t}function K(e,a,t){let{ref:r,...i}=$e(t,e.slot)||{},n=Nt((0,l.useMemo)(()=>mi(a,r),[a,r])),o=V(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?o.style=s=>{let u=typeof i.style=="function"?i.style(s):i.style,d={...s.defaultStyle,...u},f=typeof e.style=="function"?e.style({...s,defaultStyle:d}):e.style;return{...d,...f}}:o.style={...i.style,...e.style}),[o,n]}function Tt(e=!0){let[a,t]=(0,l.useState)(e),r=(0,l.useRef)(!1),i=(0,l.useCallback)(n=>{r.current=!0,t(!!n)},[]);return Et(()=>{r.current||t(!1)},[]),[i,a]}function Vt(e){let a=/^(data-.*)$/,t={};for(let r in e)a.test(r)||(t[r]=e[r]);return t}var $t=7e3,k=null;function ke(e,a="assertive",t=$t){k?k.announce(e,a,t):(k=new Ei,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?k.announce(e,a,t):setTimeout(()=>{k!=null&&k.isAttached()&&(k==null||k.announce(e,a,t))},100))}function yi(e){k&&k.clear(e)}var Ei=class{isAttached(){var e;return(e=this.node)==null?void 0:e.isConnected}createLog(e){let a=document.createElement("div");return a.setAttribute("role","log"),a.setAttribute("aria-live",e),a.setAttribute("aria-relevant","additions"),a}destroy(){this.node&&(this.node=(document.body.removeChild(this.node),null))}announce(e,a="assertive",t=$t){var r,i;if(!this.node)return;let n=document.createElement("div");typeof e=="object"?(n.setAttribute("role","img"),n.setAttribute("aria-labelledby",e["aria-labelledby"])):n.textContent=e,a==="assertive"?(r=this.assertiveLog)==null||r.appendChild(n):(i=this.politeLog)==null||i.appendChild(n),e!==""&&setTimeout(()=>{n.remove()},t)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}},Pi=Symbol.for("react-aria.i18n.locale"),wi=Symbol.for("react-aria.i18n.strings"),Y=void 0,Ie=class Ir{getStringForLocale(a,t){let r=this.getStringsForLocale(t)[a];if(!r)throw Error(`Could not find intl message ${a} in ${t} locale`);return r}getStringsForLocale(a){let t=this.strings[a];return t||(t=Li(a,this.strings,this.defaultLocale),this.strings[a]=t),t}static getGlobalDictionaryForPackage(a){if(typeof window>"u")return null;let t=window[Pi];if(Y===void 0){let i=window[wi];if(!i)return null;for(let n in Y={},i)Y[n]=new Ir({[t]:i[n]},t)}let r=Y==null?void 0:Y[a];if(!r)throw Error(`Strings for package "${a}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(a,t="en-US"){this.strings=Object.fromEntries(Object.entries(a).filter(([,r])=>r)),this.defaultLocale=t}};function Li(e,a,t="en-US"){if(a[e])return a[e];let r=xi(e);if(a[r])return a[r];for(let i in a)if(i.startsWith(r+"-"))return a[i];return a[t]}function xi(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var kt=new Map,It=new Map,Rt=class{format(e,a){let t=this.strings.getStringForLocale(e,this.locale);return typeof t=="function"?t(a,this):t}plural(e,a,t="cardinal"){let r=a["="+e];if(r)return typeof r=="function"?r():r;let i=this.locale+":"+t,n=kt.get(i);return n||(n=new Intl.PluralRules(this.locale,{type:t}),kt.set(i,n)),r=a[n.select(e)]||a.other,typeof r=="function"?r():r}number(e){let a=It.get(this.locale);return a||(a=new Intl.NumberFormat(this.locale),It.set(this.locale,a)),a.format(e)}select(e,a){let t=e[a]||e.other;return typeof t=="function"?t():t}constructor(e,a){this.locale=e,this.strings=a}},jt=new WeakMap;function Ci(e){let a=jt.get(e);return a||(a=new Ie(e),jt.set(e,a)),a}function At(e,a){return a&&Ie.getGlobalDictionaryForPackage(a)||Ci(e)}function Re(e,a){let{locale:t}=Fe(),r=At(e,a);return(0,l.useMemo)(()=>new Rt(t,r),[t,r])}var Di=RegExp("^.*\\(.*\\).*$"),Ni=["latn","arab","hanidec","deva","beng","fullwide"],je=class{parse(e){return Ae(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,a,t){return Ae(this.locale,this.options,e).isValidPartialNumber(e,a,t)}getNumberingSystem(e){return Ae(this.locale,this.options,e).options.numberingSystem}constructor(e,a={}){this.locale=e,this.options=a}},Bt=new Map;function Ae(e,a,t){let r=Ot(e,a);if(!e.includes("-nu-")&&!r.isValidPartialNumber(t)){for(let i of Ni)if(i!==r.options.numberingSystem){let n=Ot(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,a);if(n.isValidPartialNumber(t))return n}}return r}function Ot(e,a){let t=e+(a?Object.entries(a).sort((i,n)=>i[0]<n[0]?-1:1).join():""),r=Bt.get(t);return r||(r=new Si(e,a),Bt.set(t,r)),r}var Si=class{parse(e){let a=this.sanitize(e);if(this.symbols.group&&(a=X(a,this.symbols.group,"")),this.symbols.decimal&&(a=a.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(a=a.replace(this.symbols.minusSign,"-")),a=a.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let r=a.indexOf("-");a=a.replace("-",""),a=a.replace("+","");let i=a.indexOf(".");i===-1&&(i=a.length),a=a.replace(".",""),a=i-2==0?`0.${a}`:i-2==-1?`0.0${a}`:i-2==-2?"0.00":`${a.slice(0,i-2)}.${a.slice(i-2)}`,r>-1&&(a=`-${a}`)}let t=a?+a:NaN;if(isNaN(t))return NaN;if(this.options.style==="percent"){let r={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new je(this.locale,r).parse(new Me(this.locale,r).format(t))}return this.options.currencySign==="accounting"&&Di.test(e)&&(t=-1*t),t}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(e=e.replace(",",this.symbols.decimal),e=e.replace("\u060C",this.symbols.decimal)),this.symbols.group&&(e=X(e,".",this.symbols.group))),this.symbols.group==="\u2019"&&e.includes("'")&&(e=X(e,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(e=X(e," ",this.symbols.group),e=X(e,/\u00A0/g,this.symbols.group)),e}isValidPartialNumber(e,a=-1/0,t=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&a<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&t>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(e=X(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),e.length===0)}constructor(e,a={}){this.locale=e,a.roundingIncrement!==1&&a.roundingIncrement!=null&&(a.maximumFractionDigits==null&&a.minimumFractionDigits==null?(a.maximumFractionDigits=0,a.minimumFractionDigits=0):a.maximumFractionDigits==null?a.maximumFractionDigits=a.minimumFractionDigits:a.minimumFractionDigits??(a.minimumFractionDigits=a.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,a),this.options=this.formatter.resolvedOptions(),this.symbols=Mi(e,this.formatter,this.options,a),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.")}},Ht=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Fi=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Mi(e,a,t,r){var C,w,N,x;let i=new Intl.NumberFormat(e,{...t,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),n=i.formatToParts(-10000.111),o=i.formatToParts(10000.111),s=Fi.map(y=>i.formatToParts(y)),u=((C=n.find(y=>y.type==="minusSign"))==null?void 0:C.value)??"-",d=(w=o.find(y=>y.type==="plusSign"))==null?void 0:w.value;!d&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(d="+");let f=(N=new Intl.NumberFormat(e,{...t,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(y=>y.type==="decimal"))==null?void 0:N.value,c=(x=n.find(y=>y.type==="group"))==null?void 0:x.value,m=n.filter(y=>!Ht.has(y.type)).map(y=>_t(y.value)),v=s.flatMap(y=>y.filter(P=>!Ht.has(P.type)).map(P=>_t(P.value))),b=[...new Set([...m,...v])].sort((y,P)=>P.length-y.length),p=b.length===0?RegExp("[\\p{White_Space}]","gu"):RegExp(`${b.join("|")}|[\\p{White_Space}]`,"gu"),h=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),g=new Map(h.map((y,P)=>[y,P])),E=RegExp(`[${h.join("")}]`,"g");return{minusSign:u,plusSign:d,decimal:f,group:c,literals:p,numeral:E,index:y=>String(g.get(y))}}function X(e,a,t){return e.replaceAll?e.replaceAll(a,t):e.split(a).join(t)}function _t(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var A=null,ie=new Set,ne=new Map,G=!1,Be=!1,Ti={Tab:!0,Escape:!0};function me(e,a){for(let t of ie)t(e,a)}function Vi(e){return!(e.metaKey||!Qr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function fe(e){G=!0,Vi(e)&&(A="keyboard",me("keyboard",e))}function J(e){A="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(G=!0,me("pointer",e))}function Wt(e){ri(e)&&(G=!0,A="virtual")}function Ut(e){e.target===window||e.target===document||yt||!e.isTrusted||(!G&&!Be&&(A="virtual",me("virtual",e)),G=!1,Be=!1)}function zt(){yt||(G=!1,Be=!0)}function pe(e){if(typeof window>"u"||typeof document>"u"||ne.get(H(e)))return;let a=H(e),t=O(e),r=a.HTMLElement.prototype.focus;a.HTMLElement.prototype.focus=function(){G=!0,r.apply(this,arguments)},t.addEventListener("keydown",fe,!0),t.addEventListener("keyup",fe,!0),t.addEventListener("click",Wt,!0),a.addEventListener("focus",Ut,!0),a.addEventListener("blur",zt,!1),typeof PointerEvent<"u"&&(t.addEventListener("pointerdown",J,!0),t.addEventListener("pointermove",J,!0),t.addEventListener("pointerup",J,!0)),a.addEventListener("beforeunload",()=>{Kt(e)},{once:!0}),ne.set(a,{focus:r})}var Kt=(e,a)=>{let t=H(e),r=O(e);a&&r.removeEventListener("DOMContentLoaded",a),ne.has(t)&&(t.HTMLElement.prototype.focus=ne.get(t).focus,r.removeEventListener("keydown",fe,!0),r.removeEventListener("keyup",fe,!0),r.removeEventListener("click",Wt,!0),t.removeEventListener("focus",Ut,!0),t.removeEventListener("blur",zt,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",J,!0),r.removeEventListener("pointermove",J,!0),r.removeEventListener("pointerup",J,!0)),ne.delete(t))};function $i(e){let a=O(e),t;return a.readyState==="loading"?(t=()=>{pe(e)},a.addEventListener("DOMContentLoaded",t)):pe(e),()=>Kt(e,t)}typeof document<"u"&&$i();function Oe(){return A!=="pointer"}function Gt(){return A}function qt(e){A=e,me(e,null)}function ki(){pe();let[e,a]=(0,l.useState)(A);return(0,l.useEffect)(()=>{let t=()=>{a(A)};return ie.add(t),()=>{ie.delete(t)}},[]),di()?null:e}var Ii=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ri(e,a,t){let r=O(t==null?void 0:t.target),i=typeof window<"u"?H(t==null?void 0:t.target).HTMLInputElement:HTMLInputElement,n=typeof window<"u"?H(t==null?void 0:t.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?H(t==null?void 0:t.target).HTMLElement:HTMLElement,s=typeof window<"u"?H(t==null?void 0:t.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!Ii.has(r.activeElement.type)||r.activeElement instanceof n||r.activeElement instanceof o&&r.activeElement.isContentEditable,!(e&&a==="keyboard"&&t instanceof s&&!Ti[t.key])}function ji(e,a,t){pe(),(0,l.useEffect)(()=>{let r=(i,n)=>{Ri(!!(t!=null&&t.isTextInput),i,n)&&e(Oe())};return ie.add(r),()=>{ie.delete(r)}},a)}function Zt(e){let a=O(e),t=re(a);if(Gt()==="virtual"){let r=t;ni(()=>{re(a)===r&&e.isConnected&&pt(e)})}else pt(e)}function He(e){let{isDisabled:a,onFocus:t,onBlur:r,onFocusChange:i}=e,n=(0,l.useCallback)(u=>{if(u.target===u.currentTarget)return r&&r(u),i&&i(!1),!0},[r,i]),o=bt(n),s=(0,l.useCallback)(u=>{let d=O(u.target),f=d?re(d):re();u.target===u.currentTarget&&f===ht(u.nativeEvent)&&(t&&t(u),i&&i(!0),o(u))},[i,t,o]);return{focusProps:{onFocus:!a&&(t||i||r)?s:void 0,onBlur:!a&&(r||i)?n:void 0}}}function Yt(e){if(!e)return;let a=!0;return t=>{e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){a=!0},continuePropagation(){a=!1},isPropagationStopped(){return a}}),a&&t.stopPropagation()}}function Xt(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Yt(e.onKeyDown),onKeyUp:Yt(e.onKeyUp)}}}var Jt=l.createContext(null);function Ai(e){let a=(0,l.useContext)(Jt)||{};ii(a,e);let{ref:t,...r}=a;return r}function Qt(e,a){let{focusProps:t}=He(e),{keyboardProps:r}=Xt(e),i=V(t,r),n=Ai(a),o=e.isDisabled?{}:n,s=(0,l.useRef)(e.autoFocus);(0,l.useEffect)(()=>{s.current&&a.current&&Zt(a.current),s.current=!1},[a]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:V({...i,tabIndex:u},o)}}function _e(e){let{isDisabled:a,onBlurWithin:t,onFocusWithin:r,onFocusWithinChange:i}=e,n=(0,l.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=Se(),u=(0,l.useCallback)(c=>{c.currentTarget.contains(c.target)&&n.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(n.current.isFocusWithin=!1,s(),t&&t(c),i&&i(!1))},[t,i,n,s]),d=bt(u),f=(0,l.useCallback)(c=>{if(!c.currentTarget.contains(c.target))return;let m=O(c.target),v=re(m);if(!n.current.isFocusWithin&&v===ht(c.nativeEvent)){r&&r(c),i&&i(!0),n.current.isFocusWithin=!0,d(c);let b=c.currentTarget;o(m,"focus",p=>{if(n.current.isFocusWithin&&!gt(b,p.target)){let h=new m.defaultView.FocusEvent("blur",{relatedTarget:p.target});ai(h,b),u(oi(h))}},{capture:!0})}},[r,i,d,o,u]);return a?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:u}}}var We=!1,ve=0;function Bi(){We=!0,setTimeout(()=>{We=!1},50)}function ea(e){e.pointerType==="touch"&&Bi()}function Oi(){if(!(typeof document>"u"))return ve===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",ea),ve++,()=>{ve--,!(ve>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",ea)}}function be(e){let{onHoverStart:a,onHoverChange:t,onHoverEnd:r,isDisabled:i}=e,[n,o]=(0,l.useState)(!1),s=(0,l.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,l.useEffect)(Oi,[]);let{addGlobalListener:u,removeAllGlobalListeners:d}=Se(),{hoverProps:f,triggerHoverEnd:c}=(0,l.useMemo)(()=>{let m=(p,h)=>{if(s.pointerType=h,i||h==="touch"||s.isHovered||!p.currentTarget.contains(p.target))return;s.isHovered=!0;let g=p.currentTarget;s.target=g,u(O(p.target),"pointerover",E=>{s.isHovered&&s.target&&!gt(s.target,E.target)&&v(E,E.pointerType)},{capture:!0}),a&&a({type:"hoverstart",target:g,pointerType:h}),t&&t(!0),o(!0)},v=(p,h)=>{let g=s.target;s.pointerType="",s.target=null,!(h==="touch"||!s.isHovered||!g)&&(s.isHovered=!1,d(),r&&r({type:"hoverend",target:g,pointerType:h}),t&&t(!1),o(!1))},b={};return typeof PointerEvent<"u"&&(b.onPointerEnter=p=>{We&&p.pointerType==="mouse"||m(p,p.pointerType)},b.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&v(p,p.pointerType)}),{hoverProps:b,triggerHoverEnd:v}},[a,t,r,i,s,u,d]);return(0,l.useEffect)(()=>{i&&c({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:f,isHovered:n}}function Hi(e,a){let{onScroll:t,isDisabled:r}=e,i=(0,l.useCallback)(n=>{n.ctrlKey||(n.preventDefault(),n.stopPropagation(),t&&t({deltaX:n.deltaX,deltaY:n.deltaY}))},[t]);St(a,"wheel",r?void 0:i)}function he(e={}){let{autoFocus:a=!1,isTextInput:t,within:r}=e,i=(0,l.useRef)({isFocused:!1,isFocusVisible:a||Oe()}),[n,o]=(0,l.useState)(!1),[s,u]=(0,l.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),d=(0,l.useCallback)(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),f=(0,l.useCallback)(v=>{i.current.isFocused=v,o(v),d()},[d]);ji(v=>{i.current.isFocusVisible=v,d()},[],{isTextInput:t});let{focusProps:c}=He({isDisabled:r,onFocusChange:f}),{focusWithinProps:m}=_e({isDisabled:!r,onFocusWithinChange:f});return{isFocused:n,isFocusVisible:s,focusProps:r?m:c}}function ta(e){let{id:a,label:t,"aria-labelledby":r,"aria-label":i,labelElementType:n="label"}=e;a=B(a);let o=B(),s={};t&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:n==="label"?a:void 0});let u=Dt({id:a,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:u}}function aa(e){let{description:a,errorMessage:t,isInvalid:r,validationState:i}=e,{labelProps:n,fieldProps:o}=ta(e),s=vt([!!a,!!t,r,i]),u=vt([!!a,!!t,r,i]);return o=V(o,{"aria-describedby":[s,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:n,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:u}}}var ge={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ra={...ge,customError:!0,valid:!1},Q={isInvalid:!1,validationDetails:ge,validationErrors:[]},_i=(0,l.createContext)({}),ye="__formValidationState"+Date.now();function Ue(e){if(e[ye]){let{realtimeValidation:a,displayValidation:t,updateValidation:r,resetValidation:i,commitValidation:n}=e[ye];return{realtimeValidation:a,displayValidation:t,updateValidation:r,resetValidation:i,commitValidation:n}}return Wi(e)}function Wi(e){let{isInvalid:a,validationState:t,name:r,value:i,builtinValidation:n,validate:o,validationBehavior:s="aria"}=e;t&&(a||(a=t==="invalid"));let u=a===void 0?null:{isInvalid:a,validationErrors:[],validationDetails:ra},d=(0,l.useMemo)(()=>!o||i==null?null:ia(Ui(o,i)),[o,i]);n!=null&&n.validationDetails.valid&&(n=void 0);let f=(0,l.useContext)(_i),c=(0,l.useMemo)(()=>r?Array.isArray(r)?r.flatMap(P=>ze(f[P])):ze(f[r]):[],[f,r]),[m,v]=(0,l.useState)(f),[b,p]=(0,l.useState)(!1);f!==m&&(v(f),p(!1));let h=(0,l.useMemo)(()=>ia(b?[]:c),[b,c]),g=(0,l.useRef)(Q),[E,C]=(0,l.useState)(Q),w=(0,l.useRef)(Q),N=()=>{if(!x)return;y(!1);let P=d||n||g.current;Ke(P,w.current)||(w.current=P,C(P))},[x,y]=(0,l.useState)(!1);return(0,l.useEffect)(N),{realtimeValidation:u||h||d||n||Q,displayValidation:s==="native"?u||h||E:u||h||d||n||E,updateValidation(P){s==="aria"&&!Ke(E,P)?C(P):g.current=P},resetValidation(){let P=Q;Ke(P,w.current)||(w.current=P,C(P)),s==="native"&&y(!1),p(!0)},commitValidation(){s==="native"&&y(!0),p(!0)}}}function ze(e){return e?Array.isArray(e)?e:[e]:[]}function Ui(e,a){if(typeof e=="function"){let t=e(a);if(t&&typeof t!="boolean")return ze(t)}return[]}function ia(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:ra}:null}function Ke(e,a){return e===a?!0:!!e&&!!a&&e.isInvalid===a.isInvalid&&e.validationErrors.length===a.validationErrors.length&&e.validationErrors.every((t,r)=>t===a.validationErrors[r])&&Object.entries(e.validationDetails).every(([t,r])=>a.validationDetails[t]===r)}function zi(...e){let a=new Set,t=!1,r={...ge};for(let o of e){var i,n;for(let s of o.validationErrors)a.add(s);for(let s in t||(t=o.isInvalid),r)(i=r)[n=s]||(i[n]=o.validationDetails[s])}return r.valid=!t,{isInvalid:t,validationErrors:[...a],validationDetails:r}}function na(e,a,t){let{validationBehavior:r,focus:i}=e;Et(()=>{if(r==="native"&&(t!=null&&t.current)&&!t.current.disabled){let d=a.realtimeValidation.isInvalid?a.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t.current.setCustomValidity(d),t.current.hasAttribute("title")||(t.current.title=""),a.realtimeValidation.isInvalid||a.updateValidation(Gi(t.current))}});let n=(0,l.useRef)(!1),o=_(()=>{n.current||a.resetValidation()}),s=_(d=>{var m;a.displayValidation.isInvalid||a.commitValidation();let f=(m=t==null?void 0:t.current)==null?void 0:m.form;if(!d.defaultPrevented&&t&&f&&qi(f)===t.current){var c;i?i():(c=t.current)==null||c.focus(),qt("keyboard")}d.preventDefault()}),u=_(()=>{a.commitValidation()});(0,l.useEffect)(()=>{let d=t==null?void 0:t.current;if(!d)return;let f=d.form,c=f==null?void 0:f.reset;return f&&(f.reset=()=>{n.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,c==null||c.call(f),n.current=!1}),d.addEventListener("invalid",s),d.addEventListener("change",u),f==null||f.addEventListener("reset",o),()=>{d.removeEventListener("invalid",s),d.removeEventListener("change",u),f==null||f.removeEventListener("reset",o),f&&(f.reset=c)}},[t,s,u,o,r])}function Ki(e){let a=e.validity;return{badInput:a.badInput,customError:a.customError,patternMismatch:a.patternMismatch,rangeOverflow:a.rangeOverflow,rangeUnderflow:a.rangeUnderflow,stepMismatch:a.stepMismatch,tooLong:a.tooLong,tooShort:a.tooShort,typeMismatch:a.typeMismatch,valueMissing:a.valueMissing,valid:a.valid}}function Gi(e){return{isInvalid:!e.validity.valid,validationDetails:Ki(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function qi(e){for(let a=0;a<e.elements.length;a++){let t=e.elements[a];if(!t.validity.valid)return t}return null}function Zi(e,a){let{inputElementType:t="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:n=!1,type:o="text",validationBehavior:s="aria"}=e,[u,d]=Ve(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=Qt(e,a),c=Ue({...e,value:u}),{isInvalid:m,validationErrors:v,validationDetails:b}=c.displayValidation,{labelProps:p,fieldProps:h,descriptionProps:g,errorMessageProps:E}=aa({...e,isInvalid:m,errorMessage:e.errorMessage||v}),C=z(e,{labelable:!0}),w={type:o,pattern:e.pattern},[N]=(0,l.useState)(u);return Te(a,e.defaultValue??N,d),na(e,c,a),(0,l.useEffect)(()=>{if(a.current instanceof H(a.current).HTMLTextAreaElement){let x=a.current;Object.defineProperty(x,"defaultValue",{get:()=>x.value,set:()=>{},configurable:!0})}},[a]),{labelProps:p,inputProps:V(C,t==="input"?w:void 0,{disabled:r,readOnly:n,required:i&&s==="native","aria-required":i&&s==="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:u,onChange:x=>d(x.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,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,...f,...h}),descriptionProps:g,errorMessageProps:E,isInvalid:m,validationErrors:v,validationDetails:b}}function oa(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function Yi(e,a,t){let r=_(c=>{let m=t.current;if(!m)return;let v=null;switch(c.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":v=m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteContentForward":v=m.selectionEnd===m.selectionStart?m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd+1):m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteContentBackward":v=m.selectionEnd===m.selectionStart?m.value.slice(0,m.selectionStart-1)+m.value.slice(m.selectionStart):m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":v=m.value.slice(m.selectionStart);break;default:c.data!=null&&(v=m.value.slice(0,m.selectionStart)+c.data+m.value.slice(m.selectionEnd));break}(v==null||!a.validate(v))&&c.preventDefault()});(0,l.useEffect)(()=>{if(!oa()||!t.current)return;let c=t.current;return c.addEventListener("beforeinput",r,!1),()=>{c.removeEventListener("beforeinput",r,!1)}},[t,r]);let i=oa()?null:c=>{let m=c.target.value.slice(0,c.target.selectionStart)+c.data+c.target.value.slice(c.target.selectionEnd);a.validate(m)||c.preventDefault()},{labelProps:n,inputProps:o,descriptionProps:s,errorMessageProps:u,...d}=Zi(e,t),f=(0,l.useRef)(null);return{inputProps:V(o,{onBeforeInput:i,onCompositionStart(){let{value:c,selectionStart:m,selectionEnd:v}=t.current;f.current={value:c,selectionStart:m,selectionEnd:v}},onCompositionEnd(){if(t.current&&!a.validate(t.current.value)){let{value:c,selectionStart:m,selectionEnd:v}=f.current;t.current.value=c,t.current.setSelectionRange(m,v),a.setInputValue(c)}}}),labelProps:n,descriptionProps:s,errorMessageProps:u,...d}}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var Ee=(0,l.createContext)(!1);function Xi(e){if((0,l.useContext)(Ee))return l.createElement(l.Fragment,null,e.children);let a=l.createElement(Ee.Provider,{value:!0},e.children);return l.createElement("template",{"data-react-aria-hidden":!0},a)}function Ge(e){let a=(t,r)=>(0,l.useContext)(Ee)?null:e(t,r);return a.displayName=e.displayName||e.name,(0,l.forwardRef)(a)}function Ji(){return(0,l.useContext)(Ee)}function la(e,a){let{elementType:t="button",isDisabled:r,onPress:i,onPressStart:n,onPressEnd:o,onPressUp:s,onPressChange:u,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:c,href:m,target:v,rel:b,type:p="button"}=e,h;h=t==="button"?{type:p,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}:{role:"button",href:t==="a"&&!r?m:void 0,target:t==="a"?v:void 0,type:t==="input"?p:void 0,disabled:t==="input"?r:void 0,"aria-disabled":!r||t==="input"?void 0:r,rel:t==="a"?b:void 0};let{pressProps:g,isPressed:E}=li({onPressStart:n,onPressEnd:o,onPressChange:u,onPress:i,onPressUp:s,onClick:c,isDisabled:r,preventFocusOnPress:d,ref:a}),{focusableProps:C}=Qt(e,a);f&&(C.tabIndex=r?-1:C.tabIndex);let w=V(C,g,z(e,{labelable:!0}));return{isPressed:E,buttonProps:V(h,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function Qi(e){let{minValue:a,maxValue:t,step:r,formatOptions:i,value:n,defaultValue:o=NaN,onChange:s,locale:u,isDisabled:d,isReadOnly:f}=e;n===null&&(n=NaN),n!==void 0&&!isNaN(n)&&(n=r!==void 0&&!isNaN(r)?j(n,a,t,r):de(n,a,t)),isNaN(o)||(o=r!==void 0&&!isNaN(r)?j(o,a,t,r):de(o,a,t));let[c,m]=Ve(n,isNaN(o)?NaN:o,s),[v]=(0,l.useState)(c),[b,p]=(0,l.useState)(()=>isNaN(c)?"":new Me(u,i).format(c)),h=(0,l.useMemo)(()=>new je(u,i),[u,i]),g=(0,l.useMemo)(()=>h.getNumberingSystem(b),[h,b]),E=(0,l.useMemo)(()=>new Me(u,{...i,numberingSystem:g}),[u,i,g]),C=(0,l.useMemo)(()=>E.resolvedOptions(),[E]),w=(0,l.useCallback)(D=>isNaN(D)||D===null?"":E.format(D),[E]),N=Ue({...e,value:c}),x=r!==void 0&&!isNaN(r)?r:1;C.style==="percent"&&(r===void 0||isNaN(r))&&(x=.01);let[y,P]=(0,l.useState)(c),[M,$]=(0,l.useState)(u),[L,I]=(0,l.useState)(i);(!Object.is(c,y)||u!==M||i!==L)&&(p(w(c)),P(c),$(u),I(i));let S=(0,l.useMemo)(()=>h.parse(b),[h,b]),oe=()=>{if(!b.length){m(NaN),p(n===void 0?"":w(c));return}if(isNaN(S)){p(w(c));return}let D;D=r===void 0||isNaN(r)?de(S,a,t):j(S,a,t,r),D=h.parse(w(D)),m(D),p(w(n===void 0?D:c)),N.commitValidation()},q=(D,ue=0)=>{let W=S;if(isNaN(W))return j(isNaN(ue)?0:ue,a,t,x);{let te=j(W,a,t,x);return D==="+"&&te>W||D==="-"&&te<W?te:j(qe(D,W,x),a,t,x)}},ee=()=>{let D=q("+",a);D===c&&p(w(D)),m(D),N.commitValidation()},xe=()=>{let D=q("-",t);D===c&&p(w(D)),m(D),N.commitValidation()},le=()=>{t!=null&&(m(j(t,a,t,x)),N.commitValidation())},Ce=()=>{a!=null&&(m(a),N.commitValidation())},se=(0,l.useMemo)(()=>!d&&!f&&(isNaN(S)||t===void 0||isNaN(t)||j(S,a,t,x)>S||qe("+",S,x)<=t),[d,f,a,t,x,S]),De=(0,l.useMemo)(()=>!d&&!f&&(isNaN(S)||a===void 0||isNaN(a)||j(S,a,t,x)<S||qe("-",S,x)>=a),[d,f,a,t,x,S]);return{...N,validate:D=>h.isValidPartialNumber(D,a,t),increment:ee,incrementToMax:le,decrement:xe,decrementToMin:Ce,canIncrement:se,canDecrement:De,minValue:a,maxValue:t,numberValue:S,defaultNumberValue:isNaN(o)?v:o,setNumberValue:m,setInputValue:p,inputValue:b,commit:oe}}function qe(e,a,t){let r=e==="+"?a+t:a-t;if(a%1!=0||t%1!=0){let i=a.toString().split("."),n=t.toString().split("."),o=i[1]&&i[1].length||0,s=n[1]&&n[1].length||0,u=10**Math.max(o,s);a=Math.round(a*u),t=Math.round(t*u),r=e==="+"?a+t:a-t,r/=u}return r}var sa={};sa={Empty:"\u0641\u0627\u0631\u063A"};var ua={};ua={Empty:"\u0418\u0437\u043F\u0440\u0430\u0437\u043D\u0438"};var da={};da={Empty:"Pr\xE1zdn\xE9"};var ca={};ca={Empty:"Tom"};var ma={};ma={Empty:"Leer"};var fa={};fa={Empty:"\u0386\u03B4\u03B5\u03B9\u03BF"};var pa={};pa={Empty:"Empty"};var va={};va={Empty:"Vac\xEDo"};var ba={};ba={Empty:"T\xFChjenda"};var ha={};ha={Empty:"Tyhj\xE4"};var ga={};ga={Empty:"Vide"};var ya={};ya={Empty:"\u05E8\u05D9\u05E7"};var Ea={};Ea={Empty:"Prazno"};var Pa={};Pa={Empty:"\xDCres"};var wa={};wa={Empty:"Vuoto"};var La={};La={Empty:"\u7A7A"};var xa={};xa={Empty:"\uBE44\uC5B4 \uC788\uC74C"};var Ca={};Ca={Empty:"Tu\u0161\u010Dias"};var Da={};Da={Empty:"Tuk\u0161s"};var Na={};Na={Empty:"Tom"};var Sa={};Sa={Empty:"Leeg"};var Fa={};Fa={Empty:"Pusty"};var Ma={};Ma={Empty:"Vazio"};var Ta={};Ta={Empty:"Vazio"};var Va={};Va={Empty:"Gol"};var $a={};$a={Empty:"\u041D\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043E"};var ka={};ka={Empty:"Pr\xE1zdne"};var Ia={};Ia={Empty:"Prazen"};var Ra={};Ra={Empty:"Prazno"};var ja={};ja={Empty:"Tomt"};var Aa={};Aa={Empty:"Bo\u015F"};var Ba={};Ba={Empty:"\u041F\u0443\u0441\u0442\u043E"};var Oa={};Oa={Empty:"\u7A7A"};var Ha={};Ha={Empty:"\u7A7A\u767D"};var _a={};_a={"ar-AE":sa,"bg-BG":ua,"cs-CZ":da,"da-DK":ca,"de-DE":ma,"el-GR":fa,"en-US":pa,"es-ES":va,"et-EE":ba,"fi-FI":ha,"fr-FR":ga,"he-IL":ya,"hr-HR":Ea,"hu-HU":Pa,"it-IT":wa,"ja-JP":La,"ko-KR":xa,"lt-LT":Ca,"lv-LV":Da,"nb-NO":Na,"nl-NL":Sa,"pl-PL":Fa,"pt-BR":Ma,"pt-PT":Ta,"ro-RO":Va,"ru-RU":$a,"sk-SK":ka,"sl-SI":Ia,"sr-SP":Ra,"sv-SE":ja,"tr-TR":Aa,"uk-UA":Ba,"zh-CN":Oa,"zh-TW":Ha};function en(e){return e&&e.__esModule?e.default:e}function Wa(e){let a=(0,l.useRef)(void 0),{value:t,textValue:r,minValue:i,maxValue:n,isDisabled:o,isReadOnly:s,isRequired:u,onIncrement:d,onIncrementPage:f,onDecrement:c,onDecrementPage:m,onDecrementToMin:v,onIncrementToMax:b}=e,p=Re(en(_a),"@react-aria/spinbutton"),h=()=>clearTimeout(a.current);(0,l.useEffect)(()=>()=>h(),[]);let g=L=>{if(!(L.ctrlKey||L.metaKey||L.shiftKey||L.altKey||s||L.nativeEvent.isComposing))switch(L.key){case"PageUp":if(f){L.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(L.preventDefault(),d==null||d());break;case"PageDown":if(m){L.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":c&&(L.preventDefault(),c==null||c());break;case"Home":v&&(L.preventDefault(),v==null||v());break;case"End":b&&(L.preventDefault(),b==null||b());break}},E=(0,l.useRef)(!1),C=()=>{E.current=!0},w=()=>{E.current=!1},N=r===""?p.format("Empty"):(r||`${t}`).replace("-","\u2212");(0,l.useEffect)(()=>{E.current&&(yi("assertive"),ke(N,"assertive"))},[N]);let x=_(L=>{h(),d==null||d(),a.current=window.setTimeout(()=>{(n===void 0||isNaN(n)||t===void 0||isNaN(t)||t<n)&&x(60)},L)}),y=_(L=>{h(),c==null||c(),a.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||t===void 0||isNaN(t)||t>i)&&y(60)},L)}),P=L=>{L.preventDefault()},{addGlobalListener:M,removeAllGlobalListeners:$}=Se();return{spinButtonProps:{role:"spinbutton","aria-valuenow":t!==void 0&&!isNaN(t)?t:void 0,"aria-valuetext":N,"aria-valuemin":i,"aria-valuemax":n,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":u||void 0,onKeyDown:g,onFocus:C,onBlur:w},incrementButtonProps:{onPressStart:()=>{x(400),M(window,"contextmenu",P)},onPressEnd:()=>{h(),$()},onFocus:C,onBlur:w},decrementButtonProps:{onPressStart:()=>{y(400),M(window,"contextmenu",P)},onPressEnd:()=>{h(),$()},onFocus:C,onBlur:w}}}var Ua={};Ua={decrease:e=>`\u062E\u0641\u0636 ${e.fieldLabel}`,increase:e=>`\u0632\u064A\u0627\u062F\u0629 ${e.fieldLabel}`,numberField:"\u062D\u0642\u0644 \u0631\u0642\u0645\u064A"};var za={};za={decrease:e=>`\u041D\u0430\u043C\u0430\u043B\u044F\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0441\u0438\u043B\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,numberField:"\u041D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043F\u043E\u043B\u0435\u0442\u043E"};var Ka={};Ka={decrease:e=>`Sn\xED\u017Eit ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161it ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"};var Ga={};Ga={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xD8g ${e.fieldLabel}`,numberField:"Talfelt"};var qa={};qa={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xF6hen`,numberField:"Nummernfeld"};var Za={};Za={decrease:e=>`\u039C\u03B5\u03AF\u03C9\u03C3\u03B7 ${e.fieldLabel}`,increase:e=>`\u0391\u03CD\u03BE\u03B7\u03C3\u03B7 ${e.fieldLabel}`,numberField:"\u03A0\u03B5\u03B4\u03AF\u03BF \u03B1\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD"};var Ya={};Ya={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Xa={};Xa={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"};var Ja={};Ja={decrease:e=>`V\xE4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xE4li"};var Qa={};Qa={decrease:e=>`V\xE4henn\xE4 ${e.fieldLabel}`,increase:e=>`Lis\xE4\xE4 ${e.fieldLabel}`,numberField:"Numerokentt\xE4"};var er={};er={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var tr={};tr={decrease:e=>`\u05D4\u05E7\u05D8\u05DF ${e.fieldLabel}`,increase:e=>`\u05D4\u05D2\u05D3\u05DC ${e.fieldLabel}`,numberField:"\u05E9\u05D3\u05D4 \u05DE\u05E1\u05E4\u05E8"};var ar={};ar={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"};var rr={};rr={decrease:e=>`${e.fieldLabel} cs\xF6kkent\xE9se`,increase:e=>`${e.fieldLabel} n\xF6vel\xE9se`,numberField:"Sz\xE1mmez\u0151"};var ir={};ir={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var nr={};nr={decrease:e=>`${e.fieldLabel}\u3092\u7E2E\u5C0F`,increase:e=>`${e.fieldLabel}\u3092\u62E1\u5927`,numberField:"\u6570\u5024\u30D5\u30A3\u30FC\u30EB\u30C9"};var or={};or={decrease:e=>`${e.fieldLabel} \uAC10\uC18C`,increase:e=>`${e.fieldLabel} \uC99D\uAC00`,numberField:"\uBC88\uD638 \uD544\uB4DC"};var lr={};lr={decrease:e=>`Suma\u017Einti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var sr={};sr={decrease:e=>`Samazin\u0101\u0161ana ${e.fieldLabel}`,increase:e=>`Palielin\u0101\u0161ana ${e.fieldLabel}`,numberField:"Skait\u013Cu lauks"};var ur={};ur={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xD8k ${e.fieldLabel}`,numberField:"Tallfelt"};var dr={};dr={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var cr={};cr={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u0119ksz ${e.fieldLabel}`,numberField:"Pole numeru"};var mr={};mr={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"};var fr={};fr={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xE9rico"};var pr={};pr={decrease:e=>`Sc\u0103dere ${e.fieldLabel}`,increase:e=>`Cre\u0219tere ${e.fieldLabel}`,numberField:"C\xE2mp numeric"};var vr={};vr={decrease:e=>`\u0423\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,numberField:"\u0427\u0438\u0441\u043B\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435"};var br={};br={decrease:e=>`Zn\xED\u017Ei\u0165 ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161i\u0165 ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"};var hr={};hr={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u010Dajte ${e.fieldLabel}`,numberField:"\u0160tevil\u010Dno polje"};var gr={};gr={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"};var yr={};yr={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xD6ka ${e.fieldLabel}`,numberField:"Nummerf\xE4lt"};var Er={};Er={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u0131r`,numberField:"Say\u0131 alan\u0131"};var Pr={};Pr={decrease:e=>`\u0417\u043C\u0435\u043D\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,increase:e=>`\u0417\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,numberField:"\u041F\u043E\u043B\u0435 \u043D\u043E\u043C\u0435\u0440\u0430"};var wr={};wr={decrease:e=>`\u964D\u4F4E ${e.fieldLabel}`,increase:e=>`\u63D0\u9AD8 ${e.fieldLabel}`,numberField:"\u6570\u5B57\u5B57\u6BB5"};var Lr={};Lr={decrease:e=>`\u7E2E\u5C0F ${e.fieldLabel}`,increase:e=>`\u653E\u5927 ${e.fieldLabel}`,numberField:"\u6578\u5B57\u6B04\u4F4D"};var xr={};xr={"ar-AE":Ua,"bg-BG":za,"cs-CZ":Ka,"da-DK":Ga,"de-DE":qa,"el-GR":Za,"en-US":Ya,"es-ES":Xa,"et-EE":Ja,"fi-FI":Qa,"fr-FR":er,"he-IL":tr,"hr-HR":ar,"hu-HU":rr,"it-IT":ir,"ja-JP":nr,"ko-KR":or,"lt-LT":lr,"lv-LV":sr,"nb-NO":ur,"nl-NL":dr,"pl-PL":cr,"pt-BR":mr,"pt-PT":fr,"ro-RO":pr,"ru-RU":vr,"sk-SK":br,"sl-SI":hr,"sr-SP":gr,"sv-SE":yr,"tr-TR":Er,"uk-UA":Pr,"zh-CN":wr,"zh-TW":Lr};function tn(e){return e&&e.__esModule?e.default:e}function an(e,a,t){let{id:r,decrementAriaLabel:i,incrementAriaLabel:n,isDisabled:o,isReadOnly:s,isRequired:u,minValue:d,maxValue:f,autoFocus:c,label:m,formatOptions:v,onBlur:b=()=>{},onFocus:p,onFocusChange:h,onKeyDown:g,onKeyUp:E,description:C,errorMessage:w,isWheelDisabled:N,...x}=e,{increment:y,incrementToMax:P,decrement:M,decrementToMin:$,numberValue:L,inputValue:I,commit:S,commitValidation:oe}=a,q=Re(tn(xr),"@react-aria/numberfield"),ee=B(r),{focusProps:xe}=He({onBlur(){S()}}),le=Pt(v),Ce=(0,l.useMemo)(()=>le.resolvedOptions(),[le]),se=Pt({...v,currencySign:void 0}),{spinButtonProps:De,incrementButtonProps:tt,decrementButtonProps:D}=Wa({isDisabled:o,isReadOnly:s,isRequired:u,maxValue:f,minValue:d,onIncrement:y,onIncrementToMax:P,onDecrement:M,onDecrementToMin:$,value:L,textValue:(0,l.useMemo)(()=>isNaN(L)?"":se.format(L),[se,L])}),[ue,W]=(0,l.useState)(!1),{focusWithinProps:te}=_e({isDisabled:o,onFocusWithinChange:W});Hi({onScroll:(0,l.useCallback)(T=>{Math.abs(T.deltaY)<=Math.abs(T.deltaX)||(T.deltaY>0?y():T.deltaY<0&&M())},[M,y]),isDisabled:N||o||s||!ue},t);let at=(Ce.maximumFractionDigits??0)>0,rt=a.minValue===void 0||isNaN(a.minValue)||a.minValue<0,ae="numeric";ui()?rt?ae="text":at&&(ae="decimal"):si()&&(rt?ae="numeric":at&&(ae="decimal"));let Rr=T=>{a.validate(T)&&a.setInputValue(T)},jr=z(e),it=(0,l.useCallback)(T=>{T.nativeEvent.isComposing||(T.key==="Enter"?(S(),oe()):T.continuePropagation())},[S,oe]),{isInvalid:nt,validationErrors:Ar,validationDetails:Br}=a.displayValidation,{labelProps:ot,inputProps:Or,descriptionProps:Hr,errorMessageProps:_r}=Yi({...x,...jr,name:void 0,form:void 0,label:m,autoFocus:c,isDisabled:o,isReadOnly:s,isRequired:u,validate:void 0,[ye]:a,value:I,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:ee,type:"text",inputMode:ae,onChange:Rr,onBlur:b,onFocus:p,onFocusChange:h,onKeyDown:(0,l.useMemo)(()=>ti(it,g),[it,g]),onKeyUp:E,description:C,errorMessage:w},a,t);Te(t,a.defaultNumberValue,a.setNumberValue);let lt=V(De,xe,Or,{role:null,"aria-roledescription":ei()?null:q.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(lt["aria-required"]=void 0);let st=T=>{var ct;document.activeElement!==t.current&&(T.pointerType==="mouse"?(ct=t.current)==null||ct.focus():T.target.focus())},Ne=e["aria-label"]||(typeof e.label=="string"?e.label:""),U;Ne||(U=e.label==null?e["aria-labelledby"]:ot.id);let ut=B(),dt=B(),Wr=V(tt,{"aria-label":n||q.format("increase",{fieldLabel:Ne}).trim(),id:U&&!n?ut:null,"aria-labelledby":U&&!n?`${ut} ${U}`:null,"aria-controls":ee,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!a.canIncrement,onPressStart:st}),Ur=V(D,{"aria-label":i||q.format("decrease",{fieldLabel:Ne}).trim(),id:U&&!i?dt:null,"aria-labelledby":U&&!i?`${dt} ${U}`:null,"aria-controls":ee,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!a.canDecrement,onPressStart:st});return{groupProps:{...te,role:"group","aria-disabled":o,"aria-invalid":nt?"true":void 0},labelProps:ot,inputProps:lt,incrementButtonProps:Wr,decrementButtonProps:Ur,errorMessageProps:_r,descriptionProps:Hr,isInvalid:nt,validationErrors:Ar,validationDetails:Br}}var Ze=(0,l.createContext)({}),rn=Ge(function(e,a){[e,a]=K(e,a,Ze);let{elementType:t="label",...r}=e;return l.createElement(t,{className:"react-aria-Label",...r,ref:a})}),nn=(0,l.createContext)(null),Ye=(0,l.createContext)({}),Cr=Ge(function(e,a){[e,a]=K(e,a,Ye);let t=e,{isPending:r}=t,{buttonProps:i,isPressed:n}=la(e,a);i=on(i,r);let{focusProps:o,isFocused:s,isFocusVisible:u}=he(e),{hoverProps:d,isHovered:f}=be({...e,isDisabled:e.isDisabled||r}),c={isHovered:f,isPressed:(t.isPressed||n)&&!r,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:r??!1},m=Z({...e,values:c,defaultClassName:"react-aria-Button"}),v=B(i.id),b=B(),p=i["aria-labelledby"];r&&(p?p=`${p} ${b}`:i["aria-label"]&&(p=`${v} ${b}`));let h=(0,l.useRef)(r);(0,l.useEffect)(()=>{let E={"aria-labelledby":p||v};(!h.current&&s&&r||h.current&&s&&!r)&&ke(E,"assertive"),h.current=r},[r,s,p,v]);let g=z(e,{global:!0});return delete g.onClick,l.createElement("button",{...V(g,m,i,o,d),type:i.type==="submit"&&r?"button":i.type,id:v,ref:a,"aria-labelledby":p,slot:e.slot||void 0,"aria-disabled":r?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":c.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":u||void 0},l.createElement(nn.Provider,{value:{id:b}},m.children))});function on(e,a){if(a){for(let t in e)t.startsWith("on")&&!(t.includes("Focus")||t.includes("Blur"))&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}var Xe=(0,l.createContext)({}),Dr=(0,l.forwardRef)(function(e,a){[e,a]=K(e,a,Xe);let{elementType:t="span",...r}=e;return l.createElement(t,{className:"react-aria-Text",...r,ref:a})}),Pe=(0,l.createContext)(null),ln=(0,l.forwardRef)(function(e,a){var t;return(t=(0,l.useContext)(Pe))!=null&&t.isInvalid?l.createElement(sn,{...e,ref:a}):null}),sn=(0,l.forwardRef)((e,a)=>{let t=(0,l.useContext)(Pe),r=z(e,{global:!0}),i=Z({...e,defaultClassName:"react-aria-FieldError",defaultChildren:t.validationErrors.length===0?void 0:t.validationErrors.join(" "),values:t});return i.children==null?null:l.createElement(Dr,{slot:"errorMessage",...r,...i,ref:a})}),Nr=(0,l.createContext)(null),Je=(0,l.createContext)({}),un=(0,l.forwardRef)(function(e,a){[e,a]=K(e,a,Je);let{isDisabled:t,isInvalid:r,isReadOnly:i,onHoverStart:n,onHoverChange:o,onHoverEnd:s,...u}=e,{hoverProps:d,isHovered:f}=be({onHoverStart:n,onHoverChange:o,onHoverEnd:s,isDisabled:t}),{isFocused:c,isFocusVisible:m,focusProps:v}=he({within:!0});t??(t=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let b=Z({...e,values:{isHovered:f,isFocusWithin:c,isFocusVisible:m,isDisabled:t,isInvalid:r},defaultClassName:"react-aria-Group"});return l.createElement("div",{...V(u,v,d),...b,ref:a,role:e.role??"group",slot:e.slot??void 0,"data-focus-within":c||void 0,"data-hovered":f||void 0,"data-focus-visible":m||void 0,"data-disabled":t||void 0,"data-invalid":r||void 0,"data-readonly":i||void 0},b.children)}),Qe=(0,l.createContext)({}),dn=e=>{let{onHoverStart:a,onHoverChange:t,onHoverEnd:r,...i}=e;return i},Sr=Ge(function(e,a){[e,a]=K(e,a,Qe);let{hoverProps:t,isHovered:r}=be(e),{isFocused:i,isFocusVisible:n,focusProps:o}=he({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",u=Z({...e,values:{isHovered:r,isFocused:i,isFocusVisible:n,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return l.createElement("input",{...V(dn(e),o,t),...u,ref:a,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":n||void 0,"data-invalid":s||void 0})}),cn=(0,l.createContext)(null),mn=(0,l.createContext)(null),fn=(0,l.forwardRef)(function(e,a){[e,a]=K(e,a,cn);let{validationBehavior:t}=$e(Nr)||{},r=e.validationBehavior??t??"native",{locale:i}=Fe(),n=Qi({...e,locale:i,validationBehavior:r}),o=(0,l.useRef)(null),[s,u]=Tt(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:d,groupProps:f,inputProps:c,incrementButtonProps:m,decrementButtonProps:v,descriptionProps:b,errorMessageProps:p,...h}=an({...Vt(e),label:u,validationBehavior:r},n,o),g=Z({...e,values:{state:n,isDisabled:e.isDisabled||!1,isInvalid:h.isInvalid||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-NumberField"}),E=z(e,{global:!0});return delete E.id,l.createElement(Mt,{values:[[mn,n],[Je,f],[Qe,{...c,ref:o}],[Ze,{...d,ref:s}],[Ye,{slots:{increment:m,decrement:v}}],[Xe,{slots:{description:b,errorMessage:p}}],[Pe,h]]},l.createElement("div",{...E,...g,ref:a,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-required":e.isRequired||void 0,"data-invalid":h.isInvalid||void 0}),e.name&&l.createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(n.numberValue)?"":n.numberValue,disabled:e.isDisabled||void 0}))}),Fr=ft(),F=mt(Kr(),1);const et=l.forwardRef((e,a)=>{let t=(0,Fr.c)(40),{placeholder:r,variant:i,...n}=e,o=i===void 0?"default":i,{locale:s}=Fe(),u=fn,d;t[0]===s?d=t[1]:(d=ci(s),t[0]=s,t[1]=d);let f;t[2]===d?f=t[3]:(f={minimumFractionDigits:0,maximumFractionDigits:d},t[2]=d,t[3]=f);let c=R("shadow-xs-solid hover:shadow-sm-solid hover:focus-within:shadow-md-solid","flex overflow-hidden rounded-sm border border-input bg-background text-sm font-code ring-offset-background","disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xs-solid","focus-within:shadow-md-solid focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring focus-within:border-primary",o==="default"?"h-6 w-full mb-1":"h-4 w-full mb-0.5",o==="xs"&&"text-xs",n.className),m=n.isDisabled,v=o==="default"?"px-1.5":"px-1",b;t[4]===v?b=t[5]:(b=R("flex-1","w-full","placeholder:text-muted-foreground","outline-hidden","disabled:cursor-not-allowed disabled:opacity-50",v),t[4]=v,t[5]=b);let p;t[6]!==r||t[7]!==n.isDisabled||t[8]!==a||t[9]!==b?(p=(0,F.jsx)(Sr,{ref:a,disabled:m,placeholder:r,onKeyDown:pn,className:b}),t[6]=r,t[7]=n.isDisabled,t[8]=a,t[9]=b,t[10]=p):p=t[10];let h=n.isDisabled,g=o==="xs"&&"w-2 h-2",E;t[11]===g?E=t[12]:(E=R("w-3 h-3 -mb-px",g),t[11]=g,t[12]=E);let C;t[13]===E?C=t[14]:(C=(0,F.jsx)(Yr,{"aria-hidden":!0,className:E}),t[13]=E,t[14]=C);let w;t[15]!==n.isDisabled||t[16]!==C||t[17]!==o?(w=(0,F.jsx)(Mr,{slot:"increment",isDisabled:h,variant:o,children:C}),t[15]=n.isDisabled,t[16]=C,t[17]=o,t[18]=w):w=t[18];let N;t[19]===Symbol.for("react.memo_cache_sentinel")?(N=(0,F.jsx)("div",{className:"h-px shrink-0 divider bg-border z-10"}),t[19]=N):N=t[19];let x=n.isDisabled,y=o==="xs"&&"w-2 h-2",P;t[20]===y?P=t[21]:(P=R("w-3 h-3 -mt-px",y),t[20]=y,t[21]=P);let M;t[22]===P?M=t[23]:(M=(0,F.jsx)(Zr,{"aria-hidden":!0,className:P}),t[22]=P,t[23]=M);let $;t[24]!==n.isDisabled||t[25]!==M||t[26]!==o?($=(0,F.jsx)(Mr,{slot:"decrement",isDisabled:x,variant:o,children:M}),t[24]=n.isDisabled,t[25]=M,t[26]=o,t[27]=$):$=t[27];let L;t[28]!==w||t[29]!==$?(L=(0,F.jsxs)("div",{className:"flex flex-col border-s-2",children:[w,N,$]}),t[28]=w,t[29]=$,t[30]=L):L=t[30];let I;t[31]!==L||t[32]!==c||t[33]!==p?(I=(0,F.jsxs)("div",{className:c,children:[p,L]}),t[31]=L,t[32]=c,t[33]=p,t[34]=I):I=t[34];let S;return t[35]!==u||t[36]!==n||t[37]!==I||t[38]!==f?(S=(0,F.jsx)(u,{...n,formatOptions:f,children:I}),t[35]=u,t[36]=n,t[37]=I,t[38]=f,t[39]=S):S=t[39],S});et.displayName="NumberField";var Mr=e=>{let a=(0,Fr.c)(6),t=!e.isDisabled&&"hover:text-primary hover:bg-muted",r=e.variant==="default"?"px-0.5":"px-0.25",i;a[0]!==t||a[1]!==r?(i=R("cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary","disabled:cursor-not-allowed disabled:opacity-50",t,r),a[0]=t,a[1]=r,a[2]=i):i=a[2];let n;return a[3]!==e||a[4]!==i?(n=(0,F.jsx)(Cr,{...e,className:i}),a[3]=e,a[4]=i,a[5]=n):n=a[5],n};function pn(e){(e.key==="ArrowUp"||e.key==="ArrowDown")&&e.stopPropagation()}var we=ft(),Le=l.forwardRef((e,a)=>{let t=(0,we.c)(28),r,i,n,o,s,u,d;if(t[0]!==a||t[1]!==e){u=Symbol.for("react.early_return_sentinel");e:{if({className:r,type:d,endAdornment:i,...o}=e,n=o.icon,d==="hidden"){u=(0,F.jsx)("input",{type:"hidden",ref:a,...o});break e}s=R("relative",o.rootClassName)}t[0]=a,t[1]=e,t[2]=r,t[3]=i,t[4]=n,t[5]=o,t[6]=s,t[7]=u,t[8]=d}else r=t[2],i=t[3],n=t[4],o=t[5],s=t[6],u=t[7],d=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;let f;t[9]===n?f=t[10]:(f=n&&(0,F.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-[6px] pointer-events-none text-muted-foreground",children:n}),t[9]=n,t[10]=f);let c=n&&"pl-7",m=i&&"pr-10",v;t[11]!==r||t[12]!==c||t[13]!==m?(v=R("shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid","flex h-6 w-full mb-1 rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50",c,m,r),t[11]=r,t[12]=c,t[13]=m,t[14]=v):v=t[14];let b;t[15]===Symbol.for("react.memo_cache_sentinel")?(b=Gr.stopPropagation(),t[15]=b):b=t[15];let p;t[16]!==o||t[17]!==a||t[18]!==v||t[19]!==d?(p=(0,F.jsx)("input",{type:d,className:v,ref:a,onClick:b,...o}),t[16]=o,t[17]=a,t[18]=v,t[19]=d,t[20]=p):p=t[20];let h;t[21]===i?h=t[22]:(h=i&&(0,F.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-[6px] text-muted-foreground h-6",children:i}),t[21]=i,t[22]=h);let g;return t[23]!==s||t[24]!==f||t[25]!==p||t[26]!==h?(g=(0,F.jsxs)("div",{className:s,children:[f,p,h]}),t[23]=s,t[24]=f,t[25]=p,t[26]=h,t[27]=g):g=t[27],g});Le.displayName="Input";const Tr=l.forwardRef((e,a)=>{let t=(0,we.c)(16),r,i,n;t[0]===e?(r=t[1],i=t[2],n=t[3]):({className:r,onValueChange:i,...n}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=n);let o;t[4]!==i||t[5]!==n.delay||t[6]!==n.value?(o={initialValue:n.value,delay:n.delay,onChange:i},t[4]=i,t[5]=n.delay,t[6]=n.value,t[7]=o):o=t[7];let{value:s,onChange:u}=wt(o),d;t[8]===u?d=t[9]:(d=c=>u(c.target.value),t[8]=u,t[9]=d);let f;return t[10]!==r||t[11]!==n||t[12]!==a||t[13]!==d||t[14]!==s?(f=(0,F.jsx)(Le,{ref:a,className:r,...n,onChange:d,value:s}),t[10]=r,t[11]=n,t[12]=a,t[13]=d,t[14]=s,t[15]=f):f=t[15],f});Tr.displayName="DebouncedInput";const Vr=l.forwardRef((e,a)=>{let t=(0,we.c)(13),r,i,n;t[0]===e?(r=t[1],i=t[2],n=t[3]):({className:r,onValueChange:i,...n}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=n);let o;t[4]!==i||t[5]!==n.value?(o={initialValue:n.value,delay:200,onChange:i},t[4]=i,t[5]=n.value,t[6]=o):o=t[6];let{value:s,onChange:u}=wt(o),d;return t[7]!==r||t[8]!==u||t[9]!==n||t[10]!==a||t[11]!==s?(d=(0,F.jsx)(et,{ref:a,className:r,...n,onChange:u,value:s}),t[7]=r,t[8]=u,t[9]=n,t[10]=a,t[11]=s,t[12]=d):d=t[12],d});Vr.displayName="DebouncedNumberInput";const $r=l.forwardRef(({className:e,rootClassName:a,icon:t=(0,F.jsx)(Lt,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),clearable:r=!0,...i},n)=>{let o=l.useId(),s=i.id||o;return(0,F.jsxs)("div",{className:R("flex items-center border-b px-3",a),children:[t,(0,F.jsx)("input",{id:s,ref:n,className:R("placeholder:text-foreground-muted flex h-7 m-1 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...i}),r&&i.value&&(0,F.jsx)("span",{onPointerDown:u=>{var f;u.preventDefault(),u.stopPropagation();let d=document.getElementById(s);d&&d instanceof HTMLInputElement&&(d.focus(),d.value="",(f=i.onChange)==null||f.call(i,{...u,target:d,currentTarget:d,type:"change"}))},children:(0,F.jsx)(Xr,{className:"h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer"})})]})});$r.displayName="SearchInput";const kr=l.forwardRef((e,a)=>{let t=(0,we.c)(23),r,i,n;t[0]===e?(r=t[1],i=t[2],n=t[3]):({className:r,onValueChange:i,...n}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=n);let[o,s]=l.useState(n.value),u;t[4]!==o||t[5]!==i||t[6]!==n.value?(u={prop:n.value,defaultProp:o,onChange:i},t[4]=o,t[5]=i,t[6]=n.value,t[7]=u):u=t[7];let[d,f]=Jr(u),c,m;t[8]===d?(c=t[9],m=t[10]):(c=()=>{s(d||"")},m=[d],t[8]=d,t[9]=c,t[10]=m),l.useEffect(c,m);let v;t[11]===Symbol.for("react.memo_cache_sentinel")?(v=g=>s(g.target.value),t[11]=v):v=t[11];let b,p;t[12]!==o||t[13]!==f?(b=()=>f(o||""),p=g=>{g.key==="Enter"&&f(o||"")},t[12]=o,t[13]=f,t[14]=b,t[15]=p):(b=t[14],p=t[15]);let h;return t[16]!==r||t[17]!==o||t[18]!==n||t[19]!==a||t[20]!==b||t[21]!==p?(h=(0,F.jsx)(Le,{ref:a,className:r,...n,value:o,onChange:v,onBlur:b,onKeyDown:p}),t[16]=r,t[17]=o,t[18]=n,t[19]=a,t[20]=b,t[21]=p,t[22]=h):h=t[22],h});kr.displayName="OnBlurredInput";export{Ft as $,aa as A,ki as B,Ji as C,ge as D,ye as E,Jt as F,Rt as G,je as H,Xt as I,Mt as J,Ie as K,Zt as L,he as M,be as N,Q as O,_e as P,gi as Q,Gt as R,Xi as S,zi as T,At as U,Oe as V,Re as W,Z as X,K as Y,Tt as Z,Cr as _,$r as a,St as at,Wa as b,Sr as c,z as ct,Nr as d,Vt as et,ln as f,Ye as g,Xe as h,kr as i,Te as it,ta as j,Ue as k,un as l,Lt as lt,Dr as m,Vr as n,de as nt,et as o,Nt as ot,Pe as p,ke as q,Le as r,Ve as rt,Qe as s,Dt as st,Tr as t,$e as tt,Je as u,Ze as v,na as w,la as x,rn as y,qt as z};
|
|
1
|
+
import{s as mt}from"./chunk-LvLJmgfZ.js";import{t as zr}from"./react-BGmjiNul.js";import{t as ft}from"./compiler-runtime-DeeZ7FnK.js";import{t as Kr}from"./jsx-runtime-DN_bIXfG.js";import{r as Gr}from"./button-DuYGqRtX.js";import{t as R}from"./cn-C1rgT0yh.js";import{t as qr}from"./createLucideIcon-CW2xpJ57.js";import{_ as Zr,g as Yr,h as Xr}from"./select-D0g5GnIs.js";import{S as Jr}from"./Combination-D1TsGrBC.js";import{A as re,C as Qr,D as pt,E as ei,F as ti,I as vt,L as B,N as O,O as V,P as H,R as _,a as ai,d as ri,f as ii,i as bt,j as ht,k as gt,m as ni,o as yt,p as Se,r as oi,t as li,w as si,y as ui,z as Et}from"./usePress-C2LPFxyv.js";import{t as di}from"./SSRProvider-DD7JA3RM.js";import{t as Fe}from"./context-BAYdLMF_.js";import{n as Me,t as Pt}from"./useNumberFormatter-D8ks3oPN.js";import{t as ci}from"./numbers-C9_R_vlY.js";import{t as wt}from"./useDebounce-em3gna-v.js";var Lt=qr("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);function mi(...e){return e.length===1&&e[0]?e[0]:a=>{let t=!1,r=e.map(i=>{let n=xt(i,a);return t||(t=typeof n=="function"),n});if(t)return()=>{r.forEach((i,n)=>{typeof i=="function"?i():xt(e[n],null)})}}}function xt(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}var fi=new Set(["id"]),pi=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),vi=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),bi=new Set(["dir","lang","hidden","inert","translate"]),Ct=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".split(".")),hi=/^(data-.*)$/;function z(e,a={}){let{labelable:t,isLink:r,global:i,events:n=i,propNames:o}=a,s={};for(let u in e)Object.prototype.hasOwnProperty.call(e,u)&&(fi.has(u)||t&&pi.has(u)||r&&vi.has(u)||i&&bi.has(u)||n&&Ct.has(u)||u.endsWith("Capture")&&Ct.has(u.slice(0,-7))||o!=null&&o.has(u)||hi.test(u))&&(s[u]=e[u]);return s}function Dt(e,a){let{id:t,"aria-label":r,"aria-labelledby":i}=e;return t=B(t),i&&r?i=[...new Set([t,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&a&&(r=a),{id:t,"aria-label":r,"aria-labelledby":i}}var l=mt(zr(),1);function Nt(e){let a=(0,l.useRef)(null),t=(0,l.useRef)(void 0),r=(0,l.useCallback)(i=>{if(typeof e=="function"){let n=e,o=n(i);return()=>{typeof o=="function"?o():n(null)}}else if(e)return e.current=i,()=>{e.current=null}},[e]);return(0,l.useMemo)(()=>({get current(){return a.current},set current(i){a.current=i,t.current&&(t.current=(t.current(),void 0)),i!=null&&(t.current=r(i))}}),[r])}function St(e,a,t,r){let i=_(t),n=t==null;(0,l.useEffect)(()=>{if(n||!e.current)return;let o=e.current;return o.addEventListener(a,i,r),()=>{o.removeEventListener(a,i,r)}},[e,a,r,n,i])}function Te(e,a,t){let r=_(()=>{t&&t(a)});(0,l.useEffect)(()=>{var n;let i=(n=e==null?void 0:e.current)==null?void 0:n.form;return i==null||i.addEventListener("reset",r),()=>{i==null||i.removeEventListener("reset",r)}},[e,r])}function Ve(e,a,t){let[r,i]=(0,l.useState)(e||a),n=(0,l.useRef)(e!==void 0),o=e!==void 0;(0,l.useEffect)(()=>{n.current,n.current=o},[o]);let s=o?e:r,u=(0,l.useCallback)((d,...f)=>{let c=(m,...v)=>{t&&(Object.is(s,m)||t(m,...v)),o||(s=m)};typeof d=="function"?i((m,...v)=>{let b=d(o?s:m,...v);return c(b,...f),o?m:b}):(o||i(d),c(d,...f))},[o,s,t]);return[s,u]}function de(e,a=-1/0,t=1/0){return Math.min(Math.max(e,a),t)}function ce(e,a){let t=e,r=0,i=a.toString(),n=i.toLowerCase().indexOf("e-");if(n>0)r=Math.abs(Math.floor(Math.log10(Math.abs(a))))+n;else{let o=i.indexOf(".");o>=0&&(r=i.length-o)}if(r>0){let o=10**r;t=Math.round(t*o)/o}return t}function j(e,a,t,r){a=Number(a),t=Number(t);let i=(e-(isNaN(a)?0:a))%r,n=ce(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(a)?!isNaN(t)&&n>t&&(n=Math.floor(ce(t/r,r))*r):n<a?n=a:!isNaN(t)&&n>t&&(n=a+Math.floor(ce((t-a)/r,r))*r),n=ce(n,r),n}var Ft=Symbol("default");function Mt({values:e,children:a}){for(let[t,r]of e)a=l.createElement(t.Provider,{value:r},a);return a}function Z(e){let{className:a,style:t,children:r,defaultClassName:i,defaultChildren:n,defaultStyle:o,values:s}=e;return(0,l.useMemo)(()=>{let u,d,f;return u=typeof a=="function"?a({...s,defaultClassName:i}):a,d=typeof t=="function"?t({...s,defaultStyle:o||{}}):t,f=typeof r=="function"?r({...s,defaultChildren:n}):r??n,{className:u??i,style:d||o?{...o,...d}:void 0,children:f??n,"data-rac":""}},[a,t,r,i,n,o,s])}function gi(e,a){return t=>a(typeof e=="function"?e(t):e,t)}function $e(e,a){let t=(0,l.useContext)(e);if(a===null)return null;if(t&&typeof t=="object"&&"slots"in t&&t.slots){let r=a||Ft;if(!t.slots[r]){let i=new Intl.ListFormat().format(Object.keys(t.slots).map(o=>`"${o}"`)),n=a?`Invalid slot "${a}".`:"A slot prop is required.";throw Error(`${n} Valid slot names are ${i}.`)}return t.slots[r]}return t}function K(e,a,t){let{ref:r,...i}=$e(t,e.slot)||{},n=Nt((0,l.useMemo)(()=>mi(a,r),[a,r])),o=V(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?o.style=s=>{let u=typeof i.style=="function"?i.style(s):i.style,d={...s.defaultStyle,...u},f=typeof e.style=="function"?e.style({...s,defaultStyle:d}):e.style;return{...d,...f}}:o.style={...i.style,...e.style}),[o,n]}function Tt(e=!0){let[a,t]=(0,l.useState)(e),r=(0,l.useRef)(!1),i=(0,l.useCallback)(n=>{r.current=!0,t(!!n)},[]);return Et(()=>{r.current||t(!1)},[]),[i,a]}function Vt(e){let a=/^(data-.*)$/,t={};for(let r in e)a.test(r)||(t[r]=e[r]);return t}var $t=7e3,k=null;function ke(e,a="assertive",t=$t){k?k.announce(e,a,t):(k=new Ei,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?k.announce(e,a,t):setTimeout(()=>{k!=null&&k.isAttached()&&(k==null||k.announce(e,a,t))},100))}function yi(e){k&&k.clear(e)}var Ei=class{isAttached(){var e;return(e=this.node)==null?void 0:e.isConnected}createLog(e){let a=document.createElement("div");return a.setAttribute("role","log"),a.setAttribute("aria-live",e),a.setAttribute("aria-relevant","additions"),a}destroy(){this.node&&(this.node=(document.body.removeChild(this.node),null))}announce(e,a="assertive",t=$t){var r,i;if(!this.node)return;let n=document.createElement("div");typeof e=="object"?(n.setAttribute("role","img"),n.setAttribute("aria-labelledby",e["aria-labelledby"])):n.textContent=e,a==="assertive"?(r=this.assertiveLog)==null||r.appendChild(n):(i=this.politeLog)==null||i.appendChild(n),e!==""&&setTimeout(()=>{n.remove()},t)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}},Pi=Symbol.for("react-aria.i18n.locale"),wi=Symbol.for("react-aria.i18n.strings"),Y=void 0,Ie=class Ir{getStringForLocale(a,t){let r=this.getStringsForLocale(t)[a];if(!r)throw Error(`Could not find intl message ${a} in ${t} locale`);return r}getStringsForLocale(a){let t=this.strings[a];return t||(t=Li(a,this.strings,this.defaultLocale),this.strings[a]=t),t}static getGlobalDictionaryForPackage(a){if(typeof window>"u")return null;let t=window[Pi];if(Y===void 0){let i=window[wi];if(!i)return null;for(let n in Y={},i)Y[n]=new Ir({[t]:i[n]},t)}let r=Y==null?void 0:Y[a];if(!r)throw Error(`Strings for package "${a}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(a,t="en-US"){this.strings=Object.fromEntries(Object.entries(a).filter(([,r])=>r)),this.defaultLocale=t}};function Li(e,a,t="en-US"){if(a[e])return a[e];let r=xi(e);if(a[r])return a[r];for(let i in a)if(i.startsWith(r+"-"))return a[i];return a[t]}function xi(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var kt=new Map,It=new Map,Rt=class{format(e,a){let t=this.strings.getStringForLocale(e,this.locale);return typeof t=="function"?t(a,this):t}plural(e,a,t="cardinal"){let r=a["="+e];if(r)return typeof r=="function"?r():r;let i=this.locale+":"+t,n=kt.get(i);return n||(n=new Intl.PluralRules(this.locale,{type:t}),kt.set(i,n)),r=a[n.select(e)]||a.other,typeof r=="function"?r():r}number(e){let a=It.get(this.locale);return a||(a=new Intl.NumberFormat(this.locale),It.set(this.locale,a)),a.format(e)}select(e,a){let t=e[a]||e.other;return typeof t=="function"?t():t}constructor(e,a){this.locale=e,this.strings=a}},jt=new WeakMap;function Ci(e){let a=jt.get(e);return a||(a=new Ie(e),jt.set(e,a)),a}function At(e,a){return a&&Ie.getGlobalDictionaryForPackage(a)||Ci(e)}function Re(e,a){let{locale:t}=Fe(),r=At(e,a);return(0,l.useMemo)(()=>new Rt(t,r),[t,r])}var Di=RegExp("^.*\\(.*\\).*$"),Ni=["latn","arab","hanidec","deva","beng","fullwide"],je=class{parse(e){return Ae(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,a,t){return Ae(this.locale,this.options,e).isValidPartialNumber(e,a,t)}getNumberingSystem(e){return Ae(this.locale,this.options,e).options.numberingSystem}constructor(e,a={}){this.locale=e,this.options=a}},Bt=new Map;function Ae(e,a,t){let r=Ot(e,a);if(!e.includes("-nu-")&&!r.isValidPartialNumber(t)){for(let i of Ni)if(i!==r.options.numberingSystem){let n=Ot(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,a);if(n.isValidPartialNumber(t))return n}}return r}function Ot(e,a){let t=e+(a?Object.entries(a).sort((i,n)=>i[0]<n[0]?-1:1).join():""),r=Bt.get(t);return r||(r=new Si(e,a),Bt.set(t,r)),r}var Si=class{parse(e){let a=this.sanitize(e);if(this.symbols.group&&(a=X(a,this.symbols.group,"")),this.symbols.decimal&&(a=a.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(a=a.replace(this.symbols.minusSign,"-")),a=a.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let r=a.indexOf("-");a=a.replace("-",""),a=a.replace("+","");let i=a.indexOf(".");i===-1&&(i=a.length),a=a.replace(".",""),a=i-2==0?`0.${a}`:i-2==-1?`0.0${a}`:i-2==-2?"0.00":`${a.slice(0,i-2)}.${a.slice(i-2)}`,r>-1&&(a=`-${a}`)}let t=a?+a:NaN;if(isNaN(t))return NaN;if(this.options.style==="percent"){let r={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new je(this.locale,r).parse(new Me(this.locale,r).format(t))}return this.options.currencySign==="accounting"&&Di.test(e)&&(t=-1*t),t}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(e=e.replace(",",this.symbols.decimal),e=e.replace("\u060C",this.symbols.decimal)),this.symbols.group&&(e=X(e,".",this.symbols.group))),this.symbols.group==="\u2019"&&e.includes("'")&&(e=X(e,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(e=X(e," ",this.symbols.group),e=X(e,/\u00A0/g,this.symbols.group)),e}isValidPartialNumber(e,a=-1/0,t=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&a<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&t>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(e=X(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),e.length===0)}constructor(e,a={}){this.locale=e,a.roundingIncrement!==1&&a.roundingIncrement!=null&&(a.maximumFractionDigits==null&&a.minimumFractionDigits==null?(a.maximumFractionDigits=0,a.minimumFractionDigits=0):a.maximumFractionDigits==null?a.maximumFractionDigits=a.minimumFractionDigits:a.minimumFractionDigits??(a.minimumFractionDigits=a.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,a),this.options=this.formatter.resolvedOptions(),this.symbols=Mi(e,this.formatter,this.options,a),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.")}},Ht=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Fi=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Mi(e,a,t,r){var C,w,N,x;let i=new Intl.NumberFormat(e,{...t,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),n=i.formatToParts(-10000.111),o=i.formatToParts(10000.111),s=Fi.map(y=>i.formatToParts(y)),u=((C=n.find(y=>y.type==="minusSign"))==null?void 0:C.value)??"-",d=(w=o.find(y=>y.type==="plusSign"))==null?void 0:w.value;!d&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(d="+");let f=(N=new Intl.NumberFormat(e,{...t,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(y=>y.type==="decimal"))==null?void 0:N.value,c=(x=n.find(y=>y.type==="group"))==null?void 0:x.value,m=n.filter(y=>!Ht.has(y.type)).map(y=>_t(y.value)),v=s.flatMap(y=>y.filter(P=>!Ht.has(P.type)).map(P=>_t(P.value))),b=[...new Set([...m,...v])].sort((y,P)=>P.length-y.length),p=b.length===0?RegExp("[\\p{White_Space}]","gu"):RegExp(`${b.join("|")}|[\\p{White_Space}]`,"gu"),h=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),g=new Map(h.map((y,P)=>[y,P])),E=RegExp(`[${h.join("")}]`,"g");return{minusSign:u,plusSign:d,decimal:f,group:c,literals:p,numeral:E,index:y=>String(g.get(y))}}function X(e,a,t){return e.replaceAll?e.replaceAll(a,t):e.split(a).join(t)}function _t(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var A=null,ie=new Set,ne=new Map,G=!1,Be=!1,Ti={Tab:!0,Escape:!0};function me(e,a){for(let t of ie)t(e,a)}function Vi(e){return!(e.metaKey||!Qr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function fe(e){G=!0,Vi(e)&&(A="keyboard",me("keyboard",e))}function J(e){A="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(G=!0,me("pointer",e))}function Wt(e){ri(e)&&(G=!0,A="virtual")}function Ut(e){e.target===window||e.target===document||yt||!e.isTrusted||(!G&&!Be&&(A="virtual",me("virtual",e)),G=!1,Be=!1)}function zt(){yt||(G=!1,Be=!0)}function pe(e){if(typeof window>"u"||typeof document>"u"||ne.get(H(e)))return;let a=H(e),t=O(e),r=a.HTMLElement.prototype.focus;a.HTMLElement.prototype.focus=function(){G=!0,r.apply(this,arguments)},t.addEventListener("keydown",fe,!0),t.addEventListener("keyup",fe,!0),t.addEventListener("click",Wt,!0),a.addEventListener("focus",Ut,!0),a.addEventListener("blur",zt,!1),typeof PointerEvent<"u"&&(t.addEventListener("pointerdown",J,!0),t.addEventListener("pointermove",J,!0),t.addEventListener("pointerup",J,!0)),a.addEventListener("beforeunload",()=>{Kt(e)},{once:!0}),ne.set(a,{focus:r})}var Kt=(e,a)=>{let t=H(e),r=O(e);a&&r.removeEventListener("DOMContentLoaded",a),ne.has(t)&&(t.HTMLElement.prototype.focus=ne.get(t).focus,r.removeEventListener("keydown",fe,!0),r.removeEventListener("keyup",fe,!0),r.removeEventListener("click",Wt,!0),t.removeEventListener("focus",Ut,!0),t.removeEventListener("blur",zt,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",J,!0),r.removeEventListener("pointermove",J,!0),r.removeEventListener("pointerup",J,!0)),ne.delete(t))};function $i(e){let a=O(e),t;return a.readyState==="loading"?(t=()=>{pe(e)},a.addEventListener("DOMContentLoaded",t)):pe(e),()=>Kt(e,t)}typeof document<"u"&&$i();function Oe(){return A!=="pointer"}function Gt(){return A}function qt(e){A=e,me(e,null)}function ki(){pe();let[e,a]=(0,l.useState)(A);return(0,l.useEffect)(()=>{let t=()=>{a(A)};return ie.add(t),()=>{ie.delete(t)}},[]),di()?null:e}var Ii=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ri(e,a,t){let r=O(t==null?void 0:t.target),i=typeof window<"u"?H(t==null?void 0:t.target).HTMLInputElement:HTMLInputElement,n=typeof window<"u"?H(t==null?void 0:t.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?H(t==null?void 0:t.target).HTMLElement:HTMLElement,s=typeof window<"u"?H(t==null?void 0:t.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!Ii.has(r.activeElement.type)||r.activeElement instanceof n||r.activeElement instanceof o&&r.activeElement.isContentEditable,!(e&&a==="keyboard"&&t instanceof s&&!Ti[t.key])}function ji(e,a,t){pe(),(0,l.useEffect)(()=>{let r=(i,n)=>{Ri(!!(t!=null&&t.isTextInput),i,n)&&e(Oe())};return ie.add(r),()=>{ie.delete(r)}},a)}function Zt(e){let a=O(e),t=re(a);if(Gt()==="virtual"){let r=t;ni(()=>{re(a)===r&&e.isConnected&&pt(e)})}else pt(e)}function He(e){let{isDisabled:a,onFocus:t,onBlur:r,onFocusChange:i}=e,n=(0,l.useCallback)(u=>{if(u.target===u.currentTarget)return r&&r(u),i&&i(!1),!0},[r,i]),o=bt(n),s=(0,l.useCallback)(u=>{let d=O(u.target),f=d?re(d):re();u.target===u.currentTarget&&f===ht(u.nativeEvent)&&(t&&t(u),i&&i(!0),o(u))},[i,t,o]);return{focusProps:{onFocus:!a&&(t||i||r)?s:void 0,onBlur:!a&&(r||i)?n:void 0}}}function Yt(e){if(!e)return;let a=!0;return t=>{e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){a=!0},continuePropagation(){a=!1},isPropagationStopped(){return a}}),a&&t.stopPropagation()}}function Xt(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Yt(e.onKeyDown),onKeyUp:Yt(e.onKeyUp)}}}var Jt=l.createContext(null);function Ai(e){let a=(0,l.useContext)(Jt)||{};ii(a,e);let{ref:t,...r}=a;return r}function Qt(e,a){let{focusProps:t}=He(e),{keyboardProps:r}=Xt(e),i=V(t,r),n=Ai(a),o=e.isDisabled?{}:n,s=(0,l.useRef)(e.autoFocus);(0,l.useEffect)(()=>{s.current&&a.current&&Zt(a.current),s.current=!1},[a]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:V({...i,tabIndex:u},o)}}function _e(e){let{isDisabled:a,onBlurWithin:t,onFocusWithin:r,onFocusWithinChange:i}=e,n=(0,l.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=Se(),u=(0,l.useCallback)(c=>{c.currentTarget.contains(c.target)&&n.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(n.current.isFocusWithin=!1,s(),t&&t(c),i&&i(!1))},[t,i,n,s]),d=bt(u),f=(0,l.useCallback)(c=>{if(!c.currentTarget.contains(c.target))return;let m=O(c.target),v=re(m);if(!n.current.isFocusWithin&&v===ht(c.nativeEvent)){r&&r(c),i&&i(!0),n.current.isFocusWithin=!0,d(c);let b=c.currentTarget;o(m,"focus",p=>{if(n.current.isFocusWithin&&!gt(b,p.target)){let h=new m.defaultView.FocusEvent("blur",{relatedTarget:p.target});ai(h,b),u(oi(h))}},{capture:!0})}},[r,i,d,o,u]);return a?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:u}}}var We=!1,ve=0;function Bi(){We=!0,setTimeout(()=>{We=!1},50)}function ea(e){e.pointerType==="touch"&&Bi()}function Oi(){if(!(typeof document>"u"))return ve===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",ea),ve++,()=>{ve--,!(ve>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",ea)}}function be(e){let{onHoverStart:a,onHoverChange:t,onHoverEnd:r,isDisabled:i}=e,[n,o]=(0,l.useState)(!1),s=(0,l.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,l.useEffect)(Oi,[]);let{addGlobalListener:u,removeAllGlobalListeners:d}=Se(),{hoverProps:f,triggerHoverEnd:c}=(0,l.useMemo)(()=>{let m=(p,h)=>{if(s.pointerType=h,i||h==="touch"||s.isHovered||!p.currentTarget.contains(p.target))return;s.isHovered=!0;let g=p.currentTarget;s.target=g,u(O(p.target),"pointerover",E=>{s.isHovered&&s.target&&!gt(s.target,E.target)&&v(E,E.pointerType)},{capture:!0}),a&&a({type:"hoverstart",target:g,pointerType:h}),t&&t(!0),o(!0)},v=(p,h)=>{let g=s.target;s.pointerType="",s.target=null,!(h==="touch"||!s.isHovered||!g)&&(s.isHovered=!1,d(),r&&r({type:"hoverend",target:g,pointerType:h}),t&&t(!1),o(!1))},b={};return typeof PointerEvent<"u"&&(b.onPointerEnter=p=>{We&&p.pointerType==="mouse"||m(p,p.pointerType)},b.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&v(p,p.pointerType)}),{hoverProps:b,triggerHoverEnd:v}},[a,t,r,i,s,u,d]);return(0,l.useEffect)(()=>{i&&c({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:f,isHovered:n}}function Hi(e,a){let{onScroll:t,isDisabled:r}=e,i=(0,l.useCallback)(n=>{n.ctrlKey||(n.preventDefault(),n.stopPropagation(),t&&t({deltaX:n.deltaX,deltaY:n.deltaY}))},[t]);St(a,"wheel",r?void 0:i)}function he(e={}){let{autoFocus:a=!1,isTextInput:t,within:r}=e,i=(0,l.useRef)({isFocused:!1,isFocusVisible:a||Oe()}),[n,o]=(0,l.useState)(!1),[s,u]=(0,l.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),d=(0,l.useCallback)(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),f=(0,l.useCallback)(v=>{i.current.isFocused=v,o(v),d()},[d]);ji(v=>{i.current.isFocusVisible=v,d()},[],{isTextInput:t});let{focusProps:c}=He({isDisabled:r,onFocusChange:f}),{focusWithinProps:m}=_e({isDisabled:!r,onFocusWithinChange:f});return{isFocused:n,isFocusVisible:s,focusProps:r?m:c}}function ta(e){let{id:a,label:t,"aria-labelledby":r,"aria-label":i,labelElementType:n="label"}=e;a=B(a);let o=B(),s={};t&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:n==="label"?a:void 0});let u=Dt({id:a,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:u}}function aa(e){let{description:a,errorMessage:t,isInvalid:r,validationState:i}=e,{labelProps:n,fieldProps:o}=ta(e),s=vt([!!a,!!t,r,i]),u=vt([!!a,!!t,r,i]);return o=V(o,{"aria-describedby":[s,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:n,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:u}}}var ge={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ra={...ge,customError:!0,valid:!1},Q={isInvalid:!1,validationDetails:ge,validationErrors:[]},_i=(0,l.createContext)({}),ye="__formValidationState"+Date.now();function Ue(e){if(e[ye]){let{realtimeValidation:a,displayValidation:t,updateValidation:r,resetValidation:i,commitValidation:n}=e[ye];return{realtimeValidation:a,displayValidation:t,updateValidation:r,resetValidation:i,commitValidation:n}}return Wi(e)}function Wi(e){let{isInvalid:a,validationState:t,name:r,value:i,builtinValidation:n,validate:o,validationBehavior:s="aria"}=e;t&&(a||(a=t==="invalid"));let u=a===void 0?null:{isInvalid:a,validationErrors:[],validationDetails:ra},d=(0,l.useMemo)(()=>!o||i==null?null:ia(Ui(o,i)),[o,i]);n!=null&&n.validationDetails.valid&&(n=void 0);let f=(0,l.useContext)(_i),c=(0,l.useMemo)(()=>r?Array.isArray(r)?r.flatMap(P=>ze(f[P])):ze(f[r]):[],[f,r]),[m,v]=(0,l.useState)(f),[b,p]=(0,l.useState)(!1);f!==m&&(v(f),p(!1));let h=(0,l.useMemo)(()=>ia(b?[]:c),[b,c]),g=(0,l.useRef)(Q),[E,C]=(0,l.useState)(Q),w=(0,l.useRef)(Q),N=()=>{if(!x)return;y(!1);let P=d||n||g.current;Ke(P,w.current)||(w.current=P,C(P))},[x,y]=(0,l.useState)(!1);return(0,l.useEffect)(N),{realtimeValidation:u||h||d||n||Q,displayValidation:s==="native"?u||h||E:u||h||d||n||E,updateValidation(P){s==="aria"&&!Ke(E,P)?C(P):g.current=P},resetValidation(){let P=Q;Ke(P,w.current)||(w.current=P,C(P)),s==="native"&&y(!1),p(!0)},commitValidation(){s==="native"&&y(!0),p(!0)}}}function ze(e){return e?Array.isArray(e)?e:[e]:[]}function Ui(e,a){if(typeof e=="function"){let t=e(a);if(t&&typeof t!="boolean")return ze(t)}return[]}function ia(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:ra}:null}function Ke(e,a){return e===a?!0:!!e&&!!a&&e.isInvalid===a.isInvalid&&e.validationErrors.length===a.validationErrors.length&&e.validationErrors.every((t,r)=>t===a.validationErrors[r])&&Object.entries(e.validationDetails).every(([t,r])=>a.validationDetails[t]===r)}function zi(...e){let a=new Set,t=!1,r={...ge};for(let o of e){var i,n;for(let s of o.validationErrors)a.add(s);for(let s in t||(t=o.isInvalid),r)(i=r)[n=s]||(i[n]=o.validationDetails[s])}return r.valid=!t,{isInvalid:t,validationErrors:[...a],validationDetails:r}}function na(e,a,t){let{validationBehavior:r,focus:i}=e;Et(()=>{if(r==="native"&&(t!=null&&t.current)&&!t.current.disabled){let d=a.realtimeValidation.isInvalid?a.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t.current.setCustomValidity(d),t.current.hasAttribute("title")||(t.current.title=""),a.realtimeValidation.isInvalid||a.updateValidation(Gi(t.current))}});let n=(0,l.useRef)(!1),o=_(()=>{n.current||a.resetValidation()}),s=_(d=>{var m;a.displayValidation.isInvalid||a.commitValidation();let f=(m=t==null?void 0:t.current)==null?void 0:m.form;if(!d.defaultPrevented&&t&&f&&qi(f)===t.current){var c;i?i():(c=t.current)==null||c.focus(),qt("keyboard")}d.preventDefault()}),u=_(()=>{a.commitValidation()});(0,l.useEffect)(()=>{let d=t==null?void 0:t.current;if(!d)return;let f=d.form,c=f==null?void 0:f.reset;return f&&(f.reset=()=>{n.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,c==null||c.call(f),n.current=!1}),d.addEventListener("invalid",s),d.addEventListener("change",u),f==null||f.addEventListener("reset",o),()=>{d.removeEventListener("invalid",s),d.removeEventListener("change",u),f==null||f.removeEventListener("reset",o),f&&(f.reset=c)}},[t,s,u,o,r])}function Ki(e){let a=e.validity;return{badInput:a.badInput,customError:a.customError,patternMismatch:a.patternMismatch,rangeOverflow:a.rangeOverflow,rangeUnderflow:a.rangeUnderflow,stepMismatch:a.stepMismatch,tooLong:a.tooLong,tooShort:a.tooShort,typeMismatch:a.typeMismatch,valueMissing:a.valueMissing,valid:a.valid}}function Gi(e){return{isInvalid:!e.validity.valid,validationDetails:Ki(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function qi(e){for(let a=0;a<e.elements.length;a++){let t=e.elements[a];if(!t.validity.valid)return t}return null}function Zi(e,a){let{inputElementType:t="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:n=!1,type:o="text",validationBehavior:s="aria"}=e,[u,d]=Ve(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=Qt(e,a),c=Ue({...e,value:u}),{isInvalid:m,validationErrors:v,validationDetails:b}=c.displayValidation,{labelProps:p,fieldProps:h,descriptionProps:g,errorMessageProps:E}=aa({...e,isInvalid:m,errorMessage:e.errorMessage||v}),C=z(e,{labelable:!0}),w={type:o,pattern:e.pattern},[N]=(0,l.useState)(u);return Te(a,e.defaultValue??N,d),na(e,c,a),(0,l.useEffect)(()=>{if(a.current instanceof H(a.current).HTMLTextAreaElement){let x=a.current;Object.defineProperty(x,"defaultValue",{get:()=>x.value,set:()=>{},configurable:!0})}},[a]),{labelProps:p,inputProps:V(C,t==="input"?w:void 0,{disabled:r,readOnly:n,required:i&&s==="native","aria-required":i&&s==="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:u,onChange:x=>d(x.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,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,...f,...h}),descriptionProps:g,errorMessageProps:E,isInvalid:m,validationErrors:v,validationDetails:b}}function oa(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function Yi(e,a,t){let r=_(c=>{let m=t.current;if(!m)return;let v=null;switch(c.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":v=m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteContentForward":v=m.selectionEnd===m.selectionStart?m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd+1):m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteContentBackward":v=m.selectionEnd===m.selectionStart?m.value.slice(0,m.selectionStart-1)+m.value.slice(m.selectionStart):m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":v=m.value.slice(m.selectionStart);break;default:c.data!=null&&(v=m.value.slice(0,m.selectionStart)+c.data+m.value.slice(m.selectionEnd));break}(v==null||!a.validate(v))&&c.preventDefault()});(0,l.useEffect)(()=>{if(!oa()||!t.current)return;let c=t.current;return c.addEventListener("beforeinput",r,!1),()=>{c.removeEventListener("beforeinput",r,!1)}},[t,r]);let i=oa()?null:c=>{let m=c.target.value.slice(0,c.target.selectionStart)+c.data+c.target.value.slice(c.target.selectionEnd);a.validate(m)||c.preventDefault()},{labelProps:n,inputProps:o,descriptionProps:s,errorMessageProps:u,...d}=Zi(e,t),f=(0,l.useRef)(null);return{inputProps:V(o,{onBeforeInput:i,onCompositionStart(){let{value:c,selectionStart:m,selectionEnd:v}=t.current;f.current={value:c,selectionStart:m,selectionEnd:v}},onCompositionEnd(){if(t.current&&!a.validate(t.current.value)){let{value:c,selectionStart:m,selectionEnd:v}=f.current;t.current.value=c,t.current.setSelectionRange(m,v),a.setInputValue(c)}}}),labelProps:n,descriptionProps:s,errorMessageProps:u,...d}}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var Ee=(0,l.createContext)(!1);function Xi(e){if((0,l.useContext)(Ee))return l.createElement(l.Fragment,null,e.children);let a=l.createElement(Ee.Provider,{value:!0},e.children);return l.createElement("template",{"data-react-aria-hidden":!0},a)}function Ge(e){let a=(t,r)=>(0,l.useContext)(Ee)?null:e(t,r);return a.displayName=e.displayName||e.name,(0,l.forwardRef)(a)}function Ji(){return(0,l.useContext)(Ee)}function la(e,a){let{elementType:t="button",isDisabled:r,onPress:i,onPressStart:n,onPressEnd:o,onPressUp:s,onPressChange:u,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:c,href:m,target:v,rel:b,type:p="button"}=e,h;h=t==="button"?{type:p,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}:{role:"button",href:t==="a"&&!r?m:void 0,target:t==="a"?v:void 0,type:t==="input"?p:void 0,disabled:t==="input"?r:void 0,"aria-disabled":!r||t==="input"?void 0:r,rel:t==="a"?b:void 0};let{pressProps:g,isPressed:E}=li({onPressStart:n,onPressEnd:o,onPressChange:u,onPress:i,onPressUp:s,onClick:c,isDisabled:r,preventFocusOnPress:d,ref:a}),{focusableProps:C}=Qt(e,a);f&&(C.tabIndex=r?-1:C.tabIndex);let w=V(C,g,z(e,{labelable:!0}));return{isPressed:E,buttonProps:V(h,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function Qi(e){let{minValue:a,maxValue:t,step:r,formatOptions:i,value:n,defaultValue:o=NaN,onChange:s,locale:u,isDisabled:d,isReadOnly:f}=e;n===null&&(n=NaN),n!==void 0&&!isNaN(n)&&(n=r!==void 0&&!isNaN(r)?j(n,a,t,r):de(n,a,t)),isNaN(o)||(o=r!==void 0&&!isNaN(r)?j(o,a,t,r):de(o,a,t));let[c,m]=Ve(n,isNaN(o)?NaN:o,s),[v]=(0,l.useState)(c),[b,p]=(0,l.useState)(()=>isNaN(c)?"":new Me(u,i).format(c)),h=(0,l.useMemo)(()=>new je(u,i),[u,i]),g=(0,l.useMemo)(()=>h.getNumberingSystem(b),[h,b]),E=(0,l.useMemo)(()=>new Me(u,{...i,numberingSystem:g}),[u,i,g]),C=(0,l.useMemo)(()=>E.resolvedOptions(),[E]),w=(0,l.useCallback)(D=>isNaN(D)||D===null?"":E.format(D),[E]),N=Ue({...e,value:c}),x=r!==void 0&&!isNaN(r)?r:1;C.style==="percent"&&(r===void 0||isNaN(r))&&(x=.01);let[y,P]=(0,l.useState)(c),[M,$]=(0,l.useState)(u),[L,I]=(0,l.useState)(i);(!Object.is(c,y)||u!==M||i!==L)&&(p(w(c)),P(c),$(u),I(i));let S=(0,l.useMemo)(()=>h.parse(b),[h,b]),oe=()=>{if(!b.length){m(NaN),p(n===void 0?"":w(c));return}if(isNaN(S)){p(w(c));return}let D;D=r===void 0||isNaN(r)?de(S,a,t):j(S,a,t,r),D=h.parse(w(D)),m(D),p(w(n===void 0?D:c)),N.commitValidation()},q=(D,ue=0)=>{let W=S;if(isNaN(W))return j(isNaN(ue)?0:ue,a,t,x);{let te=j(W,a,t,x);return D==="+"&&te>W||D==="-"&&te<W?te:j(qe(D,W,x),a,t,x)}},ee=()=>{let D=q("+",a);D===c&&p(w(D)),m(D),N.commitValidation()},xe=()=>{let D=q("-",t);D===c&&p(w(D)),m(D),N.commitValidation()},le=()=>{t!=null&&(m(j(t,a,t,x)),N.commitValidation())},Ce=()=>{a!=null&&(m(a),N.commitValidation())},se=(0,l.useMemo)(()=>!d&&!f&&(isNaN(S)||t===void 0||isNaN(t)||j(S,a,t,x)>S||qe("+",S,x)<=t),[d,f,a,t,x,S]),De=(0,l.useMemo)(()=>!d&&!f&&(isNaN(S)||a===void 0||isNaN(a)||j(S,a,t,x)<S||qe("-",S,x)>=a),[d,f,a,t,x,S]);return{...N,validate:D=>h.isValidPartialNumber(D,a,t),increment:ee,incrementToMax:le,decrement:xe,decrementToMin:Ce,canIncrement:se,canDecrement:De,minValue:a,maxValue:t,numberValue:S,defaultNumberValue:isNaN(o)?v:o,setNumberValue:m,setInputValue:p,inputValue:b,commit:oe}}function qe(e,a,t){let r=e==="+"?a+t:a-t;if(a%1!=0||t%1!=0){let i=a.toString().split("."),n=t.toString().split("."),o=i[1]&&i[1].length||0,s=n[1]&&n[1].length||0,u=10**Math.max(o,s);a=Math.round(a*u),t=Math.round(t*u),r=e==="+"?a+t:a-t,r/=u}return r}var sa={};sa={Empty:"\u0641\u0627\u0631\u063A"};var ua={};ua={Empty:"\u0418\u0437\u043F\u0440\u0430\u0437\u043D\u0438"};var da={};da={Empty:"Pr\xE1zdn\xE9"};var ca={};ca={Empty:"Tom"};var ma={};ma={Empty:"Leer"};var fa={};fa={Empty:"\u0386\u03B4\u03B5\u03B9\u03BF"};var pa={};pa={Empty:"Empty"};var va={};va={Empty:"Vac\xEDo"};var ba={};ba={Empty:"T\xFChjenda"};var ha={};ha={Empty:"Tyhj\xE4"};var ga={};ga={Empty:"Vide"};var ya={};ya={Empty:"\u05E8\u05D9\u05E7"};var Ea={};Ea={Empty:"Prazno"};var Pa={};Pa={Empty:"\xDCres"};var wa={};wa={Empty:"Vuoto"};var La={};La={Empty:"\u7A7A"};var xa={};xa={Empty:"\uBE44\uC5B4 \uC788\uC74C"};var Ca={};Ca={Empty:"Tu\u0161\u010Dias"};var Da={};Da={Empty:"Tuk\u0161s"};var Na={};Na={Empty:"Tom"};var Sa={};Sa={Empty:"Leeg"};var Fa={};Fa={Empty:"Pusty"};var Ma={};Ma={Empty:"Vazio"};var Ta={};Ta={Empty:"Vazio"};var Va={};Va={Empty:"Gol"};var $a={};$a={Empty:"\u041D\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043E"};var ka={};ka={Empty:"Pr\xE1zdne"};var Ia={};Ia={Empty:"Prazen"};var Ra={};Ra={Empty:"Prazno"};var ja={};ja={Empty:"Tomt"};var Aa={};Aa={Empty:"Bo\u015F"};var Ba={};Ba={Empty:"\u041F\u0443\u0441\u0442\u043E"};var Oa={};Oa={Empty:"\u7A7A"};var Ha={};Ha={Empty:"\u7A7A\u767D"};var _a={};_a={"ar-AE":sa,"bg-BG":ua,"cs-CZ":da,"da-DK":ca,"de-DE":ma,"el-GR":fa,"en-US":pa,"es-ES":va,"et-EE":ba,"fi-FI":ha,"fr-FR":ga,"he-IL":ya,"hr-HR":Ea,"hu-HU":Pa,"it-IT":wa,"ja-JP":La,"ko-KR":xa,"lt-LT":Ca,"lv-LV":Da,"nb-NO":Na,"nl-NL":Sa,"pl-PL":Fa,"pt-BR":Ma,"pt-PT":Ta,"ro-RO":Va,"ru-RU":$a,"sk-SK":ka,"sl-SI":Ia,"sr-SP":Ra,"sv-SE":ja,"tr-TR":Aa,"uk-UA":Ba,"zh-CN":Oa,"zh-TW":Ha};function en(e){return e&&e.__esModule?e.default:e}function Wa(e){let a=(0,l.useRef)(void 0),{value:t,textValue:r,minValue:i,maxValue:n,isDisabled:o,isReadOnly:s,isRequired:u,onIncrement:d,onIncrementPage:f,onDecrement:c,onDecrementPage:m,onDecrementToMin:v,onIncrementToMax:b}=e,p=Re(en(_a),"@react-aria/spinbutton"),h=()=>clearTimeout(a.current);(0,l.useEffect)(()=>()=>h(),[]);let g=L=>{if(!(L.ctrlKey||L.metaKey||L.shiftKey||L.altKey||s||L.nativeEvent.isComposing))switch(L.key){case"PageUp":if(f){L.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(L.preventDefault(),d==null||d());break;case"PageDown":if(m){L.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":c&&(L.preventDefault(),c==null||c());break;case"Home":v&&(L.preventDefault(),v==null||v());break;case"End":b&&(L.preventDefault(),b==null||b());break}},E=(0,l.useRef)(!1),C=()=>{E.current=!0},w=()=>{E.current=!1},N=r===""?p.format("Empty"):(r||`${t}`).replace("-","\u2212");(0,l.useEffect)(()=>{E.current&&(yi("assertive"),ke(N,"assertive"))},[N]);let x=_(L=>{h(),d==null||d(),a.current=window.setTimeout(()=>{(n===void 0||isNaN(n)||t===void 0||isNaN(t)||t<n)&&x(60)},L)}),y=_(L=>{h(),c==null||c(),a.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||t===void 0||isNaN(t)||t>i)&&y(60)},L)}),P=L=>{L.preventDefault()},{addGlobalListener:M,removeAllGlobalListeners:$}=Se();return{spinButtonProps:{role:"spinbutton","aria-valuenow":t!==void 0&&!isNaN(t)?t:void 0,"aria-valuetext":N,"aria-valuemin":i,"aria-valuemax":n,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":u||void 0,onKeyDown:g,onFocus:C,onBlur:w},incrementButtonProps:{onPressStart:()=>{x(400),M(window,"contextmenu",P)},onPressEnd:()=>{h(),$()},onFocus:C,onBlur:w},decrementButtonProps:{onPressStart:()=>{y(400),M(window,"contextmenu",P)},onPressEnd:()=>{h(),$()},onFocus:C,onBlur:w}}}var Ua={};Ua={decrease:e=>`\u062E\u0641\u0636 ${e.fieldLabel}`,increase:e=>`\u0632\u064A\u0627\u062F\u0629 ${e.fieldLabel}`,numberField:"\u062D\u0642\u0644 \u0631\u0642\u0645\u064A"};var za={};za={decrease:e=>`\u041D\u0430\u043C\u0430\u043B\u044F\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0441\u0438\u043B\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,numberField:"\u041D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043F\u043E\u043B\u0435\u0442\u043E"};var Ka={};Ka={decrease:e=>`Sn\xED\u017Eit ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161it ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"};var Ga={};Ga={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xD8g ${e.fieldLabel}`,numberField:"Talfelt"};var qa={};qa={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xF6hen`,numberField:"Nummernfeld"};var Za={};Za={decrease:e=>`\u039C\u03B5\u03AF\u03C9\u03C3\u03B7 ${e.fieldLabel}`,increase:e=>`\u0391\u03CD\u03BE\u03B7\u03C3\u03B7 ${e.fieldLabel}`,numberField:"\u03A0\u03B5\u03B4\u03AF\u03BF \u03B1\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD"};var Ya={};Ya={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Xa={};Xa={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"};var Ja={};Ja={decrease:e=>`V\xE4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xE4li"};var Qa={};Qa={decrease:e=>`V\xE4henn\xE4 ${e.fieldLabel}`,increase:e=>`Lis\xE4\xE4 ${e.fieldLabel}`,numberField:"Numerokentt\xE4"};var er={};er={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var tr={};tr={decrease:e=>`\u05D4\u05E7\u05D8\u05DF ${e.fieldLabel}`,increase:e=>`\u05D4\u05D2\u05D3\u05DC ${e.fieldLabel}`,numberField:"\u05E9\u05D3\u05D4 \u05DE\u05E1\u05E4\u05E8"};var ar={};ar={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"};var rr={};rr={decrease:e=>`${e.fieldLabel} cs\xF6kkent\xE9se`,increase:e=>`${e.fieldLabel} n\xF6vel\xE9se`,numberField:"Sz\xE1mmez\u0151"};var ir={};ir={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var nr={};nr={decrease:e=>`${e.fieldLabel}\u3092\u7E2E\u5C0F`,increase:e=>`${e.fieldLabel}\u3092\u62E1\u5927`,numberField:"\u6570\u5024\u30D5\u30A3\u30FC\u30EB\u30C9"};var or={};or={decrease:e=>`${e.fieldLabel} \uAC10\uC18C`,increase:e=>`${e.fieldLabel} \uC99D\uAC00`,numberField:"\uBC88\uD638 \uD544\uB4DC"};var lr={};lr={decrease:e=>`Suma\u017Einti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var sr={};sr={decrease:e=>`Samazin\u0101\u0161ana ${e.fieldLabel}`,increase:e=>`Palielin\u0101\u0161ana ${e.fieldLabel}`,numberField:"Skait\u013Cu lauks"};var ur={};ur={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xD8k ${e.fieldLabel}`,numberField:"Tallfelt"};var dr={};dr={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var cr={};cr={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u0119ksz ${e.fieldLabel}`,numberField:"Pole numeru"};var mr={};mr={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"};var fr={};fr={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xE9rico"};var pr={};pr={decrease:e=>`Sc\u0103dere ${e.fieldLabel}`,increase:e=>`Cre\u0219tere ${e.fieldLabel}`,numberField:"C\xE2mp numeric"};var vr={};vr={decrease:e=>`\u0423\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,numberField:"\u0427\u0438\u0441\u043B\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435"};var br={};br={decrease:e=>`Zn\xED\u017Ei\u0165 ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161i\u0165 ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"};var hr={};hr={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u010Dajte ${e.fieldLabel}`,numberField:"\u0160tevil\u010Dno polje"};var gr={};gr={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"};var yr={};yr={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xD6ka ${e.fieldLabel}`,numberField:"Nummerf\xE4lt"};var Er={};Er={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u0131r`,numberField:"Say\u0131 alan\u0131"};var Pr={};Pr={decrease:e=>`\u0417\u043C\u0435\u043D\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,increase:e=>`\u0417\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,numberField:"\u041F\u043E\u043B\u0435 \u043D\u043E\u043C\u0435\u0440\u0430"};var wr={};wr={decrease:e=>`\u964D\u4F4E ${e.fieldLabel}`,increase:e=>`\u63D0\u9AD8 ${e.fieldLabel}`,numberField:"\u6570\u5B57\u5B57\u6BB5"};var Lr={};Lr={decrease:e=>`\u7E2E\u5C0F ${e.fieldLabel}`,increase:e=>`\u653E\u5927 ${e.fieldLabel}`,numberField:"\u6578\u5B57\u6B04\u4F4D"};var xr={};xr={"ar-AE":Ua,"bg-BG":za,"cs-CZ":Ka,"da-DK":Ga,"de-DE":qa,"el-GR":Za,"en-US":Ya,"es-ES":Xa,"et-EE":Ja,"fi-FI":Qa,"fr-FR":er,"he-IL":tr,"hr-HR":ar,"hu-HU":rr,"it-IT":ir,"ja-JP":nr,"ko-KR":or,"lt-LT":lr,"lv-LV":sr,"nb-NO":ur,"nl-NL":dr,"pl-PL":cr,"pt-BR":mr,"pt-PT":fr,"ro-RO":pr,"ru-RU":vr,"sk-SK":br,"sl-SI":hr,"sr-SP":gr,"sv-SE":yr,"tr-TR":Er,"uk-UA":Pr,"zh-CN":wr,"zh-TW":Lr};function tn(e){return e&&e.__esModule?e.default:e}function an(e,a,t){let{id:r,decrementAriaLabel:i,incrementAriaLabel:n,isDisabled:o,isReadOnly:s,isRequired:u,minValue:d,maxValue:f,autoFocus:c,label:m,formatOptions:v,onBlur:b=()=>{},onFocus:p,onFocusChange:h,onKeyDown:g,onKeyUp:E,description:C,errorMessage:w,isWheelDisabled:N,...x}=e,{increment:y,incrementToMax:P,decrement:M,decrementToMin:$,numberValue:L,inputValue:I,commit:S,commitValidation:oe}=a,q=Re(tn(xr),"@react-aria/numberfield"),ee=B(r),{focusProps:xe}=He({onBlur(){S()}}),le=Pt(v),Ce=(0,l.useMemo)(()=>le.resolvedOptions(),[le]),se=Pt({...v,currencySign:void 0}),{spinButtonProps:De,incrementButtonProps:tt,decrementButtonProps:D}=Wa({isDisabled:o,isReadOnly:s,isRequired:u,maxValue:f,minValue:d,onIncrement:y,onIncrementToMax:P,onDecrement:M,onDecrementToMin:$,value:L,textValue:(0,l.useMemo)(()=>isNaN(L)?"":se.format(L),[se,L])}),[ue,W]=(0,l.useState)(!1),{focusWithinProps:te}=_e({isDisabled:o,onFocusWithinChange:W});Hi({onScroll:(0,l.useCallback)(T=>{Math.abs(T.deltaY)<=Math.abs(T.deltaX)||(T.deltaY>0?y():T.deltaY<0&&M())},[M,y]),isDisabled:N||o||s||!ue},t);let at=(Ce.maximumFractionDigits??0)>0,rt=a.minValue===void 0||isNaN(a.minValue)||a.minValue<0,ae="numeric";ui()?rt?ae="text":at&&(ae="decimal"):si()&&(rt?ae="numeric":at&&(ae="decimal"));let Rr=T=>{a.validate(T)&&a.setInputValue(T)},jr=z(e),it=(0,l.useCallback)(T=>{T.nativeEvent.isComposing||(T.key==="Enter"?(S(),oe()):T.continuePropagation())},[S,oe]),{isInvalid:nt,validationErrors:Ar,validationDetails:Br}=a.displayValidation,{labelProps:ot,inputProps:Or,descriptionProps:Hr,errorMessageProps:_r}=Yi({...x,...jr,name:void 0,form:void 0,label:m,autoFocus:c,isDisabled:o,isReadOnly:s,isRequired:u,validate:void 0,[ye]:a,value:I,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:ee,type:"text",inputMode:ae,onChange:Rr,onBlur:b,onFocus:p,onFocusChange:h,onKeyDown:(0,l.useMemo)(()=>ti(it,g),[it,g]),onKeyUp:E,description:C,errorMessage:w},a,t);Te(t,a.defaultNumberValue,a.setNumberValue);let lt=V(De,xe,Or,{role:null,"aria-roledescription":ei()?null:q.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(lt["aria-required"]=void 0);let st=T=>{var ct;document.activeElement!==t.current&&(T.pointerType==="mouse"?(ct=t.current)==null||ct.focus():T.target.focus())},Ne=e["aria-label"]||(typeof e.label=="string"?e.label:""),U;Ne||(U=e.label==null?e["aria-labelledby"]:ot.id);let ut=B(),dt=B(),Wr=V(tt,{"aria-label":n||q.format("increase",{fieldLabel:Ne}).trim(),id:U&&!n?ut:null,"aria-labelledby":U&&!n?`${ut} ${U}`:null,"aria-controls":ee,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!a.canIncrement,onPressStart:st}),Ur=V(D,{"aria-label":i||q.format("decrease",{fieldLabel:Ne}).trim(),id:U&&!i?dt:null,"aria-labelledby":U&&!i?`${dt} ${U}`:null,"aria-controls":ee,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!a.canDecrement,onPressStart:st});return{groupProps:{...te,role:"group","aria-disabled":o,"aria-invalid":nt?"true":void 0},labelProps:ot,inputProps:lt,incrementButtonProps:Wr,decrementButtonProps:Ur,errorMessageProps:_r,descriptionProps:Hr,isInvalid:nt,validationErrors:Ar,validationDetails:Br}}var Ze=(0,l.createContext)({}),rn=Ge(function(e,a){[e,a]=K(e,a,Ze);let{elementType:t="label",...r}=e;return l.createElement(t,{className:"react-aria-Label",...r,ref:a})}),nn=(0,l.createContext)(null),Ye=(0,l.createContext)({}),Cr=Ge(function(e,a){[e,a]=K(e,a,Ye);let t=e,{isPending:r}=t,{buttonProps:i,isPressed:n}=la(e,a);i=on(i,r);let{focusProps:o,isFocused:s,isFocusVisible:u}=he(e),{hoverProps:d,isHovered:f}=be({...e,isDisabled:e.isDisabled||r}),c={isHovered:f,isPressed:(t.isPressed||n)&&!r,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:r??!1},m=Z({...e,values:c,defaultClassName:"react-aria-Button"}),v=B(i.id),b=B(),p=i["aria-labelledby"];r&&(p?p=`${p} ${b}`:i["aria-label"]&&(p=`${v} ${b}`));let h=(0,l.useRef)(r);(0,l.useEffect)(()=>{let E={"aria-labelledby":p||v};(!h.current&&s&&r||h.current&&s&&!r)&&ke(E,"assertive"),h.current=r},[r,s,p,v]);let g=z(e,{global:!0});return delete g.onClick,l.createElement("button",{...V(g,m,i,o,d),type:i.type==="submit"&&r?"button":i.type,id:v,ref:a,"aria-labelledby":p,slot:e.slot||void 0,"aria-disabled":r?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":c.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":u||void 0},l.createElement(nn.Provider,{value:{id:b}},m.children))});function on(e,a){if(a){for(let t in e)t.startsWith("on")&&!(t.includes("Focus")||t.includes("Blur"))&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}var Xe=(0,l.createContext)({}),Dr=(0,l.forwardRef)(function(e,a){[e,a]=K(e,a,Xe);let{elementType:t="span",...r}=e;return l.createElement(t,{className:"react-aria-Text",...r,ref:a})}),Pe=(0,l.createContext)(null),ln=(0,l.forwardRef)(function(e,a){var t;return(t=(0,l.useContext)(Pe))!=null&&t.isInvalid?l.createElement(sn,{...e,ref:a}):null}),sn=(0,l.forwardRef)((e,a)=>{let t=(0,l.useContext)(Pe),r=z(e,{global:!0}),i=Z({...e,defaultClassName:"react-aria-FieldError",defaultChildren:t.validationErrors.length===0?void 0:t.validationErrors.join(" "),values:t});return i.children==null?null:l.createElement(Dr,{slot:"errorMessage",...r,...i,ref:a})}),Nr=(0,l.createContext)(null),Je=(0,l.createContext)({}),un=(0,l.forwardRef)(function(e,a){[e,a]=K(e,a,Je);let{isDisabled:t,isInvalid:r,isReadOnly:i,onHoverStart:n,onHoverChange:o,onHoverEnd:s,...u}=e,{hoverProps:d,isHovered:f}=be({onHoverStart:n,onHoverChange:o,onHoverEnd:s,isDisabled:t}),{isFocused:c,isFocusVisible:m,focusProps:v}=he({within:!0});t??(t=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let b=Z({...e,values:{isHovered:f,isFocusWithin:c,isFocusVisible:m,isDisabled:t,isInvalid:r},defaultClassName:"react-aria-Group"});return l.createElement("div",{...V(u,v,d),...b,ref:a,role:e.role??"group",slot:e.slot??void 0,"data-focus-within":c||void 0,"data-hovered":f||void 0,"data-focus-visible":m||void 0,"data-disabled":t||void 0,"data-invalid":r||void 0,"data-readonly":i||void 0},b.children)}),Qe=(0,l.createContext)({}),dn=e=>{let{onHoverStart:a,onHoverChange:t,onHoverEnd:r,...i}=e;return i},Sr=Ge(function(e,a){[e,a]=K(e,a,Qe);let{hoverProps:t,isHovered:r}=be(e),{isFocused:i,isFocusVisible:n,focusProps:o}=he({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",u=Z({...e,values:{isHovered:r,isFocused:i,isFocusVisible:n,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return l.createElement("input",{...V(dn(e),o,t),...u,ref:a,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":n||void 0,"data-invalid":s||void 0})}),cn=(0,l.createContext)(null),mn=(0,l.createContext)(null),fn=(0,l.forwardRef)(function(e,a){[e,a]=K(e,a,cn);let{validationBehavior:t}=$e(Nr)||{},r=e.validationBehavior??t??"native",{locale:i}=Fe(),n=Qi({...e,locale:i,validationBehavior:r}),o=(0,l.useRef)(null),[s,u]=Tt(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:d,groupProps:f,inputProps:c,incrementButtonProps:m,decrementButtonProps:v,descriptionProps:b,errorMessageProps:p,...h}=an({...Vt(e),label:u,validationBehavior:r},n,o),g=Z({...e,values:{state:n,isDisabled:e.isDisabled||!1,isInvalid:h.isInvalid||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-NumberField"}),E=z(e,{global:!0});return delete E.id,l.createElement(Mt,{values:[[mn,n],[Je,f],[Qe,{...c,ref:o}],[Ze,{...d,ref:s}],[Ye,{slots:{increment:m,decrement:v}}],[Xe,{slots:{description:b,errorMessage:p}}],[Pe,h]]},l.createElement("div",{...E,...g,ref:a,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-required":e.isRequired||void 0,"data-invalid":h.isInvalid||void 0}),e.name&&l.createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(n.numberValue)?"":n.numberValue,disabled:e.isDisabled||void 0}))}),Fr=ft(),F=mt(Kr(),1);const et=l.forwardRef((e,a)=>{let t=(0,Fr.c)(40),{placeholder:r,variant:i,...n}=e,o=i===void 0?"default":i,{locale:s}=Fe(),u=fn,d;t[0]===s?d=t[1]:(d=ci(s),t[0]=s,t[1]=d);let f;t[2]===d?f=t[3]:(f={minimumFractionDigits:0,maximumFractionDigits:d},t[2]=d,t[3]=f);let c=R("shadow-xs-solid hover:shadow-sm-solid hover:focus-within:shadow-md-solid","flex overflow-hidden rounded-sm border border-input bg-background text-sm font-code ring-offset-background","disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xs-solid","focus-within:shadow-md-solid focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring focus-within:border-primary",o==="default"?"h-6 w-full mb-1":"h-4 w-full mb-0.5",o==="xs"&&"text-xs",n.className),m=n.isDisabled,v=o==="default"?"px-1.5":"px-1",b;t[4]===v?b=t[5]:(b=R("flex-1","w-full","placeholder:text-muted-foreground","outline-hidden","disabled:cursor-not-allowed disabled:opacity-50",v),t[4]=v,t[5]=b);let p;t[6]!==r||t[7]!==n.isDisabled||t[8]!==a||t[9]!==b?(p=(0,F.jsx)(Sr,{ref:a,disabled:m,placeholder:r,onKeyDown:pn,className:b}),t[6]=r,t[7]=n.isDisabled,t[8]=a,t[9]=b,t[10]=p):p=t[10];let h=n.isDisabled,g=o==="xs"&&"w-2 h-2",E;t[11]===g?E=t[12]:(E=R("w-3 h-3 -mb-px",g),t[11]=g,t[12]=E);let C;t[13]===E?C=t[14]:(C=(0,F.jsx)(Yr,{"aria-hidden":!0,className:E}),t[13]=E,t[14]=C);let w;t[15]!==n.isDisabled||t[16]!==C||t[17]!==o?(w=(0,F.jsx)(Mr,{slot:"increment",isDisabled:h,variant:o,children:C}),t[15]=n.isDisabled,t[16]=C,t[17]=o,t[18]=w):w=t[18];let N;t[19]===Symbol.for("react.memo_cache_sentinel")?(N=(0,F.jsx)("div",{className:"h-px shrink-0 divider bg-border z-10"}),t[19]=N):N=t[19];let x=n.isDisabled,y=o==="xs"&&"w-2 h-2",P;t[20]===y?P=t[21]:(P=R("w-3 h-3 -mt-px",y),t[20]=y,t[21]=P);let M;t[22]===P?M=t[23]:(M=(0,F.jsx)(Zr,{"aria-hidden":!0,className:P}),t[22]=P,t[23]=M);let $;t[24]!==n.isDisabled||t[25]!==M||t[26]!==o?($=(0,F.jsx)(Mr,{slot:"decrement",isDisabled:x,variant:o,children:M}),t[24]=n.isDisabled,t[25]=M,t[26]=o,t[27]=$):$=t[27];let L;t[28]!==w||t[29]!==$?(L=(0,F.jsxs)("div",{className:"flex flex-col border-s-2",children:[w,N,$]}),t[28]=w,t[29]=$,t[30]=L):L=t[30];let I;t[31]!==L||t[32]!==c||t[33]!==p?(I=(0,F.jsxs)("div",{className:c,children:[p,L]}),t[31]=L,t[32]=c,t[33]=p,t[34]=I):I=t[34];let S;return t[35]!==u||t[36]!==n||t[37]!==I||t[38]!==f?(S=(0,F.jsx)(u,{...n,formatOptions:f,children:I}),t[35]=u,t[36]=n,t[37]=I,t[38]=f,t[39]=S):S=t[39],S});et.displayName="NumberField";var Mr=e=>{let a=(0,Fr.c)(6),t=!e.isDisabled&&"hover:text-primary hover:bg-muted",r=e.variant==="default"?"px-0.5":"px-0.25",i;a[0]!==t||a[1]!==r?(i=R("cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary","disabled:cursor-not-allowed disabled:opacity-50",t,r),a[0]=t,a[1]=r,a[2]=i):i=a[2];let n;return a[3]!==e||a[4]!==i?(n=(0,F.jsx)(Cr,{...e,className:i}),a[3]=e,a[4]=i,a[5]=n):n=a[5],n};function pn(e){(e.key==="ArrowUp"||e.key==="ArrowDown")&&e.stopPropagation()}var we=ft(),Le=l.forwardRef((e,a)=>{let t=(0,we.c)(28),r,i,n,o,s,u,d;if(t[0]!==a||t[1]!==e){u=Symbol.for("react.early_return_sentinel");e:{if({className:r,type:d,endAdornment:i,...o}=e,n=o.icon,d==="hidden"){u=(0,F.jsx)("input",{type:"hidden",ref:a,...o});break e}s=R("relative",o.rootClassName)}t[0]=a,t[1]=e,t[2]=r,t[3]=i,t[4]=n,t[5]=o,t[6]=s,t[7]=u,t[8]=d}else r=t[2],i=t[3],n=t[4],o=t[5],s=t[6],u=t[7],d=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;let f;t[9]===n?f=t[10]:(f=n&&(0,F.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-[6px] pointer-events-none text-muted-foreground",children:n}),t[9]=n,t[10]=f);let c=n&&"pl-7",m=i&&"pr-10",v;t[11]!==r||t[12]!==c||t[13]!==m?(v=R("shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid","flex h-6 w-full mb-1 rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50",c,m,r),t[11]=r,t[12]=c,t[13]=m,t[14]=v):v=t[14];let b;t[15]===Symbol.for("react.memo_cache_sentinel")?(b=Gr.stopPropagation(),t[15]=b):b=t[15];let p;t[16]!==o||t[17]!==a||t[18]!==v||t[19]!==d?(p=(0,F.jsx)("input",{type:d,className:v,ref:a,onClick:b,...o}),t[16]=o,t[17]=a,t[18]=v,t[19]=d,t[20]=p):p=t[20];let h;t[21]===i?h=t[22]:(h=i&&(0,F.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-[6px] text-muted-foreground h-6",children:i}),t[21]=i,t[22]=h);let g;return t[23]!==s||t[24]!==f||t[25]!==p||t[26]!==h?(g=(0,F.jsxs)("div",{className:s,children:[f,p,h]}),t[23]=s,t[24]=f,t[25]=p,t[26]=h,t[27]=g):g=t[27],g});Le.displayName="Input";const Tr=l.forwardRef((e,a)=>{let t=(0,we.c)(16),r,i,n;t[0]===e?(r=t[1],i=t[2],n=t[3]):({className:r,onValueChange:i,...n}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=n);let o;t[4]!==i||t[5]!==n.delay||t[6]!==n.value?(o={initialValue:n.value,delay:n.delay,onChange:i},t[4]=i,t[5]=n.delay,t[6]=n.value,t[7]=o):o=t[7];let{value:s,onChange:u}=wt(o),d;t[8]===u?d=t[9]:(d=c=>u(c.target.value),t[8]=u,t[9]=d);let f;return t[10]!==r||t[11]!==n||t[12]!==a||t[13]!==d||t[14]!==s?(f=(0,F.jsx)(Le,{ref:a,className:r,...n,onChange:d,value:s}),t[10]=r,t[11]=n,t[12]=a,t[13]=d,t[14]=s,t[15]=f):f=t[15],f});Tr.displayName="DebouncedInput";const Vr=l.forwardRef((e,a)=>{let t=(0,we.c)(13),r,i,n;t[0]===e?(r=t[1],i=t[2],n=t[3]):({className:r,onValueChange:i,...n}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=n);let o;t[4]!==i||t[5]!==n.value?(o={initialValue:n.value,delay:200,onChange:i},t[4]=i,t[5]=n.value,t[6]=o):o=t[6];let{value:s,onChange:u}=wt(o),d;return t[7]!==r||t[8]!==u||t[9]!==n||t[10]!==a||t[11]!==s?(d=(0,F.jsx)(et,{ref:a,className:r,...n,onChange:u,value:s}),t[7]=r,t[8]=u,t[9]=n,t[10]=a,t[11]=s,t[12]=d):d=t[12],d});Vr.displayName="DebouncedNumberInput";const $r=l.forwardRef(({className:e,rootClassName:a,icon:t=(0,F.jsx)(Lt,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),clearable:r=!0,...i},n)=>{let o=l.useId(),s=i.id||o;return(0,F.jsxs)("div",{className:R("flex items-center border-b px-3",a),children:[t,(0,F.jsx)("input",{id:s,ref:n,className:R("placeholder:text-foreground-muted flex h-7 m-1 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...i}),r&&i.value&&(0,F.jsx)("span",{onPointerDown:u=>{var f;u.preventDefault(),u.stopPropagation();let d=document.getElementById(s);d&&d instanceof HTMLInputElement&&(d.focus(),d.value="",(f=i.onChange)==null||f.call(i,{...u,target:d,currentTarget:d,type:"change"}))},children:(0,F.jsx)(Xr,{className:"h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer"})})]})});$r.displayName="SearchInput";const kr=l.forwardRef((e,a)=>{let t=(0,we.c)(23),r,i,n;t[0]===e?(r=t[1],i=t[2],n=t[3]):({className:r,onValueChange:i,...n}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=n);let[o,s]=l.useState(n.value),u;t[4]!==o||t[5]!==i||t[6]!==n.value?(u={prop:n.value,defaultProp:o,onChange:i},t[4]=o,t[5]=i,t[6]=n.value,t[7]=u):u=t[7];let[d,f]=Jr(u),c,m;t[8]===d?(c=t[9],m=t[10]):(c=()=>{s(d||"")},m=[d],t[8]=d,t[9]=c,t[10]=m),l.useEffect(c,m);let v;t[11]===Symbol.for("react.memo_cache_sentinel")?(v=g=>s(g.target.value),t[11]=v):v=t[11];let b,p;t[12]!==o||t[13]!==f?(b=()=>f(o||""),p=g=>{g.key==="Enter"&&f(o||"")},t[12]=o,t[13]=f,t[14]=b,t[15]=p):(b=t[14],p=t[15]);let h;return t[16]!==r||t[17]!==o||t[18]!==n||t[19]!==a||t[20]!==b||t[21]!==p?(h=(0,F.jsx)(Le,{ref:a,className:r,...n,value:o,onChange:v,onBlur:b,onKeyDown:p}),t[16]=r,t[17]=o,t[18]=n,t[19]=a,t[20]=b,t[21]=p,t[22]=h):h=t[22],h});kr.displayName="OnBlurredInput";export{Ft as $,aa as A,ki as B,Ji as C,ge as D,ye as E,Jt as F,Rt as G,je as H,Xt as I,Mt as J,Ie as K,Zt as L,he as M,be as N,Q as O,_e as P,gi as Q,Gt as R,Xi as S,zi as T,At as U,Oe as V,Re as W,Z as X,K as Y,Tt as Z,Cr as _,$r as a,St as at,Wa as b,Sr as c,z as ct,Nr as d,Vt as et,ln as f,Ye as g,Xe as h,kr as i,Te as it,ta as j,Ue as k,un as l,Lt as lt,Dr as m,Vr as n,de as nt,et as o,Nt as ot,Pe as p,ke as q,Le as r,Ve as rt,Qe as s,Dt as st,Tr as t,$e as tt,Je as u,Ze as v,na as w,la as x,rn as y,qt as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as n}from"./useEvent-DlWF5OMa.js";import{r as e}from"./mode-
|
|
1
|
+
import{u as n}from"./useEvent-DlWF5OMa.js";import{r as e}from"./mode-BYulXE3t.js";const l=r=>{let{children:t}=r;return n(e)?null:t},o=r=>{let{children:t}=r;return n(e)?t:null};export{o as n,l as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as m}from"./chunk-LvLJmgfZ.js";import{t as u}from"./react-BGmjiNul.js";import{t as c}from"./compiler-runtime-DeeZ7FnK.js";import{t as b}from"./jsx-runtime-DN_bIXfG.js";import{n as w,t as x}from"./cn-C1rgT0yh.js";import{t as N}from"./dist-
|
|
1
|
+
import{s as m}from"./chunk-LvLJmgfZ.js";import{t as u}from"./react-BGmjiNul.js";import{t as c}from"./compiler-runtime-DeeZ7FnK.js";import{t as b}from"./jsx-runtime-DN_bIXfG.js";import{n as w,t as x}from"./cn-C1rgT0yh.js";import{t as N}from"./dist-DOFFh6Ii.js";var i=m(u(),1),n=m(b(),1),v="Label",d=i.forwardRef((r,s)=>(0,n.jsx)(N.label,{...r,ref:s,onMouseDown:e=>{var a;e.target.closest("button, input, select, textarea")||((a=r.onMouseDown)==null||a.call(r,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));d.displayName=v;var f=d,y=c(),D=w("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=i.forwardRef((r,s)=>{let e=(0,y.c)(9),a,o;e[0]===r?(a=e[1],o=e[2]):({className:a,...o}=r,e[0]=r,e[1]=a,e[2]=o);let t;e[3]===a?t=e[4]:(t=x(D(),a),e[3]=a,e[4]=t);let l;return e[5]!==o||e[6]!==s||e[7]!==t?(l=(0,n.jsx)(f,{ref:s,className:t,...o}),e[5]=o,e[6]=s,e[7]=t,e[8]=l):l=e[8],l});p.displayName=f.displayName;export{p as t};
|