@marimo-team/frontend 0.19.3-dev23 → 0.19.3-dev27

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.
Files changed (96) hide show
  1. package/dist/assets/{CellStatus-DLqgbVV4.js → CellStatus-DqnjakAQ.js} +1 -1
  2. package/dist/assets/{ConnectedDataExplorerComponent-KlUs_Sz3.js → ConnectedDataExplorerComponent-Co1Pcul9.js} +1 -1
  3. package/dist/assets/{ImperativeModal-q6QlC2aZ.js → ImperativeModal-B7kKs9xL.js} +1 -1
  4. package/dist/assets/{JsonOutput-B64aMW9B.js → JsonOutput-Dkt5bNmT.js} +1 -1
  5. package/dist/assets/{MarimoErrorOutput-Cva6Gfqr.js → MarimoErrorOutput-BVPr2l2P.js} +1 -1
  6. package/dist/assets/{RenderHTML-Daqo9pcD.js → RenderHTML-xCb5cqOX.js} +1 -1
  7. package/dist/assets/VisuallyHidden-B44yJgpX.js +1 -0
  8. package/dist/assets/{add-cell-with-ai-BsHIKGwv.js → add-cell-with-ai-6i4jmAOJ.js} +1 -1
  9. package/dist/assets/{add-database-form-hxk-QlNU.js → add-database-form-CNi3O1nG.js} +1 -1
  10. package/dist/assets/{agent-panel-ZJGfvLy4.js → agent-panel-C8s4K5MP.js} +1 -1
  11. package/dist/assets/{ai-model-dropdown-nzo8MLQ5.js → ai-model-dropdown-NoEabH3r.js} +1 -1
  12. package/dist/assets/{app-config-button-BeOl77GX.js → app-config-button-C-DsnVgg.js} +1 -1
  13. package/dist/assets/{cache-panel-C1So4Zu3.js → cache-panel-DrvX9LTs.js} +1 -1
  14. package/dist/assets/{cell-editor-c1P0x4Fj.js → cell-editor-BQGBM4CV.js} +1 -1
  15. package/dist/assets/{cell-link-T1P92ttw.js → cell-link-BW63-8Zi.js} +1 -1
  16. package/dist/assets/{cells-CibeVr5R.js → cells-CxLYaBUM.js} +46 -46
  17. package/dist/assets/{chat-components-CVdyP1VW.js → chat-components-B3msbsyx.js} +1 -1
  18. package/dist/assets/{chat-display-Bbzp0CzX.js → chat-display-CMpQ7Aew.js} +1 -1
  19. package/dist/assets/{chat-panel-T30-embL.js → chat-panel-CQYOM0Pr.js} +1 -1
  20. package/dist/assets/{client-CEtu-2VG.js → client-0ZjIqESP.js} +1 -1
  21. package/dist/assets/{column-preview-BlyFeHSu.js → column-preview-CJ8DoQWh.js} +1 -1
  22. package/dist/assets/{command-CyUURgqS.js → command-Bt6twrmW.js} +1 -1
  23. package/dist/assets/{command-palette-DfiEH7WH.js → command-palette-CR1vRNKO.js} +1 -1
  24. package/dist/assets/{common-eyGhVBMz.js → common-Dx7Mlsso.js} +1 -1
  25. package/dist/assets/context-DHfVoQfl.js +1 -0
  26. package/dist/assets/{datasource-D4vwmOLv.js → datasource-eALmG5dT.js} +1 -1
  27. package/dist/assets/{dependency-graph-panel-Cr-_H1bC.js → dependency-graph-panel-BtAj3Tto.js} +1 -1
  28. package/dist/assets/{documentation-panel-mdqxAzQf.js → documentation-panel-Bo90dTx7.js} +1 -1
  29. package/dist/assets/{download-Bd63S7ca.js → download-kb4f28me.js} +1 -1
  30. package/dist/assets/{edit-page-B_1t5Bc7.js → edit-page-A1vWuGPf.js} +6 -6
  31. package/dist/assets/{error-panel-zDg8AjLO.js → error-panel-CF1PQ3LW.js} +1 -1
  32. package/dist/assets/{es-BMs8n9bF.js → es-CYXJA6lG.js} +1 -1
  33. package/dist/assets/{field-DDKGFzpC.js → field-BJCREuzy.js} +1 -1
  34. package/dist/assets/{file-explorer-panel-Bvbp6xd9.js → file-explorer-panel-ilDG3HyK.js} +1 -1
  35. package/dist/assets/{floating-outline-DmKm2GKv.js → floating-outline-BY_abszS.js} +1 -1
  36. package/dist/assets/{focus-BGO2qwac.js → focus-CCFhJFiF.js} +1 -1
  37. package/dist/assets/{form-Cs-aYOue.js → form-DkIxZcIl.js} +1 -1
  38. package/dist/assets/{glide-data-editor-D_bRnWfy.js → glide-data-editor-C5tXJ5b-.js} +1 -1
  39. package/dist/assets/{globals-BkITdONE.js → globals-DLZWqwk9.js} +1 -1
  40. package/dist/assets/{home-page-CqrJtZ_6.js → home-page-DmTpdUkN.js} +1 -1
  41. package/dist/assets/{index-BAs_XOh8.js → index-CY3OpKqp.js} +22 -22
  42. package/dist/assets/input-a7Oxxo2e.js +1 -0
  43. package/dist/assets/{kiosk-mode-Ocj2e3JE.js → kiosk-mode-CGG4X99A.js} +1 -1
  44. package/dist/assets/{layout-HXw-kbRR.js → layout-CJrjJQJ1.js} +3 -3
  45. package/dist/assets/{logs-panel-C70PjyAu.js → logs-panel-BKwLaFJg.js} +1 -1
  46. package/dist/assets/{markdown-renderer-D2XRRGdl.js → markdown-renderer-CKkCwEhz.js} +1 -1
  47. package/dist/assets/{mode-j1jRJgw_.js → mode-BI49gh_2.js} +1 -1
  48. package/dist/assets/{name-cell-input-XHY7Ji2w.js → name-cell-input-B68Jbheu.js} +1 -1
  49. package/dist/assets/{outline-panel-DmehVoPZ.js → outline-panel-CvIQq0Mk.js} +1 -1
  50. package/dist/assets/{packages-panel-D8Dc0jXW.js → packages-panel-BdsNqBX8.js} +1 -1
  51. package/dist/assets/{panels-DOPj-FZ7.js → panels-DbeDZJ3j.js} +1 -1
  52. package/dist/assets/{process-output-DZorMbgK.js → process-output-BWKbFYsY.js} +1 -1
  53. package/dist/assets/{readonly-python-code-CzWlUPo8.js → readonly-python-code-Gk9Vpov-.js} +1 -1
  54. package/dist/assets/{run-page-B7UH5d5F.js → run-page-yem4JBDj.js} +1 -1
  55. package/dist/assets/{scratchpad-panel-BvjbLs06.js → scratchpad-panel-B7MOpoUC.js} +1 -1
  56. package/dist/assets/{secrets-panel-CDWmmmBS.js → secrets-panel-D21iGQ7o.js} +1 -1
  57. package/dist/assets/{session-panel-Cg2ez0A-.js → session-panel-DRKMrFQQ.js} +1 -1
  58. package/dist/assets/{snippets-panel-BCzTzB9R.js → snippets-panel-BGCrEheA.js} +1 -1
  59. package/dist/assets/{state-Eihpi8Gd.js → state-CBLi2yPn.js} +1 -1
  60. package/dist/assets/state-DMkGD84_.js +1 -0
  61. package/dist/assets/{switch-Bf7BdNuP.js → switch-CKzkriUC.js} +1 -1
  62. package/dist/assets/{textarea-BRmAhRr_.js → textarea-CfgJSv-G.js} +1 -1
  63. package/dist/assets/{tracing-1SYqHZWJ.js → tracing-D6d2O1r8.js} +1 -1
  64. package/dist/assets/{tracing-panel-Bcs0pfdJ.js → tracing-panel-DEIxVCr3.js} +2 -2
  65. package/dist/assets/{types-Dqr8wUa4.js → types-rseSmieg.js} +1 -1
  66. package/dist/assets/{useAddCell-BEZy0w8u.js → useAddCell-BjCsEEJz.js} +1 -1
  67. package/dist/assets/useBoolean-DI-eW-xX.js +1 -0
  68. package/dist/assets/{useCellActionButton-BPZZpi7i.js → useCellActionButton-uoJaRqwc.js} +1 -1
  69. package/dist/assets/{useDateFormatter-CV0QXb5P.js → useDateFormatter-DsANziQR.js} +1 -1
  70. package/dist/assets/{useDeleteCell-BIkFVvVx.js → useDeleteCell-CrEKA1bV.js} +1 -1
  71. package/dist/assets/{useDependencyPanelTab-B4L5DuIf.js → useDependencyPanelTab-CRbZ_d-v.js} +1 -1
  72. package/dist/assets/{useNotebookActions-N9jfUrVW.js → useNotebookActions-HHGcAy1p.js} +1 -1
  73. package/dist/assets/{useNumberFormatter-D8ks3oPN.js → useNumberFormatter-FoXhpyAb.js} +1 -1
  74. package/dist/assets/usePress-DTwIUo40.js +7 -0
  75. package/dist/assets/{useRunCells-d0gYuXYQ.js → useRunCells-CQiKZU8u.js} +1 -1
  76. package/dist/assets/{useSplitCell-DGmYA9dE.js → useSplitCell-CSg5yFV8.js} +1 -1
  77. package/dist/assets/{utilities.esm-Bs_5S-OE.js → utilities.esm-C3w5SJ1r.js} +1 -1
  78. package/dist/assets/{write-secret-modal-CLm48gMe.js → write-secret-modal-Bl_gDasG.js} +1 -1
  79. package/dist/index.html +40 -40
  80. package/package.json +3 -3
  81. package/src/components/app-config/__tests__/get-dirty-values.test.ts +1 -1
  82. package/src/components/app-config/user-config-form.tsx +1 -1
  83. package/src/components/editor/chrome/types.ts +2 -4
  84. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +123 -0
  85. package/src/core/codemirror/lsp/notebook-lsp.ts +44 -4
  86. package/src/core/kernel/__tests__/handlers.test.ts +2 -2
  87. package/src/core/kernel/state.ts +1 -0
  88. package/src/core/network/__tests__/requests-lazy.test.ts +1 -1
  89. package/src/core/network/requests-lazy.ts +2 -2
  90. package/src/css/globals.css +2 -0
  91. package/dist/assets/VisuallyHidden-BodIky8L.js +0 -1
  92. package/dist/assets/context-BAYdLMF_.js +0 -1
  93. package/dist/assets/input-CaEtLL8p.js +0 -1
  94. package/dist/assets/state-BxWZf58F.js +0 -1
  95. package/dist/assets/useBoolean-B-A0dyIW.js +0 -1
  96. package/dist/assets/usePress-C2LPFxyv.js +0 -7
@@ -9,6 +9,7 @@ import { invariant } from "@/utils/invariant";
9
9
  import { Logger } from "@/utils/Logger";
10
10
  import { LRUCache } from "@/utils/lru";
11
11
  import { Objects } from "@/utils/objects";
12
+ import { getPositionAtWordBounds } from "../completion/hints";
12
13
  import { topologicalCodesAtom } from "../copilot/getCodes";
13
14
  import {
14
15
  getEditorCodeAsPython,
@@ -22,6 +23,14 @@ import {
22
23
  } from "./types";
23
24
  import { getLSPDocument } from "./utils";
24
25
 
26
+ /**
27
+ * Check if a variable name is private (starts with underscore but not dunder).
28
+ * Private variables in marimo are cell-local and should not be renamed across cells.
29
+ */
30
+ function isPrivateVariable(name: string): boolean {
31
+ return name.startsWith("_") && !name.startsWith("__");
32
+ }
33
+
25
34
  class Snapshotter {
26
35
  private documentVersion = 0;
27
36
  private readonly getNotebookCode: () => {
@@ -433,15 +442,46 @@ export class NotebookLanguageServerClient implements ILanguageServerClient {
433
442
 
434
443
  // Update the code in the plugins manually
435
444
  const editors = this.getNotebookEditors();
436
- for (const [cellId, ev] of Objects.entries(editors)) {
437
- const newCode = editsToNewCode.get(cellId);
445
+
446
+ // Check if this is a private variable rename (should only affect current cell)
447
+ // Private variables in marimo are cell-local and should not be renamed across cells
448
+ const originEditor = editors[cellId];
449
+ let isPrivateRename = false;
450
+ if (originEditor) {
451
+ // Convert LSP position (line, character) to CodeMirror position
452
+ const line = originEditor.state.doc.line(params.position.line + 1);
453
+ const cmPosition = line.from + params.position.character;
454
+ const { startToken, endToken } = getPositionAtWordBounds(
455
+ originEditor.state.doc,
456
+ cmPosition,
457
+ );
458
+ const originalName = originEditor.state.doc.sliceString(
459
+ startToken,
460
+ endToken,
461
+ );
462
+ isPrivateRename = isPrivateVariable(originalName);
463
+ if (isPrivateRename) {
464
+ Logger.debug(
465
+ "[lsp] Private variable rename detected, limiting to current cell",
466
+ originalName,
467
+ );
468
+ }
469
+ }
470
+
471
+ for (const [currentCellId, ev] of Objects.entries(editors)) {
472
+ // For private variable renames, only update the originating cell
473
+ if (isPrivateRename && currentCellId !== cellId) {
474
+ continue;
475
+ }
476
+
477
+ const newCode = editsToNewCode.get(currentCellId);
438
478
  if (newCode == null) {
439
- Logger.warn("No new code for cell", cellId);
479
+ Logger.warn("No new code for cell", currentCellId);
440
480
  continue;
441
481
  }
442
482
 
443
483
  if (!ev) {
444
- Logger.warn("No view for plugin", cellId);
484
+ Logger.warn("No view for plugin", currentCellId);
445
485
  continue;
446
486
  }
447
487
 
@@ -142,8 +142,8 @@ describe("buildCellData", () => {
142
142
  cell2: "y = 2",
143
143
  },
144
144
  last_execution_time: {
145
- cell1: 1234567890,
146
- cell2: 1234567891,
145
+ cell1: 1_234_567_890,
146
+ cell2: 1_234_567_891,
147
147
  },
148
148
  app_config: {
149
149
  width: "normal",
@@ -1,3 +1,4 @@
1
+ /* Copyright 2026 Marimo. All rights reserved. */
1
2
  import { atom } from "jotai";
2
3
  import { waitFor } from "../state/jotai";
3
4
 
@@ -1,4 +1,4 @@
1
- /* Copyright 2024 Marimo. All rights reserved. */
1
+ /* Copyright 2026 Marimo. All rights reserved. */
2
2
 
3
3
  import { beforeEach, describe, expect, it, vi } from "vitest";
4
4
  import type { RuntimeManager } from "../../runtime/runtime";
@@ -1,4 +1,4 @@
1
- /* Copyright 2024 Marimo. All rights reserved. */
1
+ /* Copyright 2026 Marimo. All rights reserved. */
2
2
 
3
3
  import { NoKernelConnectedError } from "@/utils/errors";
4
4
  import { Logger } from "@/utils/Logger";
@@ -152,7 +152,7 @@ export function createLazyRequests(
152
152
  `Dropping request: ${key}, since not connected to a kernel.`,
153
153
  );
154
154
  // Silently drop the request
155
- return Promise.resolve();
155
+ return;
156
156
 
157
157
  case "throwError":
158
158
  throw new NoKernelConnectedError();
@@ -184,8 +184,10 @@
184
184
  --shadow-2xl-solid: 10px 12px 0px 0px var(--base-shadow-darker), 0 0px 8px 0px hsl(0deg 0% 90% / 50%);
185
185
 
186
186
  /* Solid shadows with lighter shade color */
187
+
187
188
  /* biome-ignore format: definition needs to be oneline or breaks variants */
188
189
  --shadow-sm-solid-shade: 2px 2px 0px 0px var(--base-shadow), 0px 0px 2px 0px hsl(0deg 0% 50% / 20%);
190
+
189
191
  /* biome-ignore format: definition needs to be oneline or breaks variants */
190
192
  --shadow-md-solid-shade: 4px 4px 0px 0px var(--base-shadow), 0 0px 2px 0px hsl(0deg 0% 60% / 50%);
191
193
  }
@@ -1 +0,0 @@
1
- import{s as be}from"./chunk-LvLJmgfZ.js";import{t as me}from"./react-BGmjiNul.js";import{L as ve,P as Ee,R as Te}from"./input-CaEtLL8p.js";import{A as w,C as ge,M as we,N as v,O as Re,b as J,c as Ce,j as S,k as X,l as ye,w as Se,z as R}from"./usePress-C2LPFxyv.js";import{t as ke}from"./context-BAYdLMF_.js";var f=be(me(),1),_e=(0,f.createContext)(null);(0,f.createContext)(null),(0,f.createContext)(null),(0,f.createContext)(null),(0,f.createContext)(null);var Le=(0,f.createContext)({}),xe=(0,f.createContext)(null);(0,f.createContext)(null);var Fe=class{get currentNode(){return this._currentNode}set currentNode(e){if(!X(this.root,e))throw Error("Cannot set currentNode to a node that is not contained by the root node.");let t=[],r=e,n=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let i=r,l=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});t.push(l),l.currentNode=n,this._currentSetFor.add(l),r=n=i.host}else r=r.parentNode;let o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(o),o.currentNode=n,this._currentSetFor.add(o),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return X(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){var t;let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let r;if(typeof this.filter=="function"?r=this.filter(e):(t=this.filter)!=null&&t.acceptNode&&(r=this.filter.acceptNode(e)),r===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){var r;let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let n=this.previousNode();return n&&(this.currentNode=n),n}else return null;return null}let t=e.previousNode();if(t){if(t.shadowRoot){let n;if(typeof this.filter=="function"?n=this.filter(t):(r=this.filter)!=null&&r.acceptNode&&(n=this.filter.acceptNode(t)),n===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let o=this.lastChild();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.previousNode();return n&&(this.currentNode=n),n}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,r,n){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=i=>{var l;if(i.nodeType===Node.ELEMENT_NODE){let s=i.shadowRoot;if(s){let u=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(i);if((l=this.filter)!=null&&l.acceptNode)return this.filter.acceptNode(i);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=n??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,r,this._acceptNode));let o=t.shadowRoot;if(o){let i=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(i)}}};function Me(e,t,r,n){return we()?new Fe(e,t,r,n):e.createTreeWalker(t,r,n)}function Ie(e,t){let r=(0,f.useRef)(!0),n=(0,f.useRef)(null);(0,f.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]),(0,f.useEffect)(()=>{let o=n.current;r.current?r.current=!1:(!o||t.some((i,l)=>!Object.is(i,o[l])))&&e(),n.current=t},t)}function x(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Pe(e,t){let r=e;for(x(r,t)&&(r=r.parentElement);r&&!x(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Ae(e,t){let r=[];for(;e&&e!==document.documentElement;)x(e,t)&&r.push(e),e=e.parentElement;return r}function We(e){return ge()?e.metaKey:e.ctrlKey}var Ke=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function He(e){return e instanceof HTMLInputElement&&!Ke.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var Oe=0,z=new Map;function De(e){let[t,r]=(0,f.useState)();return R(()=>{if(!e)return;let n=z.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${Oe++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},z.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),z.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Y(e,t){let r=Q(e,t,"left"),n=Q(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,l=e.scrollLeft,s=e.scrollTop,{borderTopWidth:u,borderLeftWidth:c,scrollPaddingTop:a,scrollPaddingRight:p,scrollPaddingBottom:d,scrollPaddingLeft:N}=getComputedStyle(e),{scrollMarginTop:m,scrollMarginRight:L,scrollMarginBottom:k,scrollMarginLeft:ce}=getComputedStyle(t),se=l+parseInt(c,10),G=s+parseInt(u,10),M=se+e.clientWidth,I=G+e.clientHeight,P=parseInt(a,10)||0,A=parseInt(d,10)||0,W=parseInt(p,10)||0,K=parseInt(N,10)||0,ae=parseInt(m,10)||0,ue=parseInt(k,10)||0,de=parseInt(L,10)||0,H=r-(parseInt(ce,10)||0),O=r+o+de,D=n-ae,j=n+i+ue,fe=l+parseInt(c,10)+K,pe=M-W,he=s+parseInt(u,10)+P,Ne=I-A;(H>fe||O<pe)&&(H<=l+K?l=H-parseInt(c,10)-K:O>M-W&&(l+=O-M+W)),(D>he||j<Ne)&&(D<=G+P?s=D-parseInt(u,10)-P:j>I-A&&(s+=j-I+A)),e.scrollTo({left:l,top:s})}function Q(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function je(e,t){if(e&&document.contains(e)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow!=="hidden"&&!J()){var r;let{left:s,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)==null||r.call(e,{block:"nearest"});let{left:c,top:a}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-a)>1){var n,o,i;t==null||(o=t.containingElement)==null||(n=o.scrollIntoView)==null||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)==null||i.call(e,{block:"nearest"})}}else{let s=Ae(e);for(let u of s)Y(u,e)}}}var B=new Map;function ze(e){let{locale:t}=ke(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(B.has(r))return B.get(r);let n=new Intl.Collator(t,e);return B.set(r,n),n}var Z=f.createContext(null),q="react-aria-focus-scope-restore",h=null;function Be(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=(0,f.useRef)(null),l=(0,f.useRef)(null),s=(0,f.useRef)([]),{parentNode:u}=(0,f.useContext)(Z)||{},c=(0,f.useMemo)(()=>new $({scopeRef:s}),[s]);R(()=>{let d=u||b.root;if(b.getTreeNode(d.scopeRef)&&h&&!F(h,d.scopeRef)){let N=b.getTreeNode(h);N&&(d=N)}d.addChild(c),b.addNode(c)},[c,u]),R(()=>{let d=b.getTreeNode(s);d&&(d.contain=!!r)},[r]),R(()=>{var L;let d=(L=i.current)==null?void 0:L.nextSibling,N=[],m=k=>k.stopPropagation();for(;d&&d!==l.current;)N.push(d),d.addEventListener(q,m),d=d.nextSibling;return s.current=N,()=>{for(let k of N)k.removeEventListener(q,m)}},[t]),Je(s,n,r),Ve(s,r),Xe(s,n,r),Ge(s,o),(0,f.useEffect)(()=>{let d=w(v(s.current?s.current[0]:void 0)),N=null;if(g(d,s.current)){for(let m of b.traverse())m.scopeRef&&g(d,m.scopeRef.current)&&(N=m);N===b.getTreeNode(s)&&(h=N.scopeRef)}},[s]),R(()=>()=>{var N,m;let d=((m=(N=b.getTreeNode(s))==null?void 0:N.parent)==null?void 0:m.scopeRef)??null;(s===h||F(s,h))&&(!d||b.getTreeNode(d))&&(h=d),b.removeTreeNode(s)},[s]);let a=(0,f.useMemo)(()=>qe(s),[]),p=(0,f.useMemo)(()=>({focusManager:a,parentNode:c}),[c,a]);return f.createElement(Z.Provider,{value:p},f.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,f.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function qe(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:l}=t,s=n||w(v(r[0]??void 0)),u=r[0].previousElementSibling,c=T(y(r),{tabbable:o,accept:l},r);c.currentNode=g(s,r)?s:u;let a=c.nextNode();return!a&&i&&(c.currentNode=u,a=c.nextNode()),a&&E(a,!0),a},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:l}=t,s=n||w(v(r[0]??void 0)),u=r[r.length-1].nextElementSibling,c=T(y(r),{tabbable:o,accept:l},r);c.currentNode=g(s,r)?s:u;let a=c.previousNode();return!a&&i&&(c.currentNode=u,a=c.previousNode()),a&&E(a,!0),a},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=T(y(r),{tabbable:n,accept:o},r);i.currentNode=r[0].previousElementSibling;let l=i.nextNode();return l&&E(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=T(y(r),{tabbable:n,accept:o},r);i.currentNode=r[r.length-1].nextElementSibling;let l=i.previousNode();return l&&E(l,!0),l}}}function y(e){return e[0].parentElement}function _(e){let t=b.getTreeNode(h);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Ue(e){var r,n;if(e.checked)return!0;let t=[];return t=e.form?[...((n=(r=e.form)==null?void 0:r.elements)==null?void 0:n.namedItem(e.name))??[]]:[...v(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(o=>!o.form),t?!t.some(o=>o.checked):!1}function Ve(e,t){let r=(0,f.useRef)(void 0),n=(0,f.useRef)(void 0);R(()=>{let o=e.current;if(!t){n.current&&(n.current=(cancelAnimationFrame(n.current),void 0));return}let i=v(o?o[0]:void 0),l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!_(e)||c.isComposing)return;let a=w(i),p=e.current;if(!p||!g(a,p))return;let d=T(y(p),{tabbable:!0},p);if(!a)return;d.currentNode=a;let N=c.shiftKey?d.previousNode():d.nextNode();N||(N=(d.currentNode=c.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,c.shiftKey?d.previousNode():d.nextNode())),c.preventDefault(),N&&E(N,!0)},s=c=>{(!h||F(h,e))&&g(S(c),e.current)?(h=e,r.current=S(c)):_(e)&&!C(S(c),e)?r.current?r.current.focus():h&&h.current&&U(h.current):_(e)&&(r.current=S(c))},u=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let a=Te(),p=(a==="virtual"||a===null)&&Se()&&J(),d=w(i);if(!p&&d&&_(e)&&!C(d,e)){h=e;let m=S(c);if(m&&m.isConnected){var N;r.current=m,(N=r.current)==null||N.focus()}else h.current&&U(h.current)}})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(c=>c.addEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",u,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",u,!1))}},[e,t]),R(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function ee(e){return C(e)}function g(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function C(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of b.traverse(b.getTreeNode(t)))if(r&&g(e,r.current))return!0;return!1}function $e(e){return C(e,h)}function F(e,t){var n;let r=(n=b.getTreeNode(t))==null?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function E(e,t=!1){if(e!=null&&!t)try{ve(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function te(e,t=!0){let r=e[0].previousElementSibling,n=y(e),o=T(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=y(e),o=T(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function U(e,t=!0){E(te(e,t))}function Ge(e,t){let r=f.useRef(t);(0,f.useEffect)(()=>{r.current&&(h=e,!g(w(v(e.current?e.current[0]:void 0)),h.current)&&e.current&&U(e.current)),r.current=!1},[e])}function Je(e,t,r){R(()=>{if(t||r)return;let n=e.current,o=v(n?n[0]:void 0),i=l=>{let s=S(l);g(s,e.current)?h=e:ee(s)||(h=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,t,r])}function re(e){let t=b.getTreeNode(h);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Xe(e,t,r){let n=(0,f.useRef)(typeof document<"u"?w(v(e.current?e.current[0]:void 0)):null);R(()=>{let o=e.current,i=v(o?o[0]:void 0);if(!t||r)return;let l=()=>{(!h||F(h,e))&&g(w(i),e.current)&&(h=e)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",l,!1))}},[e,r]),R(()=>{let o=v(e.current?e.current[0]:void 0);if(!t)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!_(e)||l.isComposing)return;let s=o.activeElement;if(!C(s,e)||!re(e))return;let u=b.getTreeNode(e);if(!u)return;let c=u.nodeToRestore,a=T(o.body,{tabbable:!0});a.currentNode=s;let p=l.shiftKey?a.previousNode():a.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,u.nodeToRestore=void 0),(!p||!C(p,e))&&c){a.currentNode=c;do p=l.shiftKey?a.previousNode():a.nextNode();while(C(p,e));l.preventDefault(),l.stopPropagation(),p?E(p,!0):ee(c)?E(c,!0):s.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),R(()=>{let o=v(e.current?e.current[0]:void 0);if(!t)return;let i=b.getTreeNode(e);if(i)return i.nodeToRestore=n.current??void 0,()=>{let l=b.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,u=w(o);if(t&&s&&(u&&C(u,e)||u===o.body&&re(e))){let c=b.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let a=c.getTreeNode(e);for(;a;){if(a.nodeToRestore&&a.nodeToRestore.isConnected){ne(a.nodeToRestore);return}a=a.parent}for(a=c.getTreeNode(e);a;){if(a.scopeRef&&a.scopeRef.current&&b.getTreeNode(a.scopeRef)){ne(te(a.scopeRef.current,!0));return}a=a.parent}}})}}},[e,t])}function ne(e){e.dispatchEvent(new CustomEvent(q,{bubbles:!0,cancelable:!0}))&&E(e)}function T(e,t,r){let n=t!=null&&t.tabbable?ye:Ce,o=v((e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null),i=Me(o,e||o,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var s;return t!=null&&((s=t.from)!=null&&s.contains(l))||t!=null&&t.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!Ue(l)||i.currentNode.tagName==="INPUT"&&i.currentNode.type==="radio"&&i.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||g(l,r))&&(!(t!=null&&t.accept)||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Ye(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:l=t.wrap,accept:s=t.accept}=r,u=o||w(v(n)),c=T(n,{tabbable:i,accept:s});n.contains(u)&&(c.currentNode=u);let a=c.nextNode();return!a&&l&&(c.currentNode=n,a=c.nextNode()),a&&E(a,!0),a},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:l=t.wrap,accept:s=t.accept}=r,u=o||w(v(n)),c=T(n,{tabbable:i,accept:s});if(n.contains(u))c.currentNode=u;else{let p=V(c);return p&&E(p,!0),p??null}let a=c.previousNode();if(!a&&l){c.currentNode=n;let p=V(c);if(!p)return null;a=p}return a&&E(a,!0),a??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,l=T(n,{tabbable:o,accept:i}).nextNode();return l&&E(l,!0),l},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,l=V(T(n,{tabbable:o,accept:i}));return l&&E(l,!0),l??null}}}function V(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}var Qe=class le{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new $({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&g(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var r;let t=new le;for(let n of this.traverse())t.addTreeNode(n.scopeRef,((r=n.parent)==null?void 0:r.scopeRef)??null,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new $({scopeRef:null}),this.fastMap.set(null,this.root)}},$=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},b=new Qe,oe={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function ie(e={}){let{style:t,isFocusable:r}=e,[n,o]=(0,f.useState)(!1),{focusWithinProps:i}=Ee({isDisabled:!r,onFocusWithinChange:s=>o(s)}),l=(0,f.useMemo)(()=>n?t:t?{...oe,...t}:oe,[n]);return{visuallyHiddenProps:{...i,style:l}}}function Ze(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:l}=ie(e);return f.createElement(r,Re(i,l),t)}export{xe as _,T as a,Y as c,We as d,He as f,_e as g,Ie as h,Be as i,je as l,x as m,ie as n,Ye as o,Pe as p,$e as r,ze as s,Ze as t,De as u,Le as v};
@@ -1 +0,0 @@
1
- import{s}from"./chunk-LvLJmgfZ.js";import{t as m}from"./react-BGmjiNul.js";import{t as g}from"./SSRProvider-DD7JA3RM.js";var p=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),v=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function c(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),o=typeof t.getTextInfo=="function"?t.getTextInfo():t.textInfo;if(o)return o.direction==="rtl";if(t.script)return p.has(t.script)}let n=e.split("-")[0];return v.has(n)}var r=s(m(),1),h=Symbol.for("react-aria.i18n.locale");function u(){let e=typeof window<"u"&&window[h]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:c(e)?"rtl":"ltr"}}var l=u(),a=new Set;function f(){l=u();for(let e of a)e(l)}function d(){let e=g(),[n,t]=(0,r.useState)(l);return(0,r.useEffect)(()=>(a.size===0&&window.addEventListener("languagechange",f),a.add(t),()=>{a.delete(t),a.size===0&&window.removeEventListener("languagechange",f)}),[]),e?{locale:"en-US",direction:"ltr"}:n}var i=r.createContext(null);function w(e){let{locale:n,children:t}=e,o=r.useMemo(()=>({locale:n,direction:c(n)?"rtl":"ltr"}),[n]);return r.createElement(i.Provider,{value:o},t)}function S(e){let{children:n}=e,t=d();return r.createElement(i.Provider,{value:t},n)}function b(e){let{locale:n,children:t}=e;return n?r.createElement(w,{locale:n,children:t}):r.createElement(S,{children:t})}function x(){let e=d();return(0,r.useContext)(i)||e}export{b as n,x as t};
@@ -1 +0,0 @@
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};