@librechat/client 0.1.3 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/index.es.js +8 -28
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.js +8 -28
  4. package/dist/index.js.map +1 -1
  5. package/dist/types/common/menus.d.ts +0 -1
  6. package/dist/types/common/menus.d.ts.map +1 -1
  7. package/dist/types/common/types.d.ts +0 -1
  8. package/dist/types/common/types.d.ts.map +1 -1
  9. package/dist/types/components/Accordion.d.ts +4 -4
  10. package/dist/types/components/Accordion.d.ts.map +1 -1
  11. package/dist/types/components/AlertDialog.d.ts +7 -7
  12. package/dist/types/components/AlertDialog.d.ts.map +1 -1
  13. package/dist/types/components/AnimatedSearchInput.d.ts +2 -2
  14. package/dist/types/components/AnimatedSearchInput.d.ts.map +1 -1
  15. package/dist/types/components/AnimatedTabs.d.ts +0 -1
  16. package/dist/types/components/AnimatedTabs.d.ts.map +1 -1
  17. package/dist/types/components/Breadcrumb.d.ts +3 -3
  18. package/dist/types/components/Breadcrumb.d.ts.map +1 -1
  19. package/dist/types/components/Checkbox.d.ts +1 -1
  20. package/dist/types/components/Checkbox.d.ts.map +1 -1
  21. package/dist/types/components/CheckboxButton.d.ts +6 -6
  22. package/dist/types/components/CheckboxButton.d.ts.map +1 -1
  23. package/dist/types/components/Collapsible.d.ts +0 -1
  24. package/dist/types/components/Collapsible.d.ts.map +1 -1
  25. package/dist/types/components/Combobox.d.ts +0 -1
  26. package/dist/types/components/Combobox.d.ts.map +1 -1
  27. package/dist/types/components/ControlCombobox.d.ts +0 -1
  28. package/dist/types/components/ControlCombobox.d.ts.map +1 -1
  29. package/dist/types/components/DataTableColumnHeader.d.ts +0 -1
  30. package/dist/types/components/DataTableColumnHeader.d.ts.map +1 -1
  31. package/dist/types/components/DelayedRender.d.ts.map +1 -1
  32. package/dist/types/components/Dialog.d.ts +8 -8
  33. package/dist/types/components/Dialog.d.ts.map +1 -1
  34. package/dist/types/components/DropdownMenu.d.ts +17 -17
  35. package/dist/types/components/DropdownMenu.d.ts.map +1 -1
  36. package/dist/types/components/DropdownPopup.d.ts +1 -1
  37. package/dist/types/components/DropdownPopup.d.ts.map +1 -1
  38. package/dist/types/components/HoverCard.d.ts +5 -5
  39. package/dist/types/components/HoverCard.d.ts.map +1 -1
  40. package/dist/types/components/InputOTP.d.ts +20 -20
  41. package/dist/types/components/InputOTP.d.ts.map +1 -1
  42. package/dist/types/components/InputWithDropDown.d.ts +1 -1
  43. package/dist/types/components/InputWithDropDown.d.ts.map +1 -1
  44. package/dist/types/components/Label.d.ts +2 -2
  45. package/dist/types/components/Label.d.ts.map +1 -1
  46. package/dist/types/components/MultiSearch.d.ts.map +1 -1
  47. package/dist/types/components/MultiSelect.d.ts.map +1 -1
  48. package/dist/types/components/OGDialogTemplate.d.ts.map +1 -1
  49. package/dist/types/components/OriginalDialog.d.ts +10 -10
  50. package/dist/types/components/OriginalDialog.d.ts.map +1 -1
  51. package/dist/types/components/Pagination.d.ts +2 -2
  52. package/dist/types/components/Pagination.d.ts.map +1 -1
  53. package/dist/types/components/PixelCard.d.ts.map +1 -1
  54. package/dist/types/components/Progress.d.ts +1 -1
  55. package/dist/types/components/Progress.d.ts.map +1 -1
  56. package/dist/types/components/QuestionMark.d.ts.map +1 -1
  57. package/dist/types/components/Resizable.d.ts +12 -44
  58. package/dist/types/components/Resizable.d.ts.map +1 -1
  59. package/dist/types/components/Select.d.ts +10 -10
  60. package/dist/types/components/Select.d.ts.map +1 -1
  61. package/dist/types/components/SelectDropDown.d.ts.map +1 -1
  62. package/dist/types/components/Separator.d.ts +2 -2
  63. package/dist/types/components/Separator.d.ts.map +1 -1
  64. package/dist/types/components/Skeleton.d.ts +0 -1
  65. package/dist/types/components/Skeleton.d.ts.map +1 -1
  66. package/dist/types/components/Slider.d.ts +3 -3
  67. package/dist/types/components/Slider.d.ts.map +1 -1
  68. package/dist/types/components/SplitText.d.ts +0 -1
  69. package/dist/types/components/SplitText.d.ts.map +1 -1
  70. package/dist/types/components/Switch.d.ts +1 -1
  71. package/dist/types/components/Switch.d.ts.map +1 -1
  72. package/dist/types/components/Tabs.d.ts +4 -4
  73. package/dist/types/components/Tabs.d.ts.map +1 -1
  74. package/dist/types/components/Tag.d.ts +4 -4
  75. package/dist/types/components/Tag.d.ts.map +1 -1
  76. package/dist/types/components/TextareaAutosize.d.ts +0 -1
  77. package/dist/types/components/TextareaAutosize.d.ts.map +1 -1
  78. package/dist/types/components/ThemeSelector.d.ts +1 -1
  79. package/dist/types/components/ThemeSelector.d.ts.map +1 -1
  80. package/dist/types/components/Tooltip.d.ts +0 -1
  81. package/dist/types/components/Tooltip.d.ts.map +1 -1
  82. package/dist/types/components/index.d.ts +0 -2
  83. package/dist/types/components/index.d.ts.map +1 -1
  84. package/dist/types/hooks/ThemeContext.d.ts +1 -1
  85. package/dist/types/hooks/ThemeContext.d.ts.map +1 -1
  86. package/dist/types/hooks/useCombobox.d.ts +0 -1
  87. package/dist/types/hooks/useCombobox.d.ts.map +1 -1
  88. package/dist/types/hooks/useDelayedRender.d.ts.map +1 -1
  89. package/dist/types/hooks/useLocalize.d.ts.map +1 -1
  90. package/dist/types/locales/i18n.d.ts +1 -20650
  91. package/dist/types/locales/i18n.d.ts.map +1 -1
  92. package/dist/types/utils/theme.d.ts.map +1 -1
  93. package/dist/types/utils/utils.d.ts.map +1 -1
  94. package/package.json +18 -18
  95. package/dist/types/components/ModelParameters.d.ts +0 -16
  96. package/dist/types/components/ModelParameters.d.ts.map +0 -1
  97. package/dist/types/components/Prompt.d.ts +0 -5
  98. package/dist/types/components/Prompt.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,60 +1,40 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("react-dom"),r=require("jotai"),o=require("react-i18next");function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(t),s=i(n);function l(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}function u(e,n=[]){let r=[];const o=()=>{const n=r.map((e=>t.createContext(e)));return function(r){const o=(null==r?void 0:r[e])||n;return t.useMemo((()=>({[`__scope${e}`]:{...r,[e]:o}})),[r,o])}};return o.scopeName=e,[function(n,o){const i=t.createContext(o),a=r.length;function s(n){const{scope:r,children:o,...s}=n,l=(null==r?void 0:r[e][a])||i,c=t.useMemo((()=>s),Object.values(s));return t.createElement(l.Provider,{value:c},o)}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const l=(null==s?void 0:s[e][a])||i,c=t.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},d(o,...n)]}function d(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=r.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return t.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}function f(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function p(...e){return t.useCallback(f(...e),e)}l('*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgba(59, 130, 246, 0.5);\n --tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);\n --tw-ring-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow-colored: 0 0 rgba(0,0,0,0);\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgba(59, 130, 246, 0.5);\n --tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);\n --tw-ring-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow-colored: 0 0 rgba(0,0,0,0);\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e3e3e3; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type=\'button\']),\ninput:where([type=\'reset\']),\ninput:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #999696; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #999696; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden]:where(:not([hidden="until-found"])) {\n display: none;\n}\n.container {\n width: 100%;\n}\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.pointer-events-auto {\n pointer-events: auto;\n}\n.visible {\n visibility: visible;\n}\n.invisible {\n visibility: hidden;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.sticky {\n position: sticky;\n}\n.-inset-8 {\n top: -2rem;\n right: -2rem;\n bottom: -2rem;\n left: -2rem;\n}\n.inset-0 {\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n}\n.inset-y-0 {\n top: 0px;\n bottom: 0px;\n}\n.-right-1 {\n right: -0.25rem;\n}\n.-top-1 {\n top: -0.25rem;\n}\n.bottom-0 {\n bottom: 0px;\n}\n.bottom-full {\n bottom: 100%;\n}\n.left-0 {\n left: 0px;\n}\n.left-1\\/2 {\n left: 50%;\n}\n.left-2 {\n left: 0.5rem;\n}\n.left-3 {\n left: 0.75rem;\n}\n.left-\\[50\\%\\] {\n left: 50%;\n}\n.right-0 {\n right: 0px;\n}\n.right-2 {\n right: 0.5rem;\n}\n.right-3 {\n right: 0.75rem;\n}\n.right-4 {\n right: 1rem;\n}\n.right-6 {\n right: 1.5rem;\n}\n.top-0 {\n top: 0px;\n}\n.top-1\\/2 {\n top: 50%;\n}\n.top-4 {\n top: 1rem;\n}\n.top-\\[1\\.6rem\\] {\n top: 1.6rem;\n}\n.top-\\[50\\%\\] {\n top: 50%;\n}\n.top-full {\n top: 100%;\n}\n.isolate {\n isolation: isolate;\n}\n.-z-10 {\n z-index: -10;\n}\n.-z-20 {\n z-index: -20;\n}\n.z-10 {\n z-index: 10;\n}\n.z-20 {\n z-index: 20;\n}\n.z-50 {\n z-index: 50;\n}\n.z-\\[1001\\] {\n z-index: 1001;\n}\n.z-\\[999\\] {\n z-index: 999;\n}\n.m-1 {\n margin: 0.25rem;\n}\n.m-4 {\n margin: 1rem;\n}\n.m-\\[1\\.5px\\] {\n margin: 1.5px;\n}\n.m-auto {\n margin: auto;\n}\n.-mx-1 {\n margin-left: -0.25rem;\n margin-right: -0.25rem;\n}\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n.my-1 {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n}\n.-ml-3 {\n margin-left: -0.75rem;\n}\n.mb-1 {\n margin-bottom: 0.25rem;\n}\n.mb-2 {\n margin-bottom: 0.5rem;\n}\n.mb-3 {\n margin-bottom: 0.75rem;\n}\n.mb-5 {\n margin-bottom: 1.25rem;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.ml-2 {\n margin-left: 0.5rem;\n}\n.ml-4 {\n margin-left: 1rem;\n}\n.ml-auto {\n margin-left: auto;\n}\n.mr-1 {\n margin-right: 0.25rem;\n}\n.mr-2 {\n margin-right: 0.5rem;\n}\n.mr-8 {\n margin-right: 2rem;\n}\n.mr-auto {\n margin-right: auto;\n}\n.mt-1 {\n margin-top: 0.25rem;\n}\n.mt-2 {\n margin-top: 0.5rem;\n}\n.mt-3 {\n margin-top: 0.75rem;\n}\n.mt-4 {\n margin-top: 1rem;\n}\n.block {\n display: block;\n}\n.inline-block {\n display: inline-block;\n}\n.inline {\n display: inline;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.\\!table {\n display: table !important;\n}\n.table {\n display: table;\n}\n.grid {\n display: grid;\n}\n.contents {\n display: contents;\n}\n.hidden {\n display: none;\n}\n.size-10 {\n width: 2.5rem;\n height: 2.5rem;\n}\n.size-3\\.5 {\n width: 0.875rem;\n height: 0.875rem;\n}\n.size-4 {\n width: 1rem;\n height: 1rem;\n}\n.size-9 {\n width: 2.25rem;\n height: 2.25rem;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-11 {\n height: 2.75rem;\n}\n.h-12 {\n height: 3rem;\n}\n.h-2 {\n height: 0.5rem;\n}\n.h-2\\.5 {\n height: 0.625rem;\n}\n.h-2\\/3 {\n height: 66.666667%;\n}\n.h-20 {\n height: 5rem;\n}\n.h-3 {\n height: 0.75rem;\n}\n.h-3\\.5 {\n height: 0.875rem;\n}\n.h-4 {\n height: 1rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-8 {\n height: 2rem;\n}\n.h-9 {\n height: 2.25rem;\n}\n.h-\\[1px\\] {\n height: 1px;\n}\n.h-\\[42px\\] {\n height: 42px;\n}\n.h-\\[calc\\(100vh-20rem\\)\\] {\n height: calc(100vh - 20rem);\n}\n.h-\\[var\\(--radix-select-trigger-height\\)\\] {\n height: var(--radix-select-trigger-height);\n}\n.h-auto {\n height: auto;\n}\n.h-full {\n height: 100%;\n}\n.h-px {\n height: 1px;\n}\n.max-h-10 {\n max-height: 2.5rem;\n}\n.max-h-5 {\n max-height: 1.25rem;\n}\n.max-h-60 {\n max-height: 15rem;\n}\n.max-h-8 {\n max-height: 2rem;\n}\n.max-h-96 {\n max-height: 24rem;\n}\n.max-h-\\[300px\\] {\n max-height: 300px;\n}\n.max-h-\\[52vh\\] {\n max-height: 52vh;\n}\n.max-h-\\[80vh\\] {\n max-height: 80vh;\n}\n.w-0 {\n width: 0px;\n}\n.w-10 {\n width: 2.5rem;\n}\n.w-11 {\n width: 2.75rem;\n}\n.w-11\\/12 {\n width: 91.666667%;\n}\n.w-2 {\n width: 0.5rem;\n}\n.w-2\\.5 {\n width: 0.625rem;\n}\n.w-2\\/3 {\n width: 66.666667%;\n}\n.w-3 {\n width: 0.75rem;\n}\n.w-3\\.5 {\n width: 0.875rem;\n}\n.w-4 {\n width: 1rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-64 {\n width: 16rem;\n}\n.w-9 {\n width: 2.25rem;\n}\n.w-\\[1px\\] {\n width: 1px;\n}\n.w-\\[30px\\] {\n width: 30px;\n}\n.w-auto {\n width: auto;\n}\n.w-fit {\n width: -moz-fit-content;\n width: fit-content;\n}\n.w-full {\n width: 100%;\n}\n.w-px {\n width: 1px;\n}\n.min-w-0 {\n min-width: 0px;\n}\n.min-w-\\[100px\\] {\n min-width: 100px;\n}\n.min-w-\\[300px\\] {\n min-width: 300px;\n}\n.min-w-\\[40px\\] {\n min-width: 40px;\n}\n.min-w-\\[8rem\\] {\n min-width: 8rem;\n}\n.min-w-\\[var\\(--radix-select-trigger-width\\)\\] {\n min-width: var(--radix-select-trigger-width);\n}\n.max-w-0 {\n max-width: 0px;\n}\n.max-w-full {\n max-width: 100%;\n}\n.max-w-lg {\n max-width: 32rem;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n.shrink-0 {\n flex-shrink: 0;\n}\n.flex-grow {\n flex-grow: 1;\n}\n.flex-grow-0 {\n flex-grow: 0;\n}\n.grow {\n flex-grow: 1;\n}\n.table-fixed {\n table-layout: fixed;\n}\n.caption-bottom {\n caption-side: bottom;\n}\n.border-separate {\n border-collapse: separate;\n}\n.border-spacing-0 {\n --tw-border-spacing-x: 0px;\n --tw-border-spacing-y: 0px;\n border-spacing: 0px 0px;\n border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);\n}\n.origin-\\[--radix-hover-card-content-transform-origin\\] {\n transform-origin: var(--radix-hover-card-content-transform-origin);\n}\n.-translate-x-1\\/2 {\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-x-\\[-50\\%\\] {\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-y-\\[-50\\%\\] {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-rotate-180 {\n --tw-rotate: -180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(-180deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.rotate-0 {\n --tw-rotate: 0deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(0deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-0 {\n --tw-scale-x: 0;\n --tw-scale-y: 0;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(0) scaleY(0);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1) scaleY(1);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-105 {\n --tw-scale-x: 1.05;\n --tw-scale-y: 1.05;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes ping {\n\n 75%, 100% {\n transform: scale(2);\n opacity: 0;\n }\n}\n.animate-ping {\n animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;\n}\n@keyframes pulse {\n\n 50% {\n opacity: .5;\n }\n}\n.animate-pulse {\n animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n.cursor-default {\n cursor: default;\n}\n.cursor-move {\n cursor: move;\n}\n.cursor-not-allowed {\n cursor: not-allowed;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.touch-none {\n touch-action: none;\n}\n.select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.resize-none {\n resize: none;\n}\n.scroll-m-1 {\n scroll-margin: 0.25rem;\n}\n.appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.flex-row {\n flex-direction: row;\n}\n.flex-col {\n flex-direction: column;\n}\n.flex-col-reverse {\n flex-direction: column-reverse;\n}\n.flex-wrap {\n flex-wrap: wrap;\n}\n.place-items-center {\n align-items: center;\n justify-items: center;\n place-items: center;\n}\n.items-start {\n align-items: flex-start;\n}\n.items-end {\n align-items: flex-end;\n}\n.items-center {\n align-items: center;\n}\n.justify-start {\n justify-content: flex-start;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-1 {\n gap: 0.25rem;\n}\n.gap-1\\.5 {\n gap: 0.375rem;\n}\n.gap-2 {\n gap: 0.5rem;\n}\n.gap-3 {\n gap: 0.75rem;\n}\n.gap-4 {\n gap: 1rem;\n}\n.space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * 0);\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * (1 - 0));\n margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));\n margin-left: calc(0.5rem * calc(1 - 0));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.space-y-1\\.5 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.375rem * (1 - 0));\n margin-top: calc(0.375rem * (1 - var(--tw-space-y-reverse)));\n margin-top: calc(0.375rem * calc(1 - 0));\n margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.375rem * 0);\n margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));\n}\n.space-y-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.5rem * (1 - 0));\n margin-top: calc(0.5rem * (1 - var(--tw-space-y-reverse)));\n margin-top: calc(0.5rem * calc(1 - 0));\n margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.5rem * 0);\n margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-x-auto {\n overflow-x: auto;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.overflow-y-hidden {\n overflow-y: hidden;\n}\n.overscroll-contain {\n overscroll-behavior: contain;\n}\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.text-ellipsis {\n text-overflow: ellipsis;\n}\n.whitespace-nowrap {\n white-space: nowrap;\n}\n.whitespace-pre-wrap {\n white-space: pre-wrap;\n}\n.break-words {\n word-wrap: break-word;\n}\n.break-all {\n word-break: break-all;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.rounded-2xl {\n border-radius: 1rem;\n}\n.rounded-3xl {\n border-radius: 1.5rem;\n}\n.rounded-\\[0\\.185rem\\] {\n border-radius: 0.185rem;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n border-radius: var(--radius);\n}\n.rounded-md {\n border-radius: calc(0.5rem - 2px);\n border-radius: calc(var(--radius) - 2px);\n}\n.rounded-sm {\n border-radius: calc(0.5rem - 4px);\n border-radius: calc(var(--radius) - 4px);\n}\n.rounded-xl {\n border-radius: 0.75rem;\n}\n.rounded-b-lg {\n border-bottom-right-radius: 0.5rem;\n border-bottom-right-radius: var(--radius);\n border-bottom-left-radius: 0.5rem;\n border-bottom-left-radius: var(--radius);\n}\n.border {\n border-width: 1px;\n}\n.border-2 {\n border-width: 2px;\n}\n.border-y {\n border-top-width: 1px;\n border-bottom-width: 1px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-r {\n border-right-width: 1px;\n}\n.border-t {\n border-top-width: 1px;\n}\n.border-none {\n border-style: none;\n}\n.border-black\\/10 {\n border-color: rgba(0, 0, 0, 0.1);\n}\n.border-border-heavy {\n border-color: #999696;\n border-color: var(--border-heavy);\n}\n.border-border-light {\n border-color: #e3e3e3;\n border-color: var(--border-light);\n}\n.border-border-medium {\n border-color: #cdcdcd;\n border-color: var(--border-medium);\n}\n.border-gray-100 {\n --tw-border-opacity: 1;\n border-color: rgba(236, 236, 236, 1);\n border-color: rgba(236, 236, 236, var(--tw-border-opacity, 1));\n}\n.border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgba(227, 227, 227, 1);\n border-color: rgba(227, 227, 227, var(--tw-border-opacity, 1));\n}\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgba(205, 205, 205, 1);\n border-color: rgba(205, 205, 205, var(--tw-border-opacity, 1));\n}\n.border-gray-50 {\n --tw-border-opacity: 1;\n border-color: rgba(247, 247, 248, 1);\n border-color: rgba(247, 247, 248, var(--tw-border-opacity, 1));\n}\n.border-gray-500 {\n --tw-border-opacity: 1;\n border-color: rgba(89, 89, 89, 1);\n border-color: rgba(89, 89, 89, var(--tw-border-opacity, 1));\n}\n.border-green-500 {\n --tw-border-opacity: 1;\n border-color: rgba(16, 163, 127, 1);\n border-color: rgba(16, 163, 127, var(--tw-border-opacity, 1));\n}\n.border-green-600 {\n --tw-border-opacity: 1;\n border-color: rgba(18, 110, 107, 1);\n border-color: rgba(18, 110, 107, var(--tw-border-opacity, 1));\n}\n.border-input {\n border-color: hsl(0, 0%, 89.8%);\n border-color: hsl(var(--input));\n}\n.border-orange-500 {\n --tw-border-opacity: 1;\n border-color: rgba(249, 115, 22, 1);\n border-color: rgba(249, 115, 22, var(--tw-border-opacity, 1));\n}\n.border-primary {\n border-color: hsl(0, 0%, 9%);\n border-color: hsl(var(--primary));\n}\n.border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgba(239, 68, 68, 1);\n border-color: rgba(239, 68, 68, var(--tw-border-opacity, 1));\n}\n.border-transparent {\n border-color: transparent;\n}\n.bg-background {\n background-color: hsl(0, 0%, 100%);\n background-color: hsl(var(--background));\n}\n.bg-black\\/80 {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(59, 130, 246, 1);\n background-color: rgba(59, 130, 246, var(--tw-bg-opacity, 1));\n}\n.bg-blue-500\\/60 {\n background-color: rgba(59, 130, 246, 0.6);\n}\n.bg-border {\n background-color: hsl(0, 0%, 89.8%);\n background-color: hsl(var(--border));\n}\n.bg-border-light {\n background-color: #e3e3e3;\n background-color: var(--border-light);\n}\n.bg-border-medium {\n background-color: #cdcdcd;\n background-color: var(--border-medium);\n}\n.bg-foreground {\n background-color: hsl(0, 0%, 3.9%);\n background-color: hsl(var(--foreground));\n}\n.bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgba(247, 247, 248, 1);\n background-color: rgba(247, 247, 248, var(--tw-bg-opacity, 1));\n}\n.bg-gray-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(89, 89, 89, 1);\n background-color: rgba(89, 89, 89, var(--tw-bg-opacity, 1));\n}\n.bg-gray-500\\/90 {\n background-color: rgba(89, 89, 89, 0.9);\n}\n.bg-gray-600\\/65 {\n background-color: rgba(66, 66, 66, 0.65);\n}\n.bg-gray-800 {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.bg-green-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(16, 163, 127, 1);\n background-color: rgba(16, 163, 127, var(--tw-bg-opacity, 1));\n}\n.bg-green-600\\/20 {\n background-color: rgba(18, 110, 107, 0.2);\n}\n.bg-green-600\\/50 {\n background-color: rgba(18, 110, 107, 0.5);\n}\n.bg-muted {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--muted));\n}\n.bg-muted\\/50 {\n background-color: hsla(0, 0%, 96.1%, 0.5);\n background-color: hsl(var(--muted) / 0.5);\n}\n.bg-orange-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(249, 115, 22, 1);\n background-color: rgba(249, 115, 22, var(--tw-bg-opacity, 1));\n}\n.bg-primary {\n background-color: hsl(0, 0%, 9%);\n background-color: hsl(var(--primary));\n}\n.bg-primary\\/20 {\n background-color: hsla(0, 0%, 9%, 0.2);\n background-color: hsl(var(--primary) / 0.2);\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(239, 68, 68, 1);\n background-color: rgba(239, 68, 68, var(--tw-bg-opacity, 1));\n}\n.bg-secondary {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--secondary));\n}\n.bg-surface-active {\n background-color: #ececec;\n background-color: var(--surface-active);\n}\n.bg-surface-chat {\n background-color: #fff;\n background-color: var(--surface-chat);\n}\n.bg-surface-destructive {\n background-color: #b91c1c;\n background-color: var(--surface-destructive);\n}\n.bg-surface-primary {\n background-color: #fff;\n background-color: var(--surface-primary);\n}\n.bg-surface-secondary {\n background-color: #f7f7f8;\n background-color: var(--surface-secondary);\n}\n.bg-surface-secondary-alt {\n background-color: #e3e3e3;\n background-color: var(--surface-secondary-alt);\n}\n.bg-surface-submit {\n background-color: #047857;\n background-color: var(--surface-submit);\n}\n.bg-surface-tertiary {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.bg-transparent {\n background-color: transparent;\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.bg-white\\/10 {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.bg-gradient-to-b {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n.bg-gradient-to-r {\n background-image: linear-gradient(to right, var(--tw-gradient-stops));\n}\n.from-blue-500\\/10 {\n --tw-gradient-from: rgba(59, 130, 246, 0.1) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-blue-500\\/20 {\n --tw-gradient-from: rgba(59, 130, 246, 0.2) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-gray-500 {\n --tw-gradient-from: #595959 var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(89, 89, 89, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-purple-500\\/5 {\n --tw-gradient-from: rgba(168, 85, 247, 0.05) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-surface-tertiary-alt {\n --tw-gradient-from: var(--surface-tertiary-alt) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-65\\% {\n --tw-gradient-from-position: 65%;\n}\n.via-blue-500\\/5 {\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(59, 130, 246, 0.05) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.via-purple-500\\/10 {\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(168, 85, 247, 0.1) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.via-purple-500\\/20 {\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(168, 85, 247, 0.2) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.to-blue-500\\/10 {\n --tw-gradient-to: rgba(59, 130, 246, 0.1) var(--tw-gradient-to-position);\n}\n.to-blue-500\\/20 {\n --tw-gradient-to: rgba(59, 130, 246, 0.2) var(--tw-gradient-to-position);\n}\n.to-gray-500 {\n --tw-gradient-to: #595959 var(--tw-gradient-to-position);\n}\n.to-purple-500\\/5 {\n --tw-gradient-to: rgba(168, 85, 247, 0.05) var(--tw-gradient-to-position);\n}\n.to-transparent {\n --tw-gradient-to: transparent var(--tw-gradient-to-position);\n}\n.bg-no-repeat {\n background-repeat: no-repeat;\n}\n.fill-current {\n fill: currentColor;\n}\n.stroke-1 {\n stroke-width: 1;\n}\n.p-0 {\n padding: 0px;\n}\n.p-1 {\n padding: 0.25rem;\n}\n.p-1\\.5 {\n padding: 0.375rem;\n}\n.p-2 {\n padding: 0.5rem;\n}\n.p-3 {\n padding: 0.75rem;\n}\n.p-4 {\n padding: 1rem;\n}\n.p-6 {\n padding: 1.5rem;\n}\n.px-0 {\n padding-left: 0px;\n padding-right: 0px;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-1\\.5 {\n padding-left: 0.375rem;\n padding-right: 0.375rem;\n}\n.px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-2\\.5 {\n padding-top: 0.625rem;\n padding-bottom: 0.625rem;\n}\n.py-3\\.5 {\n padding-top: 0.875rem;\n padding-bottom: 0.875rem;\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.pb-4 {\n padding-bottom: 1rem;\n}\n.pb-6 {\n padding-bottom: 1.5rem;\n}\n.pl-2 {\n padding-left: 0.5rem;\n}\n.pl-2\\.5 {\n padding-left: 0.625rem;\n}\n.pl-3 {\n padding-left: 0.75rem;\n}\n.pl-8 {\n padding-left: 2rem;\n}\n.pl-9 {\n padding-left: 2.25rem;\n}\n.pr-10 {\n padding-right: 2.5rem;\n}\n.pr-2 {\n padding-right: 0.5rem;\n}\n.pr-2\\.5 {\n padding-right: 0.625rem;\n}\n.pr-3 {\n padding-right: 0.75rem;\n}\n.pr-8 {\n padding-right: 2rem;\n}\n.pr-9 {\n padding-right: 2.25rem;\n}\n.pt-0 {\n padding-top: 0px;\n}\n.pt-6 {\n padding-top: 1.5rem;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.align-middle {\n vertical-align: middle;\n}\n.font-sans {\n font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n.text-3xl {\n font-size: 1.875rem;\n line-height: 2.25rem;\n}\n.text-\\[0\\.5rem\\] {\n font-size: 0.5rem;\n}\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.font-medium {\n font-weight: 500;\n}\n.font-normal {\n font-weight: 400;\n}\n.font-semibold {\n font-weight: 600;\n}\n.leading-6 {\n line-height: 1.5rem;\n}\n.leading-none {\n line-height: 1;\n}\n.tracking-tight {\n letter-spacing: -0.025em;\n}\n.tracking-widest {\n letter-spacing: 0.1em;\n}\n.text-black {\n --tw-text-opacity: 1;\n color: rgba(0, 0, 0, 1);\n color: rgba(0, 0, 0, var(--tw-text-opacity, 1));\n}\n.text-black\\/50 {\n color: rgba(0, 0, 0, 0.5);\n}\n.text-blue-400 {\n --tw-text-opacity: 1;\n color: rgba(96, 165, 250, 1);\n color: rgba(96, 165, 250, var(--tw-text-opacity, 1));\n}\n.text-destructive-foreground {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--destructive-foreground));\n}\n.text-foreground {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.text-gray-400 {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.text-gray-500 {\n --tw-text-opacity: 1;\n color: rgba(89, 89, 89, 1);\n color: rgba(89, 89, 89, var(--tw-text-opacity, 1));\n}\n.text-gray-600 {\n --tw-text-opacity: 1;\n color: rgba(66, 66, 66, 1);\n color: rgba(66, 66, 66, var(--tw-text-opacity, 1));\n}\n.text-gray-700 {\n --tw-text-opacity: 1;\n color: rgba(47, 47, 47, 1);\n color: rgba(47, 47, 47, var(--tw-text-opacity, 1));\n}\n.text-gray-800 {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.text-gray-900 {\n --tw-text-opacity: 1;\n color: rgba(13, 13, 13, 1);\n color: rgba(13, 13, 13, var(--tw-text-opacity, 1));\n}\n.text-green-600 {\n --tw-text-opacity: 1;\n color: rgba(18, 110, 107, 1);\n color: rgba(18, 110, 107, var(--tw-text-opacity, 1));\n}\n.text-muted-foreground {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.text-muted-foreground\\/70 {\n color: hsla(0, 0%, 45.1%, 0.7);\n color: hsl(var(--muted-foreground) / 0.7);\n}\n.text-primary {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--primary));\n}\n.text-primary-foreground {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--primary-foreground));\n}\n.text-red-400 {\n --tw-text-opacity: 1;\n color: rgba(248, 113, 113, 1);\n color: rgba(248, 113, 113, var(--tw-text-opacity, 1));\n}\n.text-secondary {\n color: hsl(0, 0%, 96.1%);\n color: hsl(var(--secondary));\n}\n.text-secondary-foreground {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--secondary-foreground));\n}\n.text-text-primary {\n color: #212121;\n color: var(--text-primary);\n}\n.text-text-secondary {\n color: #424242;\n color: var(--text-secondary);\n}\n.text-text-secondary-alt {\n color: #595959;\n color: var(--text-secondary-alt);\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgba(255, 255, 255, 1);\n color: rgba(255, 255, 255, var(--tw-text-opacity, 1));\n}\n.underline {\n text-decoration-line: underline;\n}\n.underline-offset-4 {\n text-underline-offset: 4px;\n}\n.placeholder-text-secondary::-moz-placeholder {\n color: #424242;\n color: var(--text-secondary);\n}\n.placeholder-text-secondary::placeholder {\n color: #424242;\n color: var(--text-secondary);\n}\n.opacity-0 {\n opacity: 0;\n}\n.opacity-100 {\n opacity: 1;\n}\n.opacity-50 {\n opacity: 0.5;\n}\n.opacity-70 {\n opacity: 0.7;\n}\n.opacity-75 {\n opacity: 0.75;\n}\n.shadow-2xl {\n --tw-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-md {\n --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.outline {\n outline-style: solid;\n}\n.ring-0 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-1 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-2 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-black\\/10 {\n --tw-ring-color: rgba(0, 0, 0, 0.1);\n}\n.ring-ring {\n --tw-ring-color: hsl(var(--ring));\n}\n.ring-ring-primary {\n --tw-ring-color: var(--ring-primary);\n}\n.ring-offset-background {\n --tw-ring-offset-color: hsl(var(--background));\n}\n.blur {\n --tw-blur: blur(8px);\n filter: blur(8px) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.blur-none {\n --tw-blur: ;\n filter: var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.blur-sm {\n --tw-blur: blur(4px);\n filter: blur(4px) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.blur-xl {\n --tw-blur: blur(24px);\n filter: blur(24px) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.backdrop-blur-sm {\n --tw-backdrop-blur: blur(4px);\n -webkit-backdrop-filter: blur(4px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n backdrop-filter: blur(4px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-shadow {\n transition-property: box-shadow;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.duration-100 {\n transition-duration: 100ms;\n}\n.duration-1000 {\n transition-duration: 1000ms;\n}\n.duration-200 {\n transition-duration: 200ms;\n}\n.duration-300 {\n transition-duration: 300ms;\n}\n.duration-500 {\n transition-duration: 500ms;\n}\n.duration-700 {\n transition-duration: 700ms;\n}\n.ease-in {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.will-change-transform {\n will-change: transform;\n}\n@keyframes enter {\n\n from {\n opacity: 1;\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n@keyframes exit {\n\n to {\n opacity: 1;\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n.animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.fade-in {\n --tw-enter-opacity: 0;\n}\n.fade-in-0 {\n --tw-enter-opacity: 0;\n}\n.fade-in-90 {\n --tw-enter-opacity: 0.9;\n}\n.zoom-in-95 {\n --tw-enter-scale: .95;\n}\n.slide-in-from-bottom-10 {\n --tw-enter-translate-y: 2.5rem;\n}\n.slide-in-from-left-1 {\n --tw-enter-translate-x: -0.25rem;\n}\n.duration-100 {\n animation-duration: 100ms;\n}\n.duration-1000 {\n animation-duration: 1000ms;\n}\n.duration-200 {\n animation-duration: 200ms;\n}\n.duration-300 {\n animation-duration: 300ms;\n}\n.duration-500 {\n animation-duration: 500ms;\n}\n.duration-700 {\n animation-duration: 700ms;\n}\n.ease-in {\n animation-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ease-in-out {\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-out {\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n/* Custom Variables */\n:root {\n --white: #fff;\n --black: #000;\n --gray-20: #ececf1;\n --gray-50: #f7f7f8;\n --gray-100: #ececec;\n --gray-200: #e3e3e3;\n --gray-300: #cdcdcd;\n --gray-400: #999696;\n --gray-500: #595959;\n --gray-600: #424242;\n --gray-700: #2f2f2f;\n --gray-800: #212121;\n --gray-850: #171717;\n --gray-900: #0d0d0d;\n --green-50: #ecfdf5;\n --green-100: #d1fae5;\n --green-200: #a7f3d0;\n --green-300: #6ee7b7;\n --green-400: #34d399;\n --green-500: #10b981;\n --green-600: #059669;\n --green-700: #047857;\n --green-800: #065f46;\n --green-900: #064e3b;\n --green-950: #022c22;\n --red-50: #fef2f2;\n --red-100: #fee2e2;\n --red-200: #fecaca;\n --red-300: #fca5a5;\n --red-400: #f87171;\n --red-500: #ef4444;\n --red-600: #dc2626;\n --red-700: #b91c1c;\n --red-800: #991b1b;\n --red-900: #7f1d1d;\n --red-950: #450a0a;\n --amber-50: #fffbeb;\n --amber-100: #fef3c7;\n --amber-200: #fde68a;\n --amber-300: #fcd34d;\n --amber-400: #fbbf24;\n --amber-500: #f59e0b;\n --amber-600: #d97706;\n --amber-700: #b45309;\n --amber-800: #92400e;\n --amber-900: #78350f;\n --amber-950: #451a03;\n}\nhtml {\n --presentation: var(--white);\n --text-primary: var(--gray-800);\n --text-secondary: var(--gray-600);\n --text-secondary-alt: var(--gray-500);\n --text-tertiary: var(--gray-500);\n --text-warning: var(--amber-500);\n --ring-primary: var(--gray-500);\n --header-primary: var(--white);\n --header-hover: var(--gray-50);\n --header-button-hover: var(--gray-50);\n --surface-active: var(--gray-100);\n --surface-active-alt: var(--gray-200);\n --surface-hover: var(--gray-200);\n --surface-hover-alt: var(--gray-300);\n --surface-primary: var(--white);\n --surface-primary-alt: var(--gray-50);\n --surface-primary-contrast: var(--gray-100);\n --surface-secondary: var(--gray-50);\n --surface-secondary-alt: var(--gray-200);\n --surface-tertiary: var(--gray-100);\n --surface-tertiary-alt: var(--white);\n --surface-dialog: var(--white);\n --surface-submit: var(--green-700);\n --surface-submit-hover: var(--green-800);\n --surface-destructive: var(--red-700);\n --surface-destructive-hover: var(--red-800);\n --surface-chat: var(--white);\n --border-light: var(--gray-200);\n --border-medium-alt: var(--gray-300);\n --border-medium: var(--gray-300);\n --border-heavy: var(--gray-400);\n --border-xheavy: var(--gray-500);\n\n --background: 0 0% 100%;\n --foreground: 0 0% 3.9%;\n --card: 0 0% 100%;\n --card-foreground: 0 0% 3.9%;\n --primary: 0 0% 9%;\n --primary-foreground: 0 0% 98%;\n --secondary: 0 0% 96.1%;\n --secondary-foreground: 0 0% 9%;\n --muted: 0 0% 96.1%;\n --muted-foreground: 0 0% 45.1%;\n --accent: 0 0% 96.1%;\n --accent-foreground: 0 0% 9%;\n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 0 0% 98%;\n --border: 0 0% 89.8%;\n --input: 0 0% 89.8%;\n --ring: 0 0% 3.9%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n --switch-unchecked: 0 0% 58%;\n}\n.dark {\n --presentation: var(--gray-800);\n --text-primary: var(--gray-100);\n --text-secondary: var(--gray-300);\n --text-secondary-alt: var(--gray-400);\n --text-tertiary: var(--gray-500);\n --text-warning: var(--amber-500);\n --header-primary: var(--gray-700);\n --header-hover: var(--gray-600);\n --header-button-hover: var(--gray-700);\n --surface-active: var(--gray-500);\n --surface-active-alt: var(--gray-700);\n --surface-hover: var(--gray-600);\n --surface-hover-alt: var(--gray-600);\n --surface-primary: var(--gray-900);\n --surface-primary-alt: var(--gray-850);\n --surface-primary-contrast: var(--gray-850);\n --surface-secondary: var(--gray-800);\n --surface-secondary-alt: var(--gray-800);\n --surface-tertiary: var(--gray-700);\n --surface-tertiary-alt: var(--gray-700);\n --surface-dialog: var(--gray-850);\n --surface-submit: var(--green-700);\n --surface-submit-hover: var(--green-800);\n --surface-destructive: var(--red-800);\n --surface-destructive-hover: var(--red-900);\n --surface-chat: var(--gray-700);\n --border-light: var(--gray-700);\n --border-medium-alt: var(--gray-600);\n --border-medium: var(--gray-600);\n --border-heavy: var(--gray-500);\n --border-xheavy: var(--gray-400);\n\n --background: 0 0% 7%;\n --foreground: 0 0% 98%;\n --card: 0 0% 3.9%;\n --card-foreground: 0 0% 98%;\n --primary: 0 0% 98%;\n --primary-foreground: 0 0% 9%;\n --secondary: 0 0% 14.9%;\n --secondary-foreground: 0 0% 98%;\n --muted: 0 0% 14.9%;\n --muted-foreground: 0 0% 63.9%;\n --accent: 0 0% 14.9%;\n --accent-foreground: 0 0% 98%;\n --destructive: 0 62.8% 40.6%;\n --destructive-foreground: 0 0% 98%;\n --border: 0 0% 14.9%;\n --input: 0 0% 14.9%;\n --ring: 0 0% 83.1%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n --switch-unchecked: 0 0% 40%;\n}\n.placeholder\\:text-gray-400::-moz-placeholder {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.placeholder\\:text-gray-400::placeholder {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.placeholder\\:text-muted-foreground::-moz-placeholder {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.placeholder\\:text-muted-foreground::placeholder {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.after\\:absolute::after {\n content: var(--tw-content);\n position: absolute;\n}\n.after\\:inset-y-0::after {\n content: var(--tw-content);\n top: 0px;\n bottom: 0px;\n}\n.after\\:left-1\\/2::after {\n content: var(--tw-content);\n left: 50%;\n}\n.after\\:w-1::after {\n content: var(--tw-content);\n width: 0.25rem;\n}\n.after\\:-translate-x-1\\/2::after {\n content: var(--tw-content);\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.first\\:rounded-l-xl:first-child {\n border-top-left-radius: 0.75rem;\n border-bottom-left-radius: 0.75rem;\n}\n.first\\:border-l:first-child {\n border-left-width: 1px;\n}\n.last\\:rounded-r-xl:last-child {\n border-top-right-radius: 0.75rem;\n border-bottom-right-radius: 0.75rem;\n}\n.hover\\:cursor-pointer:hover {\n cursor: pointer;\n}\n.hover\\:bg-accent:hover {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.hover\\:bg-black\\/\\[0\\.075\\]:hover {\n background-color: rgba(0, 0, 0, 0.075);\n}\n.hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-100\\/50:hover {\n background-color: rgba(236, 236, 236, 0.5);\n}\n.hover\\:bg-gray-20:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 241, 1);\n background-color: rgba(236, 236, 241, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-50:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(247, 247, 248, 1);\n background-color: rgba(247, 247, 248, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-700:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-800:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-muted\\/50:hover {\n background-color: hsla(0, 0%, 96.1%, 0.5);\n background-color: hsl(var(--muted) / 0.5);\n}\n.hover\\:bg-primary\\/90:hover {\n background-color: hsla(0, 0%, 9%, 0.9);\n background-color: hsl(var(--primary) / 0.9);\n}\n.hover\\:bg-secondary\\/80:hover {\n background-color: hsla(0, 0%, 96.1%, 0.8);\n background-color: hsl(var(--secondary) / 0.8);\n}\n.hover\\:bg-surface-destructive-hover:hover {\n background-color: #991b1b;\n background-color: var(--surface-destructive-hover);\n}\n.hover\\:bg-surface-hover:hover {\n background-color: #e3e3e3;\n background-color: var(--surface-hover);\n}\n.hover\\:bg-surface-secondary:hover {\n background-color: #f7f7f8;\n background-color: var(--surface-secondary);\n}\n.hover\\:bg-surface-submit-hover:hover {\n background-color: #065f46;\n background-color: var(--surface-submit-hover);\n}\n.hover\\:bg-surface-tertiary:hover {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.hover\\:bg-transparent:hover {\n background-color: transparent;\n}\n.hover\\:text-accent-foreground:hover {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--accent-foreground));\n}\n.hover\\:text-foreground:hover {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.hover\\:text-secondary:hover {\n color: hsl(0, 0%, 96.1%);\n color: hsl(var(--secondary));\n}\n.hover\\:text-text-primary:hover {\n color: #212121;\n color: var(--text-primary);\n}\n.hover\\:underline:hover {\n text-decoration-line: underline;\n}\n.hover\\:opacity-100:hover {\n opacity: 1;\n}\n.hover\\:shadow-md:hover {\n --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.hover\\:shadow-sm:hover {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.focus\\:bg-accent:focus {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.focus\\:bg-gray-100:focus {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.focus\\:bg-surface-hover:focus {\n background-color: #e3e3e3;\n background-color: var(--surface-hover);\n}\n.focus\\:bg-surface-tertiary:focus {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.focus\\:bg-gradient-to-b:focus {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n.focus\\:from-surface-primary:focus {\n --tw-gradient-from: var(--surface-primary) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.focus\\:text-accent-foreground:focus {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--accent-foreground));\n}\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus\\:ring-0:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-1:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-2:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-inset:focus {\n --tw-ring-inset: inset;\n}\n.focus\\:ring-gray-400:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(153, 150, 150, var(--tw-ring-opacity, 1));\n}\n.focus\\:ring-gray-700\\/10:focus {\n --tw-ring-color: rgba(47, 47, 47, 0.1);\n}\n.focus\\:ring-ring:focus {\n --tw-ring-color: hsl(var(--ring));\n}\n.focus\\:ring-ring-primary:focus {\n --tw-ring-color: var(--ring-primary);\n}\n.focus\\:ring-offset-2:focus {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus-visible\\:ring-1:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus-visible\\:ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus-visible\\:ring-gray-500:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(89, 89, 89, var(--tw-ring-opacity, 1));\n}\n.focus-visible\\:ring-ring:focus-visible {\n --tw-ring-color: hsl(var(--ring));\n}\n.focus-visible\\:ring-ring-primary:focus-visible {\n --tw-ring-color: var(--ring-primary);\n}\n.focus-visible\\:ring-white:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity, 1));\n}\n.focus-visible\\:ring-opacity-75:focus-visible {\n --tw-ring-opacity: 0.75;\n}\n.focus-visible\\:ring-offset-1:focus-visible {\n --tw-ring-offset-width: 1px;\n}\n.focus-visible\\:ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:ring-offset-background:focus-visible {\n --tw-ring-offset-color: hsl(var(--background));\n}\n.active\\:scale-95:active {\n --tw-scale-x: .95;\n --tw-scale-y: .95;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(.95) scaleY(.95);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.active\\:shadow-inner:active {\n --tw-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.disabled\\:pointer-events-none:disabled {\n pointer-events: none;\n}\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n.disabled\\:bg-white:disabled {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.disabled\\:opacity-50:disabled {\n opacity: 0.5;\n}\n.disabled\\:opacity-80:disabled {\n opacity: 0.8;\n}\n.group:hover .group-hover\\:visible {\n visibility: visible;\n}\n.group:hover .group-hover\\:inline {\n display: inline;\n}\n.group:hover .group-hover\\:hidden {\n display: none;\n}\n.group:focus .group-focus\\:inline {\n display: inline;\n}\n.group:active .group-active\\:visible {\n visibility: visible;\n}\n.peer:focus ~ .peer-focus\\:scale-105 {\n --tw-scale-x: 1.05;\n --tw-scale-y: 1.05;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.peer:focus ~ .peer-focus\\:opacity-100 {\n opacity: 1;\n}\n.peer:disabled ~ .peer-disabled\\:cursor-not-allowed {\n cursor: not-allowed;\n}\n.peer:disabled ~ .peer-disabled\\:opacity-70 {\n opacity: 0.7;\n}\n.has-\\[\\:disabled\\]\\:opacity-50:has(:disabled) {\n opacity: 0.5;\n}\n.aria-disabled\\:opacity-50[aria-disabled="true"] {\n opacity: 0.5;\n}\n.data-\\[disabled\\]\\:pointer-events-none[data-disabled] {\n pointer-events: none;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction="vertical"] {\n height: 1px;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction="vertical"] {\n width: 100%;\n}\n.data-\\[side\\=bottom\\]\\:translate-y-1[data-side="bottom"] {\n --tw-translate-y: 0.25rem;\n transform: translate(var(--tw-translate-x), 0.25rem) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=left\\]\\:-translate-x-1[data-side="left"] {\n --tw-translate-x: -0.25rem;\n transform: translate(-0.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=right\\]\\:translate-x-1[data-side="right"] {\n --tw-translate-x: 0.25rem;\n transform: translate(0.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=top\\]\\:-translate-y-1[data-side="top"] {\n --tw-translate-y: -0.25rem;\n transform: translate(var(--tw-translate-x), -0.25rem) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=checked\\]\\:translate-x-5[data-state="checked"] {\n --tw-translate-x: 1.25rem;\n transform: translate(1.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state="unchecked"] {\n --tw-translate-x: 0px;\n transform: translate(0px, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes accordion-up {\n\n from {\n height: var(--radix-accordion-content-height);\n }\n\n to {\n height: 0;\n }\n}\n.data-\\[state\\=closed\\]\\:animate-accordion-up[data-state="closed"] {\n animation: accordion-up 0.2s ease-out;\n}\n@keyframes accordion-down {\n\n from {\n height: 0;\n }\n\n to {\n height: var(--radix-accordion-content-height);\n }\n}\n.data-\\[state\\=open\\]\\:animate-accordion-down[data-state="open"] {\n animation: accordion-down 0.2s ease-out;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction="vertical"] {\n flex-direction: column;\n}\n.data-\\[active-item\\]\\:bg-black\\/\\[0\\.075\\][data-active-item] {\n background-color: rgba(0, 0, 0, 0.075);\n}\n.data-\\[active-item\\]\\:bg-surface-tertiary[data-active-item] {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.data-\\[state\\=active\\]\\:bg-white[data-state="active"] {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=checked\\]\\:bg-primary[data-state="checked"] {\n background-color: hsl(0, 0%, 9%);\n background-color: hsl(var(--primary));\n}\n.data-\\[state\\=open\\]\\:bg-accent[data-state="open"] {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.data-\\[state\\=open\\]\\:bg-gray-100[data-state="open"] {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=selected\\]\\:bg-muted[data-state="selected"] {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--muted));\n}\n.data-\\[state\\=unchecked\\]\\:bg-switch-unchecked[data-state="unchecked"] {\n background-color: hsl(0, 0%, 58%);\n background-color: hsl(var(--switch-unchecked));\n}\n.data-\\[active-item\\]\\:text-text-primary[data-active-item] {\n color: #212121;\n color: var(--text-primary);\n}\n.data-\\[state\\=active\\]\\:text-gray-800[data-state="active"] {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state="checked"] {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--primary-foreground));\n}\n.data-\\[state\\=open\\]\\:text-muted-foreground[data-state="open"] {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.data-\\[disabled\\]\\:opacity-50[data-disabled] {\n opacity: 0.5;\n}\n.data-\\[state\\=active\\]\\:shadow-sm[data-state="active"] {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.data-\\[state\\=open\\]\\:animate-in[data-state="open"] {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:animate-out[data-state="closed"] {\n animation-name: exit;\n animation-duration: 150ms;\n --tw-exit-opacity: initial;\n --tw-exit-scale: initial;\n --tw-exit-rotate: initial;\n --tw-exit-translate-x: initial;\n --tw-exit-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:fade-out[data-state="closed"] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=closed\\]\\:fade-out-0[data-state="closed"] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in[data-state="open"] {\n --tw-enter-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in-0[data-state="open"] {\n --tw-enter-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in-90[data-state="open"] {\n --tw-enter-opacity: 0.9;\n}\n.data-\\[state\\=closed\\]\\:zoom-out-95[data-state="closed"] {\n --tw-exit-scale: .95;\n}\n.data-\\[state\\=open\\]\\:zoom-in-95[data-state="open"] {\n --tw-enter-scale: .95;\n}\n.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side="bottom"] {\n --tw-enter-translate-y: -0.5rem;\n}\n.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side="left"] {\n --tw-enter-translate-x: 0.5rem;\n}\n.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side="right"] {\n --tw-enter-translate-x: -0.5rem;\n}\n.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side="top"] {\n --tw-enter-translate-y: 0.5rem;\n}\n.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state="closed"] {\n --tw-exit-translate-x: -50%;\n}\n.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state="closed"] {\n --tw-exit-translate-y: -48%;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-bottom-10[data-state="open"] {\n --tw-enter-translate-y: 2.5rem;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state="open"] {\n --tw-enter-translate-x: -50%;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state="open"] {\n --tw-enter-translate-y: -48%;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n left: 0px;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n height: 0.25rem;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n width: 100%;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n --tw-translate-x: 0px;\n transform: translate(0px, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.dark\\:border-gray-300:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgba(205, 205, 205, 1);\n border-color: rgba(205, 205, 205, var(--tw-border-opacity, 1));\n}\n.dark\\:border-gray-600:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgba(66, 66, 66, 1);\n border-color: rgba(66, 66, 66, var(--tw-border-opacity, 1));\n}\n.dark\\:border-gray-700:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgba(47, 47, 47, 1);\n border-color: rgba(47, 47, 47, var(--tw-border-opacity, 1));\n}\n.dark\\:border-gray-800:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgba(33, 33, 33, 1);\n border-color: rgba(33, 33, 33, var(--tw-border-opacity, 1));\n}\n.dark\\:border-white\\/10:is(.dark *) {\n border-color: rgba(255, 255, 255, 0.1);\n}\n.dark\\:bg-black\\/80:is(.dark *) {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.dark\\:bg-gray-100:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-200:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-700:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-800:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-800\\/90:is(.dark *) {\n background-color: rgba(33, 33, 33, 0.9);\n}\n.dark\\:bg-gray-850:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(23, 23, 23, 1);\n background-color: rgba(23, 23, 23, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-900:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-white\\/5:is(.dark *) {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.dark\\:fill-white:is(.dark *) {\n fill: #fff;\n}\n.dark\\:text-black:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(0, 0, 0, 1);\n color: rgba(0, 0, 0, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-100:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(236, 236, 236, 1);\n color: rgba(236, 236, 236, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-200:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(227, 227, 227, 1);\n color: rgba(227, 227, 227, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-400:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-50:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(247, 247, 248, 1);\n color: rgba(247, 247, 248, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-500:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(89, 89, 89, 1);\n color: rgba(89, 89, 89, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-800:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-900:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(13, 13, 13, 1);\n color: rgba(13, 13, 13, var(--tw-text-opacity, 1));\n}\n.dark\\:text-white:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(255, 255, 255, 1);\n color: rgba(255, 255, 255, var(--tw-text-opacity, 1));\n}\n.dark\\:text-white\\/50:is(.dark *) {\n color: rgba(255, 255, 255, 0.5);\n}\n.dark\\:opacity-25:is(.dark *) {\n opacity: 0.25;\n}\n.dark\\:ring-white\\/20:is(.dark *) {\n --tw-ring-color: rgba(255, 255, 255, 0.2);\n}\n.dark\\:hover\\:bg-gray-100:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-gray-200:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-gray-600:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(66, 66, 66, 1);\n background-color: rgba(66, 66, 66, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-gray-700:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-gray-800:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-white\\/10:hover:is(.dark *) {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.dark\\:focus\\:bg-gray-800:focus:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark\\:focus\\:bg-gray-900:focus:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark\\:focus\\:ring-gray-200\\/10:focus:is(.dark *) {\n --tw-ring-color: rgba(227, 227, 227, 0.1);\n}\n.dark\\:focus\\:ring-gray-400:focus:is(.dark *) {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(153, 150, 150, var(--tw-ring-opacity, 1));\n}\n.dark\\:focus\\:ring-white:focus:is(.dark *) {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity, 1));\n}\n.dark\\:focus\\:ring-offset-gray-700:focus:is(.dark *) {\n --tw-ring-offset-color: #2f2f2f;\n}\n.dark\\:focus\\:ring-offset-gray-900:focus:is(.dark *) {\n --tw-ring-offset-color: #0d0d0d;\n}\n.group:focus-within .dark\\:group-focus-within\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.group:hover .dark\\:group-hover\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.dark\\:data-\\[active-item\\]\\:bg-white\\/10[data-active-item]:is(.dark *) {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.dark\\:data-\\[state\\=active\\]\\:bg-gray-700[data-state="active"]:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark\\:data-\\[state\\=open\\]\\:bg-gray-800[data-state="open"]:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark\\:data-\\[state\\=open\\]\\:bg-gray-900[data-state="open"]:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark\\:data-\\[state\\=active\\]\\:text-gray-200[data-state="active"]:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(227, 227, 227, 1);\n color: rgba(227, 227, 227, var(--tw-text-opacity, 1));\n}\n@media not all and (min-width: 640px) {\n\n .max-sm\\:order-first {\n order: -9999;\n }\n\n .max-sm\\:w-full {\n width: 100%;\n }\n\n .max-sm\\:flex-col {\n flex-direction: column;\n }\n}\n@media (min-width: 640px) {\n\n .sm\\:order-none {\n order: 0;\n }\n\n .sm\\:mt-0 {\n margin-top: 0px;\n }\n\n .sm\\:size-4 {\n width: 1rem;\n height: 1rem;\n }\n\n .sm\\:flex-row {\n flex-direction: row;\n }\n\n .sm\\:items-center {\n align-items: center;\n }\n\n .sm\\:justify-end {\n justify-content: flex-end;\n }\n\n .sm\\:gap-2\\.5 {\n gap: 0.625rem;\n }\n\n .sm\\:gap-4 {\n gap: 1rem;\n }\n\n .sm\\:space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * 0);\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * (1 - 0));\n margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));\n margin-left: calc(0.5rem * calc(1 - 0));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n }\n\n .sm\\:rounded-lg {\n border-radius: 0.5rem;\n border-radius: var(--radius);\n }\n\n .sm\\:px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n }\n\n .sm\\:py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .sm\\:pt-0 {\n padding-top: 0px;\n }\n\n .sm\\:text-left {\n text-align: left;\n }\n\n .sm\\:text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n\n .sm\\:zoom-in-90 {\n --tw-enter-scale: .9;\n }\n\n .sm\\:slide-in-from-bottom-0 {\n --tw-enter-translate-y: 0px;\n }\n}\n@media (min-width: 768px) {\n\n .md\\:m-0 {\n margin: 0px;\n }\n\n .md\\:block {\n display: block;\n }\n\n .md\\:inline {\n display: inline;\n }\n\n .md\\:h-4 {\n height: 1rem;\n }\n\n .md\\:h-5 {\n height: 1.25rem;\n }\n\n .md\\:w-4 {\n width: 1rem;\n }\n\n .md\\:w-5 {\n width: 1.25rem;\n }\n\n .md\\:w-\\[100\\%\\] {\n width: 100%;\n }\n\n .md\\:w-auto {\n width: auto;\n }\n\n .md\\:w-full {\n width: 100%;\n }\n\n .md\\:flex-col {\n flex-direction: column;\n }\n\n .md\\:gap-2 {\n gap: 0.5rem;\n }\n\n .md\\:p-3 {\n padding: 0.75rem;\n }\n\n .md\\:px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n }\n\n .md\\:py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .md\\:text-justify {\n text-align: justify;\n }\n}\n.\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]) {\n padding-right: 0px;\n}\n.\\[\\&\\>span\\]\\:line-clamp-1>span {\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n}\n.\\[\\&\\>span\\]\\:flex>span {\n display: flex;\n}\n.\\[\\&\\>span\\]\\:w-auto>span {\n width: auto;\n}\n.\\[\\&\\>span\\]\\:w-full>span {\n width: 100%;\n}\n.\\[\\&\\>span\\]\\:items-center>span {\n align-items: center;\n}\n.\\[\\&\\>span\\]\\:gap-1>span {\n gap: 0.25rem;\n}\n.\\[\\&\\>span\\]\\:truncate>span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.\\[\\&\\>svg\\]\\:hidden>svg {\n display: none;\n}\n.\\[\\&\\>svg\\]\\:size-3\\.5>svg {\n width: 0.875rem;\n height: 0.875rem;\n}\n.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr {\n border-bottom-width: 0px;\n}\n.\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div {\n --tw-rotate: 90deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(90deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg {\n --tw-rotate: 180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(180deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.\\[\\&_svg\\]\\:h-4 svg {\n height: 1rem;\n}\n.\\[\\&_svg\\]\\:w-4 svg {\n width: 1rem;\n}\n.\\[\\&_svg\\]\\:shrink-0 svg {\n flex-shrink: 0;\n}\n.\\[\\&_svg\\]\\:text-foreground svg {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child {\n border-width: 0px;\n}\n.\\[\\&_tr\\]\\:border-b tr {\n border-bottom-width: 1px;\n}\n');const m=t.forwardRef(((e,n)=>{const{children:r,...o}=e,i=t.Children.toArray(r),a=i.find(v);if(a){const e=a.props.children,r=i.map((n=>n===a?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n));return t.createElement(h,c({},o,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(h,c({},o,{ref:n}),r)}));m.displayName="Slot";const h=t.forwardRef(((e,n)=>{const{children:r,...o}=e;return t.isValidElement(r)?t.cloneElement(r,{...b(o,r.props),ref:n?f(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null}));h.displayName="SlotClone";const g=({children:e})=>t.createElement(t.Fragment,null,e);function v(e){return t.isValidElement(e)&&e.type===g}function b(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function w(e){const n=e+"CollectionProvider",[r,o]=u(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=t.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=p(n,a(s,r).collectionRef);return t.createElement(m,{ref:i},o)})),c=e+"CollectionItemSlot",d="data-radix-collection-item",f=t.forwardRef(((e,n)=>{const{scope:r,children:o,...i}=e,s=t.useRef(null),l=p(n,s),u=a(c,r);return t.useEffect((()=>(u.itemMap.set(s,{ref:s,...i}),()=>{u.itemMap.delete(s)}))),t.createElement(m,{[d]:"",ref:l},o)}));return[{Provider:e=>{const{scope:n,children:r}=e,o=t.useRef(null),a=t.useRef(new Map).current;return t.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:l,ItemSlot:f},function(n){const r=a(e+"CollectionConsumer",n),o=t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`)),n=Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return n}),[r.collectionRef,r.itemMap]);return o},o]}function y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function x(e){const n=t.useRef(e);return t.useEffect((()=>{n.current=e})),t.useMemo((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function C({prop:e,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[o]=r,i=t.useRef(o),a=x(n);return t.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==e,s=a?e:o,l=x(r);return[s,t.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[a,e,i,l])]}const S=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const r=t.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?m:n;return t.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),t.createElement(a,c({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...e,[n]:r}}),{});function k(e,t){e&&n.flushSync((()=>e.dispatchEvent(t)))}const E=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{};const R=e=>{const{present:r,children:o}=e,i=function(e){const[r,o]=t.useState(),i=t.useRef({}),a=t.useRef(e),s=t.useRef("none"),l=e?"mounted":"unmounted",[c,u]=function(e,n){return t.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect((()=>{const e=P(i.current);s.current="mounted"===c?e:"none"}),[c]),E((()=>{const t=i.current,n=a.current;if(n!==e){const r=s.current,o=P(t);if(e)u("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,u]),E((()=>{if(r){const e=e=>{const t=P(i.current).includes(e.animationName);e.target===r&&t&&n.flushSync((()=>u("ANIMATION_END")))},t=e=>{e.target===r&&(s.current=P(i.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[r,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(r),a="function"==typeof o?o({present:i.isPresent}):t.Children.only(o),s=p(i.ref,a.ref);return"function"==typeof o||i.isPresent?t.cloneElement(a,{ref:s}):null};function P(e){return(null==e?void 0:e.animationName)||"none"}R.displayName="Presence";const N=a["useId".toString()]||(()=>{});let j=0;function M(e){const[t,n]=a.useState(N());return E((()=>{n((e=>null!=e?e:String(j++)))}),[e]),t?`radix-${t}`:""}const A="Collapsible",[I,T]=u(A),[O,L]=I(A),D=t.forwardRef(((e,n)=>{const{__scopeCollapsible:r,open:o,defaultOpen:i,disabled:a,onOpenChange:s,...l}=e,[u=!1,d]=C({prop:o,defaultProp:i,onChange:s});return t.createElement(O,{scope:r,disabled:a,contentId:M(),open:u,onOpenToggle:t.useCallback((()=>d((e=>!e))),[d])},t.createElement(S.div,c({"data-state":H(u),"data-disabled":a?"":void 0},l,{ref:n})))})),F=t.forwardRef(((e,n)=>{const{__scopeCollapsible:r,...o}=e,i=L("CollapsibleTrigger",r);return t.createElement(S.button,c({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":H(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},o,{ref:n,onClick:y(e.onClick,i.onOpenToggle)}))})),_="CollapsibleContent",V=t.forwardRef(((e,n)=>{const{forceMount:r,...o}=e,i=L(_,e.__scopeCollapsible);return t.createElement(R,{present:r||i.open},(({present:e})=>t.createElement(z,c({},o,{ref:n,present:e}))))})),z=t.forwardRef(((e,n)=>{const{__scopeCollapsible:r,present:o,children:i,...a}=e,s=L(_,r),[l,u]=t.useState(o),d=t.useRef(null),f=p(n,d),m=t.useRef(0),h=m.current,g=t.useRef(0),v=g.current,b=s.open||l,w=t.useRef(b),y=t.useRef();return t.useEffect((()=>{const e=requestAnimationFrame((()=>w.current=!1));return()=>cancelAnimationFrame(e)}),[]),E((()=>{const e=d.current;if(e){y.current=y.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();m.current=t.height,g.current=t.width,w.current||(e.style.transitionDuration=y.current.transitionDuration,e.style.animationName=y.current.animationName),u(o)}}),[s.open,o]),t.createElement(S.div,c({"data-state":H(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!b},a,{ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style}}),b&&i)}));function H(e){return e?"open":"closed"}const B=D,$=F,W=V,U=t.createContext(void 0);function K(e){const n=t.useContext(U);return e||n||"ltr"}const G="Accordion",X=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[q,Y,Z]=w(G),[Q,J]=u(G,[Z,T]),ee=T(),te=t.forwardRef(((e,n)=>{const{type:r,...o}=e,i=o,a=o;return t.createElement(q.Provider,{scope:e.__scopeAccordion},"multiple"===r?t.createElement(se,c({},a,{ref:n})):t.createElement(ae,c({},i,{ref:n})))}));te.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[ne,re]=Q(G),[oe,ie]=Q(G,{collapsible:!1}),ae=t.forwardRef(((e,n)=>{const{value:r,defaultValue:o,onValueChange:i=(()=>{}),collapsible:a=!1,...s}=e,[l,u]=C({prop:r,defaultProp:o,onChange:i});return t.createElement(ne,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:u,onItemClose:t.useCallback((()=>a&&u("")),[a,u])},t.createElement(oe,{scope:e.__scopeAccordion,collapsible:a},t.createElement(ue,c({},s,{ref:n}))))})),se=t.forwardRef(((e,n)=>{const{value:r,defaultValue:o,onValueChange:i=(()=>{}),...a}=e,[s=[],l]=C({prop:r,defaultProp:o,onChange:i}),u=t.useCallback((e=>l(((t=[])=>[...t,e]))),[l]),d=t.useCallback((e=>l(((t=[])=>t.filter((t=>t!==e))))),[l]);return t.createElement(ne,{scope:e.__scopeAccordion,value:s,onItemOpen:u,onItemClose:d},t.createElement(oe,{scope:e.__scopeAccordion,collapsible:!0},t.createElement(ue,c({},a,{ref:n}))))})),[le,ce]=Q(G),ue=t.forwardRef(((e,n)=>{const{__scopeAccordion:r,disabled:o,dir:i,orientation:a="vertical",...s}=e,l=p(t.useRef(null),n),u=Y(r),d="ltr"===K(i),f=y(e.onKeyDown,(e=>{var t;if(!X.includes(e.key))return;const n=e.target,r=u().filter((e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)})),o=r.findIndex((e=>e.ref.current===n)),i=r.length;if(-1===o)return;e.preventDefault();let s=o;const l=i-1,c=()=>{s=o+1,s>l&&(s=0)},f=()=>{s=o-1,s<0&&(s=l)};switch(e.key){case"Home":s=0;break;case"End":s=l;break;case"ArrowRight":"horizontal"===a&&(d?c():f());break;case"ArrowDown":"vertical"===a&&c();break;case"ArrowLeft":"horizontal"===a&&(d?f():c());break;case"ArrowUp":"vertical"===a&&f()}null===(t=r[s%i].ref.current)||void 0===t||t.focus()}));return t.createElement(le,{scope:r,disabled:o,direction:i,orientation:a},t.createElement(q.Slot,{scope:r},t.createElement(S.div,c({},s,{"data-orientation":a,ref:l,onKeyDown:o?void 0:f}))))})),de="AccordionItem",[fe,pe]=Q(de),me=t.forwardRef(((e,n)=>{const{__scopeAccordion:r,value:o,...i}=e,a=ce(de,r),s=re(de,r),l=ee(r),u=M(),d=o&&s.value.includes(o)||!1,f=a.disabled||e.disabled;return t.createElement(fe,{scope:r,open:d,disabled:f,triggerId:u},t.createElement(B,c({"data-orientation":a.orientation,"data-state":we(d)},l,i,{ref:n,disabled:f,open:d,onOpenChange:e=>{e?s.onItemOpen(o):s.onItemClose(o)}})))})),he=t.forwardRef(((e,n)=>{const{__scopeAccordion:r,...o}=e,i=ce(G,r),a=pe("AccordionHeader",r);return t.createElement(S.h3,c({"data-orientation":i.orientation,"data-state":we(a.open),"data-disabled":a.disabled?"":void 0},o,{ref:n}))})),ge="AccordionTrigger",ve=t.forwardRef(((e,n)=>{const{__scopeAccordion:r,...o}=e,i=ce(G,r),a=pe(ge,r),s=ie(ge,r),l=ee(r);return t.createElement(q.ItemSlot,{scope:r},t.createElement($,c({"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId},l,o,{ref:n})))})),be=t.forwardRef(((e,n)=>{const{__scopeAccordion:r,...o}=e,i=ce(G,r),a=pe("AccordionContent",r),s=ee(r);return t.createElement(W,c({role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation},s,o,{ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))}));function we(e){return e?"open":"closed"}const ye=te,xe=me,Ce=he,Se=ve,ke=be;function Ee(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Re=["color"],Pe=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,Re);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))})),Ne=["color"],je=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,Ne);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))})),Me=["color"],Ae=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,Me);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))})),Ie=["color"],Te=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,Ie);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))})),Oe=["color"],Le=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,Oe);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))})),De=["color"],Fe=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,De);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))})),_e=["color"],Ve=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,_e);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}));function ze(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ze(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function He(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ze(e))&&(r&&(r+=" "),r+=t);return r}function Be(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=$e(e))&&(r&&(r+=" "),r+=t);return r}function $e(e){if("string"==typeof e)return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=$e(e[r]))&&(n&&(n+=" "),n+=t);return n}var We="-";function Ue(e){var t=function(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=function(e,t){if(!t)return e;return e.map((function(e){return[e[0],e[1].map((function(e){return"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((function(e){var n=e[0],r=e[1];return[t+n,r]}))):e}))]}))}(Object.entries(e.classGroups),n);return o.forEach((function(e){var n=e[0];Xe(e[1],r,n,t)})),r}(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=void 0===r?{}:r;return{getClassGroupId:function(e){var n=e.split(We);return""===n[0]&&1!==n.length&&n.shift(),Ke(n,t)||function(e){if(Ge.test(e)){var t=Ge.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var r=n[e]||[];return t&&o[e]?[].concat(r,o[e]):r}}}function Ke(e,t){if(0===e.length)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Ke(e.slice(1),r):void 0;if(o)return o;if(0!==t.validators.length){var i=e.join(We);return t.validators.find((function(e){return(0,e.validator)(i)}))?.classGroupId}}var Ge=/^\[(.+)\]$/;function Xe(e,t,n,r){e.forEach((function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void Xe(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((function(e){var o=e[0];Xe(e[1],qe(t,o),n,r)}))}else{(""===e?t:qe(t,e)).classGroupId=n}}))}function qe(e,t){var n=e;return t.split(We).forEach((function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function Ye(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):o(e,t)}}}var Ze="!";function Qe(e){var t=e.separator||":",n=1===t.length,r=t[0],o=t.length;return function(e){for(var i,a=[],s=0,l=0,c=0;c<e.length;c++){var u=e[c];if(0===s){if(u===r&&(n||e.slice(c,c+o)===t)){a.push(e.slice(l,c)),l=c+o;continue}if("/"===u){i=c;continue}}"["===u?s++:"]"===u&&s--}var d=0===a.length?e:e.substring(l),f=d.startsWith(Ze);return{modifiers:a,hasImportantModifier:f,baseClassName:f?d.substring(1):d,maybePostfixModifierPosition:i&&i>l?i-l:void 0}}}var Je=/\s+/;function et(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=function(e){var n=t[0],l=t.slice(1).reduce((function(e,t){return t(e)}),n());return r=function(e){return{cache:Ye(e.cacheSize),splitModifiers:Qe(e),...Ue(e)}}(l),o=r.cache.get,i=r.cache.set,a=s,s(e)};function s(e){var t=o(e);if(t)return t;var n=function(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(Je).map((function(e){var t=n(e),o=t.modifiers,i=t.hasImportantModifier,a=t.baseClassName,s=t.maybePostfixModifierPosition,l=r(s?a.substring(0,s):a),c=Boolean(s);if(!l){if(!s)return{isTailwindClass:!1,originalClassName:e};if(!(l=r(a)))return{isTailwindClass:!1,originalClassName:e};c=!1}var u=function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach((function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)})),t.push.apply(t,n.sort()),t}(o).join(":");return{isTailwindClass:!0,modifierId:i?u+Ze:u,classGroupId:l,originalClassName:e,hasPostfixModifier:c}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((function(e){return i.add(t+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" ")}(e,r);return i(e,n),n}return function(){return a(Be.apply(null,arguments))}}function tt(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var nt=/^\[(?:([a-z-]+):)?(.+)\]$/i,rt=/^\d+\/\d+$/,ot=new Set(["px","full","screen"]),it=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,at=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,st=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function lt(e){return mt(e)||ot.has(e)||rt.test(e)||ct(e)}function ct(e){return xt(e,"length",Ct)}function ut(e){return xt(e,"size",St)}function dt(e){return xt(e,"position",St)}function ft(e){return xt(e,"url",kt)}function pt(e){return xt(e,"number",mt)}function mt(e){return!Number.isNaN(Number(e))}function ht(e){return e.endsWith("%")&&mt(e.slice(0,-1))}function gt(e){return Et(e)||xt(e,"number",Et)}function vt(e){return nt.test(e)}function bt(){return!0}function wt(e){return it.test(e)}function yt(e){return xt(e,"",Rt)}function xt(e,t,n){var r=nt.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function Ct(e){return at.test(e)}function St(){return!1}function kt(e){return e.startsWith("url(")}function Et(e){return Number.isInteger(Number(e))}function Rt(e){return st.test(e)}function Pt(){var e=tt("colors"),t=tt("spacing"),n=tt("blur"),r=tt("brightness"),o=tt("borderColor"),i=tt("borderRadius"),a=tt("borderSpacing"),s=tt("borderWidth"),l=tt("contrast"),c=tt("grayscale"),u=tt("hueRotate"),d=tt("invert"),f=tt("gap"),p=tt("gradientColorStops"),m=tt("gradientColorStopPositions"),h=tt("inset"),g=tt("margin"),v=tt("opacity"),b=tt("padding"),w=tt("saturate"),y=tt("scale"),x=tt("sepia"),C=tt("skew"),S=tt("space"),k=tt("translate"),E=function(){return["auto",vt,t]},R=function(){return[vt,t]},P=function(){return["",lt]},N=function(){return["auto",mt,vt]},j=function(){return["","0",vt]},M=function(){return[mt,pt]},A=function(){return[mt,vt]};return{cacheSize:500,theme:{colors:[bt],spacing:[lt],blur:["none","",wt,vt],brightness:M(),borderColor:[e],borderRadius:["none","","full",wt,vt],borderSpacing:R(),borderWidth:P(),contrast:M(),grayscale:j(),hueRotate:A(),invert:j(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[ht,ct],inset:E(),margin:E(),opacity:M(),padding:R(),saturate:M(),scale:M(),sepia:j(),skew:A(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",vt]}],container:["container"],columns:[{columns:[wt]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[vt])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",gt]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",vt]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",gt]}],"grid-cols":[{"grid-cols":[bt]}],"col-start-end":[{col:["auto",{span:["full",gt]},vt]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[bt]}],"row-start-end":[{row:["auto",{span:[gt]},vt]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",vt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",vt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",vt,t]}],"min-w":[{"min-w":["min","max","fit",vt,lt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[wt]},wt,vt]}],h:[{h:[vt,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",vt,lt]}],"max-h":[{"max-h":[vt,t,"min","max","fit"]}],"font-size":[{text:["base",wt,ct]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pt]}],"font-family":[{font:[bt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",vt]}],"line-clamp":[{"line-clamp":["none",mt,pt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",vt,lt]}],"list-image":[{"list-image":["none",vt]}],"list-style-type":[{list:["none","disc","decimal",vt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",lt]}],"underline-offset":[{"underline-offset":["auto",vt,lt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",vt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",vt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[dt])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ut]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ft]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[vt,lt]}],"outline-w":[{outline:[lt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[lt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wt,yt]}],"shadow-color":[{shadow:[bt]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",wt,vt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",vt]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",vt]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",vt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[gt,vt]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",vt]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",vt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",vt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[lt,pt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Nt=et(Pt);const jt=(...e)=>Nt(He(e)),Mt=e=>{const t=document.documentElement;switch(e.split("-")[1]){case"xs":t.style.setProperty("--markdown-font-size","0.75rem");break;case"sm":t.style.setProperty("--markdown-font-size","0.875rem");break;case"base":t.style.setProperty("--markdown-font-size","1rem");break;case"lg":t.style.setProperty("--markdown-font-size","1.125rem");break;case"xl":t.style.setProperty("--markdown-font-size","1.25rem")}},At=()=>{if("undefined"!=typeof window&&window.localStorage){const e=window.localStorage.getItem("color-theme");if("string"==typeof e)return e;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}return"light"},It=ye,Tt=a.forwardRef((({className:t="",...n},r)=>e.jsx(xe,{ref:r,className:jt("border-b",t),...n})));Tt.displayName="AccordionItem";const Ot=a.forwardRef((({className:t="",children:n,...r},o)=>e.jsx(Ce,{className:"flex",children:e.jsxs(Se,{ref:o,className:jt("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...r,children:[n,e.jsx(Le,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})));Ot.displayName=Se.displayName;const Lt=a.forwardRef((({className:t="",children:n,...r},o)=>e.jsx(ke,{ref:o,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:e.jsx("div",{className:jt("pb-4 pt-0",t),children:n})})));Lt.displayName=ke.displayName;var Dt=Object.defineProperty,Ft=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,Bt=(e,t,n)=>t in e?Dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$t=(e,t)=>{for(var n in t||(t={}))zt.call(t,n)&&Bt(e,n,t[n]);if(Vt)for(var n of Vt(t))Ht.call(t,n)&&Bt(e,n,t[n]);return e},Wt=(e,t)=>Ft(e,_t(t)),Ut=(e,t)=>{var n={};for(var r in e)zt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Vt)for(var r of Vt(e))t.indexOf(r)<0&&Ht.call(e,r)&&(n[r]=e[r]);return n},Kt=Object.defineProperty,Gt=Object.defineProperties,Xt=Object.getOwnPropertyDescriptors,qt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,Qt=(e,t,n)=>t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jt=(e,t)=>{for(var n in t||(t={}))Yt.call(t,n)&&Qt(e,n,t[n]);if(qt)for(var n of qt(t))Zt.call(t,n)&&Qt(e,n,t[n]);return e},en=(e,t)=>Gt(e,Xt(t)),tn=(e,t)=>{var n={};for(var r in e)Yt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&qt)for(var r of qt(e))t.indexOf(r)<0&&Zt.call(e,r)&&(n[r]=e[r]);return n};function nn(...e){}function rn(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t),{length:o}=n;if(r.length!==o)return!1;for(const r of n)if(e[r]!==t[r])return!1;return!0}function on(e,t){if(function(e){return"function"==typeof e}(e)){return e(function(e){return"function"==typeof e}(t)?t():t)}return e}function an(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function sn(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function ln(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function cn(e){return e}function un(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function dn(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function fn(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function pn(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}function mn(...e){for(const t of e)if(void 0!==t)return t}function hn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function gn(e){if(!function(e){return!!e&&!!t.isValidElement(e)&&("ref"in e.props||"ref"in e)}(e))return null;return $t({},e.props).ref||e.ref}var vn,bn="undefined"!=typeof window&&!!(null==(vn=window.document)?void 0:vn.createElement);function wn(e){return e?"self"in e?e.document:e.ownerDocument||document:document}function yn(e){return e?"self"in e?e.self:wn(e).defaultView||window:self}function xn(e,t=!1){const{activeElement:n}=wn(e);if(!(null==n?void 0:n.nodeName))return null;if(Sn(n)&&n.contentDocument)return xn(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=wn(n).getElementById(e);if(t)return t}}return n}function Cn(e,t){return e===t||e.contains(t)}function Sn(e){return"IFRAME"===e.tagName}function kn(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==En.indexOf(e.type)}var En=["button","color","file","image","reset","submit"];function Rn(e){if("function"==typeof e.checkVisibility)return e.checkVisibility();const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function Pn(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function Nn(e){return e.isContentEditable||Pn(e)}function jn(e){let t=0,n=0;if(Pn(e))t=e.selectionStart||0,n=e.selectionEnd||0;else if(e.isContentEditable){const r=wn(e).getSelection();if((null==r?void 0:r.rangeCount)&&r.anchorNode&&Cn(e,r.anchorNode)&&r.focusNode&&Cn(e,r.focusNode)){const o=r.getRangeAt(0),i=o.cloneRange();i.selectNodeContents(e),i.setEnd(o.startContainer,o.startOffset),t=i.toString().length,i.setEnd(o.endContainer,o.endOffset),n=i.toString().length}}return{start:t,end:n}}function Mn(e,t){const n=null==e?void 0:e.getAttribute("role");return n&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(n)?n:t}function An(e,t){var n;const r=Mn(e);if(!r)return t;return null!=(n={menu:"menuitem",listbox:"option",tree:"treeitem"}[r])?n:t}function In(e){if(!e)return null;const t=e=>"auto"===e||"scroll"===e;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:n}=getComputedStyle(e);if(t(n))return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:n}=getComputedStyle(e);if(t(n))return e}return In(e.parentElement)||document.scrollingElement||document.body}function Tn(e,...t){/text|search|password|tel|url/i.test(e.type)&&e.setSelectionRange(...t)}function On(e,t){const n=e.map(((e,t)=>[t,e]));let r=!1;return n.sort((([e,n],[o,i])=>{const a=t(n),s=t(i);return a===s?0:a&&s?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(a,s)?(e>o&&(r=!0),-1):(e<o&&(r=!0),1):0})),r?n.map((([e,t])=>t)):e}function Ln(){return bn&&!!navigator.maxTouchPoints}function Dn(){return!!bn&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function Fn(){return bn&&Dn()&&/apple/i.test(navigator.vendor)}function _n(e){return Boolean(e.currentTarget&&!Cn(e.currentTarget,e.target))}function Vn(e){return e.target===e.currentTarget}function zn(e){const t=e.currentTarget;if(!t)return!1;const n=Dn();if(n&&!e.metaKey)return!1;if(!n&&!e.ctrlKey)return!1;const r=t.tagName.toLowerCase();return"a"===r||("button"===r&&"submit"===t.type||"input"===r&&"submit"===t.type)}function Hn(e){const t=e.currentTarget;if(!t)return!1;const n=t.tagName.toLowerCase();return!!e.altKey&&("a"===n||("button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type))}function Bn(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=en(Jt({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function $n(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function Wn(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Cn(n,r)}function Un(e,t,n,r){const o=(e=>{const t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)})((()=>{e.removeEventListener(t,i,!0),n()})),i=()=>{o(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),o}function Kn(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(Kn(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}for(const e of o)e()}}var Gn=$t({},a),Xn=Gn.useId;Gn.useDeferredValue;var qn=Gn.useInsertionEffect,Yn=bn?t.useLayoutEffect:t.useEffect;function Zn(e){const n=t.useRef(e);return Yn((()=>{n.current=e})),n}function Qn(e){const n=t.useRef((()=>{throw new Error("Cannot call an event handler while rendering.")}));return qn?qn((()=>{n.current=e})):n.current=e,t.useCallback(((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)}),[])}function Jn(e){const[n,r]=t.useState(null);return Yn((()=>{if(null==n)return;if(!e)return;let t=null;return e((e=>(t=e,n))),()=>{e(t)}}),[n,e]),[n,r]}function er(...e){return t.useMemo((()=>{if(e.some(Boolean))return t=>{for(const n of e)hn(n,t)}}),e)}function tr(e){if(Xn){const t=Xn();return e||t}const[n,r]=t.useState(e);return Yn((()=>{if(e||n)return;const t=Math.random().toString(36).slice(2,8);r(`id-${t}`)}),[e,n]),e||n}function nr(e,n){const r=e=>{if("string"==typeof e)return e},[o,i]=t.useState((()=>r(n)));return Yn((()=>{const t=e&&"current"in e?e.current:e;i((null==t?void 0:t.tagName.toLowerCase())||r(n))}),[e,n]),o}function rr(e,n,r){const o=function(e){const[n]=t.useState(e);return n}(r),[i,a]=t.useState(o);return t.useEffect((()=>{const t=e&&"current"in e?e.current:e;if(!t)return;const r=()=>{const e=t.getAttribute(n);a(null==e?o:e)},i=new MutationObserver(r);return i.observe(t,{attributeFilter:[n]}),r(),()=>i.disconnect()}),[e,n,o]),i}function or(e,n){const r=t.useRef(!1);t.useEffect((()=>{if(r.current)return e();r.current=!0}),n),t.useEffect((()=>()=>{r.current=!1}),[])}function ir(){return t.useReducer((()=>[]),[])}function ar(e){return Qn("function"==typeof e?e:()=>e)}function sr(e,n,r=[]){const o=t.useCallback((t=>(e.wrapElement&&(t=e.wrapElement(t)),n(t))),[...r,e.wrapElement]);return Wt($t({},e),{wrapElement:o})}function lr(e=!1,n){const[r,o]=t.useState(null);return{portalRef:er(o,n),portalNode:r,domReady:!e||r}}function cr(e,n,r){const o=e.onLoadedMetadataCapture,i=t.useMemo((()=>Object.assign((()=>{}),Wt($t({},o),{[n]:r}))),[o,n,r]);return[null==o?void 0:o[n],{onLoadedMetadataCapture:i}]}function ur(){t.useEffect((()=>{Kn("mousemove",mr,!0),Kn("mousedown",hr,!0),Kn("mouseup",hr,!0),Kn("keydown",hr,!0),Kn("scroll",hr,!0)}),[]);return Qn((()=>dr))}var dr=!1,fr=0,pr=0;function mr(e){(function(e){const t=e.movementX||e.screenX-fr,n=e.movementY||e.screenY-pr;return fr=e.screenX,pr=e.screenY,t||n||!1})(e)&&(dr=!0)}function hr(){dr=!1}function gr(e){const t=a.forwardRef(((t,n)=>e(Wt($t({},t),{ref:n}))));return t.displayName=e.displayName||e.name,t}function vr(e,t){return a.memo(e,t)}function br(t,n){const r=n,{wrapElement:o,render:i}=r,s=Ut(r,["wrapElement","render"]),l=er(n.ref,gn(i));let c;if(a.isValidElement(i)){const e=Wt($t({},i.props),{ref:l});c=a.cloneElement(i,function(e,t){const n=$t({},e);for(const r in t){if(!an(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?$t($t({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(s,e))}else c=i?i(s):e.jsx(t,$t({},s));return o?o(c):c}function wr(e){const t=(t={})=>e(t);return t.displayName=e.name,t}function yr(t=[],n=[]){const r=a.createContext(void 0),o=a.createContext(void 0),i=()=>a.useContext(r),s=n=>t.reduceRight(((t,r)=>e.jsx(r,Wt($t({},n),{children:t}))),e.jsx(r.Provider,$t({},n)));return{context:r,scopedContext:o,useContext:i,useScopedContext:(e=!1)=>{const t=a.useContext(o),n=i();return e?t:t||n},useProviderContext:()=>{const e=a.useContext(o),t=i();if(!e||e!==t)return t},ContextProvider:s,ScopedContextProvider:t=>e.jsx(s,Wt($t({},t),{children:n.reduceRight(((n,r)=>e.jsx(r,Wt($t({},t),{children:n}))),e.jsx(o.Provider,$t({},t)))}))}}var xr=yr();xr.useContext,xr.useScopedContext;var Cr=xr.useProviderContext,Sr=yr([xr.ContextProvider],[xr.ScopedContextProvider]),kr=Sr.useProviderContext,Er=Sr.ContextProvider,Rr=Sr.ScopedContextProvider,Pr=t.createContext(void 0),Nr=t.createContext(void 0),jr=yr([Er],[Rr]),Mr=jr.useContext;jr.useScopedContext;var Ar=jr.useProviderContext,Ir=jr.ContextProvider,Tr=jr.ScopedContextProvider,Or=yr(),Lr=Or.useContext;Or.useScopedContext,Or.useProviderContext;var Dr=yr([Or.ContextProvider],[Or.ScopedContextProvider]),Fr=Dr.useContext,_r=Dr.useProviderContext,Vr=Dr.ContextProvider,zr=Dr.ScopedContextProvider,Hr=t.createContext(void 0),Br=t.createContext(void 0),$r=yr([Ir,Vr],[Tr,zr]),Wr=$r.useContext,Ur=$r.useScopedContext,Kr=$r.useProviderContext,Gr=$r.ContextProvider,Xr=$r.ScopedContextProvider,qr=t.createContext(!1),Yr=t.createContext(null);function Zr(e,t){const n=e.__unstableInternals;return un(n,"Invalid store"),n[t]}function Qr(e,...t){let n=e,r=n,o=Symbol(),i=nn;const a=new Set,s=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,f=new WeakMap,p=(e,t,n=c)=>(n.add(t),f.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),f.delete(t),n.delete(t)}),m=(e,i,a=!1)=>{var l;if(!an(n,e))return;const p=on(i,n[e]);if(p===n[e])return;if(!a)for(const n of t)null==(l=null==n?void 0:n.setState)||l.call(n,e,p);const m=n;n=en(Jt({},n),{[e]:p});const h=Symbol();o=h,s.add(e);const g=(t,r,o)=>{var i;const a=f.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=d.get(t))||i(),d.set(t,t(n,r)))};for(const e of c)g(e,m);queueMicrotask((()=>{if(o!==h)return;const e=n;for(const e of u)g(e,r,s);r=e,s.clear()}))},h={getState:()=>n,setState:m,__unstableInternals:{setup:e=>(l.add(e),()=>l.delete(e)),init:()=>{const e=a.size,r=Symbol();a.add(r);const o=()=>{a.delete(r),a.size||i()};if(e)return o;const s=(c=n,Object.keys(c)).map((e=>sn(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&an(r,e))return no(t,[e],(t=>{m(e,t[e],!0)}))})))));var c;const u=[];for(const e of l)u.push(e());const d=t.map(eo);return i=sn(...s,...u,...d),o},subscribe:(e,t)=>p(e,t),sync:(e,t)=>(d.set(t,t(n,n)),p(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),p(e,t,u)),pick:e=>Qr(function(e,t){const n={};for(const r of t)an(e,r)&&(n[r]=e[r]);return n}(n,e),h),omit:e=>Qr(function(e,t){const n=Jt({},e);for(const e of t)an(n,e)&&delete n[e];return n}(n,e),h)}};return h}function Jr(e,...t){if(e)return Zr(e,"setup")(...t)}function eo(e,...t){if(e)return Zr(e,"init")(...t)}function to(e,...t){if(e)return Zr(e,"subscribe")(...t)}function no(e,...t){if(e)return Zr(e,"sync")(...t)}function ro(e,...t){if(e)return Zr(e,"batch")(...t)}function oo(e,...t){if(e)return Zr(e,"omit")(...t)}function io(e,...t){if(e)return Zr(e,"pick")(...t)}function ao(...e){const t=e.reduce(((e,t)=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);return r?Object.assign(e,r):e}),{}),n=Qr(t,...e);return Object.assign({},...e,n)}function so(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lo={exports:{}},co={},uo=t;var fo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},po=uo.useState,mo=uo.useEffect,ho=uo.useLayoutEffect,go=uo.useDebugValue;function vo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!fo(e,n)}catch(e){return!0}}var bo="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=po({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return ho((function(){o.value=n,o.getSnapshot=t,vo(o)&&i({inst:o})}),[e,n,t]),mo((function(){return vo(o)&&i({inst:o}),e((function(){vo(o)&&i({inst:o})}))}),[e]),go(n),n};co.useSyncExternalStore=void 0!==uo.useSyncExternalStore?uo.useSyncExternalStore:bo,lo.exports=co;var wo=so(lo.exports),{useSyncExternalStore:yo}=wo,xo=()=>()=>{};function Co(e,t=cn){const n=a.useCallback((t=>e?to(e,null,t):xo()),[e]),r=()=>{const n="string"==typeof t?t:null,r="function"==typeof t?t:null,o=null==e?void 0:e.getState();return r?r(o):o&&n&&an(o,n)?o[n]:void 0};return yo(n,r,r)}function So(e,t){const n=a.useRef({}),r=a.useCallback((t=>e?to(e,null,t):xo()),[e]),o=()=>{const r=null==e?void 0:e.getState();let o=!1;const i=n.current;for(const e in t){const n=t[e];if("function"==typeof n){const t=n(r);t!==i[e]&&(i[e]=t,o=!0)}if("string"==typeof n){if(!r)continue;if(!an(r,n))continue;const t=r[n];t!==i[e]&&(i[e]=t,o=!0)}}return o&&(n.current=$t({},i)),n.current};return yo(r,o,o)}function ko(e,t,n,r){const o=an(t,n)?t[n]:void 0,i=r?t[r]:void 0,a=Zn({value:o,setValue:i});Yn((()=>no(e,[n],((e,t)=>{const{value:r,setValue:o}=a.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),Yn((()=>{if(void 0!==o)return e.setState(n,o),ro(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function Eo(e,t){const[n,r]=a.useState((()=>e(t)));Yn((()=>eo(n)),[n]);const o=a.useCallback((e=>Co(n,e)),[n]);return[a.useMemo((()=>Wt($t({},n),{useState:o})),[n,o]),Qn((()=>{r((n=>e($t($t({},t),n.getState()))))}))]}function Ro(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=mn(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:mn(null==n?void 0:n.renderedItems,[])},a=null==(s=e.store)?void 0:s.__unstablePrivateStore;var s;const l=Qr({items:r,renderedItems:i.renderedItems},a),c=Qr(i,e.store),u=e=>{const t=On(e,(e=>e.element));l.setState("renderedItems",t),c.setState("renderedItems",t)};Jr(c,(()=>eo(l))),Jr(l,(()=>ro(l,["items"],(e=>{c.setState("items",e.items)})))),Jr(l,(()=>ro(l,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame((()=>{const{renderedItems:t}=c.getState();e.renderedItems!==t&&u(e.renderedItems)}));if("function"!=typeof IntersectionObserver)return()=>cancelAnimationFrame(n);const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return wn(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame((()=>u(e.renderedItems))))}),{root:r});for(const t of e.renderedItems)t.element&&o.observe(t.element);return()=>{cancelAnimationFrame(n),o.disconnect()}}))));const d=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const a=Jt(Jt({},r),e);i[n]=a,o.set(e.id,a)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const a=t.slice();return a[i]=r,o.set(e.id,r),a}))}},f=e=>d(e,(e=>l.setState("items",e)),!0);return en(Jt({},c),{registerItem:f,renderItem:e=>sn(f(e),d(e,(e=>l.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=l.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null},__unstablePrivateStore:l})}function Po(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function No(e){const t=[];for(const n of e)t.push(...n);return t}function jo(e){return e.slice().reverse()}var Mo={id:null};function Ao(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function Io(e,t){return e.filter((e=>e.rowId===t))}function To(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function Oo(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function Lo(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Ro(e),o=mn(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=Qr(en(Jt({},r.getState()),{id:mn(e.id,null==n?void 0:n.id,`id-${Math.random().toString(36).slice(2,8)}`),activeId:o,baseElement:mn(null==n?void 0:n.baseElement,null),includesBaseElement:mn(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:mn(null==n?void 0:n.moves,0),orientation:mn(e.orientation,null==n?void 0:n.orientation,"both"),rtl:mn(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:mn(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:mn(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:mn(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:mn(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);Jr(i,(()=>no(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=Ao(e.renderedItems))?void 0:n.id}))}))));const a=(e="next",t={})=>{var n,r;const o=i.getState(),{skip:a=0,activeId:s=o.activeId,focusShift:l=o.focusShift,focusLoop:c=o.focusLoop,focusWrap:u=o.focusWrap,includesBaseElement:d=o.includesBaseElement,renderedItems:f=o.renderedItems,rtl:p=o.rtl}=t,m="up"===e||"down"===e,h="next"===e||"down"===e,g=h?p&&!m:!p||m,v=l&&!a;let b=m?No(function(e,t,n){const r=Oo(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?Ao(o):o[e-1];o[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}(To(f),s,v)):f;if(b=g?jo(b):b,b=m?function(e){const t=To(e),n=Oo(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(en(Jt({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}(b):b,null==s)return null==(n=Ao(b))?void 0:n.id;const w=b.find((e=>e.id===s));if(!w)return null==(r=Ao(b))?void 0:r.id;const y=b.some((e=>e.rowId)),x=b.indexOf(w),C=b.slice(x+1),S=Io(C,w.rowId);if(a){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(S,s),t=e.slice(a)[0]||e[e.length-1];return null==t?void 0:t.id}const k=c&&(m?"horizontal"!==c:"vertical"!==c),E=y&&u&&(m?"horizontal"!==u:"vertical"!==u),R=h?(!y||m)&&k&&d:!!m&&d;if(k){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[Mo]:[],...e.slice(0,r)]}(E&&!R?b:Io(b,w.rowId),s,R),t=Ao(e,s);return null==t?void 0:t.id}if(E){const e=Ao(R?S:C,s);return R?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const P=Ao(S,s);return!P&&R?null:null==P?void 0:P.id};return en(Jt(Jt({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=Ao(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=Ao(jo(i.getState().renderedItems)))?void 0:e.id},next:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),a("next",e)),previous:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),a("previous",e)),down:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),a("down",e)),up:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),a("up",e))})}function Do(e){const t=tr(e.id);return $t({id:t},e)}function Fo(e,t,n){return e=function(e,t,n){return or(t,[n.store]),ko(e,n,"items","setItems"),e}(e,t,n),ko(e,n,"activeId","setActiveId"),ko(e,n,"includesBaseElement"),ko(e,n,"virtualFocus"),ko(e,n,"orientation"),ko(e,n,"rtl"),ko(e,n,"focusLoop"),ko(e,n,"focusWrap"),ko(e,n,"focusShift"),e}var _o=t.createContext(void 0),Vo=yr([Ir,Vr],[Tr,zr]),zo=Vo.useContext,Ho=Vo.useScopedContext,Bo=Vo.useProviderContext,$o=Vo.ContextProvider,Wo=Vo.ScopedContextProvider,Uo=t.createContext(void 0),Ko=t.createContext(!1);function Go(e={}){var t=e,{composite:n,combobox:r}=t,o=tn(t,["composite","combobox"]);const i=["items","renderedItems","moves","orientation","virtualFocus","includesBaseElement","baseElement","focusLoop","focusShift","focusWrap"],a=ao(o.store,oo(n,i),oo(r,i)),s=null==a?void 0:a.getState(),l=Lo(en(Jt({},o),{store:a,includesBaseElement:mn(o.includesBaseElement,null==s?void 0:s.includesBaseElement,!1),orientation:mn(o.orientation,null==s?void 0:s.orientation,"horizontal"),focusLoop:mn(o.focusLoop,null==s?void 0:s.focusLoop,!0)})),c=Ro(),u=Qr(en(Jt({},l.getState()),{selectedId:mn(o.selectedId,null==s?void 0:s.selectedId,o.defaultSelectedId),selectOnMove:mn(o.selectOnMove,null==s?void 0:s.selectOnMove,!0)}),l,a);Jr(u,(()=>no(u,["moves"],(()=>{const{activeId:e,selectOnMove:t}=u.getState();if(!t)return;if(!e)return;const n=l.item(e);n&&(n.dimmed||n.disabled||u.setState("selectedId",n.id))}))));let d=!0;Jr(u,(()=>ro(u,["selectedId"],((e,t)=>{d?n&&e.selectedId===t.selectedId||u.setState("activeId",e.selectedId):d=!0})))),Jr(u,(()=>no(u,["selectedId","renderedItems"],(e=>{if(void 0!==e.selectedId)return;const{activeId:t,renderedItems:n}=u.getState(),r=l.item(t);if(!r||r.disabled||r.dimmed){const e=n.find((e=>!e.disabled&&!e.dimmed));u.setState("selectedId",null==e?void 0:e.id)}else u.setState("selectedId",r.id)})))),Jr(u,(()=>no(u,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return no(c,["renderedItems"],(e=>{const n=e.renderedItems;n.some((e=>!e.tabId))&&n.forEach(((e,n)=>{if(e.tabId)return;const r=t[n];r&&c.renderItem(en(Jt({},e),{tabId:r.id}))}))}))}))));let f=null;return Jr(u,(()=>{const e=()=>{f=u.getState().selectedId},t=()=>{d=!1,u.setState("selectedId",f)};return n&&"setSelectElement"in n?sn(no(n,["value"],e),no(n,["mounted"],t)):r?sn(no(r,["selectedValue"],e),no(r,["mounted"],t)):void 0})),en(Jt(Jt({},l),u),{panels:c,setSelectedId:e=>u.setState("selectedId",e),select:e=>{u.setState("selectedId",e),l.move(e)}})}function Xo(e={}){const n=zo(),r=Wr()||n;e=Wt($t({},e),{composite:void 0!==e.composite?e.composite:r,combobox:void 0!==e.combobox?e.combobox:n});const[o,i]=Eo(Go,e);return function(e,n,r){or(n,[r.composite,r.combobox]),ko(e=Fo(e,n,r),r,"selectedId","setSelectedId"),ko(e,r,"selectOnMove");const[o,i]=Eo((()=>e.panels),{});return or(i,[e,i]),Object.assign(t.useMemo((()=>Wt($t({},e),{panels:o})),[e,o]),{composite:r.composite,combobox:r.combobox})}(o,i,e)}var qo=yr([Vr],[zr]),Yo=qo.useContext,Zo=qo.useScopedContext,Qo=qo.useProviderContext,Jo=qo.ContextProvider,ei=qo.ScopedContextProvider,ti={id:null};function ni(e,t){return t&&e.item(t)||null}var ri=Symbol("FOCUS_SILENTLY");function oi(e,t,n){if(!t)return!1;if(t===n)return!1;return!!e.item(t.id)}var ii=wr((function(e){var n=e,{store:r,shouldRegisterItem:o=!0,getItem:i=cn,element:a}=n,s=Ut(n,["store","shouldRegisterItem","getItem","element"]);const l=Lr();r=r||l;const c=tr(s.id),u=t.useRef(a);return t.useEffect((()=>{const e=u.current;if(!c)return;if(!e)return;if(!o)return;const t=i({id:c,element:e});return null==r?void 0:r.renderItem(t)}),[c,o,i,r]),pn(s=Wt($t({},s),{ref:er(u,s.ref)}))}));gr((function(e){return br("div",ii(e))}));var ai=t.createContext(!0),si="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function li(e){return!!e.matches(si)&&(!!Rn(e)&&!e.closest("[inert]"))}function ci(e){if(!li(e))return!1;if(function(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}(e))return!1;if(!("form"in e))return!0;if(!e.form)return!0;if(e.checked)return!0;if("radio"!==e.type)return!0;const t=e.form.elements.namedItem(e.name);if(!t)return!0;if(!("length"in t))return!0;const n=xn(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||n.name!==e.name)))}function ui(e,t){const n=Array.from(e.querySelectorAll(si));t&&n.unshift(e);const r=n.filter(li);return r.forEach(((e,t)=>{if(Sn(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...ui(n))}})),r}function di(e,t,n){const r=Array.from(e.querySelectorAll(si)),o=r.filter(ci);return t&&ci(e)&&o.unshift(e),o.forEach(((e,t)=>{if(Sn(e)&&e.contentDocument){const r=di(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function fi(e,t){return function(e,t,n,r){const o=xn(e),i=ui(e,t),a=i.indexOf(o),s=i.slice(a+1);return s.find(ci)||(n?i.find(ci):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function pi(e,t){return function(e,t,n,r){const o=xn(e),i=ui(e,t).reverse(),a=i.indexOf(o);return i.slice(a+1).find(ci)||null}(document.body,!1)}function mi(e){const t=xn(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function hi(e){const t=xn(e);if(!t)return!1;if(Cn(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function gi(e){!hi(e)&&li(e)&&e.focus()}function vi(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}var bi=Fn(),wi=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],yi=Symbol("safariFocusAncestor");function xi(e,t){e&&(e[yi]=t)}function Ci(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function Si(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function ki(e,t){return Qn((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var Ei=!0;function Ri(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(Ei=!1))}function Pi(e){e.metaKey||e.ctrlKey||e.altKey||(Ei=!0)}var Ni=wr((function(e){var n=e,{focusable:r=!0,accessibleWhenDisabled:o,autoFocus:i,onFocusVisible:a}=n,s=Ut(n,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const l=t.useRef(null);t.useEffect((()=>{r&&(Kn("mousedown",Ri,!0),Kn("keydown",Pi,!0))}),[r]),bi&&t.useEffect((()=>{if(!r)return;const e=l.current;if(!e)return;if(!Ci(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const n=()=>queueMicrotask((()=>e.focus()));for(const e of t)e.addEventListener("mouseup",n);return()=>{for(const e of t)e.removeEventListener("mouseup",n)}}),[r]);const c=r&&fn(s),u=!!c&&!o,[d,f]=t.useState(!1);t.useEffect((()=>{r&&u&&d&&f(!1)}),[r,u,d]),t.useEffect((()=>{if(!r)return;if(!d)return;const e=l.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{li(e)||f(!1)}));return t.observe(e),()=>t.disconnect()}),[r,d]);const p=ki(s.onKeyPressCapture,c),m=ki(s.onMouseDownCapture,c),h=ki(s.onClickCapture,c),g=s.onMouseDown,v=Qn((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!r)return;const t=e.currentTarget;if(!bi)return;if(_n(e))return;if(!kn(t)&&!Ci(t))return;let n=!1;const o=()=>{n=!0};t.addEventListener("focusin",o,{capture:!0,once:!0});const i=function(e){for(;e&&!li(e);)e=e.closest(si);return e||null}(t.parentElement);xi(i,!0),Un(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),xi(i,!1),n||gi(t)}))})),b=(e,t)=>{if(t&&(e.currentTarget=t),!r)return;const n=e.currentTarget;n&&mi(n)&&(null==a||a(e),e.defaultPrevented||(n.dataset.focusVisible="true",f(!0)))},w=s.onKeyDownCapture,y=Qn((e=>{if(null==w||w(e),e.defaultPrevented)return;if(!r)return;if(d)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!Vn(e))return;const t=e.currentTarget;Un(t,"focusout",(()=>b(e,t)))})),x=s.onFocusCapture,C=Qn((e=>{if(null==x||x(e),e.defaultPrevented)return;if(!r)return;if(!Vn(e))return void f(!1);const t=e.currentTarget,n=()=>b(e,t);Ei||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||("SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable||!("combobox"!==e.getAttribute("role")||!e.dataset.name):wi.includes(r)))}(e.target)?Un(e.target,"focusout",n):f(!1)})),S=s.onBlur,k=Qn((e=>{null==S||S(e),r&&Wn(e)&&(e.currentTarget.removeAttribute("data-focus-visible"),f(!1))})),E=t.useContext(ai),R=Qn((e=>{r&&i&&e&&E&&queueMicrotask((()=>{mi(e)||li(e)&&e.focus()}))})),P=nr(l),N=r&&function(e){return!e||"button"===e||"summary"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(P),j=r&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(P),M=s.style,A=t.useMemo((()=>u?$t({pointerEvents:"none"},M):M),[u,M]);return pn(s=Wt($t({"data-focus-visible":r&&d||void 0,"data-autofocus":i||void 0,"aria-disabled":c||void 0},s),{ref:er(l,R,s.ref),style:A,tabIndex:Si(r,u,N,j,s.tabIndex),disabled:!(!j||!u)||void 0,contentEditable:c?void 0:s.contentEditable,onKeyPressCapture:p,onClickCapture:h,onMouseDownCapture:m,onMouseDown:v,onKeyDownCapture:y,onFocusCapture:C,onBlur:k}))}));gr((function(e){return br("div",Ni(e))}));function ji(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?kn(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(kn(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var Mi=Symbol("command"),Ai=wr((function(e){var n=e,{clickOnEnter:r=!0,clickOnSpace:o=!0}=n,i=Ut(n,["clickOnEnter","clickOnSpace"]);const a=t.useRef(null),[s,l]=t.useState(!1);t.useEffect((()=>{a.current&&l(kn(a.current))}),[]);const[c,u]=t.useState(!1),d=t.useRef(!1),f=fn(i),[p,m]=cr(i,Mi,!0),h=i.onKeyDown,g=Qn((e=>{null==h||h(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(p)return;if(f)return;if(!Vn(e))return;if(Pn(t))return;if(t.isContentEditable)return;const n=r&&"Enter"===e.key,i=o&&" "===e.key,a="Enter"===e.key&&!r,s=" "===e.key&&!o;if(a||s)e.preventDefault();else if(n||i){const r=ji(e);if(n){if(!r){e.preventDefault();const n=e,{view:r}=n,o=Ut(n,["view"]),i=()=>$n(t,o);bn&&/firefox\//i.test(navigator.userAgent)?Un(t,"keyup",i):queueMicrotask(i)}}else i&&(d.current=!0,r||(e.preventDefault(),u(!0)))}})),v=i.onKeyUp,b=Qn((e=>{if(null==v||v(e),e.defaultPrevented)return;if(p)return;if(f)return;if(e.metaKey)return;const t=o&&" "===e.key;if(d.current&&t&&(d.current=!1,!ji(e))){e.preventDefault(),u(!1);const t=e.currentTarget,n=e,{view:r}=n,o=Ut(n,["view"]);queueMicrotask((()=>$n(t,o)))}}));return i=Wt($t($t({"data-active":c||void 0,type:s?"button":void 0},m),i),{ref:er(a,i.ref),onKeyDown:g,onKeyUp:b}),i=Ni(i)}));gr((function(e){return br("button",Ai(e))}));function Ii(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function Ti(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=In(e);if(!a)return;const s=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(a,r);let l,c;for(let e=0;e<i.length;e+=1){const i=l;if(l=n(e),!l)break;if(l===i)continue;const a=null==(o=ni(t,l))?void 0:o.element;if(!a)continue;const u=Ii(a,r)-s,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=i);break}c=d}return l}var Oi=wr((function(n){var r=n,{store:o,rowId:i,preventScrollOnKeyDown:a=!1,moveOnKeyPress:s=!0,tabbable:l=!1,getItem:c,"aria-setsize":u,"aria-posinset":d}=r,f=Ut(r,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const p=Fr();o=o||p;const m=tr(f.id),h=t.useRef(null),g=t.useContext(Br),v=fn(f)&&!f.accessibleWhenDisabled,{rowId:b,baseElement:w,isActiveItem:y,ariaSetSize:x,ariaPosInSet:C,isTabbable:S}=So(o,{rowId:e=>i||(e&&(null==g?void 0:g.baseElement)&&g.baseElement===e.baseElement?g.id:void 0),baseElement:e=>(null==e?void 0:e.baseElement)||void 0,isActiveItem:e=>!!e&&e.activeId===m,ariaSetSize:e=>null!=u?u:e&&(null==g?void 0:g.ariaSetSize)&&g.baseElement===e.baseElement?g.ariaSetSize:void 0,ariaPosInSet(e){if(null!=d)return d;if(!e)return;if(!(null==g?void 0:g.ariaPosInSet))return;if(g.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===b));return g.ariaPosInSet+t.findIndex((e=>e.id===m))},isTabbable(e){if(!(null==e?void 0:e.renderedItems.length))return!0;if(e.virtualFocus)return!1;if(l)return!0;if(null===e.activeId)return!1;const t=null==o?void 0:o.item(e.activeId);return!!(null==t?void 0:t.disabled)||(!(null==t?void 0:t.element)||e.activeId===m)}}),k=t.useCallback((e=>{var t;const n=Wt($t({},e),{id:m||e.id,rowId:b,disabled:!!v,children:null==(t=e.element)?void 0:t.textContent});return c?c(n):n}),[m,b,v,c]),E=f.onFocus,R=t.useRef(!1),P=Qn((e=>{if(null==E||E(e),e.defaultPrevented)return;if(_n(e))return;if(!m)return;if(!o)return;if(function(e,t){return!Vn(e)&&oi(t,e.target)}(e,o))return;const{virtualFocus:t,baseElement:n}=o.getState();if(o.setActiveId(m),Nn(e.currentTarget)&&function(e,t=!1){if(Pn(e))e.setSelectionRange(t?e.value.length:0,e.value.length);else if(e.isContentEditable){const n=wn(e).getSelection();null==n||n.selectAllChildren(e),t&&(null==n||n.collapseToEnd())}}(e.currentTarget),!t)return;if(!Vn(e))return;if(Nn(r=e.currentTarget)||"INPUT"===r.tagName&&!kn(r))return;var r;if(!(null==n?void 0:n.isConnected))return;Fn()&&e.currentTarget.hasAttribute("data-autofocus")&&e.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),R.current=!0;e.relatedTarget===n||oi(o,e.relatedTarget)?function(e){e[ri]=!0,e.focus({preventScroll:!0})}(n):n.focus()})),N=f.onBlurCapture,j=Qn((e=>{if(null==N||N(e),e.defaultPrevented)return;const t=null==o?void 0:o.getState();(null==t?void 0:t.virtualFocus)&&R.current&&(R.current=!1,e.preventDefault(),e.stopPropagation())})),M=f.onKeyDown,A=ar(a),I=ar(s),T=Qn((e=>{if(null==M||M(e),e.defaultPrevented)return;if(!Vn(e))return;if(!o)return;const{currentTarget:t}=e,n=o.getState(),r=o.item(m),i=!!(null==r?void 0:r.rowId),a="horizontal"!==n.orientation,s="vertical"!==n.orientation,l=()=>!!i||(!!s||(!n.baseElement||!Pn(n.baseElement))),c={ArrowUp:(i||a)&&o.up,ArrowRight:(i||s)&&o.next,ArrowDown:(i||a)&&o.down,ArrowLeft:(i||s)&&o.previous,Home:()=>{if(l())return!i||e.ctrlKey?null==o?void 0:o.first():null==o?void 0:o.previous(-1)},End:()=>{if(l())return!i||e.ctrlKey?null==o?void 0:o.last():null==o?void 0:o.next(-1)},PageUp:()=>Ti(t,o,null==o?void 0:o.up,!0),PageDown:()=>Ti(t,o,null==o?void 0:o.down)}[e.key];if(c){if(Nn(t)){const n=jn(t),r=s&&"ArrowLeft"===e.key,o=s&&"ArrowRight"===e.key,i=a&&"ArrowUp"===e.key,l=a&&"ArrowDown"===e.key;if(o||l){const{length:e}=function(e){if(Pn(e))return e.value;if(e.isContentEditable){const t=wn(e).createRange();return t.selectNodeContents(e),t.toString()}return""}(t);if(n.end!==e)return}else if((r||i)&&0!==n.start)return}const n=c();if(A(e)||void 0!==n){if(!I(e))return;e.preventDefault(),o.move(n)}}})),O=t.useMemo((()=>({id:m,baseElement:w})),[m,w]);return f=sr(f,(t=>e.jsx(Hr.Provider,{value:O,children:t})),[O]),f=Wt($t({id:m,"data-active-item":y||void 0},f),{ref:er(h,f.ref),tabIndex:S?f.tabIndex:-1,onFocus:P,onBlurCapture:j,onKeyDown:T}),f=Ai(f),f=ii(Wt($t({store:o},f),{getItem:k,shouldRegisterItem:!!m&&f.shouldRegisterItem})),pn(Wt($t({},f),{"aria-setsize":x,"aria-posinset":C}))})),Li=vr(gr((function(e){return br("button",Oi(e))}))),Di=wr((function(n){var r,o=n,{store:i,getItem:a}=o,s=Ut(o,["store","getItem"]);const l=Zo();un(i=i||l,!1);const c=tr(),u=s.id||c,d=fn(s),f=t.useCallback((e=>{const t=Wt($t({},e),{dimmed:d});return a?a(t):t}),[d,a]),p=s.onClick,m=Qn((e=>{null==p||p(e),e.defaultPrevented||null==i||i.setSelectedId(u)})),h=i.panels.useState((e=>{var t;return null==(t=e.items.find((e=>e.tabId===u)))?void 0:t.id})),g=!!c&&s.shouldRegisterItem,v=i.useState((e=>!!u&&e.activeId===u)),b=i.useState((e=>!!u&&e.selectedId===u)),w=i.useState((e=>!!i.item(e.activeId))),y=v||b&&!w,x=b||null==(r=s.accessibleWhenDisabled)||r;if(Co(i.combobox||i.composite,"virtualFocus")&&(s=Wt($t({},s),{tabIndex:-1})),s=Wt($t({id:u,role:"tab","aria-selected":b,"aria-controls":h||void 0},s),{onClick:m}),i.composite){const t={id:u,accessibleWhenDisabled:x,store:i.composite,shouldRegisterItem:y&&g,rowId:s.rowId,render:s.render};s=Wt($t({},s),{render:e.jsx(Li,Wt($t({},t),{render:i.combobox&&i.composite!==i.combobox?e.jsx(Li,Wt($t({},t),{store:i.combobox})):t.render}))})}return s=Oi(Wt($t({store:i},s),{accessibleWhenDisabled:x,getItem:f,shouldRegisterItem:g}))})),Fi=vr(gr((function(e){return br("button",Di(e))})));function _i(t={}){const n=Xo(t);return e.jsx(Jo,{value:n,children:t.children})}function Vi(e,t,n){return Qn((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;if(r.isPropagationStopped())return;if(!Vn(r))return;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(r))return;if(function(e){const t=e.target;return!(t&&!Pn(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const i=e.getState(),a=null==(o=ni(e,i.activeId))?void 0:o.element;if(!a)return;const s=r,{view:l}=s,c=Ut(s,["view"]);a!==(null==n?void 0:n.current)&&a.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(a,r.type,c)||r.preventDefault(),r.currentTarget.contains(a)&&r.stopPropagation()}))}var zi=wr((function(n){var r=n,{store:o,composite:i=!0,focusOnMove:a=i,moveOnKeyPress:s=!0}=r,l=Ut(r,["store","composite","focusOnMove","moveOnKeyPress"]);const c=_r();un(o=o||c,!1);const u=t.useRef(null),d=t.useRef(null),f=function(e){const[n,r]=t.useState(!1),o=t.useCallback((()=>r(!0)),[]),i=e.useState((t=>ni(e,t.activeId)));return t.useEffect((()=>{const e=null==i?void 0:i.element;n&&e&&(r(!1),e.focus({preventScroll:!0}))}),[i,n]),o}(o),p=o.useState("moves"),[,m]=Jn(i?o.setBaseElement:null);t.useEffect((()=>{var e;if(!o)return;if(!p)return;if(!i)return;if(!a)return;const{activeId:t}=o.getState(),n=null==(e=ni(o,t))?void 0:e.element;n&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(Jt({block:"nearest",inline:"nearest"},t))):e.focus()}(n)}),[o,p,i,a]),Yn((()=>{if(!o)return;if(!p)return;if(!i)return;const{baseElement:e,activeId:t}=o.getState();if(!(null===t))return;if(!e)return;const n=d.current;d.current=null,n&&Bn(n,{relatedTarget:e}),mi(e)||e.focus()}),[o,p,i]);const h=o.useState("activeId"),g=o.useState("virtualFocus");Yn((()=>{var e;if(!o)return;if(!i)return;if(!g)return;const t=d.current;if(d.current=null,!t)return;const n=(null==(e=ni(o,h))?void 0:e.element)||xn(t);n!==t&&Bn(t,{relatedTarget:n})}),[o,h,g,i]);const v=Vi(o,l.onKeyDownCapture,d),b=Vi(o,l.onKeyUpCapture,d),w=l.onFocusCapture,y=Qn((e=>{if(null==w||w(e),e.defaultPrevented)return;if(!o)return;const{virtualFocus:t}=o.getState();if(!t)return;const n=e.relatedTarget,r=function(e){const t=e[ri];return delete e[ri],t}(e.currentTarget);Vn(e)&&r&&(e.stopPropagation(),d.current=n)})),x=l.onFocus,C=Qn((e=>{if(null==x||x(e),e.defaultPrevented)return;if(!i)return;if(!o)return;const{relatedTarget:t}=e,{virtualFocus:n}=o.getState();n?Vn(e)&&!oi(o,t)&&queueMicrotask(f):Vn(e)&&o.setActiveId(null)})),S=l.onBlurCapture,k=Qn((e=>{var t;if(null==S||S(e),e.defaultPrevented)return;if(!o)return;const{virtualFocus:n,activeId:r}=o.getState();if(!n)return;const i=null==(t=ni(o,r))?void 0:t.element,a=e.relatedTarget,s=oi(o,a),l=d.current;if(d.current=null,Vn(e)&&s)a===i?l&&l!==a&&Bn(l,e):i?Bn(i,e):l&&Bn(l,e),e.stopPropagation();else{!oi(o,e.target)&&i&&Bn(i,e)}})),E=l.onKeyDown,R=ar(s),P=Qn((e=>{var t;if(null==E||E(e),e.nativeEvent.isComposing)return;if(e.defaultPrevented)return;if(!o)return;if(!Vn(e))return;const{orientation:n,renderedItems:r,activeId:i}=o.getState(),a=ni(o,i);if(null==(t=null==a?void 0:a.element)?void 0:t.isConnected)return;const s="horizontal"!==n,l="vertical"!==n,c=r.some((e=>!!e.rowId));if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&Pn(e.currentTarget))return;const u={ArrowUp:(c||s)&&(()=>{if(c){const e=function(e){return function(e,t){return e.find((e=>!e.disabled))}(No(jo(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(r);return null==e?void 0:e.id}return null==o?void 0:o.last()}),ArrowRight:(c||l)&&o.first,ArrowDown:(c||s)&&o.first,ArrowLeft:(c||l)&&o.last,Home:o.first,End:o.last,PageUp:o.first,PageDown:o.last},d=u[e.key];if(d){const t=d();if(void 0!==t){if(!R(e))return;e.preventDefault(),o.move(t)}}}));l=sr(l,(t=>e.jsx(Vr,{value:o,children:t})),[o]);const N=o.useState((e=>{var t;if(o&&i&&e.virtualFocus)return null==(t=ni(o,e.activeId))?void 0:t.id}));l=Wt($t({"aria-activedescendant":N},l),{ref:er(u,m,l.ref),onKeyDownCapture:v,onKeyUpCapture:b,onFocusCapture:y,onFocus:C,onBlurCapture:k,onKeyDown:P});const j=o.useState((e=>i&&(e.virtualFocus||null===e.activeId)));return l=Ni($t({focusable:j},l))}));gr((function(e){return br("div",zi(e))}));var Hi=wr((function(t){var n=t,{store:r}=n,o=Ut(n,["store"]);const i=Qo();un(r=r||i,!1);const a=r.useState((e=>"both"===e.orientation?void 0:e.orientation));return o=sr(o,(t=>e.jsx(ei,{value:r,children:t})),[r]),r.composite&&(o=$t({focusable:!1},o)),o=$t({role:"tablist","aria-orientation":a},o),o=zi($t({store:r},o))})),Bi=gr((function(e){return br("div",Hi(e))}));function $i(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function Wi(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=t.endsWith("ms")?1:1e3,r=Number.parseFloat(t||"0s")*n;return r>e?r:e}),0)}function Ui(e,t,n){return!(n||!1===t||e&&!t)}var Ki=wr((function(r){var o=r,{store:i,alwaysVisible:a}=o,s=Ut(o,["store","alwaysVisible"]);const l=Cr();un(i=i||l,!1);const c=t.useRef(null),u=tr(s.id),[d,f]=t.useState(null),p=i.useState("open"),m=i.useState("mounted"),h=i.useState("animated"),g=i.useState("contentElement"),v=Co(i.disclosure,"contentElement");Yn((()=>{c.current&&(null==i||i.setContentElement(c.current))}),[i]),Yn((()=>{let e;return null==i||i.setState("animated",(t=>(e=t,!0))),()=>{void 0!==e&&(null==i||i.setState("animated",e))}}),[i]),Yn((()=>{if(h){if(null==g?void 0:g.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{f(p?"enter":m?"leave":null)}));f(null)}}),[h,g,p,m]),Yn((()=>{if(!i)return;if(!h)return;if(!d)return;if(!g)return;const e=()=>null==i?void 0:i.setState("animating",!1),t=()=>n.flushSync(e);if("leave"===d&&p)return;if("enter"===d&&!p)return;if("number"==typeof h){return $i(h,t)}const{transitionDuration:r,animationDuration:o,transitionDelay:a,animationDelay:s}=getComputedStyle(g),{transitionDuration:l="0",animationDuration:c="0",transitionDelay:u="0",animationDelay:f="0"}=v?getComputedStyle(v):{},m=Wi(a,s,u,f)+Wi(r,o,l,c);if(!m)return"enter"===d&&i.setState("animated",!1),void e();return $i(Math.max(m-1e3/60,0),t)}),[i,h,g,v,p,d]),s=sr(s,(t=>e.jsx(Rr,{value:i,children:t})),[i]);const b=Ui(m,s.hidden,a),w=s.style,y=t.useMemo((()=>b?Wt($t({},w),{display:"none"}):w),[b,w]);return pn(s=Wt($t({id:u,"data-open":p||void 0,"data-enter":"enter"===d||void 0,"data-leave":"leave"===d||void 0,hidden:b},s),{ref:er(u?i.setContentElement:null,c,s.ref),style:y}))})),Gi=gr((function(e){return br("div",Ki(e))}));function Xi(e={}){const t=ao(e.store,oo(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=mn(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=mn(e.animated,null==n?void 0:n.animated,!1),i=Qr({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:mn(null==n?void 0:n.contentElement,null),disclosureElement:mn(null==n?void 0:n.disclosureElement,null)},t);return Jr(i,(()=>no(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),Jr(i,(()=>to(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),Jr(i,(()=>no(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),en(Jt({},i),{disclosure:e.disclosure,setOpen:e=>i.setState("open",e),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",(e=>!e)),stopAnimation:()=>i.setState("animating",!1),setContentElement:e=>i.setState("contentElement",e),setDisclosureElement:e=>i.setState("disclosureElement",e)})}function qi(e,t,n){return or(t,[n.store,n.disclosure]),ko(e,n,"open","setOpen"),ko(e,n,"mounted","setMounted"),ko(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function Yi(e={}){const[t,n]=Eo(Xi,e);return qi(t,n,e)}gr((function(t){var n=t,{unmountOnHide:r}=n,o=Ut(n,["unmountOnHide"]);const i=Cr();return!1===Co(o.store||i,(e=>!r||(null==e?void 0:e.mounted)))?null:e.jsx(Gi,$t({},o))}));var Zi=wr((function(n){var r=n,{store:o,unmountOnHide:i,tabId:a,getItem:s,scrollRestoration:l,scrollElement:c}=r,u=Ut(r,["store","unmountOnHide","tabId","getItem","scrollRestoration","scrollElement"]);const d=Qo();un(o=o||d,!1);const f=t.useRef(null),p=tr(u.id),m=Co(o.panels,(()=>{var e;return a||(null==(e=null==o?void 0:o.panels.item(p))?void 0:e.tabId)})),h=Yi({open:Co(o,(e=>!!m&&e.selectedId===m))}),g=Co(h,"mounted"),v=t.useRef(new Map),b=Qn((()=>{const e=f.current;return e?c?"function"==typeof c?c(e):"current"in c?c.current:c:e:null}));t.useEffect((()=>{var e,t;if(!l)return;if(!g)return;const n=b();if(!n)return;if("reset"===l)return void n.scroll(0,0);if(!m)return;const r=v.current.get(m);n.scroll(null!=(e=null==r?void 0:r.x)?e:0,null!=(t=null==r?void 0:r.y)?t:0);const o=()=>{v.current.set(m,{x:n.scrollLeft,y:n.scrollTop})};return n.addEventListener("scroll",o),()=>{n.removeEventListener("scroll",o)}}),[l,g,m,b,o]);const[w,y]=t.useState(!1);t.useEffect((()=>{const e=f.current;if(!e)return;const t=di(e);y(!!t.length)}),[]);const x=t.useCallback((e=>{const t=Wt($t({},e),{id:p||e.id,tabId:a});return s?s(t):t}),[p,a,s]),C=u.onKeyDown,S=Qn((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!(null==o?void 0:o.composite))return;const t={ArrowLeft:o.previous,ArrowRight:o.next,Home:o.first,End:o.last}[e.key];if(!t)return;const{selectedId:n}=o.getState(),r=t({activeId:n});r&&(e.preventDefault(),o.move(r))}));return u=sr(u,(t=>e.jsx(ei,{value:o,children:t})),[o]),u=Wt($t({id:p,role:"tabpanel","aria-labelledby":m||void 0},u),{children:i&&!g?null:u.children,ref:er(f,u.ref),onKeyDown:S}),u=Ni($t({focusable:!o.composite&&!w},u)),u=Ki($t({store:h},u)),u=ii(Wt($t({store:o.panels},u),{getItem:x}))})),Qi=gr((function(e){return br("div",Zi(e))})),Ji=wr((function(e){var t=e,{orientation:n="horizontal"}=t,r=Ut(t,["orientation"]);return r=$t({role:"separator","aria-orientation":n},r)}));gr((function(e){return br("hr",Ji(e))}));var ea=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=Fr();un(n=n||o,!1);const i=n.useState((e=>"horizontal"===e.orientation?"vertical":"horizontal"));return r=Ji(Wt($t({},r),{orientation:i}))}));function ta(e={}){return Xi(e)}function na(e,t,n){return qi(e,t,n)}function ra(e={}){var t=e,{popover:n}=t,r=tn(t,["popover"]);const o=ao(r.store,oo(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),a=ta(en(Jt({},r),{store:o})),s=mn(r.placement,null==i?void 0:i.placement,"bottom"),l=Qr(en(Jt({},a.getState()),{placement:s,currentPlacement:s,anchorElement:mn(null==i?void 0:i.anchorElement,null),popoverElement:mn(null==i?void 0:i.popoverElement,null),arrowElement:mn(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),a,o);return en(Jt(Jt({},a),l),{setAnchorElement:e=>l.setState("anchorElement",e),setPopoverElement:e=>l.setState("popoverElement",e),setArrowElement:e=>l.setState("arrowElement",e),render:()=>l.setState("rendered",Symbol("rendered"))})}function oa(e,t,n){return or(t,[n.popover]),ko(e,n,"placement"),na(e,t,n)}function ia(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=ra(en(Jt({},e),{placement:mn(e.placement,null==n?void 0:n.placement,"bottom")})),o=mn(e.timeout,null==n?void 0:n.timeout,500),i=Qr(en(Jt({},r.getState()),{timeout:o,showTimeout:mn(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:mn(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:mn(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return en(Jt(Jt({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function aa(e,t,n){return ko(e,n,"timeout"),ko(e,n,"showTimeout"),ko(e,n,"hideTimeout"),oa(e,t,n)}function sa(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=ia(en(Jt({},e),{placement:mn(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:mn(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=Qr(en(Jt({},r.getState()),{type:mn(e.type,null==n?void 0:n.type,"description"),skipTimeout:mn(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return Jt(Jt({},r),o)}function la(e={}){const[t,n]=Eo(sa,e);return function(e,t,n){return ko(e,n,"type"),ko(e,n,"skipTimeout"),aa(e,t,n)}(t,n,e)}gr((function(e){return br("hr",ea(e))}));var ca=yr([Ir],[Tr]);ca.useContext,ca.useScopedContext;var ua=ca.useProviderContext,da=ca.ContextProvider,fa=ca.ScopedContextProvider,pa=yr([da],[fa]),ma=pa.useContext,ha=pa.useProviderContext,ga=pa.ContextProvider,va=pa.ScopedContextProvider;function ba(e){return[e.clientX,e.clientY]}function wa(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,a=e-1;i<e;a=i++){const[s,l]=t[i],[c,u]=t[a],[,d]=t[0===a?e-1:a-1]||[0,0],f=(l-u)*(n-s)-(s-c)*(r-l);if(u<l){if(r>=u&&r<l){if(0===f)return!0;f>0&&(r===u?r>d&&(o=!o):o=!o)}}else if(l<u){if(r>l&&r<=u){if(0===f)return!0;f<0&&(r===u?r<d&&(o=!o):o=!o)}}else if(r===l&&(n>=c&&n<=s||n>=s&&n<=c))return!0}return o}function ya(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:a}=n,[s,l]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[a,s]=e;return[a<i?"left":a>r?"right":null,s<n?"top":s>o?"bottom":null]}(t,n),c=[t];return s?("top"!==l&&c.push(["left"===s?a:o,r]),c.push(["left"===s?o:a,r]),c.push(["left"===s?o:a,i]),"bottom"!==l&&c.push(["left"===s?a:o,i])):"top"===l?(c.push([a,r]),c.push([a,i]),c.push([o,i]),c.push([o,r])):(c.push([a,i]),c.push([a,r]),c.push([o,r]),c.push([o,i])),c}var xa=t.createContext(null),Ca=wr((function(e){return e=Wt($t({},e),{style:$t({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})}));gr((function(e){return br("span",Ca(e))}));var Sa=wr((function(e){return e=Wt($t({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:$t({position:"fixed",top:0,left:0},e.style)}),e=Ca(e)})),ka=gr((function(e){return br("span",Sa(e))}));function Ea(e){queueMicrotask((()=>{null==e||e.focus()}))}var Ra=wr((function(r){var o=r,{preserveTabOrder:i,preserveTabOrderAnchor:a,portalElement:s,portalRef:l,portal:c=!0}=o,u=Ut(o,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const d=t.useRef(null),f=er(d,u.ref),p=t.useContext(xa),[m,h]=t.useState(null),[g,v]=t.useState(null),b=t.useRef(null),w=t.useRef(null),y=t.useRef(null),x=t.useRef(null);return Yn((()=>{const e=d.current;if(!e||!c)return void h(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:wn(e).createElement("div")}(e,s);if(!t)return void h(null);const n=t.isConnected;if(!n){const n=p||function(e){return wn(e).body}(e);n.appendChild(t)}return t.id||(t.id=e.id?`portal/${e.id}`:function(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).slice(2,8)}`}()),h(t),hn(l,t),n?void 0:()=>{t.remove(),hn(l,null)}}),[c,s,p,l]),Yn((()=>{if(!c)return;if(!i)return;if(!a)return;const e=wn(a).createElement("span");return e.style.position="fixed",a.insertAdjacentElement("afterend",e),v(e),()=>{e.remove(),v(null)}}),[c,i,a]),t.useEffect((()=>{if(!m)return;if(!i)return;let e=0;const t=t=>{if(!Wn(t))return;const n="focusin"===t.type;if(cancelAnimationFrame(e),n)return function(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e);for(const e of t)n(e)}(m);e=requestAnimationFrame((()=>{!function(e,t){const n=di(e,t);for(const e of n)vi(e)}(m,!0)}))};return m.addEventListener("focusin",t,!0),m.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),m.removeEventListener("focusin",t,!0),m.removeEventListener("focusout",t,!0)}}),[m,i]),u=sr(u,(t=>{if(t=e.jsx(xa.Provider,{value:m||p,children:t}),!c)return t;if(!m)return e.jsx("span",{ref:f,id:u.id,style:{position:"fixed"},hidden:!0});t=e.jsxs(e.Fragment,{children:[i&&m&&e.jsx(ka,{ref:w,"data-focus-trap":u.id,className:"__focus-trap-inner-before",onFocus:e=>{Wn(e,m)?Ea(fi()):Ea(b.current)}}),t,i&&m&&e.jsx(ka,{ref:y,"data-focus-trap":u.id,className:"__focus-trap-inner-after",onFocus:e=>{Wn(e,m)?Ea(pi()):Ea(x.current)}})]}),m&&(t=n.createPortal(t,m));let r=e.jsxs(e.Fragment,{children:[i&&m&&e.jsx(ka,{ref:b,"data-focus-trap":u.id,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===x.current)&&Wn(e,m)?Ea(w.current):Ea(pi())}}),i&&e.jsx("span",{"aria-owns":null==m?void 0:m.id,style:{position:"fixed"}}),i&&m&&e.jsx(ka,{ref:x,"data-focus-trap":u.id,className:"__focus-trap-outer-after",onFocus:e=>{if(Wn(e,m))Ea(y.current);else{const e=fi();if(e===w.current)return void requestAnimationFrame((()=>{var e;return null==(e=fi())?void 0:e.focus()}));Ea(e)}}})]});return g&&i&&(r=n.createPortal(r,g)),e.jsxs(e.Fragment,{children:[r,t]})}),[m,p,c,u.id,i,g]),u=Wt($t({},u),{ref:f})}));gr((function(e){return br("div",Ra(e))}));var Pa=t.createContext(0);function Na({level:n,children:r}){const o=t.useContext(Pa),i=Math.max(Math.min(n||o+1,6),1);return e.jsx(Pa.Provider,{value:i,children:r})}var ja=wr((function(t){var n=t,{autoFocusOnShow:r=!0}=n,o=Ut(n,["autoFocusOnShow"]);return o=sr(o,(t=>e.jsx(ai.Provider,{value:r,children:t})),[r])}));gr((function(e){return br("div",ja(e))}));var Ma=new WeakMap;function Aa(e,t,n){Ma.has(e)||Ma.set(e,new Map);const r=Ma.get(e),o=r.get(t);if(!o)return r.set(t,n()),()=>{var e;null==(e=r.get(t))||e(),r.delete(t)};const i=n(),a=()=>{i(),o(),r.delete(t)};return r.set(t,a),()=>{r.get(t)===a&&(i(),r.set(t,o))}}function Ia(e,t,n){return Aa(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function Ta(e,t,n){return Aa(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function Oa(e,t){if(!e)return()=>{};return Aa(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var La=["SCRIPT","STYLE"];function Da(e){return`__ariakit-dialog-snapshot-${e}`}function Fa(e,t,n){return!La.includes(t.tagName)&&(!!function(e,t){const n=wn(t),r=Da(e);if(!n.body[r])return!0;for(;;){if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}}(e,t)&&!n.some((e=>e&&Cn(t,e))))}function _a(e,t,n,r){for(let o of t){if(!(null==o?void 0:o.isConnected))continue;const i=t.some((e=>!!e&&(e!==o&&e.contains(o)))),a=wn(o),s=o;for(;o.parentElement&&o!==a.body;){if(null==r||r(o.parentElement,s),!i)for(const r of o.parentElement.children)Fa(e,r,t)&&n(r,s);o=o.parentElement}}}function Va(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return null!=n&&(""===n||("true"===n||(!t.length||t.some((e=>n===e)))))}function za(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function Ha(e,t=""){return sn(Ta(e,za("",!0),!0),Ta(e,za(t,!0),!0))}function Ba(e,t){if(e[za(t,!0)])return!0;const n=za(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function $a(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));_a(e,t,(t=>{Va(t,...r)||n.unshift(function(e,t=""){return sn(Ta(e,za(),!0),Ta(e,za(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(Ha(t,e))}));return()=>{for(const e of n)e()}}function Wa({store:e,type:n,listener:r,capture:o,domReady:i}){const a=Qn(r),s=Co(e,"open"),l=t.useRef(!1);Yn((()=>{if(!s)return;if(!i)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{l.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,s,i]),t.useEffect((()=>{if(!s)return;return Kn(n,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;if(!n)return;if(!o)return;if(!function(e){return"HTML"===e.tagName||Cn(wn(e).body,e)}(o))return;if(Cn(n,o))return;if(function(e,t){if(!e)return!1;if(Cn(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=wn(e).getElementById(n);if(t)return Cn(e,t)}return!1}(r,o))return;if(o.hasAttribute("data-focus-trap"))return;if(function(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}(t,n))return;var i;l.current&&!Ba(o,n.id)||((i=o)&&i[yi]||a(t))}),o)}),[s,o])}function Ua(e,t){return"function"==typeof e?e(t):!!e}function Ka(e,n,r){const o=function(e){const n=t.useRef();return t.useEffect((()=>{if(e)return Kn("mousedown",(e=>{n.current=e.target}),!0);n.current=null}),[e]),n}(Co(e,"open")),i={store:e,domReady:r,capture:!0};Wa(Wt($t({},i),{type:"click",listener:t=>{const{contentElement:r}=e.getState(),i=o.current;i&&Rn(i)&&Ba(i,null==r?void 0:r.id)&&Ua(n,t)&&e.hide()}})),Wa(Wt($t({},i),{type:"focusin",listener:t=>{const{contentElement:r}=e.getState();r&&t.target!==wn(r)&&Ua(n,t)&&e.hide()}})),Wa(Wt($t({},i),{type:"contextmenu",listener:t=>{Ua(n,t)&&e.hide()}}))}var Ga=t.createContext({});function Xa(e,r,o){const i=function({attribute:e,contentId:r,contentElement:o,enabled:i}){const[a,s]=ir(),l=t.useCallback((()=>{if(!i)return!1;if(!o)return!1;const{body:t}=wn(o),n=t.getAttribute(e);return!n||n===r}),[a,i,o,e,r]);return t.useEffect((()=>{if(!i)return;if(!r)return;if(!o)return;const{body:t}=wn(o);if(l())return t.setAttribute(e,r),()=>t.removeAttribute(e);const a=new MutationObserver((()=>n.flushSync(s)));return a.observe(t,{attributeFilter:[e]}),()=>a.disconnect()}),[a,i,r,o,l,e]),l}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:r,enabled:o});t.useEffect((()=>{if(!i())return;if(!e)return;const t=wn(e),n=yn(e),{documentElement:r,body:o}=t,a=r.style.getPropertyValue("--scrollbar-width"),s=a?Number.parseInt(a):n.innerWidth-r.clientWidth,l=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(r),c=Dn()&&!(bn&&navigator.platform.startsWith("Mac")&&!Ln());return sn((d="--scrollbar-width",f=`${s}px`,(u=r)?Aa(u,d,(()=>{const e=u.style.getPropertyValue(d);return u.style.setProperty(d,f),()=>{e?u.style.setProperty(d,e):u.style.removeProperty(d)}})):()=>{}),c?(()=>{var e,t;const{scrollX:r,scrollY:i,visualViewport:a}=n,c=null!=(e=null==a?void 0:a.offsetLeft)?e:0,u=null!=(t=null==a?void 0:a.offsetTop)?t:0,d=Oa(o,{position:"fixed",overflow:"hidden",top:-(i-Math.floor(u))+"px",left:-(r-Math.floor(c))+"px",right:"0",[l]:`${s}px`});return()=>{d(),n.scrollTo({left:r,top:i,behavior:"instant"})}})():Oa(o,{overflow:"hidden",[l]:`${s}px`}));var u,d,f}),[i,e])}function qa(){return"inert"in HTMLElement.prototype}function Ya(e,t){if(!("style"in e))return nn;if(qa())return Ta(e,"inert",!0);const n=di(e,!0).map((e=>{if(null==t?void 0:t.some((t=>t&&Cn(t,e))))return nn;const n=Aa(e,"focus",(()=>(e.focus=nn,()=>{delete e.focus})));return sn(Ia(e,"tabindex","-1"),n)}));return sn(...n,function(e){return Ia(e,"aria-hidden","true")}(e),Oa(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}wr((function(e){return e}));var Za=gr((function(e){return br("div",e)}));function Qa({store:n,backdrop:r,alwaysVisible:o,hidden:i}){const a=t.useRef(null),s=Yi({disclosure:n}),l=Co(n,"contentElement");t.useEffect((()=>{const e=a.current,t=l;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[l]),Yn((()=>{const e=null==l?void 0:l.id;if(!e)return;const t=a.current;return t?Ha(t,e):void 0}),[l]);const c=Ki({ref:a,store:s,role:"presentation","data-backdrop":(null==l?void 0:l.id)||"",alwaysVisible:o,hidden:null!=i?i:void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!r)return null;if(t.isValidElement(r))return e.jsx(Za,Wt($t({},c),{render:r}));const u="boolean"!=typeof r?r:"div";return e.jsx(Za,Wt($t({},c),{render:e.jsx(u,{})}))}Object.assign(Za,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"].reduce(((e,t)=>(e[t]=gr((function(e){return br(t,e)})),e)),{}));var Ja=Fn();function es(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?li(n)?n:null:n:null}var ts=wr((function(n){var r=n,{store:o,open:i,onClose:a,focusable:s=!0,modal:l=!0,portal:c=!!l,backdrop:u=!!l,hideOnEscape:d=!0,hideOnInteractOutside:f=!0,getPersistentElements:p,preventBodyScroll:m=!!l,autoFocusOnShow:h=!0,autoFocusOnHide:g=!0,initialFocus:v,finalFocus:b,unmountOnHide:w,unstable_treeSnapshotKey:y}=r,x=Ut(r,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const C=kr(),S=t.useRef(null),k=function(e={}){const[t,n]=Eo(ta,e);return na(t,n,e)}({store:o||C,open:i,setOpen(e){if(e)return;const t=S.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});a&&t.addEventListener("close",a,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&k.setOpen(!0)}}),{portalRef:E,domReady:R}=lr(c,x.portalRef),P=x.preserveTabOrder,N=Co(k,(e=>P&&!l&&e.mounted)),j=tr(x.id),M=Co(k,"open"),A=Co(k,"mounted"),I=Co(k,"contentElement"),T=Ui(A,x.hidden,x.alwaysVisible);Xa(I,j,m&&!T),Ka(k,f,R);const{wrapElement:O,nestedDialogs:L}=function(n){const r=t.useContext(Ga),[o,i]=t.useState([]),a=t.useCallback((e=>{var t;return i((t=>[...t,e])),sn(null==(t=r.add)?void 0:t.call(r,e),(()=>{i((t=>t.filter((t=>t!==e))))}))}),[r]);Yn((()=>no(n,["open","contentElement"],(e=>{var t;if(e.open&&e.contentElement)return null==(t=r.add)?void 0:t.call(r,n)}))),[n,r]);const s=t.useMemo((()=>({store:n,add:a})),[n,a]);return{wrapElement:t.useCallback((t=>e.jsx(Ga.Provider,{value:s,children:t})),[s]),nestedDialogs:o}}(k);x=sr(x,O,[O]),Yn((()=>{if(!M)return;const e=S.current,t=xn(e,!0);t&&"BODY"!==t.tagName&&(e&&Cn(e,t)||k.setDisclosureElement(t))}),[k,M]),Ja&&t.useEffect((()=>{if(!A)return;const{disclosureElement:e}=k.getState();if(!e)return;if(!kn(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),Un(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||gi(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[k,A]),t.useEffect((()=>{if(!A)return;if(!R)return;const e=S.current;if(!e)return;const t=yn(e),n=t.visualViewport||t,r=()=>{var n,r;const o=null!=(r=null==(n=t.visualViewport)?void 0:n.height)?r:t.innerHeight;e.style.setProperty("--dialog-viewport-height",`${o}px`)};return r(),n.addEventListener("resize",r),()=>{n.removeEventListener("resize",r)}}),[A,R]),t.useEffect((()=>{if(!l)return;if(!A)return;if(!R)return;const e=S.current;if(!e)return;return e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=wn(e).createElement("button");return n.type="button",n.tabIndex=-1,n.textContent="Dismiss popup",Object.assign(n.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),n.addEventListener("click",t),e.prepend(n),()=>{n.removeEventListener("click",t),n.remove()}}(e,k.hide)}),[k,l,A,R]),Yn((()=>{if(!qa())return;if(M)return;if(!A)return;if(!R)return;const e=S.current;return e?Ya(e):void 0}),[M,A,R]);const D=M&&R;Yn((()=>{if(!j)return;if(!D)return;const e=S.current;return function(e,t){const{body:n}=wn(t[0]),r=[];return _a(e,t,(t=>{r.push(Ta(t,Da(e),!0))})),sn(Ta(n,Da(e),!0),(()=>{for(const e of r)e()}))}(j,[e])}),[j,D,y]);const F=Qn(p);Yn((()=>{if(!j)return;if(!D)return;const{disclosureElement:e}=k.getState(),t=[S.current,...F()||[],...L.map((e=>e.getState().contentElement))];return l?sn($a(j,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return _a(e,t,(e=>{Va(e,...r)||function(e,...t){if(!e)return!1;const n=e.getAttribute("data-focus-trap");return null!=n&&(!t.length||""!==n&&t.some((e=>n===e)))}(e,...r)||n.unshift(Ya(e,t))}),(e=>{e.hasAttribute("role")&&(t.some((t=>t&&Cn(t,e)))||n.unshift(Ia(e,"role","none")))})),()=>{for(const e of n)e()}}(j,t)):$a(j,[e,...t])}),[j,k,D,F,L,l,y]);const _=!!h,V=ar(h),[z,H]=t.useState(!1);t.useEffect((()=>{if(!M)return;if(!_)return;if(!R)return;if(!(null==I?void 0:I.isConnected))return;const e=es(v,!0)||I.querySelector("[data-autofocus=true],[autofocus]")||function(e,t,n){const[r]=di(e,t,n);return r||null}(I,!0,c&&N)||I,t=li(e);V(t?e:null)&&(H(!0),queueMicrotask((()=>{e.focus(),Ja&&t&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[M,_,R,I,v,c,N,V]);const B=!!g,$=ar(g),[W,U]=t.useState(!1);t.useEffect((()=>{if(M)return U(!0),()=>U(!1)}),[M]);const K=t.useCallback(((e,t=!0)=>{const{disclosureElement:n}=k.getState();if(function(e){const t=xn();return!(!t||e&&Cn(e,t)||!li(t))}(e))return;let r=es(b)||n;if(null==r?void 0:r.id){const e=wn(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!li(r)){const e=r.closest("[data-dialog]");if(null==e?void 0:e.id){const t=wn(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&li(r);o||!t?$(o?r:null)&&o&&(null==r||r.focus({preventScroll:!0})):requestAnimationFrame((()=>K(e,!1)))}),[k,b,$]),G=t.useRef(!1);Yn((()=>{if(M)return;if(!W)return;if(!B)return;const e=S.current;G.current=!0,K(e)}),[M,W,R,B,K]),t.useEffect((()=>{if(!W)return;if(!B)return;const e=S.current;return()=>{G.current?G.current=!1:K(e)}}),[W,B,K]);const X=ar(d);t.useEffect((()=>{if(!R)return;if(!A)return;return Kn("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=S.current;if(!t)return;if(Ba(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=k.getState();("BODY"===n.tagName||Cn(t,n)||!r||Cn(r,n))&&X(e)&&k.hide()}),!0)}),[k,R,A,X]);const q=(x=sr(x,(t=>e.jsx(Na,{level:l?1:void 0,children:t})),[l])).hidden,Y=x.alwaysVisible;x=sr(x,(t=>u?e.jsxs(e.Fragment,{children:[e.jsx(Qa,{store:k,backdrop:u,hidden:q,alwaysVisible:Y}),t]}):t),[k,u,q,Y]);const[Z,Q]=t.useState(),[J,ee]=t.useState();return x=sr(x,(t=>e.jsx(Rr,{value:k,children:e.jsx(Pr.Provider,{value:Q,children:e.jsx(Nr.Provider,{value:ee,children:t})})})),[k]),x=Wt($t({id:j,"data-dialog":"",role:"dialog",tabIndex:s?-1:void 0,"aria-labelledby":Z,"aria-describedby":J},x),{ref:er(S,x.ref)}),x=ja(Wt($t({},x),{autoFocusOnShow:z})),x=Ki($t({store:k},x)),x=Ni(Wt($t({},x),{focusable:s})),x=Ra(Wt($t({portal:c},x),{portalRef:E,preserveTabOrder:N}))}));function ns(t,n=kr){return gr((function(r){const o=n();return Co(r.store||o,(e=>!r.unmountOnHide||(null==e?void 0:e.mounted)||!!r.open))?e.jsx(t,$t({},r)):null}))}ns(gr((function(e){return br("div",ts(e))})),kr);const rs=["top","right","bottom","left"],os=Math.min,is=Math.max,as=Math.round,ss=Math.floor,ls=e=>({x:e,y:e}),cs={left:"right",right:"left",bottom:"top",top:"bottom"},us={start:"end",end:"start"};function ds(e,t,n){return is(e,os(t,n))}function fs(e,t){return"function"==typeof e?e(t):e}function ps(e){return e.split("-")[0]}function ms(e){return e.split("-")[1]}function hs(e){return"x"===e?"y":"x"}function gs(e){return"y"===e?"height":"width"}function vs(e){return["top","bottom"].includes(ps(e))?"y":"x"}function bs(e){return hs(vs(e))}function ws(e){return e.replace(/start|end/g,(e=>us[e]))}function ys(e){return e.replace(/left|right|bottom|top/g,(e=>cs[e]))}function xs(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Cs(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ss(e,t,n){let{reference:r,floating:o}=e;const i=vs(t),a=bs(t),s=gs(a),l=ps(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ms(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function ks(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=fs(t,e),m=xs(p),h=s[f?"floating"===d?"reference":"floating":d],g=Cs(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=Cs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-y.top+m.top)/w.y,bottom:(y.bottom-g.bottom+m.bottom)/w.y,left:(g.left-y.left+m.left)/w.x,right:(y.right-g.right+m.right)/w.x}}function Es(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rs(e){return rs.some((t=>e[t]>=0))}function Ps(){return"undefined"!=typeof window}function Ns(e){return As(e)?(e.nodeName||"").toLowerCase():"#document"}function js(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ms(e){var t;return null==(t=(As(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function As(e){return!!Ps()&&(e instanceof Node||e instanceof js(e).Node)}function Is(e){return!!Ps()&&(e instanceof Element||e instanceof js(e).Element)}function Ts(e){return!!Ps()&&(e instanceof HTMLElement||e instanceof js(e).HTMLElement)}function Os(e){return!(!Ps()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof js(e).ShadowRoot)}function Ls(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Hs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ds(e){return["table","td","th"].includes(Ns(e))}function Fs(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function _s(e){const t=Vs(),n=Is(e)?Hs(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Vs(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function zs(e){return["html","body","#document"].includes(Ns(e))}function Hs(e){return js(e).getComputedStyle(e)}function Bs(e){return Is(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $s(e){if("html"===Ns(e))return e;const t=e.assignedSlot||e.parentNode||Os(e)&&e.host||Ms(e);return Os(t)?t.host:t}function Ws(e){const t=$s(e);return zs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ts(t)&&Ls(t)?t:Ws(t)}function Us(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ws(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=js(o);if(i){const e=Ks(a);return t.concat(a,a.visualViewport||[],Ls(o)?o:[],e&&n?Us(e):[])}return t.concat(o,Us(o,[],n))}function Ks(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gs(e){const t=Hs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ts(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=as(n)!==i||as(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Xs(e){return Is(e)?e:e.contextElement}function qs(e){const t=Xs(e);if(!Ts(t))return ls(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Gs(t);let a=(i?as(n.width):n.width)/r,s=(i?as(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ys=ls(0);function Zs(e){const t=js(e);return Vs()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ys}function Qs(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Xs(e);let a=ls(1);t&&(r?Is(r)&&(a=qs(r)):a=qs(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==js(e))&&t}(i,n,r)?Zs(i):ls(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=js(i),t=r&&Is(r)?js(r):r;let n=e,o=Ks(n);for(;o&&r&&t!==n;){const e=qs(o),t=o.getBoundingClientRect(),r=Hs(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=js(o),o=Ks(n)}}return Cs({width:u,height:d,x:l,y:c})}function Js(e,t){const n=Bs(e).scrollLeft;return t?t.left+n:Qs(Ms(e)).left+n}function el(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=js(e),r=Ms(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Vs();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Ms(e),n=Bs(e),r=e.ownerDocument.body,o=is(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=is(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Js(e);const s=-n.scrollTop;return"rtl"===Hs(r).direction&&(a+=is(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Ms(e));else if(Is(t))r=function(e,t){const n=Qs(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ts(e)?qs(e):ls(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Zs(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Cs(r)}function tl(e,t){const n=$s(e);return!(n===t||!Is(n)||zs(n))&&("fixed"===Hs(n).position||tl(n,t))}function nl(e,t,n){const r=Ts(t),o=Ms(t),i="fixed"===n,a=Qs(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ls(0);if(r||!r&&!i)if(("body"!==Ns(t)||Ls(o))&&(s=Bs(t)),r){const e=Qs(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Js(o));let c=0,u=0;if(o&&!r&&!i){const e=o.getBoundingClientRect();u=e.top+s.scrollTop,c=e.left+s.scrollLeft-Js(o,e)}return{x:a.left+s.scrollLeft-l.x-c,y:a.top+s.scrollTop-l.y-u,width:a.width,height:a.height}}function rl(e){return"static"===Hs(e).position}function ol(e,t){if(!Ts(e)||"fixed"===Hs(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ms(e)===n&&(n=n.ownerDocument.body),n}function il(e,t){const n=js(e);if(Fs(e))return n;if(!Ts(e)){let t=$s(e);for(;t&&!zs(t);){if(Is(t)&&!rl(t))return t;t=$s(t)}return n}let r=ol(e,t);for(;r&&Ds(r)&&rl(r);)r=ol(r,t);return r&&zs(r)&&rl(r)&&!_s(r)?n:r||function(e){let t=$s(e);for(;Ts(t)&&!zs(t);){if(_s(t))return t;if(Fs(t))return null;t=$s(t)}return null}(e)||n}const al={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Ms(r),s=!!t&&Fs(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ls(1);const u=ls(0),d=Ts(r);if((d||!d&&!i)&&(("body"!==Ns(r)||Ls(a))&&(l=Bs(r)),Ts(r))){const e=Qs(r);c=qs(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Ms,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Fs(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Us(e,[],!1).filter((e=>Is(e)&&"body"!==Ns(e))),o=null;const i="fixed"===Hs(e).position;let a=i?$s(e):e;for(;Is(a)&&!zs(a);){const t=Hs(a),n=_s(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ls(a)&&!n&&tl(e,a))?r=r.filter((e=>e!==a)):o=t,a=$s(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=el(t,n,o);return e.top=is(r.top,e.top),e.right=os(r.right,e.right),e.bottom=os(r.bottom,e.bottom),e.left=is(r.left,e.left),e}),el(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:il,getElementRects:async function(e){const t=this.getOffsetParent||il,n=this.getDimensions,r=await n(e.floating);return{reference:nl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Gs(e);return{width:t,height:n}},getScale:qs,isElement:Is,isRTL:function(e){return"rtl"===Hs(e).direction}};function sl(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Xs(e),u=o||i?[...c?Us(c):[],...Us(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=Ms(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-ss(u)+"px "+-ss(o.clientWidth-(c+d))+"px "+-ss(o.clientHeight-(u+f))+"px "+-ss(c)+"px",threshold:is(0,os(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let h=l?Qs(e):null;return l&&function t(){const r=Qs(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const ll=ks,cl=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=ps(n),s=ms(n),l="y"===vs(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=fs(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},ul=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=fs(e,t),c={x:n,y:r},u=await ks(t,l),d=vs(ps(o)),f=hs(d);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=ds(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=ds(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},dl=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=fs(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=ps(o),b=ps(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=f||(b||!h?[ys(s)]:function(e){const t=ys(e);return[ws(e),t,ws(t)]}(s));f||"none"===m||y.push(...function(e,t,n,r){const o=ms(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(ps(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(ws)))),i}(s,h,m,w));const x=[s,...y],C=await ks(t,g),S=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ms(e),o=bs(e),i=gs(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ys(a)),[a,ys(a)]}(o,a,w);S.push(C[e[0]],C[e[1]])}if(k=[...k,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,R;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(R=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:R.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=k.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},fl=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=fs(e,t),l=await ks(t,s),c=ps(n),u=ms(n),d="y"===vs(n),{width:f,height:p}=r.floating;let m,h;"top"===c||"bottom"===c?(m=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,m="end"===u?"top":"bottom");const g=p-l[m],v=f-l[h],b=!t.middlewareData.shift;let w=g,y=v;if(d){const e=f-l.left-l.right;y=u||b?os(v,e):e}else{const e=p-l.top-l.bottom;w=u||b?os(g,e):e}if(b&&!u){const e=is(l.left,0),t=is(l.right,0),n=is(l.top,0),r=is(l.bottom,0);d?y=f-2*(0!==e||0!==t?e+t:is(l.left,l.right)):w=p-2*(0!==n||0!==r?n+r:is(l.top,l.bottom))}await a({...t,availableWidth:y,availableHeight:w});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},pl=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=fs(e,t);switch(r){case"referenceHidden":{const e=Es(await ks(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Rs(e)}}}case"escaped":{const e=Es(await ks(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Rs(e)}}}default:return{}}}}},ml=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=fs(e,t)||{};if(null==c)return{};const d=xs(u),f={x:n,y:r},p=bs(o),m=gs(p),h=await a.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let S=C?C[w]:0;S&&await(null==a.isElement?void 0:a.isElement(C))||(S=s.floating[w]||i.floating[m]);const k=y/2-x/2,E=S/2-h[m]/2-1,R=os(d[v],E),P=os(d[b],E),N=R,j=S-h[m]-P,M=S/2-h[m]/2+k,A=ds(N,M,j),I=!l.arrow&&null!=ms(o)&&M!==A&&i.reference[m]/2-(M<N?R:P)-h[m]/2<0,T=I?M<N?M-N:M-j:0;return{[p]:f[p]+T,data:{[p]:A,centerOffset:M-A-T,...I&&{alignmentOffset:T}},reset:I}}}),hl=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=fs(e,t),u={x:n,y:r},d=vs(o),f=hs(d);let p=u[f],m=u[d];const h=fs(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,b;const e="y"===f?"width":"height",t=["top","left"].includes(ps(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},gl=(e,t,n)=>{const r=new Map,o={platform:al,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ss(c,r,l),f=r,p={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,data:b,reset:w}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...b}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Ss(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};function vl(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return Wt($t({},o),{toJSON:()=>o})}function bl(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return vl();const{x:t,y:n,width:r,height:o}=e;return vl(t,n,r,o)}(r):n.getBoundingClientRect()}}}function wl(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function yl(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function xl(e,t){return cl((({placement:n})=>{var r;const o=((null==e?void 0:e.clientHeight)||0)/2,i="number"==typeof t.gutter?t.gutter+o:null!=(r=t.gutter)?r:o;return{crossAxis:!!n.split("-")[1]?void 0:t.shift,mainAxis:i,alignmentAxis:t.shift}}))}function Cl(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return un(!t||t.every(wl),!1),dl({padding:e.overflowPadding,fallbackPlacements:t})}function Sl(e){if(e.slide||e.overlap)return ul({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:hl()})}function kl(e){return fl({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,a=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${a}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${a}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function El(e,t){if(e)return ml({element:e,padding:t.arrowPadding})}var Rl=wr((function(n){var r=n,{store:o,modal:i=!1,portal:a=!!i,preserveTabOrder:s=!0,autoFocusOnShow:l=!0,wrapperProps:c,fixed:u=!1,flip:d=!0,shift:f=0,slide:p=!0,overlap:m=!1,sameWidth:h=!1,fitViewport:g=!1,gutter:v,arrowPadding:b=4,overflowPadding:w=8,getAnchorRect:y,updatePosition:x}=r,C=Ut(r,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const S=Ar();un(o=o||S,!1);const k=o.useState("arrowElement"),E=o.useState("anchorElement"),R=o.useState("disclosureElement"),P=o.useState("popoverElement"),N=o.useState("contentElement"),j=o.useState("placement"),M=o.useState("mounted"),A=o.useState("rendered"),I=t.useRef(null),[T,O]=t.useState(!1),{portalRef:L,domReady:D}=lr(a,C.portalRef),F=Qn(y),_=Qn(x),V=!!x;Yn((()=>{if(!(null==P?void 0:P.isConnected))return;P.style.setProperty("--popover-overflow-padding",`${w}px`);const e=bl(E,F),t=async()=>{if(!M)return;k||(I.current=I.current||document.createElement("div"));const t=k||I.current,n=[xl(t,{gutter:v,shift:f}),Cl({flip:d,overflowPadding:w}),Sl({slide:p,overlap:m,overflowPadding:w}),El(t,{arrowPadding:b}),kl({sameWidth:h,fitViewport:g,overflowPadding:w})],r=await gl(e,P,{placement:j,strategy:u?"fixed":"absolute",middleware:n});null==o||o.setState("currentPlacement",r.placement),O(!0);const i=yl(r.x),a=yl(r.y);if(Object.assign(P.style,{top:"0",left:"0",transform:`translate3d(${i}px,${a}px,0)`}),t&&r.middlewareData.arrow){const{x:e,y:n}=r.middlewareData.arrow,o=r.placement.split("-")[0],i=t.clientWidth/2,a=t.clientHeight/2,s=null!=e?e+i:-i,l=null!=n?n+a:-a;P.style.setProperty("--popover-transform-origin",{top:`${s}px calc(100% + ${a}px)`,bottom:`${s}px ${-a}px`,left:`calc(100% + ${i}px) ${l}px`,right:`${-i}px ${l}px`}[o]),Object.assign(t.style,{left:null!=e?`${e}px`:"",top:null!=n?`${n}px`:"",[o]:"100%"})}},n=sl(e,P,(async()=>{V?(await _({updatePosition:t}),O(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{O(!1),n()}}),[o,A,P,k,E,P,j,M,D,u,d,f,p,m,h,g,v,b,w,F,V,_]),Yn((()=>{if(!M)return;if(!D)return;if(!(null==P?void 0:P.isConnected))return;if(!(null==N?void 0:N.isConnected))return;const e=()=>{P.style.zIndex=getComputedStyle(N).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[M,D,P,N]);const z=u?"fixed":"absolute";return C=sr(C,(t=>e.jsx("div",Wt($t({},c),{style:$t({position:z,top:0,left:0,width:"max-content"},null==c?void 0:c.style),ref:null==o?void 0:o.setPopoverElement,children:t}))),[o,z,c]),C=sr(C,(t=>e.jsx(Tr,{value:o,children:t})),[o]),C=Wt($t({"data-placing":!T||void 0},C),{style:$t({position:"relative"},C.style)}),C=ts(Wt($t({store:o,modal:i,portal:a,preserveTabOrder:s,preserveTabOrderAnchor:R||E,autoFocusOnShow:T&&l},C),{portalRef:L}))}));ns(gr((function(e){return br("div",Rl(e))})),Ar);function Pl(e,t,n,r){return!!hi(t)||!!e&&(!!Cn(t,e)||(!(!n||!Cn(n,e))||!!(null==r?void 0:r.some((t=>Pl(e,t,n))))))}var Nl=t.createContext(null),jl=wr((function(n){var r=n,{store:o,modal:i=!1,portal:a=!!i,hideOnEscape:s=!0,hideOnHoverOutside:l=!0,disablePointerEventsOnApproach:c=!!l}=r,u=Ut(r,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const d=ua();un(o=o||d,!1);const f=t.useRef(null),[p,m]=t.useState([]),h=t.useRef(0),g=t.useRef(null),{portalRef:v,domReady:b}=lr(a,u.portalRef),w=ur(),y=!!l,x=ar(l),C=!!c,S=ar(c),k=o.useState("open"),E=o.useState("mounted");t.useEffect((()=>{if(!b)return;if(!E)return;if(!y&&!C)return;const e=f.current;if(!e)return;return sn(Kn("mousemove",(t=>{if(!o)return;if(!w())return;const{anchorElement:n,hideTimeout:r,timeout:i}=o.getState(),a=g.current,[s]=t.composedPath(),l=n;if(Pl(s,e,l,p))return g.current=s&&l&&Cn(l,s)?ba(t):null,window.clearTimeout(h.current),void(h.current=0);if(!h.current){if(a){const n=ba(t);if(wa(n,ya(e,a))){if(g.current=n,!S(t))return;return t.preventDefault(),void t.stopPropagation()}}x(t)&&(h.current=window.setTimeout((()=>{h.current=0,null==o||o.hide()}),null!=r?r:i))}}),!0),(()=>clearTimeout(h.current)))}),[o,w,b,E,y,C,p,S,x]),t.useEffect((()=>{if(!b)return;if(!E)return;if(!C)return;const e=e=>{const t=f.current;if(!t)return;const n=g.current;if(!n)return;const r=ya(t,n);if(wa(ba(e),r)){if(!S(e))return;e.preventDefault(),e.stopPropagation()}};return sn(Kn("mouseenter",e,!0),Kn("mouseover",e,!0),Kn("mouseout",e,!0),Kn("mouseleave",e,!0))}),[b,E,C,S]),t.useEffect((()=>{b&&(k||null==o||o.setAutoFocusOnShow(!1))}),[o,b,k]);const R=Zn(k);t.useEffect((()=>{if(b)return()=>{R.current||null==o||o.setAutoFocusOnShow(!1)}}),[o,b]);const P=t.useContext(Nl);Yn((()=>{if(i)return;if(!a)return;if(!E)return;if(!b)return;const e=f.current;return e?null==P?void 0:P(e):void 0}),[i,a,E,b]);const N=t.useCallback((e=>{m((t=>[...t,e]));const t=null==P?void 0:P(e);return()=>{m((t=>t.filter((t=>t!==e)))),null==t||t()}}),[P]);u=sr(u,(t=>e.jsx(fa,{value:o,children:e.jsx(Nl.Provider,{value:N,children:t})})),[o,N]),u=Wt($t({},u),{ref:er(f,u.ref)}),u=function(e){var n=e,{store:r}=n,o=Ut(n,["store"]);const[i,a]=t.useState(!1),s=r.useState("mounted");t.useEffect((()=>{s||a(!1)}),[s]);const l=o.onFocus,c=Qn((e=>{null==l||l(e),e.defaultPrevented||a(!0)})),u=t.useRef(null);return t.useEffect((()=>no(r,["anchorElement"],(e=>{u.current=e.anchorElement}))),[]),Wt($t({autoFocusOnHide:i,finalFocus:u},o),{onFocus:c})}($t({store:o},u));const j=o.useState((e=>i||e.autoFocusOnShow));return u=Rl(Wt($t({store:o,modal:i,portal:a,autoFocusOnShow:j},u),{portalRef:v,hideOnEscape:e=>!dn(s,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==o||o.hide()}))})),!0)}))}));ns(gr((function(e){return br("div",jl(e))})),ua);var Ml=wr((function(t){var n=t,{store:r,portal:o=!0,gutter:i=8,preserveTabOrder:a=!1,hideOnHoverOutside:s=!0,hideOnInteractOutside:l=!0}=n,c=Ut(n,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const u=ha();un(r=r||u,!1),c=sr(c,(t=>e.jsx(va,{value:r,children:t})),[r]);const d=r.useState((e=>"description"===e.type?"tooltip":"none"));return c=$t({role:d},c),c=jl(Wt($t({},c),{store:r,portal:o,gutter:i,preserveTabOrder:a,hideOnHoverOutside(e){if(dn(s,e))return!1;const t=null==r?void 0:r.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(dn(l,e))return!1;const t=null==r?void 0:r.getState().anchorElement;return!t||!Cn(t,e.target)}}))})),Al=ns(gr((function(e){return br("div",Ml(e))})),ha);function Il(t={}){const n=la(t);return e.jsx(ga,{value:n,children:t.children})}var Tl=wr((function(e){var n=e,{store:r,showOnHover:o=!0}=n,i=Ut(n,["store","showOnHover"]);const a=ua();un(r=r||a,!1);const s=fn(i),l=t.useRef(0);t.useEffect((()=>()=>window.clearTimeout(l.current)),[]),t.useEffect((()=>Kn("mouseleave",(e=>{if(!r)return;const{anchorElement:t}=r.getState();t&&e.target===t&&(window.clearTimeout(l.current),l.current=0)}),!0)),[r]);const c=i.onMouseMove,u=ar(o),d=ur(),f=Qn((e=>{if(null==c||c(e),s)return;if(!r)return;if(e.defaultPrevented)return;if(l.current)return;if(!d())return;if(!u(e))return;const t=e.currentTarget;r.setAnchorElement(t),r.setDisclosureElement(t);const{showTimeout:n,timeout:o}=r.getState(),i=()=>{l.current=0,d()&&(null==r||r.setAnchorElement(t),null==r||r.show(),queueMicrotask((()=>{null==r||r.setDisclosureElement(t)})))},a=null!=n?n:o;0===a?i():l.current=window.setTimeout(i,a)})),p=i.onClick,m=Qn((e=>{null==p||p(e),r&&(window.clearTimeout(l.current),l.current=0)})),h=t.useCallback((e=>{if(!r)return;const{anchorElement:t}=r.getState();(null==t?void 0:t.isConnected)||r.setAnchorElement(e)}),[r]);return i=Wt($t({},i),{ref:er(h,i.ref),onMouseMove:f,onClick:m}),i=Ni(i)}));gr((function(e){return br("a",Tl(e))}));var Ol=Qr({activeStore:null});function Ll(e){return()=>{const{activeStore:t}=Ol.getState();t===e&&Ol.setState("activeStore",null)}}var Dl=wr((function(e){var n=e,{store:r,showOnHover:o=!0}=n,i=Ut(n,["store","showOnHover"]);const a=ha();un(r=r||a,!1);const s=t.useRef(!1);t.useEffect((()=>no(r,["mounted"],(e=>{e.mounted||(s.current=!1)}))),[r]),t.useEffect((()=>{if(r)return sn(Ll(r),no(r,["mounted","skipTimeout"],(e=>{if(!r)return;if(e.mounted){const{activeStore:e}=Ol.getState();return e!==r&&(null==e||e.hide()),Ol.setState("activeStore",r)}const t=setTimeout(Ll(r),e.skipTimeout);return()=>clearTimeout(t)})))}),[r]);const l=i.onMouseEnter,c=Qn((e=>{null==l||l(e),s.current=!0})),u=i.onFocusVisible,d=Qn((e=>{null==u||u(e),e.defaultPrevented||(null==r||r.setAnchorElement(e.currentTarget),null==r||r.show())})),f=i.onBlur,p=Qn((e=>{if(null==f||f(e),e.defaultPrevented)return;const{activeStore:t}=Ol.getState();s.current=!1,t===r&&Ol.setState("activeStore",null)})),m=r.useState("type"),h=r.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return i=Wt($t({"aria-labelledby":"label"===m?h:void 0},i),{onMouseEnter:c,onFocusVisible:d,onBlur:p}),i=Tl($t({store:r,showOnHover(e){if(!s.current)return!1;if(dn(o,e))return!1;const{activeStore:t}=Ol.getState();return!t||(null==r||r.show(),!1)}},i))})),Fl=gr((function(e){return br("div",Dl(e))})),_l="M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z",Vl=30,zl=Vl/2,Hl={top:`rotate(180 ${zl} ${zl})`,right:`rotate(-90 ${zl} ${zl})`,bottom:`rotate(0 ${zl} ${zl})`,left:`rotate(90 ${zl} ${zl})`};var Bl=wr((function(n){var r=n,{store:o,size:i=Vl,borderWidth:a}=r,s=Ut(r,["store","size","borderWidth"]);const l=Mr();un(o=o||l,!1);const c=Co(o,(e=>e.currentPlacement.split("-")[0])),u=tr(),d=function(e){const[n,r]=t.useState(),o=Co(e,"contentElement");return Yn((()=>{if(!o)return;const e=yn(o).getComputedStyle(o);r(e)}),[o]),n}(o),f=(null==d?void 0:d.getPropertyValue("background-color"))||"none",p=(null==d?void 0:d.getPropertyValue(`border-${c}-color`))||"none",m=t.useMemo((()=>{if(null!=a)return a;if(!d)return 0;const e=function(e){var t;if(!e)return;return null==(t=e.getPropertyValue("box-shadow").match(/0px 0px 0px ([^0]+px)/))?void 0:t[1]}(d);if(e)return Number.parseInt(e);const t=d.getPropertyValue(`border-${c}-width`);return t?Number.parseInt(t):0}),[a,d,c]),h=2*m*(Vl/i),g=Hl[c],v=t.useMemo((()=>e.jsx("svg",{display:"block",viewBox:"0 0 30 30",children:e.jsxs("g",{transform:g,children:[e.jsx("path",{fill:"none",d:_l,mask:`url(#${u})`}),e.jsx("path",{stroke:"none",d:_l}),e.jsx("mask",{id:u,maskUnits:"userSpaceOnUse",children:e.jsx("rect",{x:"-15",y:"0",width:"60",height:"30",fill:"white",stroke:"black"})})]})})),[g,u]);return pn(s=Wt($t({children:v,"aria-hidden":!0},s),{ref:er(o.setArrowElement,s.ref),style:$t({position:"absolute",fontSize:i,width:"1em",height:"1em",pointerEvents:"none",fill:`var(--ak-layer, ${f})`,stroke:`var(--ak-layer-border, ${p})`,strokeWidth:h},s.style)}))}));vr(gr((function(e){return br("div",Bl(e))})));var $l=wr((function(e){var t=e,{store:n,size:r=16}=t,o=Ut(t,["store","size"]);const i=ma();return un(n=n||i,!1),o=Bl($t({store:n,size:r},o))})),Wl=gr((function(e){return br("div",$l(e))})),Ul=yr([Vr],[zr]),Kl=Ul.useContext,Gl=Ul.useScopedContext;t.createContext(void 0);var Xl=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=Ar();return n=n||o,r=Wt($t({},r),{ref:er(null==n?void 0:n.setAnchorElement,r.ref)})}));gr((function(e){return br("div",Xl(e))}));var ql={top:"4,10 8,6 12,10",right:"6,4 10,8 6,12",bottom:"4,6 8,10 12,6",left:"10,4 6,8 10,12"},Yl=wr((function(n){var r=n,{store:o,placement:i}=r,a=Ut(r,["store","placement"]);const s=Mr();un(o=o||s,!1);const l=o.useState((e=>i||e.placement)).split("-")[0],c=ql[l],u=t.useMemo((()=>e.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:e.jsx("polyline",{points:c})})),[c]);return pn(a=Wt($t({children:u,"aria-hidden":!0},a),{style:$t({width:"1em",height:"1em",pointerEvents:"none"},a.style)}))}));gr((function(e){return br("span",Yl(e))}));var Zl="button",Ql=wr((function(e){const n=t.useRef(null),r=nr(n,Zl),[o,i]=t.useState((()=>!!r&&kn({tagName:r,type:e.type})));return t.useEffect((()=>{n.current&&i(kn(n.current))}),[]),e=Wt($t({role:o||"a"===r?void 0:"button"},e),{ref:er(n,e.ref)}),e=Ai(e)}));gr((function(e){const t=Ql(e);return br(Zl,t)}));var Jl=Symbol("disclosure"),ec=wr((function(e){var n=e,{store:r,toggleOnClick:o=!0}=n,i=Ut(n,["store","toggleOnClick"]);const a=Cr();un(r=r||a,!1);const s=t.useRef(null),[l,c]=t.useState(!1),u=r.useState("disclosureElement"),d=r.useState("open");t.useEffect((()=>{let e=u===s.current;(null==u?void 0:u.isConnected)||(null==r||r.setDisclosureElement(s.current),e=!0),c(d&&e)}),[u,r,d]);const f=i.onClick,p=ar(o),[m,h]=cr(i,Jl,!0),g=Qn((e=>{null==f||f(e),e.defaultPrevented||m||p(e)&&(null==r||r.setDisclosureElement(e.currentTarget),null==r||r.toggle())})),v=r.useState("contentElement");return i=Wt($t($t({"aria-expanded":l,"aria-controls":null==v?void 0:v.id},h),i),{ref:er(s,i.ref),onClick:g}),i=Ql(i)}));gr((function(e){return br("button",ec(e))}));var tc=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=kr();un(n=n||o,!1);const i=n.useState("contentElement");return r=$t({"aria-haspopup":Mn(i,"dialog")},r),r=ec($t({store:n},r))}));gr((function(e){return br("button",tc(e))}));var nc=wr((function(t){var n=t,{store:r}=n,o=Ut(n,["store"]);const i=Ar();un(r=r||i,!1);const a=o.onClick,s=Qn((e=>{null==r||r.setAnchorElement(e.currentTarget),null==a||a(e)}));return o=sr(o,(t=>e.jsx(Tr,{value:r,children:t})),[r]),o=Wt($t({},o),{onClick:s}),o=Xl($t({store:r},o)),o=tc($t({store:r},o))}));function rc(e={}){var t=e,{combobox:n}=t,r=tn(t,["combobox"]);const o=ao(r.store,oo(n,["value","items","renderedItems","baseElement","arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=o.getState(),a=Lo(en(Jt({},r),{store:o,virtualFocus:mn(r.virtualFocus,i.virtualFocus,!0),includesBaseElement:mn(r.includesBaseElement,i.includesBaseElement,!1),activeId:mn(r.activeId,i.activeId,r.defaultActiveId,null),orientation:mn(r.orientation,i.orientation,"vertical")})),s=ra(en(Jt({},r),{store:o,placement:mn(r.placement,i.placement,"bottom-start")})),l=new String(""),c=en(Jt(Jt({},a.getState()),s.getState()),{value:mn(r.value,i.value,r.defaultValue,l),setValueOnMove:mn(r.setValueOnMove,i.setValueOnMove,!1),labelElement:mn(i.labelElement,null),selectElement:mn(i.selectElement,null),listElement:mn(i.listElement,null)}),u=Qr(c,a,s,o);return Jr(u,(()=>no(u,["value","items"],(e=>{if(e.value!==l)return;if(!e.items.length)return;const t=e.items.find((e=>!e.disabled&&null!=e.value));null!=(null==t?void 0:t.value)&&u.setState("value",t.value)})))),Jr(u,(()=>no(u,["mounted"],(e=>{e.mounted||u.setState("activeId",c.activeId)})))),Jr(u,(()=>no(u,["mounted","items","value"],(e=>{if(n)return;if(e.mounted)return;const t=Po(e.value),r=t[t.length-1];if(null==r)return;const o=e.items.find((e=>!e.disabled&&e.value===r));o&&u.setState("activeId",o.id)})))),Jr(u,(()=>ro(u,["setValueOnMove","moves"],(e=>{const{mounted:t,value:n,activeId:r}=u.getState();if(!e.setValueOnMove&&t)return;if(Array.isArray(n))return;if(!e.moves)return;if(!r)return;const o=a.item(r);o&&!o.disabled&&null!=o.value&&u.setState("value",o.value)})))),en(Jt(Jt(Jt({},a),s),u),{combobox:n,setValue:e=>u.setState("value",e),setLabelElement:e=>u.setState("labelElement",e),setSelectElement:e=>u.setState("selectElement",e),setListElement:e=>u.setState("listElement",e)})}function oc(e={}){e=function(e){const t=Bo();return Do(e=Wt($t({},e),{combobox:void 0!==e.combobox?e.combobox:t}))}(e);const[t,n]=Eo(rc,e);return function(e,t,n){return or(t,[n.combobox]),ko(e,n,"value","setValue"),ko(e,n,"setValueOnMove"),Object.assign(oa(Fo(e,t,n),t,n),{combobox:n.combobox})}(t,n,e)}gr((function(e){return br("button",nc(e))}));var ic=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=Wr();return r=Yl($t({store:n=n||o},r))})),ac=gr((function(e){return br("span",ic(e))})),sc="";function lc(){sc=""}function cc(e,t){var n;const r=(null==(n=e.element)?void 0:n.textContent)||e.children||"value"in e&&e.value;return!!r&&ln(r).trim().toLowerCase().startsWith(t.toLowerCase())}function uc(e,t,n){if(!n)return e;const r=e.find((e=>e.id===n));return r&&cc(r,t)?sc!==t&&cc(r,sc)?e:(sc=t,function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[ti]:[],...e.slice(0,r)]}(e.filter((e=>cc(e,sc))),n).filter((e=>e.id!==n))):e}var dc=wr((function(e){var n=e,{store:r,typeahead:o=!0}=n,i=Ut(n,["store","typeahead"]);const a=Fr();un(r=r||a,!1);const s=i.onKeyDownCapture,l=t.useRef(0),c=Qn((e=>{if(null==s||s(e),e.defaultPrevented)return;if(!o)return;if(!r)return;if(!function(e){const t=e.target;return(!t||!Pn(t))&&(!(" "!==e.key||!sc.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(e))return lc();const{renderedItems:t,items:n,activeId:i,id:a}=r.getState();let c=function(e){return e.filter((e=>!e.disabled))}(n.length>t.length?n:t);const u=`[data-offscreen-id="${a}"]`,d=wn(e.currentTarget).querySelectorAll(u);for(const e of d){const t="true"===e.ariaDisabled||"disabled"in e&&!!e.disabled;c.push({id:e.id,element:e,disabled:t})}if(d.length&&(c=On(c,(e=>e.element))),!function(e,t){if(Vn(e))return!0;const n=e.target;return!!n&&t.some((e=>e.element===n))}(e,c))return lc();e.preventDefault(),window.clearTimeout(l.current),l.current=window.setTimeout((()=>{sc=""}),500);const f=e.key.toLowerCase();sc+=f,c=uc(c,f,i);const p=c.find((e=>cc(e,sc)));p?r.move(p.id):lc()}));return pn(i=Wt($t({},i),{onKeyDownCapture:c}))}));gr((function(e){return br("div",dc(e))}));function fc(e,t){return()=>{const n=t();if(!n)return;let r=0,o=e.item(n);const i=o;for(;o&&null==o.value;){const n=t(++r);if(!n)return;if(o=e.item(n),o===i)break}return null==o?void 0:o.id}}var pc=wr((function(n){var r=n,{store:o,name:i,form:a,required:s,showOnKeyDown:l=!0,moveOnKeyDown:c=!0,toggleOnPress:u=!0,toggleOnClick:d=u}=r,f=Ut(r,["store","name","form","required","showOnKeyDown","moveOnKeyDown","toggleOnPress","toggleOnClick"]);const p=Kr();un(o=o||p,!1);const m=f.onKeyDown,h=ar(l),g=ar(c),v=o.useState("placement").split("-")[0],b=o.useState("value"),w=Array.isArray(b),y=Qn((e=>{var t;if(null==m||m(e),e.defaultPrevented)return;if(!o)return;const{orientation:n,items:r,activeId:i}=o.getState(),a="horizontal"!==n,s="vertical"!==n,l=!!(null==(t=r.find((e=>!e.disabled&&null!=e.value)))?void 0:t.rowId),c={ArrowUp:(l||a)&&fc(o,o.up),ArrowRight:(l||s)&&fc(o,o.next),ArrowDown:(l||a)&&fc(o,o.down),ArrowLeft:(l||s)&&fc(o,o.previous)}[e.key];c&&g(e)&&(e.preventDefault(),o.move(c()));const u="top"===v||"bottom"===v;({ArrowDown:u,ArrowUp:u,ArrowLeft:"left"===v,ArrowRight:"right"===v})[e.key]&&h(e)&&(e.preventDefault(),o.move(i),Un(e.currentTarget,"keyup",o.show))}));f=sr(f,(t=>e.jsx(Xr,{value:o,children:t})),[o]);const[x,C]=t.useState(!1),S=t.useRef(!1);t.useEffect((()=>{const e=S.current;S.current=!1,e||C(!1)}),[b]);const k=o.useState((e=>{var t;return null==(t=e.labelElement)?void 0:t.id})),E=f["aria-label"],R=f["aria-labelledby"]||k,P=o.useState((e=>{if(i)return e.items})),N=t.useMemo((()=>[...new Set(null==P?void 0:P.map((e=>e.value)).filter((e=>null!=e)))]),[P]);f=sr(f,(t=>i?e.jsxs(e.Fragment,{children:[e.jsxs("select",{style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},tabIndex:-1,"aria-hidden":!0,"aria-label":E,"aria-labelledby":R,name:i,form:a,required:s,disabled:f.disabled,value:b,multiple:w,onFocus:()=>{var e;return null==(e=null==o?void 0:o.getState().selectElement)?void 0:e.focus()},onChange:e=>{var t;S.current=!0,C(!0),null==o||o.setValue(w?(t=e.target,Array.from(t.selectedOptions).map((e=>e.value))):e.target.value)},children:[Po(b).map((t=>null==t||N.includes(t)?null:e.jsx("option",{value:t,children:t},t))),N.map((t=>e.jsx("option",{value:t,children:t},t)))]}),t]}):t),[o,E,R,i,a,s,b,w,N,f.disabled]);const j=e.jsxs(e.Fragment,{children:[b,e.jsx(ac,{})]}),M=o.useState("contentElement");return f=Wt($t({role:"combobox","aria-autocomplete":"none","aria-labelledby":k,"aria-haspopup":Mn(M,"listbox"),"data-autofill":x||void 0,"data-name":i,children:j},f),{ref:er(o.setSelectElement,f.ref),onKeyDown:y}),f=nc($t({store:o,toggleOnClick:d},f)),f=dc($t({store:o},f))})),mc=gr((function(e){return br("button",pc(e))}));function hc(t={}){const n=oc(t);return e.jsx(Gr,{value:n,children:t.children})}var gc=t.createContext(!1),vc=e.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:e.jsx("polyline",{points:"4,8 7,12 12,4"})});var bc=wr((function(e){var n=e,{store:r,checked:o}=n,i=Ut(n,["store","checked"]);const a=t.useContext(gc),s=function(e){return e.checked?e.children||vc:"function"==typeof e.children?e.children:null}({checked:o=null!=o?o:a,children:i.children});return pn(i=Wt($t({"aria-hidden":!0},i),{children:s,style:$t({width:"1em",height:"1em",pointerEvents:"none"},i.style)}))}));gr((function(e){return br("span",bc(e))}));var wc=wr((function(e){var n=e,{store:r,checked:o}=n,i=Ut(n,["store","checked"]);const a=t.useContext(qr);return o=null!=o?o:a,i=bc(Wt($t({},i),{checked:o}))})),yc=gr((function(e){return br("span",wc(e))}));function xc(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var Cc=Symbol("composite-hover");var Sc=wr((function(e){var n=e,{store:r,focusOnHover:o=!0,blurOnHoverEnd:i=!!o}=n,a=Ut(n,["store","focusOnHover","blurOnHoverEnd"]);const s=Fr();un(r=r||s,!1);const l=ur(),c=a.onMouseMove,u=ar(o),d=Qn((e=>{if(null==c||c(e),!e.defaultPrevented&&l()&&u(e)){if(!hi(e.currentTarget)){const e=null==r?void 0:r.getState().baseElement;e&&!mi(e)&&e.focus()}null==r||r.setActiveId(e.currentTarget.id)}})),f=a.onMouseLeave,p=ar(i),m=Qn((e=>{var t;null==f||f(e),e.defaultPrevented||l()&&(function(e){const t=xc(e);return!!t&&Cn(e.currentTarget,t)}(e)||function(e){let t=xc(e);if(!t)return!1;do{if(an(t,Cc)&&t[Cc])return!0;t=t.parentElement}while(t);return!1}(e)||u(e)&&p(e)&&(null==r||r.setActiveId(null),null==(t=null==r?void 0:r.getState().baseElement)||t.focus()))})),h=t.useCallback((e=>{e&&(e[Cc]=!0)}),[]);return pn(a=Wt($t({},a),{ref:er(h,a.ref),onMouseMove:d,onMouseLeave:m}))}));vr(gr((function(e){return br("div",Sc(e))})));var kc=wr((function(n){var r,o=n,{store:i,value:a,getItem:s,hideOnClick:l,setValueOnClick:c=null!=a,preventScrollOnKeyDown:u=!0,focusOnHover:d=!0}=o,f=Ut(o,["store","value","getItem","hideOnClick","setValueOnClick","preventScrollOnKeyDown","focusOnHover"]);const p=Ur();un(i=i||p,!1);const m=tr(f.id),h=fn(f),{listElement:g,multiSelectable:v,selected:b,autoFocus:w}=So(i,{listElement:"listElement",multiSelectable:e=>Array.isArray(e.value),selected:e=>function(e,t){if(null!=t)return null!=e&&(Array.isArray(e)?e.includes(t):e===t)}(e.value,a),autoFocus:e=>null!=a&&(null!=e.value&&((e.activeId===m||!(null==i?void 0:i.item(e.activeId)))&&(Array.isArray(e.value)?e.value[e.value.length-1]===a:e.value===a)))}),y=t.useCallback((e=>{const t=Wt($t({},e),{value:h?void 0:a,children:a});return s?s(t):t}),[h,a,s]);l=null!=l?l:null!=a&&!v;const x=f.onClick,C=ar(c),S=ar(l),k=Qn((e=>{null==x||x(e),e.defaultPrevented||Hn(e)||zn(e)||(C(e)&&null!=a&&(null==i||i.setValue((e=>Array.isArray(e)?e.includes(a)?e.filter((e=>e!==a)):[...e,a]:a))),S(e)&&(null==i||i.hide()))}));f=sr(f,(t=>e.jsx(qr.Provider,{value:null!=b&&b,children:t})),[b]),f=Wt($t({id:m,role:An(g),"aria-selected":b,children:a},f),{autoFocus:null!=(r=f.autoFocus)?r:w,onClick:k}),f=Oi($t({store:i,getItem:y,preventScrollOnKeyDown:u},f));const E=ar(d);return f=Sc(Wt($t({store:i},f),{focusOnHover(e){if(!E(e))return!1;const t=null==i?void 0:i.getState();return!!(null==t?void 0:t.open)}}))})),Ec=vr(gr((function(e){return br("div",kc(e))}))),Rc=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=Kr();un(n=n||o,!1);const i=tr(r.id),a=r.onClick,s=Qn((e=>{null==a||a(e),e.defaultPrevented||queueMicrotask((()=>{const e=null==n?void 0:n.getState().selectElement;null==e||e.focus()}))}));return pn(r=Wt($t({id:i},r),{ref:er(n.setLabelElement,r.ref),onClick:s,style:$t({cursor:"default"},r.style)}))})),Pc=vr(gr((function(e){return br("div",Rc(e))}))),Nc=t.createContext(null),jc=wr((function(n){var r=n,{store:o,resetOnEscape:i=!0,hideOnEnter:a=!0,focusOnMove:s=!0,composite:l,alwaysVisible:c}=r,u=Ut(r,["store","resetOnEscape","hideOnEnter","focusOnMove","composite","alwaysVisible"]);const d=Wr();un(o=o||d,!1);const f=tr(u.id),p=o.useState("value"),m=Array.isArray(p),[h,g]=t.useState(p),v=o.useState("mounted");t.useEffect((()=>{v||g(p)}),[v,p]),i=i&&!m;const b=u.onKeyDown,w=ar(i),y=ar(a),x=Qn((e=>{null==b||b(e),e.defaultPrevented||("Escape"===e.key&&w(e)&&(null==o||o.setValue(h))," "!==e.key&&"Enter"!==e.key||Vn(e)&&y(e)&&(e.preventDefault(),null==o||o.hide()))})),C=t.useContext(Yr),S=t.useState(),[k,E]=C||S,R=t.useMemo((()=>[k,E]),[k]),[P,N]=t.useState(null),j=t.useContext(Nc);t.useEffect((()=>{if(j)return j(o),()=>j(null)}),[j,o]),u=sr(u,(t=>e.jsx(Xr,{value:o,children:e.jsx(Nc.Provider,{value:N,children:e.jsx(Yr.Provider,{value:R,children:t})})})),[o,R]);const M=!!o.combobox;l=null!=l?l:!M&&P!==o;const[A,I]=Jn(l?o.setListElement:null),T=rr(A,"role",u.role),O=(l||("listbox"===T||"menu"===T||"tree"===T||"grid"===T))&&m||void 0,L=Ui(v,u.hidden,c),D=L?Wt($t({},u.style),{display:"none"}):u.style;l&&(u=$t({role:"listbox","aria-multiselectable":O},u));const F=o.useState((e=>{var t;return k||(null==(t=e.labelElement)?void 0:t.id)}));return u=Wt($t({id:f,"aria-labelledby":F,hidden:L},u),{ref:er(I,u.ref),style:D,onKeyDown:x}),u=zi(Wt($t({store:o},u),{composite:l})),u=dc($t({store:o,typeahead:!M},u))}));gr((function(e){return br("div",jc(e))}));var Mc=wr((function(e){var t=e,{store:n,alwaysVisible:r}=t,o=Ut(t,["store","alwaysVisible"]);const i=Kr();return o=jc($t({store:n=n||i,alwaysVisible:r},o)),o=Rl($t({store:n,alwaysVisible:r},o))})),Ac=ns(gr((function(e){return br("div",Mc(e))})),Kr);function Ic(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=Qr({value:mn(e.value,null==n?void 0:n.value,e.defaultValue,!1)},e.store);return en(Jt({},r),{setValue:e=>r.setState("value",e)})}function Tc(e={}){const[t,n]=Eo(Ic,e);return function(e,t,n){return or(t,[n.store]),ko(e,n,"value","setValue"),e}(t,n,e)}var Oc=yr().useContext,Lc="input";function Dc(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function Fc(e){return Array.isArray(e)?e.toString():e}var _c=wr((function(n){var r=n,{store:o,name:i,value:a,checked:s,defaultChecked:l}=r,c=Ut(r,["store","name","value","checked","defaultChecked"]);const u=Oc();o=o||u;const[d,f]=t.useState(null!=l&&l),p=Co(o,(e=>{if(void 0!==s)return s;if(void 0===(null==e?void 0:e.value))return d;if(null!=a){if(Array.isArray(e.value)){const t=Fc(a);return e.value.includes(t)}return e.value===a}return!Array.isArray(e.value)&&("boolean"==typeof e.value&&e.value)})),m=t.useRef(null),h=function(e,t){return"input"===e&&(!t||"checkbox"===t)}(nr(m,Lc),c.type),g=p?"mixed"===p:void 0,v="mixed"!==p&&p,b=fn(c),[w,y]=ir();t.useEffect((()=>{const e=m.current;e&&(Dc(e,g),h||(e.checked=v,void 0!==i&&(e.name=i),void 0!==a&&(e.value=`${a}`)))}),[w,g,h,v,i,a]);const x=c.onChange,C=Qn((e=>{if(b)return e.stopPropagation(),void e.preventDefault();if(Dc(e.currentTarget,g),h||(e.currentTarget.checked=!e.currentTarget.checked,y()),null==x||x(e),e.defaultPrevented)return;const t=e.currentTarget.checked;f(t),null==o||o.setValue((e=>{if(null==a)return t;const n=Fc(a);return Array.isArray(e)?t?e.includes(n)?e:[...e,n]:e.filter((e=>e!==n)):e!==n&&n}))})),S=c.onClick,k=Qn((e=>{null==S||S(e),e.defaultPrevented||h||C(e)}));return c=sr(c,(t=>e.jsx(gc.Provider,{value:v,children:t})),[v]),c=Wt($t({role:h?void 0:"checkbox",type:h?"checkbox":void 0,"aria-checked":p},c),{ref:er(m,c.ref),onChange:C,onClick:k}),c=Ai($t({clickOnEnter:!h},c)),pn($t({name:h?i:void 0,value:h?a:void 0,checked:v},c))})),Vc=gr((function(e){const t=_c(e);return br(Lc,t)})),zc=yr([Vr,da],[zr,fa]),Hc=zc.useContext,Bc=zc.useScopedContext,$c=zc.useProviderContext,Wc=zc.ContextProvider,Uc=zc.ScopedContextProvider;function Kc(e={}){var t=e,{combobox:n,parent:r,menubar:o}=t,i=tn(t,["combobox","parent","menubar"]);const a=!!o&&!r,s=ao(i.store,io(r,["values"]),oo(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=s.getState(),c=Lo(en(Jt({},i),{store:s,orientation:mn(i.orientation,l.orientation,"vertical")})),u=ia(en(Jt({},i),{store:s,placement:mn(i.placement,l.placement,"bottom-start"),timeout:mn(i.timeout,l.timeout,a?0:150),hideTimeout:mn(i.hideTimeout,l.hideTimeout,0)})),d=Qr(en(Jt(Jt({},c.getState()),u.getState()),{initialFocus:mn(l.initialFocus,"container"),values:mn(i.values,l.values,i.defaultValues,{})}),c,u,s);return Jr(d,(()=>no(d,["mounted"],(e=>{e.mounted||d.setState("activeId",null)})))),Jr(d,(()=>no(r,["orientation"],(e=>{d.setState("placement","vertical"===e.orientation?"right-start":"bottom-start")})))),en(Jt(Jt(Jt({},c),u),d),{combobox:n,parent:r,menubar:o,hideAll:()=>{u.hide(),null==r||r.hideAll()},setInitialFocus:e=>d.setState("initialFocus",e),setValues:e=>d.setState("values",e),setValue:(e,t)=>{"__proto__"!==e&&"constructor"!==e&&(Array.isArray(e)||d.setState("values",(n=>{const r=n[e],o=on(t,r);return o===r?n:en(Jt({},n),{[e]:void 0!==o&&o})})))}})}function Gc(e={}){const t=Hc(),n=Kl(),r=Bo();e=Wt($t({},e),{parent:void 0!==e.parent?e.parent:t,menubar:void 0!==e.menubar?e.menubar:n,combobox:void 0!==e.combobox?e.combobox:r});const[o,i]=Eo(Kc,e);return function(e,t,n){return or(t,[n.combobox,n.parent,n.menubar]),ko(e,n,"values","setValues"),Object.assign(aa(Fo(e,t,n),t,n),{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}(o,i,e)}t.createContext(void 0);var Xc=wr((function(n){var r=n,{store:o,alwaysVisible:i,composite:a}=r,s=Ut(r,["store","alwaysVisible","composite"]);const l=$c();un(o=o||l,!1);const c=o.parent,u=o.menubar,d=!!c,f=tr(s.id),p=s.onKeyDown,m=o.useState((e=>e.placement.split("-")[0])),h=o.useState((e=>"both"===e.orientation?void 0:e.orientation)),g="vertical"!==h,v=Co(u,(e=>!!e&&"vertical"!==e.orientation)),b=Qn((e=>{if(null==p||p(e),!e.defaultPrevented){if(d||u&&!g){const t={ArrowRight:()=>"left"===m&&!g,ArrowLeft:()=>"right"===m&&!g,ArrowUp:()=>"bottom"===m&&g,ArrowDown:()=>"top"===m&&g}[e.key];if(null==t?void 0:t())return e.stopPropagation(),e.preventDefault(),null==o?void 0:o.hide()}if(u){const t={ArrowRight:()=>{if(v)return u.next()},ArrowLeft:()=>{if(v)return u.previous()},ArrowDown:()=>{if(!v)return u.next()},ArrowUp:()=>{if(!v)return u.previous()}}[e.key],n=null==t?void 0:t();void 0!==n&&(e.stopPropagation(),e.preventDefault(),u.move(n))}}}));s=sr(s,(t=>e.jsx(Uc,{value:o,children:t})),[o]);const w=function(e){var n=e,{store:r}=n,o=Ut(n,["store"]);const[i,a]=t.useState(void 0),s=o["aria-label"],l=Co(r,"disclosureElement"),c=Co(r,"contentElement");return t.useEffect((()=>{const e=l;e&&c&&(s||c.hasAttribute("aria-label")?a(void 0):e.id&&a(e.id))}),[s,l,c]),i}($t({store:o},s)),y=Ui(o.useState("mounted"),s.hidden,i),x=y?Wt($t({},s.style),{display:"none"}):s.style;s=Wt($t({id:f,"aria-labelledby":w,hidden:y},s),{ref:er(f?o.setContentElement:null,s.ref),style:x,onKeyDown:b});const C=!!o.combobox;return(a=null!=a?a:!C)&&(s=$t({role:"menu","aria-orientation":h},s)),s=zi($t({store:o,composite:a},s)),s=dc($t({store:o,typeahead:!C},s))}));gr((function(e){return br("div",Xc(e))}));var qc=wr((function(e){var n=e,{store:r,modal:o=!1,portal:i=!!o,hideOnEscape:a=!0,autoFocusOnShow:s=!0,hideOnHoverOutside:l,alwaysVisible:c}=n,u=Ut(n,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const d=$c();un(r=r||d,!1);const f=t.useRef(null),p=r.parent,m=r.menubar,h=!!p,g=!!m&&!h;u=Wt($t({},u),{ref:er(f,u.ref)});const v=Xc($t({store:r,alwaysVisible:c},u)),{"aria-labelledby":b}=v;u=Ut(v,["aria-labelledby"]);const[w,y]=t.useState(),x=r.useState("autoFocusOnShow"),C=r.useState("initialFocus"),S=r.useState("baseElement"),k=r.useState("renderedItems");t.useEffect((()=>{let e=!1;return y((n=>{var r,o,i;if(e)return;if(!x)return;if(null==(r=null==n?void 0:n.current)?void 0:r.isConnected)return n;const a=t.createRef();switch(C){case"first":a.current=(null==(o=k.find((e=>!e.disabled&&e.element)))?void 0:o.element)||null;break;case"last":a.current=(null==(i=[...k].reverse().find((e=>!e.disabled&&e.element)))?void 0:i.element)||null;break;default:a.current=S}return a})),()=>{e=!0}}),[r,x,C,k,S]);const E=!h&&o,R=!!s,P=!!w||!!u.initialFocus||!!E,N=Co(r.combobox||r,"contentElement"),j=Co((null==p?void 0:p.combobox)||p,"contentElement"),M=t.useMemo((()=>{if(!j)return;if(!N)return;const e=N.getAttribute("role"),t=j.getAttribute("role");return"menu"!==t&&"menubar"!==t||"menu"!==e?j:void 0}),[N,j]);return void 0!==M&&(u=$t({preserveTabOrderAnchor:M},u)),u=jl(Wt($t({store:r,alwaysVisible:c,initialFocus:w,autoFocusOnShow:R?P&&s:x||!!E},u),{hideOnEscape:e=>!dn(a,e)&&(null==r||r.hideAll(),!0),hideOnHoverOutside(e){const t=null==r?void 0:r.getState().disclosureElement;return!!("function"==typeof l?l(e):null!=l?l:h||g&&(!t||!hi(t)))&&(!!e.defaultPrevented||(!h||(!t||(function(e,t,n){const r=new Event(t,n);e.dispatchEvent(r)}(t,"mouseout",e),!hi(t)||(requestAnimationFrame((()=>{hi(t)||null==r||r.hide()})),!1)))))},modal:E,portal:i,backdrop:!h&&u.backdrop})),u=$t({"aria-labelledby":b},u)})),Yc=ns(gr((function(e){return br("div",qc(e))})),$c);function Zc(t={}){const n=Gc(t);return e.jsx(Wc,{value:n,children:t.children})}var Qc=wr((function(e){var t=e,{store:n,hideOnClick:r=!0,preventScrollOnKeyDown:o=!0,focusOnHover:i,blurOnHoverEnd:a}=t,s=Ut(t,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const l=Bc(!0),c=Gl();un(n=n||l||c,!1);const u=s.onClick,d=ar(r),f="hideAll"in n?n.hideAll:void 0,p=!!f,m=Qn((e=>{if(null==u||u(e),e.defaultPrevented)return;if(Hn(e))return;if(zn(e))return;if(!f)return;"menu"!==e.currentTarget.getAttribute("aria-haspopup")&&d(e)&&f()})),h=An(Co(n,(e=>"contentElement"in e?e.contentElement:null)),"menuitem");return s=Wt($t({role:h},s),{onClick:m}),s=Oi($t({store:n,preventScrollOnKeyDown:o},s)),s=Sc(Wt($t({store:n},s),{focusOnHover(e){if(!n)return!1;if(!("function"==typeof i?i(e):null==i||i))return!1;const{baseElement:t,items:r}=n.getState();return p?(e.currentTarget.hasAttribute("aria-expanded")&&e.currentTarget.focus(),!0):!!function(e,t,n){var r;if(!e)return!1;if(hi(e))return!0;const o=null==t?void 0:t.find((e=>{var t;return e.element!==n&&"true"===(null==(t=e.element)?void 0:t.getAttribute("aria-expanded"))})),i=null==(r=null==o?void 0:o.element)?void 0:r.getAttribute("aria-controls");if(!i)return!1;const a=wn(e).getElementById(i);return!(!a||!hi(a)&&!a.querySelector("[role=menuitem][aria-expanded=true]"))}(t,r,e.currentTarget)&&(e.currentTarget.focus(),!0)},blurOnHoverEnd:e=>"function"==typeof a?a(e):null!=a?a:p})),s})),Jc=vr(gr((function(e){return br("div",Qc(e))}))),eu=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=Hc();return r=ea($t({store:n=n||o},r))})),tu=gr((function(e){return br("hr",eu(e))}));t.createContext(null),t.createContext(null);var nu=yr([Vr],[zr]).useContext,ru=Fn()&&Ln();function ou(e={}){var t=e,{tag:n}=t,r=tn(t,["tag"]);const o=ao(r.store,io(n,["value","rtl"])),i=null==n?void 0:n.getState(),a=null==o?void 0:o.getState(),s=mn(r.activeId,null==a?void 0:a.activeId,r.defaultActiveId,null),l=Lo(en(Jt({},r),{activeId:s,includesBaseElement:mn(r.includesBaseElement,null==a?void 0:a.includesBaseElement,!0),orientation:mn(r.orientation,null==a?void 0:a.orientation,"vertical"),focusLoop:mn(r.focusLoop,null==a?void 0:a.focusLoop,!0),focusWrap:mn(r.focusWrap,null==a?void 0:a.focusWrap,!0),virtualFocus:mn(r.virtualFocus,null==a?void 0:a.virtualFocus,!0)})),c=ra(en(Jt({},r),{placement:mn(r.placement,null==a?void 0:a.placement,"bottom-start")})),u=mn(r.value,null==a?void 0:a.value,r.defaultValue,""),d=mn(r.selectedValue,null==a?void 0:a.selectedValue,null==i?void 0:i.values,r.defaultSelectedValue,""),f=Array.isArray(d),p=en(Jt(Jt({},l.getState()),c.getState()),{value:u,selectedValue:d,resetValueOnSelect:mn(r.resetValueOnSelect,null==a?void 0:a.resetValueOnSelect,f),resetValueOnHide:mn(r.resetValueOnHide,null==a?void 0:a.resetValueOnHide,f&&!n),activeValue:null==a?void 0:a.activeValue}),m=Qr(p,l,c,o);return ru&&Jr(m,(()=>no(m,["virtualFocus"],(()=>{m.setState("virtualFocus",!1)})))),Jr(m,(()=>{if(n)return sn(no(m,["selectedValue"],(e=>{Array.isArray(e.selectedValue)&&n.setValues(e.selectedValue)})),no(n,["values"],(e=>{m.setState("selectedValue",e.values)})))})),Jr(m,(()=>no(m,["resetValueOnHide","mounted"],(e=>{e.resetValueOnHide&&(e.mounted||m.setState("value",u))})))),Jr(m,(()=>no(m,["open"],(e=>{e.open||(m.setState("activeId",s),m.setState("moves",0))})))),Jr(m,(()=>no(m,["moves","activeId"],((e,t)=>{e.moves===t.moves&&m.setState("activeValue",void 0)})))),Jr(m,(()=>ro(m,["moves","renderedItems"],((e,t)=>{if(e.moves===t.moves)return;const{activeId:n}=m.getState(),r=l.item(n);m.setState("activeValue",null==r?void 0:r.value)})))),en(Jt(Jt(Jt({},c),l),m),{tag:n,setValue:e=>m.setState("value",e),resetValue:()=>m.setState("value",p.value),setSelectedValue:e=>m.setState("selectedValue",e)})}function iu(e={}){e=function(e){const t=nu();return Do(e=Wt($t({},e),{tag:void 0!==e.tag?e.tag:t}))}(e);const[t,n]=Eo(ou,e);return function(e,t,n){return or(t,[n.tag]),ko(e,n,"value","setValue"),ko(e,n,"selectedValue","setSelectedValue"),ko(e,n,"resetValueOnHide"),ko(e,n,"resetValueOnSelect"),Object.assign(Fo(oa(e,t,n),t,n),{tag:n.tag})}(t,n,e)}function au(e,t,n){if(!n)return!1;const r=e.find((e=>!e.disabled&&e.value));return(null==r?void 0:r.value)===t}function su(e,t){return!!t&&(null!=e&&(e=ln(e),t.length>e.length&&0===t.toLowerCase().indexOf(e.toLowerCase())))}var lu=wr((function(e){var n=e,{store:r,focusable:o=!0,autoSelect:i=!1,getAutoSelectId:a,setValueOnChange:s,showMinLength:l=0,showOnChange:c,showOnMouseDown:u,showOnClick:d=u,showOnKeyDown:f,showOnKeyPress:p=f,blurActiveItemOnClick:m,setValueOnClick:h=!0,moveOnKeyPress:g=!0,autoComplete:v="list"}=n,b=Ut(n,["store","focusable","autoSelect","getAutoSelectId","setValueOnChange","showMinLength","showOnChange","showOnMouseDown","showOnClick","showOnKeyDown","showOnKeyPress","blurActiveItemOnClick","setValueOnClick","moveOnKeyPress","autoComplete"]);const w=Bo();un(r=r||w,!1);const y=t.useRef(null),[x,C]=ir(),S=t.useRef(!1),k=t.useRef(!1),E=r.useState((e=>e.virtualFocus&&i)),R="inline"===v||"both"===v,[P,N]=t.useState(R);!function(e,n){const r=t.useRef(!1);Yn((()=>{if(r.current)return e();r.current=!0}),n),Yn((()=>()=>{r.current=!1}),[])}((()=>{R&&N(!0)}),[R]);const j=r.useState("value"),M=t.useRef();t.useEffect((()=>no(r,["selectedValue","activeId"],((e,t)=>{M.current=t.selectedValue}))),[]);const A=r.useState((e=>{var t;if(R&&P){if(e.activeValue&&Array.isArray(e.selectedValue)){if(e.selectedValue.includes(e.activeValue))return;if(null==(t=M.current)?void 0:t.includes(e.activeValue))return}return e.activeValue}})),I=r.useState("renderedItems"),T=r.useState("open"),O=r.useState("contentElement"),L=t.useMemo((()=>{if(!R)return j;if(!P)return j;if(au(I,A,E)){if(su(j,A)){const e=(null==A?void 0:A.slice(j.length))||"";return j+e}return j}return A||j}),[R,P,I,A,E,j]);t.useEffect((()=>{const e=y.current;if(!e)return;const t=()=>N(!0);return e.addEventListener("combobox-item-move",t),()=>{e.removeEventListener("combobox-item-move",t)}}),[]),t.useEffect((()=>{if(!R)return;if(!P)return;if(!A)return;if(!au(I,A,E))return;if(!su(j,A))return;let e=nn;return queueMicrotask((()=>{const t=y.current;if(!t)return;const{start:n,end:r}=jn(t),o=j.length,i=A.length;Tn(t,o,i),e=()=>{if(!mi(t))return;const{start:e,end:a}=jn(t);e===o&&a===i&&Tn(t,n,r)}})),()=>e()}),[x,R,P,A,I,E,j]);const D=t.useRef(null),F=Qn(a),_=t.useRef(null);t.useEffect((()=>{if(!T)return;if(!O)return;const e=In(O);if(!e)return;D.current=e;const t=()=>{S.current=!1},n=()=>{if(!r)return;if(!S.current)return;const{activeId:e}=r.getState();null!==e&&e!==_.current&&(S.current=!1)},o={passive:!0,capture:!0};return e.addEventListener("wheel",t,o),e.addEventListener("touchmove",t,o),e.addEventListener("scroll",n,o),()=>{e.removeEventListener("wheel",t,!0),e.removeEventListener("touchmove",t,!0),e.removeEventListener("scroll",n,!0)}}),[T,O,r]),Yn((()=>{j&&(k.current||(S.current=!0))}),[j]),Yn((()=>{"always"!==E&&T||(S.current=T)}),[E,T]);const V=r.useState("resetValueOnSelect");or((()=>{var e,t;const n=S.current;if(!r)return;if(!T)return;if(!n&&!V)return;const{baseElement:o,contentElement:i,activeId:a}=r.getState();if(!o||mi(o)){if(null==i?void 0:i.hasAttribute("data-placing")){const e=new MutationObserver(C);return e.observe(i,{attributeFilter:["data-placing"]}),()=>e.disconnect()}if(E&&n){const t=F(I),n=void 0!==t?t:null!=(e=function(e){const t=e.find((e=>{var t;return!e.disabled&&"tab"!==(null==(t=e.element)?void 0:t.getAttribute("role"))}));return null==t?void 0:t.id}(I))?e:r.first();_.current=n,r.move(null!=n?n:null)}else{const e=null==(t=r.item(a||r.first()))?void 0:t.element;e&&"scrollIntoView"in e&&e.scrollIntoView({block:"nearest",inline:"nearest"})}}}),[r,T,x,j,E,V,F,I]),t.useEffect((()=>{if(!R)return;const e=y.current;if(!e)return;const t=[e,O].filter((e=>!!e)),n=e=>{t.every((t=>Wn(e,t)))&&(null==r||r.setValue(L))};for(const e of t)e.addEventListener("focusout",n);return()=>{for(const e of t)e.removeEventListener("focusout",n)}}),[R,O,r,L]);const z=e=>e.currentTarget.value.length>=l,H=b.onChange,B=ar(null!=c?c:z),$=ar(null!=s?s:!r.tag),W=Qn((e=>{if(null==H||H(e),e.defaultPrevented)return;if(!r)return;const t=e.currentTarget,{value:n,selectionStart:o,selectionEnd:i}=t,a=e.nativeEvent;if(S.current=!0,function(e){return"input"===e.type}(a)&&(a.isComposing&&(S.current=!1,k.current=!0),R)){const e="insertText"===a.inputType||"insertCompositionText"===a.inputType,t=o===n.length;N(e&&t)}if($(e)){const e=n===r.getState().value;r.setValue(n),queueMicrotask((()=>{Tn(t,o,i)})),R&&E&&e&&C()}B(e)&&r.show(),E&&S.current||r.setActiveId(null)})),U=b.onCompositionEnd,K=Qn((e=>{S.current=!0,k.current=!1,null==U||U(e),e.defaultPrevented||E&&C()})),G=b.onMouseDown,X=ar(null!=m?m:()=>!!(null==r?void 0:r.getState().includesBaseElement)),q=ar(h),Y=ar(null!=d?d:z),Z=Qn((e=>{null==G||G(e),e.defaultPrevented||e.button||e.ctrlKey||r&&(X(e)&&r.setActiveId(null),q(e)&&r.setValue(L),Y(e)&&Un(e.currentTarget,"mouseup",r.show))})),Q=b.onKeyDown,J=ar(null!=p?p:z),ee=Qn((e=>{if(null==Q||Q(e),e.repeat||(S.current=!1),e.defaultPrevented)return;if(e.ctrlKey)return;if(e.altKey)return;if(e.shiftKey)return;if(e.metaKey)return;if(!r)return;const{open:t}=r.getState();t||"ArrowUp"!==e.key&&"ArrowDown"!==e.key||J(e)&&(e.preventDefault(),r.show())})),te=b.onBlur,ne=Qn((e=>{S.current=!1,null==te||te(e),e.defaultPrevented})),re=tr(b.id),oe=function(e){return"inline"===e||"list"===e||"both"===e||"none"===e}(v)?v:void 0,ie=r.useState((e=>null===e.activeId));return b=Wt($t({id:re,role:"combobox","aria-autocomplete":oe,"aria-haspopup":Mn(O,"listbox"),"aria-expanded":T,"aria-controls":null==O?void 0:O.id,"data-active-item":ie||void 0,value:L},b),{ref:er(y,b.ref),onChange:W,onCompositionEnd:K,onMouseDown:Z,onKeyDown:ee,onBlur:ne}),b=zi(Wt($t({store:r,focusable:o},b),{moveOnKeyPress:e=>!dn(g,e)&&(R&&N(!0),!0)})),b=Xl($t({store:r},b)),$t({autoComplete:"off"},b)})),cu=gr((function(e){return br("input",lu(e))}));function uu(t={}){const n=iu(t);return e.jsx($o,{value:n,children:t.children})}var du=e.jsxs("svg",{"aria-hidden":"true",display:"block",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,width:"1em",height:"1em",pointerEvents:"none",children:[e.jsx("line",{x1:"5",y1:"5",x2:"11",y2:"11"}),e.jsx("line",{x1:"5",y1:"11",x2:"11",y2:"5"})]}),fu=wr((function(n){var r=n,{store:o,hideWhenEmpty:i}=r,a=Ut(r,["store","hideWhenEmpty"]);const s=Bo();un(o=o||s,!1);const l=a.onClick,c=Qn((e=>{null==l||l(e),e.defaultPrevented||(null==o||o.setValue(""),null==o||o.move(null))})),u=o.useState((e=>{var t;return null==(t=e.baseElement)?void 0:t.id})),d=o.useState((e=>""===e.value));return a=sr(a,(n=>i&&d?e.jsx(t.Fragment,{}):n),[i,d]),a=Wt($t({children:du,"aria-label":"Clear input","aria-controls":u},a),{onClick:c}),a=Ql(a)})),pu=gr((function(e){return br("button",fu(e))}));function mu(e){var t;return null!=(t={menu:"menuitem",listbox:"option",tree:"treeitem"}[e])?t:"option"}var hu=wr((function(n){var r,o=n,{store:i,value:a,hideOnClick:s,setValueOnClick:l,selectValueOnClick:c=!0,resetValueOnSelect:u,focusOnHover:d=!1,moveOnKeyPress:f=!0,getItem:p}=o,m=Ut(o,["store","value","hideOnClick","setValueOnClick","selectValueOnClick","resetValueOnSelect","focusOnHover","moveOnKeyPress","getItem"]);const h=Ho();un(i=i||h,!1);const{resetValueOnSelectState:g,multiSelectable:v,selected:b}=So(i,{resetValueOnSelectState:"resetValueOnSelect",multiSelectable:e=>Array.isArray(e.selectedValue),selected:e=>function(e,t){if(null!=t)return null!=e&&(Array.isArray(e)?e.includes(t):e===t)}(e.selectedValue,a)}),w=t.useCallback((e=>{const t=Wt($t({},e),{value:a});return p?p(t):t}),[a,p]);l=null!=l?l:!v,s=null!=s?s:null!=a&&!v;const y=m.onClick,x=ar(l),C=ar(c),S=ar(null!=(r=null!=u?u:g)?r:v),k=ar(s),E=Qn((e=>{null==y||y(e),e.defaultPrevented||Hn(e)||zn(e)||(null!=a&&(C(e)&&(S(e)&&(null==i||i.resetValue()),null==i||i.setSelectedValue((e=>Array.isArray(e)?e.includes(a)?e.filter((e=>e!==a)):[...e,a]:a))),x(e)&&(null==i||i.setValue(a))),k(e)&&(null==i||i.hide()))})),R=m.onKeyDown,P=Qn((e=>{if(null==R||R(e),e.defaultPrevented)return;const t=null==i?void 0:i.getState().baseElement;if(!t)return;if(mi(t))return;(1===e.key.length||"Backspace"===e.key||"Delete"===e.key)&&(queueMicrotask((()=>t.focus())),Pn(t)&&(null==i||i.setValue(t.value)))}));v&&null!=b&&(m=$t({"aria-selected":b},m)),m=sr(m,(t=>e.jsx(Uo.Provider,{value:a,children:e.jsx(Ko.Provider,{value:null!=b&&b,children:t})})),[a,b]);const N=t.useContext(_o);m=Wt($t({role:mu(N),children:a},m),{onClick:E,onKeyDown:P});const j=ar(f);return m=Oi(Wt($t({store:i},m),{getItem:w,moveOnKeyPress:e=>{if(!j(e))return!1;const t=new Event("combobox-item-move"),n=null==i?void 0:i.getState().baseElement;return null==n||n.dispatchEvent(t),!0}})),m=Sc($t({store:i,focusOnHover:d},m))})),gu=vr(gr((function(e){return br("div",hu(e))}))),vu=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=Bo();un(n=n||o,!1);const i=n.useState((e=>{var t;return null==(t=e.baseElement)?void 0:t.id}));return pn(r=$t({htmlFor:i},r))})),bu=vr(gr((function(e){return br("label",vu(e))}))),wu=wr((function(n){var r=n,{store:o,alwaysVisible:i}=r,a=Ut(r,["store","alwaysVisible"]);const s=Ho(!0),l=zo(),c=!!(o=o||l)&&o===s;un(o,!1);const u=t.useRef(null),d=tr(a.id),f=o.useState("mounted"),p=Ui(f,a.hidden,i),m=p?Wt($t({},a.style),{display:"none"}):a.style,h=o.useState((e=>Array.isArray(e.selectedValue))),g=rr(u,"role",a.role),v=("listbox"===g||"tree"===g||"grid"===g)&&h||void 0,[b,w]=t.useState(!1),y=o.useState("contentElement");Yn((()=>{if(!f)return;const e=u.current;if(!e)return;if(y!==e)return;const t=()=>{w(!!e.querySelector("[role='listbox']"))},n=new MutationObserver(t);return n.observe(e,{subtree:!0,childList:!0,attributeFilter:["role"]}),t(),()=>n.disconnect()}),[f,y]),b||(a=$t({role:"listbox","aria-multiselectable":v},a)),a=sr(a,(t=>e.jsx(Wo,{value:o,children:e.jsx(_o.Provider,{value:g,children:t})})),[o,g]);const x=!d||s&&c?null:o.setContentElement;return pn(a=Wt($t({id:d,hidden:p},a),{ref:er(x,u,a.ref),style:m}))})),yu=gr((function(e){return br("div",wu(e))}));var xu=wr((function(e){var n=e,{store:r,modal:o,tabIndex:i,alwaysVisible:a,autoFocusOnHide:s=!0,hideOnInteractOutside:l=!0}=n,c=Ut(n,["store","modal","tabIndex","alwaysVisible","autoFocusOnHide","hideOnInteractOutside"]);const u=Bo();un(r=r||u,!1);const d=r.useState("baseElement"),f=t.useRef(!1),p=Co(r.tag,(e=>null==e?void 0:e.renderedItems.length));return c=wu($t({store:r,alwaysVisible:a},c)),c=Rl(Wt($t({store:r,modal:o,alwaysVisible:a,backdrop:!1,autoFocusOnShow:!1,finalFocus:d,preserveTabOrderAnchor:null,unstable_treeSnapshotKey:p},c),{getPersistentElements(){var e;const t=(null==(e=c.getPersistentElements)?void 0:e.call(c))||[];if(!o)return t;if(!r)return t;const{contentElement:n,baseElement:i}=r.getState();if(!i)return t;const a=wn(i),s=[];if((null==n?void 0:n.id)&&s.push(`[aria-controls~="${n.id}"]`),(null==i?void 0:i.id)&&s.push(`[aria-controls~="${i.id}"]`),!s.length)return[...t,i];const l=s.join(","),u=a.querySelectorAll(l);return[...t,...u]},autoFocusOnHide:e=>!dn(s,e)&&(!f.current||(f.current=!1,!1)),hideOnInteractOutside(e){var t,n;const o=null==r?void 0:r.getState(),i=null==(t=null==o?void 0:o.contentElement)?void 0:t.id,a=null==(n=null==o?void 0:o.baseElement)?void 0:n.id;if(function(e,...t){if(!e)return!1;if("id"in e){const n=t.filter(Boolean).map((e=>`[aria-controls~="${e}"]`)).join(", ");return!!n&&e.matches(n)}return!1}(e.target,i,a))return!1;const s="function"==typeof l?l(e):l;return s&&(f.current="click"===e.type),s}})),c})),Cu=ns(gr((function(e){return br("div",xu(e))})),Bo);l("/* AnimatedTabs.css */\n.animated-tab-panel {\n transition-property: opacity, translate;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n animation-duration: 300ms;\n}\n/* Sliding underline animation for tabs */\n.animated-tab-list {\n position: relative;\n}\n.animated-tab-list::after {\n content: '';\n position: absolute;\n bottom: 0;\n height: 2px;\n background-color: currentColor; /* Inherit color from active tab */\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n left: 0;\n left: var(--tab-left, 0);\n width: 0;\n width: var(--tab-width, 0);\n}\n.animated-tab {\n position: relative;\n}\n.animated-tab[data-state='active'] {\n border-bottom-color: transparent !important;\n}\n.animated-tab-panel[data-enter] {\n opacity: 1 !important;\n translate: 0 !important;\n}\n@media (prefers-reduced-motion: reduce) {\n .animated-tab-panel {\n transition: none;\n }\n}\n.animated-tab-panel:not([data-open]) {\n position: absolute;\n top: 0px;\n}\n.animated-panels:has(> [data-was-open]) > .animated-tab-panel {\n opacity: 0;\n translate: -100%;\n}\n.animated-panels [data-was-open] ~ .animated-tab-panel,\n.animated-panels [data-open] ~ .animated-tab-panel {\n translate: 100%;\n}\n");const Su=t.forwardRef((function(n,r){const o=t.useRef(null);return t.useEffect((()=>{const e=o.current;if(!e)return;const t=()=>{const t="true"===e.getAttribute("aria-selected");e.setAttribute("data-state",t?"active":"inactive")};t();const n=new MutationObserver(t);return n.observe(e,{attributes:!0,attributeFilter:["aria-selected"]}),()=>n.disconnect()}),[]),e.jsx(Fi,{ref:e=>{o.current=e,"function"==typeof r?r(e):r&&(r.current=e)},...n,className:`animated-tab aria-selected:text-token-text-primary flex select-none items-center justify-center gap-2 whitespace-nowrap border-none text-sm font-medium outline-none transition-colors aria-disabled:opacity-50 ${n.className||""}`})})),ku=t.forwardRef((function(n,r){const o=function(e){const n=t.useRef(void 0);return t.useEffect((()=>{n.current=e}),[e]),n.current}(Co(Yo(),"selectedId")),i=n.tabId&&o===n.tabId;return e.jsx(Qi,{ref:r,...n,"data-was-open":i||void 0,className:`animated-tab-panel max-w-full ${n.className||""}`})}));const Eu="dismissableLayer.update",Ru="dismissableLayer.pointerDownOutside",Pu="dismissableLayer.focusOutside";let Nu;const ju=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mu=t.forwardRef(((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=e,f=t.useContext(ju),[m,h]=t.useState(null),g=null!==(r=null==m?void 0:m.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,v]=t.useState({}),b=p(n,(e=>h(e))),w=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),k=w.indexOf(C),E=m?w.indexOf(m):-1,R=f.layersWithOutsidePointerEventsDisabled.size>0,P=E>=k,N=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=x(e),o=t.useRef(!1),i=t.useRef((()=>{}));return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){Iu(Ru,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...f.branches].some((e=>e.contains(t)));P&&!n&&(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())}),g),j=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=x(e),o=t.useRef(!1);return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){Iu(Pu,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...f.branches].some((e=>e.contains(t)))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())}),g);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=x(e);t.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{E===f.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),g),t.useEffect((()=>{if(m)return o&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(Nu=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),Au(),()=>{o&&1===f.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=Nu)}}),[m,g,o,f]),t.useEffect((()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),Au())}),[m,f]),t.useEffect((()=>{const e=()=>v({});return document.addEventListener(Eu,e),()=>document.removeEventListener(Eu,e)}),[]),t.createElement(S.div,c({},d,{ref:b,style:{pointerEvents:R?P?"auto":"none":void 0,...e.style},onFocusCapture:y(e.onFocusCapture,j.onFocusCapture),onBlurCapture:y(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:y(e.onPointerDownCapture,N.onPointerDownCapture)}))}));function Au(){const e=new CustomEvent(Eu);document.dispatchEvent(e)}function Iu(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?k(o,i):o.dispatchEvent(i)}const Tu=Mu,Ou="focusScope.autoFocusOnMount",Lu="focusScope.autoFocusOnUnmount",Du={bubbles:!1,cancelable:!0},Fu=t.forwardRef(((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[l,u]=t.useState(null),d=x(i),f=x(a),m=t.useRef(null),h=p(n,(e=>u(e))),g=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect((()=>{if(o){function e(e){if(g.paused||!l)return;const t=e.target;l.contains(t)?m.current=t:Hu(m.current,{select:!0})}function t(e){if(g.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Hu(m.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Hu(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,l,g.paused]),t.useEffect((()=>{if(l){Bu.add(g);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Ou,Du);l.addEventListener(Ou,d),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Hu(r,{select:t}),document.activeElement!==n)return}((e=_u(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Hu(l))}return()=>{l.removeEventListener(Ou,d),setTimeout((()=>{const e=new CustomEvent(Lu,Du);l.addEventListener(Lu,f),l.dispatchEvent(e),e.defaultPrevented||Hu(null!=t?t:document.body,{select:!0}),l.removeEventListener(Lu,f),Bu.remove(g)}),0)}}var e}),[l,d,f,g]);const v=t.useCallback((e=>{if(!r&&!o)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=_u(e),n=Vu(t,e),r=Vu(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Hu(i,{select:!0})):(e.preventDefault(),r&&Hu(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,g.paused]);return t.createElement(S.div,c({tabIndex:-1},s,{ref:h,onKeyDown:v}))}));function _u(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vu(e,t){for(const n of e)if(!zu(n,{upTo:t}))return n}function zu(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Hu(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Bu=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=$u(e,t),e.unshift(t)},remove(t){var n;e=$u(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function $u(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Wu=t.forwardRef(((e,r)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...a}=e;return i?n.createPortal(t.createElement(S.div,c({},a,{ref:r})),i):null}));let Uu=0;function Ku(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Gu=function(){return Gu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gu.apply(this,arguments)};function Xu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function qu(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Yu="right-scroll-bar-position",Zu="width-before-scroll-bar";function Qu(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ju="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,ed=new WeakMap;function td(e,n){var r,o,i,a=(r=null,o=function(t){return e.forEach((function(e){return Qu(e,t)}))},(i=t.useState((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=o,i.facade);return Ju((function(){var t=ed.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach((function(e){r.has(e)||Qu(e,null)})),r.forEach((function(e){n.has(e)||Qu(e,o)}))}ed.set(a,e)}),[e]),a}function nd(e){return e}function rd(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=nd);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=Gu({async:!0,ssr:!1},e),t}var od=function(e){var t=e.sideCar,n=Xu(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,Gu({},n))};function id(e,t){return e.useMedium(t),od}od.isSideCarExport=!0;var ad=rd(),sd=function(){},ld=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:sd,onWheelCapture:sd,onTouchMoveCapture:sd}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,w=Xu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=p,x=td([n,t]),C=Gu(Gu({},w),o);return a.createElement(a.Fragment,null,d&&a.createElement(y,{sideCar:ad,removeScrollBar:u,shards:f,noIsolation:m,inert:h,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),s?a.cloneElement(a.Children.only(l),Gu(Gu({},C),{ref:x})):a.createElement(b,Gu({},C,{className:c,ref:x}),l))}));ld.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ld.classNames={fullWidth:Zu,zeroRight:Yu};function cd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var ud=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=cd())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dd=function(){var e,t=(e=ud(),function(t,n){a.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},fd={left:0,top:0,right:0,gap:0},pd=function(e){return parseInt(e||"",10)||0},md=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return fd;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[pd(n),pd(r),pd(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},hd=dd(),gd="data-scroll-locked",vd=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(gd,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Yu," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Zu," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Yu," .").concat(Yu," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Zu," .").concat(Zu," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(gd,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},bd=function(){var e=parseInt(document.body.getAttribute(gd)||"0",10);return isFinite(e)?e:0},wd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;a.useEffect((function(){return document.body.setAttribute(gd,(bd()+1).toString()),function(){var e=bd()-1;e<=0?document.body.removeAttribute(gd):document.body.setAttribute(gd,e.toString())}}),[]);var i=a.useMemo((function(){return md(o)}),[o]);return a.createElement(hd,{styles:vd(i,!t,o,n?"":"!important")})},yd=!1;if("undefined"!=typeof window)try{var xd=Object.defineProperty({},"passive",{get:function(){return yd=!0,!0}});window.addEventListener("test",xd,xd),window.removeEventListener("test",xd,xd)}catch(e){yd=!1}var Cd=!!yd&&{passive:!1},Sd=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},kd=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Ed(e,n)){var r=Rd(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Ed=function(e,t){return"v"===e?function(e){return Sd(e,"overflowY")}(t):function(e){return Sd(e,"overflowX")}(t)},Rd=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Pd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nd=function(e){return[e.deltaX,e.deltaY]},jd=function(e){return e&&"current"in e?e.current:e},Md=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Ad=0,Id=[];var Td=id(ad,(function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Ad++)[0],i=a.useState((function(){return dd()}))[0],s=a.useRef(e);a.useEffect((function(){s.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=qu([e.lockRef.current],(e.shards||[]).map(jd),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,i=Pd(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=kd(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=kd(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{var p=Rd(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&Ed(e,s)&&(d+=h,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return u&&0===d?c=!0:u||0!==f||(c=!0),c}(p,t,e,"h"===p?l:c)}),[]),c=a.useCallback((function(e){var n=e;if(Id.length&&Id[Id.length-1]===i){var r="deltaY"in n?Nd(n):Pd(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(s.current.shards||[]).map(jd).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?l(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=a.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=a.useCallback((function(e){n.current=Pd(e),r.current=void 0}),[]),f=a.useCallback((function(t){u(t.type,Nd(t),t.target,l(t,e.lockRef.current))}),[]),p=a.useCallback((function(t){u(t.type,Pd(t),t.target,l(t,e.lockRef.current))}),[]);a.useEffect((function(){return Id.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Cd),document.addEventListener("touchmove",c,Cd),document.addEventListener("touchstart",d,Cd),function(){Id=Id.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,Cd),document.removeEventListener("touchmove",c,Cd),document.removeEventListener("touchstart",d,Cd)}}),[]);var m=e.removeScrollBar,h=e.inert;return a.createElement(a.Fragment,null,h?a.createElement(i,{styles:Md(o)}):null,m?a.createElement(wd,{gapMode:"margin"}):null)})),Od=a.forwardRef((function(e,t){return a.createElement(ld,Gu({},e,{ref:t,sideCar:Td}))}));Od.classNames=ld.classNames;var Ld=new WeakMap,Dd=new WeakMap,Fd={},_d=0,Vd=function(e){return e&&(e.host||Vd(e.parentNode))},zd=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Vd(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Fd[n]||(Fd[n]=new WeakMap);var i=Fd[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Ld.get(e)||0)+1,c=(i.get(e)||0)+1;Ld.set(e,l),i.set(e,c),a.push(e),1===l&&o&&Dd.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),s.clear(),_d++,function(){a.forEach((function(e){var t=Ld.get(e)-1,o=i.get(e)-1;Ld.set(e,t),i.set(e,o),t||(Dd.has(e)||e.removeAttribute(r),Dd.delete(e)),o||e.removeAttribute(n)})),--_d||(Ld=new WeakMap,Ld=new WeakMap,Dd=new WeakMap,Fd={})}},Hd=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),zd(r,o,n,"aria-hidden")):function(){return null}};const Bd="Dialog",[$d,Wd]=u(Bd),[Ud,Kd]=$d(Bd),Gd=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=Kd("DialogTrigger",r),a=p(n,i.triggerRef);return t.createElement(S.button,c({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ff(i.open)},o,{ref:a,onClick:y(e.onClick,i.onOpenToggle)}))})),Xd="DialogPortal",[qd,Yd]=$d(Xd,{forceMount:void 0}),Zd="DialogOverlay",Qd=t.forwardRef(((e,n)=>{const r=Yd(Zd,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=Kd(Zd,e.__scopeDialog);return a.modal?t.createElement(R,{present:o||a.open},t.createElement(Jd,c({},i,{ref:n}))):null})),Jd=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=Kd(Zd,r);return t.createElement(Od,{as:m,allowPinchZoom:!0,shards:[i.contentRef]},t.createElement(S.div,c({"data-state":ff(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))})),ef="DialogContent",tf=t.forwardRef(((e,n)=>{const r=Yd(ef,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=Kd(ef,e.__scopeDialog);return t.createElement(R,{present:o||a.open},a.modal?t.createElement(nf,c({},i,{ref:n})):t.createElement(rf,c({},i,{ref:n})))})),nf=t.forwardRef(((e,n)=>{const r=Kd(ef,e.__scopeDialog),o=t.useRef(null),i=p(n,r.contentRef,o);return t.useEffect((()=>{const e=o.current;if(e)return Hd(e)}),[]),t.createElement(of,c({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:y(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:y(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:y(e.onFocusOutside,(e=>e.preventDefault()))}))})),rf=t.forwardRef(((e,n)=>{const r=Kd(ef,e.__scopeDialog),o=t.useRef(!1),i=t.useRef(!1);return t.createElement(of,c({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());o.current=!1,i.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const s=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}}))})),of=t.forwardRef(((e,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,l=Kd(ef,r),u=p(n,t.useRef(null));return t.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Ku()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Ku()),Uu++,()=>{1===Uu&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Uu--}}),[]),t.createElement(t.Fragment,null,t.createElement(Fu,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a},t.createElement(Mu,c({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ff(l.open)},s,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)})),af="DialogTitle",sf=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=Kd(af,r);return t.createElement(S.h2,c({id:i.titleId},o,{ref:n}))})),lf="DialogDescription",cf=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=Kd(lf,r);return t.createElement(S.p,c({id:i.descriptionId},o,{ref:n}))})),uf="DialogClose",df=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=Kd(uf,r);return t.createElement(S.button,c({type:"button"},o,{ref:n,onClick:y(e.onClick,(()=>i.onOpenChange(!1)))}))}));function ff(e){return e?"open":"closed"}const[pf,mf]=function(e,n){const r=t.createContext(n);function o(e){const{children:n,...o}=e,i=t.useMemo((()=>o),Object.values(o));return t.createElement(r.Provider,{value:i},n)}return o.displayName=e+"Provider",[o,function(o){const i=t.useContext(r);if(i)return i;if(void 0!==n)return n;throw new Error(`\`${o}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:ef,titleName:af,docsSlug:"dialog"}),hf=e=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=t.useRef(null),c=t.useRef(null),[u=!1,d]=C({prop:o,defaultProp:i,onChange:a});return t.createElement(Ud,{scope:n,triggerRef:l,contentRef:c,contentId:M(),titleId:M(),descriptionId:M(),open:u,onOpenChange:d,onOpenToggle:t.useCallback((()=>d((e=>!e))),[d]),modal:s},r)},gf=Gd,vf=e=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=e,a=Kd(Xd,n);return t.createElement(qd,{scope:n,forceMount:r},t.Children.map(o,(e=>t.createElement(R,{present:r||a.open},t.createElement(Wu,{asChild:!0,container:i},e)))))},bf=Qd,wf=tf,yf=sf,xf=cf,Cf=df,[Sf,kf]=u("AlertDialog",[Wd]),Ef=Wd(),Rf=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,...o}=e,i=Ef(r);return t.createElement(gf,c({},i,o,{ref:n}))})),Pf=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,...o}=e,i=Ef(r);return t.createElement(bf,c({},i,o,{ref:n}))})),Nf="AlertDialogContent",[jf,Mf]=Sf(Nf),Af=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,children:o,...i}=e,a=Ef(r),s=p(n,t.useRef(null)),l=t.useRef(null);return t.createElement(pf,{contentName:Nf,titleName:If,docsSlug:"alert-dialog"},t.createElement(jf,{scope:r,cancelRef:l},t.createElement(wf,c({role:"alertdialog"},a,i,{ref:s,onOpenAutoFocus:y(i.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=l.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),t.createElement(g,null,o),!1)))})),If="AlertDialogTitle",Tf=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,...o}=e,i=Ef(r);return t.createElement(yf,c({},i,o,{ref:n}))})),Of=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,...o}=e,i=Ef(r);return t.createElement(xf,c({},i,o,{ref:n}))})),Lf=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,...o}=e,i=Ef(r);return t.createElement(Cf,c({},i,o,{ref:n}))})),Df=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,...o}=e,{cancelRef:i}=Mf("AlertDialogCancel",r),a=Ef(r),s=p(n,i);return t.createElement(Cf,c({},a,o,{ref:s}))})),Ff=e=>{const{__scopeAlertDialog:n,...r}=e,o=Ef(n);return t.createElement(hf,c({},o,r,{modal:!0}))},_f=e=>{const{__scopeAlertDialog:n,...r}=e,o=Ef(n);return t.createElement(vf,c({},o,r))},Vf=Pf,zf=Af,Hf=Lf,Bf=Df,$f=Tf,Wf=Of,Uf=Ff,Kf=Rf,Gf=({className:t="",children:n,...r})=>e.jsx(_f,{className:jt(t),...r,children:e.jsx("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:n})});Gf.displayName=_f.displayName;const Xf=a.forwardRef((({className:t="",...n},r)=>e.jsx(Vf,{className:jt("fixed inset-0 z-50 bg-gray-500/90 transition-opacity animate-in fade-in dark:bg-gray-800/90",t),...n,ref:r})));Xf.displayName=Vf.displayName;const qf=a.forwardRef((({className:t="",...n},r)=>e.jsxs(Gf,{children:[e.jsx(Xf,{}),e.jsx(zf,{ref:r,className:jt("fixed z-50 grid w-full max-w-lg scale-100 gap-4 bg-white p-6 opacity-100 animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full","dark:bg-gray-900",t),...n})]})));qf.displayName=zf.displayName;const Yf=({className:t="",...n})=>e.jsx("div",{className:jt("flex flex-col space-y-2 text-center sm:text-left",t),...n});Yf.displayName="AlertDialogHeader";const Zf=({className:t="",...n})=>e.jsx("div",{className:jt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});Zf.displayName="AlertDialogFooter";const Qf=a.forwardRef((({className:t="",...n},r)=>e.jsx($f,{ref:r,className:jt("text-lg font-semibold text-gray-900","dark:text-gray-50",t),...n})));Qf.displayName=$f.displayName;const Jf=a.forwardRef((({className:t="",...n},r)=>e.jsx(Wf,{ref:r,className:jt("text-sm text-gray-500","dark:text-gray-400",t),...n})));Jf.displayName=Wf.displayName;const ep=a.forwardRef((({className:t="",...n},r)=>e.jsx(Hf,{ref:r,className:jt("inline-flex h-10 items-center justify-center rounded-md bg-gray-900 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-gray-100 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),...n})));ep.displayName=Hf.displayName;const tp=a.forwardRef((({className:t="",...n},r)=>e.jsx(Bf,{ref:r,className:jt("mt-2 inline-flex h-10 items-center justify-center rounded-md border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t),...n})));function np(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function rp(...e){return t=>{let n=!1;const r=e.map((e=>{const r=np(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():np(e[t],null)}}}}function op(...e){return a.useCallback(rp(...e),e)}function ip(t){const n=sp(t),r=a.forwardRef(((t,r)=>{const{children:o,...i}=t,s=a.Children.toArray(o),l=s.find(cp);if(l){const t=l.props.children,o=s.map((e=>e===l?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(n,{...i,ref:r,children:a.isValidElement(t)?a.cloneElement(t,void 0,o):null})}return e.jsx(n,{...i,ref:r,children:o})}));return r.displayName=`${t}.Slot`,r}tp.displayName=Bf.displayName;var ap=ip("Slot");function sp(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("@radix-ui/react-accordion"),r=require("@radix-ui/react-icons"),a=require("@ariakit/react"),o=require("@radix-ui/react-alert-dialog"),s=require("@radix-ui/react-slot"),i=require("@radix-ui/react-checkbox"),l=require("@radix-ui/react-collapsible"),c=require("@radix-ui/react-dropdown-menu"),d=require("@radix-ui/react-dialog"),u=require("jotai"),h=require("react-i18next"),p=require("@radix-ui/react-hover-card"),m=require("@radix-ui/react-label"),f=require("@radix-ui/react-slider"),g=require("@radix-ui/react-separator"),v=require("@radix-ui/react-switch"),w=require("@radix-ui/react-tabs"),x=require("@radix-ui/react-toast"),y=require("@radix-ui/react-progress"),b=require("@radix-ui/react-select"),k=require("@ariakit/react/select"),C=require("react-dom"),j=require("@tanstack/react-virtual"),N=require("@tanstack/react-table"),S=require("@headlessui/react"),M=require("@ariakit/react-core/select/select-renderer");function P(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var L=P(t),T=P(n),E=P(a),A=P(o),R=P(i),z=P(l),I=P(c),V=P(d),D=P(p),O=P(m),B=P(f),F=P(g),_=P(v),H=P(w),$=P(x),W=P(y),U=P(b),X=P(k);function Y(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}function Z(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Z(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function q(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Z(e))&&(r&&(r+=" "),r+=t);return r}function G(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=K(e))&&(r&&(r+=" "),r+=t);return r}function K(e){if("string"==typeof e)return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=K(e[r]))&&(n&&(n+=" "),n+=t);return n}Y('*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgba(59, 130, 246, 0.5);\n --tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);\n --tw-ring-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow-colored: 0 0 rgba(0,0,0,0);\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgba(59, 130, 246, 0.5);\n --tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);\n --tw-ring-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow-colored: 0 0 rgba(0,0,0,0);\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e3e3e3; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type=\'button\']),\ninput:where([type=\'reset\']),\ninput:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #999696; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #999696; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden]:where(:not([hidden="until-found"])) {\n display: none;\n}\n.container {\n width: 100%;\n}\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.pointer-events-auto {\n pointer-events: auto;\n}\n.visible {\n visibility: visible;\n}\n.invisible {\n visibility: hidden;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.sticky {\n position: sticky;\n}\n.-inset-8 {\n top: -2rem;\n right: -2rem;\n bottom: -2rem;\n left: -2rem;\n}\n.inset-0 {\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n}\n.inset-y-0 {\n top: 0px;\n bottom: 0px;\n}\n.-right-1 {\n right: -0.25rem;\n}\n.-top-1 {\n top: -0.25rem;\n}\n.bottom-0 {\n bottom: 0px;\n}\n.bottom-full {\n bottom: 100%;\n}\n.left-0 {\n left: 0px;\n}\n.left-1\\/2 {\n left: 50%;\n}\n.left-2 {\n left: 0.5rem;\n}\n.left-3 {\n left: 0.75rem;\n}\n.left-\\[50\\%\\] {\n left: 50%;\n}\n.right-0 {\n right: 0px;\n}\n.right-2 {\n right: 0.5rem;\n}\n.right-3 {\n right: 0.75rem;\n}\n.right-4 {\n right: 1rem;\n}\n.right-6 {\n right: 1.5rem;\n}\n.top-0 {\n top: 0px;\n}\n.top-1\\/2 {\n top: 50%;\n}\n.top-4 {\n top: 1rem;\n}\n.top-\\[1\\.6rem\\] {\n top: 1.6rem;\n}\n.top-\\[50\\%\\] {\n top: 50%;\n}\n.top-full {\n top: 100%;\n}\n.isolate {\n isolation: isolate;\n}\n.-z-10 {\n z-index: -10;\n}\n.-z-20 {\n z-index: -20;\n}\n.z-10 {\n z-index: 10;\n}\n.z-20 {\n z-index: 20;\n}\n.z-50 {\n z-index: 50;\n}\n.z-\\[1001\\] {\n z-index: 1001;\n}\n.z-\\[999\\] {\n z-index: 999;\n}\n.m-1 {\n margin: 0.25rem;\n}\n.m-4 {\n margin: 1rem;\n}\n.m-\\[1\\.5px\\] {\n margin: 1.5px;\n}\n.m-auto {\n margin: auto;\n}\n.-mx-1 {\n margin-left: -0.25rem;\n margin-right: -0.25rem;\n}\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n.my-1 {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n}\n.-ml-3 {\n margin-left: -0.75rem;\n}\n.mb-1 {\n margin-bottom: 0.25rem;\n}\n.mb-2 {\n margin-bottom: 0.5rem;\n}\n.mb-3 {\n margin-bottom: 0.75rem;\n}\n.mb-5 {\n margin-bottom: 1.25rem;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.ml-2 {\n margin-left: 0.5rem;\n}\n.ml-4 {\n margin-left: 1rem;\n}\n.ml-auto {\n margin-left: auto;\n}\n.mr-1 {\n margin-right: 0.25rem;\n}\n.mr-2 {\n margin-right: 0.5rem;\n}\n.mr-8 {\n margin-right: 2rem;\n}\n.mr-auto {\n margin-right: auto;\n}\n.mt-1 {\n margin-top: 0.25rem;\n}\n.mt-2 {\n margin-top: 0.5rem;\n}\n.mt-3 {\n margin-top: 0.75rem;\n}\n.mt-4 {\n margin-top: 1rem;\n}\n.block {\n display: block;\n}\n.inline-block {\n display: inline-block;\n}\n.inline {\n display: inline;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.\\!table {\n display: table !important;\n}\n.table {\n display: table;\n}\n.grid {\n display: grid;\n}\n.contents {\n display: contents;\n}\n.hidden {\n display: none;\n}\n.size-10 {\n width: 2.5rem;\n height: 2.5rem;\n}\n.size-3\\.5 {\n width: 0.875rem;\n height: 0.875rem;\n}\n.size-4 {\n width: 1rem;\n height: 1rem;\n}\n.size-9 {\n width: 2.25rem;\n height: 2.25rem;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-11 {\n height: 2.75rem;\n}\n.h-12 {\n height: 3rem;\n}\n.h-2 {\n height: 0.5rem;\n}\n.h-2\\.5 {\n height: 0.625rem;\n}\n.h-2\\/3 {\n height: 66.666667%;\n}\n.h-20 {\n height: 5rem;\n}\n.h-3 {\n height: 0.75rem;\n}\n.h-3\\.5 {\n height: 0.875rem;\n}\n.h-4 {\n height: 1rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-8 {\n height: 2rem;\n}\n.h-9 {\n height: 2.25rem;\n}\n.h-\\[1px\\] {\n height: 1px;\n}\n.h-\\[42px\\] {\n height: 42px;\n}\n.h-\\[calc\\(100vh-20rem\\)\\] {\n height: calc(100vh - 20rem);\n}\n.h-\\[var\\(--radix-select-trigger-height\\)\\] {\n height: var(--radix-select-trigger-height);\n}\n.h-auto {\n height: auto;\n}\n.h-full {\n height: 100%;\n}\n.h-px {\n height: 1px;\n}\n.max-h-10 {\n max-height: 2.5rem;\n}\n.max-h-5 {\n max-height: 1.25rem;\n}\n.max-h-60 {\n max-height: 15rem;\n}\n.max-h-8 {\n max-height: 2rem;\n}\n.max-h-96 {\n max-height: 24rem;\n}\n.max-h-\\[300px\\] {\n max-height: 300px;\n}\n.max-h-\\[52vh\\] {\n max-height: 52vh;\n}\n.max-h-\\[80vh\\] {\n max-height: 80vh;\n}\n.w-0 {\n width: 0px;\n}\n.w-10 {\n width: 2.5rem;\n}\n.w-11 {\n width: 2.75rem;\n}\n.w-11\\/12 {\n width: 91.666667%;\n}\n.w-2 {\n width: 0.5rem;\n}\n.w-2\\.5 {\n width: 0.625rem;\n}\n.w-2\\/3 {\n width: 66.666667%;\n}\n.w-3 {\n width: 0.75rem;\n}\n.w-3\\.5 {\n width: 0.875rem;\n}\n.w-4 {\n width: 1rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-64 {\n width: 16rem;\n}\n.w-9 {\n width: 2.25rem;\n}\n.w-\\[1px\\] {\n width: 1px;\n}\n.w-\\[30px\\] {\n width: 30px;\n}\n.w-auto {\n width: auto;\n}\n.w-fit {\n width: -moz-fit-content;\n width: fit-content;\n}\n.w-full {\n width: 100%;\n}\n.w-px {\n width: 1px;\n}\n.min-w-0 {\n min-width: 0px;\n}\n.min-w-\\[100px\\] {\n min-width: 100px;\n}\n.min-w-\\[300px\\] {\n min-width: 300px;\n}\n.min-w-\\[40px\\] {\n min-width: 40px;\n}\n.min-w-\\[8rem\\] {\n min-width: 8rem;\n}\n.min-w-\\[var\\(--radix-select-trigger-width\\)\\] {\n min-width: var(--radix-select-trigger-width);\n}\n.max-w-0 {\n max-width: 0px;\n}\n.max-w-full {\n max-width: 100%;\n}\n.max-w-lg {\n max-width: 32rem;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n.shrink-0 {\n flex-shrink: 0;\n}\n.flex-grow {\n flex-grow: 1;\n}\n.flex-grow-0 {\n flex-grow: 0;\n}\n.grow {\n flex-grow: 1;\n}\n.table-fixed {\n table-layout: fixed;\n}\n.caption-bottom {\n caption-side: bottom;\n}\n.border-separate {\n border-collapse: separate;\n}\n.border-spacing-0 {\n --tw-border-spacing-x: 0px;\n --tw-border-spacing-y: 0px;\n border-spacing: 0px 0px;\n border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);\n}\n.origin-\\[--radix-hover-card-content-transform-origin\\] {\n transform-origin: var(--radix-hover-card-content-transform-origin);\n}\n.-translate-x-1\\/2 {\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-x-\\[-50\\%\\] {\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-y-\\[-50\\%\\] {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-rotate-180 {\n --tw-rotate: -180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(-180deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.rotate-0 {\n --tw-rotate: 0deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(0deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-0 {\n --tw-scale-x: 0;\n --tw-scale-y: 0;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(0) scaleY(0);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1) scaleY(1);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-105 {\n --tw-scale-x: 1.05;\n --tw-scale-y: 1.05;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes ping {\n\n 75%, 100% {\n transform: scale(2);\n opacity: 0;\n }\n}\n.animate-ping {\n animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;\n}\n@keyframes pulse {\n\n 50% {\n opacity: .5;\n }\n}\n.animate-pulse {\n animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n.cursor-default {\n cursor: default;\n}\n.cursor-move {\n cursor: move;\n}\n.cursor-not-allowed {\n cursor: not-allowed;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.touch-none {\n touch-action: none;\n}\n.select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.resize-none {\n resize: none;\n}\n.scroll-m-1 {\n scroll-margin: 0.25rem;\n}\n.flex-row {\n flex-direction: row;\n}\n.flex-col {\n flex-direction: column;\n}\n.flex-col-reverse {\n flex-direction: column-reverse;\n}\n.flex-wrap {\n flex-wrap: wrap;\n}\n.place-items-center {\n align-items: center;\n justify-items: center;\n place-items: center;\n}\n.items-start {\n align-items: flex-start;\n}\n.items-end {\n align-items: flex-end;\n}\n.items-center {\n align-items: center;\n}\n.justify-start {\n justify-content: flex-start;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-1 {\n gap: 0.25rem;\n}\n.gap-1\\.5 {\n gap: 0.375rem;\n}\n.gap-2 {\n gap: 0.5rem;\n}\n.gap-3 {\n gap: 0.75rem;\n}\n.gap-4 {\n gap: 1rem;\n}\n.space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * 0);\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * (1 - 0));\n margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));\n margin-left: calc(0.5rem * calc(1 - 0));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.space-y-1\\.5 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.375rem * (1 - 0));\n margin-top: calc(0.375rem * (1 - var(--tw-space-y-reverse)));\n margin-top: calc(0.375rem * calc(1 - 0));\n margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.375rem * 0);\n margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));\n}\n.space-y-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.5rem * (1 - 0));\n margin-top: calc(0.5rem * (1 - var(--tw-space-y-reverse)));\n margin-top: calc(0.5rem * calc(1 - 0));\n margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.5rem * 0);\n margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-x-auto {\n overflow-x: auto;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.overflow-y-hidden {\n overflow-y: hidden;\n}\n.overscroll-contain {\n overscroll-behavior: contain;\n}\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.text-ellipsis {\n text-overflow: ellipsis;\n}\n.whitespace-nowrap {\n white-space: nowrap;\n}\n.whitespace-pre-wrap {\n white-space: pre-wrap;\n}\n.break-words {\n word-wrap: break-word;\n}\n.break-all {\n word-break: break-all;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.rounded-2xl {\n border-radius: 1rem;\n}\n.rounded-3xl {\n border-radius: 1.5rem;\n}\n.rounded-\\[0\\.185rem\\] {\n border-radius: 0.185rem;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n border-radius: var(--radius);\n}\n.rounded-md {\n border-radius: calc(0.5rem - 2px);\n border-radius: calc(var(--radius) - 2px);\n}\n.rounded-sm {\n border-radius: calc(0.5rem - 4px);\n border-radius: calc(var(--radius) - 4px);\n}\n.rounded-xl {\n border-radius: 0.75rem;\n}\n.rounded-b-lg {\n border-bottom-right-radius: 0.5rem;\n border-bottom-right-radius: var(--radius);\n border-bottom-left-radius: 0.5rem;\n border-bottom-left-radius: var(--radius);\n}\n.border {\n border-width: 1px;\n}\n.border-2 {\n border-width: 2px;\n}\n.border-y {\n border-top-width: 1px;\n border-bottom-width: 1px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-r {\n border-right-width: 1px;\n}\n.border-t {\n border-top-width: 1px;\n}\n.border-none {\n border-style: none;\n}\n.border-black\\/10 {\n border-color: rgba(0, 0, 0, 0.1);\n}\n.border-border-heavy {\n border-color: #999696;\n border-color: var(--border-heavy);\n}\n.border-border-light {\n border-color: #e3e3e3;\n border-color: var(--border-light);\n}\n.border-border-medium {\n border-color: #cdcdcd;\n border-color: var(--border-medium);\n}\n.border-gray-100 {\n --tw-border-opacity: 1;\n border-color: rgba(236, 236, 236, 1);\n border-color: rgba(236, 236, 236, var(--tw-border-opacity, 1));\n}\n.border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgba(227, 227, 227, 1);\n border-color: rgba(227, 227, 227, var(--tw-border-opacity, 1));\n}\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgba(205, 205, 205, 1);\n border-color: rgba(205, 205, 205, var(--tw-border-opacity, 1));\n}\n.border-gray-50 {\n --tw-border-opacity: 1;\n border-color: rgba(247, 247, 248, 1);\n border-color: rgba(247, 247, 248, var(--tw-border-opacity, 1));\n}\n.border-gray-500 {\n --tw-border-opacity: 1;\n border-color: rgba(89, 89, 89, 1);\n border-color: rgba(89, 89, 89, var(--tw-border-opacity, 1));\n}\n.border-green-500 {\n --tw-border-opacity: 1;\n border-color: rgba(16, 163, 127, 1);\n border-color: rgba(16, 163, 127, var(--tw-border-opacity, 1));\n}\n.border-green-600 {\n --tw-border-opacity: 1;\n border-color: rgba(18, 110, 107, 1);\n border-color: rgba(18, 110, 107, var(--tw-border-opacity, 1));\n}\n.border-input {\n border-color: hsl(0, 0%, 89.8%);\n border-color: hsl(var(--input));\n}\n.border-orange-500 {\n --tw-border-opacity: 1;\n border-color: rgba(249, 115, 22, 1);\n border-color: rgba(249, 115, 22, var(--tw-border-opacity, 1));\n}\n.border-primary {\n border-color: hsl(0, 0%, 9%);\n border-color: hsl(var(--primary));\n}\n.border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgba(239, 68, 68, 1);\n border-color: rgba(239, 68, 68, var(--tw-border-opacity, 1));\n}\n.border-transparent {\n border-color: transparent;\n}\n.bg-background {\n background-color: hsl(0, 0%, 100%);\n background-color: hsl(var(--background));\n}\n.bg-black\\/80 {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(59, 130, 246, 1);\n background-color: rgba(59, 130, 246, var(--tw-bg-opacity, 1));\n}\n.bg-blue-500\\/60 {\n background-color: rgba(59, 130, 246, 0.6);\n}\n.bg-border {\n background-color: hsl(0, 0%, 89.8%);\n background-color: hsl(var(--border));\n}\n.bg-border-light {\n background-color: #e3e3e3;\n background-color: var(--border-light);\n}\n.bg-border-medium {\n background-color: #cdcdcd;\n background-color: var(--border-medium);\n}\n.bg-foreground {\n background-color: hsl(0, 0%, 3.9%);\n background-color: hsl(var(--foreground));\n}\n.bg-gray-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(89, 89, 89, 1);\n background-color: rgba(89, 89, 89, var(--tw-bg-opacity, 1));\n}\n.bg-gray-500\\/90 {\n background-color: rgba(89, 89, 89, 0.9);\n}\n.bg-gray-600\\/65 {\n background-color: rgba(66, 66, 66, 0.65);\n}\n.bg-gray-800 {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.bg-green-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(16, 163, 127, 1);\n background-color: rgba(16, 163, 127, var(--tw-bg-opacity, 1));\n}\n.bg-green-600\\/20 {\n background-color: rgba(18, 110, 107, 0.2);\n}\n.bg-green-600\\/50 {\n background-color: rgba(18, 110, 107, 0.5);\n}\n.bg-muted {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--muted));\n}\n.bg-muted\\/50 {\n background-color: hsla(0, 0%, 96.1%, 0.5);\n background-color: hsl(var(--muted) / 0.5);\n}\n.bg-orange-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(249, 115, 22, 1);\n background-color: rgba(249, 115, 22, var(--tw-bg-opacity, 1));\n}\n.bg-primary {\n background-color: hsl(0, 0%, 9%);\n background-color: hsl(var(--primary));\n}\n.bg-primary\\/20 {\n background-color: hsla(0, 0%, 9%, 0.2);\n background-color: hsl(var(--primary) / 0.2);\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(239, 68, 68, 1);\n background-color: rgba(239, 68, 68, var(--tw-bg-opacity, 1));\n}\n.bg-secondary {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--secondary));\n}\n.bg-surface-active {\n background-color: #ececec;\n background-color: var(--surface-active);\n}\n.bg-surface-chat {\n background-color: #fff;\n background-color: var(--surface-chat);\n}\n.bg-surface-destructive {\n background-color: #b91c1c;\n background-color: var(--surface-destructive);\n}\n.bg-surface-primary {\n background-color: #fff;\n background-color: var(--surface-primary);\n}\n.bg-surface-secondary {\n background-color: #f7f7f8;\n background-color: var(--surface-secondary);\n}\n.bg-surface-secondary-alt {\n background-color: #e3e3e3;\n background-color: var(--surface-secondary-alt);\n}\n.bg-surface-submit {\n background-color: #047857;\n background-color: var(--surface-submit);\n}\n.bg-surface-tertiary {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.bg-transparent {\n background-color: transparent;\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.bg-white\\/10 {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.bg-gradient-to-b {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n.bg-gradient-to-r {\n background-image: linear-gradient(to right, var(--tw-gradient-stops));\n}\n.from-blue-500\\/10 {\n --tw-gradient-from: rgba(59, 130, 246, 0.1) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-blue-500\\/20 {\n --tw-gradient-from: rgba(59, 130, 246, 0.2) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-purple-500\\/5 {\n --tw-gradient-from: rgba(168, 85, 247, 0.05) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-surface-tertiary-alt {\n --tw-gradient-from: var(--surface-tertiary-alt) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-65\\% {\n --tw-gradient-from-position: 65%;\n}\n.via-blue-500\\/5 {\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(59, 130, 246, 0.05) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.via-purple-500\\/10 {\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(168, 85, 247, 0.1) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.via-purple-500\\/20 {\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(168, 85, 247, 0.2) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.to-blue-500\\/10 {\n --tw-gradient-to: rgba(59, 130, 246, 0.1) var(--tw-gradient-to-position);\n}\n.to-blue-500\\/20 {\n --tw-gradient-to: rgba(59, 130, 246, 0.2) var(--tw-gradient-to-position);\n}\n.to-purple-500\\/5 {\n --tw-gradient-to: rgba(168, 85, 247, 0.05) var(--tw-gradient-to-position);\n}\n.to-transparent {\n --tw-gradient-to: transparent var(--tw-gradient-to-position);\n}\n.fill-current {\n fill: currentColor;\n}\n.stroke-1 {\n stroke-width: 1;\n}\n.p-0 {\n padding: 0px;\n}\n.p-1 {\n padding: 0.25rem;\n}\n.p-1\\.5 {\n padding: 0.375rem;\n}\n.p-2 {\n padding: 0.5rem;\n}\n.p-4 {\n padding: 1rem;\n}\n.p-6 {\n padding: 1.5rem;\n}\n.px-0 {\n padding-left: 0px;\n padding-right: 0px;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-1\\.5 {\n padding-left: 0.375rem;\n padding-right: 0.375rem;\n}\n.px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-2\\.5 {\n padding-top: 0.625rem;\n padding-bottom: 0.625rem;\n}\n.py-3\\.5 {\n padding-top: 0.875rem;\n padding-bottom: 0.875rem;\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.pb-4 {\n padding-bottom: 1rem;\n}\n.pb-6 {\n padding-bottom: 1.5rem;\n}\n.pl-2 {\n padding-left: 0.5rem;\n}\n.pl-2\\.5 {\n padding-left: 0.625rem;\n}\n.pl-3 {\n padding-left: 0.75rem;\n}\n.pl-8 {\n padding-left: 2rem;\n}\n.pl-9 {\n padding-left: 2.25rem;\n}\n.pr-10 {\n padding-right: 2.5rem;\n}\n.pr-2 {\n padding-right: 0.5rem;\n}\n.pr-2\\.5 {\n padding-right: 0.625rem;\n}\n.pr-3 {\n padding-right: 0.75rem;\n}\n.pr-8 {\n padding-right: 2rem;\n}\n.pr-9 {\n padding-right: 2.25rem;\n}\n.pt-0 {\n padding-top: 0px;\n}\n.pt-6 {\n padding-top: 1.5rem;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.align-middle {\n vertical-align: middle;\n}\n.font-sans {\n font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n.text-3xl {\n font-size: 1.875rem;\n line-height: 2.25rem;\n}\n.text-\\[0\\.5rem\\] {\n font-size: 0.5rem;\n}\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.font-medium {\n font-weight: 500;\n}\n.font-normal {\n font-weight: 400;\n}\n.font-semibold {\n font-weight: 600;\n}\n.leading-6 {\n line-height: 1.5rem;\n}\n.leading-none {\n line-height: 1;\n}\n.tracking-tight {\n letter-spacing: -0.025em;\n}\n.tracking-widest {\n letter-spacing: 0.1em;\n}\n.text-black {\n --tw-text-opacity: 1;\n color: rgba(0, 0, 0, 1);\n color: rgba(0, 0, 0, var(--tw-text-opacity, 1));\n}\n.text-black\\/50 {\n color: rgba(0, 0, 0, 0.5);\n}\n.text-blue-400 {\n --tw-text-opacity: 1;\n color: rgba(96, 165, 250, 1);\n color: rgba(96, 165, 250, var(--tw-text-opacity, 1));\n}\n.text-destructive-foreground {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--destructive-foreground));\n}\n.text-foreground {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.text-gray-400 {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.text-gray-500 {\n --tw-text-opacity: 1;\n color: rgba(89, 89, 89, 1);\n color: rgba(89, 89, 89, var(--tw-text-opacity, 1));\n}\n.text-gray-600 {\n --tw-text-opacity: 1;\n color: rgba(66, 66, 66, 1);\n color: rgba(66, 66, 66, var(--tw-text-opacity, 1));\n}\n.text-gray-700 {\n --tw-text-opacity: 1;\n color: rgba(47, 47, 47, 1);\n color: rgba(47, 47, 47, var(--tw-text-opacity, 1));\n}\n.text-gray-800 {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.text-gray-900 {\n --tw-text-opacity: 1;\n color: rgba(13, 13, 13, 1);\n color: rgba(13, 13, 13, var(--tw-text-opacity, 1));\n}\n.text-green-600 {\n --tw-text-opacity: 1;\n color: rgba(18, 110, 107, 1);\n color: rgba(18, 110, 107, var(--tw-text-opacity, 1));\n}\n.text-muted-foreground {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.text-muted-foreground\\/70 {\n color: hsla(0, 0%, 45.1%, 0.7);\n color: hsl(var(--muted-foreground) / 0.7);\n}\n.text-primary {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--primary));\n}\n.text-primary-foreground {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--primary-foreground));\n}\n.text-red-400 {\n --tw-text-opacity: 1;\n color: rgba(248, 113, 113, 1);\n color: rgba(248, 113, 113, var(--tw-text-opacity, 1));\n}\n.text-secondary {\n color: hsl(0, 0%, 96.1%);\n color: hsl(var(--secondary));\n}\n.text-secondary-foreground {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--secondary-foreground));\n}\n.text-text-primary {\n color: #212121;\n color: var(--text-primary);\n}\n.text-text-secondary {\n color: #424242;\n color: var(--text-secondary);\n}\n.text-text-secondary-alt {\n color: #595959;\n color: var(--text-secondary-alt);\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgba(255, 255, 255, 1);\n color: rgba(255, 255, 255, var(--tw-text-opacity, 1));\n}\n.underline {\n text-decoration-line: underline;\n}\n.underline-offset-4 {\n text-underline-offset: 4px;\n}\n.placeholder-text-secondary::-moz-placeholder {\n color: #424242;\n color: var(--text-secondary);\n}\n.placeholder-text-secondary::placeholder {\n color: #424242;\n color: var(--text-secondary);\n}\n.opacity-0 {\n opacity: 0;\n}\n.opacity-100 {\n opacity: 1;\n}\n.opacity-50 {\n opacity: 0.5;\n}\n.opacity-70 {\n opacity: 0.7;\n}\n.opacity-75 {\n opacity: 0.75;\n}\n.shadow-2xl {\n --tw-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-md {\n --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.outline {\n outline-style: solid;\n}\n.ring-0 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-1 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-2 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-black\\/10 {\n --tw-ring-color: rgba(0, 0, 0, 0.1);\n}\n.ring-ring {\n --tw-ring-color: hsl(var(--ring));\n}\n.ring-ring-primary {\n --tw-ring-color: var(--ring-primary);\n}\n.ring-offset-background {\n --tw-ring-offset-color: hsl(var(--background));\n}\n.blur {\n --tw-blur: blur(8px);\n filter: blur(8px) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.blur-none {\n --tw-blur: ;\n filter: var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.blur-sm {\n --tw-blur: blur(4px);\n filter: blur(4px) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.blur-xl {\n --tw-blur: blur(24px);\n filter: blur(24px) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.backdrop-blur-sm {\n --tw-backdrop-blur: blur(4px);\n -webkit-backdrop-filter: blur(4px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n backdrop-filter: blur(4px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-shadow {\n transition-property: box-shadow;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.duration-100 {\n transition-duration: 100ms;\n}\n.duration-1000 {\n transition-duration: 1000ms;\n}\n.duration-200 {\n transition-duration: 200ms;\n}\n.duration-300 {\n transition-duration: 300ms;\n}\n.duration-500 {\n transition-duration: 500ms;\n}\n.duration-700 {\n transition-duration: 700ms;\n}\n.ease-in {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.will-change-transform {\n will-change: transform;\n}\n@keyframes enter {\n\n from {\n opacity: 1;\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n@keyframes exit {\n\n to {\n opacity: 1;\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n.animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.fade-in {\n --tw-enter-opacity: 0;\n}\n.fade-in-0 {\n --tw-enter-opacity: 0;\n}\n.fade-in-90 {\n --tw-enter-opacity: 0.9;\n}\n.zoom-in-95 {\n --tw-enter-scale: .95;\n}\n.slide-in-from-bottom-10 {\n --tw-enter-translate-y: 2.5rem;\n}\n.slide-in-from-left-1 {\n --tw-enter-translate-x: -0.25rem;\n}\n.duration-100 {\n animation-duration: 100ms;\n}\n.duration-1000 {\n animation-duration: 1000ms;\n}\n.duration-200 {\n animation-duration: 200ms;\n}\n.duration-300 {\n animation-duration: 300ms;\n}\n.duration-500 {\n animation-duration: 500ms;\n}\n.duration-700 {\n animation-duration: 700ms;\n}\n.ease-in {\n animation-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ease-in-out {\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-out {\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n/* Custom Variables */\n:root {\n --white: #fff;\n --black: #000;\n --gray-20: #ececf1;\n --gray-50: #f7f7f8;\n --gray-100: #ececec;\n --gray-200: #e3e3e3;\n --gray-300: #cdcdcd;\n --gray-400: #999696;\n --gray-500: #595959;\n --gray-600: #424242;\n --gray-700: #2f2f2f;\n --gray-800: #212121;\n --gray-850: #171717;\n --gray-900: #0d0d0d;\n --green-50: #ecfdf5;\n --green-100: #d1fae5;\n --green-200: #a7f3d0;\n --green-300: #6ee7b7;\n --green-400: #34d399;\n --green-500: #10b981;\n --green-600: #059669;\n --green-700: #047857;\n --green-800: #065f46;\n --green-900: #064e3b;\n --green-950: #022c22;\n --red-50: #fef2f2;\n --red-100: #fee2e2;\n --red-200: #fecaca;\n --red-300: #fca5a5;\n --red-400: #f87171;\n --red-500: #ef4444;\n --red-600: #dc2626;\n --red-700: #b91c1c;\n --red-800: #991b1b;\n --red-900: #7f1d1d;\n --red-950: #450a0a;\n --amber-50: #fffbeb;\n --amber-100: #fef3c7;\n --amber-200: #fde68a;\n --amber-300: #fcd34d;\n --amber-400: #fbbf24;\n --amber-500: #f59e0b;\n --amber-600: #d97706;\n --amber-700: #b45309;\n --amber-800: #92400e;\n --amber-900: #78350f;\n --amber-950: #451a03;\n}\nhtml {\n --presentation: var(--white);\n --text-primary: var(--gray-800);\n --text-secondary: var(--gray-600);\n --text-secondary-alt: var(--gray-500);\n --text-tertiary: var(--gray-500);\n --text-warning: var(--amber-500);\n --ring-primary: var(--gray-500);\n --header-primary: var(--white);\n --header-hover: var(--gray-50);\n --header-button-hover: var(--gray-50);\n --surface-active: var(--gray-100);\n --surface-active-alt: var(--gray-200);\n --surface-hover: var(--gray-200);\n --surface-hover-alt: var(--gray-300);\n --surface-primary: var(--white);\n --surface-primary-alt: var(--gray-50);\n --surface-primary-contrast: var(--gray-100);\n --surface-secondary: var(--gray-50);\n --surface-secondary-alt: var(--gray-200);\n --surface-tertiary: var(--gray-100);\n --surface-tertiary-alt: var(--white);\n --surface-dialog: var(--white);\n --surface-submit: var(--green-700);\n --surface-submit-hover: var(--green-800);\n --surface-destructive: var(--red-700);\n --surface-destructive-hover: var(--red-800);\n --surface-chat: var(--white);\n --border-light: var(--gray-200);\n --border-medium-alt: var(--gray-300);\n --border-medium: var(--gray-300);\n --border-heavy: var(--gray-400);\n --border-xheavy: var(--gray-500);\n\n --background: 0 0% 100%;\n --foreground: 0 0% 3.9%;\n --card: 0 0% 100%;\n --card-foreground: 0 0% 3.9%;\n --primary: 0 0% 9%;\n --primary-foreground: 0 0% 98%;\n --secondary: 0 0% 96.1%;\n --secondary-foreground: 0 0% 9%;\n --muted: 0 0% 96.1%;\n --muted-foreground: 0 0% 45.1%;\n --accent: 0 0% 96.1%;\n --accent-foreground: 0 0% 9%;\n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 0 0% 98%;\n --border: 0 0% 89.8%;\n --input: 0 0% 89.8%;\n --ring: 0 0% 3.9%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n --switch-unchecked: 0 0% 58%;\n}\n.dark {\n --presentation: var(--gray-800);\n --text-primary: var(--gray-100);\n --text-secondary: var(--gray-300);\n --text-secondary-alt: var(--gray-400);\n --text-tertiary: var(--gray-500);\n --text-warning: var(--amber-500);\n --header-primary: var(--gray-700);\n --header-hover: var(--gray-600);\n --header-button-hover: var(--gray-700);\n --surface-active: var(--gray-500);\n --surface-active-alt: var(--gray-700);\n --surface-hover: var(--gray-600);\n --surface-hover-alt: var(--gray-600);\n --surface-primary: var(--gray-900);\n --surface-primary-alt: var(--gray-850);\n --surface-primary-contrast: var(--gray-850);\n --surface-secondary: var(--gray-800);\n --surface-secondary-alt: var(--gray-800);\n --surface-tertiary: var(--gray-700);\n --surface-tertiary-alt: var(--gray-700);\n --surface-dialog: var(--gray-850);\n --surface-submit: var(--green-700);\n --surface-submit-hover: var(--green-800);\n --surface-destructive: var(--red-800);\n --surface-destructive-hover: var(--red-900);\n --surface-chat: var(--gray-700);\n --border-light: var(--gray-700);\n --border-medium-alt: var(--gray-600);\n --border-medium: var(--gray-600);\n --border-heavy: var(--gray-500);\n --border-xheavy: var(--gray-400);\n\n --background: 0 0% 7%;\n --foreground: 0 0% 98%;\n --card: 0 0% 3.9%;\n --card-foreground: 0 0% 98%;\n --primary: 0 0% 98%;\n --primary-foreground: 0 0% 9%;\n --secondary: 0 0% 14.9%;\n --secondary-foreground: 0 0% 98%;\n --muted: 0 0% 14.9%;\n --muted-foreground: 0 0% 63.9%;\n --accent: 0 0% 14.9%;\n --accent-foreground: 0 0% 98%;\n --destructive: 0 62.8% 40.6%;\n --destructive-foreground: 0 0% 98%;\n --border: 0 0% 14.9%;\n --input: 0 0% 14.9%;\n --ring: 0 0% 83.1%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n --switch-unchecked: 0 0% 40%;\n}\n.placeholder\\:text-gray-400::-moz-placeholder {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.placeholder\\:text-gray-400::placeholder {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.placeholder\\:text-muted-foreground::-moz-placeholder {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.placeholder\\:text-muted-foreground::placeholder {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.after\\:absolute::after {\n content: var(--tw-content);\n position: absolute;\n}\n.after\\:inset-y-0::after {\n content: var(--tw-content);\n top: 0px;\n bottom: 0px;\n}\n.after\\:left-1\\/2::after {\n content: var(--tw-content);\n left: 50%;\n}\n.after\\:w-1::after {\n content: var(--tw-content);\n width: 0.25rem;\n}\n.after\\:-translate-x-1\\/2::after {\n content: var(--tw-content);\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.first\\:rounded-l-xl:first-child {\n border-top-left-radius: 0.75rem;\n border-bottom-left-radius: 0.75rem;\n}\n.first\\:border-l:first-child {\n border-left-width: 1px;\n}\n.last\\:rounded-r-xl:last-child {\n border-top-right-radius: 0.75rem;\n border-bottom-right-radius: 0.75rem;\n}\n.hover\\:cursor-pointer:hover {\n cursor: pointer;\n}\n.hover\\:bg-accent:hover {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.hover\\:bg-black\\/\\[0\\.075\\]:hover {\n background-color: rgba(0, 0, 0, 0.075);\n}\n.hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-100\\/50:hover {\n background-color: rgba(236, 236, 236, 0.5);\n}\n.hover\\:bg-gray-20:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 241, 1);\n background-color: rgba(236, 236, 241, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-50:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(247, 247, 248, 1);\n background-color: rgba(247, 247, 248, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-700:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-800:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-muted\\/50:hover {\n background-color: hsla(0, 0%, 96.1%, 0.5);\n background-color: hsl(var(--muted) / 0.5);\n}\n.hover\\:bg-primary\\/90:hover {\n background-color: hsla(0, 0%, 9%, 0.9);\n background-color: hsl(var(--primary) / 0.9);\n}\n.hover\\:bg-secondary\\/80:hover {\n background-color: hsla(0, 0%, 96.1%, 0.8);\n background-color: hsl(var(--secondary) / 0.8);\n}\n.hover\\:bg-surface-destructive-hover:hover {\n background-color: #991b1b;\n background-color: var(--surface-destructive-hover);\n}\n.hover\\:bg-surface-hover:hover {\n background-color: #e3e3e3;\n background-color: var(--surface-hover);\n}\n.hover\\:bg-surface-secondary:hover {\n background-color: #f7f7f8;\n background-color: var(--surface-secondary);\n}\n.hover\\:bg-surface-submit-hover:hover {\n background-color: #065f46;\n background-color: var(--surface-submit-hover);\n}\n.hover\\:bg-surface-tertiary:hover {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.hover\\:bg-transparent:hover {\n background-color: transparent;\n}\n.hover\\:text-accent-foreground:hover {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--accent-foreground));\n}\n.hover\\:text-foreground:hover {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.hover\\:text-secondary:hover {\n color: hsl(0, 0%, 96.1%);\n color: hsl(var(--secondary));\n}\n.hover\\:text-text-primary:hover {\n color: #212121;\n color: var(--text-primary);\n}\n.hover\\:underline:hover {\n text-decoration-line: underline;\n}\n.hover\\:opacity-100:hover {\n opacity: 1;\n}\n.hover\\:shadow-md:hover {\n --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.hover\\:shadow-sm:hover {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.focus\\:bg-accent:focus {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.focus\\:bg-gray-100:focus {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.focus\\:bg-surface-hover:focus {\n background-color: #e3e3e3;\n background-color: var(--surface-hover);\n}\n.focus\\:bg-surface-tertiary:focus {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.focus\\:bg-gradient-to-b:focus {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n.focus\\:from-surface-primary:focus {\n --tw-gradient-from: var(--surface-primary) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.focus\\:text-accent-foreground:focus {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--accent-foreground));\n}\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus\\:ring-0:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-1:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-2:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-inset:focus {\n --tw-ring-inset: inset;\n}\n.focus\\:ring-gray-400:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(153, 150, 150, var(--tw-ring-opacity, 1));\n}\n.focus\\:ring-gray-700\\/10:focus {\n --tw-ring-color: rgba(47, 47, 47, 0.1);\n}\n.focus\\:ring-ring:focus {\n --tw-ring-color: hsl(var(--ring));\n}\n.focus\\:ring-ring-primary:focus {\n --tw-ring-color: var(--ring-primary);\n}\n.focus\\:ring-offset-2:focus {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus-visible\\:ring-1:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus-visible\\:ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus-visible\\:ring-gray-500:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(89, 89, 89, var(--tw-ring-opacity, 1));\n}\n.focus-visible\\:ring-ring:focus-visible {\n --tw-ring-color: hsl(var(--ring));\n}\n.focus-visible\\:ring-ring-primary:focus-visible {\n --tw-ring-color: var(--ring-primary);\n}\n.focus-visible\\:ring-white:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity, 1));\n}\n.focus-visible\\:ring-opacity-75:focus-visible {\n --tw-ring-opacity: 0.75;\n}\n.focus-visible\\:ring-offset-1:focus-visible {\n --tw-ring-offset-width: 1px;\n}\n.focus-visible\\:ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:ring-offset-background:focus-visible {\n --tw-ring-offset-color: hsl(var(--background));\n}\n.active\\:scale-95:active {\n --tw-scale-x: .95;\n --tw-scale-y: .95;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(.95) scaleY(.95);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.active\\:shadow-inner:active {\n --tw-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.disabled\\:pointer-events-none:disabled {\n pointer-events: none;\n}\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n.disabled\\:bg-white:disabled {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.disabled\\:opacity-50:disabled {\n opacity: 0.5;\n}\n.disabled\\:opacity-80:disabled {\n opacity: 0.8;\n}\n.group:hover .group-hover\\:visible {\n visibility: visible;\n}\n.group:hover .group-hover\\:inline {\n display: inline;\n}\n.group:hover .group-hover\\:hidden {\n display: none;\n}\n.group:focus .group-focus\\:inline {\n display: inline;\n}\n.group:active .group-active\\:visible {\n visibility: visible;\n}\n.peer:focus ~ .peer-focus\\:scale-105 {\n --tw-scale-x: 1.05;\n --tw-scale-y: 1.05;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.peer:focus ~ .peer-focus\\:opacity-100 {\n opacity: 1;\n}\n.peer:disabled ~ .peer-disabled\\:cursor-not-allowed {\n cursor: not-allowed;\n}\n.peer:disabled ~ .peer-disabled\\:opacity-70 {\n opacity: 0.7;\n}\n.has-\\[\\:disabled\\]\\:opacity-50:has(:disabled) {\n opacity: 0.5;\n}\n.aria-disabled\\:opacity-50[aria-disabled="true"] {\n opacity: 0.5;\n}\n.data-\\[disabled\\]\\:pointer-events-none[data-disabled] {\n pointer-events: none;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction="vertical"] {\n height: 1px;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction="vertical"] {\n width: 100%;\n}\n.data-\\[side\\=bottom\\]\\:translate-y-1[data-side="bottom"] {\n --tw-translate-y: 0.25rem;\n transform: translate(var(--tw-translate-x), 0.25rem) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=left\\]\\:-translate-x-1[data-side="left"] {\n --tw-translate-x: -0.25rem;\n transform: translate(-0.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=right\\]\\:translate-x-1[data-side="right"] {\n --tw-translate-x: 0.25rem;\n transform: translate(0.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=top\\]\\:-translate-y-1[data-side="top"] {\n --tw-translate-y: -0.25rem;\n transform: translate(var(--tw-translate-x), -0.25rem) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=checked\\]\\:translate-x-5[data-state="checked"] {\n --tw-translate-x: 1.25rem;\n transform: translate(1.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state="unchecked"] {\n --tw-translate-x: 0px;\n transform: translate(0px, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes accordion-up {\n\n from {\n height: var(--radix-accordion-content-height);\n }\n\n to {\n height: 0;\n }\n}\n.data-\\[state\\=closed\\]\\:animate-accordion-up[data-state="closed"] {\n animation: accordion-up 0.2s ease-out;\n}\n@keyframes accordion-down {\n\n from {\n height: 0;\n }\n\n to {\n height: var(--radix-accordion-content-height);\n }\n}\n.data-\\[state\\=open\\]\\:animate-accordion-down[data-state="open"] {\n animation: accordion-down 0.2s ease-out;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction="vertical"] {\n flex-direction: column;\n}\n.data-\\[active-item\\]\\:bg-black\\/\\[0\\.075\\][data-active-item] {\n background-color: rgba(0, 0, 0, 0.075);\n}\n.data-\\[active-item\\]\\:bg-surface-tertiary[data-active-item] {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.data-\\[state\\=active\\]\\:bg-white[data-state="active"] {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=checked\\]\\:bg-primary[data-state="checked"] {\n background-color: hsl(0, 0%, 9%);\n background-color: hsl(var(--primary));\n}\n.data-\\[state\\=open\\]\\:bg-accent[data-state="open"] {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.data-\\[state\\=open\\]\\:bg-gray-100[data-state="open"] {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=selected\\]\\:bg-muted[data-state="selected"] {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--muted));\n}\n.data-\\[state\\=unchecked\\]\\:bg-switch-unchecked[data-state="unchecked"] {\n background-color: hsl(0, 0%, 58%);\n background-color: hsl(var(--switch-unchecked));\n}\n.data-\\[active-item\\]\\:text-text-primary[data-active-item] {\n color: #212121;\n color: var(--text-primary);\n}\n.data-\\[state\\=active\\]\\:text-gray-800[data-state="active"] {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state="checked"] {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--primary-foreground));\n}\n.data-\\[state\\=open\\]\\:text-muted-foreground[data-state="open"] {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.data-\\[disabled\\]\\:opacity-50[data-disabled] {\n opacity: 0.5;\n}\n.data-\\[state\\=active\\]\\:shadow-sm[data-state="active"] {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.data-\\[state\\=open\\]\\:animate-in[data-state="open"] {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:animate-out[data-state="closed"] {\n animation-name: exit;\n animation-duration: 150ms;\n --tw-exit-opacity: initial;\n --tw-exit-scale: initial;\n --tw-exit-rotate: initial;\n --tw-exit-translate-x: initial;\n --tw-exit-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:fade-out[data-state="closed"] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=closed\\]\\:fade-out-0[data-state="closed"] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in[data-state="open"] {\n --tw-enter-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in-0[data-state="open"] {\n --tw-enter-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in-90[data-state="open"] {\n --tw-enter-opacity: 0.9;\n}\n.data-\\[state\\=closed\\]\\:zoom-out-95[data-state="closed"] {\n --tw-exit-scale: .95;\n}\n.data-\\[state\\=open\\]\\:zoom-in-95[data-state="open"] {\n --tw-enter-scale: .95;\n}\n.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side="bottom"] {\n --tw-enter-translate-y: -0.5rem;\n}\n.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side="left"] {\n --tw-enter-translate-x: 0.5rem;\n}\n.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side="right"] {\n --tw-enter-translate-x: -0.5rem;\n}\n.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side="top"] {\n --tw-enter-translate-y: 0.5rem;\n}\n.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state="closed"] {\n --tw-exit-translate-x: -50%;\n}\n.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state="closed"] {\n --tw-exit-translate-y: -48%;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-bottom-10[data-state="open"] {\n --tw-enter-translate-y: 2.5rem;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state="open"] {\n --tw-enter-translate-x: -50%;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state="open"] {\n --tw-enter-translate-y: -48%;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n left: 0px;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n height: 0.25rem;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n width: 100%;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n --tw-translate-x: 0px;\n transform: translate(0px, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.dark *.dark\\:border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgba(205, 205, 205, 1);\n border-color: rgba(205, 205, 205, var(--tw-border-opacity, 1));\n}\n.dark *.dark\\:border-gray-600 {\n --tw-border-opacity: 1;\n border-color: rgba(66, 66, 66, 1);\n border-color: rgba(66, 66, 66, var(--tw-border-opacity, 1));\n}\n.dark *.dark\\:border-gray-700 {\n --tw-border-opacity: 1;\n border-color: rgba(47, 47, 47, 1);\n border-color: rgba(47, 47, 47, var(--tw-border-opacity, 1));\n}\n.dark *.dark\\:border-gray-800 {\n --tw-border-opacity: 1;\n border-color: rgba(33, 33, 33, 1);\n border-color: rgba(33, 33, 33, var(--tw-border-opacity, 1));\n}\n.dark *.dark\\:border-white\\/10 {\n border-color: rgba(255, 255, 255, 0.1);\n}\n.dark *.dark\\:bg-black\\/80 {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.dark *.dark\\:bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.dark *.dark\\:bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.dark *.dark\\:bg-gray-700 {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark *.dark\\:bg-gray-800 {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark *.dark\\:bg-gray-800\\/90 {\n background-color: rgba(33, 33, 33, 0.9);\n}\n.dark *.dark\\:bg-gray-850 {\n --tw-bg-opacity: 1;\n background-color: rgba(23, 23, 23, 1);\n background-color: rgba(23, 23, 23, var(--tw-bg-opacity, 1));\n}\n.dark *.dark\\:bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark *.dark\\:fill-white {\n fill: #fff;\n}\n.dark *.dark\\:text-black {\n --tw-text-opacity: 1;\n color: rgba(0, 0, 0, 1);\n color: rgba(0, 0, 0, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-100 {\n --tw-text-opacity: 1;\n color: rgba(236, 236, 236, 1);\n color: rgba(236, 236, 236, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-200 {\n --tw-text-opacity: 1;\n color: rgba(227, 227, 227, 1);\n color: rgba(227, 227, 227, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-300 {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-400 {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-50 {\n --tw-text-opacity: 1;\n color: rgba(247, 247, 248, 1);\n color: rgba(247, 247, 248, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-500 {\n --tw-text-opacity: 1;\n color: rgba(89, 89, 89, 1);\n color: rgba(89, 89, 89, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-800 {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-900 {\n --tw-text-opacity: 1;\n color: rgba(13, 13, 13, 1);\n color: rgba(13, 13, 13, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-white {\n --tw-text-opacity: 1;\n color: rgba(255, 255, 255, 1);\n color: rgba(255, 255, 255, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-white\\/50 {\n color: rgba(255, 255, 255, 0.5);\n}\n.dark *.dark\\:opacity-25 {\n opacity: 0.25;\n}\n.dark *.dark\\:ring-white\\/20 {\n --tw-ring-color: rgba(255, 255, 255, 0.2);\n}\n.dark .dark\\:hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:hover\\:bg-gray-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:hover\\:bg-gray-600:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(66, 66, 66, 1);\n background-color: rgba(66, 66, 66, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:hover\\:bg-gray-700:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:hover\\:bg-gray-800:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:hover\\:bg-white\\/10:hover {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.dark .dark\\:focus\\:bg-gray-800:focus {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:focus\\:bg-gray-900:focus {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:focus\\:ring-gray-200\\/10:focus {\n --tw-ring-color: rgba(227, 227, 227, 0.1);\n}\n.dark .dark\\:focus\\:ring-gray-400:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(153, 150, 150, var(--tw-ring-opacity, 1));\n}\n.dark .dark\\:focus\\:ring-white:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity, 1));\n}\n.dark .dark\\:focus\\:ring-offset-gray-700:focus {\n --tw-ring-offset-color: #2f2f2f;\n}\n.dark .dark\\:focus\\:ring-offset-gray-900:focus {\n --tw-ring-offset-color: #0d0d0d;\n}\n.group:focus-within .dark\\:group-focus-within\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.group:hover .dark\\:group-hover\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.dark .dark\\:data-\\[active-item\\]\\:bg-white\\/10[data-active-item] {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.dark .dark\\:data-\\[state\\=active\\]\\:bg-gray-700[data-state="active"] {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:data-\\[state\\=open\\]\\:bg-gray-800[data-state="open"] {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:data-\\[state\\=open\\]\\:bg-gray-900[data-state="open"] {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:data-\\[state\\=active\\]\\:text-gray-200[data-state="active"] {\n --tw-text-opacity: 1;\n color: rgba(227, 227, 227, 1);\n color: rgba(227, 227, 227, var(--tw-text-opacity, 1));\n}\n@media not all and (min-width: 640px) {\n\n .max-sm\\:order-first {\n order: -9999;\n }\n\n .max-sm\\:w-full {\n width: 100%;\n }\n\n .max-sm\\:flex-col {\n flex-direction: column;\n }\n}\n@media (min-width: 640px) {\n\n .sm\\:order-none {\n order: 0;\n }\n\n .sm\\:mt-0 {\n margin-top: 0px;\n }\n\n .sm\\:size-4 {\n width: 1rem;\n height: 1rem;\n }\n\n .sm\\:flex-row {\n flex-direction: row;\n }\n\n .sm\\:items-center {\n align-items: center;\n }\n\n .sm\\:justify-end {\n justify-content: flex-end;\n }\n\n .sm\\:gap-2\\.5 {\n gap: 0.625rem;\n }\n\n .sm\\:gap-4 {\n gap: 1rem;\n }\n\n .sm\\:space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * 0);\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * (1 - 0));\n margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));\n margin-left: calc(0.5rem * calc(1 - 0));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n }\n\n .sm\\:rounded-lg {\n border-radius: 0.5rem;\n border-radius: var(--radius);\n }\n\n .sm\\:px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n }\n\n .sm\\:py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .sm\\:pt-0 {\n padding-top: 0px;\n }\n\n .sm\\:text-left {\n text-align: left;\n }\n\n .sm\\:text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n\n .sm\\:zoom-in-90 {\n --tw-enter-scale: .9;\n }\n\n .sm\\:slide-in-from-bottom-0 {\n --tw-enter-translate-y: 0px;\n }\n}\n@media (min-width: 768px) {\n\n .md\\:m-0 {\n margin: 0px;\n }\n\n .md\\:block {\n display: block;\n }\n\n .md\\:inline {\n display: inline;\n }\n\n .md\\:h-4 {\n height: 1rem;\n }\n\n .md\\:h-5 {\n height: 1.25rem;\n }\n\n .md\\:w-4 {\n width: 1rem;\n }\n\n .md\\:w-5 {\n width: 1.25rem;\n }\n\n .md\\:w-\\[100\\%\\] {\n width: 100%;\n }\n\n .md\\:w-auto {\n width: auto;\n }\n\n .md\\:w-full {\n width: 100%;\n }\n\n .md\\:p-3 {\n padding: 0.75rem;\n }\n\n .md\\:px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n }\n\n .md\\:py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .md\\:text-justify {\n text-align: justify;\n }\n}\n.\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]) {\n padding-right: 0px;\n}\n.\\[\\&\\>span\\]\\:line-clamp-1>span {\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n}\n.\\[\\&\\>span\\]\\:flex>span {\n display: flex;\n}\n.\\[\\&\\>span\\]\\:w-auto>span {\n width: auto;\n}\n.\\[\\&\\>span\\]\\:w-full>span {\n width: 100%;\n}\n.\\[\\&\\>span\\]\\:items-center>span {\n align-items: center;\n}\n.\\[\\&\\>span\\]\\:gap-1>span {\n gap: 0.25rem;\n}\n.\\[\\&\\>span\\]\\:truncate>span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.\\[\\&\\>svg\\]\\:hidden>svg {\n display: none;\n}\n.\\[\\&\\>svg\\]\\:size-3\\.5>svg {\n width: 0.875rem;\n height: 0.875rem;\n}\n.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr {\n border-bottom-width: 0px;\n}\n.\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div {\n --tw-rotate: 90deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(90deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg {\n --tw-rotate: 180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(180deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.\\[\\&_svg\\]\\:h-4 svg {\n height: 1rem;\n}\n.\\[\\&_svg\\]\\:w-4 svg {\n width: 1rem;\n}\n.\\[\\&_svg\\]\\:shrink-0 svg {\n flex-shrink: 0;\n}\n.\\[\\&_svg\\]\\:text-foreground svg {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child {\n border-width: 0px;\n}\n.\\[\\&_tr\\]\\:border-b tr {\n border-bottom-width: 1px;\n}\n');function Q(e){var t=function(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},a=function(e,t){if(!t)return e;return e.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){var n=e[0],r=e[1];return[t+n,r]})):e})]})}(Object.entries(e.classGroups),n);return a.forEach(function(e){var n=e[0];te(e[1],r,n,t)}),r}(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,a=void 0===r?{}:r;return{getClassGroupId:function(e){var n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),J(n,t)||function(e){if(ee.test(e)){var t=ee.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var r=n[e]||[];return t&&a[e]?[].concat(r,a[e]):r}}}function J(e,t){if(0===e.length)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),a=r?J(e.slice(1),r):void 0;if(a)return a;if(0!==t.validators.length){var o=e.join("-");return t.validators.find(function(e){return(0,e.validator)(o)})?.classGroupId}}var ee=/^\[(.+)\]$/;function te(e,t,n,r){e.forEach(function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void te(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(function(e){var a=e[0];te(e[1],ne(t,a),n,r)})}else{(""===e?t:ne(t,e)).classGroupId=n}})}function ne(e,t){var n=e;return t.split("-").forEach(function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}function re(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function a(a,o){n.set(a,o),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(a(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):a(e,t)}}}function ae(e){var t=e.separator||":",n=1===t.length,r=t[0],a=t.length;return function(e){for(var o,s=[],i=0,l=0,c=0;c<e.length;c++){var d=e[c];if(0===i){if(d===r&&(n||e.slice(c,c+a)===t)){s.push(e.slice(l,c)),l=c+a;continue}if("/"===d){o=c;continue}}"["===d?i++:"]"===d&&i--}var u=0===s.length?e:e.substring(l),h=u.startsWith("!");return{modifiers:s,hasImportantModifier:h,baseClassName:h?u.substring(1):u,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}}var oe=/\s+/;function se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,a,o,s=function(e){var n=t[0],l=t.slice(1).reduce(function(e,t){return t(e)},n());return r=function(e){return{cache:re(e.cacheSize),splitModifiers:ae(e),...Q(e)}}(l),a=r.cache.get,o=r.cache.set,s=i,i(e)};function i(e){var t=a(e);if(t)return t;var n=function(e,t){var n=t.splitModifiers,r=t.getClassGroupId,a=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(oe).map(function(e){var t=n(e),a=t.modifiers,o=t.hasImportantModifier,s=t.baseClassName,i=t.maybePostfixModifierPosition,l=r(i?s.substring(0,i):s),c=Boolean(i);if(!l){if(!i)return{isTailwindClass:!1,originalClassName:e};if(!(l=r(s)))return{isTailwindClass:!1,originalClassName:e};c=!1}var d=function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)}),t.push.apply(t,n.sort()),t}(a).join(":");return{isTailwindClass:!0,modifierId:o?d+"!":d,classGroupId:l,originalClassName:e,hasPostfixModifier:c}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,s=t+n;return!o.has(s)&&(o.add(s),a(n,r).forEach(function(e){return o.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" ")}(e,r);return o(e,n),n}return function(){return s(G.apply(null,arguments))}}function ie(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var le=/^\[(?:([a-z-]+):)?(.+)\]$/i,ce=/^\d+\/\d+$/,de=new Set(["px","full","screen"]),ue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,he=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pe=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function me(e){return ye(e)||de.has(e)||ce.test(e)||fe(e)}function fe(e){return Me(e,"length",Pe)}function ge(e){return Me(e,"size",Le)}function ve(e){return Me(e,"position",Le)}function we(e){return Me(e,"url",Te)}function xe(e){return Me(e,"number",ye)}function ye(e){return!Number.isNaN(Number(e))}function be(e){return e.endsWith("%")&&ye(e.slice(0,-1))}function ke(e){return Ee(e)||Me(e,"number",Ee)}function Ce(e){return le.test(e)}function je(){return!0}function Ne(e){return ue.test(e)}function Se(e){return Me(e,"",Ae)}function Me(e,t,n){var r=le.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function Pe(e){return he.test(e)}function Le(){return!1}function Te(e){return e.startsWith("url(")}function Ee(e){return Number.isInteger(Number(e))}function Ae(e){return pe.test(e)}function Re(){var e=ie("colors"),t=ie("spacing"),n=ie("blur"),r=ie("brightness"),a=ie("borderColor"),o=ie("borderRadius"),s=ie("borderSpacing"),i=ie("borderWidth"),l=ie("contrast"),c=ie("grayscale"),d=ie("hueRotate"),u=ie("invert"),h=ie("gap"),p=ie("gradientColorStops"),m=ie("gradientColorStopPositions"),f=ie("inset"),g=ie("margin"),v=ie("opacity"),w=ie("padding"),x=ie("saturate"),y=ie("scale"),b=ie("sepia"),k=ie("skew"),C=ie("space"),j=ie("translate"),N=function(){return["auto",Ce,t]},S=function(){return[Ce,t]},M=function(){return["",me]},P=function(){return["auto",ye,Ce]},L=function(){return["","0",Ce]},T=function(){return[ye,xe]},E=function(){return[ye,Ce]};return{cacheSize:500,theme:{colors:[je],spacing:[me],blur:["none","",Ne,Ce],brightness:T(),borderColor:[e],borderRadius:["none","","full",Ne,Ce],borderSpacing:S(),borderWidth:M(),contrast:T(),grayscale:L(),hueRotate:E(),invert:L(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[be,fe],inset:N(),margin:N(),opacity:T(),padding:S(),saturate:T(),scale:T(),sepia:L(),skew:E(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[Ne]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[Ce])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ke]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",ke]}],"grid-cols":[{"grid-cols":[je]}],"col-start-end":[{col:["auto",{span:["full",ke]},Ce]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[je]}],"row-start-end":[{row:["auto",{span:[ke]},Ce]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Ce,t]}],"min-w":[{"min-w":["min","max","fit",Ce,me]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Ne]},Ne,Ce]}],h:[{h:[Ce,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Ce,me]}],"max-h":[{"max-h":[Ce,t,"min","max","fit"]}],"font-size":[{text:["base",Ne,fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xe]}],"font-family":[{font:[je]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",ye,xe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ce,me]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",me]}],"underline-offset":[{"underline-offset":["auto",Ce,me]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[ve])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ge]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},we]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[Ce,me]}],"outline-w":[{outline:[me]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[me]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ne,Se]}],"shadow-color":[{shadow:[je]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ne,Ce]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[x]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[ke,Ce]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[me,xe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var ze=se(Re);const Ie=(...e)=>ze(q(e)),Ve=e=>{const t=document.documentElement;switch(e.split("-")[1]){case"xs":t.style.setProperty("--markdown-font-size","0.75rem");break;case"sm":t.style.setProperty("--markdown-font-size","0.875rem");break;case"base":t.style.setProperty("--markdown-font-size","1rem");break;case"lg":t.style.setProperty("--markdown-font-size","1.125rem");break;case"xl":t.style.setProperty("--markdown-font-size","1.25rem")}},De=()=>{if("undefined"!=typeof window&&window.localStorage){const e=window.localStorage.getItem("color-theme");if("string"==typeof e)return e;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}return"light"},Oe=T.Root,Be=L.forwardRef(({className:t="",...n},r)=>e.jsx(T.Item,{ref:r,className:Ie("border-b",t),...n}));Be.displayName="AccordionItem";const Fe=L.forwardRef(({className:t="",children:n,...a},o)=>e.jsx(T.Header,{className:"flex",children:e.jsxs(T.Trigger,{ref:o,className:Ie("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...a,children:[n,e.jsx(r.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Fe.displayName=T.Trigger.displayName;const _e=L.forwardRef(({className:t="",children:n,...r},a)=>e.jsx(T.Content,{ref:a,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:e.jsx("div",{className:Ie("pb-4 pt-0",t),children:n})}));_e.displayName=T.Content.displayName;Y("/* AnimatedTabs.css */\n.animated-tab-panel {\n transition-property: opacity, translate;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n animation-duration: 300ms;\n}\n/* Sliding underline animation for tabs */\n.animated-tab-list {\n position: relative;\n}\n.animated-tab-list::after {\n content: '';\n position: absolute;\n bottom: 0;\n height: 2px;\n background-color: currentColor; /* Inherit color from active tab */\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n left: 0;\n left: var(--tab-left, 0);\n width: 0;\n width: var(--tab-width, 0);\n}\n.animated-tab {\n position: relative;\n}\n.animated-tab[data-state='active'] {\n border-bottom-color: transparent !important;\n}\n.animated-tab-panel[data-enter] {\n opacity: 1 !important;\n translate: 0 !important;\n}\n@media (prefers-reduced-motion: reduce) {\n .animated-tab-panel {\n transition: none;\n }\n}\n.animated-tab-panel:not([data-open]) {\n position: absolute;\n top: 0px;\n}\n.animated-panels:has(> [data-was-open]) > .animated-tab-panel {\n opacity: 0;\n translate: -100%;\n}\n.animated-panels [data-was-open] ~ .animated-tab-panel,\n.animated-panels [data-open] ~ .animated-tab-panel {\n translate: 100%;\n}\n");const He=t.forwardRef(function(n,r){const a=t.useRef(null);return t.useEffect(()=>{const e=a.current;if(!e)return;const t=()=>{const t="true"===e.getAttribute("aria-selected");e.setAttribute("data-state",t?"active":"inactive")};t();const n=new MutationObserver(t);return n.observe(e,{attributes:!0,attributeFilter:["aria-selected"]}),()=>n.disconnect()},[]),e.jsx(E.Tab,{ref:e=>{a.current=e,"function"==typeof r?r(e):r&&(r.current=e)},...n,className:`animated-tab aria-selected:text-token-text-primary flex select-none items-center justify-center gap-2 whitespace-nowrap border-none text-sm font-medium outline-none transition-colors aria-disabled:opacity-50 ${n.className||""}`})}),$e=t.forwardRef(function(n,r){const a=E.useTabContext(),o=function(e){const n=t.useRef(void 0);return t.useEffect(()=>{n.current=e},[e]),n.current}(E.useStoreState(a,"selectedId")),s=n.tabId&&o===n.tabId;return e.jsx(E.TabPanel,{ref:r,...n,"data-was-open":s||void 0,className:`animated-tab-panel max-w-full ${n.className||""}`})});const We=A.Root,Ue=A.Trigger,Xe=({className:t="",children:n,...r})=>e.jsx(A.Portal,{className:Ie(t),...r,children:e.jsx("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:n})});Xe.displayName=A.Portal.displayName;const Ye=L.forwardRef(({className:t="",...n},r)=>e.jsx(A.Overlay,{className:Ie("fixed inset-0 z-50 bg-gray-500/90 transition-opacity animate-in fade-in dark:bg-gray-800/90",t),...n,ref:r}));Ye.displayName=A.Overlay.displayName;const Ze=L.forwardRef(({className:t="",...n},r)=>e.jsxs(Xe,{children:[e.jsx(Ye,{}),e.jsx(A.Content,{ref:r,className:Ie("fixed z-50 grid w-full max-w-lg scale-100 gap-4 bg-white p-6 opacity-100 animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full","dark:bg-gray-900",t),...n})]}));Ze.displayName=A.Content.displayName;const qe=({className:t="",...n})=>e.jsx("div",{className:Ie("flex flex-col space-y-2 text-center sm:text-left",t),...n});qe.displayName="AlertDialogHeader";const Ge=({className:t="",...n})=>e.jsx("div",{className:Ie("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});Ge.displayName="AlertDialogFooter";const Ke=L.forwardRef(({className:t="",...n},r)=>e.jsx(A.Title,{ref:r,className:Ie("text-lg font-semibold text-gray-900","dark:text-gray-50",t),...n}));Ke.displayName=A.Title.displayName;const Qe=L.forwardRef(({className:t="",...n},r)=>e.jsx(A.Description,{ref:r,className:Ie("text-sm text-gray-500","dark:text-gray-400",t),...n}));Qe.displayName=A.Description.displayName;const Je=L.forwardRef(({className:t="",...n},r)=>e.jsx(A.Action,{ref:r,className:Ie("inline-flex h-10 items-center justify-center rounded-md bg-gray-900 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-gray-100 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),...n}));Je.displayName=A.Action.displayName;const et=L.forwardRef(({className:t="",...n},r)=>e.jsx(A.Cancel,{ref:r,className:Ie("mt-2 inline-flex h-10 items-center justify-center rounded-md border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t),...n}));et.displayName=A.Cancel.displayName;
2
2
  /**
3
3
  * @license lucide-react v0.525.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
6
6
  * See the LICENSE file in the root directory of this source tree.
7
- */(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?rp(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var lp=Symbol("radix.slottable");function cp(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===lp}const up=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,((e,t,n)=>n?n.toUpperCase():t.toLowerCase())))(e);return t.charAt(0).toUpperCase()+t.slice(1)},dp=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim(),fp=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
7
+ */
8
+ const tt=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},nt=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),rt=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
8
9
  /**
9
10
  * @license lucide-react v0.525.0 - ISC
10
11
  *
11
12
  * This source code is licensed under the ISC license.
12
13
  * See the LICENSE file in the root directory of this source tree.
13
14
  */
14
- var pp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
15
+ var at={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
15
16
  /**
16
17
  * @license lucide-react v0.525.0 - ISC
17
18
  *
18
19
  * This source code is licensed under the ISC license.
19
20
  * See the LICENSE file in the root directory of this source tree.
20
- */const mp=t.forwardRef((({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:i="",children:a,iconNode:s,...l},c)=>t.createElement("svg",{ref:c,...pp,width:n,height:n,stroke:e,strokeWidth:o?24*Number(r)/Number(n):r,className:dp("lucide",i),...!a&&!fp(l)&&{"aria-hidden":"true"},...l},[...s.map((([e,n])=>t.createElement(e,n))),...Array.isArray(a)?a:[a]]))),hp=(e,n)=>{const r=t.forwardRef((({className:r,...o},i)=>{return t.createElement(mp,{ref:i,iconNode:n,className:dp(`lucide-${a=up(e),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...o});var a}));return r.displayName=up(e),r},gp=hp("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),vp=hp("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),bp=hp("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),wp=hp("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),yp=hp("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),xp=hp("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Cp=hp("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),Sp=hp("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),kp=hp("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),Ep=hp("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),Rp=hp("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Pp=hp("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Np=hp("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),jp=hp("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Mp=a.forwardRef((({...t},n)=>e.jsx("nav",{ref:n,"aria-label":"breadcrumb",...t})));
21
+ */const ot=t.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:s,iconNode:i,...l},c)=>t.createElement("svg",{ref:c,...at,width:n,height:n,stroke:e,strokeWidth:a?24*Number(r)/Number(n):r,className:nt("lucide",o),...!s&&!rt(l)&&{"aria-hidden":"true"},...l},[...i.map(([e,n])=>t.createElement(e,n)),...Array.isArray(s)?s:[s]])),st=(e,n)=>{const r=t.forwardRef(({className:r,...a},o)=>{return t.createElement(ot,{ref:o,iconNode:n,className:nt(`lucide-${s=tt(e),s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...a});var s});return r.displayName=tt(e),r},it=st("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),lt=st("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),ct=st("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),dt=st("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),ut=st("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),ht=st("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),pt=st("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),mt=st("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),ft=st("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),gt=st("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),vt=st("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),wt=st("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),xt=st("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),yt=st("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),bt=L.forwardRef(({...t},n)=>e.jsx("nav",{ref:n,"aria-label":"breadcrumb",...t}));
21
22
  /**
22
23
  * @license lucide-react v0.525.0 - ISC
23
24
  *
24
25
  * This source code is licensed under the ISC license.
25
26
  * See the LICENSE file in the root directory of this source tree.
26
- */Mp.displayName="Breadcrumb";const Ap=a.forwardRef((({className:t,...n},r)=>e.jsx("ol",{ref:r,className:jt("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...n})));Ap.displayName="BreadcrumbList";const Ip=a.forwardRef((({className:t,...n},r)=>e.jsx("li",{ref:r,className:jt("inline-flex items-center gap-1.5",t),...n})));Ip.displayName="BreadcrumbItem";const Tp=a.forwardRef((({asChild:t,className:n,...r},o)=>{const i=t?ap:"a";return e.jsx(i,{ref:o,className:jt("transition-colors hover:text-foreground",n),...r})}));Tp.displayName="BreadcrumbLink";const Op=a.forwardRef((({className:t,...n},r)=>e.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:jt("font-normal text-foreground",t),...n})));Op.displayName="BreadcrumbPage";const Lp=({children:t,className:n,...r})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:jt("[&>svg]:size-3.5",n),...r,children:t??e.jsx(wp,{})});Lp.displayName="BreadcrumbSeparator";const Dp=({className:t,...n})=>e.jsxs("span",{role:"presentation","aria-hidden":"true",className:jt("flex h-9 w-9 items-center justify-center",t),...n,children:[e.jsx(xp,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More"})]});Dp.displayName="BreadcrumbElipssis";const Fp=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,_p=He,Vp=((e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return _p(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;const a=Fp(t)||Fp(r);return o[e][a]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...s}[t]):{...i,...s}[t]===n}))?[...e,n,r]:e}),[]);return _p(e,a,l,null==n?void 0:n.class,null==n?void 0:n.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-surface-destructive text-destructive-foreground hover:bg-surface-destructive-hover",outline:"text-text-primary border border-border-light bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-surface-hover hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",submit:"bg-surface-submit text-white hover:bg-surface-submit-hover"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-lg px-3",lg:"h-11 rounded-lg px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),zp=a.forwardRef((({className:t,variant:n,size:r,asChild:o=!1,...i},a)=>{const s=o?ap:"button";return e.jsx(s,{className:jt(Vp({variant:n,size:r,className:t})),ref:a,...i})}));function Hp(e){const[n,r]=t.useState(void 0);return E((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),n}zp.displayName="Button";const Bp="Checkbox",[$p,Wp]=u(Bp),[Up,Kp]=$p(Bp),Gp=t.forwardRef(((e,n)=>{const{__scopeCheckbox:r,name:o,checked:i,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:d,...f}=e,[m,h]=t.useState(null),g=p(n,(e=>h(e))),v=t.useRef(!1),b=!m||Boolean(m.closest("form")),[w=!1,x]=C({prop:i,defaultProp:a,onChange:d}),k=t.useRef(w);return t.useEffect((()=>{const e=null==m?void 0:m.form;if(e){const t=()=>x(k.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[m,x]),t.createElement(Up,{scope:r,state:w,disabled:l},t.createElement(S.button,c({type:"button",role:"checkbox","aria-checked":Yp(w)?"mixed":w,"aria-required":s,"data-state":Zp(w),"data-disabled":l?"":void 0,disabled:l,value:u},f,{ref:g,onKeyDown:y(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:y(e.onClick,(e=>{x((e=>!!Yp(e)||!e)),b&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())}))})),b&&t.createElement(qp,{control:m,bubbles:!v.current,name:o,value:u,checked:w,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))})),Xp=t.forwardRef(((e,n)=>{const{__scopeCheckbox:r,forceMount:o,...i}=e,a=Kp("CheckboxIndicator",r);return t.createElement(R,{present:o||Yp(a.state)||!0===a.state},t.createElement(S.span,c({"data-state":Zp(a.state),"data-disabled":a.disabled?"":void 0},i,{ref:n,style:{pointerEvents:"none",...e.style}})))})),qp=e=>{const{control:n,checked:r,bubbles:o=!0,...i}=e,a=t.useRef(null),s=function(e){const n=t.useRef({value:e,previous:e});return t.useMemo((()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous)),[e])}(r),l=Hp(n);return t.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==r&&n){const t=new Event("click",{bubbles:o});e.indeterminate=Yp(r),n.call(e,!Yp(r)&&r),e.dispatchEvent(t)}}),[s,r,o]),t.createElement("input",c({type:"checkbox","aria-hidden":!0,defaultChecked:!Yp(r)&&r},i,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Yp(e){return"indeterminate"===e}function Zp(e){return Yp(e)?"indeterminate":e?"checked":"unchecked"}const Qp=Gp,Jp=Xp,em=a.forwardRef((({className:t="",...n},r)=>e.jsx(Qp,{ref:r,className:jt("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...n,children:e.jsx(Jp,{className:jt("flex items-center justify-center"),children:e.jsx(gp,{className:"h-4 w-4"})})})));function tm(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function nm(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}em.displayName=Qp.displayName;var rm=globalThis?.document?a.useLayoutEffect:()=>{},om=a[" useInsertionEffect ".trim().toString()]||rm;function im({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return om((()=>{i.current=t}),[t]),a.useEffect((()=>{o.current!==n&&(i.current?.(n),o.current=n)}),[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:o;{const t=a.useRef(void 0!==e);a.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l}),[l,r])}const u=a.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)}),[l,e,i,s]);return[c,u]}var am=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=ip(`Primitive.${n}`),o=a.forwardRef(((t,o)=>{const{asChild:i,...a}=t,s=i?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(s,{...a,ref:o})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{});var sm=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return a.useReducer(((e,n)=>t[e][n]??e),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect((()=>{const e=lm(r.current);i.current="mounted"===l?e:"none"}),[l]),rm((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=lm(t);if(e)c("MOUNT");else if("none"===a||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,c]),rm((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=lm(r.current).includes(i.animationName);if(i.target===t&&a&&(c("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(i.current=lm(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback((e=>{r.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=op(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?a.cloneElement(o,{ref:i}):null};function lm(e){return e?.animationName||"none"}sm.displayName="Presence";var cm=a[" useId ".trim().toString()]||(()=>{}),um=0;function dm(e){const[t,n]=a.useState(cm());return rm((()=>{n((e=>e??String(um++)))}),[e]),e||(t?`radix-${t}`:"")}var fm="Collapsible",[pm,mm]=function(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,c=r?.[t]?.[s]||i,u=a.useMemo((()=>l),Object.values(l));return e.jsx(c.Provider,{value:u,children:o})};return l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t]?.[s]||i,c=a.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},nm(o,...n)]}(fm),[hm,gm]=pm(fm),vm=a.forwardRef(((t,n)=>{const{__scopeCollapsible:r,open:o,defaultOpen:i,disabled:s,onOpenChange:l,...c}=t,[u,d]=im({prop:o,defaultProp:i??!1,onChange:l,caller:fm});return e.jsx(hm,{scope:r,disabled:s,contentId:dm(),open:u,onOpenToggle:a.useCallback((()=>d((e=>!e))),[d]),children:e.jsx(am.div,{"data-state":Sm(u),"data-disabled":s?"":void 0,...c,ref:n})})}));vm.displayName=fm;var bm="CollapsibleTrigger",wm=a.forwardRef(((t,n)=>{const{__scopeCollapsible:r,...o}=t,i=gm(bm,r);return e.jsx(am.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Sm(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:n,onClick:tm(t.onClick,i.onOpenToggle)})}));wm.displayName=bm;var ym="CollapsibleContent",xm=a.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=gm(ym,t.__scopeCollapsible);return e.jsx(sm,{present:r||i.open,children:({present:t})=>e.jsx(Cm,{...o,ref:n,present:t})})}));xm.displayName=ym;var Cm=a.forwardRef(((t,n)=>{const{__scopeCollapsible:r,present:o,children:i,...s}=t,l=gm(ym,r),[c,u]=a.useState(o),d=a.useRef(null),f=op(n,d),p=a.useRef(0),m=p.current,h=a.useRef(0),g=h.current,v=l.open||c,b=a.useRef(v),w=a.useRef(void 0);return a.useEffect((()=>{const e=requestAnimationFrame((()=>b.current=!1));return()=>cancelAnimationFrame(e)}),[]),rm((()=>{const e=d.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();p.current=t.height,h.current=t.width,b.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),u(o)}}),[l.open,o]),e.jsx(am.div,{"data-state":Sm(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!v,...s,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style},children:v&&i})}));function Sm(e){return e?"open":"closed"}const km=vm,Em=wm,Rm=xm;function Pm(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Nm(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function jm(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Mm(e){const t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>(...e)=>t.current?.(...e)),[])}function Am({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=a.useState(e),[r]=n,o=a.useRef(r),i=Mm(t);return a.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,s=i?e:r,l=Mm(n);return[s,a.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[i,e,o,l])]}var Im=a.forwardRef(((t,n)=>{const{children:r,...o}=t,i=a.Children.toArray(r),s=i.find(Lm);if(s){const t=s.props.children,r=i.map((e=>e===s?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(Tm,{...o,ref:n,children:a.isValidElement(t)?a.cloneElement(t,void 0,r):null})}return e.jsx(Tm,{...o,ref:n,children:r})}));Im.displayName="Slot";var Tm=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n);return a.cloneElement(n,{...Dm(r,n.props),ref:t?Nm(t,e):e})}return a.Children.count(n)>1?a.Children.only(null):null}));Tm.displayName="SlotClone";var Om=({children:t})=>e.jsx(e.Fragment,{children:t});function Lm(e){return a.isValidElement(e)&&e.type===Om}function Dm(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}var Fm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=a.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?Im:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});function _m(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Vm(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;function l(n){const{scope:r,children:o,...l}=n,c=r?.[t][s]||i,u=a.useMemo((()=>l),Object.values(l));return e.jsx(c.Provider,{value:u,children:o})}return r=[...r,o],l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t][s]||i,c=a.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},zm(o,...n)]}function zm(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Hm(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Bm(...e){return a.useCallback(Hm(...e),e)}var $m=a.forwardRef(((t,n)=>{const{children:r,...o}=t,i=a.Children.toArray(r),s=i.find(Km);if(s){const t=s.props.children,r=i.map((e=>e===s?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(Wm,{...o,ref:n,children:a.isValidElement(t)?a.cloneElement(t,void 0,r):null})}return e.jsx(Wm,{...o,ref:n,children:r})}));$m.displayName="Slot";var Wm=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n);return a.cloneElement(n,{...Gm(r,n.props),ref:t?Hm(t,e):e})}return a.Children.count(n)>1?a.Children.only(null):null}));Wm.displayName="SlotClone";var Um=({children:t})=>e.jsx(e.Fragment,{children:t});function Km(e){return a.isValidElement(e)&&e.type===Um}function Gm(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Xm(n){const r=n+"CollectionProvider",[o,i]=Vm(r),[a,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),l=n=>{const{scope:r,children:o}=n,i=t.useRef(null),s=t.useRef(new Map).current;return e.jsx(a,{scope:r,itemMap:s,collectionRef:i,children:o})};l.displayName=r;const c=n+"CollectionSlot",u=t.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=Bm(n,s(c,r).collectionRef);return e.jsx($m,{ref:i,children:o})}));u.displayName=c;const d=n+"CollectionItemSlot",f="data-radix-collection-item",p=t.forwardRef(((n,r)=>{const{scope:o,children:i,...a}=n,l=t.useRef(null),c=Bm(r,l),u=s(d,o);return t.useEffect((()=>(u.itemMap.set(l,{ref:l,...a}),()=>{u.itemMap.delete(l)}))),e.jsx($m,{[f]:"",ref:c,children:i})}));return p.displayName=d,[{Provider:l,Slot:u,ItemSlot:p},function(e){const r=s(n+"CollectionConsumer",e),o=t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`)),n=Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return n}),[r.collectionRef,r.itemMap]);return o},i]}var qm=a.createContext(void 0);function Ym(e){const t=a.useContext(qm);return e||t||"ltr"}var Zm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=a.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?$m:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});function Qm(e,t){e&&s.flushSync((()=>e.dispatchEvent(t)))}function Jm(e){const t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>(...e)=>t.current?.(...e)),[])}var eh,th="dismissableLayer.update",nh="dismissableLayer.pointerDownOutside",rh="dismissableLayer.focusOutside",oh=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ih=a.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=t,d=a.useContext(oh),[f,p]=a.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=a.useState({}),g=Bm(n,(e=>p(e))),v=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(b),y=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=w,S=function(e,t=globalThis?.document){const n=Jm(e),r=a.useRef(!1),o=a.useRef((()=>{}));return a.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){lh(nh,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(i?.(e),l?.(e),e.defaultPrevented||c?.())}),m),k=function(e,t=globalThis?.document){const n=Jm(e),r=a.useRef(!1);return a.useEffect((()=>{const e=e=>{if(e.target&&!r.current){lh(rh,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(s?.(e),l?.(e),e.defaultPrevented||c?.())}),m);return function(e,t=globalThis?.document){const n=Jm(e);a.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{y===d.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),m),a.useEffect((()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(eh=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),sh(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=eh)}}),[f,m,r,d]),a.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),sh())}),[f,d]),a.useEffect((()=>{const e=()=>h({});return document.addEventListener(th,e),()=>document.removeEventListener(th,e)}),[]),e.jsx(Zm.div,{...u,ref:g,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:_m(t.onFocusCapture,k.onFocusCapture),onBlurCapture:_m(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:_m(t.onPointerDownCapture,S.onPointerDownCapture)})}));ih.displayName="DismissableLayer";var ah=a.forwardRef(((t,n)=>{const r=a.useContext(oh),o=a.useRef(null),i=Bm(n,o);return a.useEffect((()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),e.jsx(Zm.div,{...t,ref:i})}));function sh(){const e=new CustomEvent(th);document.dispatchEvent(e)}function lh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qm(o,i):o.dispatchEvent(i)}ah.displayName="DismissableLayerBranch";var ch=0;function uh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var dh="focusScope.autoFocusOnMount",fh="focusScope.autoFocusOnUnmount",ph={bubbles:!1,cancelable:!0},mh=a.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=t,[c,u]=a.useState(null),d=Jm(i),f=Jm(s),p=a.useRef(null),m=Bm(n,(e=>u(e))),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect((()=>{if(o){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:bh(p.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||bh(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&bh(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,c,h.paused]),a.useEffect((()=>{if(c){wh.add(h);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(dh,ph);c.addEventListener(dh,d),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bh(r,{select:t}),document.activeElement!==n)return}((e=hh(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&bh(c))}return()=>{c.removeEventListener(dh,d),setTimeout((()=>{const e=new CustomEvent(fh,ph);c.addEventListener(fh,f),c.dispatchEvent(e),e.defaultPrevented||bh(t??document.body,{select:!0}),c.removeEventListener(fh,f),wh.remove(h)}),0)}}var e}),[c,d,f,h]);const g=a.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=hh(e),n=gh(t,e),r=gh(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&bh(i,{select:!0})):(e.preventDefault(),r&&bh(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return e.jsx(Zm.div,{tabIndex:-1,...l,ref:m,onKeyDown:g})}));function hh(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function gh(e,t){for(const n of e)if(!vh(n,{upTo:t}))return n}function vh(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function bh(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}mh.displayName="FocusScope";var wh=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=yh(e,t),e.unshift(t)},remove(t){e=yh(e,t),e[0]?.resume()}}}();function yh(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var xh=Boolean(globalThis?.document)?a.useLayoutEffect:()=>{},Ch=a["useId".toString()]||(()=>{}),Sh=0;function kh(e){const[t,n]=a.useState(Ch());return xh((()=>{n((e=>e??String(Sh++)))}),[e]),t?`radix-${t}`:""}var Eh="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function Rh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Rh(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Rh(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ph(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nh(e,t){const n=Ph(e);return Math.round(t*n)/n}function jh(e){const t=a.useRef(e);return Eh((()=>{t.current=e})),t}function Mh(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=a.useState(r);Rh(m,r)||h(r);const[g,v]=a.useState(null),[b,w]=a.useState(null),y=a.useCallback((e=>{e!==k.current&&(k.current=e,v(e))}),[]),x=a.useCallback((e=>{e!==E.current&&(E.current=e,w(e))}),[]),C=i||g,S=l||b,k=a.useRef(null),E=a.useRef(null),R=a.useRef(f),P=null!=u,N=jh(u),j=jh(o),M=a.useCallback((()=>{if(!k.current||!E.current)return;const e={placement:t,strategy:n,middleware:m};j.current&&(e.platform=j.current),gl(k.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};A.current&&!Rh(R.current,t)&&(R.current=t,s.flushSync((()=>{p(t)})))}))}),[m,t,n,j]);Eh((()=>{!1===d&&R.current.isPositioned&&(R.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const A=a.useRef(!1);Eh((()=>(A.current=!0,()=>{A.current=!1})),[]),Eh((()=>{if(C&&(k.current=C),S&&(E.current=S),C&&S){if(N.current)return N.current(C,S,M);M()}}),[C,S,M,N,P]);const I=a.useMemo((()=>({reference:k,floating:E,setReference:y,setFloating:x})),[y,x]),T=a.useMemo((()=>({reference:C,floating:S})),[C,S]),O=a.useMemo((()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=Nh(T.floating,f.x),r=Nh(T.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...Ph(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,T.floating,f.x,f.y]);return a.useMemo((()=>({...f,update:M,refs:I,elements:T,floatingStyles:O})),[f,M,I,T,O])}const Ah=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?ml({element:n.current,padding:r}).fn(t):{}:n?ml({element:n,padding:r}).fn(t):{};var o}}),Ih=(e,t)=>({...cl(e),options:[e,t]}),Th=(e,t)=>({...ul(e),options:[e,t]}),Oh=(e,t)=>({...hl(e),options:[e,t]}),Lh=(e,t)=>({...dl(e),options:[e,t]}),Dh=(e,t)=>({...fl(e),options:[e,t]}),Fh=(e,t)=>({...pl(e),options:[e,t]}),_h=(e,t)=>({...Ah(e),options:[e,t]});var Vh=a.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e.jsx(Zm.svg,{...a,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})}));Vh.displayName="Arrow";var zh=Vh;var Hh="Popper",[Bh,$h]=Vm(Hh),[Wh,Uh]=Bh(Hh),Kh=t=>{const{__scopePopper:n,children:r}=t,[o,i]=a.useState(null);return e.jsx(Wh,{scope:n,anchor:o,onAnchorChange:i,children:r})};Kh.displayName=Hh;var Gh="PopperAnchor",Xh=a.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,s=Uh(Gh,r),l=a.useRef(null),c=Bm(n,l);return a.useEffect((()=>{s.onAnchorChange(o?.current||l.current)})),o?null:e.jsx(Zm.div,{...i,ref:c})}));Xh.displayName=Gh;var qh="PopperContent",[Yh,Zh]=Bh(qh),Qh=a.forwardRef(((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:g,...v}=t,b=Uh(qh,r),[w,y]=a.useState(null),x=Bm(n,(e=>y(e))),[C,S]=a.useState(null),k=function(e){const[t,n]=a.useState(void 0);return xh((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(C),E=k?.width??0,R=k?.height??0,P=o+("center"!==s?"-"+s:""),N="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},j=Array.isArray(d)?d:[d],M=j.length>0,A={padding:N,boundary:j.filter(ng),altBoundary:M},{refs:I,floatingStyles:T,placement:O,isPositioned:L,middlewareData:D}=Mh({strategy:"fixed",placement:P,whileElementsMounted:(...e)=>sl(...e,{animationFrame:"always"===h}),elements:{reference:b.anchor},middleware:[Ih({mainAxis:i+R,alignmentAxis:l}),u&&Th({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?Oh():void 0,...A}),u&&Lh({...A}),Dh({...A,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),C&&_h({element:C,padding:c}),rg({arrowWidth:E,arrowHeight:R}),m&&Fh({strategy:"referenceHidden",...A})]}),[F,_]=og(O),V=Jm(g);xh((()=>{L&&V?.()}),[L,V]);const z=D.arrow?.x,H=D.arrow?.y,B=0!==D.arrow?.centerOffset,[$,W]=a.useState();return xh((()=>{w&&W(window.getComputedStyle(w).zIndex)}),[w]),e.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:L?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(Yh,{scope:r,placedSide:F,onArrowChange:S,arrowX:z,arrowY:H,shouldHideArrow:B,children:e.jsx(Zm.div,{"data-side":F,"data-align":_,...v,ref:x,style:{...v.style,animation:L?void 0:"none"}})})})}));Qh.displayName=qh;var Jh="PopperArrow",eg={top:"bottom",right:"left",bottom:"top",left:"right"},tg=a.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=Zh(Jh,r),a=eg[i.placedSide];return e.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:e.jsx(zh,{...o,ref:n,style:{...o.style,display:"block"}})})}));function ng(e){return null!==e}tg.displayName=Jh;var rg=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=og(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=i?u:`${d}px`,m=-s+"px"):"top"===l?(p=i?u:`${d}px`,m=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",m=i?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,m=i?u:`${f}px`),{data:{x:p,y:m}}}});function og(e){const[t,n="center"]=e.split("-");return[t,n]}var ig=Kh,ag=Xh,sg=Qh,lg=tg,cg=a.forwardRef(((t,r)=>{const{container:o,...i}=t,[s,l]=a.useState(!1);xh((()=>l(!0)),[]);const c=o||s&&globalThis?.document?.body;return c?n.createPortal(e.jsx(Zm.div,{...i,ref:r}),c):null}));cg.displayName="Portal";var ug=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=a.useState(),r=a.useRef({}),o=a.useRef(e),i=a.useRef("none"),l=e?"mounted":"unmounted",[c,u]=function(e,t){return a.useReducer(((e,n)=>t[e][n]??e),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect((()=>{const e=dg(r.current);i.current="mounted"===c?e:"none"}),[c]),xh((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=dg(t);if(e)u("MOUNT");else if("none"===a||"none"===t?.display)u("UNMOUNT");else{u(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,u]),xh((()=>{if(t){const e=e=>{const n=dg(r.current).includes(e.animationName);e.target===t&&n&&s.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=dg(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=Bm(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?a.cloneElement(o,{ref:i}):null};function dg(e){return e?.animationName||"none"}function fg({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=a.useState(e),[r]=n,o=a.useRef(r),i=Jm(t);return a.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,s=i?e:r,l=Jm(n);return[s,a.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[i,e,o,l])]}ug.displayName="Presence";var pg="rovingFocusGroup.onEntryFocus",mg={bubbles:!1,cancelable:!0},hg="RovingFocusGroup",[gg,vg,bg]=Xm(hg),[wg,yg]=Vm(hg,[bg]),[xg,Cg]=wg(hg),Sg=a.forwardRef(((t,n)=>e.jsx(gg.Provider,{scope:t.__scopeRovingFocusGroup,children:e.jsx(gg.Slot,{scope:t.__scopeRovingFocusGroup,children:e.jsx(kg,{...t,ref:n})})})));Sg.displayName=hg;var kg=a.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=t,m=a.useRef(null),h=Bm(n,m),g=Ym(s),[v=null,b]=fg({prop:l,defaultProp:c,onChange:u}),[w,y]=a.useState(!1),x=Jm(d),C=vg(r),S=a.useRef(!1),[k,E]=a.useState(0);return a.useEffect((()=>{const e=m.current;if(e)return e.addEventListener(pg,x),()=>e.removeEventListener(pg,x)}),[x]),e.jsx(xg,{scope:r,orientation:o,dir:g,loop:i,currentTabStopId:v,onItemFocus:a.useCallback((e=>b(e)),[b]),onItemShiftTab:a.useCallback((()=>y(!0)),[]),onFocusableItemAdd:a.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:a.useCallback((()=>E((e=>e-1))),[]),children:e.jsx(Zm.div,{tabIndex:w||0===k?-1:0,"data-orientation":o,...p,ref:h,style:{outline:"none",...t.style},onMouseDown:_m(t.onMouseDown,(()=>{S.current=!0})),onFocus:_m(t.onFocus,(e=>{const t=!S.current;if(e.target===e.currentTarget&&t&&!w){const t=new CustomEvent(pg,mg);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=C().filter((e=>e.focusable));Ng([e.find((e=>e.active)),e.find((e=>e.id===v)),...e].filter(Boolean).map((e=>e.ref.current)),f)}}S.current=!1})),onBlur:_m(t.onBlur,(()=>y(!1)))})})})),Eg="RovingFocusGroupItem",Rg=a.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:s,...l}=t,c=kh(),u=s||c,d=Cg(Eg,r),f=d.currentTabStopId===u,p=vg(r),{onFocusableItemAdd:m,onFocusableItemRemove:h}=d;return a.useEffect((()=>{if(o)return m(),()=>h()}),[o,m,h]),e.jsx(gg.ItemSlot,{scope:r,id:u,focusable:o,active:i,children:e.jsx(Zm.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:n,onMouseDown:_m(t.onMouseDown,(e=>{o?d.onItemFocus(u):e.preventDefault()})),onFocus:_m(t.onFocus,(()=>d.onItemFocus(u))),onKeyDown:_m(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Pg[r]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=d.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Ng(o)))}var n,r}))})})}));Rg.displayName=Eg;var Pg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ng(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var jg=Sg,Mg=Rg,Ag=["Enter"," "],Ig=["ArrowUp","PageDown","End"],Tg=["ArrowDown","PageUp","Home",...Ig],Og={ltr:[...Ag,"ArrowRight"],rtl:[...Ag,"ArrowLeft"]},Lg={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Dg="Menu",[Fg,_g,Vg]=Xm(Dg),[zg,Hg]=Vm(Dg,[Vg,$h,yg]),Bg=$h(),$g=yg(),[Wg,Ug]=zg(Dg),[Kg,Gg]=zg(Dg),Xg=t=>{const{__scopeMenu:n,open:r=!1,children:o,dir:i,onOpenChange:s,modal:l=!0}=t,c=Bg(n),[u,d]=a.useState(null),f=a.useRef(!1),p=Jm(s),m=Ym(i);return a.useEffect((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),e.jsx(ig,{...c,children:e.jsx(Wg,{scope:n,open:r,onOpenChange:p,content:u,onContentChange:d,children:e.jsx(Kg,{scope:n,onClose:a.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:f,dir:m,modal:l,children:o})})})};Xg.displayName=Dg;var qg=a.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t,i=Bg(r);return e.jsx(ag,{...i,...o,ref:n})}));qg.displayName="MenuAnchor";var Yg="MenuPortal",[Zg,Qg]=zg(Yg,{forceMount:void 0}),Jg=t=>{const{__scopeMenu:n,forceMount:r,children:o,container:i}=t,a=Ug(Yg,n);return e.jsx(Zg,{scope:n,forceMount:r,children:e.jsx(ug,{present:r||a.open,children:e.jsx(cg,{asChild:!0,container:i,children:o})})})};Jg.displayName=Yg;var ev="MenuContent",[tv,nv]=zg(ev),rv=a.forwardRef(((t,n)=>{const r=Qg(ev,t.__scopeMenu),{forceMount:o=r.forceMount,...i}=t,a=Ug(ev,t.__scopeMenu),s=Gg(ev,t.__scopeMenu);return e.jsx(Fg.Provider,{scope:t.__scopeMenu,children:e.jsx(ug,{present:o||a.open,children:e.jsx(Fg.Slot,{scope:t.__scopeMenu,children:s.modal?e.jsx(ov,{...i,ref:n}):e.jsx(iv,{...i,ref:n})})})})})),ov=a.forwardRef(((t,n)=>{const r=Ug(ev,t.__scopeMenu),o=a.useRef(null),i=Bm(n,o);return a.useEffect((()=>{const e=o.current;if(e)return Hd(e)}),[]),e.jsx(av,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:_m(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})})),iv=a.forwardRef(((t,n)=>{const r=Ug(ev,t.__scopeMenu);return e.jsx(av,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})})),av=a.forwardRef(((t,n)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,...v}=t,b=Ug(ev,r),w=Gg(ev,r),y=Bg(r),x=$g(r),C=_g(r),[S,k]=a.useState(null),E=a.useRef(null),R=Bm(n,E,b.onContentChange),P=a.useRef(0),N=a.useRef(""),j=a.useRef(0),M=a.useRef(null),A=a.useRef("right"),I=a.useRef(0),T=g?Od:a.Fragment,O=g?{as:$m,allowPinchZoom:!0}:void 0,L=e=>{const t=N.current+e,n=C().filter((e=>!e.disabled)),r=document.activeElement,o=n.find((e=>e.ref.current===r))?.textValue,i=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(s=e,l=Math.max(i,0),s.map(((e,t)=>s[(l+t)%s.length])));var s,l;1===o.length&&(a=a.filter((e=>e!==n)));const c=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return c!==n?c:void 0}(n.map((e=>e.textValue)),t,o),a=n.find((e=>e.textValue===i))?.ref.current;!function e(t){N.current=t,window.clearTimeout(P.current),""!==t&&(P.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))};a.useEffect((()=>()=>window.clearTimeout(P.current)),[]),a.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??uh()),document.body.insertAdjacentElement("beforeend",e[1]??uh()),ch++,()=>{1===ch&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),ch--}}),[]);const D=a.useCallback((e=>A.current===M.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,t)}(e,M.current?.area)),[]);return e.jsx(tv,{scope:r,searchRef:N,onItemEnter:a.useCallback((e=>{D(e)&&e.preventDefault()}),[D]),onItemLeave:a.useCallback((e=>{D(e)||(E.current?.focus(),k(null))}),[D]),onTriggerLeave:a.useCallback((e=>{D(e)&&e.preventDefault()}),[D]),pointerGraceTimerRef:j,onPointerGraceIntentChange:a.useCallback((e=>{M.current=e}),[]),children:e.jsx(T,{...O,children:e.jsx(mh,{asChild:!0,trapped:i,onMountAutoFocus:_m(s,(e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:l,children:e.jsx(ih,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,children:e.jsx(jg,{asChild:!0,...x,dir:w.dir,orientation:"vertical",loop:o,currentTabStopId:S,onCurrentTabStopIdChange:k,onEntryFocus:_m(u,(e=>{w.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:e.jsx(sg,{role:"menu","aria-orientation":"vertical","data-state":Ov(b.open),"data-radix-menu-content":"",dir:w.dir,...y,...v,ref:R,style:{outline:"none",...v.style},onKeyDown:_m(v.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&L(e.key));const o=E.current;if(e.target!==o)return;if(!Tg.includes(e.key))return;e.preventDefault();const i=C().filter((e=>!e.disabled)).map((e=>e.ref.current));Ig.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:_m(t.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(P.current),N.current="")})),onPointerMove:_m(t.onPointerMove,Fv((e=>{const t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>I.current?"right":"left";A.current=t,I.current=e.clientX}})))})})})})})})}));rv.displayName=ev;var sv=a.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t;return e.jsx(Zm.div,{role:"group",...o,ref:n})}));sv.displayName="MenuGroup";var lv=a.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t;return e.jsx(Zm.div,{...o,ref:n})}));lv.displayName="MenuLabel";var cv="MenuItem",uv="menu.itemSelect",dv=a.forwardRef(((t,n)=>{const{disabled:r=!1,onSelect:o,...i}=t,s=a.useRef(null),l=Gg(cv,t.__scopeMenu),c=nv(cv,t.__scopeMenu),u=Bm(n,s),d=a.useRef(!1);return e.jsx(fv,{...i,ref:u,disabled:r,onClick:_m(t.onClick,(()=>{const e=s.current;if(!r&&e){const t=new CustomEvent(uv,{bubbles:!0,cancelable:!0});e.addEventListener(uv,(e=>o?.(e)),{once:!0}),Qm(e,t),t.defaultPrevented?d.current=!1:l.onClose()}})),onPointerDown:e=>{t.onPointerDown?.(e),d.current=!0},onPointerUp:_m(t.onPointerUp,(e=>{d.current||e.currentTarget?.click()})),onKeyDown:_m(t.onKeyDown,(e=>{const t=""!==c.searchRef.current;r||t&&" "===e.key||Ag.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));dv.displayName=cv;var fv=a.forwardRef(((t,n)=>{const{__scopeMenu:r,disabled:o=!1,textValue:i,...s}=t,l=nv(cv,r),c=$g(r),u=a.useRef(null),d=Bm(n,u),[f,p]=a.useState(!1),[m,h]=a.useState("");return a.useEffect((()=>{const e=u.current;e&&h((e.textContent??"").trim())}),[s.children]),e.jsx(Fg.ItemSlot,{scope:r,disabled:o,textValue:i??m,children:e.jsx(Mg,{asChild:!0,...c,focusable:!o,children:e.jsx(Zm.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:d,onPointerMove:_m(t.onPointerMove,Fv((e=>{if(o)l.onItemLeave(e);else if(l.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:_m(t.onPointerLeave,Fv((e=>l.onItemLeave(e)))),onFocus:_m(t.onFocus,(()=>p(!0))),onBlur:_m(t.onBlur,(()=>p(!1)))})})})})),pv=a.forwardRef(((t,n)=>{const{checked:r=!1,onCheckedChange:o,...i}=t;return e.jsx(xv,{scope:t.__scopeMenu,checked:r,children:e.jsx(dv,{role:"menuitemcheckbox","aria-checked":Lv(r)?"mixed":r,...i,ref:n,"data-state":Dv(r),onSelect:_m(i.onSelect,(()=>o?.(!!Lv(r)||!r)),{checkForDefaultPrevented:!1})})})}));pv.displayName="MenuCheckboxItem";var mv="MenuRadioGroup",[hv,gv]=zg(mv,{value:void 0,onValueChange:()=>{}}),vv=a.forwardRef(((t,n)=>{const{value:r,onValueChange:o,...i}=t,a=Jm(o);return e.jsx(hv,{scope:t.__scopeMenu,value:r,onValueChange:a,children:e.jsx(sv,{...i,ref:n})})}));vv.displayName=mv;var bv="MenuRadioItem",wv=a.forwardRef(((t,n)=>{const{value:r,...o}=t,i=gv(bv,t.__scopeMenu),a=r===i.value;return e.jsx(xv,{scope:t.__scopeMenu,checked:a,children:e.jsx(dv,{role:"menuitemradio","aria-checked":a,...o,ref:n,"data-state":Dv(a),onSelect:_m(o.onSelect,(()=>i.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));wv.displayName=bv;var yv="MenuItemIndicator",[xv,Cv]=zg(yv,{checked:!1}),Sv=a.forwardRef(((t,n)=>{const{__scopeMenu:r,forceMount:o,...i}=t,a=Cv(yv,r);return e.jsx(ug,{present:o||Lv(a.checked)||!0===a.checked,children:e.jsx(Zm.span,{...i,ref:n,"data-state":Dv(a.checked)})})}));Sv.displayName=yv;var kv=a.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t;return e.jsx(Zm.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})}));kv.displayName="MenuSeparator";var Ev=a.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t,i=Bg(r);return e.jsx(lg,{...i,...o,ref:n})}));Ev.displayName="MenuArrow";var Rv="MenuSub",[Pv,Nv]=zg(Rv),jv=t=>{const{__scopeMenu:n,children:r,open:o=!1,onOpenChange:i}=t,s=Ug(Rv,n),l=Bg(n),[c,u]=a.useState(null),[d,f]=a.useState(null),p=Jm(i);return a.useEffect((()=>(!1===s.open&&p(!1),()=>p(!1))),[s.open,p]),e.jsx(ig,{...l,children:e.jsx(Wg,{scope:n,open:o,onOpenChange:p,content:d,onContentChange:f,children:e.jsx(Pv,{scope:n,contentId:kh(),triggerId:kh(),trigger:c,onTriggerChange:u,children:r})})})};jv.displayName=Rv;var Mv="MenuSubTrigger",Av=a.forwardRef(((t,n)=>{const r=Ug(Mv,t.__scopeMenu),o=Gg(Mv,t.__scopeMenu),i=Nv(Mv,t.__scopeMenu),s=nv(Mv,t.__scopeMenu),l=a.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=s,d={__scopeMenu:t.__scopeMenu},f=a.useCallback((()=>{l.current&&window.clearTimeout(l.current),l.current=null}),[]);return a.useEffect((()=>f),[f]),a.useEffect((()=>{const e=c.current;return()=>{window.clearTimeout(e),u(null)}}),[c,u]),e.jsx(qg,{asChild:!0,...d,children:e.jsx(fv,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":Ov(r.open),...t,ref:Hm(n,i.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:_m(t.onPointerMove,Fv((e=>{s.onItemEnter(e),e.defaultPrevented||t.disabled||r.open||l.current||(s.onPointerGraceIntentChange(null),l.current=window.setTimeout((()=>{r.onOpenChange(!0),f()}),100))}))),onPointerLeave:_m(t.onPointerLeave,Fv((e=>{f();const t=r.content?.getBoundingClientRect();if(t){const n=r.content?.dataset.side,o="right"===n,i=o?-5:5,a=t[o?"left":"right"],l=t[o?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:a,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:a,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout((()=>s.onPointerGraceIntentChange(null)),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}}))),onKeyDown:_m(t.onKeyDown,(e=>{const n=""!==s.searchRef.current;t.disabled||n&&" "===e.key||Og[o.dir].includes(e.key)&&(r.onOpenChange(!0),r.content?.focus(),e.preventDefault())}))})})}));Av.displayName=Mv;var Iv="MenuSubContent",Tv=a.forwardRef(((t,n)=>{const r=Qg(ev,t.__scopeMenu),{forceMount:o=r.forceMount,...i}=t,s=Ug(ev,t.__scopeMenu),l=Gg(ev,t.__scopeMenu),c=Nv(Iv,t.__scopeMenu),u=a.useRef(null),d=Bm(n,u);return e.jsx(Fg.Provider,{scope:t.__scopeMenu,children:e.jsx(ug,{present:o||s.open,children:e.jsx(Fg.Slot,{scope:t.__scopeMenu,children:e.jsx(av,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:d,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&u.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:_m(t.onFocusOutside,(e=>{e.target!==c.trigger&&s.onOpenChange(!1)})),onEscapeKeyDown:_m(t.onEscapeKeyDown,(e=>{l.onClose(),e.preventDefault()})),onKeyDown:_m(t.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=Lg[l.dir].includes(e.key);t&&n&&(s.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())}))})})})})}));function Ov(e){return e?"open":"closed"}function Lv(e){return"indeterminate"===e}function Dv(e){return Lv(e)?"indeterminate":e?"checked":"unchecked"}function Fv(e){return t=>"mouse"===t.pointerType?e(t):void 0}Tv.displayName=Iv;var _v=Xg,Vv=qg,zv=Jg,Hv=rv,Bv=sv,$v=lv,Wv=dv,Uv=pv,Kv=vv,Gv=wv,Xv=Sv,qv=kv,Yv=Ev,Zv=jv,Qv=Av,Jv=Tv,eb=Boolean(globalThis?.document)?a.useLayoutEffect:()=>{},tb=a["useId".toString()]||(()=>{}),nb=0;function rb(e){const[t,n]=a.useState(tb());return eb((()=>{n((e=>e??String(nb++)))}),[e]),e||(t?`radix-${t}`:"")}var ob="DropdownMenu",[ib,ab]=function(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;function l(n){const{scope:r,children:o,...l}=n,c=r?.[t][s]||i,u=a.useMemo((()=>l),Object.values(l));return e.jsx(c.Provider,{value:u,children:o})}return r=[...r,o],l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t][s]||i,c=a.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},jm(o,...n)]}(ob,[Hg]),sb=Hg(),[lb,cb]=ib(ob),ub=t=>{const{__scopeDropdownMenu:n,children:r,dir:o,open:i,defaultOpen:s,onOpenChange:l,modal:c=!0}=t,u=sb(n),d=a.useRef(null),[f=!1,p]=Am({prop:i,defaultProp:s,onChange:l});return e.jsx(lb,{scope:n,triggerId:rb(),triggerRef:d,contentId:rb(),open:f,onOpenChange:p,onOpenToggle:a.useCallback((()=>p((e=>!e))),[p]),modal:c,children:e.jsx(_v,{...u,open:f,onOpenChange:p,dir:o,modal:c,children:r})})};ub.displayName=ob;var db="DropdownMenuTrigger",fb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,disabled:o=!1,...i}=t,a=cb(db,r),s=sb(r);return e.jsx(Vv,{asChild:!0,...s,children:e.jsx(Fm.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...i,ref:Nm(n,a.triggerRef),onPointerDown:Pm(t.onPointerDown,(e=>{o||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())})),onKeyDown:Pm(t.onKeyDown,(e=>{o||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));fb.displayName=db;var pb=t=>{const{__scopeDropdownMenu:n,...r}=t,o=sb(n);return e.jsx(zv,{...o,...r})};pb.displayName="DropdownMenuPortal";var mb="DropdownMenuContent",hb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=cb(mb,r),s=sb(r),l=a.useRef(!1);return e.jsx(Hv,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...o,ref:n,onCloseAutoFocus:Pm(t.onCloseAutoFocus,(e=>{l.current||i.triggerRef.current?.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:Pm(t.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(l.current=!0)})),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));hb.displayName=mb;var gb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=sb(r);return e.jsx(Bv,{...i,...o,ref:n})}));gb.displayName="DropdownMenuGroup";var vb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=sb(r);return e.jsx($v,{...i,...o,ref:n})}));vb.displayName="DropdownMenuLabel";var bb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=sb(r);return e.jsx(Wv,{...i,...o,ref:n})}));bb.displayName="DropdownMenuItem";var wb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=sb(r);return e.jsx(Uv,{...i,...o,ref:n})}));wb.displayName="DropdownMenuCheckboxItem";var yb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=sb(r);return e.jsx(Kv,{...i,...o,ref:n})}));yb.displayName="DropdownMenuRadioGroup";var xb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=sb(r);return e.jsx(Gv,{...i,...o,ref:n})}));xb.displayName="DropdownMenuRadioItem";var Cb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=sb(r);return e.jsx(Xv,{...i,...o,ref:n})}));Cb.displayName="DropdownMenuItemIndicator";var Sb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=sb(r);return e.jsx(qv,{...i,...o,ref:n})}));Sb.displayName="DropdownMenuSeparator";var kb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=sb(r);return e.jsx(Yv,{...i,...o,ref:n})}));kb.displayName="DropdownMenuArrow";var Eb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=sb(r);return e.jsx(Qv,{...i,...o,ref:n})}));Eb.displayName="DropdownMenuSubTrigger";var Rb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=sb(r);return e.jsx(Jv,{...i,...o,ref:n,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));Rb.displayName="DropdownMenuSubContent";var Pb=pb,Nb=hb,jb=vb,Mb=bb,Ab=wb,Ib=xb,Tb=Cb,Ob=Sb,Lb=t=>{const{__scopeDropdownMenu:n,children:r,open:o,onOpenChange:i,defaultOpen:a}=t,s=sb(n),[l=!1,c]=Am({prop:o,defaultProp:a,onChange:i});return e.jsx(Zv,{...s,open:l,onOpenChange:c,children:r})},Db=Eb,Fb=Rb;const _b=ub,Vb=fb,zb=gb,Hb=Pb,Bb=Lb,$b=yb,Wb=a.forwardRef((({className:t="",inset:n,children:r,...o},i)=>e.jsxs(Db,{ref:i,className:jt("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[state=open]:bg-gray-100 dark:focus:bg-gray-900 dark:data-[state=open]:bg-gray-900",n?"pl-8":"",t),...o,children:[r,e.jsx(wp,{className:"ml-auto h-4 w-4"})]})));Wb.displayName=Db.displayName;const Ub=a.forwardRef((({className:t="",...n},r)=>e.jsx(Fb,{ref:r,className:jt("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in slide-in-from-left-1 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...n})));Ub.displayName=Fb.displayName;const Kb=a.forwardRef((({className:t="",sideOffset:n=4,...r},o)=>e.jsx(Pb,{children:e.jsx(Nb,{ref:o,sideOffset:n,className:jt("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...r})})));Kb.displayName=Nb.displayName;const Gb=a.forwardRef((({className:t="",inset:n,...r},o)=>e.jsx(Mb,{ref:o,className:jt("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",n?"pl-8":"",t),...r})));Gb.displayName=Mb.displayName;const Xb=a.forwardRef((({className:t="",children:n,checked:r,...o},i)=>e.jsxs(Ab,{ref:i,className:jt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",t),checked:r,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Tb,{children:e.jsx(gp,{className:"h-4 w-4"})})}),n]})));Xb.displayName=Ab.displayName;const qb=a.forwardRef((({className:t="",children:n,...r},o)=>e.jsxs(Ib,{ref:o,className:jt(t,"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-800"),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Tb,{children:e.jsx(yp,{className:"h-2 w-2 fill-current"})})}),n]})));qb.displayName=Ib.displayName;const Yb=a.forwardRef((({className:t="",inset:n,...r},o)=>e.jsx(jb,{ref:o,className:jt("px-2 py-1.5 text-sm font-semibold text-gray-900 dark:text-gray-300",n?"pl-8":"",t),...r})));Yb.displayName=jb.displayName;const Zb=a.forwardRef((({className:t="",...n},r)=>e.jsx(Ob,{ref:r,className:jt("-mx-1 my-1 h-px bg-border-medium",t),...n})));Zb.displayName=Ob.displayName;const Qb=({className:t="",...n})=>e.jsx("span",{className:jt("ml-auto text-xs tracking-widest text-gray-500",t),...n});var Jb;Qb.displayName="DropdownMenuShortcut",exports.NotificationSeverity=void 0,(Jb=exports.NotificationSeverity||(exports.NotificationSeverity={})).INFO="info",Jb.SUCCESS="success",Jb.WARNING="warning",Jb.ERROR="error";const ew=r.atom("en"),tw=r.atom("ltr"),nw=r.atom("text-base"),rw=r.atom({open:!1,message:"",severity:exports.NotificationSeverity.SUCCESS,showIcon:!0}),ow=t.createContext({theme:"light",setTheme:()=>{}});function iw(e=100){const[n,o]=r.useAtom(rw),i=t.useRef(null),a=t.useRef(null);t.useEffect((()=>()=>{null!==i.current&&clearTimeout(i.current),null!==a.current&&clearTimeout(a.current)}),[]);return{toast:n,onOpenChange:e=>o({...n,open:e}),showToast:({message:t,severity:n=exports.NotificationSeverity.SUCCESS,showIcon:r=!0,duration:s=3e3,status:l})=>{null!==i.current&&clearTimeout(i.current),null!==a.current&&clearTimeout(a.current),i.current=window.setTimeout((()=>{o({open:!0,message:t,severity:l??n,showIcon:r}),a.current=window.setTimeout((()=>{o((e=>({...e,open:!1})))}),s)}),e)}}}var aw={exports:{}},sw={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ả":"A","Ạ":"A","Ẩ":"A","Ẫ":"A","Ậ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ẻ":"E","Ẽ":"E","Ẹ":"E","Ể":"E","Ễ":"E","Ệ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ỉ":"I","Ị":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ỏ":"O","Ọ":"O","Ổ":"O","Ỗ":"O","Ộ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ớ":"O","Ợ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ủ":"U","Ụ":"U","Ử":"U","Ữ":"U","Ự":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ả":"a","ạ":"a","ẩ":"a","ẫ":"a","ậ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ẻ":"e","ẽ":"e","ẹ":"e","ể":"e","ễ":"e","ệ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ỉ":"i","ị":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ỏ":"o","ọ":"o","ổ":"o","ỗ":"o","ộ":"o","ờ":"o","ở":"o","ỡ":"o","ớ":"o","ợ":"o","ù":"u","ú":"u","û":"u","ü":"u","ủ":"u","ụ":"u","ử":"u","ữ":"u","ự":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},lw=Object.keys(sw).join("|"),cw=new RegExp(lw,"g"),uw=new RegExp(lw,"");function dw(e){return sw[e]}var fw=function(e){return e.replace(cw,dw)};aw.exports=fw,aw.exports.has=function(e){return!!e.match(uw)},aw.exports.remove=fw;var pw=so(aw.exports);
27
+ */bt.displayName="Breadcrumb";const kt=L.forwardRef(({className:t,...n},r)=>e.jsx("ol",{ref:r,className:Ie("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...n}));kt.displayName="BreadcrumbList";const Ct=L.forwardRef(({className:t,...n},r)=>e.jsx("li",{ref:r,className:Ie("inline-flex items-center gap-1.5",t),...n}));Ct.displayName="BreadcrumbItem";const jt=L.forwardRef(({asChild:t,className:n,...r},a)=>{const o=t?s.Slot:"a";return e.jsx(o,{ref:a,className:Ie("transition-colors hover:text-foreground",n),...r})});jt.displayName="BreadcrumbLink";const Nt=L.forwardRef(({className:t,...n},r)=>e.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:Ie("font-normal text-foreground",t),...n}));Nt.displayName="BreadcrumbPage";const St=({children:t,className:n,...r})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:Ie("[&>svg]:size-3.5",n),...r,children:t??e.jsx(dt,{})});St.displayName="BreadcrumbSeparator";const Mt=({className:t,...n})=>e.jsxs("span",{role:"presentation","aria-hidden":"true",className:Ie("flex h-9 w-9 items-center justify-center",t),...n,children:[e.jsx(ht,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More"})]});Mt.displayName="BreadcrumbElipssis";const Pt=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,Lt=q,Tt=((e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return Lt(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:a,defaultVariants:o}=t,s=Object.keys(a).map(e=>{const t=null==n?void 0:n[e],r=null==o?void 0:o[e];if(null===t)return null;const s=Pt(t)||Pt(r);return a[e][s]}),i=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...i}[t]):{...o,...i}[t]===n})?[...e,n,r]:e},[]);return Lt(e,s,l,null==n?void 0:n.class,null==n?void 0:n.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-surface-destructive text-destructive-foreground hover:bg-surface-destructive-hover",outline:"text-text-primary border border-border-light bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-surface-hover hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",submit:"bg-surface-submit text-white hover:bg-surface-submit-hover"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-lg px-3",lg:"h-11 rounded-lg px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),Et=L.forwardRef(({className:t,variant:n,size:r,asChild:a=!1,...o},i)=>{const l=a?s.Slot:"button";return e.jsx(l,{className:Ie(Tt({variant:n,size:r,className:t})),ref:i,...o})});Et.displayName="Button";const At=L.forwardRef(({className:t="",...n},r)=>e.jsx(R.Root,{ref:r,className:Ie("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...n,children:e.jsx(R.Indicator,{className:Ie("flex items-center justify-center"),children:e.jsx(it,{className:"h-4 w-4"})})}));At.displayName=R.Root.displayName;const Rt=z.Root,zt=z.CollapsibleTrigger,It=z.CollapsibleContent,Vt=I.Root,Dt=I.Trigger,Ot=I.Group,Bt=I.Portal,Ft=I.Sub,_t=I.RadioGroup,Ht=L.forwardRef(({className:t="",inset:n,children:r,...a},o)=>e.jsxs(I.SubTrigger,{ref:o,className:Ie("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[state=open]:bg-gray-100 dark:focus:bg-gray-900 dark:data-[state=open]:bg-gray-900",n?"pl-8":"",t),...a,children:[r,e.jsx(dt,{className:"ml-auto h-4 w-4"})]}));Ht.displayName=I.SubTrigger.displayName;const $t=L.forwardRef(({className:t="",...n},r)=>e.jsx(I.SubContent,{ref:r,className:Ie("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in slide-in-from-left-1 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...n}));$t.displayName=I.SubContent.displayName;const Wt=L.forwardRef(({className:t="",sideOffset:n=4,...r},a)=>e.jsx(I.Portal,{children:e.jsx(I.Content,{ref:a,sideOffset:n,className:Ie("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...r})}));Wt.displayName=I.Content.displayName;const Ut=L.forwardRef(({className:t="",inset:n,...r},a)=>e.jsx(I.Item,{ref:a,className:Ie("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",n?"pl-8":"",t),...r}));Ut.displayName=I.Item.displayName;const Xt=L.forwardRef(({className:t="",children:n,checked:r,...a},o)=>e.jsxs(I.CheckboxItem,{ref:o,className:Ie("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",t),checked:r,...a,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(I.ItemIndicator,{children:e.jsx(it,{className:"h-4 w-4"})})}),n]}));Xt.displayName=I.CheckboxItem.displayName;const Yt=L.forwardRef(({className:t="",children:n,...r},a)=>e.jsxs(I.RadioItem,{ref:a,className:Ie(t,"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-800"),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(I.ItemIndicator,{children:e.jsx(ut,{className:"h-2 w-2 fill-current"})})}),n]}));Yt.displayName=I.RadioItem.displayName;const Zt=L.forwardRef(({className:t="",inset:n,...r},a)=>e.jsx(I.Label,{ref:a,className:Ie("px-2 py-1.5 text-sm font-semibold text-gray-900 dark:text-gray-300",n?"pl-8":"",t),...r}));Zt.displayName=I.Label.displayName;const qt=L.forwardRef(({className:t="",...n},r)=>e.jsx(I.Separator,{ref:r,className:Ie("-mx-1 my-1 h-px bg-border-medium",t),...n}));qt.displayName=I.Separator.displayName;const Gt=({className:t="",...n})=>e.jsx("span",{className:Ie("ml-auto text-xs tracking-widest text-gray-500",t),...n});var Kt;Gt.displayName="DropdownMenuShortcut",exports.NotificationSeverity=void 0,(Kt=exports.NotificationSeverity||(exports.NotificationSeverity={})).INFO="info",Kt.SUCCESS="success",Kt.WARNING="warning",Kt.ERROR="error";const Qt=u.atom("en"),Jt=u.atom("ltr"),en=u.atom("text-base"),tn=u.atom({open:!1,message:"",severity:exports.NotificationSeverity.SUCCESS,showIcon:!0}),nn=t.createContext({theme:"light",setTheme:()=>{}});function rn(e=100){const[n,r]=u.useAtom(tn),a=t.useRef(null),o=t.useRef(null);t.useEffect(()=>()=>{null!==a.current&&clearTimeout(a.current),null!==o.current&&clearTimeout(o.current)},[]);return{toast:n,onOpenChange:e=>r({...n,open:e}),showToast:({message:t,severity:n=exports.NotificationSeverity.SUCCESS,showIcon:s=!0,duration:i=3e3,status:l})=>{null!==a.current&&clearTimeout(a.current),null!==o.current&&clearTimeout(o.current),a.current=window.setTimeout(()=>{r({open:!0,message:t,severity:l??n,showIcon:s}),o.current=window.setTimeout(()=>{r(e=>({...e,open:!1}))},i)},e)}}}function an(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var on={exports:{}},sn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ả":"A","Ạ":"A","Ẩ":"A","Ẫ":"A","Ậ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ẻ":"E","Ẽ":"E","Ẹ":"E","Ể":"E","Ễ":"E","Ệ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ỉ":"I","Ị":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ỏ":"O","Ọ":"O","Ổ":"O","Ỗ":"O","Ộ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ớ":"O","Ợ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ủ":"U","Ụ":"U","Ử":"U","Ữ":"U","Ự":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ả":"a","ạ":"a","ẩ":"a","ẫ":"a","ậ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ẻ":"e","ẽ":"e","ẹ":"e","ể":"e","ễ":"e","ệ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ỉ":"i","ị":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ỏ":"o","ọ":"o","ổ":"o","ỗ":"o","ộ":"o","ờ":"o","ở":"o","ỡ":"o","ớ":"o","ợ":"o","ù":"u","ú":"u","û":"u","ü":"u","ủ":"u","ụ":"u","ử":"u","ữ":"u","ự":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},ln=Object.keys(sn).join("|"),cn=new RegExp(ln,"g"),dn=new RegExp(ln,"");function un(e){return sn[e]}var hn=function(e){return e.replace(cn,un)};on.exports=hn,on.exports.has=function(e){return!!e.match(dn)},on.exports.remove=hn;var pn=an(on.exports);
27
28
  /**
28
29
  * @name match-sorter
29
30
  * @license MIT license.
30
31
  * @copyright (c) 2020 Kent C. Dodds
31
32
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
32
33
  */
33
- const mw={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},hw=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function gw(e,t,n){void 0===n&&(n={});const{keys:r,threshold:o=mw.MATCHES,baseSort:i=hw,sorter:a=(e=>e.sort(((e,t)=>bw(e,t,i))))}=n,s=e.reduce((function(e,i,a){const s=function(e,t,n,r){if(!t){return{rankedValue:e,rank:vw(e,n,r),keyIndex:-1,keyThreshold:r.threshold}}const o=function(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],i=Cw(o),a=yw(e,o);for(let e=0,t=a.length;e<t;e++)n.push({itemValue:a[e],attributes:i})}return n}(e,t);return o.reduce(((e,t,o)=>{let{rank:i,rankedValue:a,keyIndex:s,keyThreshold:l}=e,{itemValue:c,attributes:u}=t,d=vw(c,n,r),f=a;const{minRanking:p,maxRanking:m,threshold:h}=u;return d<p&&d>=mw.MATCHES?d=p:d>m&&(d=m),d>i&&(i=d,s=o,l=h,f=c),{rankedValue:f,rank:i,keyIndex:s,keyThreshold:l}}),{rankedValue:e,rank:mw.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(i,r,t,n),{rank:l,keyThreshold:c=o}=s;l>=c&&e.push({...s,item:i,index:a});return e}),[]);return a(s).map((e=>{let{item:t}=e;return t}))}function vw(e,t,n){return e=ww(e,n),(t=ww(t,n)).length>e.length?mw.NO_MATCH:e===t?mw.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?mw.EQUAL:e.startsWith(t)?mw.STARTS_WITH:e.includes(` ${t}`)?mw.WORD_STARTS_WITH:e.includes(t)?mw.CONTAINS:1===t.length?mw.NO_MATCH:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?mw.ACRONYM:function(e,t){let n=0,r=0;function o(e,t,r){for(let o=r,i=t.length;o<i;o++){if(t[o]===e)return n+=1,o+1}return-1}function i(e){const r=1/e,o=n/t.length;return mw.MATCHES+o*r}const a=o(t[0],e,0);if(a<0)return mw.NO_MATCH;r=a;for(let n=1,i=t.length;n<i;n++){r=o(t[n],e,r);if(!(r>-1))return mw.NO_MATCH}return i(r-a)}(e,t)}function bw(e,t,n){const{rank:r,keyIndex:o}=e,{rank:i,keyIndex:a}=t;return r===i?o===a?n(e,t):o<a?-1:1:r>i?-1:1}function ww(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=pw(e)),e}function yw(e,t){let n;if("object"==typeof t&&(t=t.key),"function"==typeof t)n=t(e);else if(null==e)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return function(e,t){const n=e.split(".");let r=[t];for(let e=0,t=n.length;e<t;e++){const t=n[e];let o=[];for(let e=0,n=r.length;e<n;e++){const n=r[e];if(null!=n)if(Object.hasOwnProperty.call(n,t)){const e=n[t];null!=e&&o.push(e)}else"*"===t&&(o=o.concat(n))}r=o}if(Array.isArray(r[0])){return[].concat(...r)}return r}(t,e);n=null}return null==n?[]:Array.isArray(n)?n:[String(n)]}gw.rankings=mw;const xw={maxRanking:1/0,minRanking:-1/0};function Cw(e){return"string"==typeof e?xw:{...xw,...e}}function Sw({value:e,options:n}){const[r,o]=t.useState(!1),[i,a]=t.useState(""),s=t.useMemo((()=>{if(!i)return n;const t=gw(n,i,{keys:["label","value"]}),r=n.find((t=>t.value===e));return r&&!t.includes(r)&&t.push(r),t}),[i,e,n]);return{open:r,setOpen:o,searchValue:i,setSearchValue:a,matches:s}}function kw(){const e=r.useAtomValue(ew),{t:n,i18n:i}=o.useTranslation();return t.useEffect((()=>{i.language!==e&&i.changeLanguage(e)}),[e,i]),(e,t)=>n(e,t)}function Ew(e){const[n,r]=t.useState(!1);return t.useEffect((()=>{const t=window.matchMedia(e);t.matches!==n&&r(t.matches);const o=()=>r(t.matches);return t.addEventListener("change",o),()=>t.removeEventListener("change",o)}),[n,e]),n}const Rw=e=>{const[n,r]=t.useState(!0),o=t.useRef(null);return t.useEffect((()=>{if(n){const t=new Promise((t=>{const n=setTimeout((()=>{r(!1),t()}),e);return()=>{clearTimeout(n)}}));o.current=t}return()=>{o.current=null}}),[e,n]),e=>{if(n&&o.current)throw o.current;return e()}};const Pw=hf,Nw=gf,jw=({className:t="",children:n,...r})=>e.jsx(vf,{className:jt(t),...r,children:e.jsx("div",{className:"fixed inset-0 z-[999] flex items-start justify-center sm:items-center",children:n})});jw.displayName=vf.displayName;const Mw=a.forwardRef((({className:t,...n},r)=>e.jsx(bf,{className:jt("fixed inset-0 z-[999] bg-gray-600/65 transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in dark:bg-black/80",t??""),...n,ref:r})));Mw.displayName=bf.displayName;const Aw=a.forwardRef((({className:t,children:n=!0,showCloseButton:r=!0,disableScroll:o=!1,...i},a)=>{const s=Ew("(max-width: 768px)");return e.jsxs(jw,{children:[e.jsx(Mw,{}),e.jsxs(wf,{ref:a,className:jt("fixed z-[999] grid w-full gap-4 rounded-b-lg bg-white pb-6 animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:rounded-lg","dark:bg-gray-700",s?"fixed left-1/2 top-1/2 z-[999] m-auto grid w-11/12 -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-white pb-6":"",o?"overflow-hidden":"",t??""),...i,children:[n,r&&e.jsxs(Cf,{className:"absolute right-6 top-[1.6rem] rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100 dark:focus:ring-white dark:focus:ring-offset-gray-700 dark:data-[state=open]:bg-gray-800",children:[e.jsx(jp,{className:"h-5 w-5 text-black dark:text-white"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}));Aw.displayName=wf.displayName;const Iw=({className:t,...n})=>e.jsx("div",{className:jt("flex flex-col space-y-2 border-b border-black/10 p-6 pb-4 text-left dark:border-white/10",t??""),...n});Iw.displayName="DialogHeader";const Tw=({className:t,...n})=>e.jsx("div",{className:jt("flex flex-row justify-between space-x-2 px-6 py-4",t??""),...n});Tw.displayName="DialogFooter";const Ow=a.forwardRef((({className:t,...n},r)=>e.jsx(yf,{ref:r,className:jt("text-lg font-semibold text-gray-900","dark:text-gray-50",t??""),...n})));Ow.displayName=yf.displayName;const Lw=a.forwardRef((({className:t,...n},r)=>e.jsx(xf,{ref:r,className:jt("text-sm text-gray-500","dark:text-gray-400",t??""),...n})));Lw.displayName=xf.displayName;const Dw=a.forwardRef((({className:t,...n},r)=>e.jsx(Cf,{ref:r,className:jt("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...n})));Dw.displayName=yf.displayName;const Fw=a.forwardRef((({className:t,...n},r)=>e.jsx(zp,{ref:r,variant:"outline",className:jt("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...n})));Fw.displayName=yf.displayName;const _w="Popper",[Vw,zw]=u(_w),[Hw,Bw]=Vw(_w),$w=t.forwardRef(((e,n)=>{const{__scopePopper:r,virtualRef:o,...i}=e,a=Bw("PopperAnchor",r),s=t.useRef(null),l=p(n,s);return t.useEffect((()=>{a.onAnchorChange((null==o?void 0:o.current)||s.current)})),o?null:t.createElement(S.div,c({},i,{ref:l}))})),Ww="PopperContent",[Uw,Kw]=Vw(Ww),Gw=t.forwardRef(((e,n)=>{var r,o,i,a,s,l,u,d;const{__scopePopper:f,side:m="bottom",sideOffset:h=0,align:g="center",alignOffset:v=0,arrowPadding:b=0,avoidCollisions:w=!0,collisionBoundary:y=[],collisionPadding:C=0,sticky:k="partial",hideWhenDetached:R=!1,updatePositionStrategy:P="optimized",onPlaced:N,...j}=e,M=Bw(Ww,f),[A,I]=t.useState(null),T=p(n,(e=>I(e))),[O,L]=t.useState(null),D=Hp(O),F=null!==(r=null==D?void 0:D.width)&&void 0!==r?r:0,_=null!==(o=null==D?void 0:D.height)&&void 0!==o?o:0,V=m+("center"!==g?"-"+g:""),z="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},H=Array.isArray(y)?y:[y],B=H.length>0,$={padding:z,boundary:H.filter(Xw),altBoundary:B},{refs:W,floatingStyles:U,placement:K,isPositioned:G,middlewareData:X}=Mh({strategy:"fixed",placement:V,whileElementsMounted:(...e)=>sl(...e,{animationFrame:"always"===P}),elements:{reference:M.anchor},middleware:[Ih({mainAxis:h+_,alignmentAxis:v}),w&&Th({mainAxis:!0,crossAxis:!1,limiter:"partial"===k?Oh():void 0,...$}),w&&Lh({...$}),Dh({...$,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),O&&_h({element:O,padding:b}),qw({arrowWidth:F,arrowHeight:_}),R&&Fh({strategy:"referenceHidden",...$})]}),[q,Y]=Yw(K),Z=x(N);E((()=>{G&&(null==Z||Z())}),[G,Z]);const Q=null===(i=X.arrow)||void 0===i?void 0:i.x,J=null===(a=X.arrow)||void 0===a?void 0:a.y,ee=0!==(null===(s=X.arrow)||void 0===s?void 0:s.centerOffset),[te,ne]=t.useState();return E((()=>{A&&ne(window.getComputedStyle(A).zIndex)}),[A]),t.createElement("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:G?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[null===(l=X.transformOrigin)||void 0===l?void 0:l.x,null===(u=X.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},t.createElement(Uw,{scope:f,placedSide:q,onArrowChange:L,arrowX:Q,arrowY:J,shouldHideArrow:ee},t.createElement(S.div,c({"data-side":q,"data-align":Y},j,{ref:T,style:{...j.style,animation:G?void 0:"none",opacity:null!==(d=X.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))}));function Xw(e){return null!==e}const qw=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=Yw(s),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let b="",w="";return"bottom"===p?(b=u?h:`${g}px`,w=-f+"px"):"top"===p?(b=u?h:`${g}px`,w=`${l.floating.height+f}px`):"right"===p?(b=-f+"px",w=u?h:`${v}px`):"left"===p&&(b=`${l.floating.width+f}px`,w=u?h:`${v}px`),{data:{x:b,y:w}}}});function Yw(e){const[t,n="center"]=e.split("-");return[t,n]}const Zw=e=>{const{__scopePopper:n,children:r}=e,[o,i]=t.useState(null);return t.createElement(Hw,{scope:n,anchor:o,onAnchorChange:i},r)},Qw=$w,Jw=Gw;let ey;const ty="HoverCard",[ny,ry]=u(ty,[zw]),oy=zw(),[iy,ay]=ny(ty),sy=t.forwardRef(((e,n)=>{const{__scopeHoverCard:r,...o}=e,i=ay("HoverCardTrigger",r),a=oy(r);return t.createElement(Qw,c({asChild:!0},a),t.createElement(S.a,c({"data-state":i.open?"open":"closed"},o,{ref:n,onPointerEnter:y(e.onPointerEnter,my(i.onOpen)),onPointerLeave:y(e.onPointerLeave,my(i.onClose)),onFocus:y(e.onFocus,i.onOpen),onBlur:y(e.onBlur,i.onClose),onTouchStart:y(e.onTouchStart,(e=>e.preventDefault()))})))})),ly="HoverCardPortal",[cy,uy]=ny(ly,{forceMount:void 0}),dy="HoverCardContent",fy=t.forwardRef(((e,n)=>{const r=uy(dy,e.__scopeHoverCard),{forceMount:o=r.forceMount,...i}=e,a=ay(dy,e.__scopeHoverCard);return t.createElement(R,{present:o||a.open},t.createElement(py,c({"data-state":a.open?"open":"closed"},i,{onPointerEnter:y(e.onPointerEnter,my(a.onOpen)),onPointerLeave:y(e.onPointerLeave,my(a.onClose)),ref:n})))})),py=t.forwardRef(((e,n)=>{const{__scopeHoverCard:r,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,...l}=e,u=ay(dy,r),d=oy(r),f=t.useRef(null),m=p(n,f),[h,g]=t.useState(!1);return t.useEffect((()=>{if(h){const e=document.body;return ey=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=ey,e.style.webkitUserSelect=ey}}}),[h]),t.useEffect((()=>{if(f.current){const e=()=>{g(!1),u.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(u.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}}),[u.isPointerDownOnContentRef,u.hasSelectionRef]),t.useEffect((()=>{if(f.current){(function(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(f.current).forEach((e=>e.setAttribute("tabindex","-1")))}})),t.createElement(Mu,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:y(a,(e=>{e.preventDefault()})),onDismiss:u.onDismiss},t.createElement(Jw,c({},d,l,{onPointerDown:y(l.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&g(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0})),ref:m,style:{...l.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}));function my(e){return t=>"touch"===t.pointerType?void 0:e()}const hy=e=>{const{__scopeHoverCard:n,children:r,open:o,defaultOpen:i,onOpenChange:a,openDelay:s=700,closeDelay:l=300}=e,c=oy(n),u=t.useRef(0),d=t.useRef(0),f=t.useRef(!1),p=t.useRef(!1),[m=!1,h]=C({prop:o,defaultProp:i,onChange:a}),g=t.useCallback((()=>{clearTimeout(d.current),u.current=window.setTimeout((()=>h(!0)),s)}),[s,h]),v=t.useCallback((()=>{clearTimeout(u.current),f.current||p.current||(d.current=window.setTimeout((()=>h(!1)),l))}),[l,h]),b=t.useCallback((()=>h(!1)),[h]);return t.useEffect((()=>()=>{clearTimeout(u.current),clearTimeout(d.current)}),[]),t.createElement(iy,{scope:n,open:m,onOpenChange:h,onOpen:g,onClose:v,onDismiss:b,hasSelectionRef:f,isPointerDownOnContentRef:p},t.createElement(Zw,c,r))},gy=e=>{const{__scopeHoverCard:n,forceMount:r,children:o,container:i}=e,a=ay(ly,n);return t.createElement(cy,{scope:n,forceMount:r},t.createElement(R,{present:r||a.open},t.createElement(Wu,{asChild:!0,container:i},o)))},vy=fy,by=hy,wy=sy,yy=gy,xy=a.forwardRef((({className:t="",align:n="center",sideOffset:r=6,disabled:o=!1,...i},a)=>o?null:e.jsx(vy,{ref:a,align:n,sideOffset:r,className:jt("z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-xl border border-border-light bg-surface-secondary p-4 text-text-primary shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})));xy.displayName=vy.displayName;const Cy=a.forwardRef((({className:t,...n},r)=>e.jsx("input",{className:jt("flex h-10 w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",t??""),ref:r,...n})));function Sy(e){"@babel/helpers - typeof";return Sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sy(e)}function ky(e){var t=function(e,t){if("object"!=Sy(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Sy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sy(t)?t:t+""}function Ey(e,t,n){return(t=ky(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ry(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Py(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ry(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ry(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ny(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}Cy.displayName="Input";var jy,My={exports:{}};
34
+ const mn={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},fn=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function gn(e,t,n){void 0===n&&(n={});const{keys:r,threshold:a=mn.MATCHES,baseSort:o=fn,sorter:s=e=>e.sort((e,t)=>wn(e,t,o))}=n,i=e.reduce(function(e,o,s){const i=function(e,t,n,r){if(!t){return{rankedValue:e,rank:vn(e,n,r),keyIndex:-1,keyThreshold:r.threshold}}const a=function(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const a=t[r],o=kn(a),s=yn(e,a);for(let e=0,t=s.length;e<t;e++)n.push({itemValue:s[e],attributes:o})}return n}(e,t);return a.reduce((e,t,a)=>{let{rank:o,rankedValue:s,keyIndex:i,keyThreshold:l}=e,{itemValue:c,attributes:d}=t,u=vn(c,n,r),h=s;const{minRanking:p,maxRanking:m,threshold:f}=d;return u<p&&u>=mn.MATCHES?u=p:u>m&&(u=m),u>o&&(o=u,i=a,l=f,h=c),{rankedValue:h,rank:o,keyIndex:i,keyThreshold:l}},{rankedValue:e,rank:mn.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(o,r,t,n),{rank:l,keyThreshold:c=a}=i;l>=c&&e.push({...i,item:o,index:s});return e},[]);return s(i).map(e=>{let{item:t}=e;return t})}function vn(e,t,n){return e=xn(e,n),(t=xn(t,n)).length>e.length?mn.NO_MATCH:e===t?mn.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?mn.EQUAL:e.startsWith(t)?mn.STARTS_WITH:e.includes(` ${t}`)?mn.WORD_STARTS_WITH:e.includes(t)?mn.CONTAINS:1===t.length?mn.NO_MATCH:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?mn.ACRONYM:function(e,t){let n=0,r=0;function a(e,t,r){for(let a=r,o=t.length;a<o;a++){if(t[a]===e)return n+=1,a+1}return-1}function o(e){const r=1/e,a=n/t.length;return mn.MATCHES+a*r}const s=a(t[0],e,0);if(s<0)return mn.NO_MATCH;r=s;for(let n=1,o=t.length;n<o;n++){r=a(t[n],e,r);if(!(r>-1))return mn.NO_MATCH}return o(r-s)}(e,t)}function wn(e,t,n){const{rank:r,keyIndex:a}=e,{rank:o,keyIndex:s}=t;return r===o?a===s?n(e,t):a<s?-1:1:r>o?-1:1}function xn(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=pn(e)),e}function yn(e,t){let n;if("object"==typeof t&&(t=t.key),"function"==typeof t)n=t(e);else if(null==e)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return function(e,t){const n=e.split(".");let r=[t];for(let e=0,t=n.length;e<t;e++){const t=n[e];let a=[];for(let e=0,n=r.length;e<n;e++){const n=r[e];if(null!=n)if(Object.hasOwnProperty.call(n,t)){const e=n[t];null!=e&&a.push(e)}else"*"===t&&(a=a.concat(n))}r=a}if(Array.isArray(r[0])){return[].concat(...r)}return r}(t,e);n=null}return null==n?[]:Array.isArray(n)?n:[String(n)]}gn.rankings=mn;const bn={maxRanking:1/0,minRanking:-1/0};function kn(e){return"string"==typeof e?bn:{...bn,...e}}function Cn({value:e,options:n}){const[r,a]=t.useState(!1),[o,s]=t.useState(""),i=t.useMemo(()=>{if(!o)return n;const t=gn(n,o,{keys:["label","value"]}),r=n.find(t=>t.value===e);return r&&!t.includes(r)&&t.push(r),t},[o,e,n]);return{open:r,setOpen:a,searchValue:o,setSearchValue:s,matches:i}}function jn(){const e=u.useAtomValue(Qt),{t:n,i18n:r}=h.useTranslation();return t.useEffect(()=>{r.language!==e&&r.changeLanguage(e)},[e,r]),(e,t)=>n(e,t)}function Nn(e){const[n,r]=t.useState(!1);return t.useEffect(()=>{const t=window.matchMedia(e);t.matches!==n&&r(t.matches);const a=()=>r(t.matches);return t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[n,e]),n}const Sn=e=>{const[n,r]=t.useState(!0),a=t.useRef(null);return t.useEffect(()=>{if(n){const t=new Promise(t=>{const n=setTimeout(()=>{r(!1),t()},e);return()=>{clearTimeout(n)}});a.current=t}return()=>{a.current=null}},[e,n]),e=>{if(n&&a.current)throw a.current;return e()}};const Mn=V.Root,Pn=V.Trigger,Ln=({className:t="",children:n,...r})=>e.jsx(V.Portal,{className:Ie(t),...r,children:e.jsx("div",{className:"fixed inset-0 z-[999] flex items-start justify-center sm:items-center",children:n})});Ln.displayName=V.Portal.displayName;const Tn=L.forwardRef(({className:t,...n},r)=>e.jsx(V.Overlay,{className:Ie("fixed inset-0 z-[999] bg-gray-600/65 transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in dark:bg-black/80",t??""),...n,ref:r}));Tn.displayName=V.Overlay.displayName;const En=L.forwardRef(({className:t,children:n=!0,showCloseButton:r=!0,disableScroll:a=!1,...o},s)=>{const i=Nn("(max-width: 768px)");return e.jsxs(Ln,{children:[e.jsx(Tn,{}),e.jsxs(V.Content,{ref:s,className:Ie("fixed z-[999] grid w-full gap-4 rounded-b-lg bg-white pb-6 animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:rounded-lg","dark:bg-gray-700",i?"fixed left-1/2 top-1/2 z-[999] m-auto grid w-11/12 -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-white pb-6":"",a?"overflow-hidden":"",t??""),...o,children:[n,r&&e.jsxs(V.Close,{className:"absolute right-6 top-[1.6rem] rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100 dark:focus:ring-white dark:focus:ring-offset-gray-700 dark:data-[state=open]:bg-gray-800",children:[e.jsx(yt,{className:"h-5 w-5 text-black dark:text-white"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});En.displayName=V.Content.displayName;const An=({className:t,...n})=>e.jsx("div",{className:Ie("flex flex-col space-y-2 border-b border-black/10 p-6 pb-4 text-left dark:border-white/10",t??""),...n});An.displayName="DialogHeader";const Rn=({className:t,...n})=>e.jsx("div",{className:Ie("flex flex-row justify-between space-x-2 px-6 py-4",t??""),...n});Rn.displayName="DialogFooter";const zn=L.forwardRef(({className:t,...n},r)=>e.jsx(V.Title,{ref:r,className:Ie("text-lg font-semibold text-gray-900","dark:text-gray-50",t??""),...n}));zn.displayName=V.Title.displayName;const In=L.forwardRef(({className:t,...n},r)=>e.jsx(V.Description,{ref:r,className:Ie("text-sm text-gray-500","dark:text-gray-400",t??""),...n}));In.displayName=V.Description.displayName;const Vn=L.forwardRef(({className:t,...n},r)=>e.jsx(V.Close,{ref:r,className:Ie("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...n}));Vn.displayName=V.Title.displayName;const Dn=L.forwardRef(({className:t,...n},r)=>e.jsx(Et,{ref:r,variant:"outline",className:Ie("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...n}));Dn.displayName=V.Title.displayName;const On=D.Root,Bn=D.Trigger,Fn=D.Portal,_n=L.forwardRef(({className:t="",align:n="center",sideOffset:r=6,disabled:a=!1,...o},s)=>a?null:e.jsx(D.Content,{ref:s,align:n,sideOffset:r,className:Ie("z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-xl border border-border-light bg-surface-secondary p-4 text-text-primary shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o}));_n.displayName=D.Content.displayName;const Hn=L.forwardRef(({className:t,...n},r)=>e.jsx("input",{className:Ie("flex h-10 w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",t??""),ref:r,...n}));function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(null,arguments)}function Wn(e){"@babel/helpers - typeof";return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(e)}function Un(e){var t=function(e,t){if("object"!=Wn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Wn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wn(t)?t:t+""}function Xn(e,t,n){return(t=Un(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,s,i=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Yn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qn(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}Hn.displayName="Input";var Gn,Kn={exports:{}};
34
35
  /*!
35
36
  Copyright (c) 2018 Jed Watson.
36
37
  Licensed under the MIT License (MIT), see
37
38
  http://jedwatson.github.io/classnames
38
- */jy=My,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}jy.exports?(t.default=t,jy.exports=t):window.classNames=t}();var Ay=so(My.exports),Iy={ENTER:13,UP:38,DOWN:40};var Ty,Oy="undefined"!=typeof window&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,Ly=function(e,t){var n=a.useRef(!0);Oy((function(){return e(n.current)}),t),Oy((function(){return n.current=!1,function(){n.current=!0}}),[])},Dy=function(e,t){Ly((function(t){if(!t)return e()}),t)},Fy={},_y=Symbol.for("react.element"),Vy=Symbol.for("react.portal"),zy=Symbol.for("react.fragment"),Hy=Symbol.for("react.strict_mode"),By=Symbol.for("react.profiler"),$y=Symbol.for("react.provider"),Wy=Symbol.for("react.context"),Uy=Symbol.for("react.server_context"),Ky=Symbol.for("react.forward_ref"),Gy=Symbol.for("react.suspense"),Xy=Symbol.for("react.suspense_list"),qy=Symbol.for("react.memo"),Yy=Symbol.for("react.lazy"),Zy=Symbol.for("react.offscreen");function Qy(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _y:switch(e=e.type){case zy:case By:case Hy:case Gy:case Xy:return e;default:switch(e=e&&e.$$typeof){case Uy:case Wy:case Ky:case Yy:case qy:case $y:return e;default:return t}}case Vy:return t}}}function Jy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){!function(e,t){"function"==typeof e?e(t):"object"===Sy(e)&&e&&"current"in e&&(e.current=t)}(t,e)}))}}function ex(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tx(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ky(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nx(){return"function"==typeof BigInt}function rx(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function ox(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function ix(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ax(e){var t=String(e);if(ix(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&lx(t)?t.length-t.indexOf(".")-1:0}function sx(e){var t=String(e);if(ix(e)){if(e>Number.MAX_SAFE_INTEGER)return String(nx()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(nx()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(ax(t))}return ox(t).fullStr}function lx(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}Ty=Symbol.for("react.module.reference"),Fy.ContextConsumer=Wy,Fy.ContextProvider=$y,Fy.Element=_y,Fy.ForwardRef=Ky,Fy.Fragment=zy,Fy.Lazy=Yy,Fy.Memo=qy,Fy.Portal=Vy,Fy.Profiler=By,Fy.StrictMode=Hy,Fy.Suspense=Gy,Fy.SuspenseList=Xy,Fy.isAsyncMode=function(){return!1},Fy.isConcurrentMode=function(){return!1},Fy.isContextConsumer=function(e){return Qy(e)===Wy},Fy.isContextProvider=function(e){return Qy(e)===$y},Fy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_y},Fy.isForwardRef=function(e){return Qy(e)===Ky},Fy.isFragment=function(e){return Qy(e)===zy},Fy.isLazy=function(e){return Qy(e)===Yy},Fy.isMemo=function(e){return Qy(e)===qy},Fy.isPortal=function(e){return Qy(e)===Vy},Fy.isProfiler=function(e){return Qy(e)===By},Fy.isStrictMode=function(e){return Qy(e)===Hy},Fy.isSuspense=function(e){return Qy(e)===Gy},Fy.isSuspenseList=function(e){return Qy(e)===Xy},Fy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===zy||e===By||e===Hy||e===Gy||e===Xy||e===Zy||"object"==typeof e&&null!==e&&(e.$$typeof===Yy||e.$$typeof===qy||e.$$typeof===$y||e.$$typeof===Wy||e.$$typeof===Ky||e.$$typeof===Ty||void 0!==e.getModuleId)},Fy.typeOf=Qy;var cx=function(){function e(t){if(ex(this,e),Ey(this,"origin",""),Ey(this,"negative",void 0),Ey(this,"integer",void 0),Ey(this,"decimal",void 0),Ey(this,"decimalLen",void 0),Ey(this,"empty",void 0),Ey(this,"nan",void 0),rx(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(ix(n)&&(n=Number(n)),lx(n="string"==typeof n?n:sx(n))){var r=ox(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return tx(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),s=ox(i),l=s.negativeStr,c=s.trimStr,u="".concat(l).concat(c.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":ox("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),ux=function(){function e(t){ex(this,e),Ey(this,"origin",""),Ey(this,"number",void 0),Ey(this,"empty",void 0),rx(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return tx(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(ax(this.number),ax(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(ax(this.number),ax(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":sx(this.number):this.origin}}]),e}();function dx(e){return nx()?new cx(e):new ux(e)}function fx(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=ox(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);return u>=5&&!r?fx(dx(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?c:"".concat(c).concat(l)}var px=function(){var e=Py(t.useState(!1),2),n=e[0],r=e[1];return Ly((function(){r(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[]),n};function mx(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,s=e.onStep,l=a.useRef(),u=a.useRef();u.current=s;var d=function(e,t){e.preventDefault(),u.current(t),l.current=setTimeout((function e(){u.current(t),l.current=setTimeout(e,200)}),600)},f=function(){clearTimeout(l.current)};if(a.useEffect((function(){return f}),[]),px())return null;var p="".concat(t,"-handler"),m=Ay(p,"".concat(p,"-up"),Ey({},"".concat(p,"-up-disabled"),o)),h=Ay(p,"".concat(p,"-down"),Ey({},"".concat(p,"-down-disabled"),i)),g={unselectable:"on",role:"button",onMouseUp:f,onMouseLeave:f};return a.createElement("div",{className:"".concat(p,"-wrap")},a.createElement("span",c({},g,{onMouseDown:function(e){d(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||a.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),a.createElement("span",c({},g,{onMouseDown:function(e){d(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:h}),r||a.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function hx(e){var t="number"==typeof e?sx(e):ox(e).fullStr;return t.includes(".")?ox(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var gx={};function vx(e,t){}function bx(e,t){}function wx(e,t,n){t||gx[n]||(e(!1,n),gx[n]=!0)}function yx(e,t){wx(vx,e,t)}yx.preMessage=function(e){},yx.resetWarned=function(){gx={}},yx.noteOnce=function(e,t){wx(bx,e,t)};var xx=function(e){return+setTimeout(e,16)},Cx=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(xx=function(e){return window.requestAnimationFrame(e)},Cx=function(e){return window.cancelAnimationFrame(e)});var Sx=0,kx=new Map;function Ex(e){kx.delete(e)}var Rx=function(e){var t=Sx+=1;return function n(r){if(0===r)Ex(t),e();else{var o=xx((function(){n(r-1)}));kx.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Rx.cancel=function(e){var t=kx.get(e);return Ex(e),Cx(t)};var Px=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Nx=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},jx=function(e){var t=dx(e);return t.isInvalidate()?null:t},Mx=a.forwardRef((function(e,n){var r,o=e.prefixCls,i=void 0===o?"rc-input-number":o,s=e.className,l=e.style,u=e.min,d=e.max,f=e.step,p=void 0===f?1:f,m=e.defaultValue,h=e.value,g=e.disabled,v=e.readOnly,b=e.upHandler,w=e.downHandler,y=e.keyboard,x=e.controls,C=void 0===x||x,S=e.stringMode,k=e.parser,E=e.formatter,R=e.precision,P=e.decimalSeparator,N=e.onChange,j=e.onInput,M=e.onPressEnter,A=e.onStep,I=function(e,t){if(null==e)return{};var n,r,o=Ny(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Px),T="".concat(i,"-input"),O=a.useRef(null),L=Py(a.useState(!1),2),D=L[0],F=L[1],_=a.useRef(!1),V=a.useRef(!1),z=a.useRef(!1),H=Py(a.useState((function(){return dx(null!=h?h:m)})),2),B=H[0],$=H[1];var W=a.useCallback((function(e,t){if(!t)return R>=0?R:Math.max(ax(e),ax(p))}),[R,p]),U=a.useCallback((function(e){var t=String(e);if(k)return k(t);var n=t;return P&&(n=n.replace(P,".")),n.replace(/[^\w.-]+/g,"")}),[k,P]),K=a.useRef(""),G=a.useCallback((function(e,t){if(E)return E(e,{userTyping:t,input:String(K.current)});var n="number"==typeof e?sx(e):e;if(!t){var r=W(n,t);if(lx(n)&&(P||r>=0))n=fx(n,P||".",r)}return n}),[E,W,P]),X=Py(a.useState((function(){var e=null!=m?m:h;return B.isInvalidate()&&["string","number"].includes(Sy(e))?Number.isNaN(e)?"":e:G(B.toString(),!1)})),2),q=X[0],Y=X[1];function Z(e,t){Y(G(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}K.current=q;var Q,J,ee,te,ne,re=a.useMemo((function(){return jx(d)}),[d,R]),oe=a.useMemo((function(){return jx(u)}),[u,R]),ie=a.useMemo((function(){return!(!re||!B||B.isInvalidate())&&re.lessEquals(B)}),[re,B]),ae=a.useMemo((function(){return!(!oe||!B||B.isInvalidate())&&B.lessEquals(oe)}),[oe,B]),se=(Q=O.current,J=D,ee=t.useRef(null),[function(){try{var e=Q.selectionStart,t=Q.selectionEnd,n=Q.value,r=n.substring(0,e),o=n.substring(t);ee.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(e){}},function(){if(Q&&ee.current&&J)try{var e=Q.value,t=ee.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,i=e.length;if(e.endsWith(r))i=e.length-ee.current.afterTxt.length;else if(e.startsWith(n))i=n.length;else{var a=n[o-1],s=e.indexOf(a,o-1);-1!==s&&(i=s+1)}Q.setSelectionRange(i,i)}catch(e){yx(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),le=Py(se,2),ce=le[0],ue=le[1],de=function(e){return re&&!e.lessEquals(re)?re:oe&&!oe.lessEquals(e)?oe:null},fe=function(e){return!de(e)},pe=function(e,t){var n,r=e,o=fe(r)||r.isEmpty();if(r.isEmpty()||t||(r=de(r)||r,o=!0),!v&&!g&&o){var i=r.toString(),a=W(i,t);return a>=0&&(r=dx(fx(i,".",a)),fe(r)||(r=dx(fx(i,".",a,!0)))),r.equals(B)||(n=r,void 0===h&&$(n),null==N||N(r.isEmpty()?null:Nx(S,r)),void 0===h&&Z(r,t)),r}return B},me=(te=t.useRef(0),ne=function(){Rx.cancel(te.current)},t.useEffect((function(){return ne}),[]),function(e){ne(),te.current=Rx((function(){e()}))}),he=function e(t){if(ce(),Y(t),!V.current){var n=dx(U(t));n.isNaN()||pe(n,!0)}null==j||j(t),me((function(){var n=t;k||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},ge=function(e){var t;if(!(e&&ie||!e&&ae)){_.current=!1;var n=dx(z.current?hx(p):p);e||(n=n.negate());var r=(B||dx(0)).add(n.toString()),o=pe(r,!1);null==A||A(Nx(S,o),{offset:z.current?hx(p):p,type:e?"up":"down"}),null===(t=O.current)||void 0===t||t.focus()}},ve=function(e){var t=dx(U(q)),n=t;n=t.isNaN()?B:pe(t,e),void 0!==h?Z(B,!1):n.isNaN()||Z(n,!1)};return Dy((function(){B.isInvalidate()||Z(B,!1)}),[R]),Dy((function(){var e=dx(h);$(e);var t=dx(U(q));e.equals(t)&&_.current&&!E||Z(e,_.current)}),[h]),Dy((function(){E&&ue()}),[q]),a.createElement("div",{className:Ay(i,s,(r={},Ey(r,"".concat(i,"-focused"),D),Ey(r,"".concat(i,"-disabled"),g),Ey(r,"".concat(i,"-readonly"),v),Ey(r,"".concat(i,"-not-a-number"),B.isNaN()),Ey(r,"".concat(i,"-out-of-range"),!B.isInvalidate()&&!fe(B)),r)),style:l,onFocus:function(){F(!0)},onBlur:function(){ve(!1),F(!1),_.current=!1},onKeyDown:function(e){var t=e.which,n=e.shiftKey;_.current=!0,z.current=!!n,t===Iy.ENTER&&(V.current||(_.current=!1),ve(!1),null==M||M(e)),!1!==y&&!V.current&&[Iy.UP,Iy.DOWN].includes(t)&&(ge(Iy.UP===t),e.preventDefault())},onKeyUp:function(){_.current=!1,z.current=!1},onCompositionStart:function(){V.current=!0},onCompositionEnd:function(){V.current=!1,he(O.current.value)},onBeforeInput:function(){_.current=!0}},C&&a.createElement(mx,{prefixCls:i,upNode:b,downNode:w,upDisabled:ie,downDisabled:ae,onStep:ge}),a.createElement("div",{className:"".concat(T,"-wrap")},a.createElement("input",c({autoComplete:"off",role:"spinbutton","aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":B.isInvalidate()?null:B.toString(),step:p},I,{ref:Jy(O,n),className:T,value:q,onChange:function(e){he(e.target.value)},disabled:g,readOnly:v}))))}));Mx.displayName="InputNumber";const Ax=a.forwardRef((({className:t,...n},r)=>e.jsx(Mx,{className:jt("flex max-h-5 w-full rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50",t??""),ref:r,...n})));function Ix(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Tx(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?function(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Ix(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Ix(e[t],null)}}}}(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}Ax.displayName="Input";var Ox=Symbol("radix.slottable");function Lx(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Ox}var Dx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=function(t){const n=Tx(t),r=a.forwardRef(((t,r)=>{const{children:o,...i}=t,s=a.Children.toArray(o),l=s.find(Lx);if(l){const t=l.props.children,o=s.map((e=>e===l?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(n,{...i,ref:r,children:a.isValidElement(t)?a.cloneElement(t,void 0,o):null})}return e.jsx(n,{...i,ref:r,children:o})}));return r.displayName=`${t}.Slot`,r}(`Primitive.${n}`),o=a.forwardRef(((t,o)=>{const{asChild:i,...a}=t,s=i?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(s,{...a,ref:o})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{}),Fx=a.forwardRef(((t,n)=>e.jsx(Dx.label,{...t,ref:n,onMouseDown:e=>{e.target.closest("button, input, select, textarea")||(t.onMouseDown?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}})));Fx.displayName="Label";var _x=Fx;const Vx=a.forwardRef((({className:t="",...n},r)=>e.jsx(_x,{ref:r,...n,className:jt("block w-full break-all text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-200",t)})));Vx.displayName=_x.displayName;const zx=a.forwardRef((({children:t,triggerRef:n,triggerRefs:r,onOpenChange:o,...i},a)=>e.jsx(hf,{...i,onOpenChange:e=>{!e&&n?.current&&setTimeout((()=>{n.current?.focus()}),0),r?.length&&r.forEach((e=>{e?.current&&setTimeout((()=>{e.current?.focus()}),0)})),o?.(e)},children:t}))),Hx=gf,Bx=vf,$x=Cf,Wx=a.forwardRef((({className:t,...n},r)=>e.jsx(bf,{ref:r,className:jt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})));Wx.displayName=bf.displayName;const Ux=a.forwardRef((({className:t,overlayClassName:n,showCloseButton:r=!0,children:o,...i},a)=>e.jsxs(Bx,{children:[e.jsx(Wx,{className:n}),e.jsxs(wf,{ref:a,className:jt("max-w-11/12 fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl bg-background p-6 text-text-primary shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",t),...i,children:[o,r&&e.jsxs(Cf,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-ring-primary ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(jp,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));Ux.displayName=wf.displayName;const Kx=({className:t,...n})=>e.jsx("div",{className:jt("flex flex-col space-y-1.5 text-center sm:text-left",t),...n});Kx.displayName="DialogHeader";const Gx=({className:t,...n})=>e.jsx("div",{className:jt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});Gx.displayName="DialogFooter";const Xx=a.forwardRef((({className:t,...n},r)=>e.jsx(yf,{ref:r,className:jt("text-lg font-semibold leading-none tracking-tight",t),...n})));Xx.displayName=yf.displayName;const qx=a.forwardRef((({className:t,...n},r)=>e.jsx(xf,{ref:r,className:jt("text-sm text-muted-foreground",t),...n})));qx.displayName=xf.displayName;function Yx(e,[t,n]){return Math.min(n,Math.max(t,e))}function Zx(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Qx(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Jx(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Qx(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Qx(e[t],null)}}}}function eC(...e){return a.useCallback(Jx(...e),e)}function tC(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,c=r?.[t]?.[s]||i,u=a.useMemo((()=>l),Object.values(l));return e.jsx(c.Provider,{value:u,children:o})};return l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t]?.[s]||i,c=a.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},nC(o,...n)]}function nC(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var rC=globalThis?.document?a.useLayoutEffect:()=>{},oC=a[" useInsertionEffect ".trim().toString()]||rC;function iC({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return oC((()=>{i.current=t}),[t]),a.useEffect((()=>{o.current!==n&&(i.current?.(n),o.current=n)}),[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:o;{const t=a.useRef(void 0!==e);a.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l}),[l,r])}const u=a.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)}),[l,e,i,s]);return[c,u]}var aC=a.createContext(void 0);function sC(t){const n=lC(t),r=a.forwardRef(((t,r)=>{const{children:o,...i}=t,s=a.Children.toArray(o),l=s.find(uC);if(l){const t=l.props.children,o=s.map((e=>e===l?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(n,{...i,ref:r,children:a.isValidElement(t)?a.cloneElement(t,void 0,o):null})}return e.jsx(n,{...i,ref:r,children:o})}));return r.displayName=`${t}.Slot`,r}function lC(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?Jx(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var cC=Symbol("radix.slottable");function uC(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===cC}var dC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=sC(`Primitive.${n}`),o=a.forwardRef(((t,o)=>{const{asChild:i,...a}=t,s=i?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(s,{...a,ref:o})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{});var fC=["PageUp","PageDown"],pC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],mC={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},hC="Slider",[gC,vC,bC]=function(n){const r=n+"CollectionProvider",[o,i]=tC(r),[a,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),l=n=>{const{scope:r,children:o}=n,i=t.useRef(null),s=t.useRef(new Map).current;return e.jsx(a,{scope:r,itemMap:s,collectionRef:i,children:o})};l.displayName=r;const c=n+"CollectionSlot",u=sC(c),d=t.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=eC(n,s(c,r).collectionRef);return e.jsx(u,{ref:i,children:o})}));d.displayName=c;const f=n+"CollectionItemSlot",p="data-radix-collection-item",m=sC(f),h=t.forwardRef(((n,r)=>{const{scope:o,children:i,...a}=n,l=t.useRef(null),c=eC(r,l),u=s(f,o);return t.useEffect((()=>(u.itemMap.set(l,{ref:l,...a}),()=>{u.itemMap.delete(l)}))),e.jsx(m,{[p]:"",ref:c,children:i})}));return h.displayName=f,[{Provider:l,Slot:d,ItemSlot:h},function(e){const r=s(n+"CollectionConsumer",e),o=t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`)),n=Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return n}),[r.collectionRef,r.itemMap]);return o},i]}(hC),[wC,yC]=tC(hC,[bC]),[xC,CC]=wC(hC),SC=a.forwardRef(((t,n)=>{const{name:r,min:o=0,max:i=100,step:s=1,orientation:l="horizontal",disabled:c=!1,minStepsBetweenThumbs:u=0,defaultValue:d=[o],value:f,onValueChange:p=(()=>{}),onValueCommit:m=(()=>{}),inverted:h=!1,form:g,...v}=t,b=a.useRef(new Set),w=a.useRef(0),y="horizontal"===l?RC:PC,[x=[],C]=iC({prop:f,defaultProp:d,onChange:e=>{const t=[...b.current];t[w.current]?.focus(),p(e)}}),S=a.useRef(x);function k(e,t,{commit:n}={commit:!1}){const r=function(e){return(String(e).split(".")[1]||"").length}(s),a=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-o)/s)*s+o,r),l=Yx(a,[o,i]);C(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,l,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,u*s)){w.current=r.indexOf(l);const t=String(r)!==String(e);return t&&n&&m(r),t?r:e}return e}))}return e.jsx(xC,{scope:t.__scopeSlider,name:r,disabled:c,min:o,max:i,valueIndexToChangeRef:w,thumbs:b.current,values:x,orientation:l,form:g,children:e.jsx(gC.Provider,{scope:t.__scopeSlider,children:e.jsx(gC.Slot,{scope:t.__scopeSlider,children:e.jsx(y,{"aria-disabled":c,"data-disabled":c?"":void 0,...v,ref:n,onPointerDown:Zx(v.onPointerDown,(()=>{c||(S.current=x)})),min:o,max:i,inverted:h,onSlideStart:c?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(x,e);k(e,t)},onSlideMove:c?void 0:function(e){k(e,w.current)},onSlideEnd:c?void 0:function(){const e=S.current[w.current];x[w.current]!==e&&m(x)},onHomeKeyDown:()=>!c&&k(o,0,{commit:!0}),onEndKeyDown:()=>!c&&k(i,x.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){const n=fC.includes(e.key)||e.shiftKey&&pC.includes(e.key)?10:1,r=w.current;k(x[r]+s*n*t,r,{commit:!0})}}})})})})}));SC.displayName=hC;var[kC,EC]=wC(hC,{startEdge:"left",endEdge:"right",size:"width",direction:1}),RC=a.forwardRef(((t,n)=>{const{min:r,max:o,dir:i,inverted:s,onSlideStart:l,onSlideMove:c,onSlideEnd:u,onStepKeyDown:d,...f}=t,[p,m]=a.useState(null),h=eC(n,(e=>m(e))),g=a.useRef(void 0),v=function(e){const t=a.useContext(aC);return e||t||"ltr"}(i),b="ltr"===v,w=b&&!s||!b&&s;function y(e){const t=g.current||p.getBoundingClientRect(),n=_C([0,t.width],w?[r,o]:[o,r]);return g.current=t,n(e-t.left)}return e.jsx(kC,{scope:t.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width",children:e.jsx(NC,{dir:v,"data-orientation":"horizontal",...f,ref:h,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=y(e.clientX);l?.(t)},onSlideMove:e=>{const t=y(e.clientX);c?.(t)},onSlideEnd:()=>{g.current=void 0,u?.()},onStepKeyDown:e=>{const t=mC[w?"from-left":"from-right"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})})),PC=a.forwardRef(((t,n)=>{const{min:r,max:o,inverted:i,onSlideStart:s,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...d}=t,f=a.useRef(null),p=eC(n,f),m=a.useRef(void 0),h=!i;function g(e){const t=m.current||f.current.getBoundingClientRect(),n=_C([0,t.height],h?[o,r]:[r,o]);return m.current=t,n(e-t.top)}return e.jsx(kC,{scope:t.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:e.jsx(NC,{"data-orientation":"vertical",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=g(e.clientY);s?.(t)},onSlideMove:e=>{const t=g(e.clientY);l?.(t)},onSlideEnd:()=>{m.current=void 0,c?.()},onStepKeyDown:e=>{const t=mC[h?"from-bottom":"from-top"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})})),NC=a.forwardRef(((t,n)=>{const{__scopeSlider:r,onSlideStart:o,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:l,onStepKeyDown:c,...u}=t,d=CC(hC,r);return e.jsx(dC.span,{...u,ref:n,onKeyDown:Zx(t.onKeyDown,(e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):fC.concat(pC).includes(e.key)&&(c(e),e.preventDefault())})),onPointerDown:Zx(t.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():o(e)})),onPointerMove:Zx(t.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)})),onPointerUp:Zx(t.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))}))})})),jC="SliderTrack",MC=a.forwardRef(((t,n)=>{const{__scopeSlider:r,...o}=t,i=CC(jC,r);return e.jsx(dC.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...o,ref:n})}));MC.displayName=jC;var AC="SliderRange",IC=a.forwardRef(((t,n)=>{const{__scopeSlider:r,...o}=t,i=CC(AC,r),s=EC(AC,r),l=eC(n,a.useRef(null)),c=i.values.length,u=i.values.map((e=>FC(e,i.min,i.max))),d=c>1?Math.min(...u):0,f=100-Math.max(...u);return e.jsx(dC.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...o,ref:l,style:{...t.style,[s.startEdge]:d+"%",[s.endEdge]:f+"%"}})}));IC.displayName=AC;var TC="SliderThumb",OC=a.forwardRef(((t,n)=>{const r=vC(t.__scopeSlider),[o,i]=a.useState(null),s=eC(n,(e=>i(e))),l=a.useMemo((()=>o?r().findIndex((e=>e.ref.current===o)):-1),[r,o]);return e.jsx(LC,{...t,ref:s,index:l})})),LC=a.forwardRef(((t,n)=>{const{__scopeSlider:r,index:o,name:i,...s}=t,l=CC(TC,r),c=EC(TC,r),[u,d]=a.useState(null),f=eC(n,(e=>d(e))),p=!u||(l.form||!!u.closest("form")),m=function(e){const[t,n]=a.useState(void 0);return rC((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(u),h=l.values[o],g=void 0===h?0:FC(h,l.min,l.max),v=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(o,l.values.length),b=m?.[c.size],w=b?function(e,t,n){const r=e/2,o=_C([0,50],[0,r]);return(r-o(t)*n)*n}(b,g,c.direction):0;return a.useEffect((()=>{if(u)return l.thumbs.add(u),()=>{l.thumbs.delete(u)}}),[u,l.thumbs]),e.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${g}% + ${w}px)`},children:[e.jsx(gC.ItemSlot,{scope:t.__scopeSlider,children:e.jsx(dC.span,{role:"slider","aria-label":t["aria-label"]||v,"aria-valuemin":l.min,"aria-valuenow":h,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...s,ref:f,style:void 0===h?{display:"none"}:t.style,onFocus:Zx(t.onFocus,(()=>{l.valueIndexToChangeRef.current=o}))})}),p&&e.jsx(DC,{name:i??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:h},o)]})}));OC.displayName=TC;var DC=a.forwardRef((({__scopeSlider:t,value:n,...r},o)=>{const i=a.useRef(null),s=eC(i,o),l=function(e){const t=a.useRef({value:e,previous:e});return a.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n);return a.useEffect((()=>{const e=i.current;if(!e)return;const t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==n&&r){const t=new Event("input",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[l,n]),e.jsx(dC.input,{style:{display:"none"},...r,ref:s,defaultValue:n})}));function FC(e,t,n){return Yx(100/(n-t)*(e-t),[0,100])}function _C(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}DC.displayName="RadioBubbleInput";var VC=SC,zC=MC,HC=IC,BC=OC;const $C=a.forwardRef((({className:t,onDoubleClick:n,...r},o)=>e.jsxs(VC,{ref:o,...r,className:jt("relative flex w-full cursor-pointer touch-none select-none items-center",t),onDoubleClick:n,children:[e.jsx(zC,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(HC,{className:"absolute h-full bg-primary"})}),e.jsx(BC,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]})));function WC(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function UC(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?function(...e){return t=>{let n=!1;const r=e.map((e=>{const r=WC(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():WC(e[t],null)}}}}(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}$C.displayName=VC.displayName;var KC=Symbol("radix.slottable");function GC(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===KC}var XC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=function(t){const n=UC(t),r=a.forwardRef(((t,r)=>{const{children:o,...i}=t,s=a.Children.toArray(o),l=s.find(GC);if(l){const t=l.props.children,o=s.map((e=>e===l?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(n,{...i,ref:r,children:a.isValidElement(t)?a.cloneElement(t,void 0,o):null})}return e.jsx(n,{...i,ref:r,children:o})}));return r.displayName=`${t}.Slot`,r}(`Primitive.${n}`),o=a.forwardRef(((t,o)=>{const{asChild:i,...a}=t,s=i?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(s,{...a,ref:o})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{}),qC="horizontal",YC=["horizontal","vertical"],ZC=a.forwardRef(((t,n)=>{const{decorative:r,orientation:o=qC,...i}=t,a=function(e){return YC.includes(e)}(o)?o:qC,s=r?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"};return e.jsx(XC.div,{"data-orientation":a,...s,...i,ref:n})}));ZC.displayName="Separator";var QC=ZC;const JC=a.forwardRef((({className:t="",orientation:n="horizontal",decorative:r=!0,...o},i)=>e.jsx(QC,{ref:i,...o,decorative:r,orientation:n,className:jt("shrink-0 bg-border-light","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",t)})));JC.displayName=QC.displayName;function eS({className:t,...n}){return e.jsx("div",{className:jt("animate-pulse rounded-md bg-surface-tertiary opacity-50 dark:opacity-25",t),...n})}function tS(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function nS(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function rS(...e){return t=>{let n=!1;const r=e.map((e=>{const r=nS(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():nS(e[t],null)}}}}function oS(...e){return a.useCallback(rS(...e),e)}function iS(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var aS=globalThis?.document?a.useLayoutEffect:()=>{},sS=a[" useInsertionEffect ".trim().toString()]||aS;function lS({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return sS((()=>{i.current=t}),[t]),a.useEffect((()=>{o.current!==n&&(i.current?.(n),o.current=n)}),[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:o;{const t=a.useRef(void 0!==e);a.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l}),[l,r])}const u=a.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)}),[l,e,i,s]);return[c,u]}function cS(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?rS(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var uS=Symbol("radix.slottable");function dS(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===uS}var fS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=function(t){const n=cS(t),r=a.forwardRef(((t,r)=>{const{children:o,...i}=t,s=a.Children.toArray(o),l=s.find(dS);if(l){const t=l.props.children,o=s.map((e=>e===l?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(n,{...i,ref:r,children:a.isValidElement(t)?a.cloneElement(t,void 0,o):null})}return e.jsx(n,{...i,ref:r,children:o})}));return r.displayName=`${t}.Slot`,r}(`Primitive.${n}`),o=a.forwardRef(((t,o)=>{const{asChild:i,...a}=t,s=i?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(s,{...a,ref:o})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{}),pS="Switch",[mS,hS]=function(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,c=r?.[t]?.[s]||i,u=a.useMemo((()=>l),Object.values(l));return e.jsx(c.Provider,{value:u,children:o})};return l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t]?.[s]||i,c=a.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},iS(o,...n)]}(pS),[gS,vS]=mS(pS),bS=a.forwardRef(((t,n)=>{const{__scopeSwitch:r,name:o,checked:i,defaultChecked:s,required:l,disabled:c,value:u="on",onCheckedChange:d,form:f,...p}=t,[m,h]=a.useState(null),g=oS(n,(e=>h(e))),v=a.useRef(!1),b=!m||(f||!!m.closest("form")),[w,y]=lS({prop:i,defaultProp:s??!1,onChange:d,caller:pS});return e.jsxs(gS,{scope:r,checked:w,disabled:c,children:[e.jsx(fS.button,{type:"button",role:"switch","aria-checked":w,"aria-required":l,"data-state":CS(w),"data-disabled":c?"":void 0,disabled:c,value:u,...p,ref:g,onClick:tS(t.onClick,(e=>{y((e=>!e)),b&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())}))}),b&&e.jsx(xS,{control:m,bubbles:!v.current,name:o,value:u,checked:w,required:l,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})}));bS.displayName=pS;var wS="SwitchThumb",yS=a.forwardRef(((t,n)=>{const{__scopeSwitch:r,...o}=t,i=vS(wS,r);return e.jsx(fS.span,{"data-state":CS(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:n})}));yS.displayName=wS;var xS=a.forwardRef((({__scopeSwitch:t,control:n,checked:r,bubbles:o=!0,...i},s)=>{const l=a.useRef(null),c=oS(l,s),u=function(e){const t=a.useRef({value:e,previous:e});return a.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(r),d=function(e){const[t,n]=a.useState(void 0);return aS((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(n);return a.useEffect((()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==r&&n){const t=new Event("click",{bubbles:o});n.call(e,r),e.dispatchEvent(t)}}),[u,r,o]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:c,style:{...i.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})}));function CS(e){return e?"checked":"unchecked"}xS.displayName="SwitchBubbleInput";var SS=bS,kS=yS;const ES=a.forwardRef((({className:t,...n},r)=>e.jsx(SS,{className:jt("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-switch-unchecked",t),...n,ref:r,children:e.jsx(kS,{className:jt("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})));ES.displayName=SS.displayName;const RS=a.forwardRef((({className:t,...n},r)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:r,className:jt("w-full caption-bottom text-sm",t),...n})})));RS.displayName="Table";const PS=a.forwardRef((({className:t,...n},r)=>e.jsx("thead",{ref:r,className:jt("[&_tr]:border-b",t),...n})));PS.displayName="TableHeader";const NS=a.forwardRef((({className:t,...n},r)=>e.jsx("tbody",{ref:r,className:jt("[&_tr:last-child]:border-0",t),...n})));NS.displayName="TableBody";const jS=a.forwardRef((({className:t,...n},r)=>e.jsx("tfoot",{ref:r,className:jt("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...n})));jS.displayName="TableFooter";const MS=a.forwardRef((({className:t,...n},r)=>e.jsx("tr",{ref:r,className:jt("border-b border-border-light transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...n})));MS.displayName="TableRow";const AS=a.forwardRef((({className:t,...n},r)=>e.jsx("th",{ref:r,className:jt("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...n})));AS.displayName="TableHead";const IS=a.forwardRef((({className:t,...n},r)=>e.jsx("td",{ref:r,className:jt("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...n})));IS.displayName="TableCell";const TS=a.forwardRef((({className:t,...n},r)=>e.jsx("caption",{ref:r,className:jt("mt-4 text-sm text-muted-foreground",t),...n})));TS.displayName="TableCaption";const OS="rovingFocusGroup.onEntryFocus",LS={bubbles:!1,cancelable:!0},DS="RovingFocusGroup",[FS,_S,VS]=w(DS),[zS,HS]=u(DS,[VS]),[BS,$S]=zS(DS),WS=t.forwardRef(((e,n)=>t.createElement(FS.Provider,{scope:e.__scopeRovingFocusGroup},t.createElement(FS.Slot,{scope:e.__scopeRovingFocusGroup},t.createElement(US,c({},e,{ref:n})))))),US=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,...f}=e,m=t.useRef(null),h=p(n,m),g=K(a),[v=null,b]=C({prop:s,defaultProp:l,onChange:u}),[w,k]=t.useState(!1),E=x(d),R=_S(r),P=t.useRef(!1),[N,j]=t.useState(0);return t.useEffect((()=>{const e=m.current;if(e)return e.addEventListener(OS,E),()=>e.removeEventListener(OS,E)}),[E]),t.createElement(BS,{scope:r,orientation:o,dir:g,loop:i,currentTabStopId:v,onItemFocus:t.useCallback((e=>b(e)),[b]),onItemShiftTab:t.useCallback((()=>k(!0)),[]),onFocusableItemAdd:t.useCallback((()=>j((e=>e+1))),[]),onFocusableItemRemove:t.useCallback((()=>j((e=>e-1))),[])},t.createElement(S.div,c({tabIndex:w||0===N?-1:0,"data-orientation":o},f,{ref:h,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,(()=>{P.current=!0})),onFocus:y(e.onFocus,(e=>{const t=!P.current;if(e.target===e.currentTarget&&t&&!w){const t=new CustomEvent(OS,LS);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=R().filter((e=>e.focusable));XS([e.find((e=>e.active)),e.find((e=>e.id===v)),...e].filter(Boolean).map((e=>e.ref.current)))}}P.current=!1})),onBlur:y(e.onBlur,(()=>k(!1)))})))})),KS=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:a,...s}=e,l=M(),u=a||l,d=$S("RovingFocusGroupItem",r),f=d.currentTabStopId===u,p=_S(r),{onFocusableItemAdd:m,onFocusableItemRemove:h}=d;return t.useEffect((()=>{if(o)return m(),()=>h()}),[o,m,h]),t.createElement(FS.ItemSlot,{scope:r,id:u,focusable:o,active:i},t.createElement(S.span,c({tabIndex:f?0:-1,"data-orientation":d.orientation},s,{ref:n,onMouseDown:y(e.onMouseDown,(e=>{o?d.onItemFocus(u):e.preventDefault()})),onFocus:y(e.onFocus,(()=>d.onItemFocus(u))),onKeyDown:y(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:GS[r]}(e,d.orientation,d.dir);if(void 0!==t){e.preventDefault();let o=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=d.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>XS(o)))}var n,r}))})))})),GS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function XS(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const qS=WS,YS=KS,ZS="Tabs",[QS,JS]=u(ZS,[HS]),ek=HS(),[tk,nk]=QS(ZS),rk=t.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:a,orientation:s="horizontal",dir:l,activationMode:u="automatic",...d}=e,f=K(l),[p,m]=C({prop:o,onChange:i,defaultProp:a});return t.createElement(tk,{scope:r,baseId:M(),value:p,onValueChange:m,orientation:s,dir:f,activationMode:u},t.createElement(S.div,c({dir:f,"data-orientation":s},d,{ref:n})))})),ok=t.forwardRef(((e,n)=>{const{__scopeTabs:r,loop:o=!0,...i}=e,a=nk("TabsList",r),s=ek(r);return t.createElement(qS,c({asChild:!0},s,{orientation:a.orientation,dir:a.dir,loop:o}),t.createElement(S.div,c({role:"tablist","aria-orientation":a.orientation},i,{ref:n})))})),ik=t.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,disabled:i=!1,...a}=e,s=nk("TabsTrigger",r),l=ek(r),u=sk(s.baseId,o),d=lk(s.baseId,o),f=o===s.value;return t.createElement(YS,c({asChild:!0},l,{focusable:!i,active:f}),t.createElement(S.button,c({type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u},a,{ref:n,onMouseDown:y(e.onMouseDown,(e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(o)})),onKeyDown:y(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(o)})),onFocus:y(e.onFocus,(()=>{const e="manual"!==s.activationMode;f||i||!e||s.onValueChange(o)}))})))})),ak=t.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,forceMount:i,children:a,...s}=e,l=nk("TabsContent",r),u=sk(l.baseId,o),d=lk(l.baseId,o),f=o===l.value,p=t.useRef(f);return t.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1));return()=>cancelAnimationFrame(e)}),[]),t.createElement(R,{present:i||f},(({present:r})=>t.createElement(S.div,c({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:d,tabIndex:0},s,{ref:n,style:{...e.style,animationDuration:p.current?"0s":void 0}}),r&&a)))}));function sk(e,t){return`${e}-trigger-${t}`}function lk(e,t){return`${e}-content-${t}`}const ck=ok,uk=ik,dk=ak,fk=rk,pk=a.forwardRef((({className:t="",...n},r)=>e.jsx(ck,{ref:r,className:jt("inline-flex items-center justify-center rounded-md bg-surface-primary",t),...n})));pk.displayName=ck.displayName;const mk=a.forwardRef((({className:t="",...n},r)=>e.jsx(uk,{className:jt("inline-flex min-w-[100px] items-center justify-center rounded-[0.185rem] px-3 py-1.5 text-sm font-medium text-gray-700 transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-gray-800 data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-700 dark:data-[state=active]:text-gray-200",t),...n,ref:r})));mk.displayName=uk.displayName;const hk=a.forwardRef((({className:t="",...n},r)=>e.jsx(dk,{className:jt("mt-2 rounded-md p-6",t),...n,ref:r})));hk.displayName=dk.displayName;const gk=a.forwardRef((({CancelButton:t,LabelNode:n,label:r,onRemove:o,className:i="",labelClassName:a="",...s},l)=>e.jsxs("div",{ref:l,...s,className:jt("flex max-h-8 items-center overflow-y-hidden rounded-3xl border-2 border-green-600 bg-green-600/20 text-xs text-green-600 dark:text-white",i),children:[e.jsxs("div",{className:jt("ml-1 whitespace-pre-wrap px-2 py-1",a),children:[n?e.jsxs(e.Fragment,{children:[n," "]}):null,r]}),t||o&&e.jsx("button",{onClick:e=>{e.stopPropagation(),o(e)},className:"rounded-full bg-green-600/50","aria-label":`Remove ${r}`,children:e.jsx(jp,{className:"m-[1.5px] p-1"})})]})));gk.displayName="Tag";const vk=a.memo(gk),bk=a.forwardRef((({className:t="",...n},r)=>e.jsx("textarea",{className:jt("flex h-20 w-full resize-none rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),ref:r,...n})));bk.displayName="Textarea";var wk=t.useLayoutEffect,yk=function(e,t){"function"!=typeof e?e.current=t:e(t)},xk={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Ck=function(e){Object.keys(xk).forEach((function(t){e.style.setProperty(t,xk[t],"important")}))},Sk=null,kk=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var Ek=function(){},Rk=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Pk=!!document.documentElement.currentStyle,Nk=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=function(e,t){return e.reduce((function(e,n){return e[n]=t[n],e}),{})}(Rk,t),r=n.boxSizing;return""===r?null:(Pk&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})};function jk(e,t,n){var r,o,i=(r=n,o=a.useRef(r),wk((function(){o.current=r})),o);a.useLayoutEffect((function(){var n=function(e){return i.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var Mk=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Ak=function(e,n){var r=e.cacheMeasurements,o=e.maxRows,i=e.minRows,s=e.onChange,l=void 0===s?Ek:s,u=e.onHeightChange,d=void 0===u?Ek:u,f=Ny(e,Mk),p=void 0!==f.value,m=a.useRef(null),h=function(e,n){var r=t.useRef();return t.useCallback((function(t){e.current=t,r.current&&yk(r.current,null),r.current=n,n&&yk(n,t)}),[n])}(m,n),g=a.useRef(0),v=a.useRef(),b=function(){var e=m.current,t=r&&v.current?v.current:Nk(e);if(t){v.current=t;var n=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),Sk||((Sk=document.createElement("textarea")).setAttribute("tabindex","-1"),Sk.setAttribute("aria-hidden","true"),Ck(Sk)),null===Sk.parentNode&&document.body.appendChild(Sk);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;Sk.style[t]=a[t]})),Ck(Sk),Sk.value=t;var l=kk(Sk,e);Sk.value=t,l=kk(Sk,e),Sk.value="x";var c=Sk.scrollHeight-o,u=c*n;"border-box"===s&&(u=u+o+i),l=Math.max(u,l);var d=c*r;return"border-box"===s&&(d=d+o+i),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||"x",i,o),a=n[0],s=n[1];g.current!==a&&(g.current=a,e.style.setProperty("height",a+"px","important"),d(a,{rowHeight:s}))}};return a.useLayoutEffect(b),jk(window,"resize",b),function(e){jk(document.fonts,"loadingdone",e)}(b),a.createElement("textarea",c({},f,{onChange:function(e){p||b(),l(e)},ref:h}))},Ik=a.forwardRef(Ak);const Tk=t.forwardRef(((n,o)=>{const[,i]=t.useState(!1),a=r.useAtomValue(tw).toLowerCase();return t.useLayoutEffect((()=>i(!0)),[]),e.jsx(Ik,{dir:a,...n,ref:o})})),Ok=t.forwardRef(((e,n)=>t.createElement(S.span,c({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),Lk="ToastProvider",[Dk,Fk,_k]=w("Toast"),[Vk,zk]=u("Toast",[_k]),[Hk,Bk]=Vk(Lk),$k="toast.viewportPause",Wk="toast.viewportResume",Uk="Toast",Kk=t.forwardRef(((e,n)=>{const{forceMount:r,open:o,defaultOpen:i,onOpenChange:a,...s}=e,[l=!0,u]=C({prop:o,defaultProp:i,onChange:a});return t.createElement(R,{present:r||l},t.createElement(qk,c({open:l},s,{ref:n,onClose:()=>u(!1),onPause:x(e.onPause),onResume:x(e.onResume),onSwipeStart:y(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:y(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)})),onSwipeCancel:y(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:y(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),u(!1)}))})))})),[Gk,Xk]=Vk(Uk,{onClose(){}}),qk=t.forwardRef(((e,r)=>{const{__scopeToast:o,type:i="foreground",duration:a,open:s,onClose:l,onEscapeKeyDown:u,onPause:d,onResume:f,onSwipeStart:m,onSwipeMove:h,onSwipeCancel:g,onSwipeEnd:v,...b}=e,w=Bk(Uk,o),[C,k]=t.useState(null),E=p(r,(e=>k(e))),R=t.useRef(null),P=t.useRef(null),N=a||w.duration,j=t.useRef(0),M=t.useRef(N),A=t.useRef(0),{onToastAdd:I,onToastRemove:T}=w,O=x((()=>{var e;(null==C?void 0:C.contains(document.activeElement))&&(null===(e=w.viewport)||void 0===e||e.focus()),l()})),L=t.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(A.current),j.current=(new Date).getTime(),A.current=window.setTimeout(O,e))}),[O]);t.useEffect((()=>{const e=w.viewport;if(e){const t=()=>{L(M.current),null==f||f()},n=()=>{const e=(new Date).getTime()-j.current;M.current=M.current-e,window.clearTimeout(A.current),null==d||d()};return e.addEventListener($k,n),e.addEventListener(Wk,t),()=>{e.removeEventListener($k,n),e.removeEventListener(Wk,t)}}}),[w.viewport,N,d,f,L]),t.useEffect((()=>{s&&!w.isClosePausedRef.current&&L(N)}),[s,N,w.isClosePausedRef,L]),t.useEffect((()=>(I(),()=>T())),[I,T]);const D=t.useMemo((()=>C?tE(C):null),[C]);return w.viewport?t.createElement(t.Fragment,null,D&&t.createElement(Yk,{__scopeToast:o,role:"status","aria-live":"foreground"===i?"assertive":"polite","aria-atomic":!0},D),t.createElement(Gk,{scope:o,onClose:O},n.createPortal(t.createElement(Dk.ItemSlot,{scope:o},t.createElement(Tu,{asChild:!0,onEscapeKeyDown:y(u,(()=>{w.isFocusedToastEscapeKeyDownRef.current||O(),w.isFocusedToastEscapeKeyDownRef.current=!1}))},t.createElement(S.li,c({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":w.swipeDirection},b,{ref:E,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:y(e.onKeyDown,(e=>{"Escape"===e.key&&(null==u||u(e.nativeEvent),e.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,O()))})),onPointerDown:y(e.onPointerDown,(e=>{0===e.button&&(R.current={x:e.clientX,y:e.clientY})})),onPointerMove:y(e.onPointerMove,(e=>{if(!R.current)return;const t=e.clientX-R.current.x,n=e.clientY-R.current.y,r=Boolean(P.current),o=["left","right"].includes(w.swipeDirection),i=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,a=o?i(0,t):0,s=o?0:i(0,n),l="touch"===e.pointerType?10:2,c={x:a,y:s},u={originalEvent:e,delta:c};r?(P.current=c,nE("toast.swipeMove",h,u,{discrete:!1})):rE(c,w.swipeDirection,l)?(P.current=c,nE("toast.swipeStart",m,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(R.current=null)})),onPointerUp:y(e.onPointerUp,(e=>{const t=P.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),P.current=null,R.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};rE(t,w.swipeDirection,w.swipeThreshold)?nE("toast.swipeEnd",v,r,{discrete:!0}):nE("toast.swipeCancel",g,r,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})))),w.viewport))):null}));qk.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){return new Error(`Invalid prop \`type\` supplied to \`${Uk}\`. Expected \`foreground | background\`.`)}return null}};const Yk=e=>{const{__scopeToast:n,children:r,...o}=e,i=Bk(Uk,n),[a,s]=t.useState(!1),[l,c]=t.useState(!1);return function(e=(()=>{})){const t=x(e);E((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>s(!0))),t.useEffect((()=>{const e=window.setTimeout((()=>c(!0)),1e3);return()=>window.clearTimeout(e)}),[]),l?null:t.createElement(Wu,{asChild:!0},t.createElement(Ok,o,a&&t.createElement(t.Fragment,null,i.label," ",r)))},Zk=t.forwardRef(((e,n)=>{const{__scopeToast:r,...o}=e;return t.createElement(S.div,c({},o,{ref:n}))})),Qk=t.forwardRef(((e,n)=>{const{altText:r,...o}=e;return r?t.createElement(eE,{altText:r,asChild:!0},t.createElement(Jk,c({},o,{ref:n}))):null}));Qk.propTypes={altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")};const Jk=t.forwardRef(((e,n)=>{const{__scopeToast:r,...o}=e,i=Xk("ToastClose",r);return t.createElement(eE,{asChild:!0},t.createElement(S.button,c({type:"button"},o,{ref:n,onClick:y(e.onClick,i.onClose)})))})),eE=t.forwardRef(((e,n)=>{const{__scopeToast:r,altText:o,...i}=e;return t.createElement(S.div,c({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0},i,{ref:n}))}));function tE(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...tE(e))}})),t}function nE(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?k(o,i):o.dispatchEvent(i)}const rE=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return"left"===t||"right"===t?i&&r>n:!i&&o>n};const oE=Kk,iE=Zk;const aE=t.createContext({});function sE(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const lE="undefined"!=typeof window,cE=lE?t.useLayoutEffect:t.useEffect,uE=t.createContext(null);function dE(e,t){-1===e.indexOf(t)&&e.push(t)}function fE(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const pE=(e,t,n)=>n>t?t:n<e?e:n;let mE=()=>{};const hE={},gE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function vE(e){return"object"==typeof e&&null!==e}const bE=e=>/^0[^.\s]+$/u.test(e);function wE(e){let t;return()=>(void 0===t&&(t=e()),t)}const yE=e=>e,xE=(e,t)=>n=>t(e(n)),CE=(...e)=>e.reduce(xE),SE=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r};class kE{constructor(){this.subscriptions=[]}add(e){return dE(this.subscriptions,e),()=>fE(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const EE=e=>1e3*e,RE=e=>e/1e3;function PE(e,t){return t?e*(1e3/t):0}const NE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,jE=1e-7,ME=12;function AE(e,t,n,r){if(e===t&&n===r)return yE;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=NE(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>jE&&++s<ME);return a}(t,0,1,e,n);return e=>0===e||1===e?e:NE(o(e),t,r)}const IE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,TE=e=>t=>1-e(1-t),OE=AE(.33,1.53,.69,.99),LE=TE(OE),DE=IE(LE),FE=e=>(e*=2)<1?.5*LE(e):.5*(2-Math.pow(2,-10*(e-1))),_E=e=>1-Math.sin(Math.acos(e)),VE=TE(_E),zE=IE(_E),HE=AE(.42,0,1,1),BE=AE(0,0,.58,1),$E=AE(.42,0,.58,1),WE=e=>Array.isArray(e)&&"number"==typeof e[0],UE={linear:yE,easeIn:HE,easeInOut:$E,easeOut:BE,circIn:_E,circInOut:zE,circOut:VE,backIn:LE,backInOut:DE,backOut:OE,anticipate:FE},KE=e=>{if(WE(e)){mE(4===e.length);const[t,n,r,o]=e;return AE(t,n,r,o)}return"string"==typeof e?UE[e]:e},GE=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function XE(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=GE.reduce(((e,t)=>(e[t]=function(e,t){let n=new Set,r=new Set,o=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(t){a.has(t)&&(c.schedule(t),e()),t(s)}const c={schedule:(e,t=!1,i=!1)=>{const s=i&&o?n:r;return t&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{s=e,o?i=!0:(o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,i&&(i=!1,c.process(e)))}};return c}(i),e)),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=a,h=()=>{const i=hE.useManualTiming?o.timestamp:performance.now();n=!1,hE.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1)),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),p.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))};return{schedule:GE.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(h)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t<GE.length;t++)a[GE[t]].cancel(e)},state:o,steps:a}}const{schedule:qE,cancel:YE,state:ZE,steps:QE}=XE("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:yE,!0);let JE;function eR(){JE=void 0}const tR={now:()=>(void 0===JE&&tR.set(ZE.isProcessing||hE.useManualTiming?ZE.timestamp:performance.now()),JE),set:e=>{JE=e,queueMicrotask(eR)}},nR=e=>t=>"string"==typeof t&&t.startsWith(e),rR=nR("--"),oR=nR("var(--"),iR=e=>!!oR(e)&&aR.test(e.split("/*")[0].trim()),aR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,sR={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},lR={...sR,transform:e=>pE(0,1,e)},cR={...sR,default:1},uR=e=>Math.round(1e5*e)/1e5,dR=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const fR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pR=(e,t)=>n=>Boolean("string"==typeof n&&fR.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),mR=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,a,s]=r.match(dR);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},hR={...sR,transform:e=>Math.round((e=>pE(0,255,e))(e))},gR={test:pR("rgb","red"),parse:mR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+hR.transform(e)+", "+hR.transform(t)+", "+hR.transform(n)+", "+uR(lR.transform(r))+")"};const vR={test:pR("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:gR.transform},bR=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),wR=bR("deg"),yR=bR("%"),xR=bR("px"),CR=bR("vh"),SR=bR("vw"),kR=(()=>({...yR,parse:e=>yR.parse(e)/100,transform:e=>yR.transform(100*e)}))(),ER={test:pR("hsl","hue"),parse:mR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+yR.transform(uR(t))+", "+yR.transform(uR(n))+", "+uR(lR.transform(r))+")"},RR={test:e=>gR.test(e)||vR.test(e)||ER.test(e),parse:e=>gR.test(e)?gR.parse(e):ER.test(e)?ER.parse(e):vR.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?gR.transform(e):ER.transform(e),getAnimatableNone:e=>{const t=RR.parse(e);return t.alpha=0,RR.transform(t)}},PR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const NR="number",jR="color",MR="var",AR="var(",IR="${}",TR=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function OR(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(TR,(e=>(RR.test(e)?(r.color.push(i),o.push(jR),n.push(RR.parse(e))):e.startsWith(AR)?(r.var.push(i),o.push(MR),n.push(e)):(r.number.push(i),o.push(NR),n.push(parseFloat(e))),++i,IR))).split(IR);return{values:n,split:a,indexes:r,types:o}}function LR(e){return OR(e).values}function DR(e){const{split:t,types:n}=OR(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===NR?uR(e[i]):t===jR?RR.transform(e[i]):e[i]}return o}}const FR=e=>"number"==typeof e?0:RR.test(e)?RR.getAnimatableNone(e):e;const _R={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(dR)?.length||0)+(e.match(PR)?.length||0)>0},parse:LR,createTransformer:DR,getAnimatableNone:function(e){const t=LR(e);return DR(e)(t.map(FR))}};function VR(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zR(e,t){return n=>n>0?t:e}const HR=(e,t,n)=>e+(t-e)*n,BR=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},$R=[vR,gR,ER];function WR(e){const t=(e=>$R.find((t=>t.test(e))))(e);if(!Boolean(t))return!1;let n=t.parse(e);return t===ER&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=VR(s,r,e+1/3),i=VR(s,r,e),a=VR(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const UR=(e,t)=>{const n=WR(e),r=WR(t);if(!n||!r)return zR(e,t);const o={...n};return e=>(o.red=BR(n.red,r.red,e),o.green=BR(n.green,r.green,e),o.blue=BR(n.blue,r.blue,e),o.alpha=HR(n.alpha,r.alpha,e),gR.transform(o))},KR=new Set(["none","hidden"]);function GR(e,t){return n=>HR(e,t,n)}function XR(e){return"number"==typeof e?GR:"string"==typeof e?iR(e)?zR:RR.test(e)?UR:ZR:Array.isArray(e)?qR:"object"==typeof e?RR.test(e)?UR:YR:zR}function qR(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>XR(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function YR(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=XR(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const ZR=(e,t)=>{const n=_R.createTransformer(t),r=OR(e),o=OR(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?KR.has(e)&&!o.values.length||KR.has(t)&&!r.values.length?function(e,t){return KR.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):CE(qR(function(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],a=e.indexes[i][r[i]],s=e.values[a]??0;n[o]=s,r[i]++}return n}(r,o),o.values),n):zR(e,t)};function QR(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return HR(e,t,n);return XR(e)(e,t)}const JR=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>qE.update(t,e),stop:()=>YE(t),now:()=>ZE.isProcessing?ZE.timestamp:tR.now()}},eP=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=Math.round(1e4*e(t/(o-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},tP=2e4;function nP(e){let t=0;let n=e.next(t);for(;!n.done&&t<tP;)t+=50,n=e.next(t);return t>=tP?1/0:t}const rP=5;function oP(e,t,n){const r=Math.max(t-rP,0);return PE(n-e(r),t-r)}const iP={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},aP=.001;function sP({duration:e=iP.duration,bounce:t=iP.bounce,velocity:n=iP.velocity,mass:r=iP.mass}){let o,i,a=1-t;a=pE(iP.minDamping,iP.maxDamping,a),e=pE(iP.minDuration,iP.maxDuration,RE(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=cP(t,a),l=Math.exp(-o);return aP-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=cP(Math.pow(t,2),a);return(-o(t)+aP>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<lP;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=EE(e),isNaN(s))return{stiffness:iP.stiffness,damping:iP.damping,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const lP=12;function cP(e,t){return e*Math.sqrt(1-t*t)}const uP=["duration","bounce"],dP=["stiffness","damping","mass"];function fP(e,t){return t.some((t=>void 0!==e[t]))}function pP(e=iP.visualDuration,t=iP.bounce){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:iP.velocity,stiffness:iP.stiffness,damping:iP.damping,mass:iP.mass,isResolvedFromDuration:!1,...e};if(!fP(e,dP)&&fP(e,uP))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*pE(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:iP.mass,stiffness:o,damping:i}}else{const n=sP(e);t={...t,...n,mass:iP.mass},t.isResolvedFromDuration=!0}return t}({...n,velocity:-RE(n.velocity||0)}),m=f||0,h=c/(2*Math.sqrt(l*u)),g=a-i,v=RE(Math.sqrt(l/u)),b=Math.abs(g)<5;let w;if(r||(r=b?iP.restSpeed.granular:iP.restSpeed.default),o||(o=b?iP.restDelta.granular:iP.restDelta.default),h<1){const e=cP(v,h);w=t=>{const n=Math.exp(-h*v*t);return a-n*((m+h*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===h)w=e=>a-Math.exp(-v*e)*(g+(m+v*g)*e);else{const e=v*Math.sqrt(h*h-1);w=t=>{const n=Math.exp(-h*v*t),r=Math.min(e*t,300);return a-n*((m+h*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const y={calculatedDuration:p&&d||null,next:e=>{const t=w(e);if(p)s.done=e>=d;else{let n=0===e?m:0;h<1&&(n=0===e?EE(m):oP(w,e,t));const i=Math.abs(n)<=r,l=Math.abs(a-t)<=o;s.done=i&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(nP(y),tP),t=eP((t=>y.next(e*t).value),e,30);return e+"ms "+t},toTransition:()=>{}};return y}function mP({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=n*t;const h=d+m,g=void 0===a?h:a(h);g!==h&&(m=g-d);const v=e=>-m*Math.exp(-e/r),b=e=>g+v(e),w=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let y,x;const C=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(f.value)&&(y=e,x=pP({keyframes:[f.value,p(f.value)],velocity:oP(b,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==y||(t=!0,w(e),C(e)),void 0!==y&&e>=y?x.next(e-y):(!t&&w(e),f)}}}function hP(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(mE(i===t.length),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||hE.mix||QR,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||yE:t;i=CE(e,i)}r.push(i)}return r}(t,r,o),l=s.length,c=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=SE(e[r],e[r+1],n);return s[r](o)};return n?t=>c(pE(e[0],e[i-1],t)):c}function gP(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=SE(0,t,r);e.push(HR(n,1,o))}}(t,e.length-1),t}function vP({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(KE):KE(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:gP(t),e),s=hP(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||$E)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}pP.applyToOptions=e=>{const t=function(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(nP(r),tP);return{type:"keyframes",ease:e=>r.next(o*e).value/t,duration:RE(o)}}(e,100,pP);return e.ease=t.ease,e.duration=EE(t.duration),e.type="keyframes",e};const bP=e=>null!==e;function wP(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(bP),a=o<0||t&&"loop"!==n&&t%2==1?0:i.length-1;return a&&void 0!==r?r:i[a]}const yP={decay:mP,inertia:mP,tween:vP,keyframes:vP,spring:pP};function xP(e){"string"==typeof e.type&&(e.type=yP[e.type])}class CP{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise((e=>{this.resolve=e}))}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const SP=e=>e/100;class kP extends CP{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==tR.now()&&this.tick(tR.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;xP(e);const{type:t=vP,repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=e;let{keyframes:a}=e;const s=t||vP;s!==vP&&"number"!=typeof a[0]&&(this.mixKeyframes=CE(SP,QR(a[0],a[1])),a=[0,100]);const l=s({...e,keyframes:a});"mirror"===o&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-i})),null===l.calculatedDuration&&(l.calculatedDuration=nP(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,w=n;if(u){const e=Math.min(this.currentTime,r)/a;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,u+1);Boolean(t%2)&&("reverse"===d?(n=1-n,f&&(n-=f/a)):"mirror"===d&&(w=i)),b=pE(0,1,n)*a}const y=v?{done:!1,value:c[0]}:w.next(b);o&&(y.value=o(y.value));let{done:x}=y;v||null===s||(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return C&&p!==mP&&(y.value=wP(c,this.options,h,this.speed)),m&&m(y.value),C&&this.finish(),y}then(e,t){return this.finished.then(e,t)}get duration(){return RE(this.calculatedDuration)}get time(){return RE(this.currentTime)}set time(e){e=EE(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(tR.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=RE(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=JR,startTime:t}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tR.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}const EP=e=>180*e/Math.PI,RP=e=>{const t=EP(Math.atan2(e[1],e[0]));return NP(t)},PP={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:RP,rotateZ:RP,skewX:e=>EP(Math.atan(e[1])),skewY:e=>EP(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},NP=e=>((e%=360)<0&&(e+=360),e),jP=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),MP=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),AP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:jP,scaleY:MP,scale:e=>(jP(e)+MP(e))/2,rotateX:e=>NP(EP(Math.atan2(e[6],e[5]))),rotateY:e=>NP(EP(Math.atan2(-e[2],e[0]))),rotateZ:RP,rotate:RP,skewX:e=>EP(Math.atan(e[4])),skewY:e=>EP(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function IP(e){return e.includes("scale")?1:0}function TP(e,t){if(!e||"none"===e)return IP(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=AP,o=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=PP,o=t}if(!o)return IP(t);const i=r[t],a=o[1].split(",").map(OP);return"function"==typeof i?i(a):a[i]}function OP(e){return parseFloat(e.trim())}const LP=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],DP=(()=>new Set(LP))(),FP=e=>e===sR||e===xR,_P=new Set(["x","y","z"]),VP=LP.filter((e=>!_P.has(e)));const zP={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>TP(t,"x"),y:(e,{transform:t})=>TP(t,"y")};zP.translateX=zP.x,zP.translateY=zP.y;const HP=new Set;let BP=!1,$P=!1,WP=!1;function UP(){if($P){const e=Array.from(HP).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return VP.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{e.getValue(t)?.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}$P=!1,BP=!1,HP.forEach((e=>e.complete(WP))),HP.clear()}function KP(){HP.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&($P=!0)}))}class GP{constructor(e,t,n,r,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(HP.add(this),BP||(BP=!0,qE.read(KP),qE.resolveKeyframes(UP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const o=r?.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),HP.delete(this)}cancel(){"scheduled"===this.state&&(HP.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const XP=wE((()=>void 0!==window.ScrollTimeline)),qP={};function YP(e,t){const n=wE(e);return()=>qP[t]??n()}const ZP=YP((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),QP=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,JP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:QP([0,.65,.55,1]),circOut:QP([.55,0,1,.45]),backIn:QP([.31,.01,.66,-.59]),backOut:QP([.33,1.53,.69,.99])};function eN(e,t){return e?"function"==typeof e?ZP()?eP(e,t):"ease-out":WE(e)?QP(e):Array.isArray(e)?e.map((e=>eN(e,t)||JP.easeOut)):JP[e]:void 0}function tN(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=eN(s,o);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"};c&&(f.pseudoElement=c);return e.animate(u,f)}function nN(e){return"function"==typeof e&&"applyToOptions"in e}class rN extends CP{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=Boolean(o),this.allowFlatten=i,this.options=e,mE("string"!=typeof e.type);const l=function({type:e,...t}){return nN(e)&&ZP()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=tN(t,n,r,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const e=wP(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return RE(Number(e))}get time(){return RE(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=EE(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&XP()?(this.animation.timeline=e,yE):t(this)}}const oN={anticipate:FE,backInOut:DE,circInOut:zE};function iN(e){"string"==typeof e.ease&&e.ease in oN&&(e.ease=oN[e.ease])}class aN extends rN{constructor(e){iN(e),xP(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:o,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const a=new kP({...i,autoplay:!1}),s=EE(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}const sN=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!_R.test(e)&&"0"!==e||e.startsWith("url(")));const lN=new Set(["opacity","clipPath","filter","transform"]),cN=wE((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class uN extends CP{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",keyframes:a,name:s,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tR.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,name:s,motionValue:l,element:c,...u},f=c?.KeyframeResolver||GP;this.keyframeResolver=new f(a,((e,t,n)=>this.onKeyframesResolved(e,t,d,!n)),s,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:o,type:i,velocity:a,delay:s,isHandoff:l,onUpdate:c}=n;this.resolvedAt=tR.now(),function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=sN(o,t),s=sN(i,t);return!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||nN(n))&&r)}(e,o,i,a)||(!hE.instantAnimations&&s||c?.(wP(e,n,t)),e[0]=e[e.length-1],n.duration=0,n.repeat=0);const u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e,s=t?.owner?.current;if(!(s instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return cN()&&n&&lN.has(n)&&("transform"!==n||!c)&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==a}(u)?new aN({...u,element:u.motionValue.owner.current}):new kP(u);d.finished.then((()=>this.notifyFinished())).catch(yE),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then((()=>{}))}get animation(){return this._animation||(this.keyframeResolver?.resume(),WP=!0,KP(),UP(),WP=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const dN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fN(e,t,n=1){const[r,o]=function(e){const t=dN.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return gE(e)?parseFloat(e):e}return iR(o)?fN(o,t,n+1):o}function pN(e,t){return e?.[t]??e?.default??e}const mN=new Set(["width","height","top","left","right","bottom",...LP]),hN=e=>t=>t.test(e),gN=[sR,xR,yR,wR,SR,CR,{test:e=>"auto"===e,parse:e=>e}],vN=e=>gN.find(hN(e));const bN=new Set(["brightness","contrast","saturate","opacity"]);function wN(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(dR)||[];if(!r)return e;const o=n.replace(r,"");let i=bN.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const yN=/\b([a-z-]*)\(.*?\)/gu,xN={..._R,getAnimatableNone:e=>{const t=e.match(yN);return t?t.map(wN).join(" "):e}},CN={...sR,transform:Math.round},SN={borderWidth:xR,borderTopWidth:xR,borderRightWidth:xR,borderBottomWidth:xR,borderLeftWidth:xR,borderRadius:xR,radius:xR,borderTopLeftRadius:xR,borderTopRightRadius:xR,borderBottomRightRadius:xR,borderBottomLeftRadius:xR,width:xR,maxWidth:xR,height:xR,maxHeight:xR,top:xR,right:xR,bottom:xR,left:xR,padding:xR,paddingTop:xR,paddingRight:xR,paddingBottom:xR,paddingLeft:xR,margin:xR,marginTop:xR,marginRight:xR,marginBottom:xR,marginLeft:xR,backgroundPositionX:xR,backgroundPositionY:xR,...{rotate:wR,rotateX:wR,rotateY:wR,rotateZ:wR,scale:cR,scaleX:cR,scaleY:cR,scaleZ:cR,skew:wR,skewX:wR,skewY:wR,distance:xR,translateX:xR,translateY:xR,translateZ:xR,x:xR,y:xR,z:xR,perspective:xR,transformPerspective:xR,opacity:lR,originX:kR,originY:kR,originZ:xR},zIndex:CN,fillOpacity:lR,strokeOpacity:lR,numOctaves:CN},kN={...SN,color:RR,backgroundColor:RR,outlineColor:RR,fill:RR,stroke:RR,borderColor:RR,borderTopColor:RR,borderRightColor:RR,borderBottomColor:RR,borderLeftColor:RR,filter:xN,WebkitFilter:xN},EN=e=>kN[e];function RN(e,t){let n=EN(e);return n!==xN&&(n=_R),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const PN=new Set(["auto","none","0"]);class NN extends GP{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),iR(r))){const o=fN(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!mN.has(n)||2!==e.length)return;const[r,o]=e,i=vN(r),a=vN(o);if(i!==a)if(FP(i)&&FP(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else zP[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||bE(r)))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!PN.has(t)&&OR(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=RN(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=zP[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const o=n.length-1,i=n[o];n[o]=zP[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach((([t,n])=>{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}const jN=(e,t)=>t&&"number"==typeof e?t.transform(e):e;function MN(e){return vE(e)&&"offsetHeight"in e}class AN{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=tR.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const e of this.dependents)e.dirty();t&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=tR.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new kE);const n=this.events[e].add(t);return"change"===e?()=>{n(),qE.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=tR.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return PE(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function IN(e,t){return new AN(e,t)}const{schedule:TN}=XE(queueMicrotask,!1),ON={x:!1,y:!1};function LN(){return ON.x||ON.y}function DN(e,t){const n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document;const r=n?.[e]??t.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function FN(e){return!("touch"===e.pointerType||LN())}const _N=(e,t)=>!!t&&(e===t||_N(e,t.parentElement)),VN=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,zN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const HN=new WeakSet;function BN(e){return t=>{"Enter"===t.key&&e(t)}}function $N(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function WN(e){return VN(e)&&!LN()}function UN(e,t,n={}){const[r,o,i]=DN(e,n),a=e=>{const r=e.currentTarget;if(!WN(e))return;HN.add(r);const i=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),HN.has(r)&&HN.delete(r),WN(e)&&"function"==typeof i&&i(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||_N(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),MN(e)&&(e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=BN((()=>{if(HN.has(n))return;$N(n,"down");const e=BN((()=>{$N(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>$N(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o))),t=e,zN.has(t.tagName)||-1!==t.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))})),i}function KN(e){return vE(e)&&"ownerSVGElement"in e}const GN=e=>Boolean(e&&e.getVelocity),XN=[...gN,RR,_R],qN=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class YN extends a.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=t.offsetParent,n=MN(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ZN({children:n,isPresent:r,anchorX:o,root:i}){const s=t.useId(),l=t.useRef(null),c=t.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=t.useContext(qN);return t.useInsertionEffect((()=>{const{width:e,height:t,top:n,left:a,right:d}=c.current;if(r||!l.current||!e||!t)return;const f="left"===o?`left: ${a}`:`right: ${d}`;l.current.dataset.motionPopId=s;const p=document.createElement("style");u&&(p.nonce=u);const m=i??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`\n [data-motion-pop-id="${s}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n ${f}px !important;\n top: ${n}px !important;\n }\n `),()=>{m.removeChild(p),m.contains(p)&&m.removeChild(p)}}),[r]),e.jsx(YN,{isPresent:r,childRef:l,sizeRef:c,children:a.cloneElement(n,{ref:l})})}const QN=({children:n,initial:r,isPresent:o,onExitComplete:i,custom:s,presenceAffectsLayout:l,mode:c,anchorX:u,root:d})=>{const f=sE(JN),p=t.useId();let m=!0,h=t.useMemo((()=>(m=!1,{id:p,initial:r,isPresent:o,custom:s,onExitComplete:e=>{f.set(e,!0);for(const e of f.values())if(!e)return;i&&i()},register:e=>(f.set(e,!1),()=>f.delete(e))})),[o,f,i]);return l&&m&&(h={...h}),t.useMemo((()=>{f.forEach(((e,t)=>f.set(t,!1)))}),[o]),a.useEffect((()=>{!o&&!f.size&&i&&i()}),[o]),"popLayout"===c&&(n=e.jsx(ZN,{isPresent:o,anchorX:u,root:d,children:n})),e.jsx(uE.Provider,{value:h,children:n})};function JN(){return new Map}function ej(e=!0){const n=t.useContext(uE);if(null===n)return[!0,null];const{isPresent:r,onExitComplete:o,register:i}=n,a=t.useId();t.useEffect((()=>{if(e)return i(a)}),[e]);const s=t.useCallback((()=>e&&o&&o(a)),[a,o,e]);return!r&&o?[!1,s]:[!0]}const tj=e=>e.key||"";function nj(e){const n=[];return t.Children.forEach(e,(e=>{t.isValidElement(e)&&n.push(e)})),n}const rj=({children:n,custom:r,initial:o=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:s="sync",propagate:l=!1,anchorX:c="left",root:u})=>{const[d,f]=ej(l),p=t.useMemo((()=>nj(n)),[n]),m=l&&!d?[]:p.map(tj),h=t.useRef(!0),g=t.useRef(p),v=sE((()=>new Map)),[b,w]=t.useState(p),[y,x]=t.useState(p);cE((()=>{h.current=!1,g.current=p;for(let e=0;e<y.length;e++){const t=tj(y[e]);m.includes(t)?v.delete(t):!0!==v.get(t)&&v.set(t,!1)}}),[y,m.length,m.join("-")]);const C=[];if(p!==b){let e=[...p];for(let t=0;t<y.length;t++){const n=y[t],r=tj(n);m.includes(r)||(e.splice(t,0,n),C.push(n))}return"wait"===s&&C.length&&(e=C),x(nj(e)),w(p),null}const{forceRender:S}=t.useContext(aE);return e.jsx(e.Fragment,{children:y.map((t=>{const n=tj(t),b=!(l&&!d)&&(p===y||m.includes(n));return e.jsx(QN,{isPresent:b,initial:!(h.current&&!o)&&void 0,custom:r,presenceAffectsLayout:a,mode:s,root:u,onExitComplete:b?void 0:()=>{if(!v.has(n))return;v.set(n,!0);let e=!0;v.forEach((t=>{t||(e=!1)})),e&&(S?.(),x(g.current),l&&f?.(),i&&i())},anchorX:c,children:t},n)}))})},oj=t.createContext({strict:!1}),ij={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},aj={};for(const e in ij)aj[e]={isEnabled:t=>ij[e].some((e=>!!t[e]))};const sj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function lj(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||sj.has(e)}let cj=e=>!lj(e);try{"function"==typeof(uj=require("@emotion/is-prop-valid").default)&&(cj=e=>e.startsWith("on")?!lj(e):uj(e))}catch{}var uj;const dj=t.createContext({});function fj(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function pj(e){return"string"==typeof e||Array.isArray(e)}const mj=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hj=["initial",...mj];function gj(e){return fj(e.animate)||hj.some((t=>pj(e[t])))}function vj(e){return Boolean(gj(e)||e.variants)}function bj(e){const{initial:n,animate:r}=function(e,t){if(gj(e)){const{initial:t,animate:n}=e;return{initial:!1===t||pj(t)?t:void 0,animate:pj(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(dj));return t.useMemo((()=>({initial:n,animate:r})),[wj(n),wj(r)])}function wj(e){return Array.isArray(e)?e.join(" "):e}const yj={};function xj(e,{layout:t,layoutId:n}){return DP.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!yj[e]||"opacity"===e)}const Cj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sj=LP.length;function kj(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(DP.has(e))a=!0;else if(rR(e))o[e]=n;else{const t=jN(n,SN[e]);e.startsWith("origin")?(s=!0,i[e]=t):r[e]=t}}if(t.transform||(a||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<Sj;i++){const a=LP[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=jN(s,SN[a]);l||(o=!1,r+=`${Cj[a]||a}(${e}) `),n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const Ej=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Rj(e,t,n){for(const r in t)GN(t[r])||xj(r,n)||(e[r]=t[r])}function Pj(e,n){const r={};return Rj(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},n){return t.useMemo((()=>{const t=Ej();return kj(t,n,e),Object.assign({},t.vars,t.style)}),[n])}(e,n)),r}function Nj(e,t){const n={},r=Pj(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const jj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Mj={offset:"strokeDashoffset",array:"strokeDasharray"};function Aj(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...s},l,c,u){if(kj(e,s,c),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==o&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?jj:Mj;e[i.offset]=xR.transform(-r);const a=xR.transform(t),s=xR.transform(n);e[i.array]=`${a} ${s}`}(d,o,i,a,!1)}const Ij=()=>({...Ej(),attrs:{}}),Tj=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Oj(e,n,r,o){const i=t.useMemo((()=>{const t=Ij();return Aj(t,n,Tj(o),e.transformTemplate,e.style),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Rj(t,e.style,e),i.style={...t,...i.style}}return i}const Lj=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Dj(e){return"string"==typeof e&&!e.includes("-")&&!!(Lj.indexOf(e)>-1||/[A-Z]/u.test(e))}function Fj(e,n,r,{latestValues:o},i,a=!1){const s=(Dj(e)?Oj:Nj)(n,o,i,e),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(cj(o)||!0===n&&lj(o)||!t&&!lj(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof e,a),c=e!==t.Fragment?{...l,...s,ref:r}:{},{children:u}=n,d=t.useMemo((()=>GN(u)?u.get():u),[u]);return t.createElement(e,{...c,children:d})}function _j(e){const t=[{},{}];return e?.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function Vj(e,t,n,r){if("function"==typeof t){const[o,i]=_j(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=_j(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function zj(e){return GN(e)?e.get():e}function Hj(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=zj(i[e]);let{initial:a,animate:s}=e;const l=gj(e),c=vj(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!fj(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=Vj(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const Bj=e=>(n,r)=>{const o=t.useContext(dj),i=t.useContext(uE),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Hj(n,r,o,e),renderState:t()}}(e,n,o,i);return r?a():sE(a)};function $j(e,t,n){const{style:r}=e,o={};for(const i in r)(GN(r[i])||t.style&&GN(t.style[i])||xj(i,e)||void 0!==n?.getValue(i)?.liveStyle)&&(o[i]=r[i]);return o}const Wj=Bj({scrapeMotionValuesFromProps:$j,createRenderState:Ej});function Uj(e,t,n){const r=$j(e,t,n);for(const n in e)if(GN(e[n])||GN(t[n])){r[-1!==LP.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}const Kj=Bj({scrapeMotionValuesFromProps:Uj,createRenderState:Ij}),Gj=Symbol.for("motionComponentSymbol");function Xj(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function qj(e,n,r){return t.useCallback((t=>{t&&e.onMount&&e.onMount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):Xj(r)&&(r.current=t))}),[n])}const Yj=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Zj="data-"+Yj("framerAppearId"),Qj=t.createContext({});function Jj(e,n,r,o,i){const{visualElement:a}=t.useContext(dj),s=t.useContext(oj),l=t.useContext(uE),c=t.useContext(qN).reducedMotion,u=t.useRef(null);o=o||s.renderer,!u.current&&o&&(u.current=o(e,{visualState:n,parent:a,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));const d=u.current,f=t.useContext(Qj);!d||d.projection||!i||"html"!==d.type&&"svg"!==d.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:eM(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&Xj(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}(u.current,r,i,f);const p=t.useRef(!1);t.useInsertionEffect((()=>{d&&p.current&&d.update(r,l)}));const m=r[Zj],h=t.useRef(Boolean(m)&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return cE((()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),h.current&&d.animationState&&d.animationState.animateChanges())})),t.useEffect((()=>{d&&(!h.current&&d.animationState&&d.animationState.animateChanges(),h.current&&(queueMicrotask((()=>{window.MotionHandoffMarkAsComplete?.(m)})),h.current=!1))})),d}function eM(e){if(e)return!1!==e.options.allowProjection?e.projection:eM(e.parent)}function tM(n,{forwardMotionProps:r=!1}={},o,i){o&&function(e){for(const t in e)aj[t]={...aj[t],...e[t]}}(o);const a=Dj(n)?Kj:Wj;function s(o,s){let l;const c={...t.useContext(qN),...o,layoutId:nM(o)},{isStatic:u}=c,d=bj(o),f=a(o,u);if(!u&&lE){t.useContext(oj).strict;const e=function(e){const{drag:t,layout:n}=aj;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(c);l=e.MeasureLayout,d.visualElement=Jj(n,f,c,i,e.ProjectionNode)}return e.jsxs(dj.Provider,{value:d,children:[l&&d.visualElement?e.jsx(l,{visualElement:d.visualElement,...c}):null,Fj(n,o,qj(f,d.visualElement,s),f,u,r)]})}s.displayName=`motion.${"string"==typeof n?n:`create(${n.displayName??n.name??""})`}`;const l=t.forwardRef(s);return l[Gj]=n,l}function nM({layoutId:e}){const n=t.useContext(aE).id;return n&&void 0!==e?n+"-"+e:e}function rM(e,t){if("undefined"==typeof Proxy)return tM;const n=new Map,r=(n,r)=>tM(n,r,e,t);return new Proxy(((e,t)=>r(e,t)),{get:(o,i)=>"create"===i?r:(n.has(i)||n.set(i,tM(i,void 0,e,t)),n.get(i))})}function oM({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function iM(e){return void 0===e||1===e}function aM({scale:e,scaleX:t,scaleY:n}){return!iM(e)||!iM(t)||!iM(n)}function sM(e){return aM(e)||lM(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function lM(e){return cM(e.x)||cM(e.y)}function cM(e){return e&&"0%"!==e}function uM(e,t,n){return n+t*(e-n)}function dM(e,t,n,r,o){return void 0!==o&&(e=uM(e,o,r)),uM(e,n,r)+t}function fM(e,t=0,n=1,r,o){e.min=dM(e.min,t,n,r,o),e.max=dM(e.max,t,n,r,o)}function pM(e,{x:t,y:n}){fM(e.x,t.translate,t.scale,t.originPoint),fM(e.y,n.translate,n.scale,n.originPoint)}const mM=.999999999999,hM=1.0000000000001;function gM(e,t){e.min=e.min+t,e.max=e.max+t}function vM(e,t,n,r,o=.5){fM(e,t,n,HR(e.min,e.max,o),r)}function bM(e,t){vM(e.x,t.x,t.scaleX,t.scale,t.originX),vM(e.y,t.y,t.scaleY,t.scale,t.originY)}function wM(e,t){return oM(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const yM=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),xM=()=>({x:{min:0,max:0},y:{min:0,max:0}}),CM={current:null},SM={current:!1};const kM=new WeakMap;const EM=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class RM{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=GP,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=tR.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,qE.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=gj(t),this.isVariantNode=vj(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==s[e]&&GN(t)&&t.set(s[e],!1)}}mount(e){this.current=e,kM.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),SM.current||function(){if(SM.current=!0,lE)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>CM.current=e.matches;e.addEventListener("change",t),t()}else CM.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||CM.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),YE(this.notifyUpdate),YE(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=DP.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&qE.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in aj){const t=aj[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xM()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<EM.length;t++){const n=EM[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(GN(o))e.addValue(r,o);else if(GN(i))e.addValue(r,IN(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,IN(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=IN(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(gE(n)||bE(n))?n=parseFloat(n):!(e=>XN.find(hN(e)))(n)&&_R.test(t)&&(n=RN(e,t)),this.setBaseTarget(e,GN(n)?n.get():n)),GN(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if("string"==typeof t||"object"==typeof t){const r=Vj(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&void 0!==n)return n;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||GN(r)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new kE),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){TN.render(this.render)}}class PM extends RM{constructor(){super(...arguments),this.KeyframeResolver=NN}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;GN(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}function NM(e,{style:t,vars:n},r,o){const i=e.style;let a;for(a in t)i[a]=t[a];for(a in o?.applyProjectionStyles(i,r),n)i.setProperty(a,n[a])}class jM extends PM{constructor(){super(...arguments),this.type="html",this.renderInstance=NM}readValueFromInstance(e,t){if(DP.has(t))return this.projection?.isProjecting?IP(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return TP(n,t)})(e,t);{const r=(n=e,window.getComputedStyle(n)),o=(rR(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return wM(e,t)}build(e,t,n){kj(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return $j(e,t,n)}}const MM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class AM extends PM{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xM}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(DP.has(t)){const e=EN(t);return e&&e.default||0}return t=MM.has(t)?t:Yj(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Uj(e,t,n)}build(e,t,n){Aj(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){NM(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(MM.has(n)?n:Yj(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=Tj(e.tagName),super.mount(e)}}const IM=(e,n)=>Dj(e)?new AM(n):new jM(n,{allowProjection:e!==t.Fragment});function TM(e,t,n){const r=e.getProps();return Vj(r,t,void 0!==n?n:r.custom,e)}const OM=e=>Array.isArray(e);function LM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,IN(n))}function DM(e){return OM(e)?e[e.length-1]||0:e}function FM(e,t){const n=e.getValue("willChange");if(r=n,Boolean(GN(r)&&r.add))return n.add(t);if(!n&&hE.WillChange){const n=new hE.WillChange("auto");e.addValue("willChange",n),n.add(t)}var r}function _M(e){return e.props[Zj]}const VM=e=>null!==e;const zM={type:"spring",stiffness:500,damping:25,restSpeed:10},HM={type:"keyframes",duration:.8},BM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$M=(e,{keyframes:t})=>t.length>2?HM:DP.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:zM:BM;const WM=(e,t,n,r={},o,i)=>a=>{const s=pN(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=EE(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||Object.assign(u,$M(e,u)),u.duration&&(u.duration=EE(u.duration)),u.repeatDelay&&(u.repeatDelay=EE(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),(hE.instantAnimations||hE.skipAnimations)&&(d=!0,u.duration=0,u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!i&&void 0!==t.get()){const e=function(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(VM);return o[t&&"loop"!==n&&t%2==1?0:o.length-1]}(u.keyframes,s);if(void 0!==e)return void qE.update((()=>{u.onUpdate(e),u.onComplete()}))}return s.isSync?new kP(u):new uN(u)};function UM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function KM(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=t;r&&(i=r);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t,e.latestValues[t]??null),o=s[t];if(void 0===o||c&&UM(c,t))continue;const a={delay:n,...pN(i||{},t)},u=r.get();if(void 0!==u&&!r.isAnimating&&!Array.isArray(o)&&o===u&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){const n=_M(e);if(n){const e=window.MotionHandoffAnimation(n,t,qE);null!==e&&(a.startTime=e,d=!0)}}FM(e,t),r.start(WM(t,r,o,e.shouldReduceMotion&&mN.has(t)?{type:!1}:a,e,d));const f=r.animation;f&&l.push(f)}return a&&Promise.all(l).then((()=>{qE.update((()=>{a&&function(e,t){const n=TM(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)LM(e,t,DM(i[t]))}(e,a)}))})),l}function GM(e,t,n={}){const r=TM(e,t,"exit"===n.type?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(KM(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=0,i=1,a){const s=[],l=e.variantChildren.size,c=(l-1)*o,u="function"==typeof r,d=u?e=>r(e,l):1===i?(e=0)=>e*o:(e=0)=>c-e*o;return Array.from(e.variantChildren).sort(XM).forEach(((e,o)=>{e.notify("AnimationStart",t),s.push(GM(e,t,{...a,delay:n+(u?0:r)+d(o)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,r,i,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function XM(e,t){return e.sortNodePosition(t)}function qM(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const YM=hj.length;function ZM(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&ZM(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<YM;n++){const r=hj[n],o=e.props[r];(pj(o)||!1===o)&&(t[r]=o)}return t}const QM=[...mj].reverse(),JM=mj.length;function eA(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>GM(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=GM(e,t,n);else{const o="function"==typeof t?TM(e,t,n.custom):t;r=Promise.all(KM(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}function tA(e){let t=eA(e),n=oA(),r=!0;const o=t=>(n,r)=>{const o=TM(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(o){const{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function i(i){const{props:a}=e,s=ZM(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<JM;t++){const f=QM[t],p=n[f],m=void 0!==a[f]?a[f]:s[f],h=pj(m),g=f===i?p.isActive:null;!1===g&&(d=t);let v=m===s[f]&&m!==a[f]&&h;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...u},!p.isActive&&null===g||!m&&!p.prevProp||fj(m)||"boolean"==typeof m)continue;const b=nA(p.prevProp,m);let w=b||f===i&&p.isActive&&!v&&h||t>d&&h,y=!1;const x=Array.isArray(m)?m:[m];let C=x.reduce(o(f),{});!1===g&&(C={});const{prevResolvedValues:S={}}=p,k={...S,...C},E=t=>{w=!0,c.has(t)&&(y=!0,c.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in k){const t=C[e],n=S[e];if(u.hasOwnProperty(e))continue;let r=!1;r=OM(t)&&OM(n)?!qM(t,n):t!==n,r?null!=t?E(e):c.add(e):void 0!==t&&c.has(e)?E(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=C,p.isActive&&(u={...u,...C}),r&&e.blockInitialAnimation&&(w=!1);w&&(!(v&&b)||y)&&l.push(...x.map((e=>({animation:e,options:{type:f}}))))}if(c.size){const t={};if("boolean"!=typeof a.initial){const n=TM(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=r??null})),l.push({animation:t})}let f=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(f=!1),r=!1,f?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach((e=>e.animationState?.setActive(t,r))),n[t].isActive=r;const o=i(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=oA(),r=!0}}}function nA(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!qM(t,e)}function rA(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oA(){return{animate:rA(!0),whileInView:rA(),whileHover:rA(),whileTap:rA(),whileDrag:rA(),whileFocus:rA(),exit:rA()}}class iA{constructor(e){this.isMounted=!1,this.node=e}update(){}}let aA=0;const sA={animation:{Feature:class extends iA{constructor(e){super(e),e.animationState||(e.animationState=tA(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();fj(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iA{constructor(){super(...arguments),this.id=aA++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>{t(this.id)}))}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function lA(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function cA(e){return{point:{x:e.pageX,y:e.pageY}}}function uA(e,t,n,r){return lA(e,t,(e=>t=>VN(t)&&e(t,cA(t)))(n),r)}const dA=.9999,fA=1.0001,pA=-.01,mA=.01;function hA(e){return e.max-e.min}function gA(e,t,n,r=.5){e.origin=r,e.originPoint=HR(t.min,t.max,e.origin),e.scale=hA(n)/hA(t),e.translate=HR(n.min,n.max,e.origin)-e.originPoint,(e.scale>=dA&&e.scale<=fA||isNaN(e.scale))&&(e.scale=1),(e.translate>=pA&&e.translate<=mA||isNaN(e.translate))&&(e.translate=0)}function vA(e,t,n,r){gA(e.x,t.x,n.x,r?r.originX:void 0),gA(e.y,t.y,n.y,r?r.originY:void 0)}function bA(e,t,n){e.min=n.min+t.min,e.max=e.min+hA(t)}function wA(e,t,n){e.min=t.min-n.min,e.max=e.min+hA(t)}function yA(e,t,n){wA(e.x,t.x,n.x),wA(e.y,t.y,n.y)}function xA(e){return[e("x"),e("y")]}const CA=({current:e})=>e?e.ownerDocument.defaultView:null,SA=(e,t)=>Math.abs(e-t);class kA{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=PA(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=SA(e.x,t.x),r=SA(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=ZE;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=EA(t,this.transformPagePoint),qE.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=PA("pointercancel"===e.type?this.lastMoveEventInfo:EA(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!VN(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=r||window;const a=EA(cA(e),this.transformPagePoint),{point:s}=a,{timestamp:l}=ZE;this.history=[{...s,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,PA(a,this.history)),this.removeListeners=CE(uA(this.contextWindow,"pointermove",this.handlePointerMove),uA(this.contextWindow,"pointerup",this.handlePointerUp),uA(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),YE(this.updatePoint)}}function EA(e,t){return t?{point:t(e.point)}:e}function RA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function PA({point:e},t){return{point:e,delta:RA(e,jA(t)),offset:RA(e,NA(t)),velocity:MA(t,.1)}}function NA(e){return e[0]}function jA(e){return e[e.length-1]}function MA(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=jA(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>EE(t)));)n--;if(!r)return{x:0,y:0};const i=RE(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function AA(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function IA(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const TA=.35;function OA(e,t,n){return{min:LA(e,t),max:LA(e,n)}}function LA(e,t){return"number"==typeof e?e:e[t]||0}const DA=new WeakMap;class FA{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xM(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new kA(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(cA(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?ON[i]?null:(ON[i]=!0,()=>{ON[i]=!1}):ON.x||ON.y?null:(ON.x=ON.y=!0,()=>{ON.x=ON.y=!1}),!this.openDragLock))return;var i;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xA((e=>{let t=this.getAxisMotionValue(e).get()||0;if(yR.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=hA(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&qE.postRender((()=>o(e,t))),FM(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>xA((e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:n,contextWindow:CA(this.visualElement)})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&qE.postRender((()=>a(n,r)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!_A(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?HR(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?HR(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Xj(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:AA(e.x,n,o),y:AA(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=TA){return!1===e?e=0:!0===e&&(e=TA),{x:OA(e,"left","right"),y:OA(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&xA((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Xj(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=wM(e,n),{scroll:o}=t;return o&&(gM(r.x,o.offset.x),gM(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:IA(e.x,t.x),y:IA(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=oM(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=xA((a=>{if(!_A(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return FM(this.visualElement,e),n.start(WM(e,n,0,t,this.visualElement,!1))}stopAnimation(){xA((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){xA((e=>this.getAxisMotionValue(e).animation?.pause()))}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){xA((t=>{const{drag:n}=this.getProps();if(!_A(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-HR(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Xj(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};xA((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=hA(e),o=hA(t);return o>r?n=SE(t.min,t.max-r,e.min):r>o&&(n=SE(e.min,e.max-o,t.min)),pE(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),xA((t=>{if(!_A(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(HR(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;DA.set(this.visualElement,this);const e=uA(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Xj(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),qE.read(t);const o=lA(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(xA((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=TA,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function _A(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const VA=e=>(t,n)=>{e&&qE.postRender((()=>e(t,n)))};const zA={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function HA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const BA={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!xR.test(e))return e;e=parseFloat(e)}return`${HA(e,t.target.x)}% ${HA(e,t.target.y)}%`}},$A={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=_R.parse(e);if(o.length>5)return r;const i=_R.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=HR(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};let WA=!1;class UA extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;!function(e){for(const t in e)yj[t]=e[t],rR(t)&&(yj[t].isCSSVariable=!0)}(GA),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),WA&&o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),zA.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,{projection:i}=n;return i?(i.isPresent=o,WA=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==o?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||qE.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),TN.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function KA(n){const[r,o]=ej(),i=t.useContext(aE);return e.jsx(UA,{...n,layoutGroup:i,switchLayoutGroup:t.useContext(Qj),isPresent:r,safeToRemove:o})}const GA={borderRadius:{...BA,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:BA,borderTopRightRadius:BA,borderBottomLeftRadius:BA,borderBottomRightRadius:BA,boxShadow:$A};const XA=(e,t)=>e.depth-t.depth;class qA{constructor(){this.children=[],this.isDirty=!1}add(e){dE(this.children,e),this.isDirty=!0}remove(e){fE(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(XA),this.isDirty=!1,this.children.forEach(e)}}const YA=["TopLeft","TopRight","BottomLeft","BottomRight"],ZA=YA.length,QA=e=>"string"==typeof e?parseFloat(e):e,JA=e=>"number"==typeof e||xR.test(e);function eI(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const tI=rI(0,.5,VE),nI=rI(.5,.95,yE);function rI(e,t,n){return r=>r<e?0:r>t?1:n(SE(e,t,r))}function oI(e,t){e.min=t.min,e.max=t.max}function iI(e,t){oI(e.x,t.x),oI(e.y,t.y)}function aI(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function sI(e,t,n,r,o){return e=uM(e-=t,1/n,r),void 0!==o&&(e=uM(e,1/o,r)),e}function lI(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){yR.test(t)&&(t=parseFloat(t),t=HR(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=HR(i.min,i.max,r);e===i&&(s-=t),e.min=sI(e.min,t,n,s,o),e.max=sI(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const cI=["x","scaleX","originX"],uI=["y","scaleY","originY"];function dI(e,t,n,r){lI(e.x,t,cI,n?n.x:void 0,r?r.x:void 0),lI(e.y,t,uI,n?n.y:void 0,r?r.y:void 0)}function fI(e){return 0===e.translate&&1===e.scale}function pI(e){return fI(e.x)&&fI(e.y)}function mI(e,t){return e.min===t.min&&e.max===t.max}function hI(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function gI(e,t){return hI(e.x,t.x)&&hI(e.y,t.y)}function vI(e){return hA(e.x)/hA(e.y)}function bI(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class wI{constructor(){this.members=[]}add(e){dE(this.members,e),e.scheduleRender()}remove(e){if(fE(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const yI=["","X","Y","Z"];let xI=0;function CI(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function SI(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_M(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",qE,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&SI(r)}function kI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=t?.()){this.id=xI++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(PI),this.nodes.forEach(OI),this.nodes.forEach(LI),this.nodes.forEach(NI)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new qA)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new kE),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var n;this.isSVG=KN(t)&&!(KN(n=t)&&"svg"===n.tagName),this.instance=t;const{layoutId:r,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||r)&&(this.isLayoutDirty=!0),e){let n,r=0;const o=()=>this.root.updateBlockedByResize=!1;qE.read((()=>{r=window.innerWidth})),e(t,(()=>{const e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=tR.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(YE(r),e(i-t))};return qE.setup(r,!0),()=>YE(r)}(o,250),zA.hasAnimatedSinceResize&&(zA.hasAnimatedSinceResize=!1,this.nodes.forEach(TI)))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||o)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||i.getDefaultTransition()||HI,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!gI(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...pN(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||TI(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),YE(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(DI),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&SI(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(MI);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(AI);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(II),this.nodes.forEach(EI),this.nodes.forEach(RI)):this.nodes.forEach(AI),this.clearAllSnapshots();const e=tR.now();ZE.delta=pE(0,1e3/60,e-ZE.timestamp),ZE.timestamp=e,ZE.isProcessing=!0,QE.update.process(ZE),QE.preRender.process(ZE),QE.render.process(ZE),ZE.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,TN.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jI),this.sharedNodes.forEach(FI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,qE.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){qE.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||hA(this.snapshot.measuredBox.x)||hA(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=xM(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!pI(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||sM(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),WI((r=n).x),WI(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return xM();const t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(KI))){const{scroll:e}=this.root;e&&(gM(t.x,e.offset.x),gM(t.y,e.offset.y))}return t}removeElementScroll(e){const t=xM();if(iI(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&iI(t,e),gM(t.x,o.offset.x),gM(t.y,o.offset.y))}return t}applyTransform(e,t=!1){const n=xM();iI(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&bM(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),sM(r.latestValues)&&bM(n,r.latestValues)}return sM(this.latestValues)&&bM(n,this.latestValues),n}removeTransform(e){const t=xM();iI(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!sM(n.latestValues))continue;aM(n.latestValues)&&n.updateSnapshot();const r=xM();iI(r,n.measurePageBox()),dI(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return sM(this.latestValues)&&dI(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ZE.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){const t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:o}=this.options;if(this.layout&&(r||o)){if(this.resolvedRelativeTargetAt=ZE.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xM(),this.relativeTargetOrigin=xM(),yA(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),iI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var i,a,s;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target=xM(),this.targetWithTransforms=xM()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,a=this.relativeTarget,s=this.relativeParent.target,bA(i.x,a.x,s.x),bA(i.y,a.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):iI(this.target,this.layout.layoutBox),pM(this.target,this.targetDelta)):iI(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xM(),this.relativeTargetOrigin=xM(),yA(this.relativeTargetOrigin,this.target,e.target),iI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!aM(this.parent.latestValues)&&!lM(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const e=this.getLead(),t=Boolean(this.resumingFrom)||this!==e;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ZE.timestamp&&(n=!1),n)return;const{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!o)return;iI(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&bM(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,pM(e,a)),r&&sM(i.latestValues)&&bM(e,i.latestValues))}t.x<hM&&t.x>mM&&(t.x=1),t.y<hM&&t.y>mM&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,t),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=xM());const{target:s}=e;s?(this.projectionDelta&&this.prevProjectionDelta?(aI(this.prevProjectionDelta.x,this.projectionDelta.x),aI(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),vA(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===i&&this.treeScale.y===a&&bI(this.projectionDelta.x,this.prevProjectionDelta.x)&&bI(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yM(),this.projectionDelta=yM(),this.projectionDeltaWithTransform=yM()}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=yM();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=xM(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(zI));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;_I(i.x,e.x,n),_I(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yA(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){VI(e.x,t.x,n.x,r),VI(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return mI(e.x,t.x)&&mI(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=xM()),iI(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=HR(0,n.opacity??1,tI(r)),e.opacityExit=HR(t.opacity??1,0,nI(r))):i&&(e.opacity=HR(t.opacity??1,n.opacity??1,r));for(let o=0;o<ZA;o++){const i=`border${YA[o]}Radius`;let a=eI(t,i),s=eI(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||JA(a)===JA(s)?(e[i]=Math.max(HR(QA(a),QA(s),r),0),(yR.test(s)||yR.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=HR(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(YE(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=qE.update((()=>{zA.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=IN(0)),this.currentAnimation=function(e,t,n){const r=GN(e)?e:IN(e);return r.start(WM("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&UI(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||xM();const t=hA(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=hA(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}iI(t,n),bM(t,o),vA(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new wI);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){const{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&CI("z",e,r,this.animationValues);for(let t=0;t<yI.length;t++)CI(`rotate${yI[t]}`,e,r,this.animationValues),CI(`skew${yI[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=zj(t?.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=zj(t?.pointerEvents)||""),void(this.hasProjected&&!sM(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const o=r.animationValues||r.latestValues;this.applyTransformsToTarget();let i=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=n?.z||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);n&&(i=n(o,i)),e.transform=i;const{x:a,y:s}=this.projectionDelta;e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?o.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:e.opacity=r===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const t in yj){if(void 0===o[t])continue;const{correct:n,applyTo:a,isCSSVariable:s}=yj[t],l="none"===i?o[t]:n(o[t],r);if(a){const t=a.length;for(let n=0;n<t;n++)e[a[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?zj(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>e.currentAnimation?.stop())),this.root.nodes.forEach(MI),this.root.sharedNodes.clear()}}}function EI(e){e.updateLayout()}function RI(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;"size"===o?xA((e=>{const r=i?t.measuredBox[e]:t.layoutBox[e],o=hA(r);r.min=n[e].min,r.max=r.min+o})):UI(o,t.layoutBox,n)&&xA((r=>{const o=i?t.measuredBox[r]:t.layoutBox[r],a=hA(n[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=yM();vA(a,n,t.layoutBox);const s=yM();i?vA(s,e.applyTransform(r,!0),t.measuredBox):vA(s,n,t.layoutBox);const l=!pI(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=xM();yA(a,t.layoutBox,o.layoutBox);const s=xM();yA(s,n,i.layoutBox),gI(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function PI(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function NI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jI(e){e.clearSnapshot()}function MI(e){e.clearMeasurements()}function AI(e){e.isLayoutDirty=!1}function II(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function TI(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function OI(e){e.resolveTargetDelta()}function LI(e){e.calcProjection()}function DI(e){e.resetSkewAndRotation()}function FI(e){e.removeLeadSnapshot()}function _I(e,t,n){e.translate=HR(t.translate,0,n),e.scale=HR(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function VI(e,t,n,r){e.min=HR(t.min,n.min,r),e.max=HR(t.max,n.max,r)}function zI(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const HI={duration:.45,ease:[.4,0,.1,1]},BI=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$I=BI("applewebkit/")&&!BI("chrome/")?Math.round:yE;function WI(e){e.min=$I(e.min),e.max=$I(e.max)}function UI(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=vI(t),o=vI(n),i=.2,!(Math.abs(r-o)<=i));var r,o,i}function KI(e){return e!==e.root&&e.scroll?.wasRoot}const GI=kI({attachResizeListener:(e,t)=>lA(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),XI={current:void 0},qI=kI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!XI.current){const e=new GI({});e.mount(window),e.setOptions({layoutScroll:!0}),XI.current=e}return XI.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),YI={pan:{Feature:class extends iA{constructor(){super(...arguments),this.removePointerDownListener=yE}onPointerDown(e){this.session=new kA(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:CA(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:VA(e),onStart:VA(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&qE.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=uA(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iA{constructor(e){super(e),this.removeGroupControls=yE,this.removeListeners=yE,this.controls=new FA(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yE}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:qI,MeasureLayout:KA}};function ZI(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&qE.postRender((()=>o(t,cA(t))))}function QI(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&qE.postRender((()=>o(t,cA(t))))}const JI=new WeakMap,eT=new WeakMap,tT=e=>{const t=JI.get(e.target);t&&t(e)},nT=e=>{e.forEach(tT)};function rT(e,t,n){const r=function({root:e,...t}){const n=e||document;eT.has(n)||eT.set(n,{});const r=eT.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(nT,{root:e,...t})),r[o]}(t);return JI.set(e,n),r.observe(e),()=>{JI.delete(e),r.unobserve(e)}}const oT={some:0,all:1};const iT={inView:{Feature:class extends iA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:oT[r]};return rT(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends iA{mount(){const{current:e}=this.node;e&&(this.unmount=UN(e,((e,t)=>(QI(this.node,t,"Start"),(e,{success:t})=>QI(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends iA{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=CE(lA(this.node.current,"focus",(()=>this.onFocus())),lA(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends iA{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=DN(e,n),a=e=>{if(!FN(e))return;const{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;const i=e=>{FN(e)&&(r(e),n.removeEventListener("pointerleave",i))};n.addEventListener("pointerleave",i,o)};return r.forEach((e=>{e.addEventListener("pointerenter",a,o)})),i}(e,((e,t)=>(ZI(this.node,t,"Start"),e=>ZI(this.node,e,"End")))))}unmount(){}}}},aT=rM({...sA,...iT,...YI,...{layout:{ProjectionNode:qI,MeasureLayout:KA}}},IM),sT=t.forwardRef((function({description:n,side:r="top",className:o,role:i,...a},s){const l=la({placement:r}),c=Co(l,(e=>e.mounted)),u=Co(l,(e=>e.placement)),{x:d,y:f}=t.useMemo((()=>{switch(u.split("-")[0]){case"top":return{x:0,y:-8};case"bottom":return{x:0,y:8};case"left":return{x:-8,y:0};case"right":return{x:8,y:0};default:return{x:0,y:0}}}),[u]);return e.jsxs(Il,{store:l,hideTimeout:0,children:[e.jsx(Fl,{...a,ref:s,role:i,onKeyDown:e=>{"button"===i&&"Enter"===e.key&&(e.preventDefault(),e.target.click())},className:jt("cursor-pointer",o)}),e.jsx(rj,{children:!0===c&&e.jsxs(Al,{gutter:4,alwaysVisible:!0,className:"tooltip",render:e.jsx(aT.div,{initial:{opacity:0,x:d,y:f},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:d,y:f}}),children:[e.jsx(Wl,{}),n]})})]})})),lT=({className:t,...n})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:jt("mx-auto flex w-full justify-center",t),...n});lT.displayName="Pagination";const cT=a.forwardRef((({className:t,...n},r)=>e.jsx("ul",{ref:r,className:jt("flex flex-row items-center gap-1",t),...n})));cT.displayName="PaginationContent";const uT=a.forwardRef((({className:t,...n},r)=>e.jsx("li",{ref:r,className:jt("",t),...n})));uT.displayName="PaginationItem";const dT=({className:t,isActive:n=!1,size:r="icon",children:o,...i})=>e.jsx("a",{"aria-current":n?"page":void 0,className:jt(Vp({variant:n?"outline":"ghost",size:r}),t),...i,children:o||e.jsx("span",{className:"sr-only",children:"Page link"})});dT.displayName="PaginationLink";const fT=({className:t,...n})=>e.jsxs(dT,{"aria-label":"Go to previous page",size:"default",className:jt("gap-1 pl-2.5",t),...n,children:[e.jsx(bp,{className:"h-4 w-4"}),e.jsx("span",{children:"Previous"})]});fT.displayName="PaginationPrevious";const pT=({className:t,...n})=>e.jsxs(dT,{"aria-label":"Go to next page",size:"default",className:jt("gap-1 pr-2.5",t),...n,children:[e.jsx("span",{children:"Next"}),e.jsx(wp,{className:"h-4 w-4"})]});pT.displayName="PaginationNext";const mT=({className:t,...n})=>e.jsxs("span",{"aria-hidden":!0,className:jt("flex h-9 w-9 items-center justify-center",t),...n,children:[e.jsx(xp,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More pages"})]});function hT(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function gT(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}mT.displayName="PaginationEllipsis";var vT=a.forwardRef(((t,n)=>{const{children:r,...o}=t,i=a.Children.toArray(r),s=i.find(yT);if(s){const t=s.props.children,r=i.map((e=>e===s?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(bT,{...o,ref:n,children:a.isValidElement(t)?a.cloneElement(t,void 0,r):null})}return e.jsx(bT,{...o,ref:n,children:r})}));vT.displayName="Slot";var bT=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?function(...e){return t=>{let n=!1;const r=e.map((e=>{const r=gT(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():gT(e[t],null)}}}}(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));bT.displayName="SlotClone";var wT=({children:t})=>e.jsx(e.Fragment,{children:t});function yT(e){return a.isValidElement(e)&&e.type===wT}var xT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=a.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?vT:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{}),CT="Progress",ST=100,[kT,ET]=function(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,c=r?.[t]?.[s]||i,u=a.useMemo((()=>l),Object.values(l));return e.jsx(c.Provider,{value:u,children:o})};return l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t]?.[s]||i,c=a.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},hT(o,...n)]}(CT),[RT,PT]=kT(CT),NT=a.forwardRef(((t,n)=>{const{__scopeProgress:r,value:o=null,max:i,getValueLabel:a=AT,...s}=t;!i&&0!==i||OT(i)||console.error(`Invalid prop \`max\` of value \`${`${i}`}\` supplied to \`${"Progress"}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`);const l=OT(i)?i:ST;null===o||LT(o,l)||console.error(function(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}(`${o}`,"Progress"));const c=LT(o,l)?o:null,u=TT(c)?a(c,l):void 0;return e.jsx(RT,{scope:r,value:c,max:l,children:e.jsx(xT.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":TT(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":IT(c,l),"data-value":c??void 0,"data-max":l,...s,ref:n})})}));NT.displayName=CT;var jT="ProgressIndicator",MT=a.forwardRef(((t,n)=>{const{__scopeProgress:r,...o}=t,i=PT(jT,r);return e.jsx(xT.div,{"data-state":IT(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...o,ref:n})}));function AT(e,t){return`${Math.round(e/t*100)}%`}function IT(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function TT(e){return"number"==typeof e}function OT(e){return TT(e)&&!isNaN(e)&&e>0}function LT(e,t){return TT(e)&&!isNaN(e)&&e<=t&&e>=0}MT.displayName=jT;var DT=NT,FT=MT;const _T=a.forwardRef((({className:t,value:n,...r},o)=>e.jsx(DT,{ref:o,className:jt("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...r,children:e.jsx(FT,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})})));_T.displayName=DT.displayName;var VT=Object.defineProperty,zT=Object.defineProperties,HT=Object.getOwnPropertyDescriptors,BT=Object.getOwnPropertySymbols,$T=Object.prototype.hasOwnProperty,WT=Object.prototype.propertyIsEnumerable,UT=(e,t,n)=>t in e?VT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var KT=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var GT=a.createContext({}),XT=a.forwardRef(((e,t)=>{var n,r,o,i,s,l=e,{value:c,onChange:u,maxLength:d,textAlign:f="left",pattern:p,placeholder:m,inputMode:h="numeric",onComplete:g,pushPasswordManagerStrategy:v="increase-width",pasteTransformer:b,containerClassName:w,noScriptCSSFallback:y=YT,render:x,children:C}=l,S=((e,t)=>{var n={};for(var r in e)$T.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&BT)for(var r of BT(e))t.indexOf(r)<0&&WT.call(e,r)&&(n[r]=e[r]);return n})(l,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[k,E]=a.useState("string"==typeof S.defaultValue?S.defaultValue:""),R=null!=c?c:k,P=function(e){let t=a.useRef();return a.useEffect((()=>{t.current=e})),t.current}(R),N=a.useCallback((e=>{null==u||u(e),E(e)}),[u]),j=a.useMemo((()=>p?"string"==typeof p?new RegExp(p):p:null),[p]),M=a.useRef(null),A=a.useRef(null),I=a.useRef({value:R,onChange:N,isIOS:"undefined"!=typeof window&&(null==(r=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:r.call(n,"-webkit-touch-callout","none"))}),T=a.useRef({prev:[null==(o=M.current)?void 0:o.selectionStart,null==(i=M.current)?void 0:i.selectionEnd,null==(s=M.current)?void 0:s.selectionDirection]});a.useImperativeHandle(t,(()=>M.current),[]),a.useEffect((()=>{let e=M.current,t=A.current;if(!e||!t)return;function n(){if(document.activeElement!==e)return V(null),void H(null);let t,n=e.selectionStart,r=e.selectionEnd,o=e.selectionDirection,i=e.maxLength,a=e.value,s=T.current.prev,l=-1,c=-1;if(0!==a.length&&null!==n&&null!==r){let e=n===r,o=n===a.length&&a.length<i;if(e&&!o){let e=n;if(0===e)l=0,c=1,t="forward";else if(e===i)l=e-1,c=e,t="backward";else if(i>1&&a.length>1){let n=0;if(null!==s[0]&&null!==s[1]){t=e<s[1]?"backward":"forward";let r=s[0]===s[1]&&s[0]<i;"backward"===t&&!r&&(n=-1)}l=n+e,c=n+e+1}}-1!==l&&-1!==c&&l!==c&&M.current.setSelectionRange(l,c,t)}let u=-1!==l?l:n,d=-1!==c?c:r,f=null!=t?t:o;V(u),H(d),T.current.prev=[u,d,f]}if(I.current.value!==e.value&&I.current.onChange(e.value),T.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&F(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";qT(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),qT(e.sheet,`[data-input-otp]:autofill { ${t} }`),qT(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),qT(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),qT(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let o=new ResizeObserver(r);return o.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),o.disconnect()}}),[]);let[O,L]=a.useState(!1),[D,F]=a.useState(!1),[_,V]=a.useState(null),[z,H]=a.useState(null);a.useEffect((()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}((()=>{var e,t,n,r;null==(e=M.current)||e.dispatchEvent(new Event("input"));let o=null==(t=M.current)?void 0:t.selectionStart,i=null==(n=M.current)?void 0:n.selectionEnd,a=null==(r=M.current)?void 0:r.selectionDirection;null!==o&&null!==i&&(V(o),H(i),T.current.prev=[o,i,a])}))}),[R,D]),a.useEffect((()=>{void 0!==P&&R!==P&&P.length<d&&R.length===d&&(null==g||g(R))}),[d,g,P,R]);let B=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,i]=a.useState(!1),[s,l]=a.useState(!1),[c,u]=a.useState(!1),d=a.useMemo((()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&o&&s),[o,s,n]),f=a.useCallback((()=>{let r=e.current,o=t.current;if(!r||!o||c||"none"===n)return;let a=r,s=a.getBoundingClientRect().left+a.offsetWidth-18,l=a.getBoundingClientRect().top+a.offsetHeight/2;0===document.querySelectorAll(KT).length&&document.elementFromPoint(s,l)===r||(i(!0),u(!0))}),[e,t,c,n]);return a.useEffect((()=>{let t=e.current;if(!t||"none"===n)return;function r(){let e=window.innerWidth-t.getBoundingClientRect().right;l(e>=40)}r();let o=setInterval(r,1e3);return()=>{clearInterval(o)}}),[e,n]),a.useEffect((()=>{let e=r||document.activeElement===t.current;if("none"===n||!e)return;let o=setTimeout(f,0),i=setTimeout(f,2e3),a=setTimeout(f,5e3),s=setTimeout((()=>{u(!0)}),6e3);return()=>{clearTimeout(o),clearTimeout(i),clearTimeout(a),clearTimeout(s)}}),[t,r,n,f]),{hasPWMBadge:o,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:A,inputRef:M,pushPasswordManagerStrategy:v,isFocused:D}),$=a.useCallback((e=>{let t=e.currentTarget.value.slice(0,d);t.length>0&&j&&!j.test(t)?e.preventDefault():("string"==typeof P&&t.length<P.length&&document.dispatchEvent(new Event("selectionchange")),N(t))}),[d,N,P,j]),W=a.useCallback((()=>{var e;if(M.current){let t=Math.min(M.current.value.length,d-1),n=M.current.value.length;null==(e=M.current)||e.setSelectionRange(t,n),V(t),H(n)}F(!0)}),[d]),U=a.useCallback((e=>{var t,n;let r=M.current;if(!(b||I.current.isIOS&&e.clipboardData&&r))return;let o=e.clipboardData.getData("text/plain"),i=b?b(o):o;e.preventDefault();let a=null==(t=M.current)?void 0:t.selectionStart,s=null==(n=M.current)?void 0:n.selectionEnd,l=(a!==s?R.slice(0,a)+i+R.slice(s):R.slice(0,a)+i+R.slice(a)).slice(0,d);if(l.length>0&&j&&!j.test(l))return;r.value=l,N(l);let c=Math.min(l.length,d-1),u=l.length;r.setSelectionRange(c,u),V(c),H(u)}),[d,N,j,R]),K=a.useMemo((()=>({position:"relative",cursor:S.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"})),[S.disabled]),G=a.useMemo((()=>({position:"absolute",inset:0,width:B.willPushPWMBadge?`calc(100% + ${B.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:B.willPushPWMBadge?`inset(0 ${B.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:f,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"})),[B.PWM_BADGE_SPACE_WIDTH,B.willPushPWMBadge,f]),X=a.useMemo((()=>a.createElement("input",((e,t)=>zT(e,HT(t)))(((e,t)=>{for(var n in t||(t={}))$T.call(t,n)&&UT(e,n,t[n]);if(BT)for(var n of BT(t))WT.call(t,n)&&UT(e,n,t[n]);return e})({autoComplete:S.autoComplete||"one-time-code"},S),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===R.length||void 0,"data-input-otp-mss":_,"data-input-otp-mse":z,inputMode:h,pattern:null==j?void 0:j.source,"aria-placeholder":m,style:G,maxLength:d,value:R,ref:M,onPaste:e=>{var t;U(e),null==(t=S.onPaste)||t.call(S,e)},onChange:$,onMouseOver:e=>{var t;L(!0),null==(t=S.onMouseOver)||t.call(S,e)},onMouseLeave:e=>{var t;L(!1),null==(t=S.onMouseLeave)||t.call(S,e)},onFocus:e=>{var t;W(),null==(t=S.onFocus)||t.call(S,e)},onBlur:e=>{var t;F(!1),null==(t=S.onBlur)||t.call(S,e)}}))),[$,W,U,h,G,d,z,_,S,null==j?void 0:j.source,R]),q=a.useMemo((()=>({slots:Array.from({length:d}).map(((e,t)=>{var n;let r=D&&null!==_&&null!==z&&(_===z&&t===_||t>=_&&t<z),o=void 0!==R[t]?R[t]:null;return{char:o,placeholderChar:void 0!==R[0]?null:null!=(n=null==m?void 0:m[t])?n:null,isActive:r,hasFakeCaret:r&&null===o}})),isFocused:D,isHovering:!S.disabled&&O})),[D,O,d,z,_,S.disabled,R]),Y=a.useMemo((()=>x?x(q):a.createElement(GT.Provider,{value:q},C)),[C,q,x]);return a.createElement(a.Fragment,null,null!==y&&a.createElement("noscript",null,a.createElement("style",null,y)),a.createElement("div",{ref:A,"data-input-otp-container":!0,style:K,className:w},Y,a.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},X)))}));function qT(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}XT.displayName="Input";var YT="\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}";const ZT=a.forwardRef((({className:t,containerClassName:n,...r},o)=>e.jsx(XT,{ref:o,containerClassName:jt("flex items-center gap-2 has-[:disabled]:opacity-50",n),className:jt("disabled:cursor-not-allowed",t),...r})));ZT.displayName="InputOTP";const QT=a.forwardRef((({className:t,...n},r)=>e.jsx("div",{ref:r,className:jt("flex items-center",t),...n})));QT.displayName="InputOTPGroup";const JT=a.forwardRef((({index:t,className:n,...r},o)=>{const i=a.useContext(GT),{char:s,hasFakeCaret:l,isActive:c}=i.slots[t];return e.jsxs("div",{ref:o,className:jt("text-md relative flex h-11 w-11 items-center justify-center border-y border-r border-input shadow-sm transition-all first:rounded-l-xl first:border-l last:rounded-r-xl",c&&"z-10 ring-1 ring-ring",n),...r,children:[s,l&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})}));JT.displayName="InputOTPSlot";const eO=a.forwardRef((({...t},n)=>e.jsx("div",{ref:n,role:"separator",...t,children:e.jsx(Sp,{})})));function tO({value:n,onChange:r,placeholder:o,className:i=""}){const a=kw(),s=t.useRef(null),l=t.useCallback((e=>r(e.target.value)),[r]);return e.jsxs("div",{className:jt("focus:to-surface-primary/50 group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-gradient-to-b from-surface-tertiary-alt from-65% to-transparent px-3 py-2 text-text-primary transition-colors duration-300 focus:bg-gradient-to-b focus:from-surface-primary",i),children:[e.jsx(Pp,{className:"h-4 w-4 text-text-secondary-alt transition-colors duration-300","aria-hidden":"true"}),e.jsx("input",{ref:s,type:"text",value:n??"",onChange:l,placeholder:o??a("com_ui_select_search_model"),"aria-label":"Search Model",className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm placeholder-text-secondary focus:outline-none focus:ring-1 focus:ring-ring-primary"}),e.jsx("button",{className:jt("relative flex h-5 w-5 items-center justify-end rounded-md text-text-secondary-alt",n?.length?"cursor-pointer opacity-100":"hidden"),"aria-label":"Clear search",onClick:()=>{r(""),setTimeout((()=>{s.current?.focus()}),0)},tabIndex:0,children:e.jsx(jp,{"aria-hidden":"true",className:jt("text-text-secondary-alt",n?.length?"cursor-pointer opacity-100":"opacity-0")})})]})}function nO(e){return"string"==typeof e?e.startsWith("---")&&e.endsWith("---")?"":e.toUpperCase():""}function rO({availableOptions:n=[],placeholder:r,getTextKeyOverride:o,className:i,disabled:a=!1}){const[s,l]=t.useState(null),c=n.length>10&&!a,u=o||nO,d=t.useMemo((()=>{const e=s??"";if(!c||!e||!n.length)return n;const t=e.toUpperCase();return n.filter((e=>u(e).includes(t)))}),[n,u,s,c]),f=t.useCallback((e=>l(e)),[]);return[d,c?e.jsx(tO,{value:s,className:i,onChange:f,placeholder:r}):null]}eO.displayName="InputOTPSeparator";const oO=t.createContext(null);oO.displayName="PanelGroupContext";const iO={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},aO=10,sO=t.useLayoutEffect,lO=a["useId".toString()],cO="function"==typeof lO?lO:()=>null;let uO=0;function dO(e=null){const n=cO(),r=t.useRef(e||n||null);return null===r.current&&(r.current=""+uO++),null!=e?e:r.current}function fO({children:e,className:n="",collapsedSize:r,collapsible:o,defaultSize:i,forwardedRef:a,id:s,maxSize:l,minSize:c,onCollapse:u,onExpand:d,onResize:f,order:p,style:m,tagName:h="div",...g}){const v=t.useContext(oO);if(null===v)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:b,expandPanel:w,getPanelSize:y,getPanelStyle:x,groupId:C,isPanelCollapsed:S,reevaluatePanelConstraints:k,registerPanel:E,resizePanel:R,unregisterPanel:P}=v,N=dO(s),j=t.useRef({callbacks:{onCollapse:u,onExpand:d,onResize:f},constraints:{collapsedSize:r,collapsible:o,defaultSize:i,maxSize:l,minSize:c},id:N,idIsFromProps:void 0!==s,order:p});t.useRef({didLogMissingDefaultSizeWarning:!1}),sO((()=>{const{callbacks:e,constraints:t}=j.current,n={...t};j.current.id=N,j.current.idIsFromProps=void 0!==s,j.current.order=p,e.onCollapse=u,e.onExpand=d,e.onResize=f,t.collapsedSize=r,t.collapsible=o,t.defaultSize=i,t.maxSize=l,t.minSize=c,n.collapsedSize===t.collapsedSize&&n.collapsible===t.collapsible&&n.maxSize===t.maxSize&&n.minSize===t.minSize||k(j.current,n)})),sO((()=>{const e=j.current;return E(e),()=>{P(e)}}),[p,N,E,P]),t.useImperativeHandle(a,(()=>({collapse:()=>{b(j.current)},expand:e=>{w(j.current,e)},getId:()=>N,getSize:()=>y(j.current),isCollapsed:()=>S(j.current),isExpanded:()=>!S(j.current),resize:e=>{R(j.current,e)}})),[b,w,y,S,N,R]);const M=x(j.current,i);return t.createElement(h,{...g,children:e,className:n,id:N,style:{...M,...m},[iO.groupId]:C,[iO.panel]:"",[iO.panelCollapsible]:o||void 0,[iO.panelId]:N,[iO.panelSize]:parseFloat(""+M.flexGrow).toFixed(1)})}const pO=t.forwardRef(((e,n)=>t.createElement(fO,{...e,forwardedRef:n})));fO.displayName="Panel",pO.displayName="forwardRef(Panel)";let mO=null,hO=-1,gO=null;function vO(e,t){var n,r;const o=function(e,t){if(t){const e=0!=(t&MO),n=0!=(t&AO);if(0!=(t&NO))return e?"se-resize":n?"ne-resize":"e-resize";if(0!=(t&jO))return e?"sw-resize":n?"nw-resize":"w-resize";if(e)return"s-resize";if(n)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);if(mO!==o){var i;if(mO=o,null===gO&&(gO=document.createElement("style"),document.head.appendChild(gO)),hO>=0)null===(i=gO.sheet)||void 0===i||i.removeRule(hO);hO=null!==(n=null===(r=gO.sheet)||void 0===r?void 0:r.insertRule(`*{cursor: ${o} !important;}`))&&void 0!==n?n:-1}}function bO(e){return"keydown"===e.type}function wO(e){return e.type.startsWith("pointer")}function yO(e){return e.type.startsWith("mouse")}function xO(e){if(wO(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(yO(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}const CO=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function SO(e){const t=getComputedStyle(e);return"fixed"===t.position||(!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=PO(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||(+t.opacity<1||("transform"in t&&"none"!==t.transform||("webkitTransform"in t&&"none"!==t.webkitTransform||("mixBlendMode"in t&&"normal"!==t.mixBlendMode||("filter"in t&&"none"!==t.filter||("webkitFilter"in t&&"none"!==t.webkitFilter||("isolation"in t&&"isolate"===t.isolation||(!!CO.test(t.willChange)||"touch"===t.webkitOverflowScrolling)))))))))}function kO(e){let t=e.length;for(;t--;){const n=e[t];if(XO(n,"Missing node"),SO(n))return n}return null}function EO(e){return e&&Number(getComputedStyle(e).zIndex)||0}function RO(e){const t=[];for(;e;)t.push(e),e=PO(e);return t}function PO(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const NO=1,jO=2,MO=4,AO=8,IO="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let TO=[],OO=!1,LO=new Map,DO=new Map;const FO=new Set;function _O(e){const{target:t}=e,{x:n,y:r}=xO(e);OO=!0,BO({target:t,x:n,y:r}),KO(),TO.length>0&&(GO("down",e),e.preventDefault(),HO(t)||e.stopImmediatePropagation())}function VO(e){const{x:t,y:n}=xO(e);if(OO&&0===e.buttons&&(OO=!1,GO("up",e)),!OO){const{target:r}=e;BO({target:r,x:t,y:n})}GO("move",e),WO(),TO.length>0&&e.preventDefault()}function zO(e){const{target:t}=e,{x:n,y:r}=xO(e);DO.clear(),OO=!1,TO.length>0&&(e.preventDefault(),HO(t)||e.stopImmediatePropagation()),GO("up",e),BO({target:t,x:n,y:r}),WO(),KO()}function HO(e){let t=e;for(;t;){if(t.hasAttribute(iO.resizeHandle))return!0;t=t.parentElement}return!1}function BO({target:e,x:t,y:n}){TO.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),FO.forEach((e=>{const{element:o,hitAreaMargins:i}=e,a=o.getBoundingClientRect(),{bottom:s,left:l,right:c,top:u}=a,d=IO?i.coarse:i.fine;if(t>=l-d&&t<=c+d&&n>=u-d&&n<=s+d){if(null!==r&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&function(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:RO(e),b:RO(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;XO(r,"Stacking order can only be calculated for elements with a common ancestor");const o=EO(kO(n.a)),i=EO(kO(n.b));if(o===i){const e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)};let o=e.length;for(;o--;){const n=e[o];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(o-i)}(r,o)>0){let e=r,t=!1;for(;e&&!e.contains(o);){if(f=e.getBoundingClientRect(),p=a,f.x<p.x+p.width&&f.x+f.width>p.x&&f.y<p.y+p.height&&f.y+f.height>p.y){t=!0;break}e=e.parentElement}if(t)return}TO.push(e)}var f,p}))}function $O(e,t){DO.set(e,t)}function WO(){let e=!1,t=!1;TO.forEach((n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0}));let n=0;DO.forEach((e=>{n|=e})),e&&t?vO("intersection",n):e?vO("horizontal",n):t?vO("vertical",n):null!==gO&&(document.head.removeChild(gO),mO=null,gO=null,hO=-1)}let UO;function KO(){var e;null===(e=UO)||void 0===e||e.abort(),UO=new AbortController;const t={capture:!0,signal:UO.signal};FO.size&&(OO?(TO.length>0&&LO.forEach(((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",zO,t),r.addEventListener("pointerleave",VO,t),r.addEventListener("pointermove",VO,t))})),LO.forEach(((e,n)=>{const{body:r}=n;r.addEventListener("pointerup",zO,t),r.addEventListener("pointercancel",zO,t)}))):LO.forEach(((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",_O,t),r.addEventListener("pointermove",VO,t))})))}function GO(e,t){FO.forEach((n=>{const{setResizeHandlerState:r}=n,o=TO.includes(n);r(e,o,t)}))}function XO(e,t){if(!e)throw console.error(t),Error(t)}function qO(e,t,n=aO){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function YO(e,t,n=aO){return 0===qO(e,t,n)}function ZO(e,t,n){return 0===qO(e,t,n)}function QO({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];XO(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:i,maxSize:a=100,minSize:s=0}=r;if(qO(n,s)<0)if(i){n=qO(n,(o+s)/2)<0?o:s}else n=s;return n=Math.min(a,n),n=parseFloat(n.toFixed(aO))}function JO({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:i}){if(ZO(e,0))return t;const a=[...t],[s,l]=r;XO(null!=s,"Invalid first pivot index"),XO(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===i){{const r=e<0?l:s,o=n[r];XO(o,`Panel constraints not found for index ${r}`);const{collapsedSize:i=0,collapsible:a,minSize:c=0}=o;if(a){const n=t[r];if(XO(null!=n,`Previous layout not found for panel index ${r}`),ZO(n,i)){const t=c-n;qO(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,o=n[r];XO(o,`No panel constraints found for index ${r}`);const{collapsedSize:i=0,collapsible:a,minSize:c=0}=o;if(a){const n=t[r];if(XO(null!=n,`Previous layout not found for panel index ${r}`),ZO(n,c)){const t=n-i;qO(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let o=e<0?l:s,i=0;for(;;){const e=t[o];XO(null!=e,`Previous layout not found for panel index ${o}`);if(i+=QO({panelConstraints:n,panelIndex:o,size:100})-e,o+=r,o<0||o>=n.length)break}const a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let r=e<0?s:l;for(;r>=0&&r<n.length;){const o=Math.abs(e)-Math.abs(c),i=t[r];XO(null!=i,`Previous layout not found for panel index ${r}`);const s=QO({panelConstraints:n,panelIndex:r,size:i-o});if(!ZO(i,s)&&(c+=i-s,a[r]=s,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!ZO(e[r],t[r],n))return!1;return!0}(o,a))return o;{const r=e<0?l:s,o=t[r];XO(null!=o,`Previous layout not found for panel index ${r}`);const i=o+c,u=QO({panelConstraints:n,panelIndex:r,size:i});if(a[r]=u,!ZO(u,i)){let t=i-u;let r=e<0?l:s;for(;r>=0&&r<n.length;){const o=a[r];XO(null!=o,`Previous layout not found for panel index ${r}`);const i=QO({panelConstraints:n,panelIndex:r,size:o+t});if(ZO(o,i)||(t-=i-o,a[r]=i),ZO(t,0))break;e>0?r--:r++}}}const u=a.reduce(((e,t)=>t+e),0);return ZO(u,100)?a:o}function eL({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,i=0,a=0;const s=n[0];XO(null!=s,"No pivot index found"),t.forEach(((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:c=0}=n;t===s?(r=c,o=l):(i+=c,a+=l)}));return{valueMax:Math.min(o,100-i),valueMin:Math.max(r,100-a),valueNow:e[s]}}function tL(e,t=document){return Array.from(t.querySelectorAll(`[${iO.resizeHandleId}][data-panel-group-id="${e}"]`))}function nL(e,t,n=document){const r=tL(e,n).findIndex((e=>e.getAttribute(iO.resizeHandleId)===t));return null!=r?r:null}function rL(e,t,n){const r=nL(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function oL(e,t=document){if(((n=t)instanceof HTMLElement||"object"==typeof n&&null!==n&&"tagName"in n&&"getAttribute"in n)&&t.dataset.panelGroupId==e)return t;var n;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function iL(e,t=document){const n=t.querySelector(`[${iO.resizeHandleId}="${e}"]`);return n||null}function aL({committedValuesRef:e,eagerValuesRef:n,groupId:r,layout:o,panelDataArray:i,panelGroupElement:a,setLayout:s}){t.useRef({didWarnAboutMissingResizeHandle:!1}),sO((()=>{if(!a)return;const e=tL(r,a);for(let t=0;t<i.length-1;t++){const{valueMax:n,valueMin:r,valueNow:a}=eL({layout:o,panelsArray:i,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=i[t];XO(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(r)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach(((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")}))}}),[r,o,i,a]),t.useEffect((()=>{if(!a)return;const e=n.current;XO(e,"Eager values not found");const{panelDataArray:t}=e;XO(null!=oL(r,a),`No group found for id "${r}"`);const i=tL(r,a);XO(i,`No resize handles found for group id "${r}"`);const l=i.map((e=>{const n=e.getAttribute(iO.resizeHandleId);XO(n,"Resize handle element has no handle id attribute");const[i,l]=function(e,t,n,r=document){var o,i,a,s;const l=iL(t,r),c=tL(e,r),u=l?c.indexOf(l):-1;return[null!==(o=null===(i=n[u])||void 0===i?void 0:i.id)&&void 0!==o?o:null,null!==(a=null===(s=n[u+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(r,n,t,a);if(null==i||null==l)return()=>{};const c=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=t.findIndex((e=>e.id===i));if(l>=0){const e=t[l];XO(e,`No panel data found for index ${l}`);const i=o[l],{collapsedSize:c=0,collapsible:u,minSize:d=0}=e.constraints;if(null!=i&&u){const e=JO({delta:ZO(i,c)?d-c:c-i,initialLayout:o,panelConstraints:t.map((e=>e.constraints)),pivotIndices:rL(r,n,a),prevLayout:o,trigger:"keyboard"});o!==e&&s(e)}}break}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}));return()=>{l.forEach((e=>e()))}}),[a,e,n,r,o,i,s])}function sL(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function lL(e,t){const n="horizontal"===e,{x:r,y:o}=xO(t);return n?r:o}function cL(e,t,n,r,o,i){if(bO(e)){const t="horizontal"===n;let r=0;r=e.shiftKey?100:null!=o?o:10;let i=0;switch(e.key){case"ArrowDown":i=t?0:r;break;case"ArrowLeft":i=t?-r:0;break;case"ArrowRight":i=t?r:0;break;case"ArrowUp":i=t?0:-r;break;case"End":i=100;break;case"Home":i=-100}return i}return null==r?0:function(e,t,n,r,o){const i="horizontal"===n,a=iL(t,o);XO(a,`No resize handle element found for id "${t}"`);const s=a.getAttribute(iO.groupId);XO(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=lL(n,e),u=oL(s,o);XO(u,`No group element found for id "${s}"`);const d=u.getBoundingClientRect();return(c-l)/(i?d.width:d.height)*100}(e,t,n,r,i)}function uL(e,t,n){t.forEach(((t,r)=>{const o=e[r];XO(o,`Panel data not found for index ${r}`);const{callbacks:i,constraints:a,id:s}=o,{collapsedSize:l=0,collapsible:c}=a,u=n[s];if(null==u||t!==u){n[s]=t;const{onCollapse:e,onExpand:r,onResize:o}=i;o&&o(t,u),c&&(e||r)&&(!r||null!=u&&!YO(u,l)||YO(t,l)||r(),!e||null!=u&&YO(u,l)||!YO(t,l)||e())}}))}function dL(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function fL(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function pL(e){return`react-resizable-panels:${e}`}function mL(e){return e.map((e=>{const{constraints:t,id:n,idIsFromProps:r,order:o}=e;return r?n:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)})).sort(((e,t)=>e.localeCompare(t))).join(",")}function hL(e,t){try{const n=pL(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function gL(e,t,n,r,o){var i;const a=pL(e),s=mL(t),l=null!==(i=hL(e,o))&&void 0!==i?i:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function vL({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce(((e,t)=>e+t),0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map((e=>`${e}%`)).join(", ")}`);if(!ZO(r,100)&&n.length>0)for(let e=0;e<t.length;e++){const t=n[e];XO(null!=t,`No layout data found for index ${e}`);const o=100/r*t;n[e]=o}let o=0;for(let e=0;e<t.length;e++){const r=n[e];XO(null!=r,`No layout data found for index ${e}`);const i=QO({panelConstraints:t,panelIndex:e,size:r});r!=i&&(o+=r-i,n[e]=i)}if(!ZO(o,0))for(let e=0;e<t.length;e++){const r=n[e];XO(null!=r,`No layout data found for index ${e}`);const i=QO({panelConstraints:t,panelIndex:e,size:r+o});if(r!==i&&(o-=i-r,n[e]=i,ZO(o,0)))break}return n}const bL={getItem:e=>(fL(bL),bL.getItem(e)),setItem:(e,t)=>{fL(bL),bL.setItem(e,t)}},wL={};function yL({autoSaveId:e=null,children:n,className:r="",direction:o,forwardedRef:i,id:a=null,onLayout:s=null,keyboardResizeBy:l=null,storage:c=bL,style:u,tagName:d="div",...f}){const p=dO(a),m=t.useRef(null),[h,g]=t.useState(null),[v,b]=t.useState([]),w=function(){const[e,n]=t.useState(0);return t.useCallback((()=>n((e=>e+1))),[])}(),y=t.useRef({}),x=t.useRef(new Map),C=t.useRef(0),S=t.useRef({autoSaveId:e,direction:o,dragState:h,id:p,keyboardResizeBy:l,onLayout:s,storage:c}),k=t.useRef({layout:v,panelDataArray:[],panelDataArrayChanged:!1});t.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),t.useImperativeHandle(i,(()=>({getId:()=>S.current.id,getLayout:()=>{const{layout:e}=k.current;return e},setLayout:e=>{const{onLayout:t}=S.current,{layout:n,panelDataArray:r}=k.current,o=vL({layout:e,panelConstraints:r.map((e=>e.constraints))});sL(n,o)||(b(o),k.current.layout=o,t&&t(o),uL(r,o,y.current))}})),[]),sO((()=>{S.current.autoSaveId=e,S.current.direction=o,S.current.dragState=h,S.current.id=p,S.current.onLayout=s,S.current.storage=c})),aL({committedValuesRef:S,eagerValuesRef:k,groupId:p,layout:v,panelDataArray:k.current.panelDataArray,setLayout:b,panelGroupElement:m.current}),t.useEffect((()=>{const{panelDataArray:t}=k.current;if(e){if(0===v.length||v.length!==t.length)return;let n=wL[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(gL,100),wL[e]=n);const r=[...t],o=new Map(x.current);n(e,r,o,v,c)}}),[e,v,c]),t.useEffect((()=>{}));const E=t.useCallback((e=>{const{onLayout:t}=S.current,{layout:n,panelDataArray:r}=k.current;if(e.constraints.collapsible){const o=r.map((e=>e.constraints)),{collapsedSize:i=0,panelSize:a,pivotIndices:s}=SL(r,e,n);if(XO(null!=a,`Panel size not found for panel "${e.id}"`),!YO(a,i)){x.current.set(e.id,a);const l=JO({delta:CL(r,e)===r.length-1?a-i:i-a,initialLayout:n,panelConstraints:o,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});dL(n,l)||(b(l),k.current.layout=l,t&&t(l),uL(r,l,y.current))}}}),[]),R=t.useCallback(((e,t)=>{const{onLayout:n}=S.current,{layout:r,panelDataArray:o}=k.current;if(e.constraints.collapsible){const i=o.map((e=>e.constraints)),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:c}=SL(o,e,r),u=null!=t?t:l;if(YO(s,a)){const t=x.current.get(e.id),a=null!=t&&t>=u?t:u,l=JO({delta:CL(o,e)===o.length-1?s-a:a-s,initialLayout:r,panelConstraints:i,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});dL(r,l)||(b(l),k.current.layout=l,n&&n(l),uL(o,l,y.current))}}}),[]),P=t.useCallback((e=>{const{layout:t,panelDataArray:n}=k.current,{panelSize:r}=SL(n,e,t);return XO(null!=r,`Panel size not found for panel "${e.id}"`),r}),[]),N=t.useCallback(((e,t)=>{const{panelDataArray:n}=k.current,r=CL(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:i=3}){const a=n[o];let s;return s=null==a?null!=e?e.toPrecision(i):"1":1===r.length?"1":a.toPrecision(i),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:h,layout:v,panelData:n,panelIndex:r})}),[h,v]),j=t.useCallback((e=>{const{layout:t,panelDataArray:n}=k.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=SL(n,e,t);return XO(null!=i,`Panel size not found for panel "${e.id}"`),!0===o&&YO(i,r)}),[]),M=t.useCallback((e=>{const{layout:t,panelDataArray:n}=k.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=SL(n,e,t);return XO(null!=i,`Panel size not found for panel "${e.id}"`),!o||qO(i,r)>0}),[]),A=t.useCallback((e=>{const{panelDataArray:t}=k.current;t.push(e),t.sort(((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r})),k.current.panelDataArrayChanged=!0,w()}),[w]);sO((()=>{if(k.current.panelDataArrayChanged){k.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=S.current,{layout:r,panelDataArray:o}=k.current;let i=null;if(e){const t=function(e,t,n){var r,o;return null!==(o=(null!==(r=hL(e,n))&&void 0!==r?r:{})[mL(t)])&&void 0!==o?o:null}(e,o,n);t&&(x.current=new Map(Object.entries(t.expandToSizes)),i=t.layout)}null==i&&(i=function({panelDataArray:e}){const t=Array(e.length),n=e.map((e=>e.constraints));let r=0,o=100;for(let i=0;i<e.length;i++){const e=n[i];XO(e,`Panel constraints not found for index ${i}`);const{defaultSize:a}=e;null!=a&&(r++,t[i]=a,o-=a)}for(let i=0;i<e.length;i++){const a=n[i];XO(a,`Panel constraints not found for index ${i}`);const{defaultSize:s}=a;if(null!=s)continue;const l=o/(e.length-r);r++,t[i]=l,o-=l}return t}({panelDataArray:o}));const a=vL({layout:i,panelConstraints:o.map((e=>e.constraints))});sL(r,a)||(b(a),k.current.layout=a,t&&t(a),uL(o,a,y.current))}})),sO((()=>{const e=k.current;return()=>{e.layout=[]}}),[]);const I=t.useCallback((e=>{let t=!1;const n=m.current;if(n){"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0)}return function(n){n.preventDefault();const r=m.current;if(!r)return()=>null;const{direction:o,dragState:i,id:a,keyboardResizeBy:s,onLayout:l}=S.current,{layout:c,panelDataArray:u}=k.current,{initialLayout:d}=null!=i?i:{},f=rL(a,e,r);let p=cL(n,e,o,i,s,r);const h="horizontal"===o;h&&t&&(p=-p);const g=JO({delta:p,initialLayout:null!=d?d:c,panelConstraints:u.map((e=>e.constraints)),pivotIndices:f,prevLayout:c,trigger:bO(n)?"keyboard":"mouse-or-touch"}),v=!dL(c,g);(wO(n)||yO(n))&&C.current!=p&&(C.current=p,$O(e,v||0===p?0:h?p<0?NO:jO:p<0?MO:AO)),v&&(b(g),k.current.layout=g,l&&l(g),uL(u,g,y.current))}}),[]),T=t.useCallback(((e,t)=>{const{onLayout:n}=S.current,{layout:r,panelDataArray:o}=k.current,i=o.map((e=>e.constraints)),{panelSize:a,pivotIndices:s}=SL(o,e,r);XO(null!=a,`Panel size not found for panel "${e.id}"`);const l=JO({delta:CL(o,e)===o.length-1?a-t:t-a,initialLayout:r,panelConstraints:i,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});dL(r,l)||(b(l),k.current.layout=l,n&&n(l),uL(o,l,y.current))}),[]),O=t.useCallback(((e,t)=>{const{layout:n,panelDataArray:r}=k.current,{collapsedSize:o=0,collapsible:i}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:u}=SL(r,e,n);null!=u&&(i&&s&&YO(u,o)?YO(o,a)||T(e,a):u<c?T(e,c):u>l&&T(e,l))}),[T]),L=t.useCallback(((e,t)=>{const{direction:n}=S.current,{layout:r}=k.current;if(!m.current)return;const o=iL(e,m.current);XO(o,`Drag handle element not found for id "${e}"`);const i=lL(n,t);g({dragHandleId:e,dragHandleRect:o.getBoundingClientRect(),initialCursorPosition:i,initialLayout:r})}),[]),D=t.useCallback((()=>{g(null)}),[]),F=t.useCallback((e=>{const{panelDataArray:t}=k.current,n=CL(t,e);n>=0&&(t.splice(n,1),delete y.current[e.id],k.current.panelDataArrayChanged=!0,w())}),[w]),_=t.useMemo((()=>({collapsePanel:E,direction:o,dragState:h,expandPanel:R,getPanelSize:P,getPanelStyle:N,groupId:p,isPanelCollapsed:j,isPanelExpanded:M,reevaluatePanelConstraints:O,registerPanel:A,registerResizeHandle:I,resizePanel:T,startDragging:L,stopDragging:D,unregisterPanel:F,panelGroupElement:m.current})),[E,h,o,R,P,N,p,j,M,O,A,I,T,L,D,F]),V={display:"flex",flexDirection:"horizontal"===o?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return t.createElement(oO.Provider,{value:_},t.createElement(d,{...f,children:n,className:r,id:a,ref:m,style:{...V,...u},[iO.group]:"",[iO.groupDirection]:o,[iO.groupId]:p}))}const xL=t.forwardRef(((e,n)=>t.createElement(yL,{...e,forwardedRef:n})));function CL(e,t){return e.findIndex((e=>e===t||e.id===t.id))}function SL(e,t,n){const r=CL(e,t),o=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:o}}function kL({children:e=null,className:n="",disabled:r=!1,hitAreaMargins:o,id:i,onBlur:a,onClick:s,onDragging:l,onFocus:c,onPointerDown:u,onPointerUp:d,style:f={},tabIndex:p=0,tagName:m="div",...h}){var g,v;const b=t.useRef(null),w=t.useRef({onClick:s,onDragging:l,onPointerDown:u,onPointerUp:d});t.useEffect((()=>{w.current.onClick=s,w.current.onDragging=l,w.current.onPointerDown=u,w.current.onPointerUp=d}));const y=t.useContext(oO);if(null===y)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:x,groupId:C,registerResizeHandle:S,startDragging:k,stopDragging:E,panelGroupElement:R}=y,P=dO(i),[N,j]=t.useState("inactive"),[M,A]=t.useState(!1),[I,T]=t.useState(null),O=t.useRef({state:N});sO((()=>{O.current.state=N})),t.useEffect((()=>{if(r)T(null);else{const e=S(P);T((()=>e))}}),[r,P,S]);const L=null!==(g=null==o?void 0:o.coarse)&&void 0!==g?g:15,D=null!==(v=null==o?void 0:o.fine)&&void 0!==v?v:5;t.useEffect((()=>{if(r||null==I)return;const e=b.current;XO(e,"Element ref not attached");let t=!1;return function(e,t,n,r,o){var i;const{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},l=null!==(i=LO.get(a))&&void 0!==i?i:0;return LO.set(a,l+1),FO.add(s),KO(),function(){var t;DO.delete(e),FO.delete(s);const n=null!==(t=LO.get(a))&&void 0!==t?t:1;if(LO.set(a,n-1),KO(),1===n&&LO.delete(a),TO.includes(s)){const e=TO.indexOf(s);e>=0&&TO.splice(e,1),WO(),o("up",!0,null)}}}(P,e,x,{coarse:L,fine:D},((e,n,r)=>{if(n)switch(e){case"down":{j("drag"),t=!1,XO(r,'Expected event to be defined for "down" action'),k(P,r);const{onDragging:e,onPointerDown:n}=w.current;null==e||e(!0),null==n||n();break}case"move":{const{state:e}=O.current;t=!0,"drag"!==e&&j("hover"),XO(r,'Expected event to be defined for "move" action'),I(r);break}case"up":{j("hover"),E();const{onClick:e,onDragging:n,onPointerUp:r}=w.current;null==n||n(!1),null==r||r(),t||null==e||e();break}}else j("inactive")}))}),[L,x,r,D,S,P,I,k,E]),function({disabled:e,handleId:n,resizeHandler:r,panelGroupElement:o}){t.useEffect((()=>{if(e||null==r||null==o)return;const t=iL(n,o);if(null==t)return;const i=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),r(e);break;case"F6":{e.preventDefault();const r=t.getAttribute(iO.groupId);XO(r,`No group element found for id "${r}"`);const i=tL(r,o),a=nL(r,n,o);XO(null!==a,`No resize element found for id "${n}"`),i[e.shiftKey?a>0?a-1:i.length-1:a+1<i.length?a+1:0].focus();break}}};return t.addEventListener("keydown",i),()=>{t.removeEventListener("keydown",i)}}),[o,e,n,r])}({disabled:r,handleId:P,resizeHandler:I,panelGroupElement:R});return t.createElement(m,{...h,children:e,className:n,id:i,onBlur:()=>{A(!1),null==a||a()},onFocus:()=>{A(!0),null==c||c()},ref:b,role:"separator",style:{touchAction:"none",userSelect:"none",...f},tabIndex:p,[iO.groupDirection]:x,[iO.groupId]:C,[iO.resizeHandle]:"",[iO.resizeHandleActive]:"drag"===N?"pointer":M?"keyboard":void 0,[iO.resizeHandleEnabled]:!r,[iO.resizeHandleId]:P,[iO.resizeHandleState]:N})}yL.displayName="PanelGroup",xL.displayName="forwardRef(PanelGroup)",kL.displayName="PanelResizeHandle";const EL=pO;function RL(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function PL(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,c=r?.[t]?.[s]||i,u=a.useMemo((()=>l),Object.values(l));return e.jsx(c.Provider,{value:u,children:o})};return l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t]?.[s]||i,c=a.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},NL(o,...n)]}function NL(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function jL(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ML(...e){return t=>{let n=!1;const r=e.map((e=>{const r=jL(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():jL(e[t],null)}}}}function AL(...e){return a.useCallback(ML(...e),e)}function IL(t){const n=TL(t),r=a.forwardRef(((t,r)=>{const{children:o,...i}=t,s=a.Children.toArray(o),l=s.find(LL);if(l){const t=l.props.children,o=s.map((e=>e===l?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(n,{...i,ref:r,children:a.isValidElement(t)?a.cloneElement(t,void 0,o):null})}return e.jsx(n,{...i,ref:r,children:o})}));return r.displayName=`${t}.Slot`,r}function TL(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?ML(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var OL=Symbol("radix.slottable");function LL(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===OL}var DL=a.createContext(void 0);var FL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=IL(`Primitive.${n}`),o=a.forwardRef(((t,o)=>{const{asChild:i,...a}=t,s=i?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(s,{...a,ref:o})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{});function _L(e){const t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>(...e)=>t.current?.(...e)),[])}var VL,zL="dismissableLayer.update",HL="dismissableLayer.pointerDownOutside",BL="dismissableLayer.focusOutside",$L=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),WL=a.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=t,d=a.useContext($L),[f,p]=a.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=a.useState({}),g=AL(n,(e=>p(e))),v=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(b),y=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=w,S=function(e,t=globalThis?.document){const n=_L(e),r=a.useRef(!1),o=a.useRef((()=>{}));return a.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){GL(HL,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(i?.(e),l?.(e),e.defaultPrevented||c?.())}),m),k=function(e,t=globalThis?.document){const n=_L(e),r=a.useRef(!1);return a.useEffect((()=>{const e=e=>{if(e.target&&!r.current){GL(BL,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(s?.(e),l?.(e),e.defaultPrevented||c?.())}),m);return function(e,t=globalThis?.document){const n=_L(e);a.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{y===d.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),m),a.useEffect((()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(VL=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),KL(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=VL)}}),[f,m,r,d]),a.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),KL())}),[f,d]),a.useEffect((()=>{const e=()=>h({});return document.addEventListener(zL,e),()=>document.removeEventListener(zL,e)}),[]),e.jsx(FL.div,{...u,ref:g,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:RL(t.onFocusCapture,k.onFocusCapture),onBlurCapture:RL(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:RL(t.onPointerDownCapture,S.onPointerDownCapture)})}));WL.displayName="DismissableLayer";var UL=a.forwardRef(((t,n)=>{const r=a.useContext($L),o=a.useRef(null),i=AL(n,o);return a.useEffect((()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),e.jsx(FL.div,{...t,ref:i})}));function KL(){const e=new CustomEvent(zL);document.dispatchEvent(e)}function GL(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&s.flushSync((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}UL.displayName="DismissableLayerBranch";var XL=0;function qL(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var YL="focusScope.autoFocusOnMount",ZL="focusScope.autoFocusOnUnmount",QL={bubbles:!1,cancelable:!0},JL=a.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=t,[c,u]=a.useState(null),d=_L(i),f=_L(s),p=a.useRef(null),m=AL(n,(e=>u(e))),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect((()=>{if(o){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:rD(p.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||rD(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&rD(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,c,h.paused]),a.useEffect((()=>{if(c){oD.add(h);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(YL,QL);c.addEventListener(YL,d),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rD(r,{select:t}),document.activeElement!==n)return}((e=eD(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&rD(c))}return()=>{c.removeEventListener(YL,d),setTimeout((()=>{const e=new CustomEvent(ZL,QL);c.addEventListener(ZL,f),c.dispatchEvent(e),e.defaultPrevented||rD(t??document.body,{select:!0}),c.removeEventListener(ZL,f),oD.remove(h)}),0)}}var e}),[c,d,f,h]);const g=a.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=eD(e),n=tD(t,e),r=tD(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&rD(i,{select:!0})):(e.preventDefault(),r&&rD(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return e.jsx(FL.div,{tabIndex:-1,...l,ref:m,onKeyDown:g})}));function eD(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tD(e,t){for(const n of e)if(!nD(n,{upTo:t}))return n}function nD(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function rD(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}JL.displayName="FocusScope";var oD=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=iD(e,t),e.unshift(t)},remove(t){e=iD(e,t),e[0]?.resume()}}}();function iD(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var aD=globalThis?.document?a.useLayoutEffect:()=>{},sD=a[" useId ".trim().toString()]||(()=>{}),lD=0;function cD(e){const[t,n]=a.useState(sD());return aD((()=>{n((e=>e??String(lD++)))}),[e]),t?`radix-${t}`:""}var uD=a.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e.jsx(FL.svg,{...a,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})}));uD.displayName="Arrow";var dD=uD;var fD="Popper",[pD,mD]=PL(fD),[hD,gD]=pD(fD),vD=t=>{const{__scopePopper:n,children:r}=t,[o,i]=a.useState(null);return e.jsx(hD,{scope:n,anchor:o,onAnchorChange:i,children:r})};vD.displayName=fD;var bD="PopperAnchor",wD=a.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,s=gD(bD,r),l=a.useRef(null),c=AL(n,l);return a.useEffect((()=>{s.onAnchorChange(o?.current||l.current)})),o?null:e.jsx(FL.div,{...i,ref:c})}));wD.displayName=bD;var yD="PopperContent",[xD,CD]=pD(yD),SD=a.forwardRef(((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:g,...v}=t,b=gD(yD,r),[w,y]=a.useState(null),x=AL(n,(e=>y(e))),[C,S]=a.useState(null),k=function(e){const[t,n]=a.useState(void 0);return aD((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(C),E=k?.width??0,R=k?.height??0,P=o+("center"!==s?"-"+s:""),N="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},j=Array.isArray(d)?d:[d],M=j.length>0,A={padding:N,boundary:j.filter(PD),altBoundary:M},{refs:I,floatingStyles:T,placement:O,isPositioned:L,middlewareData:D}=Mh({strategy:"fixed",placement:P,whileElementsMounted:(...e)=>sl(...e,{animationFrame:"always"===h}),elements:{reference:b.anchor},middleware:[Ih({mainAxis:i+R,alignmentAxis:l}),u&&Th({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?Oh():void 0,...A}),u&&Lh({...A}),Dh({...A,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),C&&_h({element:C,padding:c}),ND({arrowWidth:E,arrowHeight:R}),m&&Fh({strategy:"referenceHidden",...A})]}),[F,_]=jD(O),V=_L(g);aD((()=>{L&&V?.()}),[L,V]);const z=D.arrow?.x,H=D.arrow?.y,B=0!==D.arrow?.centerOffset,[$,W]=a.useState();return aD((()=>{w&&W(window.getComputedStyle(w).zIndex)}),[w]),e.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:L?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(xD,{scope:r,placedSide:F,onArrowChange:S,arrowX:z,arrowY:H,shouldHideArrow:B,children:e.jsx(FL.div,{"data-side":F,"data-align":_,...v,ref:x,style:{...v.style,animation:L?void 0:"none"}})})})}));SD.displayName=yD;var kD="PopperArrow",ED={top:"bottom",right:"left",bottom:"top",left:"right"},RD=a.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=CD(kD,r),a=ED[i.placedSide];return e.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:e.jsx(dD,{...o,ref:n,style:{...o.style,display:"block"}})})}));function PD(e){return null!==e}RD.displayName=kD;var ND=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=jD(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=i?u:`${d}px`,m=-s+"px"):"top"===l?(p=i?u:`${d}px`,m=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",m=i?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,m=i?u:`${f}px`),{data:{x:p,y:m}}}});function jD(e){const[t,n="center"]=e.split("-");return[t,n]}var MD=vD,AD=wD,ID=SD,TD=RD,OD=a.forwardRef(((t,r)=>{const{container:o,...i}=t,[s,l]=a.useState(!1);aD((()=>l(!0)),[]);const c=o||s&&globalThis?.document?.body;return c?n.createPortal(e.jsx(FL.div,{...i,ref:r}),c):null}));OD.displayName="Portal";var LD=a[" useInsertionEffect ".trim().toString()]||aD;function DD({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return LD((()=>{i.current=t}),[t]),a.useEffect((()=>{o.current!==n&&(i.current?.(n),o.current=n)}),[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:o;{const t=a.useRef(void 0!==e);a.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l}),[l,r])}const u=a.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)}),[l,e,i,s]);return[c,u]}var FD=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),_D=a.forwardRef(((t,n)=>e.jsx(FL.span,{...t,ref:n,style:{...FD,...t.style}})));_D.displayName="VisuallyHidden";var VD=rd(),zD=function(){},HD=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:zD,onWheelCapture:zD,onTouchMoveCapture:zD}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,w=void 0===b?"div":b,y=e.gapMode,x=Xu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,S=td([n,t]),k=Gu(Gu({},x),o);return a.createElement(a.Fragment,null,d&&a.createElement(C,{sideCar:VD,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:y}),s?a.cloneElement(a.Children.only(l),Gu(Gu({},k),{ref:S})):a.createElement(w,Gu({},k,{className:c,ref:S}),l))}));HD.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},HD.classNames={fullWidth:Zu,zeroRight:Yu};var BD=!1;if("undefined"!=typeof window)try{var $D=Object.defineProperty({},"passive",{get:function(){return BD=!0,!0}});window.addEventListener("test",$D,$D),window.removeEventListener("test",$D,$D)}catch(e){BD=!1}var WD=!!BD&&{passive:!1},UD=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},KD=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),GD(e,r)){var o=XD(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},GD=function(e,t){return"v"===e?function(e){return UD(e,"overflowY")}(t):function(e){return UD(e,"overflowX")}(t)},XD=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},qD=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},YD=function(e){return[e.deltaX,e.deltaY]},ZD=function(e){return e&&"current"in e?e.current:e},QD=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},JD=0,eF=[];function tF(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var nF=id(VD,(function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(JD++)[0],i=a.useState(dd)[0],s=a.useRef(e);a.useEffect((function(){s.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=qu([e.lockRef.current],(e.shards||[]).map(ZD),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=qD(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=KD(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=KD(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{if(!s)break;var p=XD(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&GD(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c}(p,t,e,"h"===p?l:c)}),[]),c=a.useCallback((function(e){var n=e;if(eF.length&&eF[eF.length-1]===i){var r="deltaY"in n?YD(n):qD(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(s.current.shards||[]).map(ZD).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?l(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=a.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:tF(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=a.useCallback((function(e){n.current=qD(e),r.current=void 0}),[]),f=a.useCallback((function(t){u(t.type,YD(t),t.target,l(t,e.lockRef.current))}),[]),p=a.useCallback((function(t){u(t.type,qD(t),t.target,l(t,e.lockRef.current))}),[]);a.useEffect((function(){return eF.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,WD),document.addEventListener("touchmove",c,WD),document.addEventListener("touchstart",d,WD),function(){eF=eF.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,WD),document.removeEventListener("touchmove",c,WD),document.removeEventListener("touchstart",d,WD)}}),[]);var m=e.removeScrollBar,h=e.inert;return a.createElement(a.Fragment,null,h?a.createElement(i,{styles:QD(o)}):null,m?a.createElement(wd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)})),rF=a.forwardRef((function(e,t){return a.createElement(HD,Gu({},e,{ref:t,sideCar:nF}))}));rF.classNames=HD.classNames;var oF=[" ","Enter","ArrowUp","ArrowDown"],iF=[" ","Enter"],aF="Select",[sF,lF,cF]=function(n){const r=n+"CollectionProvider",[o,i]=PL(r),[a,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),l=n=>{const{scope:r,children:o}=n,i=t.useRef(null),s=t.useRef(new Map).current;return e.jsx(a,{scope:r,itemMap:s,collectionRef:i,children:o})};l.displayName=r;const c=n+"CollectionSlot",u=IL(c),d=t.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=AL(n,s(c,r).collectionRef);return e.jsx(u,{ref:i,children:o})}));d.displayName=c;const f=n+"CollectionItemSlot",p="data-radix-collection-item",m=IL(f),h=t.forwardRef(((n,r)=>{const{scope:o,children:i,...a}=n,l=t.useRef(null),c=AL(r,l),u=s(f,o);return t.useEffect((()=>(u.itemMap.set(l,{ref:l,...a}),()=>{u.itemMap.delete(l)}))),e.jsx(m,{[p]:"",ref:c,children:i})}));return h.displayName=f,[{Provider:l,Slot:d,ItemSlot:h},function(e){const r=s(n+"CollectionConsumer",e),o=t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`)),n=Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return n}),[r.collectionRef,r.itemMap]);return o},i]}(aF),[uF,dF]=PL(aF,[cF,mD]),fF=mD(),[pF,mF]=uF(aF),[hF,gF]=uF(aF),vF=t=>{const{__scopeSelect:n,children:r,open:o,defaultOpen:i,onOpenChange:s,value:l,defaultValue:c,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:m,required:h,form:g}=t,v=fF(n),[b,w]=a.useState(null),[y,x]=a.useState(null),[C,S]=a.useState(!1),k=function(e){const t=a.useContext(DL);return e||t||"ltr"}(d),[E,R]=DD({prop:o,defaultProp:i??!1,onChange:s,caller:aF}),[P,N]=DD({prop:l,defaultProp:c,onChange:u,caller:aF}),j=a.useRef(null),M=!b||(g||!!b.closest("form")),[A,I]=a.useState(new Set),T=Array.from(A).map((e=>e.props.value)).join(";");return e.jsx(MD,{...v,children:e.jsxs(pF,{required:h,scope:n,trigger:b,onTriggerChange:w,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:cD(),value:P,onValueChange:N,open:E,onOpenChange:R,dir:k,triggerPointerDownPosRef:j,disabled:m,children:[e.jsx(sF.Provider,{scope:n,children:e.jsx(hF,{scope:t.__scopeSelect,onNativeOptionAdd:a.useCallback((e=>{I((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:a.useCallback((e=>{I((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),children:r})}),M?e.jsxs(i_,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:P,onChange:e=>N(e.target.value),disabled:m,form:g,children:[void 0===P?e.jsx("option",{value:""}):null,Array.from(A)]},T):null]})})};vF.displayName=aF;var bF="SelectTrigger",wF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,disabled:o=!1,...i}=t,s=fF(r),l=mF(bF,r),c=l.disabled||o,u=AL(n,l.onTriggerChange),d=lF(r),f=a.useRef("touch"),[p,m,h]=s_((e=>{const t=d().filter((e=>!e.disabled)),n=t.find((e=>e.value===l.value)),r=l_(t,e,n);void 0!==r&&l.onValueChange(r.value)})),g=e=>{c||(l.onOpenChange(!0),h()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return e.jsx(AD,{asChild:!0,...s,children:e.jsx(FL.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":a_(l.value)?"":void 0,...i,ref:u,onClick:RL(i.onClick,(e=>{e.currentTarget.focus(),"mouse"!==f.current&&g(e)})),onPointerDown:RL(i.onPointerDown,(e=>{f.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())})),onKeyDown:RL(i.onKeyDown,(e=>{const t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||oF.includes(e.key)&&(g(),e.preventDefault())}))})})}));wF.displayName=bF;var yF="SelectValue",xF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,className:o,style:i,children:a,placeholder:s="",...l}=t,c=mF(yF,r),{onValueNodeHasChildrenChange:u}=c,d=void 0!==a,f=AL(n,c.onValueNodeChange);return aD((()=>{u(d)}),[u,d]),e.jsx(FL.span,{...l,ref:f,style:{pointerEvents:"none"},children:a_(c.value)?e.jsx(e.Fragment,{children:s}):a})}));xF.displayName=yF;var CF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,children:o,...i}=t;return e.jsx(FL.span,{"aria-hidden":!0,...i,ref:n,children:o||"▼"})}));CF.displayName="SelectIcon";var SF=t=>e.jsx(OD,{asChild:!0,...t});SF.displayName="SelectPortal";var kF="SelectContent",EF=a.forwardRef(((t,n)=>{const r=mF(kF,t.__scopeSelect),[o,i]=a.useState();if(aD((()=>{i(new DocumentFragment)}),[]),!r.open){const n=o;return n?s.createPortal(e.jsx(PF,{scope:t.__scopeSelect,children:e.jsx(sF.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),n):null}return e.jsx(MF,{...t,ref:n})}));EF.displayName=kF;var RF=10,[PF,NF]=uF(kF),jF=IL("SelectContent.RemoveScroll"),MF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:l,side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:b,...w}=t,y=mF(kF,r),[x,C]=a.useState(null),[S,k]=a.useState(null),E=AL(n,(e=>C(e))),[R,P]=a.useState(null),[N,j]=a.useState(null),M=lF(r),[A,I]=a.useState(!1),T=a.useRef(!1);a.useEffect((()=>{if(x)return Hd(x)}),[x]),a.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qL()),document.body.insertAdjacentElement("beforeend",e[1]??qL()),XL++,()=>{1===XL&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),XL--}}),[]);const O=a.useCallback((e=>{const[t,...n]=M().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==o)return}}),[M,S]),L=a.useCallback((()=>O([R,x])),[O,R,x]);a.useEffect((()=>{A&&L()}),[A,L]);const{onOpenChange:D,triggerPointerDownPosRef:F}=y;a.useEffect((()=>{if(x){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(F.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||D(!1),document.removeEventListener("pointermove",t),F.current=null};return null!==F.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[x,D,F]),a.useEffect((()=>{const e=()=>D(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[D]);const[_,V]=s_((e=>{const t=M().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=l_(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),z=a.useCallback(((e,t,n)=>{const r=!T.current&&!n;(void 0!==y.value&&y.value===t||r)&&(P(e),r&&(T.current=!0))}),[y.value]),H=a.useCallback((()=>x?.focus()),[x]),B=a.useCallback(((e,t,n)=>{const r=!T.current&&!n;(void 0!==y.value&&y.value===t||r)&&j(e)}),[y.value]),$="popper"===o?IF:AF,W=$===IF?{side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:b}:{};return e.jsx(PF,{scope:r,content:x,viewport:S,onViewportChange:k,itemRefCallback:z,selectedItem:R,onItemLeave:H,itemTextRefCallback:B,focusSelectedItem:L,selectedItemText:N,position:o,isPositioned:A,searchRef:_,children:e.jsx(rF,{as:jF,allowPinchZoom:!0,children:e.jsx(JL,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:RL(i,(e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()})),children:e.jsx(WL,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:e.jsx($,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault(),...w,...W,onPlaced:()=>I(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:RL(w.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||V(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=M().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>O(t))),e.preventDefault()}}))})})})})})}));MF.displayName="SelectContentImpl";var AF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,onPlaced:o,...i}=t,s=mF(kF,r),l=NF(kF,r),[c,u]=a.useState(null),[d,f]=a.useState(null),p=AL(n,(e=>f(e))),m=lF(r),h=a.useRef(!1),g=a.useRef(!0),{viewport:v,selectedItem:b,selectedItemText:w,focusSelectedItem:y}=l,x=a.useCallback((()=>{if(s.trigger&&s.valueNode&&c&&d&&v&&b&&w){const e=s.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=w.getBoundingClientRect();if("rtl"!==s.dir){const o=r.left-t.left,i=n.left-o,a=e.left-i,s=e.width+a,l=Math.max(s,t.width),u=window.innerWidth-RF,d=Yx(i,[RF,Math.max(RF,u-l)]);c.style.minWidth=s+"px",c.style.left=d+"px"}else{const o=t.right-r.right,i=window.innerWidth-n.right-o,a=window.innerWidth-e.right-i,s=e.width+a,l=Math.max(s,t.width),u=window.innerWidth-RF,d=Yx(i,[RF,Math.max(RF,u-l)]);c.style.minWidth=s+"px",c.style.right=d+"px"}const i=m(),a=window.innerHeight-2*RF,l=v.scrollHeight,u=window.getComputedStyle(d),f=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),g=parseInt(u.borderBottomWidth,10),y=f+p+l+parseInt(u.paddingBottom,10)+g,x=Math.min(5*b.offsetHeight,y),C=window.getComputedStyle(v),S=parseInt(C.paddingTop,10),k=parseInt(C.paddingBottom,10),E=e.top+e.height/2-RF,R=a-E,P=b.offsetHeight/2,N=f+p+(b.offsetTop+P),j=y-N;if(N<=E){const e=i.length>0&&b===i[i.length-1].ref.current;c.style.bottom="0px";const t=d.clientHeight-v.offsetTop-v.offsetHeight,n=N+Math.max(R,P+(e?k:0)+t+g);c.style.height=n+"px"}else{const e=i.length>0&&b===i[0].ref.current;c.style.top="0px";const t=Math.max(E,f+v.offsetTop+(e?S:0)+P)+j;c.style.height=t+"px",v.scrollTop=N-E+v.offsetTop}c.style.margin=`${RF}px 0`,c.style.minHeight=x+"px",c.style.maxHeight=a+"px",o?.(),requestAnimationFrame((()=>h.current=!0))}}),[m,s.trigger,s.valueNode,c,d,v,b,w,s.dir,o]);aD((()=>x()),[x]);const[C,S]=a.useState();aD((()=>{d&&S(window.getComputedStyle(d).zIndex)}),[d]);const k=a.useCallback((e=>{e&&!0===g.current&&(x(),y?.(),g.current=!1)}),[x,y]);return e.jsx(TF,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:k,children:e.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:e.jsx(FL.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})}));AF.displayName="SelectItemAlignedPosition";var IF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:i=RF,...a}=t,s=fF(r);return e.jsx(ID,{...s,...a,ref:n,align:o,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})}));IF.displayName="SelectPopperPosition";var[TF,OF]=uF(kF,{}),LF="SelectViewport",DF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,nonce:o,...i}=t,s=NF(LF,r),l=OF(LF,r),c=AL(n,s.onViewportChange),u=a.useRef(0);return e.jsxs(e.Fragment,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),e.jsx(sF.Slot,{scope:r,children:e.jsx(FL.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:RL(i.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=l;if(r?.current&&n){const e=Math.abs(u.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*RF,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),s=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop}))})})]})}));DF.displayName=LF;var FF="SelectGroup",[_F,VF]=uF(FF),zF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=cD();return e.jsx(_F,{scope:r,id:i,children:e.jsx(FL.div,{role:"group","aria-labelledby":i,...o,ref:n})})}));zF.displayName=FF;var HF="SelectLabel",BF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=VF(HF,r);return e.jsx(FL.div,{id:i.id,...o,ref:n})}));BF.displayName=HF;var $F="SelectItem",[WF,UF]=uF($F),KF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,value:o,disabled:i=!1,textValue:s,...l}=t,c=mF($F,r),u=NF($F,r),d=c.value===o,[f,p]=a.useState(s??""),[m,h]=a.useState(!1),g=AL(n,(e=>u.itemRefCallback?.(e,o,i))),v=cD(),b=a.useRef("touch"),w=()=>{i||(c.onValueChange(o),c.onOpenChange(!1))};if(""===o)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.jsx(WF,{scope:r,value:o,disabled:i,textId:v,isSelected:d,onItemTextChange:a.useCallback((e=>{p((t=>t||(e?.textContent??"").trim()))}),[]),children:e.jsx(sF.ItemSlot,{scope:r,value:o,disabled:i,textValue:f,children:e.jsx(FL.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:g,onFocus:RL(l.onFocus,(()=>h(!0))),onBlur:RL(l.onBlur,(()=>h(!1))),onClick:RL(l.onClick,(()=>{"mouse"!==b.current&&w()})),onPointerUp:RL(l.onPointerUp,(()=>{"mouse"===b.current&&w()})),onPointerDown:RL(l.onPointerDown,(e=>{b.current=e.pointerType})),onPointerMove:RL(l.onPointerMove,(e=>{b.current=e.pointerType,i?u.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:RL(l.onPointerLeave,(e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()})),onKeyDown:RL(l.onKeyDown,(e=>{""!==u.searchRef?.current&&" "===e.key||(iF.includes(e.key)&&w()," "===e.key&&e.preventDefault())}))})})})}));KF.displayName=$F;var GF="SelectItemText",XF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,className:o,style:i,...l}=t,c=mF(GF,r),u=NF(GF,r),d=UF(GF,r),f=gF(GF,r),[p,m]=a.useState(null),h=AL(n,(e=>m(e)),d.onItemTextChange,(e=>u.itemTextRefCallback?.(e,d.value,d.disabled))),g=p?.textContent,v=a.useMemo((()=>e.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value)),[d.disabled,d.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=f;return aD((()=>(b(v),()=>w(v))),[b,w,v]),e.jsxs(e.Fragment,{children:[e.jsx(FL.span,{id:d.textId,...l,ref:h}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?s.createPortal(l.children,c.valueNode):null]})}));XF.displayName=GF;var qF="SelectItemIndicator",YF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t;return UF(qF,r).isSelected?e.jsx(FL.span,{"aria-hidden":!0,...o,ref:n}):null}));YF.displayName=qF;var ZF="SelectScrollUpButton",QF=a.forwardRef(((t,n)=>{const r=NF(ZF,t.__scopeSelect),o=OF(ZF,t.__scopeSelect),[i,s]=a.useState(!1),l=AL(n,o.onScrollButtonChange);return aD((()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollTop>0;s(e)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[r.viewport,r.isPositioned]),i?e.jsx(t_,{...t,ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}));QF.displayName=ZF;var JF="SelectScrollDownButton",e_=a.forwardRef(((t,n)=>{const r=NF(JF,t.__scopeSelect),o=OF(JF,t.__scopeSelect),[i,s]=a.useState(!1),l=AL(n,o.onScrollButtonChange);return aD((()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;s(n)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[r.viewport,r.isPositioned]),i?e.jsx(t_,{...t,ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}));e_.displayName=JF;var t_=a.forwardRef(((t,n)=>{const{__scopeSelect:r,onAutoScroll:o,...i}=t,s=NF("SelectScrollButton",r),l=a.useRef(null),c=lF(r),u=a.useCallback((()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)}),[]);return a.useEffect((()=>()=>u()),[u]),aD((()=>{const e=c().find((e=>e.ref.current===document.activeElement));e?.ref.current?.scrollIntoView({block:"nearest"})}),[c]),e.jsx(FL.div,{"aria-hidden":!0,...i,ref:n,style:{flexShrink:0,...i.style},onPointerDown:RL(i.onPointerDown,(()=>{null===l.current&&(l.current=window.setInterval(o,50))})),onPointerMove:RL(i.onPointerMove,(()=>{s.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(o,50))})),onPointerLeave:RL(i.onPointerLeave,(()=>{u()}))})})),n_=a.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t;return e.jsx(FL.div,{"aria-hidden":!0,...o,ref:n})}));n_.displayName="SelectSeparator";var r_="SelectArrow",o_=a.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=fF(r),a=mF(r_,r),s=NF(r_,r);return a.open&&"popper"===s.position?e.jsx(TD,{...i,...o,ref:n}):null}));o_.displayName=r_;var i_=a.forwardRef((({__scopeSelect:t,value:n,...r},o)=>{const i=a.useRef(null),s=AL(o,i),l=function(e){const t=a.useRef({value:e,previous:e});return a.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n);return a.useEffect((()=>{const e=i.current;if(!e)return;const t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[l,n]),e.jsx(FL.select,{...r,style:{...FD,...r.style},ref:s,defaultValue:n})}));function a_(e){return""===e||void 0===e}function s_(e){const t=_L(e),n=a.useRef(""),r=a.useRef(0),o=a.useCallback((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),i=a.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return a.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function l_(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,s=Math.max(o,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===r.length&&(i=i.filter((e=>e!==n)));const l=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}i_.displayName="SelectBubbleInput";var c_=vF,u_=wF,d_=CF,f_=SF,p_=EF,m_=DF,h_=BF,g_=KF,v_=XF,b_=YF,w_=QF,y_=e_,x_=n_;const C_=xF,S_=a.forwardRef((({className:t="",children:n,...r},o)=>e.jsxs(u_,{ref:o,className:jt("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-gray-200 border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-600 [&>span]:line-clamp-1","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",t),...r,children:[n,e.jsx(d_,{asChild:!0,children:e.jsx(Ae,{className:"h-4 w-4 opacity-50"})})]})));S_.displayName=u_.displayName;const k_=a.forwardRef((({className:t="",...n},r)=>e.jsx(w_,{ref:r,className:jt("flex cursor-default items-center justify-center py-1 dark:text-white",t),...n,children:e.jsx(Fe,{})})));k_.displayName=w_.displayName;const E_=a.forwardRef((({className:t="",...n},r)=>e.jsx(y_,{ref:r,className:jt("flex cursor-default items-center justify-center py-1 dark:text-white",t),...n,children:e.jsx(Le,{})})));E_.displayName=y_.displayName;const R_=a.forwardRef((({className:t="",children:n,position:r="popper",...o},i)=>e.jsx(f_,{children:e.jsxs(p_,{ref:i,className:jt("bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-600","popper"===r?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":"",t),position:r,...o,children:[e.jsx(k_,{}),e.jsx(m_,{className:jt("p-1","popper"===r?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:n}),e.jsx(E_,{})]})})));R_.displayName=p_.displayName;const P_=a.forwardRef((({className:t="",...n},r)=>e.jsx(h_,{ref:r,className:jt("px-2 py-1.5 text-sm font-semibold",t),...n})));P_.displayName=h_.displayName;const N_=a.forwardRef((({className:t="",children:n,...r},o)=>e.jsxs(g_,{ref:o,className:jt("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",t),...r,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(b_,{children:e.jsx(Te,{className:"h-4 w-4"})})}),e.jsx(v_,{children:n})]})));N_.displayName=g_.displayName;const j_=a.forwardRef((({className:t="",...n},r)=>e.jsx(x_,{ref:r,className:jt("-mx-1 my-1 h-px bg-muted",t),...n})));j_.displayName=x_.displayName;const M_=e=>"object"==typeof e&&"divider"in e,A_=e=>"object"==typeof e&&"value"in e&&"label"in e;var I_=X_(),T_=e=>W_(e,I_),O_=X_();T_.write=e=>W_(e,O_);var L_=X_();T_.onStart=e=>W_(e,L_);var D_=X_();T_.onFrame=e=>W_(e,D_);var F_=X_();T_.onFinish=e=>W_(e,F_);var __=[];T_.setTimeout=(e,t)=>{const n=T_.now()+t,r=()=>{const e=__.findIndex((e=>e.cancel==r));~e&&__.splice(e,1),B_-=~e?1:0},o={time:n,handler:e,cancel:r};return __.splice(V_(n),0,o),B_+=1,U_(),o};var V_=e=>~(~__.findIndex((t=>t.time>e))||~__.length);T_.cancel=e=>{L_.delete(e),D_.delete(e),F_.delete(e),I_.delete(e),O_.delete(e)},T_.sync=e=>{$_=!0,T_.batchedUpdates(e),$_=!1},T_.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,T_.onStart(n)}return r.handler=e,r.cancel=()=>{L_.delete(n),t=null},r};var z_="undefined"!=typeof window?window.requestAnimationFrame:()=>{};T_.use=e=>z_=e,T_.now="undefined"!=typeof performance?()=>performance.now():Date.now,T_.batchedUpdates=e=>e(),T_.catch=console.error,T_.frameLoop="always",T_.advance=()=>{"demand"!==T_.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):G_()};var H_=-1,B_=0,$_=!1;function W_(e,t){$_?(t.delete(e),e(0)):(t.add(e),U_())}function U_(){H_<0&&(H_=0,"demand"!==T_.frameLoop&&z_(K_))}function K_(){~H_&&(z_(K_),T_.batchedUpdates(G_))}function G_(){const e=H_;H_=T_.now();const t=V_(H_);t&&(q_(__.splice(0,t),(e=>e.handler())),B_-=t),B_?(L_.flush(),I_.flush(e?Math.min(64,H_-e):16.667),D_.flush(),O_.flush(),F_.flush()):H_=-1}function X_(){let e=new Set,t=e;return{add(n){B_+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(B_-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,B_-=t.size,q_(t,(t=>t(n)&&e.add(t))),B_+=e.size,t=e)}}}function q_(e,t){e.forEach((e=>{try{t(e)}catch(e){T_.catch(e)}}))}var Y_=Object.defineProperty,Z_={};function Q_(){}((e,t)=>{for(var n in t)Y_(e,n,{get:t[n],enumerable:!0})})(Z_,{assign:()=>fV,colors:()=>cV,createStringInterpolator:()=>iV,skipAnimation:()=>uV,to:()=>aV,willAdvance:()=>dV});var J_={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function eV(e,t){if(J_.arr(e)){if(!J_.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var tV=(e,t)=>e.forEach(t);function nV(e,t,n){if(J_.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var rV=e=>J_.und(e)?[]:J_.arr(e)?e:[e];function oV(e,t){if(e.size){const n=Array.from(e);e.clear(),tV(n,t)}}var iV,aV,sV=(e,...t)=>oV(e,(e=>e(...t))),lV=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),cV=null,uV=!1,dV=Q_,fV=e=>{e.to&&(aV=e.to),e.now&&(T_.now=e.now),void 0!==e.colors&&(cV=e.colors),null!=e.skipAnimation&&(uV=e.skipAnimation),e.createStringInterpolator&&(iV=e.createStringInterpolator),e.requestAnimationFrame&&T_.use(e.requestAnimationFrame),e.batchedUpdates&&(T_.batchedUpdates=e.batchedUpdates),e.willAdvance&&(dV=e.willAdvance),e.frameLoop&&(T_.frameLoop=e.frameLoop)},pV=new Set,mV=[],hV=[],gV=0,vV={get idle(){return!pV.size&&!mV.length},start(e){gV>e.priority?(pV.add(e),T_.onStart(bV)):(wV(e),T_(xV))},advance:xV,sort(e){if(gV)T_.onFrame((()=>vV.sort(e)));else{const t=mV.indexOf(e);~t&&(mV.splice(t,1),yV(e))}},clear(){mV=[],pV.clear()}};function bV(){pV.forEach(wV),pV.clear(),T_(xV)}function wV(e){mV.includes(e)||yV(e)}function yV(e){mV.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(mV,(t=>t.priority>e.priority)),0,e)}function xV(e){const t=hV;for(let n=0;n<mV.length;n++){const r=mV[n];gV=r.priority,r.idle||(dV(r),r.advance(e),r.idle||t.push(r))}return gV=0,(hV=mV).length=0,(mV=t).length>0}var CV="[-+]?\\d*\\.?\\d+",SV=CV+"%";function kV(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var EV=new RegExp("rgb"+kV(CV,CV,CV)),RV=new RegExp("rgba"+kV(CV,CV,CV,CV)),PV=new RegExp("hsl"+kV(CV,SV,SV)),NV=new RegExp("hsla"+kV(CV,SV,SV,CV)),jV=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,MV=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,AV=/^#([0-9a-fA-F]{6})$/,IV=/^#([0-9a-fA-F]{8})$/;function TV(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function OV(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=TV(o,r,e+1/3),a=TV(o,r,e),s=TV(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function LV(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function DV(e){return(parseFloat(e)%360+360)%360/360}function FV(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function _V(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function VV(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=AV.exec(e))?parseInt(t[1]+"ff",16)>>>0:cV&&void 0!==cV[e]?cV[e]:(t=EV.exec(e))?(LV(t[1])<<24|LV(t[2])<<16|LV(t[3])<<8|255)>>>0:(t=RV.exec(e))?(LV(t[1])<<24|LV(t[2])<<16|LV(t[3])<<8|FV(t[4]))>>>0:(t=jV.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=IV.exec(e))?parseInt(t[1],16)>>>0:(t=MV.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=PV.exec(e))?(255|OV(DV(t[1]),_V(t[2]),_V(t[3])))>>>0:(t=NV.exec(e))?(OV(DV(t[1]),_V(t[2]),_V(t[3]))|FV(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var zV=(e,t,n)=>{if(J_.fun(e))return e;if(J_.arr(e))return zV({range:e,output:t,extrapolate:n});if(J_.str(e.output[0]))return iV(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};var HV=Symbol.for("FluidValue.get"),BV=Symbol.for("FluidValue.observers"),$V=e=>Boolean(e&&e[HV]),WV=e=>e&&e[HV]?e[HV]():e,UV=e=>e[BV]||null;function KV(e,t){const n=e[BV];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var GV=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");XV(this,e)}},XV=(e,t)=>QV(e,HV,t);function qV(e,t){if(e[HV]){let n=e[BV];n||QV(e,BV,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function YV(e,t){const n=e[BV];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[BV]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var ZV,QV=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),JV=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ez=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,tz=new RegExp(`(${JV.source})(%|[a-z]+)`,"i"),nz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,rz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,oz=e=>{const[t,n]=iz(e);if(!t||lV())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&rz.test(n)?oz(n):n||e},iz=e=>{const t=rz.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},az=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,sz=e=>{ZV||(ZV=cV?new RegExp(`(${Object.keys(cV).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>WV(e).replace(rz,oz).replace(ez,VV).replace(ZV,VV))),n=t.map((e=>e.match(JV).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),o=r.map((t=>zV({...e,output:t})));return e=>{const n=!tz.test(t[0])&&t.find((e=>tz.test(e)))?.replace(JV,"");let r=0;return t[0].replace(JV,(()=>`${o[r++](e)}${n||""}`)).replace(nz,az)}},lz="react-spring: ",cz=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${lz}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},uz=cz(console.warn);var dz=cz(console.warn);function fz(e){return J_.str(e)&&("#"==e[0]||/\d/.test(e)||!lV()&&rz.test(e)||e in(cV||{}))}var pz=lV()?t.useEffect:t.useLayoutEffect,mz=()=>{const e=t.useRef(!1);return pz((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function hz(){const e=t.useState()[1],n=mz();return()=>{n.current&&e(Math.random())}}var gz=e=>t.useEffect(e,vz),vz=[];function bz(e){const n=t.useRef();return t.useEffect((()=>{n.current=e})),n.current}var wz=Symbol.for("Animated:node"),yz=e=>e&&e[wz],xz=(e,t)=>{return n=e,r=wz,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},Cz=e=>e&&e[wz]&&e[wz].getPayload(),Sz=class{constructor(){xz(this,this)}getPayload(){return this.payload||[]}},kz=class extends Sz{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,J_.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new kz(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return J_.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,J_.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ez=class extends kz{constructor(e){super(0),this._string=null,this._toString=zV({output:[e,e]})}static create(e){return new Ez(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(J_.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=zV({output:[this.getValue(),e]})),this._value=0,super.reset()}},Rz={dependencies:null},Pz=class extends Sz{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return nV(this.source,((n,r)=>{var o;(o=n)&&o[wz]===o?t[r]=n.getValue(e):$V(n)?t[r]=WV(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&tV(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return nV(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Rz.dependencies&&$V(e)&&Rz.dependencies.add(e);const t=Cz(e);t&&tV(t,(e=>this.add(e)))}},Nz=class extends Pz{constructor(e){super(e)}static create(e){return new Nz(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(jz)),!0)}};function jz(e){return(fz(e)?Ez:kz).create(e)}function Mz(e){const t=yz(e);return t?t.constructor:J_.arr(e)?Nz:fz(e)?Ez:kz}var Az=(e,n)=>{const r=!J_.fun(e)||e.prototype&&e.prototype.isReactComponent;return t.forwardRef(((o,i)=>{const s=t.useRef(null),l=r&&t.useCallback((e=>{s.current=function(e,t){e&&(J_.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[c,u]=function(e,t){const n=new Set;Rz.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Pz(e),Rz.dependencies=null,[e,n]}(o,n),d=hz(),f=()=>{const e=s.current;if(r&&!e)return;!1===(!!e&&n.applyAnimatedValues(e,c.getValue(!0)))&&d()},p=new Iz(f,u),m=t.useRef();pz((()=>(m.current=p,tV(u,(e=>qV(e,p))),()=>{m.current&&(tV(m.current.deps,(e=>YV(e,m.current))),T_.cancel(m.current.update))}))),t.useEffect(f,[]),gz((()=>()=>{const e=m.current;tV(e.deps,(t=>YV(t,e)))}));const h=n.getComponentProps(c.getValue());return a.createElement(e,{...h,ref:l})}))},Iz=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&T_.write(this.update)}};var Tz=Symbol.for("AnimatedComponent"),Oz=e=>J_.str(e)?e:e&&J_.str(e.displayName)?e.displayName:J_.fun(e)&&e.name||null;function Lz(e,...t){return J_.fun(e)?e(...t):e}var Dz=(e,t)=>!0===e||!!(t&&e&&(J_.fun(e)?e(t):rV(e).includes(t))),Fz=(e,t)=>J_.obj(e)?t&&e[t]:e,_z=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Vz=e=>e,zz=(e,t=Vz)=>{let n=Hz;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);J_.und(n)||(r[o]=n)}return r},Hz=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Bz={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function $z(e){const t=function(e){const t={};let n=0;if(nV(e,((e,r)=>{Bz[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return nV(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function Wz(e){return e=WV(e),J_.arr(e)?e.map(Wz):fz(e)?Z_.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Uz(e){return J_.fun(e)||J_.arr(e)&&J_.obj(e[0])}var Kz={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},Gz=class{constructor(){this.velocity=0,Object.assign(this,Kz)}};function Xz(e,t){if(J_.und(t.decay)){const n=!J_.und(t.tension)||!J_.und(t.friction);!n&&J_.und(t.frequency)&&J_.und(t.damping)&&J_.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var qz=[],Yz=class{constructor(){this.changed=!1,this.values=qz,this.toValues=null,this.fromValues=qz,this.config=new Gz,this.immediate=!1}};function Zz(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=Dz(n.cancel??r?.cancel,t);if(u)p();else{J_.und(n.pause)||(o.paused=Dz(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||Dz(e,t)),l=Lz(n.delay||0,t),e?(o.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){o.resumeQueue.add(f),o.timeouts.delete(c),c.cancel(),l=c.time-T_.now()}function f(){l>0&&!Z_.skipAnimation?(o.delayed=!0,c=T_.setTimeout(p,l),o.pauseQueue.add(d),o.timeouts.add(c)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(c),e<=(o.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},a)}catch(e){s(e)}}}))}var Qz=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?tH(e.get()):t.every((e=>e.noop))?Jz(e.get()):eH(e.get(),t.every((e=>e.finished))),Jz=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),eH=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),tH=e=>({value:e,cancelled:!0,finished:!1});function nH(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=zz(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const f=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=o<=(n.cancelId||0)&&tH(r)||o!==n.asyncId&&eH(r,!1);if(t)throw e.result=t,d(e),e},m=(e,t)=>{const i=new oH,a=new iH;return(async()=>{if(Z_.skipAnimation)throw rH(n),a.result=eH(r,!1),d(a),a;p(i);const s=J_.obj(e)?{...e}:{...t,to:e};s.parentId=o,nV(c,((e,t)=>{J_.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let h;if(Z_.skipAnimation)return rH(n),eH(r,!1);try{let t;t=J_.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),f]),h=eH(r.get(),!0,!1)}catch(e){if(e instanceof oH)h=e.result;else{if(!(e instanceof iH))throw e;h=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return J_.fun(a)&&T_.batchedUpdates((()=>{a(h,r,r.item)})),h})():l}function rH(e,t){oV(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var oH=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},iH=class extends Error{constructor(){super("SkipAnimationSignal")}},aH=e=>e instanceof lH,sH=1,lH=class extends GV{constructor(){super(...arguments),this.id=sH++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=yz(this);return e&&e.getValue()}to(...e){return Z_.to(this,e)}interpolate(...e){return uz(`${lz}The "interpolate" function is deprecated in v9 (use "to" instead)`),Z_.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){KV(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||vV.sort(this),KV(this,{type:"priority",parent:this,priority:e})}},cH=Symbol.for("SpringPhase"),uH=e=>(1&e[cH])>0,dH=e=>(2&e[cH])>0,fH=e=>(4&e[cH])>0,pH=(e,t)=>t?e[cH]|=3:e[cH]&=-3,mH=(e,t)=>t?e[cH]|=4:e[cH]&=-5,hH=class extends lH{constructor(e,t){if(super(),this.animation=new Yz,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!J_.und(e)||!J_.und(t)){const n=J_.obj(e)?{...e}:{...t,from:e};J_.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(dH(this)||this._state.asyncTo)||fH(this)}get goal(){return WV(this.animation.to)}get velocity(){const e=yz(this);return e instanceof kz?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return uH(this)}get isAnimating(){return dH(this)}get isPaused(){return fH(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=Cz(r.to);!a&&$V(r.to)&&(o=rV(WV(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==Ez?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=J_.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const f=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(J_.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=f,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||f/10,r=i.clamp?0:i.bounce,l=!J_.und(r),p=n==c?s.v0>0:n<c;let m,h=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(m=Math.abs(a)>t,m||(u=Math.abs(c-d)<=f,!u));++e){l&&(h=d==c||d>c==p,h&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*g,d+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=yz(this),l=s.getValue();if(t){const e=WV(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return T_.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(dH(this)){const{to:e,config:t}=this.animation;T_.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return J_.und(e)?(n=this.queue||[],this.queue=[]):n=[J_.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Qz(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),rH(this._state,e&&this._lastCallId),T_.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=J_.obj(n)?n[t]:n,(null==n||Uz(n))&&(n=void 0),r=J_.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return uH(this)||(e.reverse&&([n,r]=[r,n]),r=WV(r),J_.und(r)?yz(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,zz(e,((e,t)=>/^on/.test(t)?Fz(e,n):e))),CH(this,e,"onProps"),SH(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Zz(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{fH(this)||(mH(this,!0),sV(i.pauseQueue),SH(this,"onPause",eH(this,gH(this,this.animation.to)),this))},resume:()=>{fH(this)&&(mH(this,!1),dH(this)&&this._resume(),sV(i.resumeQueue),SH(this,"onResume",eH(this,gH(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=vH(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(tH(this));const r=!J_.und(e.to),o=!J_.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(tH(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!o||r||t.default&&!J_.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const f=!eV(d,c);f&&(s.from=d),d=WV(d);const p=!eV(u,l);p&&this._focus(u);const m=Uz(t.to),{config:h}=s,{decay:g,velocity:v}=h;(r||o)&&(h.velocity=0),t.config&&!m&&function(e,t,n){n&&(Xz(n={...n},t),t={...n,...t}),Xz(e,t),Object.assign(e,t);for(const t in Kz)null==e[t]&&(e[t]=Kz[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;J_.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(h,Lz(t.config,i),t.config!==a.config?Lz(a.config,i):void 0);let b=yz(this);if(!b||J_.und(u))return n(eH(this,!0));const w=J_.und(t.reset)?o&&!t.default:!J_.und(d)&&Dz(t.reset,i),y=w?d:this.get(),x=Wz(u),C=J_.num(x)||J_.arr(x)||fz(x),S=!m&&(!C||Dz(a.immediate||t.immediate,i));if(p){const e=Mz(u);if(e!==b.constructor){if(!S)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(x)}}const k=b.constructor;let E=$V(u),R=!1;if(!E){const e=w||!uH(this)&&f;(p||e)&&(R=eV(Wz(y),x),E=!R),(eV(s.immediate,S)||S)&&eV(h.decay,g)&&eV(h.velocity,v)||(E=!0)}if(R&&dH(this)&&(s.changed&&!w?E=!0:E||this._stop(l)),!m&&((E||$V(l))&&(s.values=b.getPayload(),s.toValues=$V(u)?null:k==Ez?[1]:rV(x)),s.immediate!=S&&(s.immediate=S,S||w||this._set(l)),E)){const{onRest:e}=s;tV(xH,(e=>CH(this,t,e)));const r=eH(this,gH(this,l));sV(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&T_.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?Lz(a.onRest,r):s.onStart?.(r,this)}))}w&&this._set(y),m?n(nH(t.to,t,this._state,this)):E?this._start():dH(this)&&!p?this._pendingCalls.add(n):n(Jz(y))}_focus(e){const t=this.animation;e!==t.to&&(UV(this)&&this._detach(),t.to=e,UV(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;$V(t)&&(qV(t,this),aH(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;$V(e)&&YV(e,this)}_set(e,t=!0){const n=WV(e);if(!J_.und(n)){const e=yz(this);if(!e||!eV(n,e.getValue())){const r=Mz(n);e&&e.constructor==r?e.setValue(n):xz(this,r.create(n)),e&&T_.batchedUpdates((()=>{this._onChange(n,t)}))}}return yz(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,SH(this,"onStart",eH(this,gH(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Lz(this.animation.onChange,e,this)),Lz(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;yz(this).reset(WV(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),dH(this)||(pH(this,!0),fH(this)||this._resume())}_resume(){Z_.skipAnimation?this.finish():vV.start(this)}_stop(e,t){if(dH(this)){pH(this,!1);const n=this.animation;tV(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),KV(this,{type:"idle",parent:this});const r=t?tH(this.get()):eH(this.get(),gH(this,e??n.to));sV(this._pendingCalls,r),n.changed&&(n.changed=!1,SH(this,"onRest",r,this))}}};function gH(e,t){const n=Wz(t);return eV(Wz(e.get()),n)}function vH(e,t=e.loop,n=e.to){const r=Lz(t);if(r){const o=!0!==r&&$z(r),i=(o||e).reverse,a=!o||o.reset;return bH({...e,loop:t,default:!1,pause:void 0,to:!i||Uz(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function bH(e){const{to:t,from:n}=e=$z(e),r=new Set;return J_.obj(t)&&yH(t,r),J_.obj(n)&&yH(n,r),e.keys=r.size?Array.from(r):null,e}function wH(e){const t=bH(e);return J_.und(t.default)&&(t.default=zz(t)),t}function yH(e,t){nV(e,((e,n)=>null!=e&&t.add(n)))}var xH=["onStart","onRest","onChange","onPause","onResume"];function CH(e,t,n){e.animation[n]=t[n]!==_z(t,n)?Fz(t[n],e.key):void 0}function SH(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var kH=["onStart","onChange","onRest"],EH=1,RH=class{constructor(e,t){this.id=EH++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];J_.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(bH(e)),this}start(e){let{queue:t}=this;return e?t=rV(e).map(bH):this.queue=[],this._flush?this._flush(this,t):(TH(this,t),PH(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;tV(rV(t),(t=>n[t].stop(!!e)))}else rH(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(J_.und(e))this.start({pause:!0});else{const t=this.springs;tV(rV(e),(e=>t[e].pause()))}return this}resume(e){if(J_.und(e))this.start({pause:!1});else{const t=this.springs;tV(rV(e),(e=>t[e].resume()))}return this}each(e){nV(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,oV(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&oV(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,oV(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}T_.onFrame(this._onFrame)}};function PH(e,t){return Promise.all(t.map((t=>NH(e,t)))).then((t=>Qz(e,t)))}async function NH(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=J_.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=J_.arr(o)||J_.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):tV(kH,(n=>{const r=t[n];if(J_.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,sV(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===_z(t,"cancel");(u||p&&d.asyncId)&&f.push(Zz(++e._lastAsyncId,{props:t,state:d,actions:{pause:Q_,resume:Q_,start(t,n){p?(rH(d,e._lastAsyncId),n(tH(e))):(t.onRest=s,n(nH(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const m=Qz(e,await Promise.all(f));if(a&&m.finished&&(!n||!m.noop)){const n=vH(t,a,o);if(n)return TH(e,[n]),NH(e,n,!0)}return l&&T_.batchedUpdates((()=>l(m,e,e.item))),m}function jH(e,t){const n={...e.springs};return t&&tV(rV(t),(e=>{J_.und(e.keys)&&(e=bH(e)),J_.obj(e.to)||(e={...e,to:void 0}),IH(n,e,(e=>AH(e)))})),MH(e,n),n}function MH(e,t){nV(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,qV(t,e))}))}function AH(e,t){const n=new hH;return n.key=e,t&&qV(n,t),n}function IH(e,t,n){t.keys&&tV(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function TH(e,t){tV(t,(t=>{IH(e.springs,t,(t=>AH(t,e)))}))}var OH=({children:e,...n})=>{const r=t.useContext(LH),o=n.pause||!!r.pause,i=n.immediate||!!r.immediate;n=function(e,n){const[r]=t.useState((()=>({inputs:n,result:e()}))),o=t.useRef(),i=o.current;let a=i;if(a){const t=Boolean(n&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,a.inputs));t||(a={inputs:n,result:e()})}else a=r;return t.useEffect((()=>{o.current=a,i==r&&(r.inputs=r.result=void 0)}),[a]),a.result}((()=>({pause:o,immediate:i})),[o,i]);const{Provider:s}=LH;return a.createElement(s,{value:n},e)},LH=function(e,t){return Object.assign(e,a.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(OH,{});OH.Provider=LH.Provider,OH.Consumer=LH.Consumer;var DH=()=>{const e=[],t=function(t){dz(`${lz}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return tV(e,((e,o)=>{if(J_.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return tV(e,(e=>e.pause(...arguments))),this},t.resume=function(){return tV(e,(e=>e.resume(...arguments))),this},t.set=function(t){tV(e,((e,n)=>{const r=J_.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return tV(e,((e,r)=>{if(J_.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return tV(e,(e=>e.stop(...arguments))),this},t.update=function(t){return tV(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return J_.fun(e)?e(n,t):e};return t._getProps=n,t};var FH=class extends lH{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=zV(...t);const n=this._get(),r=Mz(n);xz(this,r.create(n))}advance(e){const t=this._get();eV(t,this.get())||(yz(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&VH(this._active)&&zH(this)}_get(){const e=J_.arr(this.source)?this.source.map(WV):rV(WV(this.source));return this.calc(...e)}_start(){this.idle&&!VH(this._active)&&(this.idle=!1,tV(Cz(this),(e=>{e.done=!1})),Z_.skipAnimation?(T_.batchedUpdates((()=>this.advance())),zH(this)):vV.start(this))}_attach(){let e=1;tV(rV(this.source),(t=>{$V(t)&&qV(t,this),aH(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){tV(rV(this.source),(e=>{$V(e)&&YV(e,this)})),this._active.clear(),zH(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=rV(this.source).reduce(((e,t)=>Math.max(e,(aH(t)?t.priority:0)+1)),0))}};function _H(e){return!1!==e.idle}function VH(e){return!e.size||Array.from(e).every(_H)}function zH(e){e.idle||(e.idle=!0,tV(Cz(e),(e=>{e.done=!0})),KV(e,{type:"idle",parent:e}))}Z_.assign({createStringInterpolator:sz,to:(e,t)=>new FH(e,t)});var HH=/^--/;function BH(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||HH.test(e)||WH.hasOwnProperty(e)&&WH[e]?(""+t).trim():t+"px"}var $H={};var WH={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},UH=["Webkit","Ms","Moz","O"];WH=Object.keys(WH).reduce(((e,t)=>(UH.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),WH);var KH=/^(matrix|translate|scale|rotate|skew)/,GH=/^(translate)/,XH=/^(rotate|skew)/,qH=(e,t)=>J_.num(e)&&0!==e?e+t:e,YH=(e,t)=>J_.arr(e)?e.every((e=>YH(e,t))):J_.num(e)?e===t:parseFloat(e)===t,ZH=class extends Pz{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>qH(e,"px"))).join(",")})`,YH(e,0)]))),nV(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(KH.test(t)){if(delete r[t],J_.und(e))return;const n=GH.test(t)?"px":XH.test(t)?"deg":"";o.push(rV(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${qH(o,n)})`,YH(o,0)]:e=>[`${t}(${e.map((e=>qH(e,n))).join(",")})`,YH(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new QH(o,i)),super(r)}},QH=class extends GV{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return tV(this.inputs,((n,r)=>{const o=WV(n[0]),[i,a]=this.transforms[r](J_.arr(o)?o:n.map(WV));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&tV(this.inputs,(e=>tV(e,(e=>$V(e)&&qV(e,this)))))}observerRemoved(e){0==e&&tV(this.inputs,(e=>tV(e,(e=>$V(e)&&YV(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),KV(this,e)}};Z_.assign({batchedUpdates:n.unstable_batchedUpdates,createStringInterpolator:sz,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var JH=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Pz(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=Oz(e)||"Anonymous";return(e=J_.str(e)?i[e]||(i[e]=Az(e,o)):e[Tz]||(e[Tz]=Az(e,o))).displayName=`Animated(${t})`,e};return nV(e,((t,n)=>{J_.arr(e)&&(n=Oz(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:o,children:i,scrollTop:a,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:$H[t]||($H[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(const t in o)if(o.hasOwnProperty(t)){const n=BH(t,o[t]);HH.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==r&&(e.className=r),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new ZH(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),eB=JH.animated;const tB=e=>{if("undefined"!=typeof Intl&&"Segmenter"in Intl){const t=new Intl.Segmenter("en",{granularity:"grapheme"}).segment(e);return Array.from(t).map((e=>e.segment))}return[...e]};function nB(e,t,n){let r,o=n.initialDeps??[];function i(){var i,a,s,l;let c;n.key&&(null==(i=n.debug)?void 0:i.call(n))&&(c=Date.now());const u=e(),d=u.length!==o.length||u.some(((e,t)=>o[t]!==e));if(!d)return r;let f;if(o=u,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(f=Date.now()),r=t(...u),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-f))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,r),r}return i.updateDeps=e=>{o=e},i}function rB(e,t){if(void 0===e)throw new Error("Unexpected undefined");return e}const oB=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout((()=>t.apply(this,o)),n)}},iB=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},aB=e=>e,sB=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},lB=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(iB(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver((t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(iB(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()}));return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},cB={passive:!0},uB="undefined"==typeof window||"onscrollend"in window,dB=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&uB?()=>{}:oB(r,(()=>{t(o,!1)}),e.options.isScrollingResetDelay),a=r=>()=>{const{horizontal:a,isRtl:s}=e.options;o=a?n.scrollLeft*(s?-1:1):n.scrollTop,i(),t(o,r)},s=a(!0),l=a(!1);l(),n.addEventListener("scroll",s,cB);const c=e.options.useScrollendEvent&&uB;return c&&n.addEventListener("scrollend",l,cB),()=>{n.removeEventListener("scroll",s),c&&n.removeEventListener("scrollend",l)}},fB=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},pB=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const a=e+t;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class mB{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver((e=>{e.forEach((e=>{const t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()}))})):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,n])=>{void 0===n&&delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:aB,rangeExtractor:sB,onChange:()=>{},measureElement:fB,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=nB((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(e=>{this.notify(e)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach((e=>{this.observer.observe(e)})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,((e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let o=t-1;o>=0;o--){const t=e[o];if(n.has(t.lane))continue;const i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort(((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurementOptions=nB((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled]),((e,t,n,r,o)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o})),{key:!1}),this.getMeasurements=nB((()=>[this.getMeasurementOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o},i)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})));const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const s=this.measurementsCache.slice(0,a);for(let o=a;o<e;o++){const e=r(o),a=1===this.options.lanes?s[o-1]:this.getFurthestMeasurement(s,o),l=a?a.end+this.options.gap:t+n,c=i.get(e),u="number"==typeof c?c:this.options.estimateSize(o),d=l+u,f=a?a.lane:o%this.options.lanes;s[o]={index:o,start:l,size:u,end:d,key:e,lane:f}}return this.measurementsCache=s,s}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=nB((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes]),((e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const o=e.length-1,i=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:o};let a=hB(0,o,i,n),s=a;if(1===r)for(;s<o&&e[s].end<n+t;)s++;else if(r>1){const i=Array(r).fill(0);for(;s<o&&i.some((e=>e<n+t));){const t=e[s];i[t.lane]=t.end,s++}const l=Array(r).fill(n+t);for(;a>=0&&l.some((e=>e>=n));){const t=e[a];l[t.lane]=t.start,a--}a=Math.max(0,a-a%r),s=Math.min(o,s+(r-1-s%r))}return{startIndex:a,endIndex:s}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=nB((()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]}),((e,t,n,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,overscan:t,count:n})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;const o=r.key,i=this.elementsCache.get(o);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(o,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const n=this.measurementsCache[e];if(!n)return;const r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach(((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))}))},this.getVirtualItems=nB((()=>[this.getVirtualIndexes(),this.getMeasurements()]),((e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n}),{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return rB(t[hB(0,t.length-1,(e=>rB(t[e]).start),e)])},this.getOffsetForAlignment=(e,t,n=0)=>{const r=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getTotalSize()+this.options.scrollMargin-r;return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.measurementsCache[e];if(!n)return;const r=this.getSize(),o=this.getScrollOffset();if("auto"===t)if(n.end>=o+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=o+this.options.scrollPaddingStart))return[o,t];t="start"}const i="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let r=0;const o=t=>{if(!this.targetWindow)return;const r=this.getOffsetForIndex(e,t);if(!r)return void console.warn("Failed to get offset for index:",e);const[o,a]=r;this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame((()=>{const t=this.getScrollOffset(),n=this.getOffsetForIndex(e,a);n?((e,t)=>Math.abs(e-t)<1.01)(n[0],t)||i(a):console.warn("Failed to get offset for index:",e)}))},i=t=>{this.targetWindow&&(r++,r<10?this.targetWindow.requestAnimationFrame((()=>o(t))):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};o(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some((e=>null===e));){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter((e=>null!==e)))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const hB=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0};const gB="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function vB(e){return function(e){const t=a.useReducer((()=>({})),{})[1],r={...e,onChange:(r,o)=>{var i;o?n.flushSync(t):t(),null==(i=e.onChange)||i.call(e,r,o)}},[o]=a.useState((()=>new mB(r)));return o.setOptions(r),gB((()=>o._didMount()),[]),gB((()=>o._willUpdate())),o}({observeElementRect:lB,observeElementOffset:dB,scrollToFn:pB,...e})}
39
- /**
40
- * table-core
41
- *
42
- * Copyright (c) TanStack
43
- *
44
- * This source code is licensed under the MIT license found in the
45
- * LICENSE.md file in the root directory of this source tree.
46
- *
47
- * @license MIT
48
- */function bB(e,t){return"function"==typeof e?e(t):e}function wB(e,t){return n=>{t.setState((t=>({...t,[e]:bB(n,t[e])})))}}function yB(e){return e instanceof Function}function xB(e,t,n){let r,o=[];return()=>{let i;n.key&&n.debug&&(i=Date.now());const a=e(),s=a.length!==o.length||a.some(((e,t)=>o[t]!==e));if(!s)return r;let l;if(o=a,n.key&&n.debug&&(l=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-l))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function CB(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const SB={createTable:e=>{e.getHeaderGroups=xB((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>{var i,a;const s=null!=(i=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],l=null!=(a=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[];return kB(t,[...s,...n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=xB((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>kB(t,n=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=xB((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return kB(t,i,e,"left")}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=xB((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return kB(t,i,e,"right")}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=xB((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=xB((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=xB((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=xB((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=xB((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=xB((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=xB((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=xB((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=xB((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=xB((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=xB((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=xB((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var r,o,i,a,s,l;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map((e=>e.getLeafHeaders())).flat()}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})}};function kB(e,t,n,r){var o,i;let a=0;const s=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)}),0)};s(e);let l=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const a=[...i].reverse()[0];let s,l=!1;if(e.column.depth===o.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(e);else{const o=CB(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${i.filter((e=>e.column===s)).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o})),l.push(o),t>0&&c(i,t-1)},u=t.map(((e,t)=>CB(n,e,{depth:a,index:t})));c(u,a-1),l.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)}))):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(o=null==(i=l[0])?void 0:i.headers)?o:[]),l}const EB={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},RB={getDefaultColumnDef:()=>EB,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:wB("columnSizing",e),onColumnSizingInfoChange:wB("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:EB.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:EB.size),null!=(o=e.columnDef.maxSize)?o:EB.maxSize)},e.getStart=n=>{const r=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex((t=>t.id===e.id));if(o>0){const e=r[o-1];return e.getStart(n)+e.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o)return;if(null==i.persist||i.persist(),NB(i)&&i.touches&&i.touches.length>1)return;const a=e.getSize(),s=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[r.id,r.getSize()]],l=NB(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var r,o;const i="rtl"===t.options.columnResizeDirection?-1:1,a=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,s=Math.max(a/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*s,0))/100})),{...e,deltaOffset:a,deltaPercentage:s}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...c}))))},d=e=>u("move",e),f=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!=typeof document?document:null,m={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",m.moveHandler),null==p||p.removeEventListener("mouseup",m.upHandler),f(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",h.moveHandler),null==p||p.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof PB)return PB;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return PB=e,PB}()&&{passive:!1};NB(i)?(null==p||p.addEventListener("touchmove",h.moveHandler,g),null==p||p.addEventListener("touchend",h.upHandler,g)):(null==p||p.addEventListener("mousemove",m.moveHandler,g),null==p||p.addEventListener("mouseup",m.upHandler,g)),t.setColumnSizingInfo((e=>({...e,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let PB=null;function NB(e){return"touchstart"===e.type}const jB={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:wB("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=r,n=null!=(o=n)?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=a;return n}return r}))},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},MB=(e,t,n)=>{var r;const o=n.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};MB.autoRemove=e=>zB(e);const AB=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};AB.autoRemove=e=>zB(e);const IB=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};IB.autoRemove=e=>zB(e);const TB=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};TB.autoRemove=e=>zB(e)||!(null!=e&&e.length);const OB=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));OB.autoRemove=e=>zB(e)||!(null!=e&&e.length);const LB=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));LB.autoRemove=e=>zB(e)||!(null!=e&&e.length);const DB=(e,t,n)=>e.getValue(t)===n;DB.autoRemove=e=>zB(e);const FB=(e,t,n)=>e.getValue(t)==n;FB.autoRemove=e=>zB(e);const _B=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};_B.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(o)?1/0:o;if(i>a){const e=i;i=a,a=e}return[i,a]},_B.autoRemove=e=>zB(e)||zB(e[0])&&zB(e[1]);const VB={includesString:MB,includesStringSensitive:AB,equalsString:IB,arrIncludes:TB,arrIncludesAll:OB,arrIncludesSome:LB,equals:DB,weakEquals:FB,inNumberRange:_B};function zB(e){return null==e||""===e}const HB={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:wB("columnFilters",e),onGlobalFilterChange:wB("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?VB.includesString:"number"==typeof r?VB.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?VB.equals:Array.isArray(r)?VB.arrIncludes:VB.weakEquals},e.getFilterFn=()=>{var n,r;return yB(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:VB[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),i=bB(n,o?o.value:void 0);var a;if(BB(r,i,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:i};var l;return o?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?l:[]:null!=t&&t.length?[...t,s]:[s]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>VB.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return yB(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:VB[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=bB(t,e))?void 0:r.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(BB(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function BB(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const $B={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)}),0),min:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)})),r},extent:(e,t,n)=>{let r,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))})),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)})),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort(((e,t)=>e-t));return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},WB={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:wB("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,r,o,i;return null!=(n=null==(r=null!=(o=null==(i=e.columnDef.enableGrouping)||i)?o:t.options.enableGrouping)||r)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?$B.sum:"[object Date]"===Object.prototype.toString.call(r)?$B.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return yB(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:$B[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const UB={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:wB("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=xB((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e));r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)));if("remove"===n)return r;const o=t.map((t=>e.find((e=>e.id===t)))).filter(Boolean);return[...o,...r]}(o,t,n)}),{key:!1})}},KB={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:wB("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>bB(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let r=bB(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}}))},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,bB(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var r;let o=bB(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),e.getPageOptions=xB((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},GB={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:wB("columnPinning",e),onRowPinningChange:wB("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,i,a,s,l;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:o}=t.getState().columnPinning,i=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==o?void 0:o.includes(e)));return i?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],a=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],s=new Set([...a,e.id,...i]);t.setRowPinning((e=>{var t,r,o,i,a,l;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=s&&s.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=s&&s.has(e)))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter((e=>!(null!=s&&s.has(e)))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=s&&s.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=s&&s.has(e)))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=s&&s.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==o?void 0:o.includes(e)));return i?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=null==(n=t._getPinnedRows(o))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1},e.getCenterVisibleCells=xB((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.column.id)))}),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=xB((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})));return n}),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=xB((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})));return n}),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},e.getLeftLeafColumns=xB((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=xB((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=xB((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.id)))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(i=r.bottom)?void 0:i.length))},e._getPinnedRows=t=>xB((()=>[e.getRowModel().rows,e.getState().rowPinning[t]]),((n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=r?r:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=r?r:[]).map((e=>n.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:t})))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=xB((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!r.has(e.id)))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},XB={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:wB("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):o.forEach((e=>{delete r[e.id]})),r}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{qB(o,t.id,r,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=xB((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?YB(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=xB((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?YB(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=xB((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?YB(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some((e=>!n[e.id]))&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection((i=>{var a;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const s={...i};return qB(s,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),s}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return ZB(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===QB(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===QB(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},qB=(e,t,n,r,o)=>{var i;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=a.subRows)&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach((t=>qB(e,t.id,n,r,o)))};function YB(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map((e=>{var t;const a=ZB(e,n);if(a&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function ZB(e,t){var n;return null!=(n=t[e.id])&&n}function QB(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,i=!1;return e.subRows.forEach((e=>{if((!i||o)&&(e.getCanSelect()&&(ZB(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=QB(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}})),o?"all":!!i&&"some"}const JB=/([0-9]+)/gm;function e$(e,t){return e===t?0:e>t?1:-1}function t$(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function n$(e,t){const n=e.split(JB).filter(Boolean),r=t.split(JB).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),a=[o,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const r$={alphanumeric:(e,t,n)=>n$(t$(e.getValue(n)).toLowerCase(),t$(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>n$(t$(e.getValue(n)),t$(t.getValue(n))),text:(e,t,n)=>e$(t$(e.getValue(n)).toLowerCase(),t$(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>e$(t$(e.getValue(n)),t$(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>e$(e.getValue(n),t.getValue(n))},o$={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:wB("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return r$.datetime;if("string"==typeof n&&(r=!0,n.split(JB).length>1))return r$.alphanumeric}return r?r$.text:r$.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return yB(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:r$[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting((a=>{const s=null==a?void 0:a.find((t=>t.id===e.id)),l=null==a?void 0:a.findIndex((t=>t.id===e.id));let c,u=[],d=i?n:"desc"===o;var f;(c=null!=a&&a.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===c&&(i||o||(c="remove")),"add"===c)?(u=[...a,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):u="toggle"===c?a.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===c?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return u}))},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},i$={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:wB("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,r;return null==(n=null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=xB((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=xB((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{const t=(t,n)=>xB((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},a$=[SB,i$,UB,GB,HB,o$,WB,jB,KB,XB,RB];function s$(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:a$};const r=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let o={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;o=null!=(t=null==e.getInitialState?void 0:e.getInitialState(o))?t:o}));const i=[];let a=!1;const s={_features:a$,options:{...r,...e},initialState:o,_queue:e=>{i.push(e),a||(a=!0,Promise.resolve().then((()=>{for(;i.length;)i.shift()();a=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=bB(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var o;return null!=(o=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?o:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw new Error;return r},_getDefaultColumnDef:xB((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:xB((()=>[n._getColumnDefs()]),(e=>{const t=function(e,r,o){return void 0===o&&(o=0),e.map((e=>{const i=function(e,t,n,r){var o,i;const a={...e._getDefaultColumnDef(),...t},s=a.accessorKey;let l,c=null!=(o=null!=(i=a.id)?i:s?s.replace(".","_"):void 0)?o:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[a.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:l,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:xB((()=>[!0]),(()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:xB((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[u]}),{key:"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(n,e,o,r),a=e;return i.columns=a.columns?t(a.columns,i,o+1):[],i}))};return t(e)}),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:xB((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:xB((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:xB((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,s);for(let e=0;e<n._features.length;e++){const t=n._features[e];null==t||null==t.createTable||t.createTable(n)}return n}const l$=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)}))};return r(e),n}(s.subRows,(e=>e.subRows)),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:xB((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:xB((()=>[e,n,t,o]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue})),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach((r=>{null==r.createCell||r.createCell(o,n,t,e)}),{}),o}(e,s,t,t.id)))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:xB((()=>[s.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s};function c$(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var r;const o=[],i={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let u=0;u<e.length;u++){var c;let d=e[u];const f=l$(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(f.columnFilters=d.columnFilters,null!=(c=d.subRows)&&c.length&&r<a){if(f.subRows=s(d.subRows,r+1),d=f,t(d)&&!f.subRows.length){l.push(d),i[d.id]=d,o.push(d);continue}if(t(d)||f.subRows.length){l.push(d),i[d.id]=d,o.push(d);continue}}else d=f,t(d)&&(l.push(d),i[d.id]=d,o.push(d))}return l};return{rows:s(e),flatRows:o,rowsById:i}}(e,t,n):function(e,t,n){var r;const o=[],i={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let u=0;u<e.length;u++){let d=e[u];if(t(d)){var c;if(null!=(c=d.subRows)&&c.length&&r<a){const e=l$(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=s(d.subRows,r+1),d=e}l.push(d),o.push(d),i[d.id]=d}}return l};return{rows:s(e),flatRows:o,rowsById:i}}(e,t,n)}
49
- /**
50
- * react-table
51
- *
52
- * Copyright (c) TanStack
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */
59
- function u$(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?a.createElement(e,t):e:null;var n}const d$=({value:t,onChange:n,isSearching:r,placeholder:o})=>{const i=!0===r,a=null!=t&&t.length>0;return e.jsxs("div",{className:"relative w-full",children:[e.jsx("div",{className:"relative rounded-lg transition-all duration-500 ease-in-out",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-3 top-1/2 z-50 -translate-y-1/2",children:e.jsx(Pp,{className:jt("h-4 w-4 transition-all duration-500 ease-in-out",i&&a?"text-blue-400":"text-gray-400")})}),e.jsx("input",{type:"text",value:t,onChange:n,placeholder:o,className:"peer relative z-20 w-full rounded-lg bg-surface-secondary px-10 py-2 outline-none ring-0 backdrop-blur-sm transition-all duration-500 ease-in-out placeholder:text-gray-400 focus:outline-none focus:ring-0"}),e.jsx("div",{className:`pointer-events-none absolute inset-0 z-20 rounded-lg bg-gradient-to-r from-blue-500/20 via-purple-500/20 to-blue-500/20 transition-all duration-500 ease-in-out ${i&&a?"opacity-100 blur-sm":"opacity-0 blur-none"} `}),e.jsx("div",{className:`absolute right-3 top-1/2 z-20 -translate-y-1/2 transition-all duration-500 ease-in-out ${i&&a?"scale-100 opacity-100":"scale-0 opacity-0"} `,children:e.jsxs("div",{className:"relative h-2 w-2",children:[e.jsx("div",{className:"absolute inset-0 animate-ping rounded-full bg-blue-500/60"}),e.jsx("div",{className:"absolute inset-0 rounded-full bg-blue-500"})]})})]})}),e.jsx("div",{className:`absolute -inset-8 -z-10 transition-all duration-700 ease-in-out ${i&&a?"scale-105 opacity-100":"scale-100 opacity-0"} `,children:e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("div",{className:`bg-gradient-radial absolute inset-0 from-blue-500/10 to-transparent transition-opacity duration-700 ease-in-out ${i&&a?"animate-pulse-slow opacity-100":"opacity-0"} `}),e.jsx("div",{className:`absolute inset-0 bg-gradient-to-r from-purple-500/5 via-blue-500/5 to-purple-500/5 blur-xl transition-all duration-700 ease-in-out ${i&&a?"animate-gradient-x opacity-100":"opacity-0"} `})]})}),e.jsx("div",{className:"absolute inset-0 -z-20 scale-100 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-blue-500/10 opacity-0 blur-xl transition-all duration-500 ease-in-out peer-focus:scale-105 peer-focus:opacity-100"})]})};const f$=t.forwardRef(((t,n)=>{const{className:r="icon-md",size:o="1.2em"}=t;return e.jsx("svg",{ref:n,fill:"none",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:o,width:o,className:jt(r),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2929 4.29291C15.0641 2.52167 17.9359 2.52167 19.7071 4.2929C21.4783 6.06414 21.4783 8.93588 19.7071 10.7071L18.7073 11.7069L11.1603 19.2539C10.7182 19.696 10.1489 19.989 9.53219 20.0918L4.1644 20.9864C3.84584 21.0395 3.52125 20.9355 3.29289 20.7071C3.06453 20.4788 2.96051 20.1542 3.0136 19.8356L3.90824 14.4678C4.01103 13.8511 4.30396 13.2818 4.7461 12.8397L13.2929 4.29291ZM13 7.41422L6.16031 14.2539C6.01293 14.4013 5.91529 14.591 5.88102 14.7966L5.21655 18.7835L9.20339 18.119C9.40898 18.0847 9.59872 17.9871 9.7461 17.8397L16.5858 11L13 7.41422ZM18 9.5858L14.4142 6.00001L14.7071 5.70712C15.6973 4.71693 17.3027 4.71693 18.2929 5.70712C19.2831 6.69731 19.2831 8.30272 18.2929 9.29291L18 9.5858Z",fill:"currentColor"})})}));function p$({className:t="m-auto",size:n=20,color:r="currentColor",bgOpacity:o=.1,speed:i=.75}){const a={"--spinner-speed":`${i}s`};return e.jsxs("svg",{className:jt(t,"spinner"),width:n,height:n,viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",style:a,children:[e.jsx("defs",{children:e.jsx("style",{type:"text/css",children:"\n .spinner {\n transform-origin: center;\n overflow: visible;\n animation: spinner-rotate var(--spinner-speed) linear infinite;\n }\n @keyframes spinner-rotate {\n to { transform: rotate(360deg); }\n }\n "})}),e.jsx("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:r,strokeOpacity:o}),e.jsx("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:r,strokeDasharray:"25 75",strokeLinecap:"round"})]})}function m$({className:t=""}){return e.jsx("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0633 5.67375C18.5196 5.98487 18.6374 6.607 18.3262 7.06331L10.8262 18.0633C10.6585 18.3093 10.3898 18.4678 10.0934 18.4956C9.79688 18.5234 9.50345 18.4176 9.29289 18.2071L4.79289 13.7071C4.40237 13.3166 4.40237 12.6834 4.79289 12.2929C5.18342 11.9023 5.81658 11.9023 6.20711 12.2929L9.85368 15.9394L16.6738 5.93664C16.9849 5.48033 17.607 5.36263 18.0633 5.67375Z",fill:"currentColor"})})}function h$({className:t=""}){return e.jsx("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt("icon-md h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5555 4C10.099 4 9.70052 4.30906 9.58693 4.75114L9.29382 5.8919H14.715L14.4219 4.75114C14.3083 4.30906 13.9098 4 13.4533 4H10.5555ZM16.7799 5.8919L16.3589 4.25342C16.0182 2.92719 14.8226 2 13.4533 2H10.5555C9.18616 2 7.99062 2.92719 7.64985 4.25342L7.22886 5.8919H4C3.44772 5.8919 3 6.33961 3 6.8919C3 7.44418 3.44772 7.8919 4 7.8919H4.10069L5.31544 19.3172C5.47763 20.8427 6.76455 22 8.29863 22H15.7014C17.2354 22 18.5224 20.8427 18.6846 19.3172L19.8993 7.8919H20C20.5523 7.8919 21 7.44418 21 6.8919C21 6.33961 20.5523 5.8919 20 5.8919H16.7799ZM17.888 7.8919H6.11196L7.30423 19.1057C7.3583 19.6142 7.78727 20 8.29863 20H15.7014C16.2127 20 16.6417 19.6142 16.6958 19.1057L17.888 7.8919ZM10 10C10.5523 10 11 10.4477 11 11V16C11 16.5523 10.5523 17 10 17C9.44772 17 9 16.5523 9 16V11C9 10.4477 9.44772 10 10 10ZM14 10C14.5523 10 15 10.4477 15 11V16C15 16.5523 14.5523 17 14 17C13.4477 17 13 16.5523 13 16V11C13 10.4477 13.4477 10 14 10Z",fill:"currentColor"})})}const g$=t.memo((({checked:t,onChange:n,ariaLabel:r})=>e.jsx("div",{role:"button",tabIndex:0,onKeyDown:e=>e.stopPropagation(),className:"flex h-full w-[30px] items-center justify-center",onClick:e=>e.stopPropagation(),children:e.jsx(em,{checked:t,onCheckedChange:n,"aria-label":r})})));g$.displayName="SelectionCheckbox";const v$=t.memo((({row:n,isSmallScreen:r,onSelectionChange:o,index:i,isSearching:a})=>{const s=t.useCallback((e=>{n.toggleSelected(e),o?.(n.id,e)}),[n,o]);return e.jsx(MS,{"data-state":n.getIsSelected()?"selected":void 0,className:"motion-safe:animate-fadeIn border-b border-border-light transition-all duration-300 ease-out hover:bg-surface-secondary",style:{animationDelay:20*i+"ms",transform:`translateY(${a?"4px":"0"})`,opacity:a?.5:1},children:n.getVisibleCells().map((t=>"select"===t.column.id?e.jsx(IS,{className:"px-2 py-1 transition-all duration-300",children:e.jsx(g$,{checked:n.getIsSelected(),onChange:s,ariaLabel:"Select row"})},t.id):e.jsx(IS,{className:"w-0 max-w-0 px-2 py-1 align-middle text-xs transition-all duration-300 sm:px-4 sm:py-2 sm:text-sm",style:b$(t.column.columnDef,r),children:e.jsx("div",{className:"overflow-hidden text-ellipsis",children:u$(t.column.columnDef.cell,t.getContext())})},t.id)))})}));function b$(e,t){return{width:t?e.meta?.mobileSize:e.meta?.size,minWidth:e.meta?.minWidth,maxWidth:e.meta?.size}}const w$=t.memo((({onDelete:t,isDeleting:n,disabled:r,isSmallScreen:o})=>t?e.jsx(zp,{variant:"outline",onClick:t,disabled:r,className:jt("min-w-[40px] transition-all duration-200",o&&"px-2 py-1"),children:n?e.jsx(p$,{className:"size-4"}):e.jsxs(e.Fragment,{children:[e.jsx(h$,{className:"size-3.5 text-red-400 sm:size-4"}),!o&&e.jsx("span",{className:"ml-2",children:"Delete"})]})}):null));class y${constructor(e,t,n,r,o,i,a,s){this.width=e.width,this.height=e.height,this.ctx=t,this.x=n,this.y=r,this.color=o,this.speed=this.random(.1,.9)*i,this.size=0,this.sizeStep=.4*Math.random(),this.minSize=.5,this.maxSizeInteger=2,this.maxSize=this.random(this.minSize,this.maxSizeInteger),this.delay=a,this.counter=0,this.counterStep=4*Math.random()+.01*(this.width+this.height),this.isIdle=!1,this.isReverse=!1,this.isShimmer=!1,this.activationThreshold=s}random(e,t){return Math.random()*(t-e)+e}draw(){const e=.5*this.maxSizeInteger-.5*this.size;this.ctx.fillStyle=this.color,this.ctx.fillRect(this.x+e,this.y+e,this.size,this.size)}appear(){this.isIdle=!1,this.counter<=this.delay?this.counter+=this.counterStep:(this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.draw())}appearWithProgress(e){if(e-this.activationThreshold<=0)this.isIdle=!0;else{if(this.counter<=this.delay)return this.counter+=this.counterStep,void(this.isIdle=!1);this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.isIdle=!1,this.draw()}}disappear(){this.isShimmer=!1,this.counter=0,this.size<=0?this.isIdle=!0:(this.size-=.1,this.draw())}shimmer(){this.size>=this.maxSize?this.isReverse=!0:this.size<=this.minSize&&(this.isReverse=!1),this.size+=this.isReverse?-this.speed:this.speed}}const x$=(e,t)=>{const n=parseInt(String(e),10);return n<=0||t?0:n>=100?.1:.001*n},C$=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),S$={default:{gap:5,speed:35,colors:"#f8fafc,#f1f5f9,#cbd5e1",noFocus:!1},blue:{gap:10,speed:25,colors:"#e0f2fe,#7dd3fc,#0ea5e9",noFocus:!1},yellow:{gap:3,speed:20,colors:"#fef08a,#fde047,#eab308",noFocus:!1},pink:{gap:6,speed:80,colors:"#fecdd3,#fda4af,#e11d48",noFocus:!0}};const k$=t.forwardRef((({children:t,handleFileChange:n},r)=>e.jsxs(e.Fragment,{children:[t,e.jsx("input",{ref:r,multiple:!0,type:"file",style:{display:"none"},onChange:n})]})));function E$(e,t){return 0===e.length?t||"Select...":1===e.length?e[0]:`${e.length} items selected`}k$.displayName="FileUpload";const R$=({items:t,menuId:n,keyPrefix:r,className:o,iconClassName:i,itemClassName:a,modal:s,portal:l,sameWidth:c,gutter:u=8,finalFocus:d,unmountOnHide:f,preserveTabOrder:p})=>{const m=Hc();return e.jsx(Yc,{id:n,modal:s,gutter:u,portal:l,sameWidth:c,finalFocus:d,unmountOnHide:f,preserveTabOrder:p,className:jt("popover-ui z-50",o),children:t.filter((e=>!1!==e.show)).map(((t,n)=>!0===t.separate?e.jsx(tu,{className:"my-1 h-px bg-white/10"},n):e.jsxs(Jc,{id:t.id,className:jt("group flex w-full cursor-pointer items-center gap-2 rounded-lg px-3 py-3.5 text-sm text-text-primary outline-none transition-colors duration-200 hover:bg-surface-hover focus:bg-surface-hover md:px-2.5 md:py-2",a),disabled:t.disabled,render:t.render,ref:t.ref,hideOnClick:t.hideOnClick,onClick:e=>{e.preventDefault(),t.onClick&&t.onClick(e),!1!==t.hideOnClick&&m?.hide()},children:[null!=t.icon&&e.jsx("span",{className:jt("mr-2 size-4",i),"aria-hidden":"true",children:t.icon}),t.label,null!=t.kbd&&e.jsxs("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline group-focus:inline dark:text-white/50",children:["⌘",t.kbd]})]},`${r??""}${n}-${t.id??""}`)))})},P$=({theme:n,onChange:r})=>{const o={system:e.jsx(kp,{}),dark:e.jsx(Ep,{color:"white"}),light:e.jsx(Np,{})},i="dark"===n?"light":"dark",a=`Switch to ${i} theme`;return t.useEffect((()=>{const e=e=>{e.ctrlKey&&e.shiftKey&&"t"===e.key.toLowerCase()&&(e.preventDefault(),r(i))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[i,r]),e.jsx("button",{className:"flex items-center gap-2 rounded-lg p-2 transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","aria-label":a,"aria-keyshortcuts":"Ctrl+Shift+T",onClick:e=>{e.preventDefault(),r(i)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r(i))},children:o[n]})},N$=a.forwardRef((({icon:n,label:r,setValue:o,className:i,checked:a,defaultChecked:s,isCheckedClassName:l},c)=>{const u=Tc(),d=Co(u,(e=>e?.value));return t.useEffect((()=>{void 0!==a&&u.setValue(a)}),[a,u]),t.useEffect((()=>{void 0!==s&&void 0===a&&u.setValue(s)}),[s,a,u]),e.jsxs(Vc,{ref:c,store:u,onChange:e=>{e.stopPropagation(),"boolean"==typeof d&&o?.({e:e,value:!d})},className:jt("group relative inline-flex items-center justify-center gap-1.5","rounded-full border border-border-medium text-sm font-medium","size-9 p-2 transition-all md:w-full md:p-3","bg-transparent shadow-sm hover:bg-surface-hover hover:shadow-md active:shadow-inner",d&&l&&l,i),render:e.jsx("button",{type:"button","aria-label":r}),children:[n&&e.jsx("span",{className:"icon-md text-text-primary",children:n}),e.jsx("span",{className:"hidden truncate md:block",children:r})]})}));N$.displayName="CheckboxButton";const j$=t.forwardRef(((t,n)=>{const{title:r,description:o,main:i,buttons:a,leftButtons:s,selection:l,className:c,headerClassName:u,footerClassName:d,showCloseButton:f,showCancelButton:p=!0}=t,{selectHandler:m,selectClasses:h,selectText:g}=l||{};return e.jsxs(Aw,{showCloseButton:f,ref:n,className:jt("shadow-2xl dark:bg-gray-700",c||""),onClick:e=>e.stopPropagation(),children:[e.jsxs(Iw,{className:jt(u??""),children:[e.jsx(Ow,{className:"text-lg font-medium leading-6 text-gray-800 dark:text-gray-200",children:r}),o&&e.jsx(Lw,{className:"text-gray-600 dark:text-gray-300",children:o})]}),e.jsx("div",{className:"px-6",children:i||null}),e.jsxs(Tw,{className:d,children:[e.jsx("div",{children:s||null}),e.jsxs("div",{className:"flex h-auto gap-3",children:[p&&e.jsx(Dw,{className:"border-gray-100 hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-600",children:"cancel"}),a||null,l?e.jsx(Dw,{onClick:m,className:`${h||"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} inline-flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm`,children:g}):null]})]})]})})),M$="undefined"!=typeof document?t.useLayoutEffect:()=>{};const A$=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},I$=e=>{if(e&&"window"in e&&e.window===e)return e;return A$(e).defaultView||window};function T$(e){return null!==(t=e)&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e;var t}let O$=!1;function L$(){return O$}function D$(e,t){if(!L$())return!(!t||!e)&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:T$(n)?n.host:n.parentNode}return!1}const F$=(e=document)=>{var t;if(!L$())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function _$(e){return L$()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function V$(e){let t=null;return()=>(null==t&&(t=e()),t)}const z$=V$((function(){return function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}(/^Mac/i)})),H$=V$((function(){return function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}(/Android/i)}));function B$(){let e=t.useRef(new Map),n=t.useCallback(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)}),[]),r=t.useCallback(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),o=t.useCallback((()=>{e.current.forEach(((e,t)=>{r(e.eventTarget,e.type,t,e.options)}))}),[r]);return t.useEffect((()=>o),[o]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:o}}function $$(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function W$(e){let n=t.useRef({isFocused:!1,observer:null});M$((()=>{const e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let r=function(e){const n=t.useRef(null);return M$((()=>{n.current=e}),[e]),t.useCallback(((...e)=>{const t=n.current;return null==t?void 0:t(...e)}),[])}((t=>{null==e||e(t)}));return t.useCallback((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let t=e.target,o=e=>{if(n.current.isFocused=!1,t.disabled){let t=$$(e);r(t)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};t.addEventListener("focusout",o,{once:!0}),n.current.observer=new MutationObserver((()=>{if(n.current.isFocused&&t.disabled){var e;null===(e=n.current.observer)||void 0===e||e.disconnect();let r=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}})),n.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}}),[r])}let U$=!1,K$=null,G$=new Set,X$=new Map,q$=!1,Y$=!1;const Z$={Tab:!0,Escape:!0};function Q$(e,t){for(let n of G$)n(e,t)}function J$(e){q$=!0,function(e){return!(e.metaKey||!z$()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(K$="keyboard",Q$("keyboard",e))}function eW(e){K$="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(q$=!0,Q$("pointer",e))}function tW(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(H$()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(q$=!0,K$="virtual")}function nW(e){e.target!==window&&e.target!==document&&!U$&&e.isTrusted&&(q$||Y$||(K$="virtual",Q$("virtual",e)),q$=!1,Y$=!1)}function rW(){q$=!1,Y$=!0}function oW(e){if("undefined"==typeof window||"undefined"==typeof document||X$.get(I$(e)))return;const t=I$(e),n=A$(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){q$=!0,r.apply(this,arguments)},n.addEventListener("keydown",J$,!0),n.addEventListener("keyup",J$,!0),n.addEventListener("click",tW,!0),t.addEventListener("focus",nW,!0),t.addEventListener("blur",rW,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",eW,!0),n.addEventListener("pointermove",eW,!0),n.addEventListener("pointerup",eW,!0)),t.addEventListener("beforeunload",(()=>{iW(e)}),{once:!0}),X$.set(t,{focus:r})}const iW=(e,t)=>{const n=I$(e),r=A$(e);t&&r.removeEventListener("DOMContentLoaded",t),X$.has(n)&&(n.HTMLElement.prototype.focus=X$.get(n).focus,r.removeEventListener("keydown",J$,!0),r.removeEventListener("keyup",J$,!0),r.removeEventListener("click",tW,!0),n.removeEventListener("focus",nW,!0),n.removeEventListener("blur",rW,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",eW,!0),r.removeEventListener("pointermove",eW,!0),r.removeEventListener("pointerup",eW,!0)),X$.delete(n))};function aW(){return"pointer"!==K$}"undefined"!=typeof document&&function(e){const t=A$(e);let n;"loading"!==t.readyState?oW(e):(n=()=>{oW(e)},t.addEventListener("DOMContentLoaded",n))}();const sW=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function lW(e,n,r){oW(),t.useEffect((()=>{let t=(t,n)=>{(function(e,t,n){let r=A$(null==n?void 0:n.target);const o="undefined"!=typeof window?I$(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?I$(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?I$(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?I$(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!sW.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof s&&!Z$[n.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(aW())};return G$.add(t),()=>{G$.delete(t)}}),n)}function cW(e){let{isDisabled:n,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:i}=e,a=t.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=B$(),c=t.useCallback((e=>{e.currentTarget.contains(e.target)&&a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,l(),r&&r(e),i&&i(!1))}),[r,i,a,l]),u=W$(c),d=t.useCallback((e=>{if(!e.currentTarget.contains(e.target))return;const t=A$(e.target),n=F$(t);if(!a.current.isFocusWithin&&n===_$(e.nativeEvent)){o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,u(e);let n=e.currentTarget;s(t,"focus",(e=>{if(a.current.isFocusWithin&&!D$(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});!function(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}(r,n);let o=$$(r);c(o)}}),{capture:!0})}}),[o,i,u,s,c]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:c}}}let uW=!1,dW=0;function fW(e){"touch"===e.pointerType&&(uW=!0,setTimeout((()=>{uW=!1}),50))}function pW(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",fW),dW++,()=>{dW--,dW>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",fW)}}function mW(e){let{onHoverStart:n,onHoverChange:r,onHoverEnd:o,isDisabled:i}=e,[a,s]=t.useState(!1),l=t.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;t.useEffect(pW,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=B$(),{hoverProps:d,triggerHoverEnd:f}=t.useMemo((()=>{let e=(e,t)=>{let n=l.target;l.pointerType="",l.target=null,"touch"!==t&&l.isHovered&&n&&(l.isHovered=!1,u(),o&&o({type:"hoverend",target:n,pointerType:t}),r&&r(!1),s(!1))},t={};return"undefined"!=typeof PointerEvent&&(t.onPointerEnter=t=>{uW&&"mouse"===t.pointerType||((t,o)=>{if(l.pointerType=o,i||"touch"===o||l.isHovered||!t.currentTarget.contains(t.target))return;l.isHovered=!0;let a=t.currentTarget;l.target=a,c(A$(t.target),"pointerover",(t=>{l.isHovered&&l.target&&!D$(l.target,t.target)&&e(t,t.pointerType)}),{capture:!0}),n&&n({type:"hoverstart",target:a,pointerType:o}),r&&r(!0),s(!0)})(t,t.pointerType)},t.onPointerLeave=t=>{!i&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:t,triggerHoverEnd:e}}),[n,r,o,i,l,c,u]);return t.useEffect((()=>{i&&f({currentTarget:l.target},l.pointerType)}),[i]),{hoverProps:d,isHovered:a}}function hW(e={}){let{autoFocus:n=!1,isTextInput:r,within:o}=e,i=t.useRef({isFocused:!1,isFocusVisible:n||aW()}),[a,s]=t.useState(!1),[l,c]=t.useState((()=>i.current.isFocused&&i.current.isFocusVisible)),u=t.useCallback((()=>c(i.current.isFocused&&i.current.isFocusVisible)),[]),d=t.useCallback((e=>{i.current.isFocused=e,s(e),u()}),[u]);lW((e=>{i.current.isFocusVisible=e,u()}),[],{isTextInput:r});let{focusProps:f}=function(e){let{isDisabled:n,onFocus:r,onBlur:o,onFocusChange:i}=e;const a=t.useCallback((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),s=W$(a),l=t.useCallback((e=>{const t=A$(e.target),n=t?F$(t):F$();e.target===e.currentTarget&&n===_$(e.nativeEvent)&&(r&&r(e),i&&i(!0),s(e))}),[i,r,s]);return{focusProps:{onFocus:!n&&(r||i||o)?l:void 0,onBlur:n||!o&&!i?void 0:a}}}({isDisabled:o,onFocusChange:d}),{focusWithinProps:p}=cW({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:o?p:f}}var gW=Object.defineProperty,vW=(e,t,n)=>(((e,t,n)=>{t in e?gW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let bW=new class{constructor(){vW(this,"current",this.detect()),vW(this,"handoffState","pending"),vW(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function wW(e){var t,n;return bW.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?null!=(n=null==(t=e.current)?void 0:t.ownerDocument)?n:document:null:document}function yW(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function xW(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return yW((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=xW();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function CW(){let[e]=t.useState(xW);return t.useEffect((()=>()=>e.dispose()),[e]),e}let SW=(e,n)=>{bW.isServer?t.useEffect(e,n):t.useLayoutEffect(e,n)};function kW(e){let n=t.useRef(e);return SW((()=>{n.current=e}),[e]),n}let EW=function(e){let n=kW(e);return t.useCallback(((...e)=>n.current(...e)),[n])};let RW=t.createContext(void 0);function PW(){return t.useContext(RW)}function NW(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function jW(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jW),r}var MW=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(MW||{}),AW=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(AW||{});function IW(){let e=function(){let e=t.useRef([]),n=t.useCallback((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...t)=>{if(!t.every((e=>null==e)))return e.current=t,n}}();return t.useCallback((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:OW;let l=LW(t,e);if(i)return TW(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return TW(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return jW(e?0:1,{0:()=>null,1:()=>TW({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return TW(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function TW(e,n={},r,o,i){let{as:a=r,children:s,refName:l="ref",...c}=VW(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof s?s(n):s;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(n)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let f={};if(n){let e=!1,t=[];for(let[r,o]of Object.entries(n))"boolean"==typeof o&&(e=!0),!0===o&&t.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){f["data-headlessui-state"]=t.join(" ");for(let e of t)f[`data-${e}`]=""}}if(a===t.Fragment&&(Object.keys(_W(c)).length>0||Object.keys(_W(f)).length>0)){if(t.isValidElement(d)&&!(Array.isArray(d)&&d.length>1)){let e=d.props,n=null==e?void 0:e.className,r="function"==typeof n?(...e)=>NW(n(...e),c.className):NW(n,c.className),o=r?{className:r}:{},a=LW(d.props,_W(VW(c,["ref"])));for(let e in f)e in a&&delete f[e];return t.cloneElement(d,Object.assign({},a,f,u,{ref:i(zW(d),u.ref)},o))}if(Object.keys(_W(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(_W(c)).concat(Object.keys(_W(f))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return t.createElement(a,Object.assign({},VW(c,["ref"]),a!==t.Fragment&&u,a!==t.Fragment&&f),d)}function OW(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function LW(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function DW(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){let r=n[e];for(let e of r)null==e||e(...t)}});return t}function FW(e){var n;return Object.assign(t.forwardRef(e),{displayName:null!=(n=e.displayName)?n:e.name})}function _W(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function VW(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function zW(e){return t.version.split(".")[0]>="19"?e.props.ref:e.ref}function HW(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))$W(n,BW(t,r),o);return n}function BW(e,t){return e?e+"["+t+"]":t}function $W(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())$W(e,BW(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):HW(n,t,e)}var WW=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(WW||{});let UW=FW((function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":2==(2&r)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:4==(4&r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}};return IW()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})})),KW=t.createContext(null);function GW({children:e}){let r=t.useContext(KW);if(!r)return t.createElement(t.Fragment,null,e);let{target:o}=r;return o?n.createPortal(t.createElement(t.Fragment,null,e),o):null}function XW({data:e,form:n,disabled:r,onReset:o,overrides:i}){let[a,s]=t.useState(null),l=CW();return t.useEffect((()=>{if(o&&a)return l.addEventListener(a,"reset",o)}),[a,n,o]),t.createElement(GW,null,t.createElement(qW,{setForm:s,formId:n}),HW(e).map((([e,o])=>t.createElement(UW,{features:WW.Hidden,..._W({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:e,value:o,...i})}))))}function qW({setForm:e,formId:n}){return t.useEffect((()=>{if(n){let t=document.getElementById(n);t&&e(t)}}),[e,n]),n?null:t.createElement(UW,{features:WW.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}let YW=t.createContext(void 0);function ZW(){return t.useContext(YW)}function QW(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function JW(e){return QW(e)&&"tagName"in e}function eU(e){return JW(e)&&"accessKey"in e}function tU(e){return JW(e)&&"tabIndex"in e}function nU(e){return eU(e)&&"INPUT"===e.nodeName}function rU(e){return eU(e)&&"LABEL"===e.nodeName}function oU(e){return eU(e)&&"FIELDSET"===e.nodeName}function iU(e){return eU(e)&&"LEGEND"===e.nodeName}function aU(e){let t=e.parentElement,n=null;for(;t&&!oU(t);)iU(t)&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(iU(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}let sU=Symbol();function lU(...e){let n=t.useRef(e);t.useEffect((()=>{n.current=e}),[e]);let r=EW((e=>{for(let t of n.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[sU])))?void 0:r}let cU=t.createContext(null);function uU(){let e=t.useContext(cU);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,uU),e}return e}cU.displayName="DescriptionContext";let dU=FW((function(e,n){let r=t.useId(),o=PW(),{id:i=`headlessui-description-${r}`,...a}=e,s=uU(),l=lU(n);SW((()=>s.register(i)),[i,s.register]);let c=o||!1,u=t.useMemo((()=>({...s.slot,disabled:c})),[s.slot,c]),d={ref:l,...s.props,id:i};return IW()({ourProps:d,theirProps:a,slot:u,defaultTag:"p",name:s.name||"Description"})}));Object.assign(dU,{});var fU=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(fU||{});let pU=t.createContext(null);function mU(){let e=t.useContext(pU);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,mU),e}return e}function hU(e){var n,r,o;let i=null!=(r=null==(n=t.useContext(pU))?void 0:n.value)?r:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[i,...e].filter(Boolean).join(" "):i}function gU({inherit:e=!1}={}){let n=hU(),[r,o]=t.useState([]),i=e?[n,...r].filter(Boolean):r;return[i.length>0?i.join(" "):void 0,t.useMemo((()=>function(e){let n=EW((e=>(o((t=>[...t,e])),()=>o((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=t.useMemo((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return t.createElement(pU.Provider,{value:r},e.children)}),[o])]}pU.displayName="LabelContext";let vU=FW((function(e,n){var r;let o=t.useId(),i=mU(),a=ZW(),s=PW(),{id:l=`headlessui-label-${o}`,htmlFor:c=(null!=a?a:null==(r=i.props)?void 0:r.htmlFor),passive:u=!1,...d}=e,f=lU(n);SW((()=>i.register(l)),[l,i.register]);let p=EW((e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!function(e){return!!JW(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}(e.target))&&(rU(t)&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),rU(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(nU(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),m=s||!1,h=t.useMemo((()=>({...i.slot,disabled:m})),[i.slot,m]),g={ref:f,...i.props,id:l,htmlFor:c,onClick:p};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in d&&delete d.onClick),IW()({ourProps:g,theirProps:d,slot:h,defaultTag:c?"label":"div",name:i.name||"Label"})})),bU=Object.assign(vU,{});function wU(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function yU(e,n=!1){let[r,o]=t.useReducer((()=>({})),{}),i=t.useMemo((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,r]);return SW((()=>{if(!e)return;let t=new ResizeObserver(o);return t.observe(e),()=>{t.disconnect()}}),[e]),n?{width:`${i.width}px`,height:`${i.height}px`}:i}let xU=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}};var CU,SU,kU,EU=Object.defineProperty,RU=(e,t,n)=>(((e,t,n)=>{t in e?EU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n),PU=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},NU=(e,t,n)=>(PU(e,t,"read from private field"),n?n.call(e):t.get(e)),jU=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},MU=(e,t,n,r)=>(PU(e,t,"write to private field"),t.set(e,n),n);let AU=class{constructor(e){jU(this,CU,{}),jU(this,SU,new xU((()=>new Set))),jU(this,kU,new Set),RU(this,"disposables",xW()),MU(this,CU,e)}dispose(){this.disposables.dispose()}get state(){return NU(this,CU)}subscribe(e,t){let n={selector:e,callback:t,current:e(NU(this,CU))};return NU(this,kU).add(n),this.disposables.add((()=>{NU(this,kU).delete(n)}))}on(e,t){return NU(this,SU).get(e).add(t),this.disposables.add((()=>{NU(this,SU).get(e).delete(t)}))}send(e){let t=this.reduce(NU(this,CU),e);if(t!==NU(this,CU)){MU(this,CU,t);for(let e of NU(this,kU)){let t=e.selector(NU(this,CU));IU(e.current,t)||(e.current=t,e.callback(t))}for(let t of NU(this,SU).get(e.type))t(NU(this,CU),e)}}};function IU(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&TU(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&TU(e.entries(),t.entries()):!(!OU(e)||!OU(t))&&TU(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function TU(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function OU(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function LU(e){let[t,n]=e(),r=xW();return(...e)=>{t(...e),r.dispose(),r.microTask(n)}}CU=new WeakMap,SU=new WeakMap,kU=new WeakMap;var DU=Object.defineProperty,FU=(e,t,n)=>(((e,t,n)=>{t in e?DU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),_U=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(_U||{});let VU={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}},zU=class e extends AU{constructor(){super(...arguments),FU(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),FU(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new e({stack:[]})}reduce(e,t){return jW(t.type,VU,e,t)}};const HU=new xU((()=>zU.new()));var BU={exports:{}},$U={},WU=t;var UU="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},KU=WU.useSyncExternalStore,GU=WU.useRef,XU=WU.useEffect,qU=WU.useMemo,YU=WU.useDebugValue;$U.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=GU(null);if(null===i.current){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=qU((function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==o&&a.hasValue){var t=a.value;if(o(t,e))return s=t}return s=e}if(t=s,UU(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(i=e,t):(i=e,s=n)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var s=KU(e,i[0],i[1]);return XU((function(){a.hasValue=!0,a.value=s}),[s]),YU(s),s},BU.exports=$U;var ZU=BU.exports;function QU(e,t,n=IU){return ZU.useSyncExternalStoreWithSelector(EW((t=>e.subscribe(JU,t))),EW((()=>e.state)),EW((()=>e.state)),EW(t),n)}function JU(e){return e}function eK(e,n){let r=t.useId(),o=HU.get(n),[i,a]=QU(o,t.useCallback((e=>[o.selectors.isTop(e,r),o.selectors.inStack(e,r)]),[o,r]));return SW((()=>{if(e)return o.actions.push(r),()=>o.actions.pop(r)}),[o,e,r]),!!e&&(!a||i)}let tK=new Map,nK=new Map;function rK(e){var t;let n=null!=(t=nK.get(e))?t:0;return nK.set(e,n+1),0!==n||(tK.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>oK(e)}function oK(e){var t;let n=null!=(t=nK.get(e))?t:1;if(1===n?nK.delete(e):nK.set(e,n-1),1!==n)return;let r=tK.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,tK.delete(e))}let iK=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),aK=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var sK=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(sK||{}),lK=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(lK||{}),cK=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(cK||{});function uK(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(iK)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var dK=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(dK||{});function fK(e,t=0){var n;return e!==(null==(n=wW(e))?void 0:n.body)&&jW(t,{0:()=>e.matches(iK),1(){let t=e;for(;null!==t;){if(t.matches(iK))return!0;t=t.parentElement}return!1}})}var pK=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(pK||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let mK=["textarea","input"].join(",");function hK(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function gK(e,t){return function(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?hK(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(aK)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):uK(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,mK))&&n}(s)&&s.select(),2}(uK(),t,{relativeTo:e})}function vK(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function bK(){return vK()||/Android/gi.test(window.navigator.userAgent)}function wK(e,n,r,o){let i=kW(r);t.useEffect((()=>{if(e)return document.addEventListener(n,t,o),()=>document.removeEventListener(n,t,o);function t(e){i.current(e)}}),[e,n,o])}const yK=30;function xK(e,n,r){let o=kW(r),i=t.useCallback((function(e,t){if(e.defaultPrevented)return;let r=t(e);if(null===r||!r.getRootNode().contains(r)||!r.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(n);for(let t of i)if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return!fK(r,dK.Loose)&&-1!==r.tabIndex&&e.preventDefault(),o.current(e,r)}),[o,n]),a=t.useRef(null);wK(e,"pointerdown",(e=>{var t,n;bK()||(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),wK(e,"pointerup",(e=>{if(bK()||!a.current)return;let t=a.current;return a.current=null,i(e,(()=>t))}),!0);let s=t.useRef({x:0,y:0});wK(e,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),wK(e,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=yK||Math.abs(n-s.current.y)>=yK))return i(e,(()=>tU(e.target)?e.target:null))}),!0),function(e,n,r,o){let i=kW(r);t.useEffect((()=>{if(e)return window.addEventListener(n,t,o),()=>window.removeEventListener(n,t,o);function t(e){i.current(e)}}),[e,n,o])}(e,"blur",(e=>i(e,(()=>function(e){return eU(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null))),!0)}function CK(...e){return t.useMemo((()=>wW(...e)),[...e])}var SK=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(SK||{});const kK={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},EK=200;function RK(e,{trigger:n,action:r,close:o,select:i}){let a=t.useRef(null);wK(e&&null!==n,"pointerdown",(e=>{QW(null==e?void 0:e.target)&&null!=n&&n.contains(e.target)&&(a.current=new Date)})),wK(e&&null!==n,"pointerup",(e=>{if(null===a.current||!tU(e.target))return;let t=r(e),n=(new Date).getTime()-a.current.getTime();switch(a.current=null,t.kind){case 0:return;case 1:n>EK&&(i(t.target),o());break;case 2:o()}}),{capture:!0})}function PK(e,n){return t.useMemo((()=>{var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==n?void 0:n.tagName)&&!n.hasAttribute("type")?"button":void 0}),[e.type,e.as,n])}function NK(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=null!=(n=t.defaultView)?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function jK(){return vK()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=xW();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null;t.addEventListener(e,"click",(t=>{if(tU(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),a=e.querySelector(o);tU(a)&&!r(a)&&(i=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(tU(e.target)&&function(e){return JW(e)&&"style"in e}(e.target))if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(tU(e.target)){if(nU(e.target))return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)}))}))}}:{}}function MK(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let AK=function(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach((e=>e())))}}}((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:xW(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:MK(n)},o=[jK(),NK(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach((({before:e})=>null==e?void 0:e(r))),o.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function IK(e,n,r=(()=>({containers:[]}))){let o=function(e){return t.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}(AK),i=n?o.get(n):void 0,a=!!i&&i.count>0;return SW((()=>{if(n&&e)return AK.dispatch("PUSH",n,r),()=>AK.dispatch("POP",n,r)}),[e,n]),a}function TK(e){return[e.screenX,e.screenY]}function OK(){let e=t.useRef([-1,-1]);return{wasMoved(t){let n=TK(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=TK(t)}}}var LK,DK;AK.subscribe((()=>{let e=AK.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&AK.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&AK.dispatch("TEARDOWN",n)}})),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(LK=null==process?void 0:process.env)?void 0:LK.NODE_ENV)&&void 0===(null==(DK=null==Element?void 0:Element.prototype)?void 0:DK.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var FK=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(FK||{});function _K(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function VK(e,n,r,o){let[i,a]=t.useState(r),{hasFlag:s,addFlag:l,removeFlag:c}=function(e=0){let[n,r]=t.useState(e),o=t.useCallback((e=>r(e)),[n]),i=t.useCallback((e=>r((t=>t|e))),[n]),a=t.useCallback((e=>(n&e)===e),[n]),s=t.useCallback((e=>r((t=>t&~e))),[r]),l=t.useCallback((e=>r((t=>t^e))),[r]);return{flags:n,setFlag:o,addFlag:i,hasFlag:a,removeFlag:s,toggleFlag:l}}(e&&i?3:0),u=t.useRef(!1),d=t.useRef(!1),f=CW();return SW((()=>{var t;if(e)return r&&a(!0),n?(null==(t=null==o?void 0:o.start)||t.call(o,r),function(e,{prepare:t,run:n,done:r,inFlight:o}){let i=xW();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),i.nextFrame((()=>{n(),i.requestAnimationFrame((()=>{i.add(function(e,t){var n,r;let o=xW();if(!e)return o.dispose;let i=!1;o.add((()=>{i=!0}));let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===a.length?(t(),o.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{i||t()})),o.dispose)}(e,r))}))})),i.dispose}(n,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(r?(l(3),c(4)):(l(4),c(2)))},run(){d.current?r?(c(3),l(4)):(c(4),l(3)):r?c(1):l(1)},done(){var e;d.current&&"function"==typeof n.getAnimations&&n.getAnimations().length>0||(u.current=!1,c(7),r||a(!1),null==(e=null==o?void 0:o.end)||e.call(o,r))}})):void(r&&l(3))}),[e,r,n,f]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}const zK={...a},HK=zK.useInsertionEffect||(e=>e());function BK(e){const t=a.useRef((()=>{}));return HK((()=>{t.current=e})),a.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var $K="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;let WK=!1,UK=0;const KK=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+UK++;const GK=zK.useId||function(){const[e,t]=a.useState((()=>WK?KK():void 0));return $K((()=>{null==e&&t(KK())}),[]),a.useEffect((()=>{WK=!0}),[]),e};const XK=a.createContext(null),qK=a.createContext(null),YK=()=>{var e;return(null==(e=a.useContext(XK))?void 0:e.id)||null},ZK=()=>a.useContext(qK);function QK(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=GK(),i=a.useRef({}),[s]=a.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=YK(),[c,u]=a.useState(r.reference),d=BK(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=a.useMemo((()=>({setPositionReference:u})),[]),p=a.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return a.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:p,events:s,floatingId:o,refs:f})),[t,d,p,s,o,f])}const JK="active",eG="selected";function tG(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[JK]:t,[eG]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[JK,eG].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function nG(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const rG=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:c=0,scrollRef:u,...d}=fs(e,t),{rects:f,elements:{floating:p}}=t,m=n.current[a];if(!m)return{};const h={...t,...await Ih(-m.offsetTop-p.clientTop-f.reference.height/2-m.offsetHeight/2-i).fn(t)},g=(null==u?void 0:u.current)||p,v=await ll(nG(h,g.scrollHeight),d),b=await ll(h,{...d,elementContext:"reference"}),w=Math.max(0,v.top),y=h.y+w,x=Math.max(0,g.scrollHeight-w-Math.max(0,v.bottom));return g.style.maxHeight=x+"px",g.scrollTop=w,o&&(g.offsetHeight<m.offsetHeight*Math.min(l,n.current.length-1)-1||b.top>=-c||b.bottom>=-c?s.flushSync((()=>o(!0))):s.flushSync((()=>o(!1)))),r&&(r.current=await ll(nG({...h,y:y},g.offsetHeight),d)),{y:y}}});function oG(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:l,onChange:c}=t,u=BK(c),d=a.useRef(!1),f=a.useRef(null),p=a.useRef(null);a.useEffect((()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;const n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,l=n<0?-1:1,c=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),s.flushSync((()=>{u((e=>e+Math[c](n,a*l)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==l?void 0:l.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{f.current=t.scrollTop,null!=i.current&&(p.current={...i.current})})),()=>{f.current=null,p.current=null,t.removeEventListener("wheel",e)}):void 0}),[o,n,r.floating,i,l,u]);const m=a.useMemo((()=>({onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const e=(null==l?void 0:l.current)||r.floating;if(i.current&&e&&d.current){if(null!==f.current){const t=e.scrollTop-f.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&s.flushSync((()=>u((e=>e+t))))}requestAnimationFrame((()=>{f.current=e.scrollTop}))}}})),[r.floating,u,i,l]);return a.useMemo((()=>o?{floating:m}:{}),[o,m])}let iG=t.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});iG.displayName="FloatingContext";let aG=t.createContext(null);function sG(){return t.useContext(iG).setReference}function lG(){return t.useContext(iG).getReferenceProps}function cG(){let{getFloatingProps:e,slot:n}=t.useContext(iG);return t.useCallback(((...t)=>Object.assign({},e(...t),{"data-anchor":n.anchor})),[e,n])}function uG(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let n=t.useContext(aG),r=t.useMemo((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);SW((()=>{null==n||n(null!=r?r:null)}),[n,r]);let o=t.useContext(iG);return t.useMemo((()=>[o.setFloating,e?o.styles:{}]),[o.setFloating,e,o.styles])}aG.displayName="PlacementContext";let dG=4;function fG({children:e,enabled:n=!0}){let[r,o]=t.useState(null),[i,s]=t.useState(0),l=t.useRef(null),[c,u]=t.useState(null);!function(e){SW((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(c);let d=n&&null!==r&&null!==c,{to:f="bottom",gap:p=0,offset:m=0,padding:h=0,inner:g}=function(e,t){var n,r,o;let i=pG(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=pG(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=pG(null!=(o=null==e?void 0:e.padding)?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:a,padding:s}}(r,c),[v,b="center"]=f.split(" ");SW((()=>{d&&s(0)}),[d]);let{refs:w,floatingStyles:y,context:x}=function(e){void 0===e&&(e={});const{nodeId:t}=e,n=QK({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=a.useState(null),[l,c]=a.useState(null),u=(null==o?void 0:o.reference)||i,d=a.useRef(null),f=ZK();$K((()=>{u&&(d.current=u)}),[u]);const p=Mh({...e,elements:{...o,...l&&{reference:l}}}),m=a.useCallback((e=>{const t=Is(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)}),[p.refs]),h=a.useCallback((e=>{(Is(e)||null===e)&&(d.current=e,s(e)),(Is(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Is(e))&&p.refs.setReference(e)}),[p.refs]),g=a.useMemo((()=>({...p.refs,setReference:h,setPositionReference:m,domReference:d})),[p.refs,h,m]),v=a.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),b=a.useMemo((()=>({...p,...r,refs:g,elements:v,nodeId:t})),[p,g,v,t,r]);return $K((()=>{r.dataRef.current.floatingContext=b;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),a.useMemo((()=>({...p,context:b,refs:g,elements:v})),[p,g,v,b])}({open:d,placement:"selection"===v?"center"===b?"bottom":`bottom-${b}`:"center"===b?`${v}`:`${v}-${b}`,strategy:"absolute",transform:!1,middleware:[Ih({mainAxis:"selection"===v?0:p,crossAxis:m}),Th({padding:h}),"selection"!==v&&Lh({padding:h}),"selection"===v&&g?rG({...g,padding:h,overflowRef:l,offset:i,minItemsVisible:dG,referenceOverflowThreshold:h,onFallbackChange(e){var t,n;if(!e)return;let r=x.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(dG,r.childElementCount),a=0,l=0;for(let e of null!=(n=null==(t=x.elements.floating)?void 0:t.childNodes)?n:[])if(eU(e)){let t=e.offsetTop,n=t+e.clientHeight+o,s=r.scrollTop,c=s+r.clientHeight;if(!(t>=s&&n<=c)){l=Math.max(0,Math.min(n,c)-Math.max(t,s)),a=e.clientHeight;break}i--}i>=1&&s((e=>{let t=a*i-l+o;return e>=t?e:t}))}}):null,Dh({padding:h,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:sl}),[C=v,S=b]=x.placement.split("-");"selection"===v&&(C="selection");let k=t.useMemo((()=>({anchor:[C,S].filter(Boolean).join(" ")})),[C,S]),E=oG(x,{overflowRef:l,onChange:s}),{getReferenceProps:R,getFloatingProps:P}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=a.useCallback((t=>tG(t,e,"reference")),t),i=a.useCallback((t=>tG(t,e,"floating")),n),s=a.useCallback((t=>tG(t,e,"item")),r);return a.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s})),[o,i,s])}([E]),N=EW((e=>{u(e),w.setFloating(e)}));return a.createElement(aG.Provider,{value:o},a.createElement(iG.Provider,{value:{setFloating:N,setReference:w.setReference,styles:y,getReferenceProps:R,getFloatingProps:P,slot:k}},e))}function pG(e,n,r=void 0){let o=CW(),i=EW(((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let n=hG(e,t);return[n,r=>{let i=mG(e);{let a=i.map((e=>window.getComputedStyle(t).getPropertyValue(e)));o.requestAnimationFrame((function s(){o.nextFrame(s);let l=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,l=!0;break}}if(!l)return;let c=hG(e,t);n!==c&&(r(c),n=c)}))}return o.dispose}]}return[r,null]})),a=t.useMemo((()=>i(e,n)[0]),[e,n]),[s=a,l]=t.useState();return SW((()=>{let[t,r]=i(e,n);if(l(t),r)return r(l)}),[e,n]),s}function mG(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...mG(r)]:[n]}return[]}function hG(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let gG=t.createContext(null);gG.displayName="OpenClosedContext";var vG=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(vG||{});function bG(){return t.useContext(gG)}function wG({value:e,children:n}){return t.createElement(gG.Provider,{value:e},n)}var yG=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yG||{});function xG(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function CG(e){let n=EW(e),r=t.useRef(!1);t.useEffect((()=>(r.current=!1,()=>{r.current=!0,yW((()=>{r.current&&n()}))})),[n])}function SG(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in a&&a.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=a.useState(bW.isHandoffComplete);return t&&!1===bW.isHandoffComplete&&n(!1),a.useEffect((()=>{!0!==t&&n(!0)}),[t]),a.useEffect((()=>bW.handoff()),[]),!e&&t}let kG=t.createContext(!1);function EG(){return t.useContext(kG)}let RG=t.Fragment,PG=FW((function(e,r){let{ownerDocument:o=null,...i}=e,a=t.useRef(null),s=lU(function(e,t=!0){return Object.assign(e,{[sU]:t})}((e=>{a.current=e})),r),l=CK(a),c=null!=o?o:l,u=function(e){let n=EG(),r=t.useContext(jG),[o,i]=t.useState((()=>{var t;if(!n&&null!==r)return null!=(t=r.current)?t:null;if(bW.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)}));return t.useEffect((()=>{null!==o&&(null!=e&&e.body.contains(o)||null==e||e.body.appendChild(o))}),[o,e]),t.useEffect((()=>{n||null!==r&&i(r.current)}),[r,i,n]),o}(c),[d]=t.useState((()=>{var e;return bW.isServer?null:null!=(e=null==c?void 0:c.createElement("div"))?e:null})),f=t.useContext(MG),p=SG();SW((()=>{!u||!d||u.contains(d)||(d.setAttribute("data-headlessui-portal",""),u.appendChild(d))}),[u,d]),SW((()=>{if(d&&f)return f.register(d)}),[f,d]),CG((()=>{var e;!u||!d||(QW(d)&&u.contains(d)&&u.removeChild(d),u.childNodes.length<=0&&(null==(e=u.parentElement)||e.removeChild(u)))}));let m=IW();return p&&u&&d?n.createPortal(m({ourProps:{ref:s},theirProps:i,slot:{},defaultTag:RG,name:"Portal"}),d):null}));let NG=t.Fragment,jG=t.createContext(null);let MG=t.createContext(null),AG=FW((function(e,n){let r=lU(n),{enabled:o=!0,ownerDocument:i,...a}=e,s=IW();return o?t.createElement(PG,{...a,ownerDocument:i,ref:r}):s({ourProps:{ref:r},theirProps:a,slot:{},defaultTag:RG,name:"Portal"})})),IG=FW((function(e,n){let{target:r,...o}=e,i={ref:lU(n)},a=IW();return t.createElement(jG.Provider,{value:r},a({ourProps:i,theirProps:o,defaultTag:NG,name:"Popover.Group"}))})),TG=Object.assign(AG,{Group:IG});function OG(e){var n;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(n=e.as)?n:zG)!==t.Fragment||1===t.Children.count(e.children)}let LG=t.createContext(null);LG.displayName="TransitionContext";var DG=(e=>(e.Visible="visible",e.Hidden="hidden",e))(DG||{});let FG=t.createContext(null);function _G(e){return"children"in e?_G(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function VG(e,n){let r=kW(e),o=t.useRef([]),i=function(){let e=t.useRef(!1);return SW((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),a=CW(),s=EW(((e,t=AW.Hidden)=>{let n=o.current.findIndex((({el:t})=>t===e));-1!==n&&(jW(t,{[AW.Unmount](){o.current.splice(n,1)},[AW.Hidden](){o.current[n].state="hidden"}}),a.microTask((()=>{var e;!_G(o)&&i.current&&(null==(e=r.current)||e.call(r))})))})),l=EW((e=>{let t=o.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):o.current.push({el:e,state:"visible"}),()=>s(e,AW.Unmount)})),c=t.useRef([]),u=t.useRef(Promise.resolve()),d=t.useRef({enter:[],leave:[]}),f=EW(((e,t,r)=>{c.current.splice(0),n&&(n.chains.current[t]=n.chains.current[t].filter((([t])=>t!==e))),null==n||n.chains.current[t].push([e,new Promise((e=>{c.current.push(e)}))]),null==n||n.chains.current[t].push([e,new Promise((e=>{Promise.all(d.current[t].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===t?u.current=u.current.then((()=>null==n?void 0:n.wait.current)).then((()=>r(t))):r(t)})),p=EW(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return t.useMemo((()=>({children:o,register:l,unregister:s,onStart:f,onStop:p,wait:u,chains:d})),[l,s,o,f,p,d,u])}FG.displayName="NestingContext";let zG=t.Fragment,HG=MW.RenderStrategy;let BG=FW((function(e,n){let{show:r,appear:o=!1,unmount:i=!0,...a}=e,s=t.useRef(null),l=lU(...OG(e)?[s,n]:null===n?[]:[n]);SG();let c=bG();if(void 0===r&&null!==c&&(r=(c&vG.Open)===vG.Open),void 0===r)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=t.useState(r?"visible":"hidden"),f=VG((()=>{r||d("hidden")})),[p,m]=t.useState(!0),h=t.useRef([r]);SW((()=>{!1!==p&&h.current[h.current.length-1]!==r&&(h.current.push(r),m(!1))}),[h,r]);let g=t.useMemo((()=>({show:r,appear:o,initial:p})),[r,o,p]);SW((()=>{r?d("visible"):!_G(f)&&null!==s.current&&d("hidden")}),[r,f]);let v={unmount:i},b=EW((()=>{var t;p&&m(!1),null==(t=e.beforeEnter)||t.call(e)})),w=EW((()=>{var t;p&&m(!1),null==(t=e.beforeLeave)||t.call(e)})),y=IW();return t.createElement(FG.Provider,{value:f},t.createElement(LG.Provider,{value:g},y({ourProps:{...v,as:t.Fragment,children:t.createElement($G,{ref:l,...v,...a,beforeEnter:b,beforeLeave:w})},theirProps:{},defaultTag:t.Fragment,features:HG,visible:"visible"===u,name:"Transition"})))})),$G=FW((function(e,n){var r,o;let{transition:i=!0,beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c,enter:u,enterFrom:d,enterTo:f,entered:p,leave:m,leaveFrom:h,leaveTo:g,...v}=e,[b,w]=t.useState(null),y=t.useRef(null),x=OG(e),C=lU(...x?[y,n,w]:null===n?[]:[n]),S=null==(r=v.unmount)||r?AW.Unmount:AW.Hidden,{show:k,appear:E,initial:R}=function(){let e=t.useContext(LG);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[P,N]=t.useState(k?"visible":"hidden"),j=function(){let e=t.useContext(FG);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:M,unregister:A}=j;SW((()=>M(y)),[M,y]),SW((()=>{if(S===AW.Hidden&&y.current)return k&&"visible"!==P?void N("visible"):jW(P,{hidden:()=>A(y),visible:()=>M(y)})}),[P,y,M,A,k,S]);let I=SG();SW((()=>{if(x&&I&&"visible"===P&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,P,I,x]);let T=R&&!E,O=E&&k&&R,L=t.useRef(!1),D=VG((()=>{L.current||(N("hidden"),A(y))}),j),F=EW((e=>{L.current=!0;let t=e?"enter":"leave";D.onStart(y,t,(e=>{"enter"===e?null==a||a():"leave"===e&&(null==l||l())}))})),_=EW((e=>{let t=e?"enter":"leave";L.current=!1,D.onStop(y,t,(e=>{"enter"===e?null==s||s():"leave"===e&&(null==c||c())})),"leave"===t&&!_G(D)&&(N("hidden"),A(y))}));t.useEffect((()=>{x&&i||(F(k),_(k))}),[k,x,i]);let V=!(!i||!x||!I||T),[,z]=VK(V,b,k,{start:F,end:_}),H=_W({ref:C,className:(null==(o=NW(v.className,O&&u,O&&d,z.enter&&u,z.enter&&z.closed&&d,z.enter&&!z.closed&&f,z.leave&&m,z.leave&&!z.closed&&h,z.leave&&z.closed&&g,!z.transition&&k&&p))?void 0:o.trim())||void 0,..._K(z)}),B=0;"visible"===P&&(B|=vG.Open),"hidden"===P&&(B|=vG.Closed),k&&"hidden"===P&&(B|=vG.Opening),!k&&"visible"===P&&(B|=vG.Closing);let $=IW();return t.createElement(FG.Provider,{value:D},t.createElement(wG,{value:B},$({ourProps:H,theirProps:v,defaultTag:zG,features:HG,visible:"visible"===P,name:"Transition.Child"})))})),WG=FW((function(e,n){let r=null!==t.useContext(LG),o=null!==bG();return t.createElement(t.Fragment,null,!r&&o?t.createElement(BG,{ref:n,...e}):t.createElement($G,{ref:n,...e}))})),UG=Object.assign(BG,{Child:WG,Root:BG});let KG=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function GG(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!eU(o))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return KG.test(a)&&(a=a.replace(KG,"")),a}function XG(e){let n=t.useRef(""),r=t.useRef("");return EW((()=>{let t=e.current;if(!t)return"";let o=t.innerText;if(n.current===o)return r.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():GG(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return GG(e).trim()}(t).trim().toLowerCase();return n.current=o,r.current=i,i}))}var qG=Object.defineProperty,YG=(e,t,n)=>(((e,t,n)=>{t in e?qG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),ZG=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ZG||{}),QG=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(QG||{}),JG=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(JG||{}),eX=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOptions=5]="RegisterOptions",e[e.UnregisterOptions=6]="UnregisterOptions",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e[e.SortOptions=9]="SortOptions",e))(eX||{});function tX(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=hK(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let nX={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,pendingFocus:{focus:yG.Nothing},listboxState:1,__demoMode:!1},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,o=e.options.findIndex((e=>r(e.dataRef.current.value)));return-1!==o&&(n=o),{...e,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1}},2(e,t){var n,r,o,i,a;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===yG.Nothing)return{...s,activeOptionIndex:null};if(t.focus===yG.Specific)return{...s,activeOptionIndex:e.options.findIndex((e=>e.id===t.id))};if(t.focus===yG.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,a=xG(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.options[a].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||null===(null==(o=t.current)?void 0:o.previousElementSibling))return{...s,activeOptionIndex:a}}}}else if(t.focus===yG.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=xG(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeOptionIndex:o}}}}let l=tX(e),c=xG(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeOptionIndex:c}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),i=o?e.options.indexOf(o):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==yG.Nothing&&(r=xG(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex((e=>null==t?void 0:t(e.dataRef.current.value)));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:yG.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.options,r=[],o=new Set(t.options);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0){n=n.slice();for(let e of r.reverse())n.splice(e,1)}return{...e,options:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},9:e=>e.pendingShouldSort?{...e,...tX(e),pendingShouldSort:!1}:e};class rX extends AU{constructor(e){super(e),YG(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return jW(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex((t=>n(t,e)));return-1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:LU((()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:5,options:e.splice(0)}))]})),unregisterOption:LU((()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:6,options:e.splice(0)})}]})),goToOption:LU((()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]})),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{if(null!==this.state.activeOptionIndex){let{dataRef:e,id:t}=this.state.options[this.state.activeOptionIndex];this.actions.onChange(e.current.value),this.send({type:2,focus:yG.Specific,id:t})}},selectOption:e=>{let t=this.state.options.find((t=>t.id===e));t&&this.actions.onChange(t.dataRef.current.value)},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:7,element:e})},setOptionsElement:e=>{this.send({type:8,element:e})}}),YG(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,o=e.options;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)}}),this.on(5,(()=>{requestAnimationFrame((()=>{this.send({type:9})}))}));{let e=this.state.id,t=HU.get(null);this.disposables.add(t.on(_U.Push,(n=>{!t.selectors.isTop(n,e)&&0===this.state.listboxState&&this.actions.closeListbox()}))),this.on(0,(()=>t.actions.push(e))),this.on(1,(()=>t.actions.pop(e)))}}static new({id:e,__demoMode:t=!1}){return new rX({id:e,dataRef:{current:{}},listboxState:t?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:yG.Nothing},__demoMode:t})}reduce(e,t){return jW(t.type,nX,e,t)}}const oX=t.createContext(null);function iX(e){let n=t.useContext(oX);if(null===n){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,aX),t}return n}function aX({id:e,__demoMode:n=!1}){let r=t.useMemo((()=>rX.new({id:e,__demoMode:n})),[]);return CG((()=>r.dispose())),r}let sX=t.createContext(null);function lX(e){let n=t.useContext(sX);if(null===n){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,lX),t}return n}sX.displayName="ListboxDataContext";let cX=t.Fragment;let uX=t.createContext(!1),dX=MW.RenderStrategy|MW.Static;let fX=t.Fragment;let pX=FW((function(e,n){let r=t.useId(),o=PW(),{value:i,defaultValue:a,form:s,name:l,onChange:c,by:u,invalid:d=!1,disabled:f=o||!1,horizontal:p=!1,multiple:m=!1,__demoMode:h=!1,...g}=e;const v=p?"horizontal":"vertical";let b=lU(n),w=function(e){let[n]=t.useState(e);return n}(a),[y=(m?[]:void 0),x]=function(e,n,r){let[o,i]=t.useState(r),a=void 0!==e,s=t.useRef(a),l=t.useRef(!1),c=t.useRef(!1);return!a||s.current||l.current?!a&&s.current&&!c.current&&(c.current=!0,s.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,s.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:o,EW((e=>(a||i(e),null==n?void 0:n(e))))]}(i,c,w),C=aX({id:r,__demoMode:h}),S=t.useRef({static:!1,hold:!1}),k=t.useRef(new Map),E=function(e=wU){return t.useCallback(((t,n)=>{if("string"==typeof e){let r=e;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e(t,n)}),[e])}(u),R=t.useCallback((e=>jW(P.mode,{[QG.Multi]:()=>y.some((t=>E(t,e))),[QG.Single]:()=>E(y,e)})),[y]),P=t.useMemo((()=>({value:y,disabled:f,invalid:d,mode:m?QG.Multi:QG.Single,orientation:v,onChange:x,compare:E,isSelected:R,optionsPropsRef:S,listRef:k})),[y,f,d,m,v,x,E,R,S,k]);SW((()=>{C.state.dataRef.current=P}),[P]);let N=QU(C,(e=>e.listboxState)),j=HU.get(null),M=QU(j,t.useCallback((e=>j.selectors.isTop(e,r)),[j,r])),[A,I]=QU(C,(e=>[e.buttonElement,e.optionsElement]));xK(M,[A,I],((e,t)=>{C.send({type:eX.CloseListbox}),fK(t,dK.Loose)||(e.preventDefault(),null==A||A.focus())}));let T=t.useMemo((()=>({open:N===ZG.Open,disabled:f,invalid:d,value:y})),[N,f,d,y]),[O,L]=gU({inherit:!0}),D={ref:b},F=t.useCallback((()=>{if(void 0!==w)return null==x?void 0:x(w)}),[x,w]),_=IW();return t.createElement(L,{value:O,props:{htmlFor:null==A?void 0:A.id},slot:{open:N===ZG.Open,disabled:f}},t.createElement(fG,null,t.createElement(oX.Provider,{value:C},t.createElement(sX.Provider,{value:P},t.createElement(wG,{value:jW(N,{[ZG.Open]:vG.Open,[ZG.Closed]:vG.Closed})},null!=l&&null!=y&&t.createElement(XW,{disabled:f,data:{[l]:y},form:s,onReset:F}),_({ourProps:D,theirProps:g,slot:T,defaultTag:cX,name:"Listbox"}))))))})),mX=FW((function(e,r){let o=t.useId(),i=ZW(),a=lX("Listbox.Button"),s=iX("Listbox.Button"),{id:l=i||`headlessui-listbox-button-${o}`,disabled:c=a.disabled||!1,autoFocus:u=!1,...d}=e,f=lU(r,sG(),s.actions.setButtonElement),p=lG(),[m,h,g]=QU(s,(e=>[e.listboxState,e.buttonElement,e.optionsElement]));RK(m===ZG.Open,{trigger:h,action:t.useCallback((e=>{if(null!=h&&h.contains(e.target))return kK.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return eU(t)?kK.Select(t):null!=g&&g.contains(e.target)?kK.Ignore:kK.Close}),[h,g]),close:s.actions.closeListbox,select:s.actions.selectActiveOption});let v=EW((e=>{switch(e.key){case fU.Enter:!function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget);break;case fU.Space:case fU.ArrowDown:e.preventDefault(),s.actions.openListbox({focus:a.value?yG.Nothing:yG.First});break;case fU.ArrowUp:e.preventDefault(),s.actions.openListbox({focus:a.value?yG.Nothing:yG.Last})}})),b=EW((e=>{if(e.key===fU.Space)e.preventDefault()})),w=EW((e=>{var t;if(0===e.button){if(aU(e.currentTarget))return e.preventDefault();s.state.listboxState===ZG.Open?(n.flushSync((()=>s.actions.closeListbox())),null==(t=s.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),s.actions.openListbox({focus:yG.Nothing}))}})),y=EW((e=>e.preventDefault())),x=hU([l]),C=function(){var e,n;return null!=(n=null==(e=t.useContext(cU))?void 0:e.value)?n:void 0}(),{isFocusVisible:S,focusProps:k}=hW({autoFocus:u}),{isHovered:E,hoverProps:R}=mW({isDisabled:c}),{pressed:P,pressProps:N}=function({disabled:e=!1}={}){let n=t.useRef(null),[r,o]=t.useState(!1),i=CW(),a=EW((()=>{n.current=null,o(!1),i.dispose()})),s=EW((e=>{if(i.dispose(),null===n.current){n.current=e.currentTarget,o(!0);{let t=wW(e.currentTarget);i.addEventListener(t,"pointerup",a,!1),i.addEventListener(t,"pointermove",(e=>{if(n.current){let t=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);o(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(t,n.current.getBoundingClientRect()))}}),!1),i.addEventListener(t,"pointercancel",a,!1)}}}));return{pressed:r,pressProps:e?{}:{onPointerDown:s,onPointerUp:a,onClick:a}}}({disabled:c}),j=t.useMemo((()=>({open:m===ZG.Open,active:P||m===ZG.Open,disabled:c,invalid:a.invalid,value:a.value,hover:E,focus:S,autofocus:u})),[m,a.value,c,E,S,P,a.invalid,u]),M=QU(s,(e=>e.listboxState===ZG.Open)),A=DW(p(),{ref:f,id:l,type:PK(e,h),"aria-haspopup":"listbox","aria-controls":null==g?void 0:g.id,"aria-expanded":M,"aria-labelledby":x,"aria-describedby":C,disabled:c||void 0,autoFocus:u,onKeyDown:v,onKeyUp:b,onKeyPress:y,onPointerDown:w},k,R,N);return IW()({ourProps:A,theirProps:d,slot:j,defaultTag:"button",name:"Listbox.Button"})})),hX=bU,gX=FW((function(e,r){let o=t.useId(),{id:i=`headlessui-listbox-options-${o}`,anchor:a,portal:s=!1,modal:l=!0,transition:c=!1,...u}=e,d=function(e){return t.useMemo((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(a),[f,p]=t.useState(null);d&&(s=!0);let m=lX("Listbox.Options"),h=iX("Listbox.Options"),[g,v,b,w]=QU(h,(e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode])),y=CK(v),x=CK(b),C=bG(),[S,k]=VK(c,f,null!==C?(C&vG.Open)===vG.Open:g===ZG.Open);!function(e,n,r){let o=kW((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&r()}));t.useEffect((()=>{if(!e)return;let t=null===n?null:eU(n)?n:n.current;if(!t)return;let r=xW();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>o.current(t)));e.observe(t),r.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>o.current(t)));e.observe(t),r.add((()=>e.disconnect()))}return()=>r.dispose()}),[n,o,e])}(S,v,h.actions.closeListbox),function(e,t,n=(()=>[document.body])){IK(eK(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(!w&&(l&&g===ZG.Open),x),function(e,{allowed:t,disallowed:n}={}){let r=eK(e,"inert-others");SW((()=>{var e,o;if(!r)return;let i=xW();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(rK(t));let a=null!=(o=null==t?void 0:t())?o:[];for(let e of a){if(!e)continue;let t=wW(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)a.some((t=>e.contains(t)))||i.add(rK(e));n=n.parentElement}}return i.dispose}),[r,t,n])}(!w&&(l&&g===ZG.Open),{allowed:t.useCallback((()=>[v,b]),[v,b])});let E=!function(e,n){let r=t.useRef({left:0,top:0});if(SW((()=>{if(!n)return;let e=n.getBoundingClientRect();e&&(r.current=e)}),[e,n]),null==n||!e||n===document.activeElement)return!1;let o=n.getBoundingClientRect();return o.top!==r.current.top||o.left!==r.current.left}(g!==ZG.Open,v)&&S,R=function(e,n){let[r,o]=t.useState(n);return!e&&r!==n&&o(n),e?r:n}(S&&g===ZG.Closed,m.value),P=EW((e=>m.compare(R,e))),N=QU(h,(e=>{var t;if(null==d||null==(t=null==d?void 0:d.to)||!t.includes("selection"))return null;let n=e.options.findIndex((e=>P(e.dataRef.current.value)));return-1===n&&(n=0),n})),j=(()=>{if(null==d)return;if(null===N)return{...d,inner:void 0};let e=Array.from(m.listRef.current.values());return{...d,inner:{listRef:{current:e},index:N}}})(),[M,A]=uG(j),I=cG(),T=lU(r,d?M:null,h.actions.setOptionsElement,p),O=CW();t.useEffect((()=>{var e;let t=b;t&&g===ZG.Open&&t!==(null==(e=wW(t))?void 0:e.activeElement)&&(null==t||t.focus({preventScroll:!0}))}),[g,b]);let L=EW((e=>{var t,r;switch(O.dispose(),e.key){case fU.Space:if(""!==h.state.searchQuery)return e.preventDefault(),e.stopPropagation(),h.actions.search(e.key);case fU.Enter:if(e.preventDefault(),e.stopPropagation(),null!==h.state.activeOptionIndex){let{dataRef:e}=h.state.options[h.state.activeOptionIndex];h.actions.onChange(e.current.value)}m.mode===QG.Single&&(n.flushSync((()=>h.actions.closeListbox())),null==(t=h.state.buttonElement)||t.focus({preventScroll:!0}));break;case jW(m.orientation,{vertical:fU.ArrowDown,horizontal:fU.ArrowRight}):return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:yG.Next});case jW(m.orientation,{vertical:fU.ArrowUp,horizontal:fU.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:yG.Previous});case fU.Home:case fU.PageUp:return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:yG.First});case fU.End:case fU.PageDown:return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:yG.Last});case fU.Escape:return e.preventDefault(),e.stopPropagation(),n.flushSync((()=>h.actions.closeListbox())),void(null==(r=h.state.buttonElement)||r.focus({preventScroll:!0}));case fU.Tab:e.preventDefault(),e.stopPropagation(),n.flushSync((()=>h.actions.closeListbox())),gK(h.state.buttonElement,e.shiftKey?sK.Previous:sK.Next);break;default:1===e.key.length&&(h.actions.search(e.key),O.setTimeout((()=>h.actions.clearSearch()),350))}})),D=QU(h,(e=>{var t;return null==(t=e.buttonElement)?void 0:t.id})),F=t.useMemo((()=>({open:g===ZG.Open})),[g]),_=DW(d?I():{},{id:i,ref:T,"aria-activedescendant":QU(h,h.selectors.activeDescendantId),"aria-multiselectable":m.mode===QG.Multi||void 0,"aria-labelledby":D,"aria-orientation":m.orientation,onKeyDown:L,role:"listbox",tabIndex:g===ZG.Open?0:void 0,style:{...u.style,...A,"--button-width":yU(v,!0).width},..._K(k)}),V=IW(),z=t.useMemo((()=>m.mode===QG.Multi?m:{...m,isSelected:P}),[m,P]);return t.createElement(TG,{enabled:!!s&&(e.static||S),ownerDocument:y},t.createElement(sX.Provider,{value:z},V({ourProps:_,theirProps:u,slot:F,defaultTag:"div",features:dX,visible:E,name:"Listbox.Options"})))})),vX=FW((function(e,r){let o=t.useId(),{id:i=`headlessui-listbox-option-${o}`,disabled:a=!1,value:s,...l}=e,c=!0===t.useContext(uX),u=lX("Listbox.Option"),d=iX("Listbox.Option"),f=QU(d,(e=>d.selectors.isActive(e,i))),p=u.isSelected(s),m=t.useRef(null),h=XG(m),g=kW({disabled:a,value:s,domRef:m,get textValue(){return h()}}),v=lU(r,m,(e=>{e?u.listRef.current.set(i,e):u.listRef.current.delete(i)})),b=QU(d,(e=>d.selectors.shouldScrollIntoView(e,i)));SW((()=>{if(b)return xW().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=m.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[b,m]),SW((()=>{if(!c)return d.actions.registerOption(i,g),()=>d.actions.unregisterOption(i)}),[g,i,c]);let w=EW((e=>{var t;if(a)return e.preventDefault();d.actions.onChange(s),u.mode===QG.Single&&(n.flushSync((()=>d.actions.closeListbox())),null==(t=d.state.buttonElement)||t.focus({preventScroll:!0}))})),y=EW((()=>{if(a)return d.actions.goToOption({focus:yG.Nothing});d.actions.goToOption({focus:yG.Specific,id:i})})),x=OK(),C=EW((e=>{x.update(e),!a&&(f||d.actions.goToOption({focus:yG.Specific,id:i},JG.Pointer))})),S=EW((e=>{x.wasMoved(e)&&(a||f||d.actions.goToOption({focus:yG.Specific,id:i},JG.Pointer))})),k=EW((e=>{x.wasMoved(e)&&(a||f&&d.actions.goToOption({focus:yG.Nothing}))})),E=t.useMemo((()=>({active:f,focus:f,selected:p,disabled:a,selectedOption:p&&c})),[f,p,a,c]),R=c?{}:{id:i,ref:v,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":p,disabled:void 0,onClick:w,onFocus:y,onPointerEnter:C,onMouseEnter:C,onPointerMove:S,onMouseMove:S,onPointerLeave:k,onMouseLeave:k},P=IW();return!p&&c?null:P({ourProps:R,theirProps:l,slot:E,defaultTag:"div",name:"Listbox.Option"})})),bX=FW((function(e,n){let{options:r,placeholder:o,...i}=e,a={ref:lU(n)},s=lX("ListboxSelectedOption"),l=t.useMemo((()=>({})),[]),c=void 0===s.value||null===s.value||s.mode===QG.Multi&&Array.isArray(s.value)&&0===s.value.length,u=IW();return t.createElement(uX.Provider,{value:!0},u({ourProps:a,theirProps:{...i,children:t.createElement(t.Fragment,null,o&&c?o:r)},slot:l,defaultTag:fX,name:"ListboxSelectedOption"}))})),wX=Object.assign(pX,{Button:mX,Label:hX,Options:gX,Option:vX,SelectedOption:bX});var yX=t.memo((({label:n="Value",ariaLabel:r="Value",min:o=0,max:i=100,step:a=1,stepClick:s=1,initialValue:l=0,showButtons:c=!0,onChange:u,disabled:d=!1})=>{const f=kw(),[p,m]=t.useState(l),[h,g]=t.useState(!1),v=t.useRef(null),b=`model-parameter-${r.toLowerCase().replace(/\s+/g,"-")}`,w=n&&n.startsWith("com_")?f(n):n,y=(e=>{const t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0})(a),x=t.useCallback((e=>{const t=Math.min(Math.max(e,o),i),n=Object.is(t,-0)?0:t;m(n),u?.(n)}),[o,i,u]),C=t.useCallback((e=>{x(parseFloat(e.target.value))}),[x]),S=t.useCallback((()=>{x(p+s)}),[p,s,x]),k=t.useCallback((()=>{x(p-s)}),[p,s,x]),E=t.useCallback((e=>{"ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),S()):"ArrowLeft"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),k())}),[S,k]);return t.useEffect((()=>{const e=v.current;if(e){const t=(p-o)/(i-o)*100;e.style.backgroundSize=`${t}% 100%`}}),[p,o,i]),e.jsxs("div",{className:"w-full",children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[e.jsx("label",{htmlFor:b,className:"text-sm font-medium "+(d?"text-gray-400 dark:text-gray-400":""),children:w}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("output",{htmlFor:b,className:"select-none text-sm font-medium "+(d?"text-gray-400 dark:text-gray-400":""),"aria-live":"polite",children:p.toFixed(y).replace("-0.00","0.00")}),c&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{type:"button",onClick:k,className:"rounded-md p-1 transition-colors "+(d?"cursor-not-allowed text-gray-400 dark:text-gray-400":"hover:bg-gray-200 dark:hover:bg-gray-700"),"aria-label":`Decrease ${n}`,disabled:d,children:e.jsx(Sp,{size:16})}),e.jsx("button",{type:"button",onClick:S,className:"rounded-md p-1 transition-colors "+(d?"cursor-not-allowed text-gray-400 dark:text-gray-400":"hover:bg-gray-200 dark:hover:bg-gray-700"),"aria-label":`Increase ${n}`,disabled:d,children:e.jsx(Rp,{size:16})})]})]})]}),e.jsxs("div",{className:"relative w-full",children:[e.jsx("input",{ref:v,type:"range",id:b,min:o,max:i,step:a,value:p,onChange:C,onKeyDown:E,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),className:"slider-thumb h-2 w-full appearance-none rounded-lg bg-gradient-to-r from-gray-500 to-gray-500 bg-no-repeat focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 "+(d?"cursor-not-allowed opacity-50":"cursor-pointer"),tabIndex:0,style:{backgroundSize:"50% 100%",backgroundPosition:"left"},"aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":p,"aria-valuetext":`${p.toFixed(y).replace("-0.00","0.00")}`,disabled:d}),h?e.jsxs("div",{className:"trab mt-1 flex justify-between",children:[e.jsx("span",{className:"text-xs text-gray-500",children:o}),e.jsx("span",{className:"text-xs text-gray-500",children:i})]}):e.jsx("div",{className:"mt-1",style:{height:"1rem"}})]})]})})),xX=t.createContext(null);function CX(){let e=0;return{run:t=>{e||(e=requestAnimationFrame((()=>{e=0,t()})))},cancel:()=>{cancelAnimationFrame(e),e=0}}}function SX(e){return"number"==typeof e?e:e.length}function kX(e){return e&&"object"==typeof e?e:{value:e}}function EX(e,t,n){var r;un(n,"CollectionRenderer must be given an `id` prop.");const o=`${n}/${t}`;return null!=(r=kX(e).id)?r:o}function RX(e,t){if("number"==typeof e)return t>=e?null:{};const n=e[t];return n?"object"==typeof n?n:{value:n}:null}function PX(e,t,n){var r,o,i,a,s;const l=kX(e),c=(t="horizontal"===l.orientation||t)?"width":"height",u=l.style;if(u){const e=u[c];if("number"==typeof e)return e}const d=l.items;if(null==d?void 0:d.length){const e=!l.orientation||t&&"horizontal"===l.orientation||!t&&"vertical"===l.orientation,n=null!=(o=null!=(r=l.paddingStart)?r:l.padding)?o:0,c=null!=(a=null!=(i=l.paddingEnd)?i:l.padding)?a:0,u=e?n+c:0,f=(null!=(s=l.gap)?s:0)*(d.length-1)+u;if(e&&l.itemSize)return f+l.itemSize*d.length;const p=d.reduce(((e,n)=>e+PX(n,t)),f);if(p!==f)return p}const f=!1!==n?l.element||n:null;return(null==f?void 0:f.isConnected)?f.getBoundingClientRect()[c]:0}function NX(e,t){return"scrollX"in e?t?e.scrollX:e.scrollY:t?e.scrollLeft:e.scrollTop}function jX(e){const{defaultView:t,documentElement:n}=e.ownerDocument;return e===n?t:e}function MX(e,t,n){const r=NX(t,n),o=function(e,t,n){const r=yn(e),o=null==r?void 0:r.document.documentElement,i=e.getBoundingClientRect(),a=n?i.left:i.top;if(t===o)return NX(r,n)+a;const s=t.getBoundingClientRect();return a-(n?s.left:s.top)+NX(t,n)}(e,t,n),i=r-o;return{start:i,end:i+(n?t.clientWidth:t.clientHeight)}}function AX(e){var t;const n=SX(e.items);let r,o=e.paddingStart;const i=function(e){const t=SX(e.items);let n=0,r=e.estimatedItemSize;const o=e=>{const t=n;n+=1,r=(r*t+e)/n};for(let n=0;n<t;n+=1){const t=RX(e.items,n),r=EX(t,n,e.baseId),i=e.data.get(r),a=e.elements.get(r),s=PX(t,e.horizontal,a);s?o(s):(null==i?void 0:i.rendered)&&o(i.end-i.start)}return r}(e);for(let a=0;a<n;a+=1){const n=RX(e.items,a),s=EX(n,a,e.baseId),l=e.data.get(s),c=null!=(t=null==l?void 0:l.rendered)&&t,u=(t,n=c)=>{o=o?o+e.gap:o;const i=o+t;rn(l,{index:a,rendered:n,start:o,end:i})||(r||(r=new Map(e.data)),r.set(s,{index:a,rendered:n,start:o,end:i})),o=i},d=PX(n,e.horizontal,e.elements.get(s));d?u(d,!0):(null==l?void 0:l.rendered)?u(l.end-l.start,!0):u(i)}return r}function IX(r){var o,i,a=r,{store:s,items:l,initialItems:c=0,gap:u=0,itemSize:d,estimatedItemSize:f=40,overscan:p,orientation:m,padding:h=0,paddingStart:g=h,paddingEnd:v=h,persistentIndices:b,renderOnScroll:w=!0,renderOnResize:y=!!w,children:x}=a,C=Ut(a,["store","items","initialItems","gap","itemSize","estimatedItemSize","overscan","orientation","padding","paddingStart","paddingEnd","persistentIndices","renderOnScroll","renderOnResize","children"]);const S=Lr(),k=Co(s=s||S,(e=>null!=l?l:null==e?void 0:e.items));un(null!=k,!1);let E=t.useContext(xX);s&&(null==E?void 0:E.store)!==s&&(E=null);const R=null==E?void 0:E.childrenData,P=null!=(o=null!=m?m:null==E?void 0:E.orientation)?o:"vertical",N=null!=(i=null!=p?p:null==E?void 0:E.overscan)?i:1,j=t.useRef(null),M=tr(C.id),A="horizontal"===P,I=t.useMemo((()=>new Map),[]),[T,O]=ir(),[L,D]=t.useState((()=>{if(!c)return[];const e=SX(k),t=Math.min(e,Math.abs(c));return Array.from({length:t},((t,n)=>c<0?e-n-1:n))})),F=t.useMemo((()=>{if(!b)return L;const e=L.slice();for(const t of b)t<0||e.includes(t)||e.push(t);return e.sort(((e,t)=>e-t)),rn(L,e)?L:e}),[L,b]),[_,V]=t.useState((()=>{if(!M)return new Map;const e=(null==R?void 0:R.get(M))||new Map;if(null!=d)return e;if(!k)return e;return AX({baseId:M,items:k,data:e,gap:u,elements:I,horizontal:A,paddingStart:g,estimatedItemSize:f})||e})),z=t.useMemo((()=>function(e){const t=SX(e.items),n=e.paddingStart+e.paddingEnd;if(!t)return n;const r=t-1,o=r*e.gap;if(null!=e.itemSize)return t*e.itemSize+o+n;const i=t*e.estimatedItemSize+o+n;if(!e.baseId)return i;const a=EX(RX(e.items,r),r,e.baseId),s=e.data.get(a);if(null==s?void 0:s.end)return s.end+e.paddingEnd;if(!Array.isArray(e.items))return i;const l=e.items.reduce(((t,n)=>t+PX(n,e.horizontal,!1)),0);return l?l+o+n:i}({baseId:M,items:k,data:_,gap:u,horizontal:A,itemSize:d,estimatedItemSize:f,paddingStart:g,paddingEnd:v})),[M,k,_,u,A,d,f,g,v]);t.useEffect((()=>{M&&(null==R||R.set(M,_))}),[M,R,_]),t.useEffect((()=>{if(null!=d)return;if(!M)return;if(!k)return;const e=AX({baseId:M,items:k,data:_,gap:u,elements:I,horizontal:A,paddingStart:g,estimatedItemSize:f});e&&V(e)}),[T,d,M,k,_,u,I,A,g,f]);const H=function(e){const[n,r]=t.useState(null);return t.useEffect((()=>{const t=null==e?void 0:e.current;if(!t)return;const n=In(t);n&&r(n)}),[e]),n}(k?j:null),B=t.useRef({start:0,end:0}),$=t.useCallback((()=>{const e=B.current;if(!k)return;if(!M)return;if(!e.end)return;if(!_.size&&!d)return;const t=SX(k),n=(e,t="start")=>{var n;if(d){const n=d*e+u*e+g;return"start"===t?n:n+d}const r=EX(RX(k,e),e,M),o=_.get(r);return null!=(n=null==o?void 0:o[t])?n:0},r=function(e,t,n){let r=0,o=SX(e)-1;for(;r<=o;){const e=(r+o)/2|0,i=n(e);if(i===t)return e;i<t?r=e+1:o=e-1}return r>0?r-1:0}(k,e.start,n);let o=r;for(;o<t&&n(o)<e.end;)o+=1;const i=o-r?N:0,a=Math.max(r-i,0),s=Math.min(o+i,t),l=Array.from({length:s-a},((e,t)=>t+a));D((e=>rn(e,l)?e:l))}),[T,k,M,_,d,u,g,N]);t.useEffect($,[$]);const W=Qn($);t.useEffect((()=>{const e=j.current;e&&H&&(B.current=MX(e,H,A),W())}),[H,A,W]);const U=!!w,K=ar(w);t.useEffect((()=>{if(!U)return;const e=j.current;if(!e)return;if(!H)return;const t=jX(H);if(!t)return;const n=CX(),r=t=>{n.run((()=>{K(t)&&(B.current=MX(e,H,A),W())}))};return t.addEventListener("scroll",r,{passive:!0}),()=>{n.cancel(),t.removeEventListener("scroll",r)}}),[U,H,K,A,W]);const G=!!y,X=ar(y);t.useEffect((()=>{if(!G)return;const e=j.current;if(!e)return;if(!H)return;const t=jX(H);if(!t)return;const n=CX();if(t===H){if("function"!=typeof ResizeObserver)return;let t=!0;const r=new ResizeObserver((()=>{t?t=!1:n.run((()=>{X(H)&&(B.current=MX(e,H,A),W())}))}));return r.observe(H),()=>{n.cancel(),r.disconnect()}}const r=()=>{n.run((()=>{X(H)&&(B.current=MX(e,H,A),W())}))};return t.addEventListener("resize",r,{passive:!0}),()=>{n.cancel(),t.removeEventListener("resize",r)}}),[G,H,X,A,W]),t.useEffect((()=>{if("function"!=typeof IntersectionObserver)return;const e=j.current;if(!e)return;if(!H)return;const t=jX(H);if(!t)return;const n=new IntersectionObserver((()=>{B.current=MX(e,H,A),W()}),{root:H===t?H:null});return n.observe(e),()=>{n.disconnect()}}),[H,W]);const q=t.useMemo((()=>{if("function"==typeof ResizeObserver)return new ResizeObserver((()=>{n.flushSync(O)}))}),[O]),Y=t.useCallback((e=>{e&&(d||(O(),I.set(e.id,e),null==q||q.observe(e)))}),[d,I,O,q]),Z=t.useCallback(((e,t)=>{var n,r;const o=EX(e,t,M),i=d?g+d*t+u*t:null!=(r=null==(n=_.get(o))?void 0:n.start)?r:0,a={id:o,ref:Y,index:t,style:{position:"absolute",left:A?i:0,top:A?0:i}};if(d&&(a.style[A?"width":"height"]=d),null==e)return a;const s=kX(e);return Wt($t($t({},s),a),{style:$t($t({},s.style),a.style)})}),[M,_,d,g,u,A,Y]),Q=t.useMemo((()=>F.map((e=>{if(e<0)return;const t=RX(k,e);return t?Z(t,e):void 0})).filter((e=>null!=e))),[k,F,Z]),J=null==Q?void 0:Q.map((e=>null==x?void 0:x(e))),ee=C.style,te=A?"width":"height",ne=t.useMemo((()=>$t({flex:"none",position:"relative",[te]:z},ee)),[ee,te,z]),re=t.useMemo((()=>new Map),[]),oe=t.useMemo((()=>({store:s,orientation:P,overscan:N,childrenData:re})),[s,P,N,re]);return C=sr(C,(t=>e.jsx(xX.Provider,{value:oe,children:t})),[oe]),C=Wt($t({id:M},C),{style:ne,ref:er(j,C.ref)}),Wt($t({},C),{children:J})}gr((function(e){return br("div",IX(e))}));var TX=EX;function OX(e){return e&&"object"==typeof e?e:{value:e}}function LX(e){return e?"number"==typeof e?Array.from({length:e},((e,t)=>t+1)):e.reduce(((e,t,n)=>{var r,o;const i=OX(t);if(i.items,!i.items)return e[n]=n+1,e;const a=null!=(r=e[n-1])?r:0,s=null!=(o=LX(i.items)[i.items.length-1])?o:0;return e[n]=a+s,e}),[]):[0]}function DX(e,t=1){for(let n=t>0?0:e.length-1;n>=0&&n<e.length;n+=t){const r=OX(e[n]);if(r.items&&-1!==DX(r.items,t))return n;if(!r.disabled)return n}return-1}function FX(e,t,n){return e.findIndex(((e,r)=>{var o;const i=TX(e,r,n);if(i===t)return!0;const a=OX(e);if(null==(o=a.items)?void 0:o.length)return-1!==FX(a.items,t,i);const s=t.split("/");return 1!==s.length&&s.some((e=>i===e))}))}function _X(e){var n=e,{store:r,orientation:o,persistentIndices:i,children:a,"aria-setsize":s,"aria-posinset":l=1}=n,c=Ut(n,["store","orientation","persistentIndices","children","aria-setsize","aria-posinset"]);const u=Fr(),d=Co(r=r||u,(e=>(null!=o?o:"both"===(null==e?void 0:e.orientation))?"vertical":null==e?void 0:e.orientation)),f=Co(r,(e=>{var t;return e?"mounted"in e&&!e.mounted?0:null!=(t=c.items)?t:e.items:c.items})),p=tr(c.id),m=t.useMemo((()=>LX(f)),[f]),h=t.useMemo((()=>{var e;return null!=(e=null!=s?s:m[m.length-1])?e:0}),[s,m]),g=t.useMemo((()=>f?"number"==typeof f?0:f.length?DX(f):-1:-1),[f]),v=t.useMemo((()=>f?"number"==typeof f?f-1:f.length?function(e){return DX(e,-1)}(f):-1:-1),[f]),b=Co(r,"activeId"),w=t.useMemo((()=>p&&f?null==b||"number"==typeof f?-1:f.length?FX(f,b,p):-1:-1),[p,f,b]),y=t.useMemo((()=>{const e=[g,w,v].filter((e=>e>=0));return i?[...i,...e]:e}),[g,w,v,i]);return IX(Wt($t({id:p,store:r,orientation:d,persistentIndices:y},c),{children:e=>{var t;const n=Wt($t({},e),{"aria-setsize":h,"aria-posinset":l+(null!=(t=m[e.index-1])?t:0)});return null==a?void 0:a(n)}}))}gr((function(e){return br("div",_X(e))}));function VX(e){return e&&"object"==typeof e?e:{value:`${e}`}}function zX(e,t){var n;const r=Po(t),o=[];for(const[i,a]of e.entries()){if(o.length===r.length)break;const e=VX(a);if(null!=e.value&&r.includes(e.value))o.push(i);else if(null==(n=e.items)?void 0:n.length){zX(e.items,t).length&&o.push(i)}}return o}function HX(e){var n=e,{store:r,orientation:o,persistentIndices:i,items:a,value:s}=n,l=Ut(n,["store","orientation","persistentIndices","items","value"]);const c=Wr(),u=Co(r=r||c,(e=>e?e.mounted?null!=a?a:e.items:0:a)),d=Co(r,(e=>null!=s?s:null==e?void 0:e.value)),f=t.useMemo((()=>u?null==d||"number"==typeof u?[]:u.length?zX(u,d):[]:[]),[u,d]),p=t.useMemo((()=>i?[...i,...f]:f),[f,i]);return _X($t({store:r,items:u,persistentIndices:p},l))}var BX=gr((function(e){return br("div",HX(e))}));var $X=t.memo((function({selectedValue:n,displayValue:r,items:o,setValue:i,ariaLabel:a,searchPlaceholder:s,selectPlaceholder:l,containerClassName:c,isCollapsed:u,SelectIcon:d,showCarat:f,className:p,disabled:m,iconClassName:h,iconSide:g="left",selectId:v}){const[b,w]=t.useState(""),y=t.useRef(null),[x,C]=t.useState(null),S=e=>({id:`item-${e.value}`,value:e.value,label:e.label,icon:e.icon}),k=iu({defaultItems:o.map(S),resetValueOnHide:!0,value:b,setValue:w}),E=oc({combobox:k,defaultItems:o.map(S),value:n,setValue:i}),R=t.useMemo((()=>{const e=gw(o,b,{keys:["value","label"],baseSort:(e,t)=>e.index<t.index?-1:1});return e.map(S)}),[b,o]);t.useEffect((()=>{y.current&&!u&&C(y.current.offsetWidth)}),[u]);const P=jt("flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",h),N=jt("mr-2 flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",h);return e.jsxs("div",{className:jt("flex w-full items-center justify-center px-1",c),children:[e.jsx(Pc,{store:E,className:"sr-only",children:a}),e.jsxs(mc,{ref:y,store:E,id:v,disabled:m,className:jt("flex items-center justify-center gap-2 rounded-full bg-surface-secondary","text-text-primary hover:bg-surface-tertiary","border border-border-light",u?"h-10 w-10":"h-10 w-full rounded-xl px-3 py-2 text-sm",p),children:[null!=d&&"left"===g&&e.jsx("div",{className:P,children:d}),!u&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"flex-grow truncate text-left",children:null!=r?r||l:n||l}),null!=d&&"right"===g&&e.jsx("div",{className:P,children:d}),f&&e.jsx(vp,{className:"h-4 w-4 text-text-secondary"})]})]}),e.jsxs(Ac,{store:E,gutter:4,portal:!0,className:jt("animate-popover z-50 overflow-hidden rounded-xl border border-border-light bg-surface-secondary shadow-lg"),style:{width:u?"300px":x??"300px"},children:[e.jsx("div",{className:"py-1.5",children:e.jsxs("div",{className:"relative",children:[e.jsx(Pp,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-primary"}),e.jsx(cu,{store:k,autoSelect:!0,placeholder:s,className:"w-full rounded-md bg-surface-secondary py-2 pl-9 pr-3 text-sm text-text-primary focus:outline-none"})]})}),e.jsx("div",{className:"max-h-[300px] overflow-auto",children:e.jsx(yu,{store:k,children:e.jsx(BX,{store:E,items:R,itemSize:36,overscan:5,children:({value:t,icon:n,label:r,...o})=>e.jsxs(gu,{...o,className:jt("flex w-full cursor-pointer items-center px-3 text-sm","text-text-primary hover:bg-surface-tertiary","data-[active-item]:bg-surface-tertiary"),render:e.jsx(Ec,{value:t}),children:[null!=n&&"left"===g&&e.jsx("div",{className:N,children:n}),e.jsx("span",{className:"flex-grow truncate text-left",children:r}),null!=n&&"right"===g&&e.jsx("div",{className:N,children:n})]},o.id)})})})]})]})}));const WX=t.forwardRef(((t,n)=>{const r=kw(),{title:o,main:i,buttons:a,selection:s,className:l,leftButtons:c,description:u="",mainClassName:d,headerClassName:f,footerClassName:p,showCloseButton:m,overlayClassName:h,showCancelButton:g=!0}=t,{selectHandler:v,selectClasses:b,selectText:w,isLoading:y}=s||{};return e.jsxs(Ux,{overlayClassName:h,showCloseButton:m,ref:n,className:jt("w-11/12 border-none bg-background text-foreground",l??""),onClick:e=>e.stopPropagation(),children:[e.jsxs(Kx,{className:jt(f??""),children:[e.jsx(Xx,{children:o}),u&&e.jsx(qx,{className:"items-center justify-center",children:u})]}),e.jsx("div",{className:jt("px-0 py-2",d),children:null!=i?i:null}),e.jsxs(Gx,{className:p,children:[e.jsx("div",{children:null!=c?e.jsx("div",{className:"mt-3 flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:mt-0 sm:flex-row",children:c}):null}),e.jsxs("div",{className:"flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:flex-row",children:[g&&e.jsx($x,{asChild:!0,children:e.jsx(zp,{variant:"outline",children:r("com_ui_cancel")})}),null!=a?a:null,s?e.jsx($x,{onClick:v,disabled:y,className:`${b??"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm disabled:opacity-80 max-sm:order-first max-sm:w-full sm:order-none`,children:!0===y?e.jsx(p$,{className:"size-4 text-white"}):w}):null]})]})]})})),UX=a.forwardRef((({className:t,options:n,onSelect:r,...o},i)=>{const[s,l]=a.useState(!1),[c,u]=a.useState(o.value||""),[d,f]=a.useState(-1),p=a.useRef(null),m=e=>{u(e),l(!1),f(-1),r&&r(e),o.onChange&&o.onChange({target:{value:e}})};return a.useEffect((()=>{const e=e=>{p.current&&!p.current.contains(e.target)&&(l(!1),f(-1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),e.jsxs("div",{className:"relative",ref:p,children:[e.jsxs("div",{className:"relative",children:[e.jsx(Cy,{...o,value:c,onChange:e=>{u(e.target.value),o.onChange&&o.onChange(e)},onKeyDown:e=>{switch(e.key){case"ArrowDown":e.preventDefault(),s?f((e=>e<n.length-1?e+1:e)):l(!0);break;case"ArrowUp":e.preventDefault(),f((e=>e>0?e-1:0));break;case"Enter":e.preventDefault(),s&&-1!==d&&m(n[d]),l(!1);break;case"Escape":l(!1),f(-1)}},"aria-haspopup":"listbox","aria-controls":"dropdown-list",className:jt("bg-surface-secondary",t??""),ref:i}),e.jsx("button",{type:"button",className:"text-tertiary absolute inset-y-0 right-0 flex items-center rounded-md px-2 hover:text-secondary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring-primary",onClick:()=>l(!s),"aria-label":s?"Close dropdown":"Open dropdown",children:e.jsx("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),s&&e.jsx("ul",{id:"dropdown-list",role:"listbox",className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md border border-border-medium bg-surface-secondary shadow-lg focus:ring-1 focus:ring-inset focus:ring-ring-primary",children:n.map(((t,n)=>e.jsx("li",{role:"option","aria-selected":n===d,className:jt("cursor-pointer rounded-md px-3 py-2","focus:bg-surface-tertiary focus:outline-none focus:ring-1 focus:ring-inset focus:ring-ring-primary",n===d?"bg-surface-active text-primary":"text-secondary hover:bg-surface-tertiary"),onClick:()=>m(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),m(t))},tabIndex:0,children:t},n)))})]})}));UX.displayName="InputWithDropdown";const KX=t.createContext({showToast:()=>({})});exports.Accordion=It,exports.AccordionContent=Lt,exports.AccordionItem=Tt,exports.AccordionTrigger=Ot,exports.AlertDialog=Uf,exports.AlertDialogAction=ep,exports.AlertDialogCancel=tp,exports.AlertDialogContent=qf,exports.AlertDialogDescription=Jf,exports.AlertDialogFooter=Zf,exports.AlertDialogHeader=Yf,exports.AlertDialogTitle=Qf,exports.AlertDialogTrigger=Kf,exports.AnimatedSearchInput=d$,exports.AnimatedTabs=function({tabs:n,className:r="",tabListClassName:o="",tabClassName:i="",tabPanelClassName:a="",containerClassName:s="",tabListProps:l={},defaultSelectedId:c}){const u=n.map(((e,t)=>e.id||`tab-${t}`)),d=c||u[0],f=t.useRef(null);return t.useEffect((()=>{const e=f.current;if(!e)return;const t=()=>{const t=e.querySelector('[data-state="active"]');t&&(e.style.setProperty("--tab-left",`${t.offsetLeft}px`),e.style.setProperty("--tab-width",`${t.offsetWidth}px`))};t();const n=new MutationObserver(t);return n.observe(e,{attributes:!0,subtree:!0,attributeFilter:["data-state"]}),()=>n.disconnect()}),[n]),e.jsx("div",{className:`w-full ${r}`,children:e.jsxs(_i,{defaultSelectedId:d,children:[e.jsx(Bi,{ref:f,"aria-label":"Tabs",className:`animated-tab-list flex py-1 ${o}`,...l,children:n.map(((t,n)=>e.jsx(Su,{id:u[n],disabled:t.disabled,className:i,"data-state":u[n]===d?"active":"inactive",children:t.label},u[n])))}),e.jsx("div",{className:jt("animated-panels relative flex w-full flex-col items-center overflow-hidden p-0",s),children:n.map(((t,n)=>e.jsx(ku,{id:`panel-${u[n]}`,tabId:u[n],className:a,children:t.content},`panel-${u[n]}`)))})]})})},exports.AnthropicIcon=function({size:t=25,className:n=""}){return e.jsxs("svg",{viewBox:"0 0 24 16",overflow:"visible",width:t,height:t,className:jt("fill-current text-black",n),children:[e.jsx("g",{style:{transform:"translateX(13px) rotateZ(0deg)",transformOrigin:"4.775px 7.73501px"},children:e.jsx("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M0,0 C0,0 6.1677093505859375,15.470022201538086 6.1677093505859375,15.470022201538086 C6.1677093505859375,15.470022201538086 9.550004005432129,15.470022201538086 9.550004005432129,15.470022201538086 C9.550004005432129,15.470022201538086 3.382294178009033,0 3.382294178009033,0 C3.382294178009033,0 0,0 0,0 C0,0 0,0 0,0z"})}),e.jsx("g",{style:{transform:"none",transformOrigin:"7.935px 7.73501px"},opacity:"1",children:e.jsx("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 7.93500280380249,3.911694288253784 7.93500280380249,3.911694288253784 C7.93500280380249,3.911694288253784 10.045400619506836,9.348296165466309 10.045400619506836,9.348296165466309 C10.045400619506836,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309z M6.166755199432373,0 C6.166755199432373,0 0,15.470022201538086 0,15.470022201538086 C0,15.470022201538086 3.4480772018432617,15.470022201538086 3.4480772018432617,15.470022201538086 C3.4480772018432617,15.470022201538086 4.709278583526611,12.22130012512207 4.709278583526611,12.22130012512207 C4.709278583526611,12.22130012512207 11.16093635559082,12.22130012512207 11.16093635559082,12.22130012512207 C11.16093635559082,12.22130012512207 12.421928405761719,15.470022201538086 12.421928405761719,15.470022201538086 C12.421928405761719,15.470022201538086 15.87000560760498,15.470022201538086 15.87000560760498,15.470022201538086 C15.87000560760498,15.470022201538086 9.703250885009766,0 9.703250885009766,0 C9.703250885009766,0 6.166755199432373,0 6.166755199432373,0 C6.166755199432373,0 6.166755199432373,0 6.166755199432373,0z"})})]})},exports.AnthropicMinimalIcon=function(){return e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"m17.304 3.5472h-3.6718l6.6959 16.906h3.6718zm-10.608 0-6.6959 16.906h3.7442l1.3693-3.5502h7.0052l1.3693 3.5502h3.7442l-6.6959-16.906zm-0.37114 10.216 2.2914-5.9413 2.2914 5.9413z"})})},exports.AppleIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 814 1000",id:"apple",className:"h-6 w-6",children:e.jsx("path",{d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z",fill:"currentColor"})})},exports.ArchiveIcon=function({className:t="icon-md"}){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.62188 3.07918C3.87597 2.571 4.39537 2.25 4.96353 2.25H13.0365C13.6046 2.25 14.124 2.571 14.3781 3.07918L15.75 5.82295V13.5C15.75 14.7426 14.7426 15.75 13.5 15.75H4.5C3.25736 15.75 2.25 14.7426 2.25 13.5V5.82295L3.62188 3.07918ZM13.0365 3.75H4.96353L4.21353 5.25H13.7865L13.0365 3.75ZM14.25 6.75H3.75V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25H13.5C13.9142 14.25 14.25 13.9142 14.25 13.5V6.75ZM6.75 9C6.75 8.58579 7.08579 8.25 7.5 8.25H10.5C10.9142 8.25 11.25 8.58579 11.25 9C11.25 9.41421 10.9142 9.75 10.5 9.75H7.5C7.08579 9.75 6.75 9.41421 6.75 9Z",fill:"currentColor"})})},exports.AssistantIcon=function({className:t="",size:n="1em"}){const r=n,o=n;return e.jsxs("svg",{width:o,height:r,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:jt("text-token-secondary h-2/3 w-2/3",t),xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),e.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),e.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})},exports.AttachmentIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 7C9 4.23858 11.2386 2 14 2C16.7614 2 19 4.23858 19 7V15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15V9C5 8.44772 5.44772 8 6 8C6.55228 8 7 8.44772 7 9V15C7 17.7614 9.23858 20 12 20C14.7614 20 17 17.7614 17 15V7C17 5.34315 15.6569 4 14 4C12.3431 4 11 5.34315 11 7V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V9C13 8.44772 13.4477 8 14 8C14.5523 8 15 8.44772 15 9V15C15 16.6569 13.6569 18 12 18C10.3431 18 9 16.6569 9 15V7Z",fill:"currentColor"})})},exports.AzureMinimalIcon=function({size:t=25,className:n="h-4 w-4"}){const r=t,o=t;return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt(n,""),width:o,height:r,xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"m8.0458 0.81981a1.1197 1.1197 0 0 0-1.0608 0.76184l-6.7912 20.123a1.1178 1.1178 0 0 0 1.0592 1.4751h5.4647a1.1197 1.1197 0 0 0 1.0608-0.7615l1.3528-4.0084-2.3684-2.2107a0.51536 0.51536 0 0 1 0.35193-0.8923h3.0639l1.8213-5.3966-2.8111-8.3294a1.1181 1.1181 0 0 0-1.0595-0.76049h-0.0836z"}),e.jsx("path",{d:"m7.1147 15.307a0.51536 0.51536 0 0 0-0.35193 0.8923l7.1552 6.6782a1.1248 1.1248 0 0 0 0.76724 0.30238h0.2417a1.1181 1.1181 0 0 0 1.0534-1.4755l-2.1591-6.3974z"}),e.jsx("path",{d:"m17.015 1.5807a1.1178 1.1178 0 0 0-1.0593-0.76049h-7.8258a1.1181 1.1181 0 0 1 1.0593 0.76049l6.7916 20.123a1.1181 1.1181 0 0 1-1.0593 1.4757h7.8261a1.1181 1.1181 0 0 0 1.059-1.4757z"})]})},exports.Badge=function({icon:t,label:n,id:r,isActive:o=!1,isEditing:i=!1,isDragging:a=!1,isAvailable:s=!0,isInChat:l=!1,onBadgeAction:c,onToggle:u,className:d,...f}){const p=i&&s,m="1"===r&&l;return e.jsxs(aT.button,{onClick:e=>{if(m)return e.preventDefault(),void e.stopPropagation();!i&&u&&(e.preventDefault(),e.stopPropagation(),u())},className:jt("group relative inline-flex items-center gap-1.5 rounded-full px-4 py-1.5","border border-border-medium text-sm font-medium transition-shadow md:w-full","size-9 p-2 md:p-3",o?"bg-surface-active shadow-md":"bg-surface-chat shadow-sm hover:bg-surface-hover hover:shadow-md","active:scale-95 active:shadow-inner",p&&"cursor-move",m&&"cursor-not-allowed opacity-50 hover:shadow-sm",d),animate:{scale:a?1.1:1,boxShadow:a?"0 10px 25px rgba(0,0,0,0.1)":void 0},whileTap:{scale:a?1.1:m?1:.97},transition:{type:"tween",duration:.1,ease:"easeOut"},...f,children:[t&&e.jsx(t,{className:jt("relative h-5 w-5 md:h-4 md:w-4",!n&&"mx-auto")}),e.jsx("span",{className:"relative hidden md:inline",children:n}),i&&!a&&e.jsx(aT.button,{className:"absolute -right-1 -top-1 flex h-6 w-6 items-center justify-center rounded-full bg-surface-secondary-alt text-text-primary shadow-sm md:h-5 md:w-5",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},whileTap:{scale:.9},onMouseDown:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),c?.()},children:s?e.jsx(jp,{className:"h-3 w-3"}):e.jsx(Rp,{className:"h-3 w-3"})})]})},exports.BedrockIcon=function({size:t=25,className:n=""}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:jt("fill-current text-black",n),children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M12,18.1397014 L9.574,18.9487014 L8.628,18.3177014 L9.658,17.9737014 L9.342,17.0257014 L7.574,17.6147014 L7,17.2327014 L7,14.4997014 C7,14.3107014 6.893,14.1377014 6.724,14.0527014 L5,13.1907014 L5,10.8087014 L6.5,10.0587014 L8,10.8087014 L8,12.4997014 C8,12.6897014 8.107,12.8627014 8.276,12.9477014 L10.276,13.9477014 L10.724,13.0527014 L9,12.1907014 L9,10.8087014 L10.724,9.94770136 C10.893,9.86270136 11,9.68970136 11,9.49970136 L11,7.99970136 L10,7.99970136 L10,9.19070136 L8.5,9.94070136 L7,9.19070136 L7,6.76770136 L8,6.10070136 L8,7.99970136 L9,7.99970136 L9,5.43470136 L9.574,5.05170136 L12,5.86070136 L12,18.1397014 Z M17.5,16.9997014 C17.775,16.9997014 18,17.2237014 18,17.4997014 C18,17.7757014 17.775,17.9997014 17.5,17.9997014 C17.225,17.9997014 17,17.7757014 17,17.4997014 C17,17.2237014 17.225,16.9997014 17.5,16.9997014 L17.5,16.9997014 Z M16.5,5.99970136 C16.775,5.99970136 17,6.22370136 17,6.49970136 C17,6.77570136 16.775,6.99970136 16.5,6.99970136 C16.225,6.99970136 16,6.77570136 16,6.49970136 C16,6.22370136 16.225,5.99970136 16.5,5.99970136 L16.5,5.99970136 Z M18.5,11.9997014 C18.775,11.9997014 19,12.2237014 19,12.4997014 C19,12.7757014 18.775,12.9997014 18.5,12.9997014 C18.225,12.9997014 18,12.7757014 18,12.4997014 C18,12.2237014 18.225,11.9997014 18.5,11.9997014 L18.5,11.9997014 Z M17.092,12.9997014 C17.299,13.5807014 17.849,13.9997014 18.5,13.9997014 C19.327,13.9997014 20,13.3277014 20,12.4997014 C20,11.6727014 19.327,10.9997014 18.5,10.9997014 C17.849,10.9997014 17.299,11.4197014 17.092,11.9997014 L13,11.9997014 L13,9.99970136 L16.5,9.99970136 C16.776,9.99970136 17,9.77670136 17,9.49970136 L17,7.90770136 C17.581,7.70070136 18,7.15070136 18,6.49970136 C18,5.67270136 17.327,4.99970136 16.5,4.99970136 C15.673,4.99970136 15,5.67270136 15,6.49970136 C15,7.15070136 15.419,7.70070136 16,7.90770136 L16,8.99970136 L13,8.99970136 L13,5.49970136 C13,5.28470136 12.862,5.09370136 12.658,5.02570136 L9.658,4.02570136 C9.511,3.97670136 9.351,3.99870136 9.223,4.08370136 L6.223,6.08370136 C6.084,6.17670136 6,6.33270136 6,6.49970136 L6,9.19070136 L4.276,10.0527014 C4.107,10.1377014 4,10.3107014 4,10.4997014 L4,13.4997014 C4,13.6897014 4.107,13.8627014 4.276,13.9477014 L6,14.8087014 L6,17.4997014 C6,17.6667014 6.084,17.8237014 6.223,17.9157014 L9.223,19.9157014 C9.306,19.9717014 9.402,19.9997014 9.5,19.9997014 C9.553,19.9997014 9.606,19.9917014 9.658,19.9737014 L12.658,18.9737014 C12.862,18.9067014 13,18.7157014 13,18.4997014 L13,15.9997014 L15.293,15.9997014 L16.146,16.8537014 L16.159,16.8407014 C16.061,17.0407014 16,17.2627014 16,17.4997014 C16,18.3267014 16.673,18.9997014 17.5,18.9997014 C18.327,18.9997014 19,18.3267014 19,17.4997014 C19,16.6727014 18.327,15.9997014 17.5,15.9997014 C17.262,15.9997014 17.04,16.0607014 16.841,16.1597014 L16.854,16.1467014 L15.854,15.1467014 C15.76,15.0527014 15.633,14.9997014 15.5,14.9997014 L13,14.9997014 L13,12.9997014 L17.092,12.9997014 Z"})})})},exports.BirthdayIcon=function({className:t=""}){return e.jsxs("svg",{version:"1.1",viewBox:"0 0 233.33 290",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:jt("h-9 w-9",t),children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"linearGradient1842",x1:"163.92",x2:"173.66",y1:"22.212",y2:"-6.5784",gradientTransform:"translate(.10391 .050143)",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#640a62",offset:"0"}),e.jsx("stop",{stopColor:"#852283",offset:".49917"}),e.jsx("stop",{stopColor:"#640a62",offset:"1"})]})}),e.jsxs("g",{children:[e.jsx("path",{transform:"matrix(.43416 .90084 -.89966 .4366 0 0)",d:"m259.29-126.03a232.2 237.56 0 0 1-17.412 231.34l-193.32-131.59z",fill:"url(#linearGradient1842)"}),e.jsx("path",{transform:"matrix(.6967 .051926 -.051926 .6967 35.578 23.196)",d:"m50.818 31.415c-1.4654 2.4749-10.838 2.4195-12.997 4.3204-2.1584 1.9009-3.288 11.206-5.9282 12.347-2.6402 1.1409-10.191-4.4132-13.054-4.1441-2.8636 0.26917-9.2466 7.133-12.053 6.5041-2.8066-0.62889-5.6503-9.5602-8.1252-11.026-2.4749-1.4654-11.673 0.33572-13.574-1.8227s1.0482-11.056-0.0927-13.696c-1.1409-2.6402-9.6412-6.5898-9.9104-9.4533-0.26917-2.8636 7.3463-8.328 7.9752-11.135 0.62889-2.8066-3.9265-10.998-2.4612-13.473 1.4654-2.4749 10.838-2.4195 12.997-4.3204 2.1584-1.9009 3.288-11.206 5.9282-12.347 2.6402-1.1409 10.191 4.4132 13.054 4.1441 2.8636-0.26917 9.2466-7.133 12.053-6.5041 2.8066 0.62889 5.6503 9.5602 8.1252 11.026s11.673-0.33572 13.574 1.8227c1.9009 2.1584-1.0482 11.056 0.0927 13.696 1.1409 2.6402 9.6412 6.5898 9.9104 9.4533 0.26917 2.8635-7.3463 8.328-7.9752 11.135-0.62889 2.8066 3.9265 10.998 2.4612 13.473z",fill:"#ff9d78",stroke:"#f29472",strokeWidth:"4.7877"}),e.jsx("circle",{cx:"170.36",cy:"215.76",r:"12.903",fill:"#cfffff"}),e.jsx("path",{d:"m220.77 174.77c-88.526 101.03-191.21 85.731-209.5 82.142-2.2101-2e-5 -2.6686 0.42426-3.437 2.0021l-1.7042 7.5028c0.056197 2.3603 0.37544 2.6428 1.9121 3.5409 18.396 3.3746 130.27 19.488 223.46-86.881 0.64011-1.5095 0.46653-3.1324-0.59137-4.7337l-5.1558-3.6482c-1.586-0.8743-3.9524-0.94332-4.9837 0.0751z",color:"#000000",fill:"#ff9d78",stroke:"#f29472",strokeLinejoin:"round",strokeWidth:"2.8913"}),e.jsxs("g",{fill:"#cfffff",children:[e.jsx("circle",{cx:"72.684",cy:"99.47",r:"12.903"}),e.jsx("circle",{cx:"99.144",cy:"172.32",r:"12.903"}),e.jsx("circle",{cx:"59.617",cy:"214.78",r:"12.903"}),e.jsx("circle",{cx:"135.4",cy:"118.42",r:"12.903"}),e.jsx("path",{transform:"rotate(38.66)",d:"m254.21-1.9608a12.903 12.903 0 0 1-6.4852 11.194 12.903 12.903 0 0 1-12.937-0.0582 12.903 12.903 0 0 1-6.3843-11.252l12.903 0.1161z"}),e.jsx("path",{d:"m29.476 158.16a12.903 12.903 0 0 0-3.6562 0.5293l-3.3691 23.189a12.903 12.903 0 0 0 7.0254 2.0879 12.903 12.903 0 0 0 12.904-12.904 12.903 12.903 0 0 0-12.904-12.902z"})]})]})]})},exports.Blocks=function({className:t=""}){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:jt("lucide lucide-blocks",t),children:[e.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),e.jsx("path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3"})]})},exports.Breadcrumb=Mp,exports.BreadcrumbEllipsis=Dp,exports.BreadcrumbItem=Ip,exports.BreadcrumbLink=Tp,exports.BreadcrumbList=Ap,exports.BreadcrumbPage=Op,exports.BreadcrumbSeparator=Lp,exports.Button=zp,exports.ChatGPTMinimalIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"lucide lucide-bot",children:[e.jsx("rect",{width:"18",height:"10",x:"3",y:"11",rx:"2"}),e.jsx("circle",{cx:"12",cy:"5",r:"2"}),e.jsx("path",{d:"M12 7v4"}),e.jsx("line",{x1:"8",x2:"8",y1:"16",y2:"16"}),e.jsx("line",{x1:"16",x2:"16",y1:"16",y2:"16"})]})},exports.CheckMark=m$,exports.Checkbox=em,exports.CheckboxButton=N$,exports.CircleHelpIcon=function({className:t="icon-md-heavy",size:n="1em"}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:jt(t),children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e.jsx("path",{d:"M12 17h.01"})]})},exports.Clipboard=function({className:t="icon-md-heavy",size:n="1em"}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt(t),children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-9a3 3 0 0 1 3-3h2zm2 2h5a3 3 0 0 1 3 3v5h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-9a1 1 0 0 0-1 1zM5 9a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1z",clipRule:"evenodd"})})},exports.CodeyIcon=function({size:t=25,className:n=""}){return e.jsx("svg",{width:t,height:t,className:jt("dark:fill-white",n),viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:e.jsx("path",{d:"M2 4.006C2 2.898 2.897 2 4.006 2h9.988C15.102 2 16 2.897 16 4.006v9.988A2.005 2.005 0 0 1 13.994 16H4.006A2.005 2.005 0 0 1 2 13.994V4.006zM13.992 9l.003-.003L10.997 6 9.75 7.247 11.503 9 9.75 10.753 10.997 12l2.997-2.997L13.992 9zm-9.99 0L4 8.997 6.997 6l1.247 1.247L6.492 9l1.753 1.753L6.997 12 4 9.003 4.003 9z",fillRule:"evenodd"})})},exports.Collapsible=km,exports.CollapsibleContent=Rm,exports.CollapsibleTrigger=Em,exports.Combobox=function({selectedValue:n,displayValue:r,items:o,setValue:i,ariaLabel:a,searchPlaceholder:s,selectPlaceholder:l,isCollapsed:c,SelectIcon:u}){const d=(o??[]).map((e=>"string"==typeof e?{label:e,value:e}:e)),{open:f,setOpen:p,setSearchValue:m,matches:h}=Sw({value:n,options:d});return e.jsx(c_,{value:n,onValueChange:i,open:f,onOpenChange:()=>{!0!==f?setTimeout((()=>{p(!f)}),75):p(!1)},children:e.jsxs(uu,{open:f,setOpen:p,resetValueOnHide:!0,includesBaseElement:!1,setValue:e=>{t.startTransition((()=>{m(e)}))},children:[e.jsx(S_,{"aria-label":a,className:jt("flex items-center gap-2 [&>span]:line-clamp-1 [&>span]:flex [&>span]:w-full [&>span]:items-center [&>span]:gap-1 [&>span]:truncate [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0",c?"flex h-9 w-9 shrink-0 items-center justify-center p-0 [&>span]:w-auto [&>svg]:hidden":"","bg-white text-black hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-gray-500 dark:bg-gray-850 dark:text-white"),children:e.jsxs(C_,{placeholder:l,children:[e.jsx("div",{className:"assistant-item flex items-center justify-center overflow-hidden rounded-full",children:u||e.jsx(Le,{})}),e.jsx("span",{className:jt("ml-2",c?"hidden":""),style:{userSelect:"none"},children:n?r??n:l&&l})]})}),e.jsx(f_,{children:e.jsxs(p_,{role:"dialog","aria-label":a+"s",position:"popper",className:jt("bg-popover text-popover-foreground relative z-50 max-h-[52vh] min-w-[8rem] overflow-hidden rounded-md border border-gray-200 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-600","data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1","bg-white dark:bg-gray-700"),children:[e.jsxs(m_,{className:"mb-5 h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",children:[e.jsxs("div",{className:"group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-white px-2 px-3 py-2 text-black duration-300 dark:bg-gray-700 dark:text-white",children:[e.jsx(Pp,{className:"h-4 w-4 text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"}),e.jsx(cu,{autoSelect:!0,placeholder:s,className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-gray-700/10 dark:focus:ring-gray-200/10",onBlurCapture:e=>{e.preventDefault(),e.stopPropagation()}}),e.jsx(pu,{hideWhenEmpty:!0,className:"relative flex h-5 w-5 items-center justify-end text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"})]}),e.jsx(yu,{className:"overflow-y-auto p-1 py-2",children:h.map((({label:t,value:n,icon:r})=>e.jsx(g_,{value:`${n??""}`,asChild:!0,children:e.jsxs(gu,{className:jt("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","rounded-lg hover:bg-gray-100/50 hover:bg-gray-50 dark:text-white dark:hover:bg-gray-600"),onTouchEnd:()=>{i(`${n??""}`),p(!1)},children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(b_,{children:e.jsx(Te,{className:"h-4 w-4"})})}),e.jsx(v_,{children:e.jsxs("div",{className:"flex items-center justify-center gap-3 dark:text-white [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0 [&_svg]:text-foreground",children:[e.jsx("div",{className:"assistant-item overflow-hidden rounded-full",children:r&&r}),t]})})]})},n)))})]}),e.jsx(E_,{className:"absolute bottom-0 left-0 right-0"})]})})]})})},exports.ContinueIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt("h-3 w-3 -rotate-180",t),height:"19",width:"19",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("polygon",{points:"11 19 2 12 11 5 11 19"}),e.jsx("polygon",{points:"22 19 13 12 22 5 22 19"})]})},exports.ControlCombobox=$X,exports.CrossIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt(t,"h-4 w-4"),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})},exports.CustomMinimalIcon=function({size:t=25,className:n=""}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:jt("lucide lucide-bot",n),children:[e.jsx("path",{d:"M12 8V4H8"}),e.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),e.jsx("path",{d:"M2 14h2"}),e.jsx("path",{d:"M20 14h2"}),e.jsx("path",{d:"M15 13v2"}),e.jsx("path",{d:"M9 13v2"})]})},exports.DataIcon=function({className:t="icon-sm"}){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.00633 5.5C6.02321 5.53319 6.07042 5.60366 6.19525 5.70906C6.42458 5.9027 6.81573 6.12215 7.38659 6.32603C8.5196 6.73067 10.1506 7 12 7C13.8494 7 15.4804 6.73067 16.6134 6.32603C17.1843 6.12215 17.5754 5.9027 17.8048 5.70906C17.9296 5.60366 17.9768 5.53319 17.9937 5.5C17.9768 5.46681 17.9296 5.39634 17.8048 5.29094C17.5754 5.0973 17.1843 4.87785 16.6134 4.67397C15.4804 4.26933 13.8494 4 12 4C10.1506 4 8.5196 4.26933 7.38659 4.67397C6.81573 4.87785 6.42458 5.0973 6.19525 5.29094C6.07042 5.39634 6.02321 5.46681 6.00633 5.5ZM18 7.91726C17.7726 8.02403 17.5333 8.12123 17.2861 8.20951C15.8856 8.70968 14.0166 9 12 9C9.98341 9 8.1144 8.70968 6.71392 8.20951C6.46674 8.12123 6.22738 8.02403 6 7.91726V11.9866C6.00813 12.0073 6.03931 12.0661 6.14259 12.1624C6.31976 12.3277 6.63181 12.5252 7.10609 12.7189C8.04837 13.1039 9.43027 13.3932 11.051 13.476C11.6026 13.5042 12.0269 13.9741 11.9987 14.5257C11.9705 15.0773 11.5005 15.5016 10.949 15.4734C9.17744 15.3829 7.55934 15.0646 6.34969 14.5704C6.23097 14.5219 6.11419 14.4709 6 14.4173V18.4866C6.00813 18.5073 6.03931 18.5661 6.14259 18.6624C6.31976 18.8277 6.63181 19.0252 7.10609 19.2189C8.04837 19.6039 9.43027 19.8932 11.051 19.976C11.6026 20.0042 12.0269 20.4741 11.9987 21.0257C11.9705 21.5773 11.5005 22.0016 10.949 21.9734C9.17744 21.8829 7.55934 21.5646 6.34969 21.0704C5.74801 20.8246 5.19611 20.5146 4.77833 20.1249C4.35948 19.7341 4 19.1866 4 18.5V5.5C4 4.74631 4.43048 4.16346 4.90494 3.76283C5.38405 3.35829 6.01803 3.03902 6.71392 2.79049C8.1144 2.29032 9.98341 2 12 2C14.0166 2 15.8856 2.29032 17.2861 2.79049C17.982 3.03902 18.616 3.35829 19.0951 3.76283C19.5695 4.16346 20 4.74631 20 5.5V10C20 10.5523 19.5523 11 19 11C18.4477 11 18 10.5523 18 10V7.91726ZM17.5 13C18.0523 13 18.5 13.4477 18.5 14V14.6707C18.851 14.7948 19.172 14.9823 19.4492 15.2195L20.0308 14.8837C20.5091 14.6075 21.1207 14.7714 21.3968 15.2497C21.673 15.728 21.5091 16.3396 21.0308 16.6157L20.4499 16.9511C20.4828 17.1291 20.5 17.3125 20.5 17.5C20.5 17.6873 20.4828 17.8707 20.45 18.0485L21.0308 18.3838C21.5091 18.6599 21.6729 19.2715 21.3968 19.7498C21.1206 20.2281 20.5091 20.392 20.0308 20.1158L19.4495 19.7803C19.1722 20.0176 18.8511 20.2052 18.5 20.3293V21C18.5 21.5523 18.0523 22 17.5 22C16.9477 22 16.5 21.5523 16.5 21V20.3293C16.1489 20.2052 15.8277 20.0176 15.5504 19.7802L14.969 20.1159C14.4907 20.392 13.8791 20.2282 13.603 19.7499C13.3269 19.2716 13.4907 18.66 13.969 18.3839L14.55 18.0484C14.5172 17.8706 14.5 17.6873 14.5 17.5C14.5 17.3127 14.5172 17.1294 14.55 16.9515L13.9691 16.6161C13.4908 16.34 13.3269 15.7284 13.6031 15.2501C13.8792 14.7718 14.4908 14.608 14.9691 14.8841L15.5504 15.2197C15.8278 14.9824 16.1489 14.7948 16.5 14.6707V14C16.5 13.4477 16.9477 13 17.5 13ZM16.624 17.0174C16.6274 17.0117 16.6308 17.0059 16.6342 17.0001C16.6374 16.9946 16.6405 16.989 16.6436 16.9834C16.8187 16.6937 17.1367 16.5 17.5 16.5C17.8645 16.5 18.1835 16.6951 18.3583 16.9865C18.3607 16.9909 18.3632 16.9953 18.3658 16.9997C18.3685 17.0044 18.3713 17.0091 18.3741 17.0138C18.4543 17.1577 18.5 17.3235 18.5 17.5C18.5 17.6737 18.4557 17.8371 18.3778 17.9794C18.3737 17.9861 18.3697 17.9929 18.3657 17.9998C18.3619 18.0064 18.3581 18.0131 18.3545 18.0198C18.1789 18.3077 17.8619 18.5 17.5 18.5C17.1362 18.5 16.8178 18.3058 16.6428 18.0154C16.64 18.0102 16.6371 18.005 16.6341 17.9999C16.631 17.9945 16.6278 17.9891 16.6246 17.9838C16.5452 17.8404 16.5 17.6755 16.5 17.5C16.5 17.325 16.545 17.1605 16.624 17.0174Z",fill:"currentColor"})})},exports.DataTable=function({columns:n,data:r,onDelete:o,filterColumn:i,defaultSort:s=[],className:l="",isFetchingNextPage:c=!1,hasNextPage:u=!1,fetchNextPage:d,enableRowSelection:f=!0,showCheckboxes:p=!0,onFilterChange:m,filterValue:h,isLoading:g,enableSearch:v=!0}){const b=Ew("(max-width: 768px)"),w=t.useRef(null),[y,x]=t.useState(!1),[C,S]=t.useState({}),[k,E]=t.useState(s),[R,P]=t.useState([]),[N,j]=t.useState({}),[M,A]=t.useState(h??""),[I,T]=t.useState(!1),O=t.useMemo((()=>{if(!f||!p)return n;const t={id:"select",header:({table:t})=>e.jsx("div",{className:"flex h-full w-[30px] items-center justify-center",children:e.jsx(em,{checked:t.getIsAllPageRowsSelected(),onCheckedChange:e=>t.toggleAllPageRowsSelected(Boolean(e)),"aria-label":"Select all"})}),cell:({row:t})=>e.jsx(g$,{checked:t.getIsSelected(),onChange:e=>t.toggleSelected(e),ariaLabel:"Select row"}),meta:{size:"50px"}};return[t,...n]}),[n,f,p]),L=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=a.useState((()=>({current:s$(t)}))),[r,o]=a.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}({data:r,columns:O,getCoreRowModel:e=>xB((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const a=[];for(let l=0;l<t.length;l++){const c=l$(e,e._getRowId(t[l],l,i),t[l],l,o,void 0,null==i?void 0:i.id);var s;n.flatRows.push(c),n.rowsById[c.id]=c,a.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=c.originalSubRows)&&s.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return a};return n.rows=r(t),n}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>xB((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],i=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),a={};i.forEach((t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const s=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r<i.length;r+=1){var n;const o=i[r],s=a[o.id],l=null!=(n=null==o?void 0:o.desc)&&n;let c=0;if(s.sortUndefined){const n=void 0===e.getValue(o.id),r=void 0===t.getValue(o.id);(n||r)&&(c=n&&r?0:n?s.sortUndefined:-s.sortUndefined)}if(0===c&&(c=s.sortingFn(e,t,o.id)),0!==c)return l&&(c*=-1),s.invertSorting&&(c*=-1),c}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))})),t};return{rows:s(n.rows),flatRows:o,rowsById:n.rowsById}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getFilteredRowModel:e=>xB((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,r)=>{if(!t.rows.length||(null==n||!n.length)&&!r){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const o=[],i=[];(null!=n?n:[]).forEach((t=>{var n;const r=e.getColumn(t.id);if(!r)return;const i=r.getFilterFn();i&&o.push({id:t.id,filterFn:i,resolvedValue:null!=(n=null==i.resolveFilterValue?void 0:i.resolveFilterValue(t.value))?n:t.value})}));const a=n.map((e=>e.id)),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let c,u;r&&s&&l.length&&(a.push("__global__"),l.forEach((e=>{var t;i.push({id:e.id,filterFn:s,resolvedValue:null!=(t=null==s.resolveFilterValue?void 0:s.resolveFilterValue(r))?t:r})})));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},o.length)for(let e=0;e<o.length;e++){c=o[e];const t=c.id;n.columnFilters[t]=c.filterFn(n,t,c.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))}if(i.length){for(let e=0;e<i.length;e++){u=i[e];const t=u.id;if(u.filterFn(n,t,u.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return c$(t.rows,(e=>{for(let t=0;t<a.length;t++)if(!1===e.columnFilters[a[t]])return!1;return!0}),e)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),enableRowSelection:f,enableMultiRowSelection:!0,state:{sorting:k,columnFilters:R,columnVisibility:N,rowSelection:C},onSortingChange:E,onColumnFiltersChange:P,onColumnVisibilityChange:j,onRowSelectionChange:S}),{rows:D}=L.getRowModel(),F=vB({count:D.length,getScrollElement:()=>w.current,estimateSize:t.useCallback((()=>48),[]),overscan:10}),_=F.getVirtualItems(),V=F.getTotalSize(),z=_.length>0?_[0].start:0,H=_.length>0?V-_[_.length-1].end:0;t.useEffect((()=>{const e=w.current;if(!e)return;const t=async()=>{if(!u||c)return;const{scrollTop:t,scrollHeight:n,clientHeight:r}=e;if(n-t<=1.5*r)try{await(d?.())}catch(e){console.error("Unable to fetch next page:",e)}};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)}),[u,c,d]),t.useEffect((()=>{T(!0);const e=setTimeout((()=>{m?.(M),T(!1)}),300);return()=>clearTimeout(e)}),[M,m]);const B=t.useCallback((async()=>{if(o){x(!0);try{const e=L.getFilteredSelectedRowModel().rows.map((e=>e.original));await o(e),S({})}finally{x(!1)}}}),[o,L]),$=Array.from({length:13},((t,n)=>{const r=Math.floor(241*Math.random())+170,o="select"===O[0]?.id?1:0;return e.jsx(MS,{className:"motion-safe:animate-fadeIn border-b border-border-light",children:O.map(((t,n)=>{const i=b$(t,b),a=n===o;return e.jsx(IS,{className:"px-2 py-1 sm:px-4 sm:py-2",style:i,children:e.jsx(eS,{className:"h-6",style:a?{width:`${r}px`}:{width:"100%"}})},t.id)}))},n)}));return e.jsxs("div",{className:jt("flex h-full flex-col gap-4",l),children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:gap-4",children:[f&&p&&e.jsx(w$,{onDelete:B,isDeleting:y,disabled:!L.getFilteredSelectedRowModel().rows.length||y,isSmallScreen:b}),void 0!==i&&L.getColumn(i)&&v&&e.jsx("div",{className:"relative flex-1",children:e.jsx(d$,{value:M,onChange:e=>A(e.target.value),isSearching:I,placeholder:"Search..."})})]}),e.jsx("div",{ref:w,className:jt("relative h-[calc(100vh-20rem)] max-w-full overflow-x-auto overflow-y-auto rounded-md border border-black/10 dark:border-white/10","transition-all duration-300 ease-out",I&&"bg-surface-secondary/50",l),children:e.jsxs(RS,{className:"w-full min-w-[300px] table-fixed border-separate border-spacing-0",children:[e.jsx(PS,{className:"sticky top-0 z-50 bg-surface-secondary",children:L.getHeaderGroups().map((t=>e.jsx(MS,{className:"border-b border-border-light",children:t.headers.map((t=>e.jsx(AS,{className:"whitespace-nowrap bg-surface-secondary px-2 py-2 text-left text-sm font-medium text-text-secondary sm:px-4",style:b$(t.column.columnDef,b),onClick:t.column.getCanSort()?t.column.getToggleSortingHandler():void 0,children:t.isPlaceholder?null:u$(t.column.columnDef.header,t.getContext())},t.id)))},t.id)))}),e.jsxs(NS,{children:[z>0&&e.jsx("tr",{children:e.jsx("td",{style:{height:`${z}px`}})}),g&&$,_.map((t=>{const n=D[t.index];return e.jsx(v$,{row:n,isSmallScreen:b,index:t.index,isSearching:I},n.id)})),!_.length&&e.jsx(MS,{className:"hover:bg-transparent",children:e.jsx(IS,{colSpan:n.length,className:"p-4 text-center",children:"No data available"})}),H>0&&e.jsx("tr",{children:e.jsx("td",{style:{height:`${H}px`}})}),(c||u)&&e.jsx(MS,{className:"hover:bg-transparent",children:e.jsx(IS,{colSpan:n.length,className:"p-4",children:e.jsx("div",{className:"flex h-full items-center justify-center",children:c?e.jsx(p$,{className:"size-4"}):u&&e.jsx("div",{className:"h-6"})})})})]})]})})]})},exports.DataTableColumnHeader=function({column:t,title:n,className:r=""}){return t.getCanSort()?e.jsx("div",{className:jt("flex items-center space-x-2",r),children:e.jsxs(_b,{children:[e.jsx(Vb,{asChild:!0,children:e.jsxs(zp,{variant:"ghost",size:"sm",className:"-ml-3 h-8 data-[state=open]:bg-accent",children:[e.jsx("span",{children:n}),"desc"===t.getIsSorted()?e.jsx(Pe,{className:"ml-2 h-4 w-4"}):"asc"===t.getIsSorted()?e.jsx(je,{className:"ml-2 h-4 w-4"}):e.jsx(Ae,{className:"ml-2 h-4 w-4"})]})}),e.jsxs(Kb,{align:"start",className:"z-[1001]",children:[e.jsxs(Gb,{onClick:()=>t.toggleSorting(!1),children:[e.jsx(je,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Asc"]}),e.jsxs(Gb,{onClick:()=>t.toggleSorting(!0),children:[e.jsx(Pe,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Desc"]}),e.jsx(Zb,{}),e.jsxs(Gb,{onClick:()=>t.toggleVisibility(!1),children:[e.jsx(Ve,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Hide"]})]})]})}):e.jsx("div",{className:jt(r),children:n})},exports.DelayedRender=({delay:e,children:t})=>Rw(e)((()=>t)),exports.Dialog=Pw,exports.DialogButton=Fw,exports.DialogClose=Dw,exports.DialogContent=Aw,exports.DialogDescription=Lw,exports.DialogFooter=Tw,exports.DialogHeader=Iw,exports.DialogOverlay=Wx,exports.DialogTemplate=j$,exports.DialogTitle=Ow,exports.DialogTrigger=Nw,exports.DiscordIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"discord",className:"h-6 w-6",children:[e.jsx("circle",{cx:"512",cy:"512",r:"512",fill:"#5865f2"}),e.jsx("path",{fill:"#fff",d:"M689.43 349a422.21 422.21 0 0 0-104.22-32.32 1.58 1.58 0 0 0-1.68.79 294.11 294.11 0 0 0-13 26.66 389.78 389.78 0 0 0-117.05 0 269.75 269.75 0 0 0-13.18-26.66 1.64 1.64 0 0 0-1.68-.79A421 421 0 0 0 334.44 349a1.49 1.49 0 0 0-.69.59c-66.37 99.17-84.55 195.9-75.63 291.41a1.76 1.76 0 0 0 .67 1.2 424.58 424.58 0 0 0 127.85 64.63 1.66 1.66 0 0 0 1.8-.59 303.45 303.45 0 0 0 26.15-42.54 1.62 1.62 0 0 0-.89-2.25 279.6 279.6 0 0 1-39.94-19 1.64 1.64 0 0 1-.16-2.72c2.68-2 5.37-4.1 7.93-6.22a1.58 1.58 0 0 1 1.65-.22c83.79 38.26 174.51 38.26 257.31 0a1.58 1.58 0 0 1 1.68.2c2.56 2.11 5.25 4.23 8 6.24a1.64 1.64 0 0 1-.14 2.72 262.37 262.37 0 0 1-40 19 1.63 1.63 0 0 0-.87 2.28 340.72 340.72 0 0 0 26.13 42.52 1.62 1.62 0 0 0 1.8.61 423.17 423.17 0 0 0 128-64.63 1.64 1.64 0 0 0 .67-1.18c10.68-110.44-17.88-206.38-75.7-291.42a1.3 1.3 0 0 0-.63-.63zM427.09 582.85c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.02 28.44-20.37 51.6-46 51.6zm170.13 0c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.01 28.44-20.17 51.6-46 51.6z"})]})},exports.DotsIcon=function({className:t="h-4 w-4 flex-shrink-0 text-gray-500"}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"12",cy:"12",r:"1"}),e.jsx("circle",{cx:"19",cy:"12",r:"1"}),e.jsx("circle",{cx:"5",cy:"12",r:"1"})]})},exports.Dropdown=({value:t,label:n="",onChange:r,options:o,className:i="",sizeClasses:a,testId:s="dropdown-menu",icon:l,iconOnly:c=!1,renderValue:u,ariaLabel:d,portal:f=!0})=>{const p=oc({value:t,setValue:e=>{r(e)}}),m=e=>{if(null!=e&&""!==e)return o.filter((e=>!M_(e))).map((e=>"string"==typeof e?{value:e,label:e}:e)).find((t=>A_(t)&&t.value===e))};return e.jsxs("div",{className:jt("relative",i),children:[e.jsxs(mc,{store:p,className:jt("focus:ring-offset-ring-offset relative inline-flex items-center justify-between rounded-xl border border-input bg-background px-3 py-2 text-sm text-text-primary transition-all duration-200 ease-in-out hover:bg-accent hover:text-accent-foreground focus:ring-ring-primary",c?"h-full w-10":"w-fit gap-2",i),"data-testid":s,"aria-label":d,children:[e.jsxs("div",{className:"flex w-full items-center gap-2",children:[l,!c&&e.jsxs("span",{className:"block truncate",children:[n,(()=>{const e=m(t);return e&&u?u(e):(e=>{if(null==e||""===e)return"";const t=m(e);return t?t.label:e})(t)})()]})]}),!c&&e.jsx(ac,{})]}),e.jsx(Ac,{portal:f,store:p,className:jt("popover-ui",a,i,"max-h-[80vh] overflow-y-auto"),children:o.map(((n,r)=>{if(M_(n))return e.jsx("div",{className:"my-1 border-t border-border-heavy"},`divider-${r}`);const o="string"==typeof n?{value:n,label:n}:n;return A_(o)?e.jsx(Ec,{value:String(o.value),className:"select-item","data-theme":o.value,children:e.jsxs("div",{className:"flex w-full items-center gap-2",children:[null!=o.icon&&e.jsx("span",{children:o.icon}),e.jsx("span",{className:"block truncate",children:o.label}),t===o.value&&e.jsx("span",{className:"ml-auto pl-2",children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md block group-hover:hidden",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM16.0755 7.93219C16.5272 8.25003 16.6356 8.87383 16.3178 9.32549L11.5678 16.0755C11.3931 16.3237 11.1152 16.4792 10.8123 16.4981C10.5093 16.517 10.2142 16.3973 10.0101 16.1727L7.51006 13.4227C7.13855 13.014 7.16867 12.3816 7.57733 12.0101C7.98598 11.6386 8.61843 11.6687 8.98994 12.0773L10.6504 13.9039L14.6822 8.17451C15 7.72284 15.6238 7.61436 16.0755 7.93219Z",fill:"currentColor"})})})]})},`option-${r}`):null}))})]})},exports.DropdownMenu=_b,exports.DropdownMenuCheckboxItem=Xb,exports.DropdownMenuContent=Kb,exports.DropdownMenuGroup=zb,exports.DropdownMenuItem=Gb,exports.DropdownMenuLabel=Yb,exports.DropdownMenuPortal=Hb,exports.DropdownMenuRadioGroup=$b,exports.DropdownMenuRadioItem=qb,exports.DropdownMenuSeparator=Zb,exports.DropdownMenuShortcut=Qb,exports.DropdownMenuSub=Bb,exports.DropdownMenuSubContent=Ub,exports.DropdownMenuSubTrigger=Wb,exports.DropdownMenuTrigger=Vb,exports.DropdownPopup=({trigger:t,isOpen:n,setIsOpen:r,focusLoop:o,mountByState:i,...a})=>{const s=Gc({open:n,setOpen:r,focusLoop:o});return i?e.jsxs(Zc,{store:s,children:[t,n&&e.jsx(R$,{...a})]}):e.jsxs(Zc,{store:s,children:[t,e.jsx(R$,{...a})]})},exports.EditIcon=f$,exports.ExperimentIcon=function(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e.jsx("path",{d:"M9 3H15M9 3V9.2759C9 9.74377 8.83597 10.1968 8.53644 10.5563L4.85085 14.979C4.30108 15.6387 4 16.4703 4 17.3291V17.3291C4 19.3565 5.64353 21 7.67094 21H16.3291C18.3565 21 20 19.3565 20 17.3291V17.3291C20 16.4703 19.6989 15.6387 19.1492 14.979L15.4636 10.5563C15.164 10.1968 15 9.74377 15 9.2759V3M9 3H8M15 3H16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 14.774C11.5 12.839 12.15 16.7089 18 14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.FacebookIcon=function(){return e.jsxs("svg",{viewBox:"0 0 40 40",width:"25",height:"25",children:[e.jsxs("linearGradient",{id:"a",x1:-277.375,x2:-277.375,y1:406.602,y2:407.573,gradientTransform:"matrix(40 0 0 -39.7778 11115.001 16212.334)",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:0,stopColor:"#0062e0"}),e.jsx("stop",{offset:1,stopColor:"#19afff"})]}),e.jsx("path",{fill:"url(#a)",d:"M16.7 39.8C7.2 38.1 0 29.9 0 20 0 9 9 0 20 0s20 9 20 20c0 9.9-7.2 18.1-16.7 19.8l-1.1-.9h-4.4l-1.1.9z"}),e.jsx("path",{fill:"#fff",d:"m27.8 25.6.9-5.6h-5.3v-3.9c0-1.6.6-2.8 3-2.8H29V8.2c-1.4-.2-3-.4-4.4-.4-4.6 0-7.8 2.8-7.8 7.8V20h-5v5.6h5v14.1c1.1.2 2.2.3 3.3.3 1.1 0 2.2-.1 3.3-.3V25.6h4.4z"})]})},exports.FileUpload=k$,exports.FormInput=function({field:t,label:n,labelClass:r,inputClass:o,containerClass:i,labelAdjacent:a,placeholder:s="",type:l="string"}){return e.jsxs("div",{className:jt("flex w-full flex-col items-center gap-2",i),children:[e.jsxs("div",{className:"flex w-full items-center justify-start gap-2",children:[e.jsx(Vx,{htmlFor:`${t.name}-input`,className:jt("text-left text-sm font-semibold text-text-primary",r),children:n}),a]}),e.jsx(Cy,{id:`${t.name}-input`,value:t.value??"",onChange:e=>{const n=e.target.value;"number"===l?""===n?t.onChange(n):isNaN(Number(n))||t.onChange(Number(n)):t.onChange(n)},placeholder:s,className:jt("flex h-10 max-h-10 w-full resize-none border-none bg-surface-secondary px-3 py-2",o)})]})},exports.GPTIcon=function({size:t=25,className:n=""}){const r=t,o=t;return e.jsx("svg",{width:o,height:r,viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"1.5",className:jt(n,""),children:e.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z",fill:"currentColor"})})},exports.GearIcon=({className:t=""})=>e.jsxs("svg",{className:t,width:"17",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M11.6439 3C10.9352 3 10.2794 3.37508 9.92002 3.98596L9.49644 4.70605C8.96184 5.61487 7.98938 6.17632 6.93501 6.18489L6.09967 6.19168C5.39096 6.19744 4.73823 6.57783 4.38386 7.19161L4.02776 7.80841C3.67339 8.42219 3.67032 9.17767 4.01969 9.7943L4.43151 10.5212C4.95127 11.4386 4.95127 12.5615 4.43151 13.4788L4.01969 14.2057C3.67032 14.8224 3.67339 15.5778 4.02776 16.1916L4.38386 16.8084C4.73823 17.4222 5.39096 17.8026 6.09966 17.8083L6.93502 17.8151C7.98939 17.8237 8.96185 18.3851 9.49645 19.294L9.92002 20.014C10.2794 20.6249 10.9352 21 11.6439 21H12.3561C13.0648 21 13.7206 20.6249 14.08 20.014L14.5035 19.294C15.0381 18.3851 16.0106 17.8237 17.065 17.8151L17.9004 17.8083C18.6091 17.8026 19.2618 17.4222 19.6162 16.8084L19.9723 16.1916C20.3267 15.5778 20.3298 14.8224 19.9804 14.2057L19.5686 13.4788C19.0488 12.5615 19.0488 11.4386 19.5686 10.5212L19.9804 9.7943C20.3298 9.17767 20.3267 8.42219 19.9723 7.80841L19.6162 7.19161C19.2618 6.57783 18.6091 6.19744 17.9004 6.19168L17.065 6.18489C16.0106 6.17632 15.0382 5.61487 14.5036 4.70605L14.08 3.98596C13.7206 3.37508 13.0648 3 12.3561 3H11.6439Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),e.jsx("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"2"})]}),exports.GeminiIcon=function({size:t=25,className:n=""}){return e.jsxs("svg",{width:t,height:t,className:n,viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e.jsx("path",{fill:"url(#_4rif_paint0_radial_897_42)",d:"M9 18c0-1.245-.24-2.415-.72-3.51a8.934 8.934 0 00-1.912-2.857A8.934 8.934 0 003.51 9.72 8.646 8.646 0 000 9a8.886 8.886 0 003.51-.697 9.247 9.247 0 002.857-1.936A8.934 8.934 0 008.28 3.51C8.76 2.415 9 1.245 9 0c0 1.245.232 2.415.697 3.51a9.247 9.247 0 001.936 2.857 9.247 9.247 0 002.857 1.936A8.886 8.886 0 0018 9c-1.245 0-2.415.24-3.51.72a8.934 8.934 0 00-2.857 1.912 9.247 9.247 0 00-1.935 2.858A8.886 8.886 0 009 18z"}),e.jsx("defs",{children:e.jsxs("radialGradient",{id:"_4rif_paint0_radial_897_42",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(135 9 3.728) scale(25.4558 12.7279)",children:[e.jsx("stop",{offset:".325",stopColor:"#FFDDB7"}),e.jsx("stop",{offset:".706",stopColor:"#076EFF"})]})})]})},exports.GithubIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",children:e.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 0 0-3.84 23.399c.608.112.832-.256.832-.576v-2.015c-3.395.736-4.115-1.632-4.115-1.632a3.241 3.241 0 0 0-1.359-1.792c-1.104-.736.064-.736.064-.736a2.566 2.566 0 0 1 1.824 1.216a2.638 2.638 0 0 0 3.616 1.024a2.607 2.607 0 0 1 .768-1.6c-2.688-.32-5.504-1.344-5.504-5.984a4.677 4.677 0 0 1 1.216-3.168a4.383 4.383 0 0 1 .128-3.136s1.024-.32 3.36 1.216a11.66 11.66 0 0 1 6.112 0c2.336-1.536 3.36-1.216 3.36-1.216a4.354 4.354 0 0 1 .128 3.136a4.628 4.628 0 0 1 1.216 3.168c0 4.672-2.848 5.664-5.536 5.952a2.881 2.881 0 0 1 .832 2.24v3.36c0 .32.224.672.832.576A12 12 0 0 0 12 0z"})})},exports.GoogleIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",id:"google",className:"h-5 w-5",children:[e.jsx("path",{fill:"#fbbb00",d:"M113.47 309.408 95.648 375.94l-65.139 1.378C11.042 341.211 0 299.9 0 256c0-42.451 10.324-82.483 28.624-117.732h.014L86.63 148.9l25.404 57.644c-5.317 15.501-8.215 32.141-8.215 49.456.002 18.792 3.406 36.797 9.651 53.408z"}),e.jsx("path",{fill:"#518ef8",d:"M507.527 208.176C510.467 223.662 512 239.655 512 256c0 18.328-1.927 36.206-5.598 53.451-12.462 58.683-45.025 109.925-90.134 146.187l-.014-.014-73.044-3.727-10.338-64.535c29.932-17.554 53.324-45.025 65.646-77.911h-136.89V208.176h245.899z"}),e.jsx("path",{fill:"#28b446",d:"m416.253 455.624.014.014C372.396 490.901 316.666 512 256 512c-97.491 0-182.252-54.491-225.491-134.681l82.961-67.91c21.619 57.698 77.278 98.771 142.53 98.771 28.047 0 54.323-7.582 76.87-20.818l83.383 68.262z"}),e.jsx("path",{fill:"#f14336",d:"m419.404 58.936-82.933 67.896C313.136 112.246 285.552 103.82 256 103.82c-66.729 0-123.429 42.957-143.965 102.724l-83.397-68.276h-.014C71.23 56.123 157.06 0 256 0c62.115 0 119.068 22.126 163.404 58.936z"})]})},exports.GoogleIconChat=function({size:t=25,className:n=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24px",height:"24px",viewBox:"0 0 512 512",strokeWidth:"1.5",className:jt(n,""),children:e.jsx("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})},exports.GoogleMinimalIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"800px",height:"800px",viewBox:"0 0 512 512",className:jt("h-4 w-4",t),children:e.jsx("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})},exports.HoverCard=by,exports.HoverCardContent=xy,exports.HoverCardPortal=yy,exports.HoverCardTrigger=wy,exports.Input=Cy,exports.InputCombobox=({label:n,labelClassName:r,placeholder:o="Select an option",options:i,className:a,value:s,onChange:l,onBlur:c})=>{const u=e=>null!=e&&"object"==typeof e&&"value"in e,[d,f]=t.useState(!1),[p,m]=t.useState(s),[h,g]=t.useState(!1);t.useEffect((()=>{m(s)}),[s]);const v=e=>{m(e),l(e)};return e.jsxs(uu,{value:p,setValue:v,children:[null!=n&&e.jsx(bu,{className:jt("mb-2 block text-sm font-medium text-text-primary",r??""),children:n}),e.jsx("div",{className:jt("relative",h?"rounded-md ring-2 ring-ring-primary":""),children:e.jsx(cu,{placeholder:o,className:jt("h-10 w-full rounded-md border border-border-light bg-surface-primary px-3 py-2 text-sm","placeholder-text-secondary hover:bg-surface-hover","focus:outline-none",a),onChange:e=>v(e.target.value),onBlur:()=>{g(!1),c()},onFocusVisible:()=>{g(!0),f(!0)},onMouseDown:()=>{g(!1)}})}),e.jsx(Cu,{gutter:4,sameWidth:!0,open:d,onClose:()=>f(!1),className:jt("z-50 max-h-60 w-full overflow-auto rounded-md bg-surface-primary p-1 shadow-lg","animate-in fade-in-0 zoom-in-95"),children:i.map(((t,n)=>e.jsxs(gu,{className:jt("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","cursor-pointer hover:bg-surface-tertiary hover:text-text-primary","data-[active-item]:bg-surface-tertiary data-[active-item]:text-text-primary"),value:u(t)?`${t.value??""}`:t,children:[u(t)&&null!=t.icon&&e.jsx("span",{className:"mr-2 flex-shrink-0",children:t.icon}),u(t)?t.label:t]},n)))})]})},exports.InputNumber=Ax,exports.InputOTP=ZT,exports.InputOTPGroup=QT,exports.InputOTPSeparator=eO,exports.InputOTPSlot=JT,exports.InputWithDropdown=UX,exports.Label=Vx,exports.LightningIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",className:jt("h-6 w-6",t),children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"})})},exports.LinkIcon=function(){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 5C14.4477 5 14 4.55228 14 4C14 3.44772 14.4477 3 15 3H20C20.5523 3 21 3.44772 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V6.41421L13.7071 11.7071C13.3166 12.0976 12.6834 12.0976 12.2929 11.7071C11.9024 11.3166 11.9024 10.6834 12.2929 10.2929L17.5858 5H15ZM4 7C4 5.34315 5.34315 4 7 4H10C10.5523 4 11 4.44772 11 5C11 5.55228 10.5523 6 10 6H7C6.44772 6 6 6.44772 6 7V17C6 17.5523 6.44772 18 7 18H17C17.5523 18 18 17.5523 18 17V14C18 13.4477 18.4477 13 19 13C19.5523 13 20 13.4477 20 14V17C20 18.6569 18.6569 20 17 20H7C5.34315 20 4 18.6569 4 17V7Z",fill:"currentColor"})})},exports.ListeningIcon=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:jt(t),strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),e.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),e.jsx("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]})},exports.LockIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-lock",children:[e.jsx("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),e.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})},exports.LogOutIcon=function(){return e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:[e.jsx("path",{d:"M11 3H7C5.89543 3 5 3.89543 5 5V19C5 20.1046 5.89543 21 7 21H11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M20 12H11M20 12L16 16M20 12L16 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.MCPIcon=function({className:t}){return e.jsxs("svg",{width:"195",height:"195",viewBox:"0 2 195 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[e.jsx("path",{d:"M25 97.8528L92.8823 29.9706C102.255 20.598 117.451 20.598 126.823 29.9706V29.9706C136.196 39.3431 136.196 54.5391 126.823 63.9117L75.5581 115.177",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e.jsx("path",{d:"M76.2653 114.47L126.823 63.9117C136.196 54.5391 151.392 54.5391 160.765 63.9117L161.118 64.2652C170.491 73.6378 170.491 88.8338 161.118 98.2063L99.7248 159.6C96.6006 162.724 96.6006 167.789 99.7248 170.913L112.331 183.52",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e.jsx("path",{d:"M109.853 46.9411L59.6482 97.1457C50.2757 106.518 50.2757 121.714 59.6482 131.087V131.087C69.0208 140.459 84.2168 140.459 93.5894 131.087L143.794 80.8822",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"})]})},exports.MessagesSquared=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:jt(t??"","lucide lucide-messages-square"),children:[e.jsx("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v5Z"}),e.jsx("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})]})},exports.MinimalPlugin=function({size:t,className:n="icon-md"}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4646 19C15.2219 20.6961 13.7632 22 12 22C10.2368 22 8.77806 20.6961 8.53544 19H6C4.34315 19 3 17.6569 3 16V13.5C3 12.9477 3.44772 12.5 4 12.5H4.5C5.32843 12.5 6 11.8284 6 11C6 10.1716 5.32843 9.5 4.5 9.5H4C3.44772 9.5 3 9.05229 3 8.5L3 6C3 4.34315 4.34315 3 6 3L18 3C19.6569 3 21 4.34315 21 6L21 16C21 17.6569 19.6569 19 18 19H15.4646ZM12 20C12.8284 20 13.5 19.3284 13.5 18.5V18C13.5 17.4477 13.9477 17 14.5 17H18C18.5523 17 19 16.5523 19 16L19 6C19 5.44772 18.5523 5 18 5L6 5C5.44772 5 5 5.44772 5 6V7.53544C6.69615 7.77806 8 9.23676 8 11C8 12.7632 6.69615 14.2219 5 14.4646L5 16C5 16.5523 5.44771 17 6 17H9.5C10.0523 17 10.5 17.4477 10.5 18V18.5C10.5 19.3284 11.1716 20 12 20Z",fill:"currentColor"})})},exports.MobileSidebar=function({className:t}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 8C3 7.44772 3.44772 7 4 7H20C20.5523 7 21 7.44772 21 8C21 8.55228 20.5523 9 20 9H4C3.44772 9 3 8.55228 3 8ZM3 16C3 15.4477 3.44772 15 4 15H14C14.5523 15 15 15.4477 15 16C15 16.5523 14.5523 17 14 17H4C3.44772 17 3 16.5523 3 16Z",fill:"currentColor"})})},exports.ModelParameters=yX,exports.MultiSelect=function({items:n,label:r,placeholder:o="Select...",onSelectedValuesChange:i,renderSelectedValues:a=E$,className:s,selectIcon:l,itemClassName:c,labelClassName:u,selectClassName:d,popoverClassName:f,selectItemsClassName:p,selectedValues:m=[],setSelectedValues:h,renderItemContent:g}){const v=t.useRef(null);return e.jsx("div",{className:s,children:e.jsxs(hc,{value:m,setValue:e=>{h(e),i&&i(e)},children:[r&&e.jsx(Pc,{className:jt("mb-1 block text-sm text-text-primary",u),children:r}),e.jsxs(mc,{ref:v,className:jt("flex items-center justify-between gap-2 rounded-xl px-3 py-2 text-sm","bg-surface-tertiary text-text-primary shadow-sm hover:cursor-pointer hover:bg-surface-hover","outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",d,m.length>0&&null!=p&&p),onChange:e=>e.stopPropagation(),children:[l&&l,e.jsx("span",{className:"mr-auto hidden truncate md:block",children:a(m,o)}),e.jsx(ac,{className:"ml-1 hidden stroke-1 text-base opacity-75 md:block"})]}),e.jsx(Ac,{gutter:4,sameWidth:!0,modal:!0,unmountOnHide:!0,finalFocus:v,className:jt("animate-popover z-50 flex max-h-[300px]","flex-col overflow-auto overscroll-contain rounded-xl","bg-surface-secondary px-1.5 py-1 text-text-primary shadow-lg","border border-border-light","outline-none",f),children:n.map((t=>{const n=e.jsxs(e.Fragment,{children:[e.jsx(yc,{className:"text-primary"}),e.jsx("span",{className:"truncate",children:t})]}),r=m.includes(t);return e.jsx(Ec,{value:t,className:jt("flex items-center gap-2 rounded-lg px-2 py-1.5 hover:cursor-pointer","scroll-m-1 outline-none transition-colors","hover:bg-black/[0.075] dark:hover:bg-white/10","data-[active-item]:bg-black/[0.075] dark:data-[active-item]:bg-white/10","w-full min-w-0 text-sm",c),children:g?g(t,n,r):n},t)}))})]})})},exports.NewChatIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:jt("text-black dark:text-white",t),"aria-hidden":!0,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7929 2.79289C18.0118 1.57394 19.9882 1.57394 21.2071 2.79289C22.4261 4.01184 22.4261 5.98815 21.2071 7.20711L12.7071 15.7071C12.5196 15.8946 12.2652 16 12 16H9C8.44772 16 8 15.5523 8 15V12C8 11.7348 8.10536 11.4804 8.29289 11.2929L16.7929 2.79289ZM19.7929 4.20711C19.355 3.7692 18.645 3.7692 18.2071 4.2071L10 12.4142V14H11.5858L19.7929 5.79289C20.2308 5.35499 20.2308 4.64501 19.7929 4.20711ZM6 5C5.44772 5 5 5.44771 5 6V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V14C19 13.4477 19.4477 13 20 13C20.5523 13 21 13.4477 21 14V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6C3 4.34314 4.34315 3 6 3H10C10.5523 3 11 3.44771 11 4C11 4.55228 10.5523 5 10 5H6Z",fill:"currentColor"})})},exports.OGDialog=zx,exports.OGDialogClose=$x,exports.OGDialogContent=Ux,exports.OGDialogDescription=qx,exports.OGDialogFooter=Gx,exports.OGDialogHeader=Kx,exports.OGDialogOverlay=Wx,exports.OGDialogPortal=Bx,exports.OGDialogTemplate=WX,exports.OGDialogTitle=Xx,exports.OGDialogTrigger=Hx,exports.OpenAIMinimalIcon=function({className:t="h-4 w-4"}){return e.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"1",viewBox:"0 0 40 40",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z"})})},exports.OpenIDIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",id:"openid",className:"h-5 w-5",children:e.jsx("path",{fill:"currentColor",d:"M271.5 432l-68 32C88.5 453.7 0 392.5 0 318.2c0-71.5 82.5-131 191.7-144.3v43c-71.5 12.5-124 53-124 101.3 0 51 58.5 93.3 135.7 103v-340l68-33.2v384zM448 291l-131.3-28.5 36.8-20.7c-19.5-11.5-43.5-20-70-24.8v-43c46.2 5.5 87.7 19.5 120.3 39.3l35-19.8L448 291z"})})},exports.PaLMIcon=function({size:t=25,className:n=""}){return e.jsxs("svg",{width:t,height:t,className:n,viewBox:"0 0 19 17",fill:"none",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e.jsx("path",{d:"M9.62674 16.2202H9.7049C10.4225 16.2202 11.0016 15.6412 11.0016 14.9236V4.04224H8.33008V14.92C8.33008 15.6376 8.90914 16.2202 9.62674 16.2202Z",fill:"#F9AB00"}),e.jsx("path",{d:"M14.6819 8.02813C13.3249 6.66752 11.2964 6.39398 9.66577 7.2004L15.0585 12.5931C15.2823 12.8169 15.6624 12.7281 15.7583 12.4297C16.2308 10.927 15.8756 9.21822 14.6819 8.02813Z",fill:"#5BB974"}),e.jsx("path",{d:"M4.64953 8.02813C6.00659 6.66752 8.03507 6.39398 9.66567 7.2004L4.27297 12.5931C4.04916 12.8169 3.66904 12.7281 3.57312 12.4297C3.10064 10.927 3.45589 9.21822 4.64953 8.02813Z",fill:"#129EAF"}),e.jsx("path",{d:"M14.284 3.84326C12.1383 3.84326 10.3159 5.25005 9.66577 7.20038H18.1918C18.5399 7.20038 18.7744 6.83092 18.6145 6.5183C17.8081 4.93033 16.1704 3.84326 14.284 3.84326Z",fill:"#AF5CF7"}),e.jsx("path",{d:"M10.5574 1.55901C9.04053 3.07593 8.74567 5.36019 9.66577 7.20039L15.6944 1.17179C15.943 0.923113 15.8436 0.496814 15.5132 0.390239C13.8151 -0.1604 11.8896 0.226822 10.5574 1.55901Z",fill:"#FF8BCB"}),e.jsx("path",{d:"M8.77408 1.55901C10.291 3.07593 10.5859 5.36019 9.66576 7.20039L3.63716 1.17179C3.38848 0.923113 3.48795 0.496814 3.81833 0.390239C5.51643 -0.1604 7.44189 0.226822 8.77408 1.55901Z",fill:"#FA7B17"}),e.jsx("path",{d:"M5.04752 3.84326C7.19323 3.84326 9.01566 5.25005 9.66577 7.20038H1.13976C0.791616 7.20038 0.55715 6.83092 0.717013 6.5183C1.52343 4.93033 3.16114 3.84326 5.04752 3.84326Z",fill:"#4285F4"})]})},exports.PaLMinimalIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 32 32",strokeLinecap:"round",strokeLinejoin:"round",className:jt("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"m16 30.238c1.2298 0 2.2259-0.99608 2.2259-2.2259v-11.46c-0.63513-0.56429-1.6553-1.6805-2.2259-2.251-0.79858 0.83793-1.3599 1.3599-2.2259 2.251v11.46c0 1.2298 0.99608 2.2259 2.2259 2.2259z"}),e.jsx("path",{d:"m24.868 15.761c-0.61691-0.61643-1.3121-1.1065-2.0536-1.4703-6.8147 0.010467 0.13304 0.031026-6.8147 0.010467l9.5286 9.5286c0.39324 0.39324 1.0703 0.23743 1.2372-0.29122 0.83841-2.6544 0.20589-5.6723-1.8976-7.7776z"}),e.jsx("path",{d:"m7.1318 15.761c0.5902-0.58975 1.2521-1.0639 1.9575-1.4224 6.9107-0.037427-0.11812-0.057288 6.9107-0.037427l-9.5286 9.5286c-0.39324 0.39324-1.0703 0.23743-1.2372-0.29122-0.83841-2.6543-0.20589-5.6723 1.8976-7.7776z"}),e.jsx("path",{d:"m24.162 8.3655c-0.93169 0-1.8288 0.15009-2.6691 0.42772-5.4924 5.5079 0 0-5.4924 5.5079h15.069c0.61767 0 1.0295-0.65292 0.74938-1.2038-1.432-2.8102-4.3219-4.7318-7.657-4.7318z"}),e.jsx("path",{d:"m17.575 4.333c-0.62613 0.62613-1.1343 1.3257-1.5248 2.0718 1.6767 4.1174 0.53518 6.3909-0.05003 7.8964l10.656-10.656c0.43775-0.43775 0.2671-1.1908-0.3209-1.3819-3.0012-0.97382-6.4031-0.28751-8.7607 2.0701z"}),e.jsx("path",{d:"m14.425 4.333c2.6822 2.6822 3.1997 6.7129 1.5748 9.9682l-10.656-10.656c-0.43775-0.43775-0.2671-1.1908 0.3209-1.3819 3.0012-0.97382 6.4031-0.28751 8.7607 2.0701z"}),e.jsx("path",{d:"m7.8385 8.3655c0.9121 0 1.791 0.14385 2.616 0.41037 5.5455 5.5253-0.061773 0.011675 5.5455 5.5253h-15.069c-0.61768 0-1.0295-0.65292-0.74938-1.2038 1.432-2.8102 4.3219-4.7318 7.657-4.7318z"})]})},exports.Pagination=lT,exports.PaginationContent=cT,exports.PaginationEllipsis=mT,exports.PaginationItem=uT,exports.PaginationLink=dT,exports.PaginationNext=pT,exports.PaginationPrevious=fT,exports.PersonalizationIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`icon-sm ${t}`,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C10.3431 4 9 5.34315 9 7C9 8.65685 10.3431 10 12 10C13.6569 10 15 8.65685 15 7C15 5.34315 13.6569 4 12 4ZM7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7C17 9.76142 14.7614 12 12 12C9.23858 12 7 9.76142 7 7ZM19.0277 15.6255C18.6859 15.5646 18.1941 15.6534 17.682 16.1829C17.4936 16.3777 17.2342 16.4877 16.9632 16.4877C16.6922 16.4877 16.4328 16.3777 16.2444 16.1829C15.7322 15.6534 15.2405 15.5646 14.8987 15.6255C14.5381 15.6897 14.2179 15.9384 14.0623 16.3275C13.8048 16.9713 13.9014 18.662 16.9632 20.4617C20.0249 18.662 20.1216 16.9713 19.864 16.3275C19.7084 15.9384 19.3882 15.6897 19.0277 15.6255ZM21.721 15.5847C22.5748 17.7191 21.2654 20.429 17.437 22.4892C17.1412 22.6484 16.7852 22.6484 16.4893 22.4892C12.6609 20.4291 11.3516 17.7191 12.2053 15.5847C12.6117 14.5689 13.4917 13.8446 14.5481 13.6565C15.3567 13.5125 16.2032 13.6915 16.9632 14.1924C17.7232 13.6915 18.5697 13.5125 19.3783 13.6565C20.4347 13.8446 21.3147 14.5689 21.721 15.5847ZM9.92597 14.2049C10.1345 14.7163 9.889 15.2999 9.3776 15.5084C7.06131 16.453 5.5 18.5813 5.5 20.9999C5.5 21.5522 5.05228 21.9999 4.5 21.9999C3.94772 21.9999 3.5 21.5522 3.5 20.9999C3.5 17.6777 5.641 14.8723 8.6224 13.6565C9.1338 13.448 9.71743 13.6935 9.92597 14.2049Z",fill:"currentColor"})})},exports.PinIcon=function({unpin:t=!1}){return t?e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e.jsx("path",{d:"M15 15V17.5585C15 18.4193 14.4491 19.1836 13.6325 19.4558L13.1726 19.6091C12.454 19.8487 11.6616 19.6616 11.126 19.126L4.87403 12.874C4.33837 12.3384 4.15132 11.546 4.39088 10.8274L4.54415 10.3675C4.81638 9.55086 5.58066 9 6.44152 9H9M12 6.2L13.6277 3.92116C14.3461 2.91549 15.7955 2.79552 16.6694 3.66942L20.3306 7.33058C21.2045 8.20448 21.0845 9.65392 20.0788 10.3723L18 11.8571",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8 16L3 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4 4L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):e.jsx("svg",{className:"icon-sm",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4845 2.8798C16.1773 1.57258 14.0107 1.74534 12.9272 3.24318L9.79772 7.56923C9.60945 7.82948 9.30775 7.9836 8.98654 7.9836H6.44673C3.74061 7.9836 2.27414 11.6759 4.16948 13.5713L6.59116 15.993L2.29324 20.2909C1.90225 20.6819 1.90225 21.3158 2.29324 21.7068C2.68422 22.0977 3.31812 22.0977 3.70911 21.7068L8.00703 17.4088L10.4287 19.8305C12.3241 21.7259 16.0164 20.2594 16.0164 17.5533V15.0135C16.0164 14.6923 16.1705 14.3906 16.4308 14.2023L20.7568 11.0728C22.2547 9.98926 22.4274 7.8227 21.1202 6.51549L17.4845 2.8798ZM11.8446 18.4147C12.4994 19.0694 14.0141 18.4928 14.0141 17.5533V15.0135C14.0141 14.0499 14.4764 13.1447 15.2572 12.58L19.5832 9.45047C20.0825 9.08928 20.1401 8.3671 19.7043 7.93136L16.0686 4.29567C15.6329 3.85993 14.9107 3.91751 14.5495 4.4168L11.4201 8.74285C10.8553 9.52359 9.95016 9.98594 8.98654 9.98594H6.44673C5.5072 9.98594 4.93059 11.5006 5.58535 12.1554L11.8446 18.4147Z",fill:"currentColor"})})},exports.PixelCard=function({variant:n="default",gap:r,speed:o,colors:i,noFocus:a,className:s="",progress:l,randomness:c=.3,width:u,height:d}){const f=t.useRef(null),p=t.useRef(null),m=t.useRef([]),h=t.useRef(),g=t.useRef(performance.now()),v=t.useRef(l),b=t.useRef(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,w=S$[n],y=r??w.gap,x=o??w.speed,C=i??w.colors,S=a??w.noFocus,k=t.useCallback((()=>{if(!p.current)return;if(void 0===v.current)return void(p.current.style.opacity="1");const e=v.current>=.9?1-(v.current-.9)/.1:1;p.current.style.opacity=String(C$(e))}),[]),E=t.useCallback((e=>{h.current=requestAnimationFrame((()=>E(e)));const t=performance.now(),n=t-g.current;if(n<1e3/60)return;g.current=t-n%(1e3/60);const r=p.current?.getContext("2d");if(!r||!p.current)return;r.clearRect(0,0,p.current.width,p.current.height);let o=!0;for(const t of m.current)"appearWithProgress"===e?void 0!==v.current?t.appearWithProgress(v.current):t.isIdle=!0:t[e](),t.isIdle||(o=!1);k(),o&&cancelAnimationFrame(h.current)}),[k]),R=t.useCallback((e=>{cancelAnimationFrame(h.current),h.current=requestAnimationFrame((()=>E(e)))}),[E]),P=t.useCallback((()=>{if(!f.current||!p.current)return;const{width:e,height:t}=f.current.getBoundingClientRect(),n=p.current.getContext("2d");p.current.width=Math.floor(e),p.current.height=Math.floor(t);const r=C.split(","),o=[],i=e/2,a=t/2,s=Math.hypot(i,a);for(let l=0;l<e;l+=y)for(let e=0;e<t;e+=y){const t=r[Math.floor(Math.random()*r.length)],u=Math.hypot(l-i,e-a)/s,d=C$(u*(1-c)+Math.random()*c),f=b?0:u*s;n&&o.push(new y$(p.current,n,l,e,t,x$(x,b),f,d))}m.current=o,void 0!==v.current&&R("appearWithProgress")}),[y,C,x,c,b,R]);return t.useEffect((()=>{v.current=l,void 0!==l&&R("appearWithProgress")}),[l,R]),t.useEffect((()=>{void 0===l&&cancelAnimationFrame(h.current)}),[l]),t.useEffect((()=>{P();const e=new ResizeObserver(P);return f.current&&e.observe(f.current),()=>{e.disconnect(),cancelAnimationFrame(h.current)}}),[P]),e.jsx("div",{ref:f,style:{width:u||"100%",height:d||"100%"},children:e.jsx("div",{className:jt("relative isolate grid select-none place-items-center overflow-hidden rounded-lg border border-border-light shadow-md transition-colors duration-200 ease-in-out",s),style:{width:"100%",height:"100%",transitionTimingFunction:"cubic-bezier(0.5, 1, 0.89, 1)"},onMouseEnter:()=>void 0===v.current&&R("appear"),onMouseLeave:()=>void 0===v.current&&R("disappear"),onFocus:S?void 0:e=>{S||e.currentTarget.contains(e.relatedTarget)||void 0!==v.current||R("appear")},onBlur:S?void 0:e=>{S||e.currentTarget.contains(e.relatedTarget)||void 0!==v.current||R("disappear")},tabIndex:S?-1:0,children:e.jsx("canvas",{ref:p,className:"pointer-events-none absolute inset-0 block",width:u&&"auto"!==u?parseInt(String(u)):void 0,height:d&&"auto"!==d?parseInt(String(d)):void 0})})})},exports.Plugin=function({className:t="",...n}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:jt("h-4 w-4",t),width:"16",height:"16",strokeWidth:"2",...n,children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13.164.98a.7.7 0 0 0-1.328 0l-.478 1.435a.7.7 0 0 1-.443.443l-1.436.478a.7.7 0 0 0 0 1.328l1.436.479a.7.7 0 0 1 .443.442l.478 1.436a.7.7 0 0 0 1.328 0l.478-1.436a.7.7 0 0 1 .443-.443l1.436-.478a.7.7 0 0 0 0-1.328l-1.436-.478a.7.7 0 0 1-.443-.443L13.164.979Z"}),e.jsx("path",{d:"M13.237 10.534c-.228-.245-.513-.46-.847-.46a.823.823 0 0 0-.828.849c.04 1.04.128 2.067.263 3.08a.619.619 0 0 1-.528.695c-.872.121-1.748.208-2.626.262a.8.8 0 0 1-.845-.805c0-.325.21-.602.45-.82.235-.215.375-.488.375-.787 0-.683-.738-1.237-1.65-1.237-.911 0-1.65.554-1.65 1.237 0 .294.137.563.364.775.245.229.461.513.461.848a.823.823 0 0 1-.85.829 33.809 33.809 0 0 1-3.266-.278.619.619 0 0 1-.532-.532 34.099 34.099 0 0 1-.278-3.267.823.823 0 0 1 .83-.85c.333 0 .619.216.846.461.212.228.482.364.776.364.683 0 1.237-.738 1.237-1.65 0-.91-.554-1.65-1.237-1.65-.299 0-.572.142-.786.376-.219.24-.496.45-.821.45a.8.8 0 0 1-.805-.845c.054-.885.142-1.76.262-2.626a.619.619 0 0 1 .695-.528c1.022.136 2.05.224 3.08.263a.822.822 0 0 0 .85-.828c0-.334-.217-.62-.462-.847-.227-.212-.363-.482-.363-.776C5.352 1.554 6.09 1 7.002 1c.91 0 1.649.554 1.649 1.237 0 .173-.012.327-.029.473C8.258 3 8 3.41 8 4c0 1.5 1.667 1.833 2.5 2 .167.833.5 2.5 2 2.5.732 0 1.186-.397 1.479-.9l.034-.001c.683 0 1.237.738 1.237 1.65 0 .911-.554 1.65-1.237 1.65-.294 0-.564-.137-.776-.364Z"})]})})},exports.Progress=_T,exports.QuestionMark=({className:t=""})=>e.jsx("span",{children:e.jsx("div",{className:jt("border-token-border-medium text-token-text-tertiary ml-2 flex h-3.5 w-3.5 cursor-default items-center justify-center rounded-full border text-[0.5rem] font-medium leading-none",t),children:"?"})}),exports.RegenerateIcon=function({className:t="",size:n="1em"}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt("icon-md-heavy",t),children:e.jsx("path",{fill:"currentColor",d:"M3.07 10.876C3.623 6.436 7.41 3 12 3a9.15 9.15 0 0 1 6.012 2.254V4a1 1 0 1 1 2 0v4a1 1 0 0 1-1 1H15a1 1 0 1 1 0-2h1.957A7.15 7.15 0 0 0 12 5a7 7 0 0 0-6.946 6.124 1 1 0 1 1-1.984-.248m16.992 1.132a1 1 0 0 1 .868 1.116C20.377 17.564 16.59 21 12 21a9.15 9.15 0 0 1-6-2.244V20a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H7.043A7.15 7.15 0 0 0 12 19a7 7 0 0 0 6.946-6.124 1 1 0 0 1 1.116-.868"})})},exports.ResizableHandle=({withHandle:t,className:n="",...r})=>e.jsx(kL,{className:jt("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),...r,children:t&&e.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e.jsx(Cp,{className:"h-2.5 w-2.5"})})}),exports.ResizableHandleAlt=({withHandle:t,className:n="",...r})=>e.jsx(kL,{className:jt("group relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),...r,children:t&&e.jsx("div",{className:"invisible z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border group-hover:visible group-active:visible",children:e.jsx(Cp,{className:"h-2.5 w-2.5"})})}),exports.ResizablePanel=EL,exports.ResizablePanelGroup=({className:t="",...n})=>e.jsx(xL,{className:jt("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...n}),exports.SamlIcon=function(){return e.jsx("svg",{width:"800px",height:"800px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"h-5 w-5",children:e.jsxs("g",{fill:"#000000",children:[e.jsx("path",{d:"M7.754 2l.463.41c.343.304.687.607 1.026.915C11.44 5.32 13.3 7.565 14.7 10.149c.072.132.137.268.202.403l.098.203-.108.057-.081-.115-.21-.299-.147-.214c-1.019-1.479-2.04-2.96-3.442-4.145a6.563 6.563 0 00-1.393-.904c-1.014-.485-1.916-.291-2.69.505-.736.757-1.118 1.697-1.463 2.653-.045.123-.092.245-.139.367l-.082.215-.172-.055c.1-.348.192-.698.284-1.049.21-.795.42-1.59.712-2.356.31-.816.702-1.603 1.093-2.39.169-.341.338-.682.5-1.025h.092z"}),e.jsx("path",{d:"M8.448 11.822c-1.626.77-5.56 1.564-7.426 1.36C.717 11.576 3.71 4.05 5.18 2.91l-.095.218a4.638 4.638 0 01-.138.303l-.066.129c-.76 1.462-1.519 2.926-1.908 4.53a7.482 7.482 0 00-.228 1.689c-.01 1.34.824 2.252 2.217 2.309.67.027 1.347-.043 2.023-.114.294-.03.587-.061.88-.084.108-.008.214-.021.352-.039l.231-.028z"}),e.jsx("path",{d:"M3.825 14.781c-.445.034-.89.068-1.333.108 4.097.39 8.03-.277 11.91-1.644-1.265-2.23-2.97-3.991-4.952-5.522.026.098.084.169.141.239l.048.06c.17.226.348.448.527.67.409.509.818 1.018 1.126 1.578.778 1.42.356 2.648-1.168 3.296-1.002.427-2.097.718-3.18.892-1.03.164-2.075.243-3.119.323z"})]})})},exports.SaveIcon=function({size:t="1em",className:n}){return e.jsx("svg",{viewBox:"64 64 896 896",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:n,width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"})})},exports.SelectDropDown=function({title:n,value:r,disabled:o,setValue:i,availableValues:a,showAbove:s=!1,showLabel:l=!0,emptyTitle:c=!1,iconSide:u="right",optionIconSide:d="left",placeholder:f,containerClassName:p,optionsListClass:m,optionsClass:h,currentValueClass:g,subContainerClassName:v,className:b,renderOption:w,searchClassName:y,searchPlaceholder:x,showOptionIcon:C=!1}){const S=kw(),k={className:"top-full mt-3"};s&&(k.className="bottom-full mb-3");let E=n;c?E="":E||(E=S("com_ui_model"));const R=a??[],[P,N]=rO({availableOptions:R,placeholder:x,getTextKeyOverride:e=>function(e){return"string"==typeof e?e:"label"in e?e.label??"":"value"in e?(e.value??"")+"":""}(e).toUpperCase(),className:y,disabled:o}),j=null!=N?P:R,M=C&&null!=r&&null!=r.icon,A=t.useRef(null);return e.jsx("div",{className:jt("flex items-center justify-center gap-2",p??""),children:e.jsx("div",{className:jt("relative w-full",v??""),children:e.jsx(wX,{value:r,onChange:i,disabled:o,children:({open:n})=>e.jsxs(e.Fragment,{children:[e.jsxs(mX,{ref:A,"data-testid":"select-dropdown-button",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),!n&&A.current&&A.current.click())},className:jt("relative flex w-full cursor-default flex-col rounded-md border border-black/10 bg-white py-2 pl-3 pr-10 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:bg-white dark:border-gray-600 dark:bg-gray-700 sm:text-sm",b??""),children:[l&&e.jsx(bU,{className:"block text-xs text-gray-700 dark:text-gray-500",id:"headlessui-listbox-label-:r1:","data-headlessui-state":"",children:E}),e.jsx("span",{className:"inline-flex w-full truncate",children:e.jsxs("span",{className:jt("flex h-6 items-center gap-1 truncate text-sm text-gray-800 dark:text-white",l?"":"text-xs",g??""),children:[!l&&!c&&e.jsxs("span",{className:"text-xs text-gray-700 dark:text-gray-500",children:[E,":"]}),M&&"right"!==d&&e.jsx("span",{className:"icon-md flex items-center",children:r.icon}),M&&e.jsx("span",{className:"icon-md absolute right-0 mr-8 flex items-center",children:r.icon}),r?"string"!=typeof r?r.label??"":r:e.jsx("span",{className:"text-text-secondary",children:f})]})}),e.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 text-gray-400",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",style:s?{transform:"scaleY(-1)"}:{},children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}),e.jsx(UG,{show:n,as:t.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",...k,children:e.jsxs(gX,{className:jt("absolute z-10 mt-2 max-h-60 w-full overflow-auto rounded border bg-white text-xs ring-black/10 dark:border-gray-600 dark:bg-gray-700 dark:ring-white/20 md:w-[100%]",m??""),children:[w&&e.jsx(vX,{value:null,className:jt("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-700",h??""),children:w()},"listbox-render-option"),N,j.map(((t,n)=>{if(!t)return null;const o="string"==typeof t?t:t.label??t.value??"",i="string"==typeof t?t:t.value??"",a="string"==typeof t?null:t.icon??null;let s=r;return"string"!=typeof s&&(s=s?.value??""),e.jsx(vX,{value:t,className:({active:e})=>jt("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-600",e?"bg-surface-active text-text-primary":"",h??""),children:e.jsxs("span",{className:"flex items-center gap-1.5 truncate",children:[e.jsxs("span",{className:jt("flex h-6 items-center gap-1 text-gray-800 dark:text-gray-200",t===r?"font-semibold":"","left"===u?"ml-4":""),children:[null!=a&&e.jsx("span",{className:jt("mr-1","right"===d?"absolute right-0 pr-2":""),children:a}),o]}),i===s&&e.jsx("span",{className:jt("absolute inset-y-0 flex items-center text-gray-800 dark:text-gray-200","left"===u?"left-0 pl-2":"right-0 pr-3"),children:e.jsx(m$,{})})]})},n)}))]})})]})})})})},exports.SendIcon=function({size:t=24,className:n=""}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:jt("text-white dark:text-black",n),children:e.jsx("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},exports.SendMessageIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:"icon-sm m-1 md:m-0",style:{width:"1em",height:"1em",verticalAlign:"middle"},children:e.jsx("path",{d:"M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z",fill:"currentColor"})})},exports.Separator=JC,exports.Sidebar=function({className:t}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.85719 3H15.1428C16.2266 2.99999 17.1007 2.99998 17.8086 3.05782C18.5375 3.11737 19.1777 3.24318 19.77 3.54497C20.7108 4.02433 21.4757 4.78924 21.955 5.73005C22.2568 6.32234 22.3826 6.96253 22.4422 7.69138C22.5 8.39925 22.5 9.27339 22.5 10.3572V13.6428C22.5 14.7266 22.5 15.6008 22.4422 16.3086C22.3826 17.0375 22.2568 17.6777 21.955 18.27C21.4757 19.2108 20.7108 19.9757 19.77 20.455C19.1777 20.7568 18.5375 20.8826 17.8086 20.9422C17.1008 21 16.2266 21 15.1428 21H8.85717C7.77339 21 6.89925 21 6.19138 20.9422C5.46253 20.8826 4.82234 20.7568 4.23005 20.455C3.28924 19.9757 2.52433 19.2108 2.04497 18.27C1.74318 17.6777 1.61737 17.0375 1.55782 16.3086C1.49998 15.6007 1.49999 14.7266 1.5 13.6428V10.3572C1.49999 9.27341 1.49998 8.39926 1.55782 7.69138C1.61737 6.96253 1.74318 6.32234 2.04497 5.73005C2.52433 4.78924 3.28924 4.02433 4.23005 3.54497C4.82234 3.24318 5.46253 3.11737 6.19138 3.05782C6.89926 2.99998 7.77341 2.99999 8.85719 3ZM6.35424 5.05118C5.74907 5.10062 5.40138 5.19279 5.13803 5.32698C4.57354 5.6146 4.1146 6.07354 3.82698 6.63803C3.69279 6.90138 3.60062 7.24907 3.55118 7.85424C3.50078 8.47108 3.5 9.26339 3.5 10.4V13.6C3.5 14.7366 3.50078 15.5289 3.55118 16.1458C3.60062 16.7509 3.69279 17.0986 3.82698 17.362C4.1146 17.9265 4.57354 18.3854 5.13803 18.673C5.40138 18.8072 5.74907 18.8994 6.35424 18.9488C6.97108 18.9992 7.76339 19 8.9 19H9.5V5H8.9C7.76339 5 6.97108 5.00078 6.35424 5.05118ZM11.5 5V19H15.1C16.2366 19 17.0289 18.9992 17.6458 18.9488C18.2509 18.8994 18.5986 18.8072 18.862 18.673C19.4265 18.3854 19.8854 17.9265 20.173 17.362C20.3072 17.0986 20.3994 16.7509 20.4488 16.1458C20.4992 15.5289 20.5 14.7366 20.5 13.6V10.4C20.5 9.26339 20.4992 8.47108 20.4488 7.85424C20.3994 7.24907 20.3072 6.90138 20.173 6.63803C19.8854 6.07354 19.4265 5.6146 18.862 5.32698C18.5986 5.19279 18.2509 5.10062 17.6458 5.05118C17.0289 5.00078 16.2366 5 15.1 5H11.5ZM5 8.5C5 7.94772 5.44772 7.5 6 7.5H7C7.55229 7.5 8 7.94772 8 8.5C8 9.05229 7.55229 9.5 7 9.5H6C5.44772 9.5 5 9.05229 5 8.5ZM5 12C5 11.4477 5.44772 11 6 11H7C7.55229 11 8 11.4477 8 12C8 12.5523 7.55229 13 7 13H6C5.44772 13 5 12.5523 5 12Z",fill:"currentColor"})})},exports.Skeleton=eS,exports.Slider=$C,exports.Sparkles=function({className:t="",size:n=24}){return e.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:jt("icon-md shrink-0",t),children:[e.jsx("path",{d:"M19.3975 1.35498C19.3746 1.15293 19.2037 1.00021 19.0004 1C18.7971 0.999793 18.6259 1.15217 18.6026 1.35417C18.4798 2.41894 18.1627 3.15692 17.6598 3.65983C17.1569 4.16274 16.4189 4.47983 15.3542 4.60264C15.1522 4.62593 14.9998 4.79707 15 5.00041C15.0002 5.20375 15.1529 5.37457 15.355 5.39746C16.4019 5.51605 17.1562 5.83304 17.6716 6.33906C18.1845 6.84269 18.5078 7.57998 18.6016 8.63539C18.6199 8.84195 18.7931 9.00023 19.0005 9C19.2078 8.99977 19.3806 8.84109 19.3985 8.6345C19.4883 7.59673 19.8114 6.84328 20.3273 6.32735C20.8433 5.81142 21.5967 5.48834 22.6345 5.39851C22.8411 5.38063 22.9998 5.20782 23 5.00045C23.0002 4.79308 22.842 4.61992 22.6354 4.60157C21.58 4.50782 20.8427 4.18447 20.3391 3.67157C19.833 3.15623 19.516 2.40192 19.3975 1.35498Z",fill:"currentColor"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 3C11.4833 3 11.8974 3.34562 11.9839 3.82111C12.4637 6.46043 13.279 8.23983 14.5196 9.48039C15.7602 10.721 17.5396 11.5363 20.1789 12.0161C20.6544 12.1026 21 12.5167 21 13C21 13.4833 20.6544 13.8974 20.1789 13.9839C17.5396 14.4637 15.7602 15.279 14.5196 16.5196C13.279 17.7602 12.4637 19.5396 11.9839 22.1789C11.8974 22.6544 11.4833 23 11 23C10.5167 23 10.1026 22.6544 10.0161 22.1789C9.53625 19.5396 8.72096 17.7602 7.48039 16.5196C6.23983 15.279 4.46043 14.4637 1.82111 13.9839C1.34562 13.8974 1 13.4833 1 13C1 12.5167 1.34562 12.1026 1.82111 12.0161C4.46043 11.5363 6.23983 10.721 7.48039 9.48039C8.72096 8.23983 9.53625 6.46043 10.0161 3.82111C10.1026 3.34562 10.5167 3 11 3ZM5.66618 13C6.9247 13.5226 7.99788 14.2087 8.89461 15.1054C9.79134 16.0021 10.4774 17.0753 11 18.3338C11.5226 17.0753 12.2087 16.0021 13.1054 15.1054C14.0021 14.2087 15.0753 13.5226 16.3338 13C15.0753 12.4774 14.0021 11.7913 13.1054 10.8946C12.2087 9.99788 11.5226 8.9247 11 7.66618C10.4774 8.9247 9.79134 9.99788 8.89461 10.8946C7.99788 11.7913 6.9247 12.4774 5.66618 13Z",fill:"currentColor"})]})},exports.SpeechIcon=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:jt(t),children:[e.jsx("path",{d:"M2 10v3"}),e.jsx("path",{d:"M6 6v11"}),e.jsx("path",{d:"M10 3v18"}),e.jsx("path",{d:"M14 8v7"}),e.jsx("path",{d:"M18 5v13"}),e.jsx("path",{d:"M22 10v3"})]})},exports.Spinner=p$,exports.SplitText=({text:n="",className:r="",delay:o=100,animationFrom:i={opacity:0,transform:"translate3d(0,40px,0)"},animationTo:a={opacity:1,transform:"translate3d(0,0,0)"},easing:s=(e=>e),threshold:l=.1,rootMargin:c="-100px",textAlign:u="center",onLetterAnimationComplete:d,onLineCountChange:f})=>{const p=n.split(" ").map(tB),m=p.flat(),[h,g]=t.useState(!1),v=t.useRef(null),b=t.useRef(0),[w]=function(e,n,r){const o=J_.fun(n)&&n;o&&!r&&(r=[]);const i=t.useMemo((()=>o||3==arguments.length?DH():void 0),[]),a=t.useRef(0),s=hz(),l=t.useMemo((()=>({ctrls:[],queue:[],flush(e,t){const n=jH(e,t);return a.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?PH(e,t):new Promise((r=>{MH(e,n),l.queue.push((()=>{r(PH(e,t))})),s()}))}})),[]),c=t.useRef([...l.ctrls]),u=[],d=bz(e)||0;function f(e,t){for(let r=e;r<t;r++){const e=c.current[r]||(c.current[r]=new RH(null,l.flush)),t=o?o(r,e):n[r];t&&(u[r]=wH(t))}}t.useMemo((()=>{tV(c.current.slice(e,d),(e=>{!function(e,t){e.ref?.delete(e),t?.delete(e)}(e,i),e.stop(!0)})),c.current.length=e,f(d,e)}),[e]),t.useMemo((()=>{f(0,Math.min(d,e))}),r);const p=c.current.map(((e,t)=>jH(e,u[t]))),m=t.useContext(OH),h=bz(m),g=m!==h&&function(e){for(const t in e)return!0;return!1}(m);pz((()=>{a.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],tV(e,(e=>e()))),tV(c.current,((e,t)=>{i?.add(e),g&&e.start({default:m});const n=u[t];n&&(function(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),gz((()=>()=>{tV(l.ctrls,(e=>e.stop(!0)))}));const v=p.map((e=>({...e})));return i?[v,i]:v}(m.length,(e=>({from:i,to:h?async e=>{await e(a),b.current+=1,b.current===m.length&&d&&d()}:i,delay:e*o,config:{easing:s}})),[h,n,o,i,a,s,d]);return t.useEffect((()=>{const e=new IntersectionObserver((([t])=>{t.isIntersecting&&(g(!0),v.current&&e.unobserve(v.current))}),{threshold:l,rootMargin:c});return v.current&&e.observe(v.current),()=>e.disconnect()}),[l,c]),t.useEffect((()=>{if(v.current&&h){const e=v.current;setTimeout((()=>{const t=parseInt(getComputedStyle(e).lineHeight)||1.2*parseInt(getComputedStyle(e).fontSize),n=e.offsetHeight,r=Math.round(n/t);f&&f(r)}),100)}}),[h,n,f]),e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sr-only",children:n}),e.jsx("p",{ref:v,className:`split-parent inline overflow-hidden ${r}`,style:{textAlign:u,whiteSpace:"normal",wordWrap:"break-word"},"aria-hidden":"true",children:p.map(((t,n)=>e.jsxs("span",{style:{display:"inline-block",whiteSpace:"nowrap"},children:[t.map(((t,r)=>{const o=p.slice(0,n).reduce(((e,t)=>e+t.length),0)+r;return e.jsx(eB.span,{style:w[o],className:"inline-block transform transition-opacity will-change-transform",children:t},o)})),n<p.length-1&&e.jsx("span",{style:{display:"inline-block",width:"0.3em"},children:" "})]},n)))})]})},exports.SquirclePlusIcon=function(){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"text-3xl",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})},exports.StopGeneratingIcon=function({className:t=""}){return e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt("h-3 w-3 text-gray-600 dark:text-gray-400",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})})},exports.Switch=ES,exports.Table=RS,exports.TableBody=NS,exports.TableCaption=TS,exports.TableCell=IS,exports.TableFooter=jS,exports.TableHead=AS,exports.TableHeader=PS,exports.TableRow=MS,exports.Tabs=fk,exports.TabsContent=hk,exports.TabsList=pk,exports.TabsTrigger=mk,exports.Tag=vk,exports.Textarea=bk,exports.TextareaAutosize=Tk,exports.ThemeContext=ow,exports.ThemeProvider=({initialTheme:n,children:o})=>{const[i,a]=t.useState((()=>n??At())),s=r.useSetAtom(nw);return t.useEffect((()=>{const e=document.documentElement,t="system"===i?window.matchMedia("(prefers-color-scheme: dark)").matches:"dark"===i;e.classList.toggle("dark",t),e.classList.toggle("light",!t),localStorage.setItem("color-theme",i)}),[i]),t.useEffect((()=>{if("system"!==i)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>a(e.matches?"dark":"light");return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}),[i]),t.useEffect((()=>{const e=localStorage.getItem("fontSize")||"text-base";Mt(e),s(e)}),[s]),e.jsx(ow.Provider,{value:{theme:i,setTheme:a},children:o})},exports.ThemeSelector=({returnThemeOnly:n})=>{const{theme:r,setTheme:o}=t.useContext(ow),[i,a]=t.useState(""),s=t.useCallback((e=>{const t=Date.now();"number"==typeof window.lastThemeChange&&t-window.lastThemeChange<500||(window.lastThemeChange=t,o(e),a("dark"===e?"Dark theme enabled":"Light theme enabled"))}),[o]);return t.useEffect((()=>{if("system"===r){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;o(e?"dark":"light")}}),[r,o]),t.useEffect((()=>{if(i){const e=setTimeout((()=>a("")),1e3);return()=>clearTimeout(e)}}),[i]),!0===n?e.jsx(P$,{theme:r,onChange:s}):e.jsxs("div",{className:"flex flex-col items-center justify-center bg-white pt-6 dark:bg-gray-900 sm:pt-0",children:[e.jsx("div",{className:"absolute bottom-0 left-0 m-4",children:e.jsx(P$,{theme:r,onChange:s})}),i&&e.jsx("div",{"aria-live":"polite",className:"sr-only",children:i})]})},exports.ThumbDownIcon=function({className:t="",size:n="1em",bold:r=!1}){return r?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",className:t,children:[e.jsx("path",{d:"M11.4079 21.4961C11.1953 21.8698 10.7683 22.0649 10.348 21.9805C8.4373 21.5968 7.27541 19.6391 7.84844 17.7691L8.69697 14.9999L6.98577 14.9999C4.35915 14.9999 2.45151 12.492 3.14262 9.94747L4.50063 4.94747C4.97329 3.20722 6.54741 1.99994 8.34378 1.99994H14.0328C15.131 2.00207 16.0206 2.89668 16.0206 3.99994V14.9999H15.6827C15.3253 14.9999 14.9953 15.1922 14.818 15.5038L11.4079 21.4961Z",fill:"currentColor"}),e.jsx("path",{d:"M18.0124 14.9999C19.6624 14.9999 21 13.6568 21 11.9999V4.99994C21 3.34308 19.6624 1.99994 18.0124 1.99994H17.4794C17.8184 2.58829 18.0124 3.27136 18.0124 3.99994V14.9999Z",fill:"currentColor"})]}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8727 21.4961C11.6725 21.8466 11.2811 22.0423 10.8805 21.9922L10.4267 21.9355C7.95958 21.6271 6.36855 19.1665 7.09975 16.7901L7.65054 15H6.93226C4.29476 15 2.37923 12.4921 3.0732 9.94753L4.43684 4.94753C4.91145 3.20728 6.49209 2 8.29589 2H18.0045C19.6614 2 21.0045 3.34315 21.0045 5V12C21.0045 13.6569 19.6614 15 18.0045 15H16.0045C15.745 15 15.5054 15.1391 15.3766 15.3644L11.8727 21.4961ZM14.0045 4H8.29589C7.39399 4 6.60367 4.60364 6.36637 5.47376L5.00273 10.4738C4.65574 11.746 5.61351 13 6.93226 13H9.00451C9.32185 13 9.62036 13.1506 9.8089 13.4059C9.99743 13.6612 10.0536 13.9908 9.96028 14.2941L9.01131 17.3782C8.6661 18.5002 9.35608 19.6596 10.4726 19.9153L13.6401 14.3721C13.9523 13.8258 14.4376 13.4141 15.0045 13.1902V5C15.0045 4.44772 14.5568 4 14.0045 4ZM17.0045 13V5C17.0045 4.64937 16.9444 4.31278 16.8338 4H18.0045C18.5568 4 19.0045 4.44772 19.0045 5V12C19.0045 12.5523 18.5568 13 18.0045 13H17.0045Z",fill:"currentColor"})})},exports.ThumbUpIcon=function({className:t="",size:n="1em",bold:r=!1}){return r?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",className:t,children:[e.jsx("path",{d:"M12.592 2.50386C12.8047 2.13014 13.2317 1.935 13.652 2.01942C15.5627 2.40314 16.7246 4.36079 16.1516 6.23085L15.303 9L17.0142 9C19.6409 9 21.5485 11.5079 20.8574 14.0525L19.4994 19.0525C19.0267 20.7927 17.4526 22 15.6562 22H9.96721C8.869 21.9979 7.97939 21.1033 7.97939 20V9H8.31734C8.67472 9 9.0047 8.80771 9.18201 8.49613L12.592 2.50386Z",fill:"currentColor"}),e.jsx("path",{d:"M5.98763 9C4.33761 9 3 10.3431 3 12V19C3 20.6569 4.33761 22 5.98763 22H6.52055C6.18162 21.4116 5.98763 20.7286 5.98763 20V9Z",fill:"currentColor"})]}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1318 2.50389C12.3321 2.15338 12.7235 1.95768 13.124 2.00775L13.5778 2.06447C16.0449 2.37286 17.636 4.83353 16.9048 7.20993L16.354 8.99999H17.0722C19.7097 8.99999 21.6253 11.5079 20.9313 14.0525L19.5677 19.0525C19.0931 20.7927 17.5124 22 15.7086 22H6C4.34315 22 3 20.6568 3 19V12C3 10.3431 4.34315 8.99999 6 8.99999H8C8.25952 8.99999 8.49914 8.86094 8.6279 8.63561L12.1318 2.50389ZM10 20H15.7086C16.6105 20 17.4008 19.3964 17.6381 18.5262L19.0018 13.5262C19.3488 12.2539 18.391 11 17.0722 11H15C14.6827 11 14.3841 10.8494 14.1956 10.5941C14.0071 10.3388 13.9509 10.0092 14.0442 9.70591L14.9932 6.62175C15.3384 5.49984 14.6484 4.34036 13.5319 4.08468L10.3644 9.62789C10.0522 10.1742 9.56691 10.5859 9 10.8098V19C9 19.5523 9.44772 20 10 20ZM7 11V19C7 19.3506 7.06015 19.6872 7.17071 20H6C5.44772 20 5 19.5523 5 19V12C5 11.4477 5.44772 11 6 11H7Z",fill:"currentColor"})})},exports.Toast=function(){const{toast:t,onOpenChange:n}=iw(),r={[exports.NotificationSeverity.INFO]:"border-gray-500 bg-gray-500",[exports.NotificationSeverity.SUCCESS]:"border-green-500 bg-green-500",[exports.NotificationSeverity.WARNING]:"border-orange-500 bg-orange-500",[exports.NotificationSeverity.ERROR]:"border-red-500 bg-red-500"};return e.jsx(oE,{open:t.open,onOpenChange:n,className:"toast-root",style:{height:"74px",marginBottom:"0px"},children:e.jsx("div",{className:"w-full p-1 text-center md:w-auto md:text-justify",children:e.jsxs("div",{className:`alert-root pointer-events-auto inline-flex flex-row gap-2 rounded-md border px-3 py-2 text-white ${r[t.severity]}`,children:[t.showIcon&&e.jsx("div",{className:"mt-1 flex-shrink-0 flex-grow-0",children:e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),e.jsx(iE,{className:"flex-1 justify-center gap-2",children:e.jsx("div",{className:"whitespace-pre-wrap text-left",children:t.message})})]})})})},exports.ToastContext=KX,exports.ToastProvider=function({children:t}){const{showToast:n}=iw();return e.jsx(KX.Provider,{value:{showToast:n},children:t})},exports.TooltipAnchor=sT,exports.TrashIcon=h$,exports.UserIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e.jsx("circle",{cx:"12",cy:"7",r:"4"})]})},exports.VectorIcon=function({className:t}){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-label":"",children:e.jsx("path",{d:"M7.45996 14.375C7.45996 13.3616 6.63844 12.54 5.625 12.54C4.61156 12.54 3.79004 13.3616 3.79004 14.375C3.79004 15.3884 4.61156 16.21 5.625 16.21C6.63844 16.21 7.45996 15.3884 7.45996 14.375ZM16.21 14.375C16.21 13.3616 15.3884 12.54 14.375 12.54C13.3616 12.54 12.54 13.3616 12.54 14.375C12.54 15.3884 13.3616 16.21 14.375 16.21C15.3884 16.21 16.21 15.3884 16.21 14.375ZM7.45996 5.625C7.45996 4.61156 6.63844 3.79004 5.625 3.79004C4.61156 3.79004 3.79004 4.61156 3.79004 5.625C3.79004 6.63844 4.61156 7.45996 5.625 7.45996C6.63844 7.45996 7.45996 6.63844 7.45996 5.625ZM16.21 5.625C16.21 4.61156 15.3884 3.79004 14.375 3.79004C13.3616 3.79004 12.54 4.61156 12.54 5.625C12.54 6.63844 13.3616 7.45996 14.375 7.45996C15.3884 7.45996 16.21 6.63844 16.21 5.625ZM17.54 14.375C17.54 16.123 16.123 17.54 14.375 17.54C12.627 17.54 11.21 16.123 11.21 14.375C11.21 12.627 12.627 11.21 14.375 11.21C16.123 11.21 17.54 12.627 17.54 14.375ZM8.79004 5.625C8.79004 7.37298 7.37298 8.79004 5.625 8.79004C3.87702 8.79004 2.45996 7.37298 2.45996 5.625C2.45996 3.87702 3.87702 2.45996 5.625 2.45996C7.37298 2.45996 8.79004 3.87702 8.79004 5.625ZM17.54 5.625C17.54 7.37298 16.123 8.79004 14.375 8.79004C13.7416 8.79004 13.153 8.60173 12.6582 8.28125L8.28125 12.6582C8.60173 13.153 8.79004 13.7416 8.79004 14.375C8.79004 16.123 7.37298 17.54 5.625 17.54C3.87702 17.54 2.45996 16.123 2.45996 14.375C2.45996 12.627 3.87702 11.21 5.625 11.21C6.25794 11.21 6.84623 11.3977 7.34082 11.7178L11.7178 7.34082C11.3977 6.84623 11.21 6.25794 11.21 5.625C11.21 3.87702 12.627 2.45996 14.375 2.45996C16.123 2.45996 17.54 3.87702 17.54 5.625Z"})})},exports.VolumeIcon=function({className:t="",size:n="1em"}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:n,width:n,className:jt(t),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4.9099C11 4.47485 10.4828 4.24734 10.1621 4.54132L6.67572 7.7372C6.49129 7.90626 6.25019 8.00005 6 8.00005H4C3.44772 8.00005 3 8.44776 3 9.00005V15C3 15.5523 3.44772 16 4 16H6C6.25019 16 6.49129 16.0938 6.67572 16.2629L10.1621 19.4588C10.4828 19.7527 11 19.5252 11 19.0902V4.9099ZM8.81069 3.06701C10.4142 1.59714 13 2.73463 13 4.9099V19.0902C13 21.2655 10.4142 22.403 8.81069 20.9331L5.61102 18H4C2.34315 18 1 16.6569 1 15V9.00005C1 7.34319 2.34315 6.00005 4 6.00005H5.61102L8.81069 3.06701ZM20.3166 6.35665C20.8019 6.09313 21.409 6.27296 21.6725 6.75833C22.5191 8.3176 22.9996 10.1042 22.9996 12.0001C22.9996 13.8507 22.5418 15.5974 21.7323 17.1302C21.4744 17.6185 20.8695 17.8054 20.3811 17.5475C19.8927 17.2896 19.7059 16.6846 19.9638 16.1962C20.6249 14.9444 20.9996 13.5175 20.9996 12.0001C20.9996 10.4458 20.6064 8.98627 19.9149 7.71262C19.6514 7.22726 19.8312 6.62017 20.3166 6.35665ZM15.7994 7.90049C16.241 7.5688 16.8679 7.65789 17.1995 8.09947C18.0156 9.18593 18.4996 10.5379 18.4996 12.0001C18.4996 13.3127 18.1094 14.5372 17.4385 15.5604C17.1357 16.0222 16.5158 16.1511 16.0539 15.8483C15.5921 15.5455 15.4632 14.9255 15.766 14.4637C16.2298 13.7564 16.4996 12.9113 16.4996 12.0001C16.4996 10.9859 16.1653 10.0526 15.6004 9.30063C15.2687 8.85905 15.3578 8.23218 15.7994 7.90049Z",fill:"currentColor"})})},exports.VolumeMuteIcon=function({className:t="",size:n="1em"}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:n,width:n,className:jt(t),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9.5 8.5C8.94772 8.5 8.5 8.94772 8.5 9.5V14.5C8.5 15.0523 8.94772 15.5 9.5 15.5H14.5C15.0523 15.5 15.5 15.0523 15.5 14.5V9.5C15.5 8.94772 15.0523 8.5 14.5 8.5H9.5Z",fill:"currentColor"})})},exports.XAIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:"currentColor",className:t,children:e.jsx("path",{d:"m3.005 8.858 8.783 12.544h3.904L6.908 8.858zM6.905 15.825 3 21.402h3.907l1.951-2.788zM16.585 2l-6.75 9.64 1.953 2.79L20.492 2zM17.292 7.965v13.437h3.2V3.395z"})})},exports.applyFontSize=Mt,exports.buttonVariants=Vp,exports.chatDirectionAtom=tw,exports.cn=jt,exports.fontSizeAtom=nw,exports.getInitialTheme=At,exports.langAtom=ew,exports.toastState=rw,exports.useCombobox=Sw,exports.useDelayedRender=Rw,exports.useLocalize=kw,exports.useMediaQuery=Ew,exports.useMultiSearch=rO,exports.useOnClickOutside=function(e,n,r,o){t.useEffect((()=>{const t=t=>{const i=t.target;i&&"id"in i&&r.includes(i.id)||i?.parentNode&&"id"in i.parentNode&&r.includes(i.parentNode.id)||o&&o(i)||e.current&&!e.current.contains(i)&&n()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),[e,n])},exports.useToast=iw,exports.useToastContext=function(){return t.useContext(KX)};
39
+ */Gn=Kn,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=r(e,n(a)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var a="";for(var o in n)e.call(n,o)&&n[o]&&(a=r(a,o));return a}function r(e,t){return t?e?e+" "+t:e+t:e}Gn.exports?(t.default=t,Gn.exports=t):window.classNames=t}();var Qn=an(Kn.exports),Jn={ENTER:13,UP:38,DOWN:40};var er,tr="undefined"!=typeof window&&window.document&&window.document.createElement?L.useLayoutEffect:L.useEffect,nr=function(e,t){var n=L.useRef(!0);tr(function(){return e(n.current)},t),tr(function(){return n.current=!1,function(){n.current=!0}},[])},rr=function(e,t){nr(function(t){if(!t)return e()},t)},ar={},or=Symbol.for("react.element"),sr=Symbol.for("react.portal"),ir=Symbol.for("react.fragment"),lr=Symbol.for("react.strict_mode"),cr=Symbol.for("react.profiler"),dr=Symbol.for("react.provider"),ur=Symbol.for("react.context"),hr=Symbol.for("react.server_context"),pr=Symbol.for("react.forward_ref"),mr=Symbol.for("react.suspense"),fr=Symbol.for("react.suspense_list"),gr=Symbol.for("react.memo"),vr=Symbol.for("react.lazy"),wr=Symbol.for("react.offscreen");function xr(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case or:switch(e=e.type){case ir:case cr:case lr:case mr:case fr:return e;default:switch(e=e&&e.$$typeof){case hr:case ur:case pr:case vr:case gr:case dr:return e;default:return t}}case sr:return t}}}er=Symbol.for("react.module.reference"),ar.ContextConsumer=ur,ar.ContextProvider=dr,ar.Element=or,ar.ForwardRef=pr,ar.Fragment=ir,ar.Lazy=vr,ar.Memo=gr,ar.Portal=sr,ar.Profiler=cr,ar.StrictMode=lr,ar.Suspense=mr,ar.SuspenseList=fr,ar.isAsyncMode=function(){return!1},ar.isConcurrentMode=function(){return!1},ar.isContextConsumer=function(e){return xr(e)===ur},ar.isContextProvider=function(e){return xr(e)===dr},ar.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===or},ar.isForwardRef=function(e){return xr(e)===pr},ar.isFragment=function(e){return xr(e)===ir},ar.isLazy=function(e){return xr(e)===vr},ar.isMemo=function(e){return xr(e)===gr},ar.isPortal=function(e){return xr(e)===sr},ar.isProfiler=function(e){return xr(e)===cr},ar.isStrictMode=function(e){return xr(e)===lr},ar.isSuspense=function(e){return xr(e)===mr},ar.isSuspenseList=function(e){return xr(e)===fr},ar.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ir||e===cr||e===lr||e===mr||e===fr||e===wr||"object"==typeof e&&null!==e&&(e.$$typeof===vr||e.$$typeof===gr||e.$$typeof===dr||e.$$typeof===ur||e.$$typeof===pr||e.$$typeof===er||void 0!==e.getModuleId)},ar.typeOf=xr,Number(t.version.split(".")[0]);var yr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){!function(e,t){"function"==typeof e?e(t):"object"===Wn(e)&&e&&"current"in e&&(e.current=t)}(t,e)})}};function br(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kr(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Un(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cr(){return"function"==typeof BigInt}function jr(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function Nr(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",s=a[1]||"0";"0"===o&&"0"===s&&(n=!1);var i=n?"-":"";return{negative:n,negativeStr:i,trimStr:r,integerStr:o,decimalStr:s,fullStr:"".concat(i).concat(r)}}function Sr(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Mr(e){var t=String(e);if(Sr(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Lr(t)?t.length-t.indexOf(".")-1:0}function Pr(e){var t=String(e);if(Sr(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Cr()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Cr()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Mr(t))}return Nr(t).fullStr}function Lr(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var Tr=function(){function e(t){if(br(this,e),Xn(this,"origin",""),Xn(this,"negative",void 0),Xn(this,"integer",void 0),Xn(this,"decimal",void 0),Xn(this,"decimalLen",void 0),Xn(this,"empty",void 0),Xn(this,"nan",void 0),jr(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(Sr(n)&&(n=Number(n)),Lr(n="string"==typeof n?n:Pr(n))){var r=Nr(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var o=a[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}}return kr(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var a=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),o=n(this.alignDecimal(a),t.alignDecimal(a)).toString(),s=r(a),i=Nr(o),l=i.negativeStr,c=i.trimStr,d="".concat(l).concat(c.padStart(s+1,"0"));return new e("".concat(d.slice(0,-s),".").concat(d.slice(-s)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":Nr("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Er=function(){function e(t){br(this,e),Xn(this,"origin",""),Xn(this,"number",void 0),Xn(this,"empty",void 0),jr(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return kr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(Mr(this.number),Mr(n));return new e(r.toFixed(a))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(Mr(this.number),Mr(n));return new e(r.toFixed(a))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":Pr(this.number):this.origin}}]),e}();function Ar(e){return Cr()?new Tr(e):new Er(e)}function Rr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var a=Nr(e),o=a.negativeStr,s=a.integerStr,i=a.decimalStr,l="".concat(t).concat(i),c="".concat(o).concat(s);if(n>=0){var d=Number(i[n]);return d>=5&&!r?Rr(Ar(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-d)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(i.padEnd(n,"0").slice(0,n))}return".0"===l?c:"".concat(c).concat(l)}var zr=function(){var e=Zn(t.useState(!1),2),n=e[0],r=e[1];return nr(function(){r(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())},[]),n};function Ir(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,s=e.onStep,i=L.useRef(),l=L.useRef();l.current=s;var c=function(e,t){e.preventDefault(),l.current(t),i.current=setTimeout(function e(){l.current(t),i.current=setTimeout(e,200)},600)},d=function(){clearTimeout(i.current)};if(L.useEffect(function(){return d},[]),zr())return null;var u="".concat(t,"-handler"),h=Qn(u,"".concat(u,"-up"),Xn({},"".concat(u,"-up-disabled"),a)),p=Qn(u,"".concat(u,"-down"),Xn({},"".concat(u,"-down-disabled"),o)),m={unselectable:"on",role:"button",onMouseUp:d,onMouseLeave:d};return L.createElement("div",{className:"".concat(u,"-wrap")},L.createElement("span",$n({},m,{onMouseDown:function(e){c(e,!0)},"aria-label":"Increase Value","aria-disabled":a,className:h}),n||L.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),L.createElement("span",$n({},m,{onMouseDown:function(e){c(e,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:p}),r||L.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Vr(e){var t="number"==typeof e?Pr(e):Nr(e).fullStr;return t.includes(".")?Nr(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Dr={};function Or(e,t){}function Br(e,t){}function Fr(e,t,n){t||Dr[n]||(e(!1,n),Dr[n]=!0)}function _r(e,t){Fr(Or,e,t)}_r.preMessage=function(e){},_r.resetWarned=function(){Dr={}},_r.noteOnce=function(e,t){Fr(Br,e,t)};var Hr=function(e){return+setTimeout(e,16)},$r=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Hr=function(e){return window.requestAnimationFrame(e)},$r=function(e){return window.cancelAnimationFrame(e)});var Wr=0,Ur=new Map;function Xr(e){Ur.delete(e)}var Yr=function(e){var t=Wr+=1;return function n(r){if(0===r)Xr(t),e();else{var a=Hr(function(){n(r-1)});Ur.set(t,a)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Yr.cancel=function(e){var t=Ur.get(e);return Xr(e),$r(t)};var Zr=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],qr=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Gr=function(e){var t=Ar(e);return t.isInvalidate()?null:t},Kr=L.forwardRef(function(e,n){var r,a=e.prefixCls,o=void 0===a?"rc-input-number":a,s=e.className,i=e.style,l=e.min,c=e.max,d=e.step,u=void 0===d?1:d,h=e.defaultValue,p=e.value,m=e.disabled,f=e.readOnly,g=e.upHandler,v=e.downHandler,w=e.keyboard,x=e.controls,y=void 0===x||x,b=e.stringMode,k=e.parser,C=e.formatter,j=e.precision,N=e.decimalSeparator,S=e.onChange,M=e.onInput,P=e.onPressEnter,T=e.onStep,E=function(e,t){if(null==e)return{};var n,r,a=qn(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,Zr),A="".concat(o,"-input"),R=L.useRef(null),z=Zn(L.useState(!1),2),I=z[0],V=z[1],D=L.useRef(!1),O=L.useRef(!1),B=L.useRef(!1),F=Zn(L.useState(function(){return Ar(null!=p?p:h)}),2),_=F[0],H=F[1];var $=L.useCallback(function(e,t){if(!t)return j>=0?j:Math.max(Mr(e),Mr(u))},[j,u]),W=L.useCallback(function(e){var t=String(e);if(k)return k(t);var n=t;return N&&(n=n.replace(N,".")),n.replace(/[^\w.-]+/g,"")},[k,N]),U=L.useRef(""),X=L.useCallback(function(e,t){if(C)return C(e,{userTyping:t,input:String(U.current)});var n="number"==typeof e?Pr(e):e;if(!t){var r=$(n,t);if(Lr(n)&&(N||r>=0))n=Rr(n,N||".",r)}return n},[C,$,N]),Y=Zn(L.useState(function(){var e=null!=h?h:p;return _.isInvalidate()&&["string","number"].includes(Wn(e))?Number.isNaN(e)?"":e:X(_.toString(),!1)}),2),Z=Y[0],q=Y[1];function G(e,t){q(X(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}U.current=Z;var K,Q,J,ee,te,ne=L.useMemo(function(){return Gr(c)},[c,j]),re=L.useMemo(function(){return Gr(l)},[l,j]),ae=L.useMemo(function(){return!(!ne||!_||_.isInvalidate())&&ne.lessEquals(_)},[ne,_]),oe=L.useMemo(function(){return!(!re||!_||_.isInvalidate())&&_.lessEquals(re)},[re,_]),se=(K=R.current,Q=I,J=t.useRef(null),[function(){try{var e=K.selectionStart,t=K.selectionEnd,n=K.value,r=n.substring(0,e),a=n.substring(t);J.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:a}}catch(e){}},function(){if(K&&J.current&&Q)try{var e=K.value,t=J.current,n=t.beforeTxt,r=t.afterTxt,a=t.start,o=e.length;if(e.endsWith(r))o=e.length-J.current.afterTxt.length;else if(e.startsWith(n))o=n.length;else{var s=n[a-1],i=e.indexOf(s,a-1);-1!==i&&(o=i+1)}K.setSelectionRange(o,o)}catch(e){_r(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),ie=Zn(se,2),le=ie[0],ce=ie[1],de=function(e){return ne&&!e.lessEquals(ne)?ne:re&&!re.lessEquals(e)?re:null},ue=function(e){return!de(e)},he=function(e,t){var n,r=e,a=ue(r)||r.isEmpty();if(r.isEmpty()||t||(r=de(r)||r,a=!0),!f&&!m&&a){var o=r.toString(),s=$(o,t);return s>=0&&(r=Ar(Rr(o,".",s)),ue(r)||(r=Ar(Rr(o,".",s,!0)))),r.equals(_)||(n=r,void 0===p&&H(n),null==S||S(r.isEmpty()?null:qr(b,r)),void 0===p&&G(r,t)),r}return _},pe=(ee=t.useRef(0),te=function(){Yr.cancel(ee.current)},t.useEffect(function(){return te},[]),function(e){te(),ee.current=Yr(function(){e()})}),me=function e(t){if(le(),q(t),!O.current){var n=Ar(W(t));n.isNaN()||he(n,!0)}null==M||M(t),pe(function(){var n=t;k||(n=t.replace(/。/g,".")),n!==t&&e(n)})},fe=function(e){var t;if(!(e&&ae||!e&&oe)){D.current=!1;var n=Ar(B.current?Vr(u):u);e||(n=n.negate());var r=(_||Ar(0)).add(n.toString()),a=he(r,!1);null==T||T(qr(b,a),{offset:B.current?Vr(u):u,type:e?"up":"down"}),null===(t=R.current)||void 0===t||t.focus()}},ge=function(e){var t=Ar(W(Z)),n=t;n=t.isNaN()?_:he(t,e),void 0!==p?G(_,!1):n.isNaN()||G(n,!1)};return rr(function(){_.isInvalidate()||G(_,!1)},[j]),rr(function(){var e=Ar(p);H(e);var t=Ar(W(Z));e.equals(t)&&D.current&&!C||G(e,D.current)},[p]),rr(function(){C&&ce()},[Z]),L.createElement("div",{className:Qn(o,s,(r={},Xn(r,"".concat(o,"-focused"),I),Xn(r,"".concat(o,"-disabled"),m),Xn(r,"".concat(o,"-readonly"),f),Xn(r,"".concat(o,"-not-a-number"),_.isNaN()),Xn(r,"".concat(o,"-out-of-range"),!_.isInvalidate()&&!ue(_)),r)),style:i,onFocus:function(){V(!0)},onBlur:function(){ge(!1),V(!1),D.current=!1},onKeyDown:function(e){var t=e.which,n=e.shiftKey;D.current=!0,B.current=!!n,t===Jn.ENTER&&(O.current||(D.current=!1),ge(!1),null==P||P(e)),!1!==w&&!O.current&&[Jn.UP,Jn.DOWN].includes(t)&&(fe(Jn.UP===t),e.preventDefault())},onKeyUp:function(){D.current=!1,B.current=!1},onCompositionStart:function(){O.current=!0},onCompositionEnd:function(){O.current=!1,me(R.current.value)},onBeforeInput:function(){D.current=!0}},y&&L.createElement(Ir,{prefixCls:o,upNode:g,downNode:v,upDisabled:ae,downDisabled:oe,onStep:fe}),L.createElement("div",{className:"".concat(A,"-wrap")},L.createElement("input",$n({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":_.isInvalidate()?null:_.toString(),step:u},E,{ref:yr(R,n),className:A,value:Z,onChange:function(e){me(e.target.value)},disabled:m,readOnly:f}))))});Kr.displayName="InputNumber";const Qr=L.forwardRef(({className:t,...n},r)=>e.jsx(Kr,{className:Ie("flex max-h-5 w-full rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50",t??""),ref:r,...n}));Qr.displayName="Input";const Jr=L.forwardRef(({className:t="",...n},r)=>e.jsx(O.Root,{ref:r,...n,className:Ie("block w-full break-all text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-200",t)}));Jr.displayName=O.Root.displayName;const ea=L.forwardRef(({children:t,triggerRef:n,triggerRefs:r,onOpenChange:a,...o},s)=>e.jsx(V.Root,{...o,onOpenChange:e=>{!e&&n?.current&&setTimeout(()=>{n.current?.focus()},0),r?.length&&r.forEach(e=>{e?.current&&setTimeout(()=>{e.current?.focus()},0)}),a?.(e)},children:t})),ta=V.Trigger,na=V.Portal,ra=V.Close,aa=L.forwardRef(({className:t,...n},r)=>e.jsx(V.Overlay,{ref:r,className:Ie("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n}));aa.displayName=V.Overlay.displayName;const oa=L.forwardRef(({className:t,overlayClassName:n,showCloseButton:r=!0,children:a,...o},s)=>e.jsxs(na,{children:[e.jsx(aa,{className:n}),e.jsxs(V.Content,{ref:s,className:Ie("max-w-11/12 fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl bg-background p-6 text-text-primary shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",t),...o,children:[a,r&&e.jsxs(V.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-ring-primary ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(yt,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));oa.displayName=V.Content.displayName;const sa=({className:t,...n})=>e.jsx("div",{className:Ie("flex flex-col space-y-1.5 text-center sm:text-left",t),...n});sa.displayName="DialogHeader";const ia=({className:t,...n})=>e.jsx("div",{className:Ie("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});ia.displayName="DialogFooter";const la=L.forwardRef(({className:t,...n},r)=>e.jsx(V.Title,{ref:r,className:Ie("text-lg font-semibold leading-none tracking-tight",t),...n}));la.displayName=V.Title.displayName;const ca=L.forwardRef(({className:t,...n},r)=>e.jsx(V.Description,{ref:r,className:Ie("text-sm text-muted-foreground",t),...n}));ca.displayName=V.Description.displayName;const da=L.forwardRef(({className:t,onDoubleClick:n,...r},a)=>e.jsxs(B.Root,{ref:a,...r,className:Ie("relative flex w-full cursor-pointer touch-none select-none items-center",t),onDoubleClick:n,children:[e.jsx(B.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(B.Range,{className:"absolute h-full bg-primary"})}),e.jsx(B.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));da.displayName=B.Root.displayName;const ua=L.forwardRef(({className:t="",orientation:n="horizontal",decorative:r=!0,...a},o)=>e.jsx(F.Root,{ref:o,...a,decorative:r,orientation:n,className:Ie("shrink-0 bg-border-light","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",t)}));ua.displayName=F.Root.displayName;function ha({className:t,...n}){return e.jsx("div",{className:Ie("animate-pulse rounded-md bg-surface-tertiary opacity-50 dark:opacity-25",t),...n})}const pa=L.forwardRef(({className:t,...n},r)=>e.jsx(_.Root,{className:Ie("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-switch-unchecked",t),...n,ref:r,children:e.jsx(_.Thumb,{className:Ie("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));pa.displayName=_.Root.displayName;const ma=L.forwardRef(({className:t,...n},r)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:r,className:Ie("w-full caption-bottom text-sm",t),...n})}));ma.displayName="Table";const fa=L.forwardRef(({className:t,...n},r)=>e.jsx("thead",{ref:r,className:Ie("[&_tr]:border-b",t),...n}));fa.displayName="TableHeader";const ga=L.forwardRef(({className:t,...n},r)=>e.jsx("tbody",{ref:r,className:Ie("[&_tr:last-child]:border-0",t),...n}));ga.displayName="TableBody";const va=L.forwardRef(({className:t,...n},r)=>e.jsx("tfoot",{ref:r,className:Ie("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...n}));va.displayName="TableFooter";const wa=L.forwardRef(({className:t,...n},r)=>e.jsx("tr",{ref:r,className:Ie("border-b border-border-light transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...n}));wa.displayName="TableRow";const xa=L.forwardRef(({className:t,...n},r)=>e.jsx("th",{ref:r,className:Ie("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...n}));xa.displayName="TableHead";const ya=L.forwardRef(({className:t,...n},r)=>e.jsx("td",{ref:r,className:Ie("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...n}));ya.displayName="TableCell";const ba=L.forwardRef(({className:t,...n},r)=>e.jsx("caption",{ref:r,className:Ie("mt-4 text-sm text-muted-foreground",t),...n}));ba.displayName="TableCaption";const ka=H.Root,Ca=L.forwardRef(({className:t="",...n},r)=>e.jsx(H.List,{ref:r,className:Ie("inline-flex items-center justify-center rounded-md bg-surface-primary",t),...n}));Ca.displayName=H.List.displayName;const ja=L.forwardRef(({className:t="",...n},r)=>e.jsx(H.Trigger,{className:Ie("inline-flex min-w-[100px] items-center justify-center rounded-[0.185rem] px-3 py-1.5 text-sm font-medium text-gray-700 transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-gray-800 data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-700 dark:data-[state=active]:text-gray-200",t),...n,ref:r}));ja.displayName=H.Trigger.displayName;const Na=L.forwardRef(({className:t="",...n},r)=>e.jsx(H.Content,{className:Ie("mt-2 rounded-md p-6",t),...n,ref:r}));Na.displayName=H.Content.displayName;const Sa=L.forwardRef(({CancelButton:t,LabelNode:n,label:r,onRemove:a,className:o="",labelClassName:s="",...i},l)=>e.jsxs("div",{ref:l,...i,className:Ie("flex max-h-8 items-center overflow-y-hidden rounded-3xl border-2 border-green-600 bg-green-600/20 text-xs text-green-600 dark:text-white",o),children:[e.jsxs("div",{className:Ie("ml-1 whitespace-pre-wrap px-2 py-1",s),children:[n?e.jsxs(e.Fragment,{children:[n," "]}):null,r]}),t||a&&e.jsx("button",{onClick:e=>{e.stopPropagation(),a(e)},className:"rounded-full bg-green-600/50","aria-label":`Remove ${r}`,children:e.jsx(yt,{className:"m-[1.5px] p-1"})})]}));Sa.displayName="Tag";const Ma=L.memo(Sa),Pa=L.forwardRef(({className:t="",...n},r)=>e.jsx("textarea",{className:Ie("flex h-20 w-full resize-none rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),ref:r,...n}));Pa.displayName="Textarea";var La=t.useLayoutEffect,Ta=function(e,t){"function"!=typeof e?e.current=t:e(t)},Ea={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},Aa=function(e){Object.keys(Ea).forEach(function(t){e.style.setProperty(t,Ea[t],"important")})},Ra=null,za=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var Ia=function(){},Va=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],Da=!!document.documentElement.currentStyle,Oa=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=function(e,t){return e.reduce(function(e,n){return e[n]=t[n],e},{})}(Va,t),r=n.boxSizing;return""===r?null:(Da&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})};function Ba(e,n,r){var a,o,s=(a=r,o=t.useRef(a),La(function(){o.current=a}),o);L.useLayoutEffect(function(){var t=function(e){return s.current(e)};if(e)return e.addEventListener(n,t),function(){return e.removeEventListener(n,t)}},[])}var Fa=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],_a=function(e,n){var r=e.cacheMeasurements,a=e.maxRows,o=e.minRows,s=e.onChange,i=void 0===s?Ia:s,l=e.onHeightChange,c=void 0===l?Ia:l,d=qn(e,Fa),u=void 0!==d.value,h=L.useRef(null),p=function(e,n){var r=t.useRef();return t.useCallback(function(t){e.current=t,r.current&&Ta(r.current,null),r.current=n,n&&Ta(n,t)},[n])}(h,n),m=L.useRef(0),f=L.useRef(),g=function(){var e=h.current,t=r&&f.current?f.current:Oa(e);if(t){f.current=t;var n=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),Ra||((Ra=document.createElement("textarea")).setAttribute("tabindex","-1"),Ra.setAttribute("aria-hidden","true"),Aa(Ra)),null===Ra.parentNode&&document.body.appendChild(Ra);var a=e.paddingSize,o=e.borderSize,s=e.sizingStyle,i=s.boxSizing;Object.keys(s).forEach(function(e){var t=e;Ra.style[t]=s[t]}),Aa(Ra),Ra.value=t;var l=za(Ra,e);Ra.value=t,l=za(Ra,e),Ra.value="x";var c=Ra.scrollHeight-a,d=c*n;"border-box"===i&&(d=d+a+o),l=Math.max(d,l);var u=c*r;return"border-box"===i&&(u=u+a+o),[l=Math.min(u,l),c]}(t,e.value||e.placeholder||"x",o,a),s=n[0],i=n[1];m.current!==s&&(m.current=s,e.style.setProperty("height",s+"px","important"),c(s,{rowHeight:i}))}};return L.useLayoutEffect(g),function(e,t){Ba(document.body,"reset",function(n){e.current.form===n.target&&t(n)})}(h,function(){if(!u){var e=h.current.value;requestAnimationFrame(function(){var t=h.current;t&&e!==t.value&&g()})}}),Ba(window,"resize",g),function(e){Ba(document.fonts,"loadingdone",e)}(g),L.createElement("textarea",$n({},d,{onChange:function(e){u||g(),i(e)},ref:p}))},Ha=L.forwardRef(_a);const $a=t.forwardRef((n,r)=>{const[,a]=t.useState(!1),o=u.useAtomValue(Jt).toLowerCase();return t.useLayoutEffect(()=>a(!0),[]),e.jsx(Ha,{dir:o,...n,ref:r})});const Wa=t.createContext({});function Ua(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const Xa="undefined"!=typeof window,Ya=Xa?t.useLayoutEffect:t.useEffect,Za=t.createContext(null);function qa(e,t){-1===e.indexOf(t)&&e.push(t)}function Ga(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ka=(e,t,n)=>n>t?t:n<e?e:n;const Qa={},Ja=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function eo(e){return"object"==typeof e&&null!==e}const to=e=>/^0[^.\s]+$/u.test(e);function no(e){let t;return()=>(void 0===t&&(t=e()),t)}const ro=e=>e,ao=(e,t)=>n=>t(e(n)),oo=(...e)=>e.reduce(ao),so=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r};class io{constructor(){this.subscriptions=[]}add(e){return qa(this.subscriptions,e),()=>Ga(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let a=0;a<r;a++){const r=this.subscriptions[a];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const lo=e=>1e3*e,co=e=>e/1e3;function uo(e,t){return t?e*(1e3/t):0}const ho=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function po(e,t,n,r){if(e===t&&n===r)return ro;const a=t=>function(e,t,n,r,a){let o,s,i=0;do{s=t+(n-t)/2,o=ho(s,r,a)-e,o>0?n=s:t=s}while(Math.abs(o)>1e-7&&++i<12);return s}(t,0,1,e,n);return e=>0===e||1===e?e:ho(a(e),t,r)}const mo=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fo=e=>t=>1-e(1-t),go=po(.33,1.53,.69,.99),vo=fo(go),wo=mo(vo),xo=e=>(e*=2)<1?.5*vo(e):.5*(2-Math.pow(2,-10*(e-1))),yo=e=>1-Math.sin(Math.acos(e)),bo=fo(yo),ko=mo(yo),Co=po(.42,0,1,1),jo=po(0,0,.58,1),No=po(.42,0,.58,1),So=e=>Array.isArray(e)&&"number"==typeof e[0],Mo={linear:ro,easeIn:Co,easeInOut:No,easeOut:jo,circIn:yo,circInOut:ko,circOut:bo,backIn:vo,backInOut:wo,backOut:go,anticipate:xo},Po=e=>{if(So(e)){e.length;const[t,n,r,a]=e;return po(t,n,r,a)}return"string"==typeof e?Mo[e]:e},Lo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function To(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Lo.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function i(t){o.has(t)&&(l.schedule(t),e()),t(s)}const l={schedule:(e,a=!1,s=!1)=>{const i=s&&r?t:n;return a&&o.add(e),i.has(e)||i.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{s=e,r?a=!0:(r=!0,[t,n]=[n,t],t.forEach(i),t.clear(),r=!1,a&&(a=!1,l.process(e)))}};return l}(o),e),{}),{setup:i,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:p,postRender:m}=s,f=()=>{const o=Qa.useManualTiming?a.timestamp:performance.now();n=!1,Qa.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(o-a.timestamp,40),1)),a.timestamp=o,a.isProcessing=!0,i.process(a),l.process(a),c.process(a),d.process(a),u.process(a),h.process(a),p.process(a),m.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(f))};return{schedule:Lo.reduce((t,o)=>{const i=s[o];return t[o]=(t,o=!1,s=!1)=>(n||(n=!0,r=!0,a.isProcessing||e(f)),i.schedule(t,o,s)),t},{}),cancel:e=>{for(let t=0;t<Lo.length;t++)s[Lo[t]].cancel(e)},state:a,steps:s}}const{schedule:Eo,cancel:Ao,state:Ro,steps:zo}=To("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ro,!0);let Io;function Vo(){Io=void 0}const Do={now:()=>(void 0===Io&&Do.set(Ro.isProcessing||Qa.useManualTiming?Ro.timestamp:performance.now()),Io),set:e=>{Io=e,queueMicrotask(Vo)}},Oo=e=>t=>"string"==typeof t&&t.startsWith(e),Bo=Oo("--"),Fo=Oo("var(--"),_o=e=>!!Fo(e)&&Ho.test(e.split("/*")[0].trim()),Ho=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$o={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Wo={...$o,transform:e=>Ka(0,1,e)},Uo={...$o,default:1},Xo=e=>Math.round(1e5*e)/1e5,Yo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Zo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,qo=(e,t)=>n=>Boolean("string"==typeof n&&Zo.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),Go=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[a,o,s,i]=r.match(Yo);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==i?parseFloat(i):1}},Ko={...$o,transform:e=>Math.round((e=>Ka(0,255,e))(e))},Qo={test:qo("rgb","red"),parse:Go("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ko.transform(e)+", "+Ko.transform(t)+", "+Ko.transform(n)+", "+Xo(Wo.transform(r))+")"};const Jo={test:qo("#"),parse:function(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:Qo.transform},es=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ts=es("deg"),ns=es("%"),rs=es("px"),as=es("vh"),os=es("vw"),ss=(()=>({...ns,parse:e=>ns.parse(e)/100,transform:e=>ns.transform(100*e)}))(),is={test:qo("hsl","hue"),parse:Go("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ns.transform(Xo(t))+", "+ns.transform(Xo(n))+", "+Xo(Wo.transform(r))+")"},ls={test:e=>Qo.test(e)||Jo.test(e)||is.test(e),parse:e=>Qo.test(e)?Qo.parse(e):is.test(e)?is.parse(e):Jo.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Qo.transform(e):is.transform(e),getAnimatableNone:e=>{const t=ls.parse(e);return t.alpha=0,ls.transform(t)}},cs=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const ds="number",us="color",hs=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ps(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const s=t.replace(hs,e=>(ls.test(e)?(r.color.push(o),a.push(us),n.push(ls.parse(e))):e.startsWith("var(")?(r.var.push(o),a.push("var"),n.push(e)):(r.number.push(o),a.push(ds),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:a}}function ms(e){return ps(e).values}function fs(e){const{split:t,types:n}=ps(e),r=t.length;return e=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],void 0!==e[o]){const t=n[o];a+=t===ds?Xo(e[o]):t===us?ls.transform(e[o]):e[o]}return a}}const gs=e=>"number"==typeof e?0:ls.test(e)?ls.getAnimatableNone(e):e;const vs={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(Yo)?.length||0)+(e.match(cs)?.length||0)>0},parse:ms,createTransformer:fs,getAnimatableNone:function(e){const t=ms(e);return fs(e)(t.map(gs))}};function ws(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xs(e,t){return n=>n>0?t:e}const ys=(e,t,n)=>e+(t-e)*n,bs=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},ks=[Jo,Qo,is];function Cs(e){const t=(e=>ks.find(t=>t.test(e)))(e);if(!Boolean(t))return!1;let n=t.parse(e);return t===is&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let a=0,o=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;a=ws(i,r,e+1/3),o=ws(i,r,e),s=ws(i,r,e-1/3)}else a=o=s=n;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}const js=(e,t)=>{const n=Cs(e),r=Cs(t);if(!n||!r)return xs(e,t);const a={...n};return e=>(a.red=bs(n.red,r.red,e),a.green=bs(n.green,r.green,e),a.blue=bs(n.blue,r.blue,e),a.alpha=ys(n.alpha,r.alpha,e),Qo.transform(a))},Ns=new Set(["none","hidden"]);function Ss(e,t){return n=>ys(e,t,n)}function Ms(e){return"number"==typeof e?Ss:"string"==typeof e?_o(e)?xs:ls.test(e)?js:Ts:Array.isArray(e)?Ps:"object"==typeof e?ls.test(e)?js:Ls:xs}function Ps(e,t){const n=[...e],r=n.length,a=e.map((e,n)=>Ms(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}}function Ls(e,t){const n={...e,...t},r={};for(const a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=Ms(e[a])(e[a],t[a]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Ts=(e,t)=>{const n=vs.createTransformer(t),r=ps(e),a=ps(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?Ns.has(e)&&!a.values.length||Ns.has(t)&&!r.values.length?function(e,t){return Ns.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):oo(Ps(function(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],s=e.indexes[o][r[o]],i=e.values[s]??0;n[a]=i,r[o]++}return n}(r,a),a.values),n):xs(e,t)};function Es(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return ys(e,t,n);return Ms(e)(e,t)}const As=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>Eo.update(t,e),stop:()=>Ao(t),now:()=>Ro.isProcessing?Ro.timestamp:Do.now()}},Rs=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let t=0;t<a;t++)r+=Math.round(1e4*e(t/(a-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},zs=2e4;function Is(e){let t=0;let n=e.next(t);for(;!n.done&&t<zs;)t+=50,n=e.next(t);return t>=zs?1/0:t}function Vs(e,t,n){const r=Math.max(t-5,0);return uo(n-e(r),t-r)}const Ds=100,Os=10,Bs=1,Fs=0,_s=800,Hs=.3,$s=.3,Ws={granular:.01,default:2},Us={granular:.005,default:.5},Xs=.01,Ys=10,Zs=.05,qs=1,Gs=.001;function Ks({duration:e=_s,bounce:t=Hs,velocity:n=Fs,mass:r=Bs}){let a,o,s=1-t;s=Ka(Zs,qs,s),e=Ka(Xs,Ys,co(e)),s<1?(a=t=>{const r=t*s,a=r*e,o=r-n,i=Js(t,s),l=Math.exp(-a);return Gs-o/i*l},o=t=>{const r=t*s*e,o=r*n+n,i=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Js(Math.pow(t,2),s);return(-a(t)+Gs>0?-1:1)*((o-i)*l)/c}):(a=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const i=function(e,t,n){let r=n;for(let n=1;n<Qs;n++)r-=e(r)/t(r);return r}(a,o,5/e);if(e=lo(e),isNaN(i))return{stiffness:Ds,damping:Os,duration:e};{const t=Math.pow(i,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const Qs=12;function Js(e,t){return e*Math.sqrt(1-t*t)}const ei=["duration","bounce"],ti=["stiffness","damping","mass"];function ni(e,t){return t.some(t=>void 0!==e[t])}function ri(e=$s,t=Hs){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],i={done:!1,value:o},{stiffness:l,damping:c,mass:d,duration:u,velocity:h,isResolvedFromDuration:p}=function(e){let t={velocity:Fs,stiffness:Ds,damping:Os,mass:Bs,isResolvedFromDuration:!1,...e};if(!ni(e,ti)&&ni(e,ei))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),a=r*r,o=2*Ka(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Bs,stiffness:a,damping:o}}else{const n=Ks(e);t={...t,...n,mass:Bs},t.isResolvedFromDuration=!0}return t}({...n,velocity:-co(n.velocity||0)}),m=h||0,f=c/(2*Math.sqrt(l*d)),g=s-o,v=co(Math.sqrt(l/d)),w=Math.abs(g)<5;let x;if(r||(r=w?Ws.granular:Ws.default),a||(a=w?Us.granular:Us.default),f<1){const e=Js(v,f);x=t=>{const n=Math.exp(-f*v*t);return s-n*((m+f*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===f)x=e=>s-Math.exp(-v*e)*(g+(m+v*g)*e);else{const e=v*Math.sqrt(f*f-1);x=t=>{const n=Math.exp(-f*v*t),r=Math.min(e*t,300);return s-n*((m+f*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const y={calculatedDuration:p&&u||null,next:e=>{const t=x(e);if(p)i.done=e>=u;else{let n=0===e?m:0;f<1&&(n=0===e?lo(m):Vs(x,e,t));const o=Math.abs(n)<=r,l=Math.abs(s-t)<=a;i.done=o&&l}return i.value=i.done?s:t,i},toString:()=>{const e=Math.min(Is(y),zs),t=Rs(t=>y.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return y}function ai({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:s,min:i,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},p=e=>void 0===i?l:void 0===l||Math.abs(i-e)<Math.abs(l-e)?i:l;let m=n*t;const f=u+m,g=void 0===s?f:s(f);g!==f&&(m=g-u);const v=e=>-m*Math.exp(-e/r),w=e=>g+v(e),x=e=>{const t=v(e),n=w(e);h.done=Math.abs(t)<=c,h.value=h.done?g:n};let y,b;const k=e=>{(e=>void 0!==i&&e<i||void 0!==l&&e>l)(h.value)&&(y=e,b=ri({keyframes:[h.value,p(h.value)],velocity:Vs(w,e,h.value),damping:a,stiffness:o,restDelta:c,restSpeed:d}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return b||void 0!==y||(t=!0,x(e),k(e)),void 0!==y&&e>=y?b.next(e-y):(!t&&x(e),h)}}}function oi(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;if(t.length,1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=function(e,t,n){const r=[],a=n||Qa.mix||Es,o=e.length-1;for(let n=0;n<o;n++){let o=a(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||ro:t;o=oo(e,o)}r.push(o)}return r}(t,r,a),l=i.length,c=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const a=so(e[r],e[r+1],n);return i[r](a)};return n?t=>c(Ka(e[0],e[o-1],t)):c}function si(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=so(0,t,r);e.push(ys(n,1,a))}}(t,e.length-1),t}function ii({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Po):Po(r),o={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:si(t),e),i=oi(s,t,{ease:Array.isArray(a)?a:(l=t,c=a,l.map(()=>c||No).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(o.value=i(t),o.done=t>=e,o)}}ri.applyToOptions=e=>{const t=function(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Is(r),zs);return{type:"keyframes",ease:e=>r.next(a*e).value/t,duration:co(a)}}(e,100,ri);return e.ease=t.ease,e.duration=lo(t.duration),e.type="keyframes",e};const li=e=>null!==e;function ci(e,{repeat:t,repeatType:n="loop"},r,a=1){const o=e.filter(li),s=a<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==r?r:o[s]}const di={decay:ai,inertia:ai,tween:ii,keyframes:ii,spring:ri};function ui(e){"string"==typeof e.type&&(e.type=di[e.type])}class hi{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const pi=e=>e/100;class mi extends hi{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==Do.now()&&this.tick(Do.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;ui(e);const{type:t=ii,repeat:n=0,repeatDelay:r=0,repeatType:a,velocity:o=0}=e;let{keyframes:s}=e;const i=t||ii;i!==ii&&"number"!=typeof s[0]&&(this.mixKeyframes=oo(pi,Es(s[0],s[1])),s=[0,100]);const l=i({...e,keyframes:s});"mirror"===a&&(this.mirroredGenerator=i({...e,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=Is(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:i}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:u,repeatDelay:h,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let w=this.currentTime,x=n;if(d){const e=Math.min(this.currentTime,r)/s;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,d+1);Boolean(t%2)&&("reverse"===u?(n=1-n,h&&(n-=h/s)):"mirror"===u&&(x=o)),w=Ka(0,1,n)*s}const y=v?{done:!1,value:c[0]}:x.next(w);a&&(y.value=a(y.value));let{done:b}=y;v||null===i||(b=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return k&&p!==ai&&(y.value=ci(c,this.options,f,this.speed)),m&&m(y.value),k&&this.finish(),y}then(e,t){return this.finished.then(e,t)}get duration(){return co(this.calculatedDuration)}get time(){return co(this.currentTime)}set time(e){e=lo(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Do.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=co(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=As,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Do.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}const fi=e=>180*e/Math.PI,gi=e=>{const t=fi(Math.atan2(e[1],e[0]));return wi(t)},vi={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gi,rotateZ:gi,skewX:e=>fi(Math.atan(e[1])),skewY:e=>fi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},wi=e=>((e%=360)<0&&(e+=360),e),xi=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),yi=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),bi={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xi,scaleY:yi,scale:e=>(xi(e)+yi(e))/2,rotateX:e=>wi(fi(Math.atan2(e[6],e[5]))),rotateY:e=>wi(fi(Math.atan2(-e[2],e[0]))),rotateZ:gi,rotate:gi,skewX:e=>fi(Math.atan(e[4])),skewY:e=>fi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ki(e){return e.includes("scale")?1:0}function Ci(e,t){if(!e||"none"===e)return ki(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=bi,a=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=vi,a=t}if(!a)return ki(t);const o=r[t],s=a[1].split(",").map(ji);return"function"==typeof o?o(s):s[o]}function ji(e){return parseFloat(e.trim())}const Ni=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Si=(()=>new Set(Ni))(),Mi=e=>e===$o||e===rs,Pi=new Set(["x","y","z"]),Li=Ni.filter(e=>!Pi.has(e));const Ti={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ci(t,"x"),y:(e,{transform:t})=>Ci(t,"y")};Ti.translateX=Ti.x,Ti.translateY=Ti.y;const Ei=new Set;let Ai=!1,Ri=!1,zi=!1;function Ii(){if(Ri){const e=Array.from(Ei).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return Li.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}Ri=!1,Ai=!1,Ei.forEach(e=>e.complete(zi)),Ei.clear()}function Vi(){Ei.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ri=!0)})}class Di{constructor(e,t,n,r,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Ei.add(this),Ai||(Ai=!0,Eo.read(Vi),Eo.resolveKeyframes(Ii))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const a=r?.get(),o=e[e.length-1];if(void 0!==a)e[0]=a;else if(n&&t){const r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===a&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ei.delete(this)}cancel(){"scheduled"===this.state&&(Ei.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const Oi=no(()=>void 0!==window.ScrollTimeline),Bi={};function Fi(e,t){const n=no(e);return()=>Bi[t]??n()}const _i=Fi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),Hi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$i={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hi([0,.65,.55,1]),circOut:Hi([.55,0,1,.45]),backIn:Hi([.31,.01,.66,-.59]),backOut:Hi([.33,1.53,.69,.99])};function Wi(e,t){return e?"function"==typeof e?_i()?Rs(e,t):"ease-out":So(e)?Hi(e):Array.isArray(e)?e.map(e=>Wi(e,t)||$i.easeOut):$i[e]:void 0}function Ui(e,t,n,{delay:r=0,duration:a=300,repeat:o=0,repeatType:s="loop",ease:i="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const u=Wi(i,a);Array.isArray(u)&&(d.easing=u);const h={delay:r,duration:a,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};c&&(h.pseudoElement=c);return e.animate(d,h)}function Xi(e){return"function"==typeof e&&"applyToOptions"in e}class Yi extends hi{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:i}=e;this.isPseudoElement=Boolean(a),this.allowFlatten=o,this.options=e,e.type;const l=function({type:e,...t}){return Xi(e)&&_i()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=Ui(t,n,r,l,a),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const e=ci(r,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}i?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return co(Number(e))}get time(){return co(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=lo(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Oi()?(this.animation.timeline=e,ro):t(this)}}const Zi={anticipate:xo,backInOut:wo,circInOut:ko};function qi(e){"string"==typeof e.ease&&e.ease in Zi&&(e.ease=Zi[e.ease])}class Gi extends Yi{constructor(e){qi(e),ui(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:a,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const s=new mi({...o,autoplay:!1}),i=lo(this.finishedTime??this.time);t.setWithVelocity(s.sample(i-10).value,s.sample(i).value,10),s.stop()}}const Ki=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!vs.test(e)&&"0"!==e||e.startsWith("url(")));const Qi=new Set(["opacity","clipPath","filter","transform"]),Ji=no(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class el extends hi{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:i,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Do.now();const u={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:a,repeatType:o,name:i,motionValue:l,element:c,...d},h=c?.KeyframeResolver||Di;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,u,!n),i,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:i,isHandoff:l,onUpdate:c}=n;this.resolvedAt=Do.now(),function(e,t,n,r){const a=e[0];if(null===a)return!1;if("display"===t||"visibility"===t)return!0;const o=e[e.length-1],s=Ki(a,t),i=Ki(o,t);return!(!s||!i)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||Xi(n))&&r)}(e,a,o,s)||(!Qa.instantAnimations&&i||c?.(ci(e,n,t)),e[0]=e[e.length-1],n.duration=0,n.repeat=0);const d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},u=!l&&function(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:o,type:s}=e,i=t?.owner?.current;if(!(i instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return Ji()&&n&&Qi.has(n)&&("transform"!==n||!c)&&!l&&!r&&"mirror"!==a&&0!==o&&"inertia"!==s}(d)?new Gi({...d,element:d.motionValue.owner.current}):new mi(d);u.finished.then(()=>this.notifyFinished()).catch(ro),this.pendingTimeline&&(this.stopTimeline=u.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=u}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),zi=!0,Vi(),Ii(),zi=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const tl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nl(e,t,n=1){const[r,a]=function(e){const t=tl.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const e=o.trim();return Ja(e)?parseFloat(e):e}return _o(a)?nl(a,t,n+1):a}function rl(e,t){return e?.[t]??e?.default??e}const al=new Set(["width","height","top","left","right","bottom",...Ni]),ol=e=>t=>t.test(e),sl=[$o,rs,ns,ts,os,as,{test:e=>"auto"===e,parse:e=>e}],il=e=>sl.find(ol(e));function ll(e){return"number"==typeof e?0===e:null===e||("none"===e||"0"===e||to(e))}const cl=new Set(["brightness","contrast","saturate","opacity"]);function dl(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Yo)||[];if(!r)return e;const a=n.replace(r,"");let o=cl.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const ul=/\b([a-z-]*)\(.*?\)/gu,hl={...vs,getAnimatableNone:e=>{const t=e.match(ul);return t?t.map(dl).join(" "):e}},pl={...$o,transform:Math.round},ml={borderWidth:rs,borderTopWidth:rs,borderRightWidth:rs,borderBottomWidth:rs,borderLeftWidth:rs,borderRadius:rs,radius:rs,borderTopLeftRadius:rs,borderTopRightRadius:rs,borderBottomRightRadius:rs,borderBottomLeftRadius:rs,width:rs,maxWidth:rs,height:rs,maxHeight:rs,top:rs,right:rs,bottom:rs,left:rs,padding:rs,paddingTop:rs,paddingRight:rs,paddingBottom:rs,paddingLeft:rs,margin:rs,marginTop:rs,marginRight:rs,marginBottom:rs,marginLeft:rs,backgroundPositionX:rs,backgroundPositionY:rs,...{rotate:ts,rotateX:ts,rotateY:ts,rotateZ:ts,scale:Uo,scaleX:Uo,scaleY:Uo,scaleZ:Uo,skew:ts,skewX:ts,skewY:ts,distance:rs,translateX:rs,translateY:rs,translateZ:rs,x:rs,y:rs,z:rs,perspective:rs,transformPerspective:rs,opacity:Wo,originX:ss,originY:ss,originZ:rs},zIndex:pl,fillOpacity:Wo,strokeOpacity:Wo,numOctaves:pl},fl={...ml,color:ls,backgroundColor:ls,outlineColor:ls,fill:ls,stroke:ls,borderColor:ls,borderTopColor:ls,borderRightColor:ls,borderBottomColor:ls,borderLeftColor:ls,filter:hl,WebkitFilter:hl},gl=e=>fl[e];function vl(e,t){let n=gl(e);return n!==hl&&(n=vs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const wl=new Set(["auto","none","0"]);class xl extends Di{constructor(e,t,n,r,a){super(e,t,n,r,a,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),_o(r))){const a=nl(r,t.current);void 0!==a&&(e[n]=a),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!al.has(n)||2!==e.length)return;const[r,a]=e,o=il(r),s=il(a);if(o!==s)if(Mi(o)&&Mi(s))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else Ti[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||ll(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,a=0;for(;a<e.length&&!r;){const t=e[a];"string"==typeof t&&!wl.has(t)&&ps(t).values.length&&(r=e[a]),a++}if(r&&n)for(const a of t)e[a]=vl(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ti[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const a=n.length-1,o=n[a];n[a]=Ti[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}const yl=(e,t)=>t&&"number"==typeof e?t.transform(e):e;function bl(e){return eo(e)&&"offsetHeight"in e}class kl{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=Do.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const e of this.dependents)e.dirty();t&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Do.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new io);const n=this.events[e].add(t);return"change"===e?()=>{n(),Eo.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Do.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return uo(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Cl(e,t){return new kl(e,t)}const{schedule:jl}=To(queueMicrotask,!1),Nl={x:!1,y:!1};function Sl(){return Nl.x||Nl.y}function Ml(e,t){const n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document;const r=n?.[e]??t.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Pl(e){return!("touch"===e.pointerType||Sl())}const Ll=(e,t)=>!!t&&(e===t||Ll(e,t.parentElement)),Tl=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,El=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const Al=new WeakSet;function Rl(e){return t=>{"Enter"===t.key&&e(t)}}function zl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Il(e){return Tl(e)&&!Sl()}function Vl(e,t,n={}){const[r,a,o]=Ml(e,n),s=e=>{const r=e.currentTarget;if(!Il(e))return;Al.add(r);const o=t(r,e),s=(e,t)=>{window.removeEventListener("pointerup",i),window.removeEventListener("pointercancel",l),Al.has(r)&&Al.delete(r),Il(e)&&"function"==typeof o&&o(e,{success:t})},i=e=>{s(e,r===window||r===document||n.useGlobalTarget||Ll(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",i,a),window.addEventListener("pointercancel",l,a)};return r.forEach(e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,a),bl(e)&&(e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=Rl(()=>{if(Al.has(n))return;zl(n,"down");const e=Rl(()=>{zl(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>zl(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,a)),t=e,El.has(t.tagName)||-1!==t.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}function Dl(e){return eo(e)&&"ownerSVGElement"in e}const Ol=e=>Boolean(e&&e.getVelocity),Bl=[...sl,ls,vs],Fl=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class _l extends L.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=t.offsetParent,n=bl(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Hl({children:n,isPresent:r,anchorX:a,root:o}){const s=t.useId(),i=t.useRef(null),l=t.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=t.useContext(Fl);return t.useInsertionEffect(()=>{const{width:e,height:t,top:n,left:d,right:u}=l.current;if(r||!i.current||!e||!t)return;const h="left"===a?`left: ${d}`:`right: ${u}`;i.current.dataset.motionPopId=s;const p=document.createElement("style");c&&(p.nonce=c);const m=o??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`\n [data-motion-pop-id="${s}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n ${h}px !important;\n top: ${n}px !important;\n }\n `),()=>{m.removeChild(p),m.contains(p)&&m.removeChild(p)}},[r]),e.jsx(_l,{isPresent:r,childRef:i,sizeRef:l,children:L.cloneElement(n,{ref:i})})}const $l=({children:n,initial:r,isPresent:a,onExitComplete:o,custom:s,presenceAffectsLayout:i,mode:l,anchorX:c,root:d})=>{const u=Ua(Wl),h=t.useId();let p=!0,m=t.useMemo(()=>(p=!1,{id:h,initial:r,isPresent:a,custom:s,onExitComplete:e=>{u.set(e,!0);for(const e of u.values())if(!e)return;o&&o()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[a,u,o]);return i&&p&&(m={...m}),t.useMemo(()=>{u.forEach((e,t)=>u.set(t,!1))},[a]),L.useEffect(()=>{!a&&!u.size&&o&&o()},[a]),"popLayout"===l&&(n=e.jsx(Hl,{isPresent:a,anchorX:c,root:d,children:n})),e.jsx(Za.Provider,{value:m,children:n})};function Wl(){return new Map}function Ul(e=!0){const n=t.useContext(Za);if(null===n)return[!0,null];const{isPresent:r,onExitComplete:a,register:o}=n,s=t.useId();t.useEffect(()=>{if(e)return o(s)},[e]);const i=t.useCallback(()=>e&&a&&a(s),[s,a,e]);return!r&&a?[!1,i]:[!0]}const Xl=e=>e.key||"";function Yl(e){const n=[];return t.Children.forEach(e,e=>{t.isValidElement(e)&&n.push(e)}),n}const Zl=({children:n,custom:r,initial:a=!0,onExitComplete:o,presenceAffectsLayout:s=!0,mode:i="sync",propagate:l=!1,anchorX:c="left",root:d})=>{const[u,h]=Ul(l),p=t.useMemo(()=>Yl(n),[n]),m=l&&!u?[]:p.map(Xl),f=t.useRef(!0),g=t.useRef(p),v=Ua(()=>new Map),[w,x]=t.useState(p),[y,b]=t.useState(p);Ya(()=>{f.current=!1,g.current=p;for(let e=0;e<y.length;e++){const t=Xl(y[e]);m.includes(t)?v.delete(t):!0!==v.get(t)&&v.set(t,!1)}},[y,m.length,m.join("-")]);const k=[];if(p!==w){let e=[...p];for(let t=0;t<y.length;t++){const n=y[t],r=Xl(n);m.includes(r)||(e.splice(t,0,n),k.push(n))}return"wait"===i&&k.length&&(e=k),b(Yl(e)),x(p),null}const{forceRender:C}=t.useContext(Wa);return e.jsx(e.Fragment,{children:y.map(t=>{const n=Xl(t),w=!(l&&!u)&&(p===y||m.includes(n));return e.jsx($l,{isPresent:w,initial:!(f.current&&!a)&&void 0,custom:r,presenceAffectsLayout:s,mode:i,root:d,onExitComplete:w?void 0:()=>{if(!v.has(n))return;v.set(n,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(C?.(),b(g.current),l&&h?.(),o&&o())},anchorX:c,children:t},n)})})},ql=t.createContext({strict:!1}),Gl={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Kl={};for(const e in Gl)Kl[e]={isEnabled:t=>Gl[e].some(e=>!!t[e])};const Ql=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Jl(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ql.has(e)}let ec=e=>!Jl(e);try{"function"==typeof(tc=require("@emotion/is-prop-valid").default)&&(ec=e=>e.startsWith("on")?!Jl(e):tc(e))}catch{}var tc;const nc=t.createContext({});function rc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function ac(e){return"string"==typeof e||Array.isArray(e)}const oc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],sc=["initial",...oc];function ic(e){return rc(e.animate)||sc.some(t=>ac(e[t]))}function lc(e){return Boolean(ic(e)||e.variants)}function cc(e){const{initial:n,animate:r}=function(e,t){if(ic(e)){const{initial:t,animate:n}=e;return{initial:!1===t||ac(t)?t:void 0,animate:ac(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(nc));return t.useMemo(()=>({initial:n,animate:r}),[dc(n),dc(r)])}function dc(e){return Array.isArray(e)?e.join(" "):e}const uc={};function hc(e,{layout:t,layoutId:n}){return Si.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!uc[e]||"opacity"===e)}const pc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mc=Ni.length;function fc(e,t,n){const{style:r,vars:a,transformOrigin:o}=e;let s=!1,i=!1;for(const e in t){const n=t[e];if(Si.has(e))s=!0;else if(Bo(e))a[e]=n;else{const t=yl(n,ml[e]);e.startsWith("origin")?(i=!0,o[e]=t):r[e]=t}}if(t.transform||(s||n?r.transform=function(e,t,n){let r="",a=!0;for(let o=0;o<mc;o++){const s=Ni[o],i=e[s];if(void 0===i)continue;let l=!0;if(l="number"==typeof i?i===(s.startsWith("scale")?1:0):0===parseFloat(i),!l||n){const e=yl(i,ml[s]);l||(a=!1,r+=`${pc[s]||s}(${e}) `),n&&(t[s]=e)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),i){const{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}const gc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vc(e,t,n){for(const r in t)Ol(t[r])||hc(r,n)||(e[r]=t[r])}function wc(e,n){const r={};return vc(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},n){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return fc(t,n,e),Object.assign({},t.vars,t.style)},[n])}(e,n)),r}function xc(e,t){const n={},r=wc(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const yc={offset:"stroke-dashoffset",array:"stroke-dasharray"},bc={offset:"strokeDashoffset",array:"strokeDasharray"};function kc(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:o=1,pathOffset:s=0,...i},l,c,d){if(fc(e,i,c),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:u,style:h}=e;u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete u.transformBox),void 0!==t&&(u.x=t),void 0!==n&&(u.y=n),void 0!==r&&(u.scale=r),void 0!==a&&function(e,t,n=1,r=0,a=!0){e.pathLength=1;const o=a?yc:bc;e[o.offset]=rs.transform(-r);const s=rs.transform(t),i=rs.transform(n);e[o.array]=`${s} ${i}`}(u,a,o,s,!1)}const Cc=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),jc=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Nc(e,n,r,a){const o=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return kc(t,n,jc(a),e.transformTemplate,e.style),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};vc(t,e.style,e),o.style={...t,...o.style}}return o}const Sc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Mc(e){return"string"==typeof e&&!e.includes("-")&&!!(Sc.indexOf(e)>-1||/[A-Z]/u.test(e))}function Pc(e,n,r,{latestValues:a},o,s=!1){const i=(Mc(e)?Nc:xc)(n,a,o,e),l=function(e,t,n){const r={};for(const a in e)"values"===a&&"object"==typeof e.values||(ec(a)||!0===n&&Jl(a)||!t&&!Jl(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(n,"string"==typeof e,s),c=e!==t.Fragment?{...l,...i,ref:r}:{},{children:d}=n,u=t.useMemo(()=>Ol(d)?d.get():d,[d]);return t.createElement(e,{...c,children:u})}function Lc(e){const t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Tc(e,t,n,r){if("function"==typeof t){const[a,o]=Lc(r);t=t(void 0!==n?n:e.custom,a,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[a,o]=Lc(r);t=t(void 0!==n?n:e.custom,a,o)}return t}function Ec(e){return Ol(e)?e.get():e}function Ac(e,t,n,r){const a={},o=r(e,{});for(const e in o)a[e]=Ec(o[e]);let{initial:s,animate:i}=e;const l=ic(e),c=lc(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===i&&(i=t.animate));let d=!!n&&!1===n.initial;d=d||!1===s;const u=d?i:s;if(u&&"boolean"!=typeof u&&!rc(u)){const t=Array.isArray(u)?u:[u];for(let n=0;n<t.length;n++){const r=Tc(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];if(Array.isArray(t)){t=t[d?t.length-1:0]}null!==t&&(a[e]=t)}for(const t in e)a[t]=e[t]}}}return a}const Rc=e=>(n,r)=>{const a=t.useContext(nc),o=t.useContext(Za),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:Ac(n,r,a,e),renderState:t()}}(e,n,a,o);return r?s():Ua(s)};function zc(e,t,n){const{style:r}=e,a={};for(const o in r)(Ol(r[o])||t.style&&Ol(t.style[o])||hc(o,e)||void 0!==n?.getValue(o)?.liveStyle)&&(a[o]=r[o]);return a}const Ic=Rc({scrapeMotionValuesFromProps:zc,createRenderState:gc});function Vc(e,t,n){const r=zc(e,t,n);for(const n in e)if(Ol(e[n])||Ol(t[n])){r[-1!==Ni.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}const Dc=Rc({scrapeMotionValuesFromProps:Vc,createRenderState:Cc}),Oc=Symbol.for("motionComponentSymbol");function Bc(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Fc(e,n,r){return t.useCallback(t=>{t&&e.onMount&&e.onMount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):Bc(r)&&(r.current=t))},[n])}const _c=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Hc="data-"+_c("framerAppearId"),$c=t.createContext({});function Wc(e,n,r,a,o){const{visualElement:s}=t.useContext(nc),i=t.useContext(ql),l=t.useContext(Za),c=t.useContext(Fl).reducedMotion,d=t.useRef(null);a=a||i.renderer,!d.current&&a&&(d.current=a(e,{visualState:n,parent:s,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));const u=d.current,h=t.useContext($c);!u||u.projection||!o||"html"!==u.type&&"svg"!==u.type||function(e,t,n,r){const{layoutId:a,layout:o,drag:s,dragConstraints:i,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Uc(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:Boolean(s)||i&&Bc(i),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c})}(d.current,r,o,h);const p=t.useRef(!1);t.useInsertionEffect(()=>{u&&p.current&&u.update(r,l)});const m=r[Hc],f=t.useRef(Boolean(m)&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Ya(()=>{u&&(p.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),f.current&&u.animationState&&u.animationState.animateChanges())}),t.useEffect(()=>{u&&(!f.current&&u.animationState&&u.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),f.current=!1))}),u}function Uc(e){if(e)return!1!==e.options.allowProjection?e.projection:Uc(e.parent)}function Xc(n,{forwardMotionProps:r=!1}={},a,o){a&&function(e){for(const t in e)Kl[t]={...Kl[t],...e[t]}}(a);const s=Mc(n)?Dc:Ic;function i(a,i){let l;const c={...t.useContext(Fl),...a,layoutId:Yc(a)},{isStatic:d}=c,u=cc(a),h=s(a,d);if(!d&&Xa){t.useContext(ql).strict;const e=function(e){const{drag:t,layout:n}=Kl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(c);l=e.MeasureLayout,u.visualElement=Wc(n,h,c,o,e.ProjectionNode)}return e.jsxs(nc.Provider,{value:u,children:[l&&u.visualElement?e.jsx(l,{visualElement:u.visualElement,...c}):null,Pc(n,a,Fc(h,u.visualElement,i),h,d,r)]})}i.displayName=`motion.${"string"==typeof n?n:`create(${n.displayName??n.name??""})`}`;const l=t.forwardRef(i);return l[Oc]=n,l}function Yc({layoutId:e}){const n=t.useContext(Wa).id;return n&&void 0!==e?n+"-"+e:e}function Zc(e,t){if("undefined"==typeof Proxy)return Xc;const n=new Map,r=(n,r)=>Xc(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(a,o)=>"create"===o?r:(n.has(o)||n.set(o,Xc(o,void 0,e,t)),n.get(o))})}function qc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Gc(e){return void 0===e||1===e}function Kc({scale:e,scaleX:t,scaleY:n}){return!Gc(e)||!Gc(t)||!Gc(n)}function Qc(e){return Kc(e)||Jc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Jc(e){return ed(e.x)||ed(e.y)}function ed(e){return e&&"0%"!==e}function td(e,t,n){return n+t*(e-n)}function nd(e,t,n,r,a){return void 0!==a&&(e=td(e,a,r)),td(e,n,r)+t}function rd(e,t=0,n=1,r,a){e.min=nd(e.min,t,n,r,a),e.max=nd(e.max,t,n,r,a)}function ad(e,{x:t,y:n}){rd(e.x,t.translate,t.scale,t.originPoint),rd(e.y,n.translate,n.scale,n.originPoint)}const od=.999999999999,sd=1.0000000000001;function id(e,t){e.min=e.min+t,e.max=e.max+t}function ld(e,t,n,r,a=.5){rd(e,t,n,ys(e.min,e.max,a),r)}function cd(e,t){ld(e.x,t.x,t.scaleX,t.scale,t.originX),ld(e.y,t.y,t.scaleY,t.scale,t.originY)}function dd(e,t){return qc(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const ud=()=>({x:{min:0,max:0},y:{min:0,max:0}}),hd={current:null},pd={current:!1};const md=new WeakMap;const fd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class gd{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Di,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=Do.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Eo.render(this.render,!1,!0))};const{latestValues:i,renderState:l}=o;this.latestValues=i,this.baseTarget={...i},this.initialValues=t.initial?{...i}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(a),this.isControllingVariants=ic(t),this.isVariantNode=lc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==i[e]&&Ol(t)&&t.set(i[e],!1)}}mount(e){this.current=e,md.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),pd.current||function(){if(pd.current=!0,Xa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hd.current=e.matches;e.addEventListener("change",t),t()}else hd.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||hd.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ao(this.notifyUpdate),Ao(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=Si.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Eo.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=t.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),a(),o&&o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Kl){const t=Kl[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<fd.length;t++){const n=fd[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const a=t[r],o=n[r];if(Ol(a))e.addValue(r,a);else if(Ol(o))e.addValue(r,Cl(a,{owner:e}));else if(o!==a)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(a):t.hasAnimated||t.set(a)}else{const t=e.getStaticValue(r);e.addValue(r,Cl(void 0!==t?t:a,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Cl(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(Ja(n)||to(n))?n=parseFloat(n):!(e=>Bl.find(ol(e)))(n)&&vs.test(t)&&(n=vl(e,t)),this.setBaseTarget(e,Ol(n)?n.get():n)),Ol(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if("string"==typeof t||"object"==typeof t){const r=Tc(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&void 0!==n)return n;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||Ol(r)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new io),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){jl.render(this.render)}}class vd extends gd{constructor(){super(...arguments),this.KeyframeResolver=xl}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ol(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function wd(e,{style:t,vars:n},r,a){const o=e.style;let s;for(s in t)o[s]=t[s];for(s in a?.applyProjectionStyles(o,r),n)o.setProperty(s,n[s])}class xd extends vd{constructor(){super(...arguments),this.type="html",this.renderInstance=wd}readValueFromInstance(e,t){if(Si.has(t))return this.projection?.isProjecting?ki(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ci(n,t)})(e,t);{const r=(n=e,window.getComputedStyle(n)),a=(Bo(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof a?a.trim():a}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return dd(e,t)}build(e,t,n){fc(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return zc(e,t,n)}}const yd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class bd extends vd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ud}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Si.has(t)){const e=gl(t);return e&&e.default||0}return t=yd.has(t)?t:_c(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Vc(e,t,n)}build(e,t,n){kc(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){wd(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(yd.has(n)?n:_c(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=jc(e.tagName),super.mount(e)}}const kd=(e,n)=>Mc(e)?new bd(n):new xd(n,{allowProjection:e!==t.Fragment});function Cd(e,t,n){const r=e.getProps();return Tc(r,t,void 0!==n?n:r.custom,e)}const jd=e=>Array.isArray(e);function Nd(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Cl(n))}function Sd(e){return jd(e)?e[e.length-1]||0:e}function Md(e,t){const n=e.getValue("willChange");if(r=n,Boolean(Ol(r)&&r.add))return n.add(t);if(!n&&Qa.WillChange){const n=new Qa.WillChange("auto");e.addValue("willChange",n),n.add(t)}var r}function Pd(e){return e.props[Hc]}const Ld=e=>null!==e;const Td={type:"spring",stiffness:500,damping:25,restSpeed:10},Ed={type:"keyframes",duration:.8},Ad={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Rd=(e,{keyframes:t})=>t.length>2?Ed:Si.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Td:Ad;const zd=(e,t,n,r={},a,o)=>s=>{const i=rl(r,e)||{},l=i.delay||r.delay||0;let{elapsed:c=0}=r;c-=lo(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-c,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:o?void 0:a};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:o,repeatType:s,repeatDelay:i,from:l,elapsed:c,...d}){return!!Object.keys(d).length})(i)||Object.assign(d,Rd(e,d)),d.duration&&(d.duration=lo(d.duration)),d.repeatDelay&&(d.repeatDelay=lo(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let u=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(d.duration=0,0===d.delay&&(u=!0)),(Qa.instantAnimations||Qa.skipAnimations)&&(u=!0,d.duration=0,d.delay=0),d.allowFlatten=!i.type&&!i.ease,u&&!o&&void 0!==t.get()){const e=function(e,{repeat:t,repeatType:n="loop"}){const r=e.filter(Ld);return r[t&&"loop"!==n&&t%2==1?0:r.length-1]}(d.keyframes,i);if(void 0!==e)return void Eo.update(()=>{d.onUpdate(e),d.onComplete()})}return i.isSync?new mi(d):new el(d)};function Id({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Vd(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...i}=t;r&&(o=r);const l=[],c=a&&e.animationState&&e.animationState.getState()[a];for(const t in i){const r=e.getValue(t,e.latestValues[t]??null),a=i[t];if(void 0===a||c&&Id(c,t))continue;const s={delay:n,...rl(o||{},t)},d=r.get();if(void 0!==d&&!r.isAnimating&&!Array.isArray(a)&&a===d&&!s.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){const n=Pd(e);if(n){const e=window.MotionHandoffAnimation(n,t,Eo);null!==e&&(s.startTime=e,u=!0)}}Md(e,t),r.start(zd(t,r,a,e.shouldReduceMotion&&al.has(t)?{type:!1}:s,e,u));const h=r.animation;h&&l.push(h)}return s&&Promise.all(l).then(()=>{Eo.update(()=>{s&&function(e,t){const n=Cd(e,t);let{transitionEnd:r={},transition:a={},...o}=n||{};o={...o,...r};for(const t in o)Nd(e,t,Sd(o[t]))}(e,s)})}),l}function Dd(e,t,n={}){const r=Cd(e,t,"exit"===n.type?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const o=r?()=>Promise.all(Vd(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:i}=a;return function(e,t,n=0,r=0,a=0,o=1,s){const i=[],l=e.variantChildren.size,c=(l-1)*a,d="function"==typeof r,u=d?e=>r(e,l):1===o?(e=0)=>e*a:(e=0)=>c-e*a;return Array.from(e.variantChildren).sort(Od).forEach((e,a)=>{e.notify("AnimationStart",t),i.push(Dd(e,t,{...s,delay:n+(d?0:r)+u(a)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(i)}(e,t,r,o,s,i,n)}:()=>Promise.resolve(),{when:i}=a;if(i){const[e,t]="beforeChildren"===i?[o,s]:[s,o];return e().then(()=>t())}return Promise.all([o(),s(n.delay)])}function Od(e,t){return e.sortNodePosition(t)}function Bd(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Fd=sc.length;function _d(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&_d(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Fd;n++){const r=sc[n],a=e.props[r];(ac(a)||!1===a)&&(t[r]=a)}return t}const Hd=[...oc].reverse(),$d=oc.length;function Wd(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const a=t.map(t=>Dd(e,t,n));r=Promise.all(a)}else if("string"==typeof t)r=Dd(e,t,n);else{const a="function"==typeof t?Cd(e,t,n.custom):t;r=Promise.all(Vd(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}function Ud(e){let t=Wd(e),n=Zd(),r=!0;const a=t=>(n,r)=>{const a=Cd(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(a){const{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function o(o){const{props:s}=e,i=_d(e.parent)||{},l=[],c=new Set;let d={},u=1/0;for(let t=0;t<$d;t++){const h=Hd[t],p=n[h],m=void 0!==s[h]?s[h]:i[h],f=ac(m),g=h===o?p.isActive:null;!1===g&&(u=t);let v=m===i[h]&&m!==s[h]&&f;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...d},!p.isActive&&null===g||!m&&!p.prevProp||rc(m)||"boolean"==typeof m)continue;const w=Xd(p.prevProp,m);let x=w||h===o&&p.isActive&&!v&&f||t>u&&f,y=!1;const b=Array.isArray(m)?m:[m];let k=b.reduce(a(h),{});!1===g&&(k={});const{prevResolvedValues:C={}}=p,j={...C,...k},N=t=>{x=!0,c.has(t)&&(y=!0,c.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in j){const t=k[e],n=C[e];if(d.hasOwnProperty(e))continue;let r=!1;r=jd(t)&&jd(n)?!Bd(t,n):t!==n,r?null!=t?N(e):c.add(e):void 0!==t&&c.has(e)?N(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=k,p.isActive&&(d={...d,...k}),r&&e.blockInitialAnimation&&(x=!1);x&&(!(v&&w)||y)&&l.push(...b.map(e=>({animation:e,options:{type:h}})))}if(c.size){const t={};if("boolean"!=typeof s.initial){const n=Cd(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{const r=e.getBaseTarget(n),a=e.getValue(n);a&&(a.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let h=Boolean(l.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(h=!1),r=!1,h?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;const a=o(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Zd(),r=!0}}}function Xd(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Bd(t,e)}function Yd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Zd(){return{animate:Yd(!0),whileInView:Yd(),whileHover:Yd(),whileTap:Yd(),whileDrag:Yd(),whileFocus:Yd(),exit:Yd()}}class qd{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Gd=0;const Kd={animation:{Feature:class extends qd{constructor(e){super(e),e.animationState||(e.animationState=Ud(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();rc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends qd{constructor(){super(...arguments),this.id=Gd++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Qd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Jd(e){return{point:{x:e.pageX,y:e.pageY}}}function eu(e,t,n,r){return Qd(e,t,(e=>t=>Tl(t)&&e(t,Jd(t)))(n),r)}function tu(e){return e.max-e.min}function nu(e,t,n,r=.5){e.origin=r,e.originPoint=ys(t.min,t.max,e.origin),e.scale=tu(n)/tu(t),e.translate=ys(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function ru(e,t,n,r){nu(e.x,t.x,n.x,r?r.originX:void 0),nu(e.y,t.y,n.y,r?r.originY:void 0)}function au(e,t,n){e.min=n.min+t.min,e.max=e.min+tu(t)}function ou(e,t,n){e.min=t.min-n.min,e.max=e.min+tu(t)}function su(e,t,n){ou(e.x,t.x,n.x),ou(e.y,t.y,n.y)}function iu(e){return[e("x"),e("y")]}const lu=({current:e})=>e?e.ownerDocument.defaultView:null,cu=(e,t)=>Math.abs(e-t);class du{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=pu(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=cu(e.x,t.x),r=cu(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:r}=e,{timestamp:a}=Ro;this.history.push({...r,timestamp:a});const{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=uu(t,this.transformPagePoint),Eo.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:a}=this.handlers;if(this.dragSnapToOrigin&&a&&a(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=pu("pointercancel"===e.type?this.lastMoveEventInfo:uu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Tl(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const s=uu(Jd(e),this.transformPagePoint),{point:i}=s,{timestamp:l}=Ro;this.history=[{...i,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,pu(s,this.history)),this.removeListeners=oo(eu(this.contextWindow,"pointermove",this.handlePointerMove),eu(this.contextWindow,"pointerup",this.handlePointerUp),eu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ao(this.updatePoint)}}function uu(e,t){return t?{point:t(e.point)}:e}function hu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pu({point:e},t){return{point:e,delta:hu(e,fu(t)),offset:hu(e,mu(t)),velocity:gu(t,.1)}}function mu(e){return e[0]}function fu(e){return e[e.length-1]}function gu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=fu(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>lo(t)));)n--;if(!r)return{x:0,y:0};const o=co(a.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const s={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function vu(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function wu(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const xu=.35;function yu(e,t,n){return{min:bu(e,t),max:bu(e,n)}}function bu(e,t){return"number"==typeof e?e:e[t]||0}const ku=new WeakMap;class Cu{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:a}=this.getProps();this.panSession=new du(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Jd(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:a}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?Nl[o]?null:(Nl[o]=!0,()=>{Nl[o]=!1}):Nl.x||Nl.y?null:(Nl.x=Nl.y=!0,()=>{Nl.x=Nl.y=!1}),!this.openDragLock))return;var o;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iu(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ns.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=tu(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),a&&Eo.postRender(()=>a(e,t)),Md(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:a,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&a&&a(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>iu(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,distanceThreshold:n,contextWindow:lu(this.visualElement)})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!r||!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&Eo.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!ju(e,r,this.currentDirection))return;const a=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?ys(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?ys(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),a.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Bc(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:a}){return{x:vu(e.x,n,a),y:vu(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=xu){return!1===e?e=0:!0===e&&(e=xu),{x:yu(e,"left","right"),y:yu(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&iu(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Bc(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const a=function(e,t,n){const r=dd(e,n),{scroll:a}=t;return a&&(id(r.x,a.offset.x),id(r.y,a.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:wu(e.x,t.x),y:wu(e.y,t.y)}}(r.layout.layoutBox,a);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=qc(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),i=this.constraints||{},l=iu(s=>{if(!ju(s,t,this.currentDirection))return;let l=i&&i[s]||{};o&&(l={min:0,max:0});const c=r?200:1e6,d=r?40:1e7,u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(s,u)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Md(this.visualElement,e),n.start(zd(e,n,0,t,this.visualElement,!1))}stopAnimation(){iu(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){iu(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){iu(t=>{const{drag:n}=this.getProps();if(!ju(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,a=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[t];a.set(e[t]-ys(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Bc(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};iu(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=tu(e),a=tu(t);return a>r?n=so(t.min,t.max-r,e.min):r>a&&(n=so(e.min,e.max-a,t.min)),Ka(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),iu(t=>{if(!ju(t,e,null))return;const n=this.getAxisMotionValue(t),{min:a,max:o}=this.constraints[t];n.set(ys(a,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;ku.set(this.visualElement,this);const e=eu(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();Bc(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Eo.read(t);const a=Qd(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(iu(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),e(),r(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:o=xu,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function ju(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Nu=e=>(t,n)=>{e&&Eo.postRender(()=>e(t,n))};const Su={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pu={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rs.test(e))return e;e=parseFloat(e)}return`${Mu(e,t.target.x)}% ${Mu(e,t.target.y)}%`}},Lu={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=vs.parse(e);if(a.length>5)return r;const o=vs.createTransformer(e),s="number"!=typeof a[0]?1:0,i=n.x.scale*t.x,l=n.y.scale*t.y;a[0+s]/=i,a[1+s]/=l;const c=ys(i,l,.5);return"number"==typeof a[2+s]&&(a[2+s]/=c),"number"==typeof a[3+s]&&(a[3+s]/=c),o(a)}};let Tu=!1;class Eu extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:a}=e;!function(e){for(const t in e)uc[t]=e[t],Bo(t)&&(uc[t].isCSSVariable=!0)}(Ru),a&&(t.group&&t.group.add(a),n&&n.register&&r&&n.register(a),Tu&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Su.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:a}=this.props,{projection:o}=n;return o?(o.isPresent=a,Tu=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||Eo.postRender(()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),jl.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Au(n){const[r,a]=Ul(),o=t.useContext(Wa);return e.jsx(Eu,{...n,layoutGroup:o,switchLayoutGroup:t.useContext($c),isPresent:r,safeToRemove:a})}const Ru={borderRadius:{...Pu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pu,borderTopRightRadius:Pu,borderBottomLeftRadius:Pu,borderBottomRightRadius:Pu,boxShadow:Lu};const zu=(e,t)=>e.depth-t.depth;class Iu{constructor(){this.children=[],this.isDirty=!1}add(e){qa(this.children,e),this.isDirty=!0}remove(e){Ga(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(zu),this.isDirty=!1,this.children.forEach(e)}}const Vu=["TopLeft","TopRight","BottomLeft","BottomRight"],Du=Vu.length,Ou=e=>"string"==typeof e?parseFloat(e):e,Bu=e=>"number"==typeof e||rs.test(e);function Fu(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const _u=$u(0,.5,bo),Hu=$u(.5,.95,ro);function $u(e,t,n){return r=>r<e?0:r>t?1:n(so(e,t,r))}function Wu(e,t){e.min=t.min,e.max=t.max}function Uu(e,t){Wu(e.x,t.x),Wu(e.y,t.y)}function Xu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Yu(e,t,n,r,a){return e=td(e-=t,1/n,r),void 0!==a&&(e=td(e,1/a,r)),e}function Zu(e,t,[n,r,a],o,s){!function(e,t=0,n=1,r=.5,a,o=e,s=e){ns.test(t)&&(t=parseFloat(t),t=ys(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let i=ys(o.min,o.max,r);e===o&&(i-=t),e.min=Yu(e.min,t,n,i,a),e.max=Yu(e.max,t,n,i,a)}(e,t[n],t[r],t[a],t.scale,o,s)}const qu=["x","scaleX","originX"],Gu=["y","scaleY","originY"];function Ku(e,t,n,r){Zu(e.x,t,qu,n?n.x:void 0,r?r.x:void 0),Zu(e.y,t,Gu,n?n.y:void 0,r?r.y:void 0)}function Qu(e){return 0===e.translate&&1===e.scale}function Ju(e){return Qu(e.x)&&Qu(e.y)}function eh(e,t){return e.min===t.min&&e.max===t.max}function th(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nh(e,t){return th(e.x,t.x)&&th(e.y,t.y)}function rh(e){return tu(e.x)/tu(e.y)}function ah(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class oh{constructor(){this.members=[]}add(e){qa(this.members,e),e.scheduleRender()}remove(e){if(Ga(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const sh=["","X","Y","Z"];let ih=0;function lh(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ch(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Pd(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Eo,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ch(r)}function dh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(e={},n=t?.()){this.id=ih++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ph),this.nodes.forEach(yh),this.nodes.forEach(bh),this.nodes.forEach(mh)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Iu)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new io),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var n;this.isSVG=Dl(t)&&!(Dl(n=t)&&"svg"===n.tagName),this.instance=t;const{layoutId:r,layout:a,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(a||r)&&(this.isLayoutDirty=!0),e){let n,r=0;const a=()=>this.root.updateBlockedByResize=!1;Eo.read(()=>{r=window.innerWidth}),e(t,()=>{const e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=Do.now(),r=({timestamp:a})=>{const o=a-n;o>=t&&(Ao(r),e(o-t))};return Eo.setup(r,!0),()=>Ao(r)}(a,250),Su.hasAnimatedSinceResize&&(Su.hasAnimatedSinceResize=!1,this.nodes.forEach(xh)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||a)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const a=this.options.transition||o.getDefaultTransition()||Mh,{onLayoutAnimationStart:s,onLayoutAnimationComplete:i}=o.getProps(),l=!this.targetLayout||!nh(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...rl(a,"layout"),onPlay:s,onComplete:i};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||xh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ao(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(kh),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ch(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(gh);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(vh);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(wh),this.nodes.forEach(uh),this.nodes.forEach(hh)):this.nodes.forEach(vh),this.clearAllSnapshots();const e=Do.now();Ro.delta=Ka(0,1e3/60,e-Ro.timestamp),Ro.timestamp=e,Ro.isProcessing=!0,zo.update.process(Ro),zo.preRender.process(Ro),zo.render.process(Ro),Ro.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fh),this.sharedNodes.forEach(Ch)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Eo.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Eo.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||tu(this.snapshot.measuredBox.x)||tu(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!a)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Ju(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Qc(this.latestValues)||o)&&(a(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Th((r=n).x),Th(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ah))){const{scroll:e}=this.root;e&&(id(t.x,e.offset.x),id(t.y,e.offset.y))}return t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};if(Uu(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:a,options:o}=r;r!==this.root&&a&&o.layoutScroll&&(a.wasRoot&&Uu(t,e),id(t.x,a.offset.x),id(t.y,a.offset.y))}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Uu(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&cd(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Qc(r.latestValues)&&cd(n,r.latestValues)}return Qc(this.latestValues)&&cd(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Uu(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Qc(n.latestValues))continue;Kc(n.latestValues)&&n.updateSnapshot();const r=ud();Uu(r,n.measurePageBox()),Ku(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Qc(this.latestValues)&&Ku(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ro.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){const t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:a}=this.options;if(this.layout&&(r||a)){if(this.resolvedRelativeTargetAt=Ro.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},su(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Uu(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var o,s,i;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,i=this.relativeParent.target,au(o.x,s.x,i.x),au(o.y,s.y,i.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Uu(this.target,this.layout.layoutBox),ad(this.target,this.targetDelta)):Uu(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},su(this.relativeTargetOrigin,this.target,e.target),Uu(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!Kc(this.parent.latestValues)&&!Jc(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const e=this.getLead(),t=Boolean(this.resumingFrom)||this!==e;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Ro.timestamp&&(n=!1),n)return;const{layout:r,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!a)return;Uu(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const a=n.length;if(!a)return;let o,s;t.x=t.y=1;for(let i=0;i<a;i++){o=n[i],s=o.projectionDelta;const{visualElement:a}=o.options;a&&a.props.style&&"contents"===a.props.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&cd(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ad(e,s)),r&&Qc(o.latestValues)&&cd(e,o.latestValues))}t.x<sd&&t.x>od&&(t.x=1),t.y<sd&&t.y>od&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,t),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:i}=e;i?(this.projectionDelta&&this.prevProjectionDelta?(Xu(this.prevProjectionDelta.x,this.projectionDelta.x),Xu(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ru(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&ah(this.projectionDelta.x,this.prevProjectionDelta.x)&&ah(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",i))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},a={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},i=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,d=Boolean(i&&!c&&!0===this.options.crossfade&&!this.path.some(Sh));let u;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;jh(o.x,e.x,n),jh(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(su(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Nh(e.x,t.x,n.x,r),Nh(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),u&&function(e,t){return eh(e.x,t.x)&&eh(e.y,t.y)}(this.relativeTarget,u)&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),Uu(u,this.relativeTarget)),i&&(this.animationValues=a,function(e,t,n,r,a,o){a?(e.opacity=ys(0,n.opacity??1,_u(r)),e.opacityExit=ys(t.opacity??1,0,Hu(r))):o&&(e.opacity=ys(t.opacity??1,n.opacity??1,r));for(let a=0;a<Du;a++){const o=`border${Vu[a]}Radius`;let s=Fu(t,o),i=Fu(n,o);void 0===s&&void 0===i||(s||(s=0),i||(i=0),0===s||0===i||Bu(s)===Bu(i)?(e[o]=Math.max(ys(Ou(s),Ou(i),r),0),(ns.test(i)||ns.test(s))&&(e[o]+="%")):e[o]=i)}(t.rotate||n.rotate)&&(e.rotate=ys(t.rotate||0,n.rotate||0,r))}(a,r,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ao(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Eo.update(()=>{Su.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Cl(0)),this.currentAnimation=function(e,t,n){const r=Ol(e)?e:Cl(e);return r.start(zd("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:a}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Eh(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=tu(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=tu(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Uu(t,n),cd(t,a),ru(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new oh);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){const{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&lh("z",e,r,this.animationValues);for(let t=0;t<sh.length;t++)lh(`rotate${sh[t]}`,e,r,this.animationValues),lh(`skew${sh[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=Ec(t?.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Ec(t?.pointerEvents)||""),void(this.hasProjected&&!Qc(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const a=r.animationValues||r.latestValues;this.applyTransformsToTarget();let o=function(e,t,n){let r="";const a=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((a||o||s)&&(r=`translate3d(${a}px, ${o}px, ${s}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:a,rotateY:o,skewX:s,skewY:i}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),i&&(r+=`skewY(${i}deg) `)}const i=e.x.scale*t.x,l=e.y.scale*t.y;return 1===i&&1===l||(r+=`scale(${i}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a);n&&(o=n(a,o)),e.transform=o;const{x:s,y:i}=this.projectionDelta;e.transformOrigin=`${100*s.origin}% ${100*i.origin}% 0`,r.animationValues?e.opacity=r===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:e.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in uc){if(void 0===a[t])continue;const{correct:n,applyTo:s,isCSSVariable:i}=uc[t],l="none"===o?a[t]:n(a[t],r);if(s){const t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else i?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?Ec(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(gh),this.root.sharedNodes.clear()}}}function uh(e){e.updateLayout()}function hh(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:a}=e.options,o=t.source!==e.layout.source;"size"===a?iu(e=>{const r=o?t.measuredBox[e]:t.layoutBox[e],a=tu(r);r.min=n[e].min,r.max=r.min+a}):Eh(a,t.layoutBox,n)&&iu(r=>{const a=o?t.measuredBox[r]:t.layoutBox[r],s=tu(n[r]);a.max=a.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};ru(s,n,t.layoutBox);const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?ru(i,e.applyTransform(r,!0),t.measuredBox):ru(i,n,t.layoutBox);const l=!Ju(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:a,layout:o}=r;if(a&&o){const s={x:{min:0,max:0},y:{min:0,max:0}};su(s,t.layoutBox,a.layoutBox);const i={x:{min:0,max:0},y:{min:0,max:0}};su(i,n,o.layoutBox),nh(s,i)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=i,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:i,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ph(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function mh(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fh(e){e.clearSnapshot()}function gh(e){e.clearMeasurements()}function vh(e){e.isLayoutDirty=!1}function wh(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yh(e){e.resolveTargetDelta()}function bh(e){e.calcProjection()}function kh(e){e.resetSkewAndRotation()}function Ch(e){e.removeLeadSnapshot()}function jh(e,t,n){e.translate=ys(t.translate,0,n),e.scale=ys(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Nh(e,t,n,r){e.min=ys(t.min,n.min,r),e.max=ys(t.max,n.max,r)}function Sh(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Mh={duration:.45,ease:[.4,0,.1,1]},Ph=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Lh=Ph("applewebkit/")&&!Ph("chrome/")?Math.round:ro;function Th(e){e.min=Lh(e.min),e.max=Lh(e.max)}function Eh(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=rh(t),a=rh(n),o=.2,!(Math.abs(r-a)<=o));var r,a,o}function Ah(e){return e!==e.root&&e.scroll?.wasRoot}const Rh=dh({attachResizeListener:(e,t)=>Qd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),zh={current:void 0},Ih=dh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!zh.current){const e=new Rh({});e.mount(window),e.setOptions({layoutScroll:!0}),zh.current=e}return zh.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Vh={pan:{Feature:class extends qd{constructor(){super(...arguments),this.removePointerDownListener=ro}onPointerDown(e){this.session=new du(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lu(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Nu(e),onStart:Nu(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Eo.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=eu(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends qd{constructor(e){super(e),this.removeGroupControls=ro,this.removeListeners=ro,this.controls=new Cu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ro}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ih,MeasureLayout:Au}};function Dh(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const a=r["onHover"+n];a&&Eo.postRender(()=>a(t,Jd(t)))}function Oh(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const a=r["onTap"+("End"===n?"":n)];a&&Eo.postRender(()=>a(t,Jd(t)))}const Bh=new WeakMap,Fh=new WeakMap,_h=e=>{const t=Bh.get(e.target);t&&t(e)},Hh=e=>{e.forEach(_h)};function $h(e,t,n){const r=function({root:e,...t}){const n=e||document;Fh.has(n)||Fh.set(n,{});const r=Fh.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(Hh,{root:e,...t})),r[a]}(t);return Bh.set(e,n),r.observe(e),()=>{Bh.delete(e),r.unobserve(e)}}const Wh={some:0,all:1};const Uh={inView:{Feature:class extends qd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:a}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Wh[r]};return $h(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,a&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends qd{mount(){const{current:e}=this.node;e&&(this.unmount=Vl(e,(e,t)=>(Oh(this.node,t,"Start"),(e,{success:t})=>Oh(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends qd{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=oo(Qd(this.node.current,"focus",()=>this.onFocus()),Qd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends qd{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,a,o]=Ml(e,n),s=e=>{if(!Pl(e))return;const{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;const o=e=>{Pl(e)&&(r(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,a)};return r.forEach(e=>{e.addEventListener("pointerenter",s,a)}),o}(e,(e,t)=>(Dh(this.node,t,"Start"),e=>Dh(this.node,e,"End"))))}unmount(){}}}},Xh=Zc({...Kd,...Uh,...Vh,...{layout:{ProjectionNode:Ih,MeasureLayout:Au}}},kd),Yh=t.forwardRef(function({description:n,side:r="top",className:a,role:o,...s},i){const l=E.useTooltipStore({placement:r}),c=E.useStoreState(l,e=>e.mounted),d=E.useStoreState(l,e=>e.placement),{x:u,y:h}=t.useMemo(()=>{switch(d.split("-")[0]){case"top":return{x:0,y:-8};case"bottom":return{x:0,y:8};case"left":return{x:-8,y:0};case"right":return{x:8,y:0};default:return{x:0,y:0}}},[d]);return e.jsxs(E.TooltipProvider,{store:l,hideTimeout:0,children:[e.jsx(E.TooltipAnchor,{...s,ref:i,role:o,onKeyDown:e=>{"button"===o&&"Enter"===e.key&&(e.preventDefault(),e.target.click())},className:Ie("cursor-pointer",a)}),e.jsx(Zl,{children:!0===c&&e.jsxs(E.Tooltip,{gutter:4,alwaysVisible:!0,className:"tooltip",render:e.jsx(Xh.div,{initial:{opacity:0,x:u,y:h},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:u,y:h}}),children:[e.jsx(E.TooltipArrow,{}),n]})})]})}),Zh=({className:t,...n})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:Ie("mx-auto flex w-full justify-center",t),...n});Zh.displayName="Pagination";const qh=L.forwardRef(({className:t,...n},r)=>e.jsx("ul",{ref:r,className:Ie("flex flex-row items-center gap-1",t),...n}));qh.displayName="PaginationContent";const Gh=L.forwardRef(({className:t,...n},r)=>e.jsx("li",{ref:r,className:Ie("",t),...n}));Gh.displayName="PaginationItem";const Kh=({className:t,isActive:n=!1,size:r="icon",children:a,...o})=>e.jsx("a",{"aria-current":n?"page":void 0,className:Ie(Tt({variant:n?"outline":"ghost",size:r}),t),...o,children:a||e.jsx("span",{className:"sr-only",children:"Page link"})});Kh.displayName="PaginationLink";const Qh=({className:t,...n})=>e.jsxs(Kh,{"aria-label":"Go to previous page",size:"default",className:Ie("gap-1 pl-2.5",t),...n,children:[e.jsx(ct,{className:"h-4 w-4"}),e.jsx("span",{children:"Previous"})]});Qh.displayName="PaginationPrevious";const Jh=({className:t,...n})=>e.jsxs(Kh,{"aria-label":"Go to next page",size:"default",className:Ie("gap-1 pr-2.5",t),...n,children:[e.jsx("span",{children:"Next"}),e.jsx(dt,{className:"h-4 w-4"})]});Jh.displayName="PaginationNext";const ep=({className:t,...n})=>e.jsxs("span",{"aria-hidden":!0,className:Ie("flex h-9 w-9 items-center justify-center",t),...n,children:[e.jsx(ht,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More pages"})]});ep.displayName="PaginationEllipsis";const tp=L.forwardRef(({className:t,value:n,...r},a)=>e.jsx(W.Root,{ref:a,className:Ie("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...r,children:e.jsx(W.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})}));tp.displayName=W.Root.displayName;var np=Object.defineProperty,rp=Object.defineProperties,ap=Object.getOwnPropertyDescriptors,op=Object.getOwnPropertySymbols,sp=Object.prototype.hasOwnProperty,ip=Object.prototype.propertyIsEnumerable,lp=(e,t,n)=>t in e?np(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var cp=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var dp=L.createContext({}),up=L.forwardRef((e,t)=>{var n,r,a,o,s,i=e,{value:l,onChange:c,maxLength:d,textAlign:u="left",pattern:h,placeholder:p,inputMode:m="numeric",onComplete:f,pushPasswordManagerStrategy:g="increase-width",pasteTransformer:v,containerClassName:w,noScriptCSSFallback:x=pp,render:y,children:b}=i,k=((e,t)=>{var n={};for(var r in e)sp.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&op)for(var r of op(e))t.indexOf(r)<0&&ip.call(e,r)&&(n[r]=e[r]);return n})(i,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[C,j]=L.useState("string"==typeof k.defaultValue?k.defaultValue:""),N=null!=l?l:C,S=function(e){let t=L.useRef();return L.useEffect(()=>{t.current=e}),t.current}(N),M=L.useCallback(e=>{null==c||c(e),j(e)},[c]),P=L.useMemo(()=>h?"string"==typeof h?new RegExp(h):h:null,[h]),T=L.useRef(null),E=L.useRef(null),A=L.useRef({value:N,onChange:M,isIOS:"undefined"!=typeof window&&(null==(r=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:r.call(n,"-webkit-touch-callout","none"))}),R=L.useRef({prev:[null==(a=T.current)?void 0:a.selectionStart,null==(o=T.current)?void 0:o.selectionEnd,null==(s=T.current)?void 0:s.selectionDirection]});L.useImperativeHandle(t,()=>T.current,[]),L.useEffect(()=>{let e=T.current,t=E.current;if(!e||!t)return;function n(){if(document.activeElement!==e)return B(null),void _(null);let t,n=e.selectionStart,r=e.selectionEnd,a=e.selectionDirection,o=e.maxLength,s=e.value,i=R.current.prev,l=-1,c=-1;if(0!==s.length&&null!==n&&null!==r){let e=n===r,a=n===s.length&&s.length<o;if(e&&!a){let e=n;if(0===e)l=0,c=1,t="forward";else if(e===o)l=e-1,c=e,t="backward";else if(o>1&&s.length>1){let n=0;if(null!==i[0]&&null!==i[1]){t=e<i[1]?"backward":"forward";let r=i[0]===i[1]&&i[0]<o;"backward"===t&&!r&&(n=-1)}l=n+e,c=n+e+1}}-1!==l&&-1!==c&&l!==c&&T.current.setSelectionRange(l,c,t)}let d=-1!==l?l:n,u=-1!==c?c:r,h=null!=t?t:a;B(d),_(u),R.current.prev=[d,u,h]}if(A.current.value!==e.value&&A.current.onChange(e.value),R.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&D(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";hp(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),hp(e.sheet,`[data-input-otp]:autofill { ${t} }`),hp(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),hp(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),hp(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let a=new ResizeObserver(r);return a.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),a.disconnect()}},[]);let[z,I]=L.useState(!1),[V,D]=L.useState(!1),[O,B]=L.useState(null),[F,_]=L.useState(null);L.useEffect(()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}(()=>{var e,t,n,r;null==(e=T.current)||e.dispatchEvent(new Event("input"));let a=null==(t=T.current)?void 0:t.selectionStart,o=null==(n=T.current)?void 0:n.selectionEnd,s=null==(r=T.current)?void 0:r.selectionDirection;null!==a&&null!==o&&(B(a),_(o),R.current.prev=[a,o,s])})},[N,V]),L.useEffect(()=>{void 0!==S&&N!==S&&S.length<d&&N.length===d&&(null==f||f(N))},[d,f,S,N]);let H=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[a,o]=L.useState(!1),[s,i]=L.useState(!1),[l,c]=L.useState(!1),d=L.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&a&&s,[a,s,n]),u=L.useCallback(()=>{let r=e.current,a=t.current;if(!r||!a||l||"none"===n)return;let s=r,i=s.getBoundingClientRect().left+s.offsetWidth-18,d=s.getBoundingClientRect().top+s.offsetHeight/2;0===document.querySelectorAll(cp).length&&document.elementFromPoint(i,d)===r||(o(!0),c(!0))},[e,t,l,n]);return L.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function r(){let e=window.innerWidth-t.getBoundingClientRect().right;i(e>=40)}r();let a=setInterval(r,1e3);return()=>{clearInterval(a)}},[e,n]),L.useEffect(()=>{let e=r||document.activeElement===t.current;if("none"===n||!e)return;let a=setTimeout(u,0),o=setTimeout(u,2e3),s=setTimeout(u,5e3),i=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(s),clearTimeout(i)}},[t,r,n,u]),{hasPWMBadge:a,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:E,inputRef:T,pushPasswordManagerStrategy:g,isFocused:V}),$=L.useCallback(e=>{let t=e.currentTarget.value.slice(0,d);t.length>0&&P&&!P.test(t)?e.preventDefault():("string"==typeof S&&t.length<S.length&&document.dispatchEvent(new Event("selectionchange")),M(t))},[d,M,S,P]),W=L.useCallback(()=>{var e;if(T.current){let t=Math.min(T.current.value.length,d-1),n=T.current.value.length;null==(e=T.current)||e.setSelectionRange(t,n),B(t),_(n)}D(!0)},[d]),U=L.useCallback(e=>{var t,n;let r=T.current;if(!(v||A.current.isIOS&&e.clipboardData&&r))return;let a=e.clipboardData.getData("text/plain"),o=v?v(a):a;e.preventDefault();let s=null==(t=T.current)?void 0:t.selectionStart,i=null==(n=T.current)?void 0:n.selectionEnd,l=(s!==i?N.slice(0,s)+o+N.slice(i):N.slice(0,s)+o+N.slice(s)).slice(0,d);if(l.length>0&&P&&!P.test(l))return;r.value=l,M(l);let c=Math.min(l.length,d-1),u=l.length;r.setSelectionRange(c,u),B(c),_(u)},[d,M,P,N]),X=L.useMemo(()=>({position:"relative",cursor:k.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[k.disabled]),Y=L.useMemo(()=>({position:"absolute",inset:0,width:H.willPushPWMBadge?`calc(100% + ${H.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:H.willPushPWMBadge?`inset(0 ${H.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:u,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[H.PWM_BADGE_SPACE_WIDTH,H.willPushPWMBadge,u]),Z=L.useMemo(()=>L.createElement("input",((e,t)=>rp(e,ap(t)))(((e,t)=>{for(var n in t||(t={}))sp.call(t,n)&&lp(e,n,t[n]);if(op)for(var n of op(t))ip.call(t,n)&&lp(e,n,t[n]);return e})({autoComplete:k.autoComplete||"one-time-code"},k),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===N.length||void 0,"data-input-otp-mss":O,"data-input-otp-mse":F,inputMode:m,pattern:null==P?void 0:P.source,"aria-placeholder":p,style:Y,maxLength:d,value:N,ref:T,onPaste:e=>{var t;U(e),null==(t=k.onPaste)||t.call(k,e)},onChange:$,onMouseOver:e=>{var t;I(!0),null==(t=k.onMouseOver)||t.call(k,e)},onMouseLeave:e=>{var t;I(!1),null==(t=k.onMouseLeave)||t.call(k,e)},onFocus:e=>{var t;W(),null==(t=k.onFocus)||t.call(k,e)},onBlur:e=>{var t;D(!1),null==(t=k.onBlur)||t.call(k,e)}})),[$,W,U,m,Y,d,F,O,k,null==P?void 0:P.source,N]),q=L.useMemo(()=>({slots:Array.from({length:d}).map((e,t)=>{var n;let r=V&&null!==O&&null!==F&&(O===F&&t===O||t>=O&&t<F),a=void 0!==N[t]?N[t]:null;return{char:a,placeholderChar:void 0!==N[0]?null:null!=(n=null==p?void 0:p[t])?n:null,isActive:r,hasFakeCaret:r&&null===a}}),isFocused:V,isHovering:!k.disabled&&z}),[V,z,d,F,O,k.disabled,N]),G=L.useMemo(()=>y?y(q):L.createElement(dp.Provider,{value:q},b),[b,q,y]);return L.createElement(L.Fragment,null,null!==x&&L.createElement("noscript",null,L.createElement("style",null,x)),L.createElement("div",{ref:E,"data-input-otp-container":!0,style:X,className:w},G,L.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},Z)))});function hp(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}up.displayName="Input";var pp="\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}";const mp=L.forwardRef(({className:t,containerClassName:n,...r},a)=>e.jsx(up,{ref:a,containerClassName:Ie("flex items-center gap-2 has-[:disabled]:opacity-50",n),className:Ie("disabled:cursor-not-allowed",t),...r}));mp.displayName="InputOTP";const fp=L.forwardRef(({className:t,...n},r)=>e.jsx("div",{ref:r,className:Ie("flex items-center",t),...n}));fp.displayName="InputOTPGroup";const gp=L.forwardRef(({index:t,className:n,...r},a)=>{const o=L.useContext(dp);if(!o)throw new Error("InputOTPSlot must be used within an OTPInput");const{char:s,hasFakeCaret:i,isActive:l}=o.slots[t];return e.jsxs("div",{ref:a,className:Ie("text-md relative flex h-11 w-11 items-center justify-center border-y border-r border-input shadow-sm transition-all first:rounded-l-xl first:border-l last:rounded-r-xl",l&&"z-10 ring-1 ring-ring",n),...r,children:[s,i&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})});gp.displayName="InputOTPSlot";const vp=L.forwardRef(({...t},n)=>e.jsx("div",{ref:n,role:"separator",...t,children:e.jsx(mt,{})}));function wp({value:n,onChange:r,placeholder:a,className:o=""}){const s=t.useRef(null),i=t.useCallback(e=>r(e.target.value),[r]);return e.jsxs("div",{className:Ie("focus:to-surface-primary/50 group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-gradient-to-b from-surface-tertiary-alt from-65% to-transparent px-3 py-2 text-text-primary transition-colors duration-300 focus:bg-gradient-to-b focus:from-surface-primary",o),children:[e.jsx(wt,{className:"h-4 w-4 text-text-secondary-alt transition-colors duration-300","aria-hidden":"true"}),e.jsx("input",{ref:s,type:"text",value:n??"",onChange:i,placeholder:String(a??"Search..."),"aria-label":"Search Model",className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm placeholder-text-secondary focus:outline-none focus:ring-1 focus:ring-ring-primary"}),e.jsx("button",{className:Ie("relative flex h-5 w-5 items-center justify-end rounded-md text-text-secondary-alt",n?.length?"cursor-pointer opacity-100":"hidden"),"aria-label":"Clear search",onClick:()=>{r(""),setTimeout(()=>{s.current?.focus()},0)},tabIndex:0,children:e.jsx(yt,{"aria-hidden":"true",className:Ie("text-text-secondary-alt",n?.length?"cursor-pointer opacity-100":"opacity-0")})})]})}function xp(e){return"string"==typeof e?e.startsWith("---")&&e.endsWith("---")?"":e.toUpperCase():""}function yp({availableOptions:n=[],placeholder:r,getTextKeyOverride:a,className:o,disabled:s=!1}){const[i,l]=t.useState(null),c=n.length>10&&!s,d=a||xp,u=t.useMemo(()=>{const e=i??"";if(!c||!e||!n.length)return n;const t=e.toUpperCase();return n.filter(e=>d(e).includes(t))},[n,d,i,c]),h=t.useCallback(e=>l(e),[]);return[u,c?e.jsx(wp,{value:i,className:o,onChange:h,placeholder:r}):null]}vp.displayName="InputOTPSeparator";const bp=t.createContext(null);bp.displayName="PanelGroupContext";const kp="data-panel-group",Cp="data-panel-group-direction",jp="data-panel-group-id",Np="data-panel",Sp="data-panel-collapsible",Mp="data-panel-id",Pp="data-panel-size",Lp="data-resize-handle",Tp="data-resize-handle-active",Ep="data-panel-resize-handle-enabled",Ap="data-panel-resize-handle-id",Rp="data-resize-handle-state",zp=t.useLayoutEffect,Ip=L["useId".toString()],Vp="function"==typeof Ip?Ip:()=>null;let Dp=0;function Op(e=null){const n=Vp(),r=t.useRef(e||n||null);return null===r.current&&(r.current=""+Dp++),null!=e?e:r.current}function Bp({children:e,className:n="",collapsedSize:r,collapsible:a,defaultSize:o,forwardedRef:s,id:i,maxSize:l,minSize:c,onCollapse:d,onExpand:u,onResize:h,order:p,style:m,tagName:f="div",...g}){const v=t.useContext(bp);if(null===v)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:w,expandPanel:x,getPanelSize:y,getPanelStyle:b,groupId:k,isPanelCollapsed:C,reevaluatePanelConstraints:j,registerPanel:N,resizePanel:S,unregisterPanel:M}=v,P=Op(i),L=t.useRef({callbacks:{onCollapse:d,onExpand:u,onResize:h},constraints:{collapsedSize:r,collapsible:a,defaultSize:o,maxSize:l,minSize:c},id:P,idIsFromProps:void 0!==i,order:p});t.useRef({didLogMissingDefaultSizeWarning:!1}),zp(()=>{const{callbacks:e,constraints:t}=L.current,n={...t};L.current.id=P,L.current.idIsFromProps=void 0!==i,L.current.order=p,e.onCollapse=d,e.onExpand=u,e.onResize=h,t.collapsedSize=r,t.collapsible=a,t.defaultSize=o,t.maxSize=l,t.minSize=c,n.collapsedSize===t.collapsedSize&&n.collapsible===t.collapsible&&n.maxSize===t.maxSize&&n.minSize===t.minSize||j(L.current,n)}),zp(()=>{const e=L.current;return N(e),()=>{M(e)}},[p,P,N,M]),t.useImperativeHandle(s,()=>({collapse:()=>{w(L.current)},expand:e=>{x(L.current,e)},getId:()=>P,getSize:()=>y(L.current),isCollapsed:()=>C(L.current),isExpanded:()=>!C(L.current),resize:e=>{S(L.current,e)}}),[w,x,y,C,P,S]);const T=b(L.current,o);return t.createElement(f,{...g,children:e,className:n,id:P,style:{...T,...m},[jp]:k,[Np]:"",[Sp]:a||void 0,[Mp]:P,[Pp]:parseFloat(""+T.flexGrow).toFixed(1)})}const Fp=t.forwardRef((e,n)=>t.createElement(Bp,{...e,forwardedRef:n}));Bp.displayName="Panel",Fp.displayName="forwardRef(Panel)";let _p=null,Hp=-1,$p=null;function Wp(e,t){var n,r;const a=function(e,t){if(t){const e=0!==(t&am),n=0!==(t&om);if(0!==(t&nm))return e?"se-resize":n?"ne-resize":"e-resize";if(0!==(t&rm))return e?"sw-resize":n?"nw-resize":"w-resize";if(e)return"s-resize";if(n)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);if(_p!==a){var o;if(_p=a,null===$p&&($p=document.createElement("style"),document.head.appendChild($p)),Hp>=0)null===(o=$p.sheet)||void 0===o||o.removeRule(Hp);Hp=null!==(n=null===(r=$p.sheet)||void 0===r?void 0:r.insertRule(`*{cursor: ${a} !important;}`))&&void 0!==n?n:-1}}function Up(e){return"keydown"===e.type}function Xp(e){return e.type.startsWith("pointer")}function Yp(e){return e.type.startsWith("mouse")}function Zp(e){if(Xp(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(Yp(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function qp(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}const Gp=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Kp(e){const t=getComputedStyle(e);return"fixed"===t.position||(!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=tm(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||(+t.opacity<1||("transform"in t&&"none"!==t.transform||("webkitTransform"in t&&"none"!==t.webkitTransform||("mixBlendMode"in t&&"normal"!==t.mixBlendMode||("filter"in t&&"none"!==t.filter||("webkitFilter"in t&&"none"!==t.webkitFilter||("isolation"in t&&"isolate"===t.isolation||(!!Gp.test(t.willChange)||"touch"===t.webkitOverflowScrolling)))))))))}function Qp(e){let t=e.length;for(;t--;){const n=e[t];if(km(n,"Missing node"),Kp(n))return n}return null}function Jp(e){return e&&Number(getComputedStyle(e).zIndex)||0}function em(e){const t=[];for(;e;)t.push(e),e=tm(e);return t}function tm(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const nm=1,rm=2,am=4,om=8,sm="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let im=[],lm=!1,cm=new Map,dm=new Map;const um=new Set;function hm(e){const{target:t}=e,{x:n,y:r}=Zp(e);lm=!0,gm({target:t,x:n,y:r}),ym(),im.length>0&&(bm("down",e),e.preventDefault(),fm(t)||e.stopImmediatePropagation())}function pm(e){const{x:t,y:n}=Zp(e);if(lm&&0===e.buttons&&(lm=!1,bm("up",e)),!lm){const{target:r}=e;gm({target:r,x:t,y:n})}bm("move",e),wm(),im.length>0&&e.preventDefault()}function mm(e){const{target:t}=e,{x:n,y:r}=Zp(e);dm.clear(),lm=!1,im.length>0&&(e.preventDefault(),fm(t)||e.stopImmediatePropagation()),bm("up",e),gm({target:t,x:n,y:r}),wm(),ym()}function fm(e){let t=e;for(;t;){if(t.hasAttribute(Lp))return!0;t=t.parentElement}return!1}function gm({target:e,x:t,y:n}){im.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),um.forEach(e=>{const{element:a,hitAreaMargins:o}=e,s=a.getBoundingClientRect(),{bottom:i,left:l,right:c,top:d}=s,u=sm?o.coarse:o.fine;if(t>=l-u&&t<=c+u&&n>=d-u&&n<=i+u){if(null!==r&&document.contains(r)&&a!==r&&!a.contains(r)&&!r.contains(a)&&function(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:em(e),b:em(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;km(r,"Stacking order can only be calculated for elements with a common ancestor");const a=Jp(Qp(n.a)),o=Jp(Qp(n.b));if(a===o){const e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)};let a=e.length;for(;a--;){const n=e[a];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(a-o)}(r,a)>0){let e=r,t=!1;for(;e&&!e.contains(a);){if(qp(e.getBoundingClientRect(),s)){t=!0;break}e=e.parentElement}if(t)return}im.push(e)}})}function vm(e,t){dm.set(e,t)}function wm(){let e=!1,t=!1;im.forEach(n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0});let n=0;dm.forEach(e=>{n|=e}),e&&t?Wp("intersection",n):e?Wp("horizontal",n):t?Wp("vertical",n):null!==$p&&(document.head.removeChild($p),_p=null,$p=null,Hp=-1)}let xm;function ym(){var e;null===(e=xm)||void 0===e||e.abort(),xm=new AbortController;const t={capture:!0,signal:xm.signal};um.size&&(lm?(im.length>0&&cm.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",mm,t),r.addEventListener("pointerleave",pm,t),r.addEventListener("pointermove",pm,t))}),cm.forEach((e,n)=>{const{body:r}=n;r.addEventListener("pointerup",mm,t),r.addEventListener("pointercancel",mm,t)})):cm.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",hm,t),r.addEventListener("pointermove",pm,t))}))}function bm(e,t){um.forEach(n=>{const{setResizeHandlerState:r}=n,a=im.includes(n);r(e,a,t)})}function km(e,t){if(!e)throw console.error(t),Error(t)}function Cm(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function jm(e,t,n=10){return 0===Cm(e,t,n)}function Nm(e,t,n){return 0===Cm(e,t,n)}function Sm({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];km(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:a=0,collapsible:o,maxSize:s=100,minSize:i=0}=r;if(Cm(n,i)<0)if(o){n=Cm(n,(a+i)/2)<0?a:i}else n=i;return n=Math.min(s,n),n=parseFloat(n.toFixed(10))}function Mm({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:a,trigger:o}){if(Nm(e,0))return t;const s=[...t],[i,l]=r;km(null!=i,"Invalid first pivot index"),km(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===o){{const r=e<0?l:i,a=n[r];km(a,`Panel constraints not found for index ${r}`);const{collapsedSize:o=0,collapsible:s,minSize:c=0}=a;if(s){const n=t[r];if(km(null!=n,`Previous layout not found for panel index ${r}`),Nm(n,o)){const t=c-n;Cm(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?i:l,a=n[r];km(a,`No panel constraints found for index ${r}`);const{collapsedSize:o=0,collapsible:s,minSize:c=0}=a;if(s){const n=t[r];if(km(null!=n,`Previous layout not found for panel index ${r}`),Nm(n,c)){const t=n-o;Cm(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let a=e<0?l:i,o=0;for(;;){const e=t[a];km(null!=e,`Previous layout not found for panel index ${a}`);if(o+=Sm({panelConstraints:n,panelIndex:a,size:100})-e,a+=r,a<0||a>=n.length)break}const s=Math.min(Math.abs(e),Math.abs(o));e=e<0?0-s:s}{let r=e<0?i:l;for(;r>=0&&r<n.length;){const a=Math.abs(e)-Math.abs(c),o=t[r];km(null!=o,`Previous layout not found for panel index ${r}`);const i=Sm({panelConstraints:n,panelIndex:r,size:o-a});if(!Nm(o,i)&&(c+=o-i,s[r]=i,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Nm(e[r],t[r],n))return!1;return!0}(a,s))return a;{const r=e<0?l:i,a=t[r];km(null!=a,`Previous layout not found for panel index ${r}`);const o=a+c,d=Sm({panelConstraints:n,panelIndex:r,size:o});if(s[r]=d,!Nm(d,o)){let t=o-d;let r=e<0?l:i;for(;r>=0&&r<n.length;){const a=s[r];km(null!=a,`Previous layout not found for panel index ${r}`);const o=Sm({panelConstraints:n,panelIndex:r,size:a+t});if(Nm(a,o)||(t-=o-a,s[r]=o),Nm(t,0))break;e>0?r--:r++}}}return Nm(s.reduce((e,t)=>t+e,0),100)?s:a}function Pm({layout:e,panelsArray:t,pivotIndices:n}){let r=0,a=100,o=0,s=0;const i=n[0];km(null!=i,"No pivot index found"),t.forEach((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:c=0}=n;t===i?(r=c,a=l):(o+=c,s+=l)});return{valueMax:Math.min(a,100-o),valueMin:Math.max(r,100-s),valueNow:e[i]}}function Lm(e,t=document){return Array.from(t.querySelectorAll(`[${Ap}][data-panel-group-id="${e}"]`))}function Tm(e,t,n=document){const r=Lm(e,n).findIndex(e=>e.getAttribute(Ap)===t);return null!=r?r:null}function Em(e,t,n){const r=Tm(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function Am(e,t=document){if(((n=t)instanceof HTMLElement||"object"==typeof n&&null!==n&&"tagName"in n&&"getAttribute"in n)&&t.dataset.panelGroupId==e)return t;var n;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function Rm(e,t=document){const n=t.querySelector(`[${Ap}="${e}"]`);return n||null}function zm({committedValuesRef:e,eagerValuesRef:n,groupId:r,layout:a,panelDataArray:o,panelGroupElement:s,setLayout:i}){t.useRef({didWarnAboutMissingResizeHandle:!1}),zp(()=>{if(!s)return;const e=Lm(r,s);for(let t=0;t<o.length-1;t++){const{valueMax:n,valueMin:r,valueNow:s}=Pm({layout:a,panelsArray:o,pivotIndices:[t,t+1]}),i=e[t];if(null==i);else{const e=o[t];km(e,`No panel data found for index "${t}"`),i.setAttribute("aria-controls",e.id),i.setAttribute("aria-valuemax",""+Math.round(n)),i.setAttribute("aria-valuemin",""+Math.round(r)),i.setAttribute("aria-valuenow",null!=s?""+Math.round(s):"")}}return()=>{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[r,a,o,s]),t.useEffect(()=>{if(!s)return;const e=n.current;km(e,"Eager values not found");const{panelDataArray:t}=e;km(null!=Am(r,s),`No group found for id "${r}"`);const o=Lm(r,s);km(o,`No resize handles found for group id "${r}"`);const l=o.map(e=>{const n=e.getAttribute(Ap);km(n,"Resize handle element has no handle id attribute");const[o,l]=function(e,t,n,r=document){var a,o,s,i;const l=Rm(t,r),c=Lm(e,r),d=l?c.indexOf(l):-1;return[null!==(a=null===(o=n[d])||void 0===o?void 0:o.id)&&void 0!==a?a:null,null!==(s=null===(i=n[d+1])||void 0===i?void 0:i.id)&&void 0!==s?s:null]}(r,n,t,s);if(null==o||null==l)return()=>{};const c=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=t.findIndex(e=>e.id===o);if(l>=0){const e=t[l];km(e,`No panel data found for index ${l}`);const o=a[l],{collapsedSize:c=0,collapsible:d,minSize:u=0}=e.constraints;if(null!=o&&d){const e=Mm({delta:Nm(o,c)?u-c:c-o,initialLayout:a,panelConstraints:t.map(e=>e.constraints),pivotIndices:Em(r,n,s),prevLayout:a,trigger:"keyboard"});a!==e&&i(e)}}break}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}});return()=>{l.forEach(e=>e())}},[s,e,n,r,a,o,i])}function Im(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Vm(e,t){const n="horizontal"===e,{x:r,y:a}=Zp(t);return n?r:a}function Dm(e,t,n,r,a,o){if(Up(e)){const t="horizontal"===n;let r=0;r=e.shiftKey?100:null!=a?a:10;let o=0;switch(e.key){case"ArrowDown":o=t?0:r;break;case"ArrowLeft":o=t?-r:0;break;case"ArrowRight":o=t?r:0;break;case"ArrowUp":o=t?0:-r;break;case"End":o=100;break;case"Home":o=-100}return o}return null==r?0:function(e,t,n,r,a){const o="horizontal"===n,s=Rm(t,a);km(s,`No resize handle element found for id "${t}"`);const i=s.getAttribute(jp);km(i,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=Vm(n,e),d=Am(i,a);km(d,`No group element found for id "${i}"`);const u=d.getBoundingClientRect();return(c-l)/(o?u.width:u.height)*100}(e,t,n,r,o)}function Om(e,t,n){t.forEach((t,r)=>{const a=e[r];km(a,`Panel data not found for index ${r}`);const{callbacks:o,constraints:s,id:i}=a,{collapsedSize:l=0,collapsible:c}=s,d=n[i];if(null==d||t!==d){n[i]=t;const{onCollapse:e,onExpand:r,onResize:a}=o;a&&a(t,d),c&&(e||r)&&(!r||null!=d&&!jm(d,l)||jm(t,l)||r(),!e||null!=d&&jm(d,l)||!jm(t,l)||e())}})}function Bm(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function Fm(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function _m(e){return`react-resizable-panels:${e}`}function Hm(e){return e.map(e=>{const{constraints:t,id:n,idIsFromProps:r,order:a}=e;return r?n:a?`${a}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function $m(e,t){try{const n=_m(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function Wm(e,t,n,r,a){var o;const s=_m(e),i=Hm(t),l=null!==(o=$m(e,a))&&void 0!==o?o:{};l[i]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{a.setItem(s,JSON.stringify(l))}catch(e){console.error(e)}}function Um({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!Nm(r,100)&&n.length>0)for(let e=0;e<t.length;e++){const t=n[e];km(null!=t,`No layout data found for index ${e}`);const a=100/r*t;n[e]=a}let a=0;for(let e=0;e<t.length;e++){const r=n[e];km(null!=r,`No layout data found for index ${e}`);const o=Sm({panelConstraints:t,panelIndex:e,size:r});r!=o&&(a+=r-o,n[e]=o)}if(!Nm(a,0))for(let e=0;e<t.length;e++){const r=n[e];km(null!=r,`No layout data found for index ${e}`);const o=Sm({panelConstraints:t,panelIndex:e,size:r+a});if(r!==o&&(a-=o-r,n[e]=o,Nm(a,0)))break}return n}const Xm={getItem:e=>(Fm(Xm),Xm.getItem(e)),setItem:(e,t)=>{Fm(Xm),Xm.setItem(e,t)}},Ym={};function Zm({autoSaveId:e=null,children:n,className:r="",direction:a,forwardedRef:o,id:s=null,onLayout:i=null,keyboardResizeBy:l=null,storage:c=Xm,style:d,tagName:u="div",...h}){const p=Op(s),m=t.useRef(null),[f,g]=t.useState(null),[v,w]=t.useState([]),x=function(){const[e,n]=t.useState(0);return t.useCallback(()=>n(e=>e+1),[])}(),y=t.useRef({}),b=t.useRef(new Map),k=t.useRef(0),C=t.useRef({autoSaveId:e,direction:a,dragState:f,id:p,keyboardResizeBy:l,onLayout:i,storage:c}),j=t.useRef({layout:v,panelDataArray:[],panelDataArrayChanged:!1});t.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),t.useImperativeHandle(o,()=>({getId:()=>C.current.id,getLayout:()=>{const{layout:e}=j.current;return e},setLayout:e=>{const{onLayout:t}=C.current,{layout:n,panelDataArray:r}=j.current,a=Um({layout:e,panelConstraints:r.map(e=>e.constraints)});Im(n,a)||(w(a),j.current.layout=a,t&&t(a),Om(r,a,y.current))}}),[]),zp(()=>{C.current.autoSaveId=e,C.current.direction=a,C.current.dragState=f,C.current.id=p,C.current.onLayout=i,C.current.storage=c}),zm({committedValuesRef:C,eagerValuesRef:j,groupId:p,layout:v,panelDataArray:j.current.panelDataArray,setLayout:w,panelGroupElement:m.current}),t.useEffect(()=>{const{panelDataArray:t}=j.current;if(e){if(0===v.length||v.length!==t.length)return;let n=Ym[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(Wm,100),Ym[e]=n);const r=[...t],a=new Map(b.current);n(e,r,a,v,c)}},[e,v,c]),t.useEffect(()=>{});const N=t.useCallback(e=>{const{onLayout:t}=C.current,{layout:n,panelDataArray:r}=j.current;if(e.constraints.collapsible){const a=r.map(e=>e.constraints),{collapsedSize:o=0,panelSize:s,pivotIndices:i}=Km(r,e,n);if(km(null!=s,`Panel size not found for panel "${e.id}"`),!jm(s,o)){b.current.set(e.id,s);const l=Mm({delta:Gm(r,e)===r.length-1?s-o:o-s,initialLayout:n,panelConstraints:a,pivotIndices:i,prevLayout:n,trigger:"imperative-api"});Bm(n,l)||(w(l),j.current.layout=l,t&&t(l),Om(r,l,y.current))}}},[]),S=t.useCallback((e,t)=>{const{onLayout:n}=C.current,{layout:r,panelDataArray:a}=j.current;if(e.constraints.collapsible){const o=a.map(e=>e.constraints),{collapsedSize:s=0,panelSize:i=0,minSize:l=0,pivotIndices:c}=Km(a,e,r),d=null!=t?t:l;if(jm(i,s)){const t=b.current.get(e.id),s=null!=t&&t>=d?t:d,l=Mm({delta:Gm(a,e)===a.length-1?i-s:s-i,initialLayout:r,panelConstraints:o,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});Bm(r,l)||(w(l),j.current.layout=l,n&&n(l),Om(a,l,y.current))}}},[]),M=t.useCallback(e=>{const{layout:t,panelDataArray:n}=j.current,{panelSize:r}=Km(n,e,t);return km(null!=r,`Panel size not found for panel "${e.id}"`),r},[]),P=t.useCallback((e,t)=>{const{panelDataArray:n}=j.current,r=Gm(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:a,precision:o=3}){const s=n[a];let i;return i=null==s?null!=e?e.toPrecision(o):"1":1===r.length?"1":s.toPrecision(o),{flexBasis:0,flexGrow:i,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:f,layout:v,panelData:n,panelIndex:r})},[f,v]),L=t.useCallback(e=>{const{layout:t,panelDataArray:n}=j.current,{collapsedSize:r=0,collapsible:a,panelSize:o}=Km(n,e,t);return km(null!=o,`Panel size not found for panel "${e.id}"`),!0===a&&jm(o,r)},[]),T=t.useCallback(e=>{const{layout:t,panelDataArray:n}=j.current,{collapsedSize:r=0,collapsible:a,panelSize:o}=Km(n,e,t);return km(null!=o,`Panel size not found for panel "${e.id}"`),!a||Cm(o,r)>0},[]),E=t.useCallback(e=>{const{panelDataArray:t}=j.current;t.push(e),t.sort((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}),j.current.panelDataArrayChanged=!0,x()},[x]);zp(()=>{if(j.current.panelDataArrayChanged){j.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=C.current,{layout:r,panelDataArray:a}=j.current;let o=null;if(e){const t=function(e,t,n){var r,a;return null!==(a=(null!==(r=$m(e,n))&&void 0!==r?r:{})[Hm(t)])&&void 0!==a?a:null}(e,a,n);t&&(b.current=new Map(Object.entries(t.expandToSizes)),o=t.layout)}null==o&&(o=function({panelDataArray:e}){const t=Array(e.length),n=e.map(e=>e.constraints);let r=0,a=100;for(let o=0;o<e.length;o++){const e=n[o];km(e,`Panel constraints not found for index ${o}`);const{defaultSize:s}=e;null!=s&&(r++,t[o]=s,a-=s)}for(let o=0;o<e.length;o++){const s=n[o];km(s,`Panel constraints not found for index ${o}`);const{defaultSize:i}=s;if(null!=i)continue;const l=a/(e.length-r);r++,t[o]=l,a-=l}return t}({panelDataArray:a}));const s=Um({layout:o,panelConstraints:a.map(e=>e.constraints)});Im(r,s)||(w(s),j.current.layout=s,t&&t(s),Om(a,s,y.current))}}),zp(()=>{const e=j.current;return()=>{e.layout=[]}},[]);const A=t.useCallback(e=>{let t=!1;const n=m.current;if(n){"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0)}return function(n){n.preventDefault();const r=m.current;if(!r)return()=>null;const{direction:a,dragState:o,id:s,keyboardResizeBy:i,onLayout:l}=C.current,{layout:c,panelDataArray:d}=j.current,{initialLayout:u}=null!=o?o:{},h=Em(s,e,r);let p=Dm(n,e,a,o,i,r);const f="horizontal"===a;f&&t&&(p=-p);const g=Mm({delta:p,initialLayout:null!=u?u:c,panelConstraints:d.map(e=>e.constraints),pivotIndices:h,prevLayout:c,trigger:Up(n)?"keyboard":"mouse-or-touch"}),v=!Bm(c,g);(Xp(n)||Yp(n))&&k.current!=p&&(k.current=p,vm(e,v||0===p?0:f?p<0?nm:rm:p<0?am:om)),v&&(w(g),j.current.layout=g,l&&l(g),Om(d,g,y.current))}},[]),R=t.useCallback((e,t)=>{const{onLayout:n}=C.current,{layout:r,panelDataArray:a}=j.current,o=a.map(e=>e.constraints),{panelSize:s,pivotIndices:i}=Km(a,e,r);km(null!=s,`Panel size not found for panel "${e.id}"`);const l=Mm({delta:Gm(a,e)===a.length-1?s-t:t-s,initialLayout:r,panelConstraints:o,pivotIndices:i,prevLayout:r,trigger:"imperative-api"});Bm(r,l)||(w(l),j.current.layout=l,n&&n(l),Om(a,l,y.current))},[]),z=t.useCallback((e,t)=>{const{layout:n,panelDataArray:r}=j.current,{collapsedSize:a=0,collapsible:o}=t,{collapsedSize:s=0,collapsible:i,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:d}=Km(r,e,n);null!=d&&(o&&i&&jm(d,a)?jm(a,s)||R(e,s):d<c?R(e,c):d>l&&R(e,l))},[R]),I=t.useCallback((e,t)=>{const{direction:n}=C.current,{layout:r}=j.current;if(!m.current)return;const a=Rm(e,m.current);km(a,`Drag handle element not found for id "${e}"`);const o=Vm(n,t);g({dragHandleId:e,dragHandleRect:a.getBoundingClientRect(),initialCursorPosition:o,initialLayout:r})},[]),V=t.useCallback(()=>{g(null)},[]),D=t.useCallback(e=>{const{panelDataArray:t}=j.current,n=Gm(t,e);n>=0&&(t.splice(n,1),delete y.current[e.id],j.current.panelDataArrayChanged=!0,x())},[x]),O=t.useMemo(()=>({collapsePanel:N,direction:a,dragState:f,expandPanel:S,getPanelSize:M,getPanelStyle:P,groupId:p,isPanelCollapsed:L,isPanelExpanded:T,reevaluatePanelConstraints:z,registerPanel:E,registerResizeHandle:A,resizePanel:R,startDragging:I,stopDragging:V,unregisterPanel:D,panelGroupElement:m.current}),[N,f,a,S,M,P,p,L,T,z,E,A,R,I,V,D]),B={display:"flex",flexDirection:"horizontal"===a?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return t.createElement(bp.Provider,{value:O},t.createElement(u,{...h,children:n,className:r,id:s,ref:m,style:{...B,...d},[kp]:"",[Cp]:a,[jp]:p}))}const qm=t.forwardRef((e,n)=>t.createElement(Zm,{...e,forwardedRef:n}));function Gm(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function Km(e,t,n){const r=Gm(e,t),a=r===e.length-1?[r-1,r]:[r,r+1],o=n[r];return{...t.constraints,panelSize:o,pivotIndices:a}}function Qm({children:e=null,className:n="",disabled:r=!1,hitAreaMargins:a,id:o,onBlur:s,onClick:i,onDragging:l,onFocus:c,onPointerDown:d,onPointerUp:u,style:h={},tabIndex:p=0,tagName:m="div",...f}){var g,v;const w=t.useRef(null),x=t.useRef({onClick:i,onDragging:l,onPointerDown:d,onPointerUp:u});t.useEffect(()=>{x.current.onClick=i,x.current.onDragging=l,x.current.onPointerDown=d,x.current.onPointerUp=u});const y=t.useContext(bp);if(null===y)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:b,groupId:k,registerResizeHandle:C,startDragging:j,stopDragging:N,panelGroupElement:S}=y,M=Op(o),[P,L]=t.useState("inactive"),[T,E]=t.useState(!1),[A,R]=t.useState(null),z=t.useRef({state:P});zp(()=>{z.current.state=P}),t.useEffect(()=>{if(r)R(null);else{const e=C(M);R(()=>e)}},[r,M,C]);const I=null!==(g=null==a?void 0:a.coarse)&&void 0!==g?g:15,V=null!==(v=null==a?void 0:a.fine)&&void 0!==v?v:5;t.useEffect(()=>{if(r||null==A)return;const e=w.current;km(e,"Element ref not attached");let t=!1;return function(e,t,n,r,a){var o;const{ownerDocument:s}=t,i={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:a},l=null!==(o=cm.get(s))&&void 0!==o?o:0;return cm.set(s,l+1),um.add(i),ym(),function(){var t;dm.delete(e),um.delete(i);const n=null!==(t=cm.get(s))&&void 0!==t?t:1;if(cm.set(s,n-1),ym(),1===n&&cm.delete(s),im.includes(i)){const e=im.indexOf(i);e>=0&&im.splice(e,1),wm(),a("up",!0,null)}}}(M,e,b,{coarse:I,fine:V},(e,n,r)=>{if(n)switch(e){case"down":{L("drag"),t=!1,km(r,'Expected event to be defined for "down" action'),j(M,r);const{onDragging:e,onPointerDown:n}=x.current;null==e||e(!0),null==n||n();break}case"move":{const{state:e}=z.current;t=!0,"drag"!==e&&L("hover"),km(r,'Expected event to be defined for "move" action'),A(r);break}case"up":{L("hover"),N();const{onClick:e,onDragging:n,onPointerUp:r}=x.current;null==n||n(!1),null==r||r(),t||null==e||e();break}}else L("inactive")})},[I,b,r,V,C,M,A,j,N]),function({disabled:e,handleId:n,resizeHandler:r,panelGroupElement:a}){t.useEffect(()=>{if(e||null==r||null==a)return;const t=Rm(n,a);if(null==t)return;const o=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),r(e);break;case"F6":{e.preventDefault();const r=t.getAttribute(jp);km(r,`No group element found for id "${r}"`);const o=Lm(r,a),s=Tm(r,n,a);km(null!==s,`No resize element found for id "${n}"`),o[e.shiftKey?s>0?s-1:o.length-1:s+1<o.length?s+1:0].focus();break}}};return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},[a,e,n,r])}({disabled:r,handleId:M,resizeHandler:A,panelGroupElement:S});return t.createElement(m,{...f,children:e,className:n,id:o,onBlur:()=>{E(!1),null==s||s()},onFocus:()=>{E(!0),null==c||c()},ref:w,role:"separator",style:{touchAction:"none",userSelect:"none",...h},tabIndex:p,[Cp]:b,[jp]:k,[Lp]:"",[Tp]:"drag"===P?"pointer":T?"keyboard":void 0,[Ep]:!r,[Ap]:M,[Rp]:P})}Zm.displayName="PanelGroup",qm.displayName="forwardRef(PanelGroup)",Qm.displayName="PanelResizeHandle";const Jm=Fp;const ef=U.Value,tf=L.forwardRef(({className:t="",children:n,...a},o)=>e.jsxs(U.Trigger,{ref:o,className:Ie("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-gray-200 border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-600 [&>span]:line-clamp-1","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",t),...a,children:[n,e.jsx(U.Icon,{asChild:!0,children:e.jsx(r.CaretSortIcon,{className:"h-4 w-4 opacity-50"})})]}));tf.displayName=U.Trigger.displayName;const nf=L.forwardRef(({className:t="",...n},a)=>e.jsx(U.ScrollUpButton,{ref:a,className:Ie("flex cursor-default items-center justify-center py-1 dark:text-white",t),...n,children:e.jsx(r.ChevronUpIcon,{})}));nf.displayName=U.ScrollUpButton.displayName;const rf=L.forwardRef(({className:t="",...n},a)=>e.jsx(U.ScrollDownButton,{ref:a,className:Ie("flex cursor-default items-center justify-center py-1 dark:text-white",t),...n,children:e.jsx(r.ChevronDownIcon,{})}));rf.displayName=U.ScrollDownButton.displayName;const af=L.forwardRef(({className:t="",children:n,position:r="popper",...a},o)=>e.jsx(U.Portal,{children:e.jsxs(U.Content,{ref:o,className:Ie("bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-600","popper"===r?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":"",t),position:r,...a,children:[e.jsx(nf,{}),e.jsx(U.Viewport,{className:Ie("p-1","popper"===r?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:n}),e.jsx(rf,{})]})}));af.displayName=U.Content.displayName;const of=L.forwardRef(({className:t="",...n},r)=>e.jsx(U.Label,{ref:r,className:Ie("px-2 py-1.5 text-sm font-semibold",t),...n}));of.displayName=U.Label.displayName;const sf=L.forwardRef(({className:t="",children:n,...a},o)=>e.jsxs(U.Item,{ref:o,className:Ie("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",t),...a,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(U.ItemIndicator,{children:e.jsx(r.CheckIcon,{className:"h-4 w-4"})})}),e.jsx(U.ItemText,{children:n})]}));sf.displayName=U.Item.displayName;const lf=L.forwardRef(({className:t="",...n},r)=>e.jsx(U.Separator,{ref:r,className:Ie("-mx-1 my-1 h-px bg-muted",t),...n}));lf.displayName=U.Separator.displayName;const cf=e=>"object"==typeof e&&"divider"in e,df=e=>"object"==typeof e&&"value"in e&&"label"in e;var uf=Mf(),hf=e=>Cf(e,uf),pf=Mf();hf.write=e=>Cf(e,pf);var mf=Mf();hf.onStart=e=>Cf(e,mf);var ff=Mf();hf.onFrame=e=>Cf(e,ff);var gf=Mf();hf.onFinish=e=>Cf(e,gf);var vf=[];hf.setTimeout=(e,t)=>{const n=hf.now()+t,r=()=>{const e=vf.findIndex(e=>e.cancel==r);~e&&vf.splice(e,1),bf-=~e?1:0},a={time:n,handler:e,cancel:r};return vf.splice(wf(n),0,a),bf+=1,jf(),a};var wf=e=>~(~vf.findIndex(t=>t.time>e)||~vf.length);hf.cancel=e=>{mf.delete(e),ff.delete(e),gf.delete(e),uf.delete(e),pf.delete(e)},hf.sync=e=>{kf=!0,hf.batchedUpdates(e),kf=!1},hf.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,hf.onStart(n)}return r.handler=e,r.cancel=()=>{mf.delete(n),t=null},r};var xf="undefined"!=typeof window?window.requestAnimationFrame:()=>{};hf.use=e=>xf=e,hf.now="undefined"!=typeof performance?()=>performance.now():Date.now,hf.batchedUpdates=e=>e(),hf.catch=console.error,hf.frameLoop="always",hf.advance=()=>{"demand"!==hf.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Sf()};var yf=-1,bf=0,kf=!1;function Cf(e,t){kf?(t.delete(e),e(0)):(t.add(e),jf())}function jf(){yf<0&&(yf=0,"demand"!==hf.frameLoop&&xf(Nf))}function Nf(){~yf&&(xf(Nf),hf.batchedUpdates(Sf))}function Sf(){const e=yf;yf=hf.now();const t=wf(yf);t&&(Pf(vf.splice(0,t),e=>e.handler()),bf-=t),bf?(mf.flush(),uf.flush(e?Math.min(64,yf-e):16.667),ff.flush(),pf.flush(),gf.flush()):yf=-1}function Mf(){let e=new Set,t=e;return{add(n){bf+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(bf-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,bf-=t.size,Pf(t,t=>t(n)&&e.add(t)),bf+=e.size,t=e)}}}function Pf(e,t){e.forEach(e=>{try{t(e)}catch(e){hf.catch(e)}})}var Lf=Object.defineProperty,Tf={};function Ef(){}((e,t)=>{for(var n in t)Lf(e,n,{get:t[n],enumerable:!0})})(Tf,{assign:()=>Uf,colors:()=>Hf,createStringInterpolator:()=>Of,skipAnimation:()=>$f,to:()=>Bf,willAdvance:()=>Wf});var Af={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Rf(e,t){if(Af.arr(e)){if(!Af.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var zf=(e,t)=>e.forEach(t);function If(e,t,n){if(Af.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Vf=e=>Af.und(e)?[]:Af.arr(e)?e:[e];function Df(e,t){if(e.size){const n=Array.from(e);e.clear(),zf(n,t)}}var Of,Bf,Ff=(e,...t)=>Df(e,e=>e(...t)),_f=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Hf=null,$f=!1,Wf=Ef,Uf=e=>{e.to&&(Bf=e.to),e.now&&(hf.now=e.now),void 0!==e.colors&&(Hf=e.colors),null!=e.skipAnimation&&($f=e.skipAnimation),e.createStringInterpolator&&(Of=e.createStringInterpolator),e.requestAnimationFrame&&hf.use(e.requestAnimationFrame),e.batchedUpdates&&(hf.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Wf=e.willAdvance),e.frameLoop&&(hf.frameLoop=e.frameLoop)},Xf=new Set,Yf=[],Zf=[],qf=0,Gf={get idle(){return!Xf.size&&!Yf.length},start(e){qf>e.priority?(Xf.add(e),hf.onStart(Kf)):(Qf(e),hf(eg))},advance:eg,sort(e){if(qf)hf.onFrame(()=>Gf.sort(e));else{const t=Yf.indexOf(e);~t&&(Yf.splice(t,1),Jf(e))}},clear(){Yf=[],Xf.clear()}};function Kf(){Xf.forEach(Qf),Xf.clear(),hf(eg)}function Qf(e){Yf.includes(e)||Jf(e)}function Jf(e){Yf.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Yf,t=>t.priority>e.priority),0,e)}function eg(e){const t=Zf;for(let n=0;n<Yf.length;n++){const r=Yf[n];qf=r.priority,r.idle||(Wf(r),r.advance(e),r.idle||t.push(r))}return qf=0,(Zf=Yf).length=0,(Yf=t).length>0}var tg="[-+]?\\d*\\.?\\d+",ng=tg+"%";function rg(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ag=new RegExp("rgb"+rg(tg,tg,tg)),og=new RegExp("rgba"+rg(tg,tg,tg,tg)),sg=new RegExp("hsl"+rg(tg,ng,ng)),ig=new RegExp("hsla"+rg(tg,ng,ng,tg)),lg=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,cg=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,dg=/^#([0-9a-fA-F]{6})$/,ug=/^#([0-9a-fA-F]{8})$/;function hg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pg(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,o=hg(a,r,e+1/3),s=hg(a,r,e),i=hg(a,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*s)<<16|Math.round(255*i)<<8}function mg(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function fg(e){return(parseFloat(e)%360+360)%360/360}function gg(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function vg(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function wg(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=dg.exec(e))?parseInt(t[1]+"ff",16)>>>0:Hf&&void 0!==Hf[e]?Hf[e]:(t=ag.exec(e))?(mg(t[1])<<24|mg(t[2])<<16|mg(t[3])<<8|255)>>>0:(t=og.exec(e))?(mg(t[1])<<24|mg(t[2])<<16|mg(t[3])<<8|gg(t[4]))>>>0:(t=lg.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ug.exec(e))?parseInt(t[1],16)>>>0:(t=cg.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=sg.exec(e))?(255|pg(fg(t[1]),vg(t[2]),vg(t[3])))>>>0:(t=ig.exec(e))?(pg(fg(t[1]),vg(t[2]),vg(t[3]))|gg(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var xg=(e,t,n)=>{if(Af.fun(e))return e;if(Af.arr(e))return xg({range:e,output:t,extrapolate:n});if(Af.str(e.output[0]))return Of(e);const r=e,a=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",i=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,a,o,s,i,l){let c=l?l(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>n){if("identity"===i)return c;"clamp"===i&&(c=n)}if(r===a)return r;if(t===n)return e<=t?r:a;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:a===1/0?c+=r:c=c*(a-r)+r;return c}(e,o[t],o[t+1],a[t],a[t+1],l,s,i,r.map)}};var yg=Symbol.for("FluidValue.get"),bg=Symbol.for("FluidValue.observers"),kg=e=>Boolean(e&&e[yg]),Cg=e=>e&&e[yg]?e[yg]():e,jg=e=>e[bg]||null;function Ng(e,t){const n=e[bg];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}var Sg=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Mg(this,e)}},Mg=(e,t)=>Eg(e,yg,t);function Pg(e,t){if(e[yg]){let n=e[bg];n||Eg(e,bg,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Lg(e,t){const n=e[bg];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[bg]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Tg,Eg=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ag=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Rg=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,zg=new RegExp(`(${Ag.source})(%|[a-z]+)`,"i"),Ig=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Vg=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Dg=e=>{const[t,n]=Og(e);if(!t||_f())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Vg.test(n)?Dg(n):n||e},Og=e=>{const t=Vg.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Bg=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,Fg=e=>{Tg||(Tg=Hf?new RegExp(`(${Object.keys(Hf).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>Cg(e).replace(Vg,Dg).replace(Rg,wg).replace(Tg,wg)),n=t.map(e=>e.match(Ag).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>xg({...e,output:t}));return e=>{const n=!zg.test(t[0])&&t.find(e=>zg.test(e))?.replace(Ag,"");let a=0;return t[0].replace(Ag,()=>`${r[a++](e)}${n||""}`).replace(Ig,Bg)}},_g="react-spring: ",Hg=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${_g}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},$g=Hg(console.warn);var Wg=Hg(console.warn);function Ug(e){return Af.str(e)&&("#"==e[0]||/\d/.test(e)||!_f()&&Vg.test(e)||e in(Hf||{}))}var Xg=_f()?t.useEffect:t.useLayoutEffect;function Yg(){const e=t.useState()[1],n=(()=>{const e=t.useRef(!1);return Xg(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{n.current&&e(Math.random())}}var Zg=e=>t.useEffect(e,qg),qg=[];function Gg(e){const n=t.useRef(void 0);return t.useEffect(()=>{n.current=e}),n.current}var Kg=Symbol.for("Animated:node"),Qg=e=>e&&e[Kg],Jg=(e,t)=>{return n=e,r=Kg,a=t,Object.defineProperty(n,r,{value:a,writable:!0,configurable:!0});var n,r,a},ev=e=>e&&e[Kg]&&e[Kg].getPayload(),tv=class{constructor(){Jg(this,this)}getPayload(){return this.payload||[]}},nv=class e extends tv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Af.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Af.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Af.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},rv=class e extends nv{constructor(e){super(0),this._string=null,this._toString=xg({output:[e,e]})}static create(t){return new e(t)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Af.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=xg({output:[this.getValue(),e]})),this._value=0,super.reset()}},av={dependencies:null},ov=class extends tv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return If(this.source,(n,r)=>{var a;(a=n)&&a[Kg]===a?t[r]=n.getValue(e):kg(n)?t[r]=Cg(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&zf(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return If(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){av.dependencies&&kg(e)&&av.dependencies.add(e);const t=ev(e);t&&zf(t,e=>this.add(e))}},sv=class e extends ov{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(iv)),!0)}};function iv(e){return(Ug(e)?rv:nv).create(e)}function lv(e){const t=Qg(e);return t?t.constructor:Af.arr(e)?sv:Ug(e)?rv:nv}var cv=(e,n)=>{const r=!Af.fun(e)||e.prototype&&e.prototype.isReactComponent;return t.forwardRef((a,o)=>{const s=t.useRef(null),i=r&&t.useCallback(e=>{s.current=function(e,t){e&&(Af.fun(e)?e(t):e.current=t);return t}(o,e)},[o]),[l,c]=function(e,t){const n=new Set;av.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new ov(e),av.dependencies=null,[e,n]}(a,n),d=Yg(),u=()=>{const e=s.current;if(r&&!e)return;!1===(!!e&&n.applyAnimatedValues(e,l.getValue(!0)))&&d()},h=new dv(u,c),p=t.useRef(void 0);Xg(()=>(p.current=h,zf(c,e=>Pg(e,h)),()=>{p.current&&(zf(p.current.deps,e=>Lg(e,p.current)),hf.cancel(p.current.update))})),t.useEffect(u,[]),Zg(()=>()=>{const e=p.current;zf(e.deps,t=>Lg(t,e))});const m=n.getComponentProps(l.getValue());return L.createElement(e,{...m,ref:i})})},dv=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&hf.write(this.update)}};var uv=Symbol.for("AnimatedComponent"),hv=e=>Af.str(e)?e:e&&Af.str(e.displayName)?e.displayName:Af.fun(e)&&e.name||null;function pv(e,...t){return Af.fun(e)?e(...t):e}var mv=(e,t)=>!0===e||!!(t&&e&&(Af.fun(e)?e(t):Vf(e).includes(t))),fv=(e,t)=>Af.obj(e)?t&&e[t]:e,gv=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,vv=e=>e,wv=(e,t=vv)=>{let n=xv;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const n=t(e[a],a);Af.und(n)||(r[a]=n)}return r},xv=["config","onProps","onStart","onChange","onPause","onResume","onRest"],yv={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function bv(e){const t=function(e){const t={};let n=0;if(If(e,(e,r)=>{yv[r]||(t[r]=e,n++)}),n)return t}(e);if(t){const n={to:t};return If(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function kv(e){return e=Cg(e),Af.arr(e)?e.map(kv):Ug(e)?Tf.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Cv(e){return Af.fun(e)||Af.arr(e)&&Af.obj(e[0])}var jv={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},Nv=class{constructor(){this.velocity=0,Object.assign(this,jv)}};function Sv(e,t){if(Af.und(t.decay)){const n=!Af.und(t.tension)||!Af.und(t.friction);!n&&Af.und(t.frequency)&&Af.und(t.damping)&&Af.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Mv=[],Pv=class{constructor(){this.changed=!1,this.values=Mv,this.toValues=null,this.fromValues=Mv,this.config=new Nv,this.immediate=!1}};function Lv(e,{key:t,props:n,defaultProps:r,state:a,actions:o}){return new Promise((s,i)=>{let l,c,d=mv(n.cancel??r?.cancel,t);if(d)p();else{Af.und(n.pause)||(a.paused=mv(n.pause,t));let e=r?.pause;!0!==e&&(e=a.paused||mv(e,t)),l=pv(n.delay||0,t),e?(a.resumeQueue.add(h),o.pause()):(o.resume(),h())}function u(){a.resumeQueue.add(h),a.timeouts.delete(c),c.cancel(),l=c.time-hf.now()}function h(){l>0&&!Tf.skipAnimation?(a.delayed=!0,c=hf.setTimeout(p,l),a.pauseQueue.add(u),a.timeouts.add(c)):p()}function p(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(u),a.timeouts.delete(c),e<=(a.cancelId||0)&&(d=!0);try{o.start({...n,callId:e,cancel:d},s)}catch(e){i(e)}}})}var Tv=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Rv(e.get()):t.every(e=>e.noop)?Ev(e.get()):Av(e.get(),t.every(e=>e.finished)),Ev=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Av=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Rv=e=>({value:e,cancelled:!0,finished:!1});function zv(e,t,n,r){const{callId:a,parentId:o,onRest:s}=t,{asyncTo:i,promise:l}=n;return o||e!==i||t.reset?n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const c=wv(t,(e,t)=>"onRest"===t?void 0:e);let d,u;const h=new Promise((e,t)=>(d=e,u=t)),p=e=>{const t=a<=(n.cancelId||0)&&Rv(r)||a!==n.asyncId&&Av(r,!1);if(t)throw e.result=t,u(e),e},m=(e,t)=>{const o=new Vv,s=new Dv;return(async()=>{if(Tf.skipAnimation)throw Iv(n),s.result=Av(r,!1),u(s),s;p(o);const i=Af.obj(e)?{...e}:{...t,to:e};i.parentId=a,If(c,(e,t)=>{Af.und(i[t])&&(i[t]=e)});const l=await r.start(i);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};let f;if(Tf.skipAnimation)return Iv(n),Av(r,!1);try{let t;t=Af.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(d),h]),f=Av(r.get(),!0,!1)}catch(e){if(e instanceof Vv)f=e.result;else{if(!(e instanceof Dv))throw e;f=e.result}}finally{a==n.asyncId&&(n.asyncId=o,n.asyncTo=o?i:void 0,n.promise=o?l:void 0)}return Af.fun(s)&&hf.batchedUpdates(()=>{s(f,r,r.item)}),f})():l}function Iv(e,t){Df(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Vv=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Dv=class extends Error{constructor(){super("SkipAnimationSignal")}},Ov=e=>e instanceof Fv,Bv=1,Fv=class extends Sg{constructor(){super(...arguments),this.id=Bv++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Qg(this);return e&&e.getValue()}to(...e){return Tf.to(this,e)}interpolate(...e){return $g(`${_g}The "interpolate" function is deprecated in v9 (use "to" instead)`),Tf.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ng(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Gf.sort(this),Ng(this,{type:"priority",parent:this,priority:e})}},_v=Symbol.for("SpringPhase"),Hv=e=>(1&e[_v])>0,$v=e=>(2&e[_v])>0,Wv=e=>(4&e[_v])>0,Uv=(e,t)=>t?e[_v]|=3:e[_v]&=-3,Xv=(e,t)=>t?e[_v]|=4:e[_v]&=-5,Yv=class extends Fv{constructor(e,t){if(super(),this.animation=new Pv,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Af.und(e)||!Af.und(t)){const n=Af.obj(e)?{...e}:{...t,from:e};Af.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!($v(this)||this._state.asyncTo)||Wv(this)}get goal(){return Cg(this.animation.to)}get velocity(){const e=Qg(this);return e instanceof nv?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return Hv(this)}get isAnimating(){return $v(this)}get isPaused(){return Wv(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:o}=r,s=ev(r.to);!s&&kg(r.to)&&(a=Vf(Cg(r.to))),r.values.forEach((i,l)=>{if(i.done)return;const c=i.constructor==rv?1:s?s[l].lastPosition:a[l];let d=r.immediate,u=c;if(!d){if(u=i.lastPosition,o.tension<=0)return void(i.done=!0);let t=i.elapsedTime+=e;const n=r.fromValues[l],a=null!=i.v0?i.v0:i.v0=Af.arr(o.velocity)?o.velocity[l]:o.velocity;let s;const h=o.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(Af.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);u=n+a/(1-e)*(1-r),d=Math.abs(i.lastPosition-u)<=h,s=a*r}else{s=null==i.lastVelocity?a:i.lastVelocity;const t=o.restVelocity||h/10,r=o.clamp?0:o.bounce,l=!Af.und(r),p=n==c?i.v0>0:n<c;let m,f=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(m=Math.abs(s)>t,m||(d=Math.abs(c-u)<=h,!d));++e){l&&(f=u==c||u>c==p,f&&(s=-s*r,u=c));s+=(1e-6*-o.tension*(u-c)+.001*-o.friction*s)/o.mass*g,u+=s*g}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,i.durationProgress>0&&(i.elapsedTime=o.duration*i.durationProgress,t=i.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,i.durationProgress=r),u=n+o.easing(r)*(c-n),s=(u-i.lastPosition)/e,d=1==r}i.lastVelocity=s,Number.isNaN(u)&&(console.warn("Got NaN while animating:",this),d=!0)}s&&!s[l].done&&(d=!1),d?i.done=!0:t=!1,i.setValue(u,o.round)&&(n=!0)});const i=Qg(this),l=i.getValue();if(t){const e=Cg(r.to);l===e&&!n||o.decay?n&&o.decay&&this._onChange(l):(i.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return hf.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if($v(this)){const{to:e,config:t}=this.animation;hf.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Af.und(e)?(n=this.queue||[],this.queue=[]):n=[Af.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>Tv(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Iv(this._state,e&&this._lastCallId),hf.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Af.obj(n)?n[t]:n,(null==n||Cv(n))&&(n=void 0),r=Af.obj(r)?r[t]:r,null==r&&(r=void 0);const a={to:n,from:r};return Hv(this)||(e.reverse&&([n,r]=[r,n]),r=Cg(r),Af.und(r)?Qg(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,wv(e,(e,t)=>/^on/.test(t)?fv(e,n):e)),ew(this,e,"onProps"),tw(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return Lv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Wv(this)||(Xv(this,!0),Ff(o.pauseQueue),tw(this,"onPause",Av(this,Zv(this,this.animation.to)),this))},resume:()=>{Wv(this)&&(Xv(this,!1),$v(this)&&this._resume(),Ff(o.resumeQueue),tw(this,"onResume",Av(this,Zv(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=qv(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Rv(this));const r=!Af.und(e.to),a=!Af.und(e.from);if(r||a){if(!(t.callId>this._lastToId))return n(Rv(this));this._lastToId=t.callId}const{key:o,defaultProps:s,animation:i}=this,{to:l,from:c}=i;let{to:d=l,from:u=c}=e;!a||r||t.default&&!Af.und(d)||(d=u),t.reverse&&([d,u]=[u,d]);const h=!Rf(u,c);h&&(i.from=u),u=Cg(u);const p=!Rf(d,l);p&&this._focus(d);const m=Cv(t.to),{config:f}=i,{decay:g,velocity:v}=f;(r||a)&&(f.velocity=0),t.config&&!m&&function(e,t,n){n&&(Sv(n={...n},t),t={...n,...t}),Sv(e,t),Object.assign(e,t);for(const t in jv)null==e[t]&&(e[t]=jv[t]);let{frequency:r,damping:a}=e;const{mass:o}=e;Af.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*a*o/r)}(f,pv(t.config,o),t.config!==s.config?pv(s.config,o):void 0);let w=Qg(this);if(!w||Af.und(d))return n(Av(this,!0));const x=Af.und(t.reset)?a&&!t.default:!Af.und(u)&&mv(t.reset,o),y=x?u:this.get(),b=kv(d),k=Af.num(b)||Af.arr(b)||Ug(b),C=!m&&(!k||mv(s.immediate||t.immediate,o));if(p){const e=lv(d);if(e!==w.constructor){if(!C)throw Error(`Cannot animate between ${w.constructor.name} and ${e.name}, as the "to" prop suggests`);w=this._set(b)}}const j=w.constructor;let N=kg(d),S=!1;if(!N){const e=x||!Hv(this)&&h;(p||e)&&(S=Rf(kv(y),b),N=!S),(Rf(i.immediate,C)||C)&&Rf(f.decay,g)&&Rf(f.velocity,v)||(N=!0)}if(S&&$v(this)&&(i.changed&&!x?N=!0:N||this._stop(l)),!m&&((N||kg(l))&&(i.values=w.getPayload(),i.toValues=kg(d)?null:j==rv?[1]:Vf(b)),i.immediate!=C&&(i.immediate=C,C||x||this._set(l)),N)){const{onRest:e}=i;zf(Jv,e=>ew(this,t,e));const r=Av(this,Zv(this,l));Ff(this._pendingCalls,r),this._pendingCalls.add(n),i.changed&&hf.batchedUpdates(()=>{i.changed=!x,e?.(r,this),x?pv(s.onRest,r):i.onStart?.(r,this)})}x&&this._set(y),m?n(zv(t.to,t,this._state,this)):N?this._start():$v(this)&&!p?this._pendingCalls.add(n):n(Ev(y))}_focus(e){const t=this.animation;e!==t.to&&(jg(this)&&this._detach(),t.to=e,jg(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;kg(t)&&(Pg(t,this),Ov(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;kg(e)&&Lg(e,this)}_set(e,t=!0){const n=Cg(e);if(!Af.und(n)){const e=Qg(this);if(!e||!Rf(n,e.getValue())){const r=lv(n);e&&e.constructor==r?e.setValue(n):Jg(this,r.create(n)),e&&hf.batchedUpdates(()=>{this._onChange(n,t)})}}return Qg(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,tw(this,"onStart",Av(this,Zv(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),pv(this.animation.onChange,e,this)),pv(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Qg(this).reset(Cg(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),$v(this)||(Uv(this,!0),Wv(this)||this._resume())}_resume(){Tf.skipAnimation?this.finish():Gf.start(this)}_stop(e,t){if($v(this)){Uv(this,!1);const n=this.animation;zf(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ng(this,{type:"idle",parent:this});const r=t?Rv(this.get()):Av(this.get(),Zv(this,e??n.to));Ff(this._pendingCalls,r),n.changed&&(n.changed=!1,tw(this,"onRest",r,this))}}};function Zv(e,t){const n=kv(t);return Rf(kv(e.get()),n)}function qv(e,t=e.loop,n=e.to){const r=pv(t);if(r){const a=!0!==r&&bv(r),o=(a||e).reverse,s=!a||a.reset;return Gv({...e,loop:t,default:!1,pause:void 0,to:!o||Cv(n)?n:void 0,from:s?e.from:void 0,reset:s,...a})}}function Gv(e){const{to:t,from:n}=e=bv(e),r=new Set;return Af.obj(t)&&Qv(t,r),Af.obj(n)&&Qv(n,r),e.keys=r.size?Array.from(r):null,e}function Kv(e){const t=Gv(e);return Af.und(t.default)&&(t.default=wv(t)),t}function Qv(e,t){If(e,(e,n)=>null!=e&&t.add(n))}var Jv=["onStart","onRest","onChange","onPause","onResume"];function ew(e,t,n){e.animation[n]=t[n]!==gv(t,n)?fv(t[n],e.key):void 0}function tw(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var nw=["onStart","onChange","onRest"],rw=1,aw=class{constructor(e,t){this.id=rw++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Af.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Gv(e)),this}start(e){let{queue:t}=this;return e?t=Vf(e).map(Gv):this.queue=[],this._flush?this._flush(this,t):(uw(this,t),ow(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;zf(Vf(t),t=>n[t].stop(!!e))}else Iv(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(Af.und(e))this.start({pause:!0});else{const t=this.springs;zf(Vf(e),e=>t[e].pause())}return this}resume(e){if(Af.und(e))this.start({pause:!1});else{const t=this.springs;zf(Vf(e),e=>t[e].resume())}return this}each(e){If(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,Df(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const o=!r&&this._started,s=a||o&&n.size?this.get():null;a&&t.size&&Df(t,([e,t])=>{t.value=s,e(t,this,this._item)}),o&&(this._started=!1,Df(n,([e,t])=>{t.value=s,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}hf.onFrame(this._onFrame)}};function ow(e,t){return Promise.all(t.map(t=>sw(e,t))).then(t=>Tv(e,t))}async function sw(e,t,n){const{keys:r,to:a,from:o,loop:s,onRest:i,onResolve:l}=t,c=Af.obj(t.default)&&t.default;s&&(t.loop=!1),!1===a&&(t.to=null),!1===o&&(t.from=null);const d=Af.arr(a)||Af.fun(a)?a:void 0;d?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):zf(nw,n=>{const r=t[n];if(Af.fun(r)){const a=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=a.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):a.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}});const u=e._state;t.pause===!u.paused?(u.paused=t.pause,Ff(t.pause?u.pauseQueue:u.resumeQueue)):u.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),p=!0===t.cancel||!0===gv(t,"cancel");(d||p&&u.asyncId)&&h.push(Lv(++e._lastAsyncId,{props:t,state:u,actions:{pause:Ef,resume:Ef,start(t,n){p?(Iv(u,e._lastAsyncId),n(Rv(e))):(t.onRest=i,n(zv(d,t,u,e)))}}})),u.paused&&await new Promise(e=>{u.resumeQueue.add(e)});const m=Tv(e,await Promise.all(h));if(s&&m.finished&&(!n||!m.noop)){const n=qv(t,s,a);if(n)return uw(e,[n]),sw(e,n,!0)}return l&&hf.batchedUpdates(()=>l(m,e,e.item)),m}function iw(e,t){const n={...e.springs};return t&&zf(Vf(t),e=>{Af.und(e.keys)&&(e=Gv(e)),Af.obj(e.to)||(e={...e,to:void 0}),dw(n,e,e=>cw(e))}),lw(e,n),n}function lw(e,t){If(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,Pg(t,e))})}function cw(e,t){const n=new Yv;return n.key=e,t&&Pg(n,t),n}function dw(e,t,n){t.keys&&zf(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function uw(e,t){zf(t,t=>{dw(e.springs,t,t=>cw(t,e))})}var hw=L.createContext({pause:!1,immediate:!1}),pw=()=>{const e=[],t=function(t){Wg(`${_g}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return zf(e,(e,a)=>{if(Af.und(t))r.push(e.start());else{const o=n(t,e,a);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return zf(e,e=>e.pause(...arguments)),this},t.resume=function(){return zf(e,e=>e.resume(...arguments)),this},t.set=function(t){zf(e,(e,n)=>{const r=Af.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){const n=[];return zf(e,(e,r)=>{if(Af.und(t))n.push(e.start());else{const a=this._getProps(t,e,r);a&&n.push(e.start(a))}}),n},t.stop=function(){return zf(e,e=>e.stop(...arguments)),this},t.update=function(t){return zf(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return Af.fun(e)?e(n,t):e};return t._getProps=n,t};var mw=class extends Fv{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=xg(...t);const n=this._get(),r=lv(n);Jg(this,r.create(n))}advance(e){const t=this._get();Rf(t,this.get())||(Qg(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&gw(this._active)&&vw(this)}_get(){const e=Af.arr(this.source)?this.source.map(Cg):Vf(Cg(this.source));return this.calc(...e)}_start(){this.idle&&!gw(this._active)&&(this.idle=!1,zf(ev(this),e=>{e.done=!1}),Tf.skipAnimation?(hf.batchedUpdates(()=>this.advance()),vw(this)):Gf.start(this))}_attach(){let e=1;zf(Vf(this.source),t=>{kg(t)&&Pg(t,this),Ov(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){zf(Vf(this.source),e=>{kg(e)&&Lg(e,this)}),this._active.clear(),vw(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Vf(this.source).reduce((e,t)=>Math.max(e,(Ov(t)?t.priority:0)+1),0))}};function fw(e){return!1!==e.idle}function gw(e){return!e.size||Array.from(e).every(fw)}function vw(e){e.idle||(e.idle=!0,zf(ev(e),e=>{e.done=!0}),Ng(e,{type:"idle",parent:e}))}Tf.assign({createStringInterpolator:Fg,to:(e,t)=>new mw(e,t)});var ww=/^--/;function xw(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||ww.test(e)||bw.hasOwnProperty(e)&&bw[e]?(""+t).trim():t+"px"}var yw={};var bw={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kw=["Webkit","Ms","Moz","O"];bw=Object.keys(bw).reduce((e,t)=>(kw.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),bw);var Cw=/^(matrix|translate|scale|rotate|skew)/,jw=/^(translate)/,Nw=/^(rotate|skew)/,Sw=(e,t)=>Af.num(e)&&0!==e?e+t:e,Mw=(e,t)=>Af.arr(e)?e.every(e=>Mw(e,t)):Af.num(e)?e===t:parseFloat(e)===t,Pw=class extends ov{constructor({x:e,y:t,z:n,...r}){const a=[],o=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>Sw(e,"px")).join(",")})`,Mw(e,0)])),If(r,(e,t)=>{if("transform"===t)a.push([e||""]),o.push(e=>[e,""===e]);else if(Cw.test(t)){if(delete r[t],Af.und(e))return;const n=jw.test(t)?"px":Nw.test(t)?"deg":"";a.push(Vf(e)),o.push("rotate3d"===t?([e,t,r,a])=>[`rotate3d(${e},${t},${r},${Sw(a,n)})`,Mw(a,0)]:e=>[`${t}(${e.map(e=>Sw(e,n)).join(",")})`,Mw(e,t.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new Lw(a,o)),super(r)}},Lw=class extends Sg{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return zf(this.inputs,(n,r)=>{const a=Cg(n[0]),[o,s]=this.transforms[r](Af.arr(a)?a:n.map(Cg));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){1==e&&zf(this.inputs,e=>zf(e,e=>kg(e)&&Pg(e,this)))}observerRemoved(e){0==e&&zf(this.inputs,e=>zf(e,e=>kg(e)&&Lg(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),Ng(this,e)}};Tf.assign({batchedUpdates:C.unstable_batchedUpdates,createStringInterpolator:Fg,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Tw=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new ov(e),getComponentProps:r=e=>e}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=hv(e)||"Anonymous";return(e=Af.str(e)?o[e]||(o[e]=cv(e,a)):e[uv]||(e[uv]=cv(e,a))).displayName=`Animated(${t})`,e};return If(e,(t,n)=>{Af.arr(e)&&(n=hv(t)),o[n]=o(t)}),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:a,children:o,scrollTop:s,scrollLeft:i,viewBox:l,...c}=t,d=Object.values(c),u=Object.keys(c).map(t=>n||e.hasAttribute(t)?t:yw[t]||(yw[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==o&&(e.textContent=o);for(const t in a)if(a.hasOwnProperty(t)){const n=xw(t,a[t]);ww.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach((t,n)=>{e.setAttribute(t,d[n])}),void 0!==r&&(e.className=r),void 0!==s&&(e.scrollTop=s),void 0!==i&&(e.scrollLeft=i),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Pw(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ew=Tw.animated;const Aw=e=>{if("undefined"!=typeof Intl&&"Segmenter"in Intl){const t=new Intl.Segmenter("en",{granularity:"grapheme"}).segment(e);return Array.from(t).map(e=>e.segment)}return[...e]},Rw=({value:t,onChange:n,isSearching:r,placeholder:a})=>{const o=!0===r,s=null!=t&&t.length>0;return e.jsxs("div",{className:"relative w-full",children:[e.jsx("div",{className:"relative rounded-lg transition-all duration-500 ease-in-out",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-3 top-1/2 z-50 -translate-y-1/2",children:e.jsx(wt,{className:Ie("h-4 w-4 transition-all duration-500 ease-in-out",o&&s?"text-blue-400":"text-gray-400")})}),e.jsx("input",{type:"text",value:t,onChange:n,placeholder:a,className:"peer relative z-20 w-full rounded-lg bg-surface-secondary px-10 py-2 outline-none ring-0 backdrop-blur-sm transition-all duration-500 ease-in-out placeholder:text-gray-400 focus:outline-none focus:ring-0"}),e.jsx("div",{className:`pointer-events-none absolute inset-0 z-20 rounded-lg bg-gradient-to-r from-blue-500/20 via-purple-500/20 to-blue-500/20 transition-all duration-500 ease-in-out ${o&&s?"opacity-100 blur-sm":"opacity-0 blur-none"} `}),e.jsx("div",{className:`absolute right-3 top-1/2 z-20 -translate-y-1/2 transition-all duration-500 ease-in-out ${o&&s?"scale-100 opacity-100":"scale-0 opacity-0"} `,children:e.jsxs("div",{className:"relative h-2 w-2",children:[e.jsx("div",{className:"absolute inset-0 animate-ping rounded-full bg-blue-500/60"}),e.jsx("div",{className:"absolute inset-0 rounded-full bg-blue-500"})]})})]})}),e.jsx("div",{className:`absolute -inset-8 -z-10 transition-all duration-700 ease-in-out ${o&&s?"scale-105 opacity-100":"scale-100 opacity-0"} `,children:e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("div",{className:`bg-gradient-radial absolute inset-0 from-blue-500/10 to-transparent transition-opacity duration-700 ease-in-out ${o&&s?"animate-pulse-slow opacity-100":"opacity-0"} `}),e.jsx("div",{className:`absolute inset-0 bg-gradient-to-r from-purple-500/5 via-blue-500/5 to-purple-500/5 blur-xl transition-all duration-700 ease-in-out ${o&&s?"animate-gradient-x opacity-100":"opacity-0"} `})]})}),e.jsx("div",{className:"absolute inset-0 -z-20 scale-100 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-blue-500/10 opacity-0 blur-xl transition-all duration-500 ease-in-out peer-focus:scale-105 peer-focus:opacity-100"})]})};const zw=t.forwardRef((t,n)=>{const{className:r="icon-md",size:a="1.2em"}=t;return e.jsx("svg",{ref:n,fill:"none",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:a,width:a,className:Ie(r),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2929 4.29291C15.0641 2.52167 17.9359 2.52167 19.7071 4.2929C21.4783 6.06414 21.4783 8.93588 19.7071 10.7071L18.7073 11.7069L11.1603 19.2539C10.7182 19.696 10.1489 19.989 9.53219 20.0918L4.1644 20.9864C3.84584 21.0395 3.52125 20.9355 3.29289 20.7071C3.06453 20.4788 2.96051 20.1542 3.0136 19.8356L3.90824 14.4678C4.01103 13.8511 4.30396 13.2818 4.7461 12.8397L13.2929 4.29291ZM13 7.41422L6.16031 14.2539C6.01293 14.4013 5.91529 14.591 5.88102 14.7966L5.21655 18.7835L9.20339 18.119C9.40898 18.0847 9.59872 17.9871 9.7461 17.8397L16.5858 11L13 7.41422ZM18 9.5858L14.4142 6.00001L14.7071 5.70712C15.6973 4.71693 17.3027 4.71693 18.2929 5.70712C19.2831 6.69731 19.2831 8.30272 18.2929 9.29291L18 9.5858Z",fill:"currentColor"})})});function Iw({className:t="m-auto",size:n=20,color:r="currentColor",bgOpacity:a=.1,speed:o=.75}){const s={"--spinner-speed":`${o}s`};return e.jsxs("svg",{className:Ie(t,"spinner"),width:n,height:n,viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",style:s,children:[e.jsx("defs",{children:e.jsx("style",{type:"text/css",children:"\n .spinner {\n transform-origin: center;\n overflow: visible;\n animation: spinner-rotate var(--spinner-speed) linear infinite;\n }\n @keyframes spinner-rotate {\n to { transform: rotate(360deg); }\n }\n "})}),e.jsx("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:r,strokeOpacity:a}),e.jsx("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:r,strokeDasharray:"25 75",strokeLinecap:"round"})]})}function Vw({className:t=""}){return e.jsx("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ie("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0633 5.67375C18.5196 5.98487 18.6374 6.607 18.3262 7.06331L10.8262 18.0633C10.6585 18.3093 10.3898 18.4678 10.0934 18.4956C9.79688 18.5234 9.50345 18.4176 9.29289 18.2071L4.79289 13.7071C4.40237 13.3166 4.40237 12.6834 4.79289 12.2929C5.18342 11.9023 5.81658 11.9023 6.20711 12.2929L9.85368 15.9394L16.6738 5.93664C16.9849 5.48033 17.607 5.36263 18.0633 5.67375Z",fill:"currentColor"})})}function Dw({className:t=""}){return e.jsx("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ie("icon-md h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5555 4C10.099 4 9.70052 4.30906 9.58693 4.75114L9.29382 5.8919H14.715L14.4219 4.75114C14.3083 4.30906 13.9098 4 13.4533 4H10.5555ZM16.7799 5.8919L16.3589 4.25342C16.0182 2.92719 14.8226 2 13.4533 2H10.5555C9.18616 2 7.99062 2.92719 7.64985 4.25342L7.22886 5.8919H4C3.44772 5.8919 3 6.33961 3 6.8919C3 7.44418 3.44772 7.8919 4 7.8919H4.10069L5.31544 19.3172C5.47763 20.8427 6.76455 22 8.29863 22H15.7014C17.2354 22 18.5224 20.8427 18.6846 19.3172L19.8993 7.8919H20C20.5523 7.8919 21 7.44418 21 6.8919C21 6.33961 20.5523 5.8919 20 5.8919H16.7799ZM17.888 7.8919H6.11196L7.30423 19.1057C7.3583 19.6142 7.78727 20 8.29863 20H15.7014C16.2127 20 16.6417 19.6142 16.6958 19.1057L17.888 7.8919ZM10 10C10.5523 10 11 10.4477 11 11V16C11 16.5523 10.5523 17 10 17C9.44772 17 9 16.5523 9 16V11C9 10.4477 9.44772 10 10 10ZM14 10C14.5523 10 15 10.4477 15 11V16C15 16.5523 14.5523 17 14 17C13.4477 17 13 16.5523 13 16V11C13 10.4477 13.4477 10 14 10Z",fill:"currentColor"})})}const Ow=t.memo(({checked:t,onChange:n,ariaLabel:r})=>e.jsx("div",{role:"button",tabIndex:0,onKeyDown:e=>e.stopPropagation(),className:"flex h-full w-[30px] items-center justify-center",onClick:e=>e.stopPropagation(),children:e.jsx(At,{checked:t,onCheckedChange:n,"aria-label":r})}));Ow.displayName="SelectionCheckbox";const Bw=t.memo(({row:n,isSmallScreen:r,onSelectionChange:a,index:o,isSearching:s})=>{const i=t.useCallback(e=>{n.toggleSelected(e),a?.(n.id,e)},[n,a]);return e.jsx(wa,{"data-state":n.getIsSelected()?"selected":void 0,className:"motion-safe:animate-fadeIn border-b border-border-light transition-all duration-300 ease-out hover:bg-surface-secondary",style:{animationDelay:20*o+"ms",transform:`translateY(${s?"4px":"0"})`,opacity:s?.5:1},children:n.getVisibleCells().map(t=>"select"===t.column.id?e.jsx(ya,{className:"px-2 py-1 transition-all duration-300",children:e.jsx(Ow,{checked:n.getIsSelected(),onChange:i,ariaLabel:"Select row"})},t.id):e.jsx(ya,{className:"w-0 max-w-0 px-2 py-1 align-middle text-xs transition-all duration-300 sm:px-4 sm:py-2 sm:text-sm",style:Fw(t.column.columnDef,r),children:e.jsx("div",{className:"overflow-hidden text-ellipsis",children:N.flexRender(t.column.columnDef.cell,t.getContext())})},t.id))})});function Fw(e,t){return{width:t?e.meta?.mobileSize:e.meta?.size,minWidth:e.meta?.minWidth,maxWidth:e.meta?.size}}const _w=t.memo(({onDelete:t,isDeleting:n,disabled:r,isSmallScreen:a})=>t?e.jsx(Et,{variant:"outline",onClick:t,disabled:r,className:Ie("min-w-[40px] transition-all duration-200",a&&"px-2 py-1"),children:n?e.jsx(Iw,{className:"size-4"}):e.jsxs(e.Fragment,{children:[e.jsx(Dw,{className:"size-3.5 text-red-400 sm:size-4"}),!a&&e.jsx("span",{className:"ml-2",children:"Delete"})]})}):null);class Hw{constructor(e,t,n,r,a,o,s,i){this.width=e.width,this.height=e.height,this.ctx=t,this.x=n,this.y=r,this.color=a,this.speed=this.random(.1,.9)*o,this.size=0,this.sizeStep=.4*Math.random(),this.minSize=.5,this.maxSizeInteger=2,this.maxSize=this.random(this.minSize,this.maxSizeInteger),this.delay=s,this.counter=0,this.counterStep=4*Math.random()+.01*(this.width+this.height),this.isIdle=!1,this.isReverse=!1,this.isShimmer=!1,this.activationThreshold=i}random(e,t){return Math.random()*(t-e)+e}draw(){const e=.5*this.maxSizeInteger-.5*this.size;this.ctx.fillStyle=this.color,this.ctx.fillRect(this.x+e,this.y+e,this.size,this.size)}appear(){this.isIdle=!1,this.counter<=this.delay?this.counter+=this.counterStep:(this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.draw())}appearWithProgress(e){if(e-this.activationThreshold<=0)this.isIdle=!0;else{if(this.counter<=this.delay)return this.counter+=this.counterStep,void(this.isIdle=!1);this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.isIdle=!1,this.draw()}}disappear(){this.isShimmer=!1,this.counter=0,this.size<=0?this.isIdle=!0:(this.size-=.1,this.draw())}shimmer(){this.size>=this.maxSize?this.isReverse=!0:this.size<=this.minSize&&(this.isReverse=!1),this.size+=this.isReverse?-this.speed:this.speed}}const $w=(e,t)=>{const n=parseInt(String(e),10);return n<=0||t?0:n>=100?.1:.001*n},Ww=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Uw={default:{gap:5,speed:35,colors:"#f8fafc,#f1f5f9,#cbd5e1",noFocus:!1},blue:{gap:10,speed:25,colors:"#e0f2fe,#7dd3fc,#0ea5e9",noFocus:!1},yellow:{gap:3,speed:20,colors:"#fef08a,#fde047,#eab308",noFocus:!1},pink:{gap:6,speed:80,colors:"#fecdd3,#fda4af,#e11d48",noFocus:!0}};const Xw=t.forwardRef(({children:t,handleFileChange:n},r)=>e.jsxs(e.Fragment,{children:[t,e.jsx("input",{ref:r,multiple:!0,type:"file",style:{display:"none"},onChange:n})]}));function Yw(e,t){return 0===e.length?t||"Select...":1===e.length?e[0]:`${e.length} items selected`}Xw.displayName="FileUpload";const Zw=({items:t,menuId:n,keyPrefix:r,className:a,iconClassName:o,itemClassName:s,modal:i,portal:l,sameWidth:c,gutter:d=8,finalFocus:u,unmountOnHide:h,preserveTabOrder:p})=>{const m=E.useMenuContext();return e.jsx(E.Menu,{id:n,modal:i,gutter:d,portal:l,sameWidth:c,finalFocus:u,unmountOnHide:h,preserveTabOrder:p,className:Ie("popover-ui z-50",a),children:t.filter(e=>!1!==e.show).map((t,n)=>!0===t.separate?e.jsx(E.MenuSeparator,{className:"my-1 h-px bg-white/10"},n):e.jsxs(E.MenuItem,{id:t.id,className:Ie("group flex w-full cursor-pointer items-center gap-2 rounded-lg px-3 py-3.5 text-sm text-text-primary outline-none transition-colors duration-200 hover:bg-surface-hover focus:bg-surface-hover md:px-2.5 md:py-2",s),disabled:t.disabled,ref:t.ref,hideOnClick:t.hideOnClick,onClick:e=>{e.preventDefault(),t.onClick&&t.onClick(e),!1!==t.hideOnClick&&m?.hide()},children:[null!=t.icon&&e.jsx("span",{className:Ie("mr-2 size-4",o),"aria-hidden":"true",children:t.icon}),t.label,null!=t.kbd&&e.jsxs("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline group-focus:inline dark:text-white/50",children:["⌘",t.kbd]})]},`${r??""}${n}-${t.id??""}`))})},qw=({theme:n,onChange:r})=>{const a={system:e.jsx(ft,{}),dark:e.jsx(gt,{color:"white"}),light:e.jsx(xt,{})},o="dark"===n?"light":"dark",s=`Switch to ${o} theme`;return t.useEffect(()=>{const e=e=>{e.ctrlKey&&e.shiftKey&&"t"===e.key.toLowerCase()&&(e.preventDefault(),r(o))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[o,r]),e.jsx("button",{className:"flex items-center gap-2 rounded-lg p-2 transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","aria-label":s,"aria-keyshortcuts":"Ctrl+Shift+T",onClick:e=>{e.preventDefault(),r(o)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r(o))},children:a[n]})},Gw=L.forwardRef(({icon:n,label:r,setValue:o,className:s,checked:i,defaultChecked:l,isCheckedClassName:c},d)=>{const u=a.useCheckboxStore(),h=a.useStoreState(u,e=>e?.value);return t.useEffect(()=>{void 0!==i&&u.setValue(i)},[i,u]),t.useEffect(()=>{void 0!==l&&void 0===i&&u.setValue(l)},[l,i,u]),e.jsxs(a.Checkbox,{ref:d,store:u,onChange:e=>{e.stopPropagation(),"boolean"==typeof h&&o?.({e:e,value:!h})},className:Ie("group relative inline-flex items-center justify-center gap-1.5","rounded-full border border-border-medium text-sm font-medium","size-9 p-2 transition-all md:w-full md:p-3","bg-transparent shadow-sm hover:bg-surface-hover hover:shadow-md active:shadow-inner",h&&c&&c,s),render:e.jsx("button",{type:"button","aria-label":r}),children:[n&&e.jsx("span",{className:"icon-md text-text-primary",children:n}),e.jsx("span",{className:"hidden truncate md:block",children:r})]})});Gw.displayName="CheckboxButton";const Kw=t.forwardRef((t,n)=>{const{title:r,description:a,main:o,buttons:s,leftButtons:i,selection:l,className:c,headerClassName:d,footerClassName:u,showCloseButton:h,showCancelButton:p=!0}=t,{selectHandler:m,selectClasses:f,selectText:g}=l||{};return e.jsxs(En,{showCloseButton:h,ref:n,className:Ie("shadow-2xl dark:bg-gray-700",c||""),onClick:e=>e.stopPropagation(),children:[e.jsxs(An,{className:Ie(d??""),children:[e.jsx(zn,{className:"text-lg font-medium leading-6 text-gray-800 dark:text-gray-200",children:r}),a&&e.jsx(In,{className:"text-gray-600 dark:text-gray-300",children:a})]}),e.jsx("div",{className:"px-6",children:o||null}),e.jsxs(Rn,{className:u,children:[e.jsx("div",{children:i||null}),e.jsxs("div",{className:"flex h-auto gap-3",children:[p&&e.jsx(Vn,{className:"border-gray-100 hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-600",children:"cancel"}),s||null,l?e.jsx(Vn,{onClick:m,className:`${f||"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} inline-flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm`,children:g}):null]})]})]})});var Qw=t.memo(function({selectedValue:n,displayValue:r,items:a,setValue:o,ariaLabel:s,searchPlaceholder:i,selectPlaceholder:l,containerClassName:c,isCollapsed:d,SelectIcon:u,showCarat:h,className:p,disabled:m,iconClassName:f,iconSide:g="left",selectId:v}){const[w,x]=t.useState(""),y=t.useRef(null),[b,k]=t.useState(null),C=e=>({id:`item-${e.value}`,value:e.value,label:e.label,icon:e.icon}),j=E.useComboboxStore({defaultItems:a.map(C),resetValueOnHide:!0,value:w,setValue:x}),N=E.useSelectStore({combobox:j,defaultItems:a.map(C),value:n,setValue:o}),S=t.useMemo(()=>{const e=gn(a,w,{keys:["value","label"],baseSort:(e,t)=>e.index<t.index?-1:1});return e.map(C)},[w,a]);t.useEffect(()=>{y.current&&!d&&k(y.current.offsetWidth)},[d]);const P=Ie("flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",f),L=Ie("mr-2 flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",f);return e.jsxs("div",{className:Ie("flex w-full items-center justify-center px-1",c),children:[e.jsx(E.SelectLabel,{store:N,className:"sr-only",children:s}),e.jsxs(E.Select,{ref:y,store:N,id:v,disabled:m,className:Ie("flex items-center justify-center gap-2 rounded-full bg-surface-secondary","text-text-primary hover:bg-surface-tertiary","border border-border-light",d?"h-10 w-10":"h-10 w-full rounded-xl px-3 py-2 text-sm",p),children:[null!=u&&"left"===g&&e.jsx("div",{className:P,children:u}),!d&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"flex-grow truncate text-left",children:null!=r?r||l:n||l}),null!=u&&"right"===g&&e.jsx("div",{className:P,children:u}),h&&e.jsx(lt,{className:"h-4 w-4 text-text-secondary"})]})]}),e.jsxs(E.SelectPopover,{store:N,gutter:4,portal:!0,className:Ie("animate-popover z-50 overflow-hidden rounded-xl border border-border-light bg-surface-secondary shadow-lg"),style:{width:d?"300px":b??"300px"},children:[e.jsx("div",{className:"py-1.5",children:e.jsxs("div",{className:"relative",children:[e.jsx(wt,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-primary"}),e.jsx(E.Combobox,{store:j,autoSelect:!0,placeholder:i,className:"w-full rounded-md bg-surface-secondary py-2 pl-9 pr-3 text-sm text-text-primary focus:outline-none"})]})}),e.jsx("div",{className:"max-h-[300px] overflow-auto",children:e.jsx(E.ComboboxList,{store:j,children:e.jsx(M.SelectRenderer,{store:N,items:S,itemSize:36,overscan:5,children:({value:t,icon:n,label:r,...a})=>e.jsxs(E.ComboboxItem,{...a,className:Ie("flex w-full cursor-pointer items-center px-3 text-sm","text-text-primary hover:bg-surface-tertiary","data-[active-item]:bg-surface-tertiary"),render:e.jsx(E.SelectItem,{value:t}),children:[null!=n&&"left"===g&&e.jsx("div",{className:L,children:n}),e.jsx("span",{className:"flex-grow truncate text-left",children:r}),null!=n&&"right"===g&&e.jsx("div",{className:L,children:n})]},a.id)})})})]})]})});const Jw=t.forwardRef((t,n)=>{const r=jn(),{title:a,main:o,buttons:s,selection:i,className:l,leftButtons:c,description:d="",mainClassName:u,headerClassName:h,footerClassName:p,showCloseButton:m,overlayClassName:f,showCancelButton:g=!0}=t,{selectHandler:v,selectClasses:w,selectText:x,isLoading:y}=i||{};return e.jsxs(oa,{overlayClassName:f,showCloseButton:m,ref:n,className:Ie("w-11/12 border-none bg-background text-foreground",l??""),onClick:e=>e.stopPropagation(),children:[e.jsxs(sa,{className:Ie(h??""),children:[e.jsx(la,{children:a}),d&&e.jsx(ca,{className:"items-center justify-center",children:d})]}),e.jsx("div",{className:Ie("px-0 py-2",u),children:null!=o?o:null}),e.jsxs(ia,{className:p,children:[e.jsx("div",{children:null!=c?e.jsx("div",{className:"mt-3 flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:mt-0 sm:flex-row",children:c}):null}),e.jsxs("div",{className:"flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:flex-row",children:[g&&e.jsx(ra,{asChild:!0,children:e.jsx(Et,{variant:"outline",children:r("com_ui_cancel")})}),null!=s?s:null,i?e.jsx(ra,{onClick:v,disabled:y,className:`${w??"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm disabled:opacity-80 max-sm:order-first max-sm:w-full sm:order-none`,children:!0===y?e.jsx(Iw,{className:"size-4 text-white"}):x}):null]})]})]})}),ex=L.forwardRef(({className:t,options:n,onSelect:r,...a},o)=>{const[s,i]=L.useState(!1),[l,c]=L.useState(a.value||""),[d,u]=L.useState(-1),h=L.useRef(null),p=e=>{c(e),i(!1),u(-1),r&&r(e),a.onChange&&a.onChange({target:{value:e}})};return L.useEffect(()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&(i(!1),u(-1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),e.jsxs("div",{className:"relative",ref:h,children:[e.jsxs("div",{className:"relative",children:[e.jsx(Hn,{...a,value:l,onChange:e=>{c(e.target.value),a.onChange&&a.onChange(e)},onKeyDown:e=>{switch(e.key){case"ArrowDown":e.preventDefault(),s?u(e=>e<n.length-1?e+1:e):i(!0);break;case"ArrowUp":e.preventDefault(),u(e=>e>0?e-1:0);break;case"Enter":e.preventDefault(),s&&-1!==d&&p(n[d]),i(!1);break;case"Escape":i(!1),u(-1)}},"aria-haspopup":"listbox","aria-controls":"dropdown-list",className:Ie("bg-surface-secondary",t??""),ref:o}),e.jsx("button",{type:"button",className:"text-tertiary absolute inset-y-0 right-0 flex items-center rounded-md px-2 hover:text-secondary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring-primary",onClick:()=>i(!s),"aria-label":s?"Close dropdown":"Open dropdown",children:e.jsx("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),s&&e.jsx("ul",{id:"dropdown-list",role:"listbox",className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md border border-border-medium bg-surface-secondary shadow-lg focus:ring-1 focus:ring-inset focus:ring-ring-primary",children:n.map((t,n)=>e.jsx("li",{role:"option","aria-selected":n===d,className:Ie("cursor-pointer rounded-md px-3 py-2","focus:bg-surface-tertiary focus:outline-none focus:ring-1 focus:ring-inset focus:ring-ring-primary",n===d?"bg-surface-active text-primary":"text-secondary hover:bg-surface-tertiary"),onClick:()=>p(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(t))},tabIndex:0,children:t},n))})]})});ex.displayName="InputWithDropdown";const tx=t.createContext({showToast:()=>({})});exports.Accordion=Oe,exports.AccordionContent=_e,exports.AccordionItem=Be,exports.AccordionTrigger=Fe,exports.AlertDialog=We,exports.AlertDialogAction=Je,exports.AlertDialogCancel=et,exports.AlertDialogContent=Ze,exports.AlertDialogDescription=Qe,exports.AlertDialogFooter=Ge,exports.AlertDialogHeader=qe,exports.AlertDialogTitle=Ke,exports.AlertDialogTrigger=Ue,exports.AnimatedSearchInput=Rw,exports.AnimatedTabs=function({tabs:n,className:r="",tabListClassName:a="",tabClassName:o="",tabPanelClassName:s="",containerClassName:i="",tabListProps:l={},defaultSelectedId:c}){const d=n.map((e,t)=>e.id||`tab-${t}`),u=c||d[0],h=t.useRef(null);return t.useEffect(()=>{const e=h.current;if(!e)return;const t=()=>{const t=e.querySelector('[data-state="active"]');t&&(e.style.setProperty("--tab-left",`${t.offsetLeft}px`),e.style.setProperty("--tab-width",`${t.offsetWidth}px`))};t();const n=new MutationObserver(t);return n.observe(e,{attributes:!0,subtree:!0,attributeFilter:["data-state"]}),()=>n.disconnect()},[n]),e.jsx("div",{className:`w-full ${r}`,children:e.jsxs(E.TabProvider,{defaultSelectedId:u,children:[e.jsx(E.TabList,{ref:h,"aria-label":"Tabs",className:`animated-tab-list flex py-1 ${a}`,...l,children:n.map((t,n)=>e.jsx(He,{id:d[n],disabled:t.disabled,className:o,"data-state":d[n]===u?"active":"inactive",children:t.label},d[n]))}),e.jsx("div",{className:Ie("animated-panels relative flex w-full flex-col items-center overflow-hidden p-0",i),children:n.map((t,n)=>e.jsx($e,{id:`panel-${d[n]}`,tabId:d[n],className:s,children:t.content},`panel-${d[n]}`))})]})})},exports.AnthropicIcon=function({size:t=25,className:n=""}){return e.jsxs("svg",{viewBox:"0 0 24 16",overflow:"visible",width:t,height:t,className:Ie("fill-current text-black",n),children:[e.jsx("g",{style:{transform:"translateX(13px) rotateZ(0deg)",transformOrigin:"4.775px 7.73501px"},children:e.jsx("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M0,0 C0,0 6.1677093505859375,15.470022201538086 6.1677093505859375,15.470022201538086 C6.1677093505859375,15.470022201538086 9.550004005432129,15.470022201538086 9.550004005432129,15.470022201538086 C9.550004005432129,15.470022201538086 3.382294178009033,0 3.382294178009033,0 C3.382294178009033,0 0,0 0,0 C0,0 0,0 0,0z"})}),e.jsx("g",{style:{transform:"none",transformOrigin:"7.935px 7.73501px"},opacity:"1",children:e.jsx("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 7.93500280380249,3.911694288253784 7.93500280380249,3.911694288253784 C7.93500280380249,3.911694288253784 10.045400619506836,9.348296165466309 10.045400619506836,9.348296165466309 C10.045400619506836,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309z M6.166755199432373,0 C6.166755199432373,0 0,15.470022201538086 0,15.470022201538086 C0,15.470022201538086 3.4480772018432617,15.470022201538086 3.4480772018432617,15.470022201538086 C3.4480772018432617,15.470022201538086 4.709278583526611,12.22130012512207 4.709278583526611,12.22130012512207 C4.709278583526611,12.22130012512207 11.16093635559082,12.22130012512207 11.16093635559082,12.22130012512207 C11.16093635559082,12.22130012512207 12.421928405761719,15.470022201538086 12.421928405761719,15.470022201538086 C12.421928405761719,15.470022201538086 15.87000560760498,15.470022201538086 15.87000560760498,15.470022201538086 C15.87000560760498,15.470022201538086 9.703250885009766,0 9.703250885009766,0 C9.703250885009766,0 6.166755199432373,0 6.166755199432373,0 C6.166755199432373,0 6.166755199432373,0 6.166755199432373,0z"})})]})},exports.AnthropicMinimalIcon=function(){return e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"m17.304 3.5472h-3.6718l6.6959 16.906h3.6718zm-10.608 0-6.6959 16.906h3.7442l1.3693-3.5502h7.0052l1.3693 3.5502h3.7442l-6.6959-16.906zm-0.37114 10.216 2.2914-5.9413 2.2914 5.9413z"})})},exports.AppleIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 814 1000",id:"apple",className:"h-6 w-6",children:e.jsx("path",{d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z",fill:"currentColor"})})},exports.ArchiveIcon=function({className:t="icon-md"}){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.62188 3.07918C3.87597 2.571 4.39537 2.25 4.96353 2.25H13.0365C13.6046 2.25 14.124 2.571 14.3781 3.07918L15.75 5.82295V13.5C15.75 14.7426 14.7426 15.75 13.5 15.75H4.5C3.25736 15.75 2.25 14.7426 2.25 13.5V5.82295L3.62188 3.07918ZM13.0365 3.75H4.96353L4.21353 5.25H13.7865L13.0365 3.75ZM14.25 6.75H3.75V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25H13.5C13.9142 14.25 14.25 13.9142 14.25 13.5V6.75ZM6.75 9C6.75 8.58579 7.08579 8.25 7.5 8.25H10.5C10.9142 8.25 11.25 8.58579 11.25 9C11.25 9.41421 10.9142 9.75 10.5 9.75H7.5C7.08579 9.75 6.75 9.41421 6.75 9Z",fill:"currentColor"})})},exports.AssistantIcon=function({className:t="",size:n="1em"}){const r=n,a=n;return e.jsxs("svg",{width:a,height:r,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Ie("text-token-secondary h-2/3 w-2/3",t),xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),e.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),e.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})},exports.AttachmentIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 7C9 4.23858 11.2386 2 14 2C16.7614 2 19 4.23858 19 7V15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15V9C5 8.44772 5.44772 8 6 8C6.55228 8 7 8.44772 7 9V15C7 17.7614 9.23858 20 12 20C14.7614 20 17 17.7614 17 15V7C17 5.34315 15.6569 4 14 4C12.3431 4 11 5.34315 11 7V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V9C13 8.44772 13.4477 8 14 8C14.5523 8 15 8.44772 15 9V15C15 16.6569 13.6569 18 12 18C10.3431 18 9 16.6569 9 15V7Z",fill:"currentColor"})})},exports.AzureMinimalIcon=function({size:t=25,className:n="h-4 w-4"}){const r=t,a=t;return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ie(n,""),width:a,height:r,xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"m8.0458 0.81981a1.1197 1.1197 0 0 0-1.0608 0.76184l-6.7912 20.123a1.1178 1.1178 0 0 0 1.0592 1.4751h5.4647a1.1197 1.1197 0 0 0 1.0608-0.7615l1.3528-4.0084-2.3684-2.2107a0.51536 0.51536 0 0 1 0.35193-0.8923h3.0639l1.8213-5.3966-2.8111-8.3294a1.1181 1.1181 0 0 0-1.0595-0.76049h-0.0836z"}),e.jsx("path",{d:"m7.1147 15.307a0.51536 0.51536 0 0 0-0.35193 0.8923l7.1552 6.6782a1.1248 1.1248 0 0 0 0.76724 0.30238h0.2417a1.1181 1.1181 0 0 0 1.0534-1.4755l-2.1591-6.3974z"}),e.jsx("path",{d:"m17.015 1.5807a1.1178 1.1178 0 0 0-1.0593-0.76049h-7.8258a1.1181 1.1181 0 0 1 1.0593 0.76049l6.7916 20.123a1.1181 1.1181 0 0 1-1.0593 1.4757h7.8261a1.1181 1.1181 0 0 0 1.059-1.4757z"})]})},exports.Badge=function({icon:t,label:n,id:r,isActive:a=!1,isEditing:o=!1,isDragging:s=!1,isAvailable:i=!0,isInChat:l=!1,onBadgeAction:c,onToggle:d,className:u,...h}){const p=o&&i,m="1"===r&&l;return e.jsxs(Xh.button,{onClick:e=>{if(m)return e.preventDefault(),void e.stopPropagation();!o&&d&&(e.preventDefault(),e.stopPropagation(),d())},className:Ie("group relative inline-flex items-center gap-1.5 rounded-full px-4 py-1.5","border border-border-medium text-sm font-medium transition-shadow md:w-full","size-9 p-2 md:p-3",a?"bg-surface-active shadow-md":"bg-surface-chat shadow-sm hover:bg-surface-hover hover:shadow-md","active:scale-95 active:shadow-inner",p&&"cursor-move",m&&"cursor-not-allowed opacity-50 hover:shadow-sm",u),animate:{scale:s?1.1:1,boxShadow:s?"0 10px 25px rgba(0,0,0,0.1)":void 0},whileTap:{scale:s?1.1:m?1:.97},transition:{type:"tween",duration:.1,ease:"easeOut"},...h,children:[t&&e.jsx(t,{className:Ie("relative h-5 w-5 md:h-4 md:w-4",!n&&"mx-auto")}),e.jsx("span",{className:"relative hidden md:inline",children:n}),o&&!s&&e.jsx(Xh.button,{className:"absolute -right-1 -top-1 flex h-6 w-6 items-center justify-center rounded-full bg-surface-secondary-alt text-text-primary shadow-sm md:h-5 md:w-5",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},whileTap:{scale:.9},onMouseDown:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),c?.()},children:i?e.jsx(yt,{className:"h-3 w-3"}):e.jsx(vt,{className:"h-3 w-3"})})]})},exports.BedrockIcon=function({size:t=25,className:n=""}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:Ie("fill-current text-black",n),children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M12,18.1397014 L9.574,18.9487014 L8.628,18.3177014 L9.658,17.9737014 L9.342,17.0257014 L7.574,17.6147014 L7,17.2327014 L7,14.4997014 C7,14.3107014 6.893,14.1377014 6.724,14.0527014 L5,13.1907014 L5,10.8087014 L6.5,10.0587014 L8,10.8087014 L8,12.4997014 C8,12.6897014 8.107,12.8627014 8.276,12.9477014 L10.276,13.9477014 L10.724,13.0527014 L9,12.1907014 L9,10.8087014 L10.724,9.94770136 C10.893,9.86270136 11,9.68970136 11,9.49970136 L11,7.99970136 L10,7.99970136 L10,9.19070136 L8.5,9.94070136 L7,9.19070136 L7,6.76770136 L8,6.10070136 L8,7.99970136 L9,7.99970136 L9,5.43470136 L9.574,5.05170136 L12,5.86070136 L12,18.1397014 Z M17.5,16.9997014 C17.775,16.9997014 18,17.2237014 18,17.4997014 C18,17.7757014 17.775,17.9997014 17.5,17.9997014 C17.225,17.9997014 17,17.7757014 17,17.4997014 C17,17.2237014 17.225,16.9997014 17.5,16.9997014 L17.5,16.9997014 Z M16.5,5.99970136 C16.775,5.99970136 17,6.22370136 17,6.49970136 C17,6.77570136 16.775,6.99970136 16.5,6.99970136 C16.225,6.99970136 16,6.77570136 16,6.49970136 C16,6.22370136 16.225,5.99970136 16.5,5.99970136 L16.5,5.99970136 Z M18.5,11.9997014 C18.775,11.9997014 19,12.2237014 19,12.4997014 C19,12.7757014 18.775,12.9997014 18.5,12.9997014 C18.225,12.9997014 18,12.7757014 18,12.4997014 C18,12.2237014 18.225,11.9997014 18.5,11.9997014 L18.5,11.9997014 Z M17.092,12.9997014 C17.299,13.5807014 17.849,13.9997014 18.5,13.9997014 C19.327,13.9997014 20,13.3277014 20,12.4997014 C20,11.6727014 19.327,10.9997014 18.5,10.9997014 C17.849,10.9997014 17.299,11.4197014 17.092,11.9997014 L13,11.9997014 L13,9.99970136 L16.5,9.99970136 C16.776,9.99970136 17,9.77670136 17,9.49970136 L17,7.90770136 C17.581,7.70070136 18,7.15070136 18,6.49970136 C18,5.67270136 17.327,4.99970136 16.5,4.99970136 C15.673,4.99970136 15,5.67270136 15,6.49970136 C15,7.15070136 15.419,7.70070136 16,7.90770136 L16,8.99970136 L13,8.99970136 L13,5.49970136 C13,5.28470136 12.862,5.09370136 12.658,5.02570136 L9.658,4.02570136 C9.511,3.97670136 9.351,3.99870136 9.223,4.08370136 L6.223,6.08370136 C6.084,6.17670136 6,6.33270136 6,6.49970136 L6,9.19070136 L4.276,10.0527014 C4.107,10.1377014 4,10.3107014 4,10.4997014 L4,13.4997014 C4,13.6897014 4.107,13.8627014 4.276,13.9477014 L6,14.8087014 L6,17.4997014 C6,17.6667014 6.084,17.8237014 6.223,17.9157014 L9.223,19.9157014 C9.306,19.9717014 9.402,19.9997014 9.5,19.9997014 C9.553,19.9997014 9.606,19.9917014 9.658,19.9737014 L12.658,18.9737014 C12.862,18.9067014 13,18.7157014 13,18.4997014 L13,15.9997014 L15.293,15.9997014 L16.146,16.8537014 L16.159,16.8407014 C16.061,17.0407014 16,17.2627014 16,17.4997014 C16,18.3267014 16.673,18.9997014 17.5,18.9997014 C18.327,18.9997014 19,18.3267014 19,17.4997014 C19,16.6727014 18.327,15.9997014 17.5,15.9997014 C17.262,15.9997014 17.04,16.0607014 16.841,16.1597014 L16.854,16.1467014 L15.854,15.1467014 C15.76,15.0527014 15.633,14.9997014 15.5,14.9997014 L13,14.9997014 L13,12.9997014 L17.092,12.9997014 Z"})})})},exports.BirthdayIcon=function({className:t=""}){return e.jsxs("svg",{version:"1.1",viewBox:"0 0 233.33 290",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:Ie("h-9 w-9",t),children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"linearGradient1842",x1:"163.92",x2:"173.66",y1:"22.212",y2:"-6.5784",gradientTransform:"translate(.10391 .050143)",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#640a62",offset:"0"}),e.jsx("stop",{stopColor:"#852283",offset:".49917"}),e.jsx("stop",{stopColor:"#640a62",offset:"1"})]})}),e.jsxs("g",{children:[e.jsx("path",{transform:"matrix(.43416 .90084 -.89966 .4366 0 0)",d:"m259.29-126.03a232.2 237.56 0 0 1-17.412 231.34l-193.32-131.59z",fill:"url(#linearGradient1842)"}),e.jsx("path",{transform:"matrix(.6967 .051926 -.051926 .6967 35.578 23.196)",d:"m50.818 31.415c-1.4654 2.4749-10.838 2.4195-12.997 4.3204-2.1584 1.9009-3.288 11.206-5.9282 12.347-2.6402 1.1409-10.191-4.4132-13.054-4.1441-2.8636 0.26917-9.2466 7.133-12.053 6.5041-2.8066-0.62889-5.6503-9.5602-8.1252-11.026-2.4749-1.4654-11.673 0.33572-13.574-1.8227s1.0482-11.056-0.0927-13.696c-1.1409-2.6402-9.6412-6.5898-9.9104-9.4533-0.26917-2.8636 7.3463-8.328 7.9752-11.135 0.62889-2.8066-3.9265-10.998-2.4612-13.473 1.4654-2.4749 10.838-2.4195 12.997-4.3204 2.1584-1.9009 3.288-11.206 5.9282-12.347 2.6402-1.1409 10.191 4.4132 13.054 4.1441 2.8636-0.26917 9.2466-7.133 12.053-6.5041 2.8066 0.62889 5.6503 9.5602 8.1252 11.026s11.673-0.33572 13.574 1.8227c1.9009 2.1584-1.0482 11.056 0.0927 13.696 1.1409 2.6402 9.6412 6.5898 9.9104 9.4533 0.26917 2.8635-7.3463 8.328-7.9752 11.135-0.62889 2.8066 3.9265 10.998 2.4612 13.473z",fill:"#ff9d78",stroke:"#f29472",strokeWidth:"4.7877"}),e.jsx("circle",{cx:"170.36",cy:"215.76",r:"12.903",fill:"#cfffff"}),e.jsx("path",{d:"m220.77 174.77c-88.526 101.03-191.21 85.731-209.5 82.142-2.2101-2e-5 -2.6686 0.42426-3.437 2.0021l-1.7042 7.5028c0.056197 2.3603 0.37544 2.6428 1.9121 3.5409 18.396 3.3746 130.27 19.488 223.46-86.881 0.64011-1.5095 0.46653-3.1324-0.59137-4.7337l-5.1558-3.6482c-1.586-0.8743-3.9524-0.94332-4.9837 0.0751z",color:"#000000",fill:"#ff9d78",stroke:"#f29472",strokeLinejoin:"round",strokeWidth:"2.8913"}),e.jsxs("g",{fill:"#cfffff",children:[e.jsx("circle",{cx:"72.684",cy:"99.47",r:"12.903"}),e.jsx("circle",{cx:"99.144",cy:"172.32",r:"12.903"}),e.jsx("circle",{cx:"59.617",cy:"214.78",r:"12.903"}),e.jsx("circle",{cx:"135.4",cy:"118.42",r:"12.903"}),e.jsx("path",{transform:"rotate(38.66)",d:"m254.21-1.9608a12.903 12.903 0 0 1-6.4852 11.194 12.903 12.903 0 0 1-12.937-0.0582 12.903 12.903 0 0 1-6.3843-11.252l12.903 0.1161z"}),e.jsx("path",{d:"m29.476 158.16a12.903 12.903 0 0 0-3.6562 0.5293l-3.3691 23.189a12.903 12.903 0 0 0 7.0254 2.0879 12.903 12.903 0 0 0 12.904-12.904 12.903 12.903 0 0 0-12.904-12.902z"})]})]})]})},exports.Blocks=function({className:t=""}){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:Ie("lucide lucide-blocks",t),children:[e.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),e.jsx("path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3"})]})},exports.Breadcrumb=bt,exports.BreadcrumbEllipsis=Mt,exports.BreadcrumbItem=Ct,exports.BreadcrumbLink=jt,exports.BreadcrumbList=kt,exports.BreadcrumbPage=Nt,exports.BreadcrumbSeparator=St,exports.Button=Et,exports.ChatGPTMinimalIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"lucide lucide-bot",children:[e.jsx("rect",{width:"18",height:"10",x:"3",y:"11",rx:"2"}),e.jsx("circle",{cx:"12",cy:"5",r:"2"}),e.jsx("path",{d:"M12 7v4"}),e.jsx("line",{x1:"8",x2:"8",y1:"16",y2:"16"}),e.jsx("line",{x1:"16",x2:"16",y1:"16",y2:"16"})]})},exports.CheckMark=Vw,exports.Checkbox=At,exports.CheckboxButton=Gw,exports.CircleHelpIcon=function({className:t="icon-md-heavy",size:n="1em"}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Ie(t),children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e.jsx("path",{d:"M12 17h.01"})]})},exports.Clipboard=function({className:t="icon-md-heavy",size:n="1em"}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ie(t),children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-9a3 3 0 0 1 3-3h2zm2 2h5a3 3 0 0 1 3 3v5h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-9a1 1 0 0 0-1 1zM5 9a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1z",clipRule:"evenodd"})})},exports.CodeyIcon=function({size:t=25,className:n=""}){return e.jsx("svg",{width:t,height:t,className:Ie("dark:fill-white",n),viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:e.jsx("path",{d:"M2 4.006C2 2.898 2.897 2 4.006 2h9.988C15.102 2 16 2.897 16 4.006v9.988A2.005 2.005 0 0 1 13.994 16H4.006A2.005 2.005 0 0 1 2 13.994V4.006zM13.992 9l.003-.003L10.997 6 9.75 7.247 11.503 9 9.75 10.753 10.997 12l2.997-2.997L13.992 9zm-9.99 0L4 8.997 6.997 6l1.247 1.247L6.492 9l1.753 1.753L6.997 12 4 9.003 4.003 9z",fillRule:"evenodd"})})},exports.Collapsible=Rt,exports.CollapsibleContent=It,exports.CollapsibleTrigger=zt,exports.Combobox=function({selectedValue:n,displayValue:o,items:s,setValue:i,ariaLabel:l,searchPlaceholder:c,selectPlaceholder:d,isCollapsed:u,SelectIcon:h}){const p=(s??[]).map(e=>"string"==typeof e?{label:e,value:e}:e),{open:m,setOpen:f,setSearchValue:g,matches:v}=Cn({value:n,options:p});return e.jsx(U.Root,{value:n,onValueChange:i,open:m,onOpenChange:()=>{!0!==m?setTimeout(()=>{f(!m)},75):f(!1)},children:e.jsxs(a.ComboboxProvider,{open:m,setOpen:f,resetValueOnHide:!0,includesBaseElement:!1,setValue:e=>{t.startTransition(()=>{g(e)})},children:[e.jsx(tf,{"aria-label":l,className:Ie("flex items-center gap-2 [&>span]:line-clamp-1 [&>span]:flex [&>span]:w-full [&>span]:items-center [&>span]:gap-1 [&>span]:truncate [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0",u?"flex h-9 w-9 shrink-0 items-center justify-center p-0 [&>span]:w-auto [&>svg]:hidden":"","bg-white text-black hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-gray-500 dark:bg-gray-850 dark:text-white"),children:e.jsxs(ef,{placeholder:d,children:[e.jsx("div",{className:"assistant-item flex items-center justify-center overflow-hidden rounded-full",children:h||e.jsx(r.ChevronDownIcon,{})}),e.jsx("span",{className:Ie("ml-2",u?"hidden":""),style:{userSelect:"none"},children:n?o??n:d&&d})]})}),e.jsx(U.Portal,{children:e.jsxs(U.Content,{role:"dialog","aria-label":l+"s",position:"popper",className:Ie("bg-popover text-popover-foreground relative z-50 max-h-[52vh] min-w-[8rem] overflow-hidden rounded-md border border-gray-200 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-600","data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1","bg-white dark:bg-gray-700"),children:[e.jsxs(U.Viewport,{className:"mb-5 h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",children:[e.jsxs("div",{className:"group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-white px-3 py-2 text-black duration-300 dark:bg-gray-700 dark:text-white",children:[e.jsx(wt,{className:"h-4 w-4 text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"}),e.jsx(a.Combobox,{autoSelect:!0,placeholder:c,className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-gray-700/10 dark:focus:ring-gray-200/10",onBlurCapture:e=>{e.preventDefault(),e.stopPropagation()}}),e.jsx(a.ComboboxCancel,{hideWhenEmpty:!0,className:"relative flex h-5 w-5 items-center justify-end text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"})]}),e.jsx(a.ComboboxList,{className:"overflow-y-auto p-1 py-2",children:v.map(({label:t,value:n,icon:o})=>e.jsx(U.Item,{value:`${n??""}`,asChild:!0,children:e.jsxs(a.ComboboxItem,{className:Ie("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","rounded-lg hover:bg-gray-100/50 hover:bg-gray-50 dark:text-white dark:hover:bg-gray-600"),onTouchEnd:()=>{i(`${n??""}`),f(!1)},children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(U.ItemIndicator,{children:e.jsx(r.CheckIcon,{className:"h-4 w-4"})})}),e.jsx(U.ItemText,{children:e.jsxs("div",{className:"flex items-center justify-center gap-3 dark:text-white [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0 [&_svg]:text-foreground",children:[e.jsx("div",{className:"assistant-item overflow-hidden rounded-full",children:o&&o}),t]})})]})},n))})]}),e.jsx(rf,{className:"absolute bottom-0 left-0 right-0"})]})})]})})},exports.ContinueIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ie("h-3 w-3 -rotate-180",t),height:"19",width:"19",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("polygon",{points:"11 19 2 12 11 5 11 19"}),e.jsx("polygon",{points:"22 19 13 12 22 5 22 19"})]})},exports.ControlCombobox=Qw,exports.CrossIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ie(t,"h-4 w-4"),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})},exports.CustomMinimalIcon=function({size:t=25,className:n=""}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Ie("lucide lucide-bot",n),children:[e.jsx("path",{d:"M12 8V4H8"}),e.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),e.jsx("path",{d:"M2 14h2"}),e.jsx("path",{d:"M20 14h2"}),e.jsx("path",{d:"M15 13v2"}),e.jsx("path",{d:"M9 13v2"})]})},exports.DataIcon=function({className:t="icon-sm"}){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.00633 5.5C6.02321 5.53319 6.07042 5.60366 6.19525 5.70906C6.42458 5.9027 6.81573 6.12215 7.38659 6.32603C8.5196 6.73067 10.1506 7 12 7C13.8494 7 15.4804 6.73067 16.6134 6.32603C17.1843 6.12215 17.5754 5.9027 17.8048 5.70906C17.9296 5.60366 17.9768 5.53319 17.9937 5.5C17.9768 5.46681 17.9296 5.39634 17.8048 5.29094C17.5754 5.0973 17.1843 4.87785 16.6134 4.67397C15.4804 4.26933 13.8494 4 12 4C10.1506 4 8.5196 4.26933 7.38659 4.67397C6.81573 4.87785 6.42458 5.0973 6.19525 5.29094C6.07042 5.39634 6.02321 5.46681 6.00633 5.5ZM18 7.91726C17.7726 8.02403 17.5333 8.12123 17.2861 8.20951C15.8856 8.70968 14.0166 9 12 9C9.98341 9 8.1144 8.70968 6.71392 8.20951C6.46674 8.12123 6.22738 8.02403 6 7.91726V11.9866C6.00813 12.0073 6.03931 12.0661 6.14259 12.1624C6.31976 12.3277 6.63181 12.5252 7.10609 12.7189C8.04837 13.1039 9.43027 13.3932 11.051 13.476C11.6026 13.5042 12.0269 13.9741 11.9987 14.5257C11.9705 15.0773 11.5005 15.5016 10.949 15.4734C9.17744 15.3829 7.55934 15.0646 6.34969 14.5704C6.23097 14.5219 6.11419 14.4709 6 14.4173V18.4866C6.00813 18.5073 6.03931 18.5661 6.14259 18.6624C6.31976 18.8277 6.63181 19.0252 7.10609 19.2189C8.04837 19.6039 9.43027 19.8932 11.051 19.976C11.6026 20.0042 12.0269 20.4741 11.9987 21.0257C11.9705 21.5773 11.5005 22.0016 10.949 21.9734C9.17744 21.8829 7.55934 21.5646 6.34969 21.0704C5.74801 20.8246 5.19611 20.5146 4.77833 20.1249C4.35948 19.7341 4 19.1866 4 18.5V5.5C4 4.74631 4.43048 4.16346 4.90494 3.76283C5.38405 3.35829 6.01803 3.03902 6.71392 2.79049C8.1144 2.29032 9.98341 2 12 2C14.0166 2 15.8856 2.29032 17.2861 2.79049C17.982 3.03902 18.616 3.35829 19.0951 3.76283C19.5695 4.16346 20 4.74631 20 5.5V10C20 10.5523 19.5523 11 19 11C18.4477 11 18 10.5523 18 10V7.91726ZM17.5 13C18.0523 13 18.5 13.4477 18.5 14V14.6707C18.851 14.7948 19.172 14.9823 19.4492 15.2195L20.0308 14.8837C20.5091 14.6075 21.1207 14.7714 21.3968 15.2497C21.673 15.728 21.5091 16.3396 21.0308 16.6157L20.4499 16.9511C20.4828 17.1291 20.5 17.3125 20.5 17.5C20.5 17.6873 20.4828 17.8707 20.45 18.0485L21.0308 18.3838C21.5091 18.6599 21.6729 19.2715 21.3968 19.7498C21.1206 20.2281 20.5091 20.392 20.0308 20.1158L19.4495 19.7803C19.1722 20.0176 18.8511 20.2052 18.5 20.3293V21C18.5 21.5523 18.0523 22 17.5 22C16.9477 22 16.5 21.5523 16.5 21V20.3293C16.1489 20.2052 15.8277 20.0176 15.5504 19.7802L14.969 20.1159C14.4907 20.392 13.8791 20.2282 13.603 19.7499C13.3269 19.2716 13.4907 18.66 13.969 18.3839L14.55 18.0484C14.5172 17.8706 14.5 17.6873 14.5 17.5C14.5 17.3127 14.5172 17.1294 14.55 16.9515L13.9691 16.6161C13.4908 16.34 13.3269 15.7284 13.6031 15.2501C13.8792 14.7718 14.4908 14.608 14.9691 14.8841L15.5504 15.2197C15.8278 14.9824 16.1489 14.7948 16.5 14.6707V14C16.5 13.4477 16.9477 13 17.5 13ZM16.624 17.0174C16.6274 17.0117 16.6308 17.0059 16.6342 17.0001C16.6374 16.9946 16.6405 16.989 16.6436 16.9834C16.8187 16.6937 17.1367 16.5 17.5 16.5C17.8645 16.5 18.1835 16.6951 18.3583 16.9865C18.3607 16.9909 18.3632 16.9953 18.3658 16.9997C18.3685 17.0044 18.3713 17.0091 18.3741 17.0138C18.4543 17.1577 18.5 17.3235 18.5 17.5C18.5 17.6737 18.4557 17.8371 18.3778 17.9794C18.3737 17.9861 18.3697 17.9929 18.3657 17.9998C18.3619 18.0064 18.3581 18.0131 18.3545 18.0198C18.1789 18.3077 17.8619 18.5 17.5 18.5C17.1362 18.5 16.8178 18.3058 16.6428 18.0154C16.64 18.0102 16.6371 18.005 16.6341 17.9999C16.631 17.9945 16.6278 17.9891 16.6246 17.9838C16.5452 17.8404 16.5 17.6755 16.5 17.5C16.5 17.325 16.545 17.1605 16.624 17.0174Z",fill:"currentColor"})})},exports.DataTable=function({columns:n,data:r,onDelete:a,filterColumn:o,defaultSort:s=[],className:i="",isFetchingNextPage:l=!1,hasNextPage:c=!1,fetchNextPage:d,enableRowSelection:u=!0,showCheckboxes:h=!0,onFilterChange:p,filterValue:m,isLoading:f,enableSearch:g=!0}){const v=Nn("(max-width: 768px)"),w=t.useRef(null),[x,y]=t.useState(!1),[b,k]=t.useState({}),[C,S]=t.useState(s),[M,P]=t.useState([]),[L,T]=t.useState({}),[E,A]=t.useState(m??""),[R,z]=t.useState(!1),I=t.useMemo(()=>{if(!u||!h)return n;const t={id:"select",header:({table:t})=>e.jsx("div",{className:"flex h-full w-[30px] items-center justify-center",children:e.jsx(At,{checked:t.getIsAllPageRowsSelected(),onCheckedChange:e=>t.toggleAllPageRowsSelected(Boolean(e)),"aria-label":"Select all"})}),cell:({row:t})=>e.jsx(Ow,{checked:t.getIsSelected(),onChange:e=>t.toggleSelected(e),ariaLabel:"Select row"}),meta:{size:"50px"}};return[t,...n]},[n,u,h]),V=N.useReactTable({data:r,columns:I,getCoreRowModel:N.getCoreRowModel(),getSortedRowModel:N.getSortedRowModel(),getFilteredRowModel:N.getFilteredRowModel(),enableRowSelection:u,enableMultiRowSelection:!0,state:{sorting:C,columnFilters:M,columnVisibility:L,rowSelection:b},onSortingChange:S,onColumnFiltersChange:P,onColumnVisibilityChange:T,onRowSelectionChange:k}),{rows:D}=V.getRowModel(),O=j.useVirtualizer({count:D.length,getScrollElement:()=>w.current,estimateSize:t.useCallback(()=>48,[]),overscan:10}),B=O.getVirtualItems(),F=O.getTotalSize(),_=B.length>0?B[0].start:0,H=B.length>0?F-B[B.length-1].end:0;t.useEffect(()=>{const e=w.current;if(!e)return;const t=async()=>{if(!c||l)return;const{scrollTop:t,scrollHeight:n,clientHeight:r}=e;if(n-t<=1.5*r)try{await(d?.())}catch(e){console.error("Unable to fetch next page:",e)}};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[c,l,d]),t.useEffect(()=>{z(!0);const e=setTimeout(()=>{p?.(E),z(!1)},300);return()=>clearTimeout(e)},[E,p]);const $=t.useCallback(async()=>{if(a){y(!0);try{const e=V.getFilteredSelectedRowModel().rows.map(e=>e.original);await a(e),k({})}finally{y(!1)}}},[a,V]),W=Array.from({length:13},(t,n)=>{const r=Math.floor(241*Math.random())+170,a="select"===I[0]?.id?1:0;return e.jsx(wa,{className:"motion-safe:animate-fadeIn border-b border-border-light",children:I.map((t,n)=>{const o=Fw(t,v),s=n===a;return e.jsx(ya,{className:"px-2 py-1 sm:px-4 sm:py-2",style:o,children:e.jsx(ha,{className:"h-6",style:s?{width:`${r}px`}:{width:"100%"}})},t.id)})},n)});return e.jsxs("div",{className:Ie("flex h-full flex-col gap-4",i),children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:gap-4",children:[u&&h&&e.jsx(_w,{onDelete:$,isDeleting:x,disabled:!V.getFilteredSelectedRowModel().rows.length||x,isSmallScreen:v}),void 0!==o&&V.getColumn(o)&&g&&e.jsx("div",{className:"relative flex-1",children:e.jsx(Rw,{value:E,onChange:e=>A(e.target.value),isSearching:R,placeholder:"Search..."})})]}),e.jsx("div",{ref:w,className:Ie("relative h-[calc(100vh-20rem)] max-w-full overflow-x-auto overflow-y-auto rounded-md border border-black/10 dark:border-white/10","transition-all duration-300 ease-out",R&&"bg-surface-secondary/50",i),children:e.jsxs(ma,{className:"w-full min-w-[300px] table-fixed border-separate border-spacing-0",children:[e.jsx(fa,{className:"sticky top-0 z-50 bg-surface-secondary",children:V.getHeaderGroups().map(t=>e.jsx(wa,{className:"border-b border-border-light",children:t.headers.map(t=>e.jsx(xa,{className:"whitespace-nowrap bg-surface-secondary px-2 py-2 text-left text-sm font-medium text-text-secondary sm:px-4",style:Fw(t.column.columnDef,v),onClick:t.column.getCanSort()?t.column.getToggleSortingHandler():void 0,children:t.isPlaceholder?null:N.flexRender(t.column.columnDef.header,t.getContext())},t.id))},t.id))}),e.jsxs(ga,{children:[_>0&&e.jsx("tr",{children:e.jsx("td",{style:{height:`${_}px`}})}),f&&W,B.map(t=>{const n=D[t.index];return e.jsx(Bw,{row:n,isSmallScreen:v,index:t.index,isSearching:R},n.id)}),!B.length&&e.jsx(wa,{className:"hover:bg-transparent",children:e.jsx(ya,{colSpan:n.length,className:"p-4 text-center",children:"No data available"})}),H>0&&e.jsx("tr",{children:e.jsx("td",{style:{height:`${H}px`}})}),(l||c)&&e.jsx(wa,{className:"hover:bg-transparent",children:e.jsx(ya,{colSpan:n.length,className:"p-4",children:e.jsx("div",{className:"flex h-full items-center justify-center",children:l?e.jsx(Iw,{className:"size-4"}):c&&e.jsx("div",{className:"h-6"})})})})]})]})})]})},exports.DataTableColumnHeader=function({column:t,title:n,className:a=""}){return t.getCanSort()?e.jsx("div",{className:Ie("flex items-center space-x-2",a),children:e.jsxs(Vt,{children:[e.jsx(Dt,{asChild:!0,children:e.jsxs(Et,{variant:"ghost",size:"sm",className:"-ml-3 h-8 data-[state=open]:bg-accent",children:[e.jsx("span",{children:n}),"desc"===t.getIsSorted()?e.jsx(r.ArrowDownIcon,{className:"ml-2 h-4 w-4"}):"asc"===t.getIsSorted()?e.jsx(r.ArrowUpIcon,{className:"ml-2 h-4 w-4"}):e.jsx(r.CaretSortIcon,{className:"ml-2 h-4 w-4"})]})}),e.jsxs(Wt,{align:"start",className:"z-[1001]",children:[e.jsxs(Ut,{onClick:()=>t.toggleSorting(!1),children:[e.jsx(r.ArrowUpIcon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Asc"]}),e.jsxs(Ut,{onClick:()=>t.toggleSorting(!0),children:[e.jsx(r.ArrowDownIcon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Desc"]}),e.jsx(qt,{}),e.jsxs(Ut,{onClick:()=>t.toggleVisibility(!1),children:[e.jsx(r.EyeNoneIcon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Hide"]})]})]})}):e.jsx("div",{className:Ie(a),children:n})},exports.DelayedRender=({delay:e,children:t})=>Sn(e)(()=>t),exports.Dialog=Mn,exports.DialogButton=Dn,exports.DialogClose=Vn,exports.DialogContent=En,exports.DialogDescription=In,exports.DialogFooter=Rn,exports.DialogHeader=An,exports.DialogOverlay=aa,exports.DialogTemplate=Kw,exports.DialogTitle=zn,exports.DialogTrigger=Pn,exports.DiscordIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"discord",className:"h-6 w-6",children:[e.jsx("circle",{cx:"512",cy:"512",r:"512",fill:"#5865f2"}),e.jsx("path",{fill:"#fff",d:"M689.43 349a422.21 422.21 0 0 0-104.22-32.32 1.58 1.58 0 0 0-1.68.79 294.11 294.11 0 0 0-13 26.66 389.78 389.78 0 0 0-117.05 0 269.75 269.75 0 0 0-13.18-26.66 1.64 1.64 0 0 0-1.68-.79A421 421 0 0 0 334.44 349a1.49 1.49 0 0 0-.69.59c-66.37 99.17-84.55 195.9-75.63 291.41a1.76 1.76 0 0 0 .67 1.2 424.58 424.58 0 0 0 127.85 64.63 1.66 1.66 0 0 0 1.8-.59 303.45 303.45 0 0 0 26.15-42.54 1.62 1.62 0 0 0-.89-2.25 279.6 279.6 0 0 1-39.94-19 1.64 1.64 0 0 1-.16-2.72c2.68-2 5.37-4.1 7.93-6.22a1.58 1.58 0 0 1 1.65-.22c83.79 38.26 174.51 38.26 257.31 0a1.58 1.58 0 0 1 1.68.2c2.56 2.11 5.25 4.23 8 6.24a1.64 1.64 0 0 1-.14 2.72 262.37 262.37 0 0 1-40 19 1.63 1.63 0 0 0-.87 2.28 340.72 340.72 0 0 0 26.13 42.52 1.62 1.62 0 0 0 1.8.61 423.17 423.17 0 0 0 128-64.63 1.64 1.64 0 0 0 .67-1.18c10.68-110.44-17.88-206.38-75.7-291.42a1.3 1.3 0 0 0-.63-.63zM427.09 582.85c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.02 28.44-20.37 51.6-46 51.6zm170.13 0c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.01 28.44-20.17 51.6-46 51.6z"})]})},exports.DotsIcon=function({className:t="h-4 w-4 flex-shrink-0 text-gray-500"}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"12",cy:"12",r:"1"}),e.jsx("circle",{cx:"19",cy:"12",r:"1"}),e.jsx("circle",{cx:"5",cy:"12",r:"1"})]})},exports.Dropdown=({value:t,label:n="",onChange:r,options:a,className:o="",sizeClasses:s,testId:i="dropdown-menu",icon:l,iconOnly:c=!1,renderValue:d,ariaLabel:u,portal:h=!0})=>{const p=X.useSelectStore({value:t,setValue:e=>{r(e)}}),m=e=>{if(null!=e&&""!==e)return a.filter(e=>!cf(e)).map(e=>"string"==typeof e?{value:e,label:e}:e).find(t=>df(t)&&t.value===e)};return e.jsxs("div",{className:Ie("relative",o),children:[e.jsxs(X.Select,{store:p,className:Ie("focus:ring-offset-ring-offset relative inline-flex items-center justify-between rounded-xl border border-input bg-background px-3 py-2 text-sm text-text-primary transition-all duration-200 ease-in-out hover:bg-accent hover:text-accent-foreground focus:ring-ring-primary",c?"h-full w-10":"w-fit gap-2",o),"data-testid":i,"aria-label":u,children:[e.jsxs("div",{className:"flex w-full items-center gap-2",children:[l,!c&&e.jsxs("span",{className:"block truncate",children:[n,(()=>{const e=m(t);return e&&d?d(e):(e=>{if(null==e||""===e)return"";const t=m(e);return t?t.label:e})(t)})()]})]}),!c&&e.jsx(X.SelectArrow,{})]}),e.jsx(X.SelectPopover,{portal:h,store:p,className:Ie("popover-ui",s,o,"max-h-[80vh] overflow-y-auto"),children:a.map((n,r)=>{if(cf(n))return e.jsx("div",{className:"my-1 border-t border-border-heavy"},`divider-${r}`);const a="string"==typeof n?{value:n,label:n}:n;return df(a)?e.jsx(X.SelectItem,{value:String(a.value),className:"select-item","data-theme":a.value,children:e.jsxs("div",{className:"flex w-full items-center gap-2",children:[null!=a.icon&&e.jsx("span",{children:a.icon}),e.jsx("span",{className:"block truncate",children:a.label}),t===a.value&&e.jsx("span",{className:"ml-auto pl-2",children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md block group-hover:hidden",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM16.0755 7.93219C16.5272 8.25003 16.6356 8.87383 16.3178 9.32549L11.5678 16.0755C11.3931 16.3237 11.1152 16.4792 10.8123 16.4981C10.5093 16.517 10.2142 16.3973 10.0101 16.1727L7.51006 13.4227C7.13855 13.014 7.16867 12.3816 7.57733 12.0101C7.98598 11.6386 8.61843 11.6687 8.98994 12.0773L10.6504 13.9039L14.6822 8.17451C15 7.72284 15.6238 7.61436 16.0755 7.93219Z",fill:"currentColor"})})})]})},`option-${r}`):null})})]})},exports.DropdownMenu=Vt,exports.DropdownMenuCheckboxItem=Xt,exports.DropdownMenuContent=Wt,exports.DropdownMenuGroup=Ot,exports.DropdownMenuItem=Ut,exports.DropdownMenuLabel=Zt,exports.DropdownMenuPortal=Bt,exports.DropdownMenuRadioGroup=_t,exports.DropdownMenuRadioItem=Yt,exports.DropdownMenuSeparator=qt,exports.DropdownMenuShortcut=Gt,exports.DropdownMenuSub=Ft,exports.DropdownMenuSubContent=$t,exports.DropdownMenuSubTrigger=Ht,exports.DropdownMenuTrigger=Dt,exports.DropdownPopup=({trigger:t,isOpen:n,setIsOpen:r,focusLoop:a,mountByState:o,...s})=>{const i=E.useMenuStore({open:n,setOpen:r,focusLoop:a});return o?e.jsxs(E.MenuProvider,{store:i,children:[t,n&&e.jsx(Zw,{...s})]}):e.jsxs(E.MenuProvider,{store:i,children:[t,e.jsx(Zw,{...s})]})},exports.EditIcon=zw,exports.ExperimentIcon=function(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e.jsx("path",{d:"M9 3H15M9 3V9.2759C9 9.74377 8.83597 10.1968 8.53644 10.5563L4.85085 14.979C4.30108 15.6387 4 16.4703 4 17.3291V17.3291C4 19.3565 5.64353 21 7.67094 21H16.3291C18.3565 21 20 19.3565 20 17.3291V17.3291C20 16.4703 19.6989 15.6387 19.1492 14.979L15.4636 10.5563C15.164 10.1968 15 9.74377 15 9.2759V3M9 3H8M15 3H16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 14.774C11.5 12.839 12.15 16.7089 18 14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.FacebookIcon=function(){return e.jsxs("svg",{viewBox:"0 0 40 40",width:"25",height:"25",children:[e.jsxs("linearGradient",{id:"a",x1:-277.375,x2:-277.375,y1:406.602,y2:407.573,gradientTransform:"matrix(40 0 0 -39.7778 11115.001 16212.334)",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:0,stopColor:"#0062e0"}),e.jsx("stop",{offset:1,stopColor:"#19afff"})]}),e.jsx("path",{fill:"url(#a)",d:"M16.7 39.8C7.2 38.1 0 29.9 0 20 0 9 9 0 20 0s20 9 20 20c0 9.9-7.2 18.1-16.7 19.8l-1.1-.9h-4.4l-1.1.9z"}),e.jsx("path",{fill:"#fff",d:"m27.8 25.6.9-5.6h-5.3v-3.9c0-1.6.6-2.8 3-2.8H29V8.2c-1.4-.2-3-.4-4.4-.4-4.6 0-7.8 2.8-7.8 7.8V20h-5v5.6h5v14.1c1.1.2 2.2.3 3.3.3 1.1 0 2.2-.1 3.3-.3V25.6h4.4z"})]})},exports.FileUpload=Xw,exports.FormInput=function({field:t,label:n,labelClass:r,inputClass:a,containerClass:o,labelAdjacent:s,placeholder:i="",type:l="string"}){return e.jsxs("div",{className:Ie("flex w-full flex-col items-center gap-2",o),children:[e.jsxs("div",{className:"flex w-full items-center justify-start gap-2",children:[e.jsx(Jr,{htmlFor:`${t.name}-input`,className:Ie("text-left text-sm font-semibold text-text-primary",r),children:n}),s]}),e.jsx(Hn,{id:`${t.name}-input`,value:t.value??"",onChange:e=>{const n=e.target.value;"number"===l?""===n?t.onChange(n):isNaN(Number(n))||t.onChange(Number(n)):t.onChange(n)},placeholder:i,className:Ie("flex h-10 max-h-10 w-full resize-none border-none bg-surface-secondary px-3 py-2",a)})]})},exports.GPTIcon=function({size:t=25,className:n=""}){const r=t,a=t;return e.jsx("svg",{width:a,height:r,viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"1.5",className:Ie(n,""),children:e.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z",fill:"currentColor"})})},exports.GearIcon=({className:t=""})=>e.jsxs("svg",{className:t,width:"17",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M11.6439 3C10.9352 3 10.2794 3.37508 9.92002 3.98596L9.49644 4.70605C8.96184 5.61487 7.98938 6.17632 6.93501 6.18489L6.09967 6.19168C5.39096 6.19744 4.73823 6.57783 4.38386 7.19161L4.02776 7.80841C3.67339 8.42219 3.67032 9.17767 4.01969 9.7943L4.43151 10.5212C4.95127 11.4386 4.95127 12.5615 4.43151 13.4788L4.01969 14.2057C3.67032 14.8224 3.67339 15.5778 4.02776 16.1916L4.38386 16.8084C4.73823 17.4222 5.39096 17.8026 6.09966 17.8083L6.93502 17.8151C7.98939 17.8237 8.96185 18.3851 9.49645 19.294L9.92002 20.014C10.2794 20.6249 10.9352 21 11.6439 21H12.3561C13.0648 21 13.7206 20.6249 14.08 20.014L14.5035 19.294C15.0381 18.3851 16.0106 17.8237 17.065 17.8151L17.9004 17.8083C18.6091 17.8026 19.2618 17.4222 19.6162 16.8084L19.9723 16.1916C20.3267 15.5778 20.3298 14.8224 19.9804 14.2057L19.5686 13.4788C19.0488 12.5615 19.0488 11.4386 19.5686 10.5212L19.9804 9.7943C20.3298 9.17767 20.3267 8.42219 19.9723 7.80841L19.6162 7.19161C19.2618 6.57783 18.6091 6.19744 17.9004 6.19168L17.065 6.18489C16.0106 6.17632 15.0382 5.61487 14.5036 4.70605L14.08 3.98596C13.7206 3.37508 13.0648 3 12.3561 3H11.6439Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),e.jsx("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"2"})]}),exports.GeminiIcon=function({size:t=25,className:n=""}){return e.jsxs("svg",{width:t,height:t,className:n,viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e.jsx("path",{fill:"url(#_4rif_paint0_radial_897_42)",d:"M9 18c0-1.245-.24-2.415-.72-3.51a8.934 8.934 0 00-1.912-2.857A8.934 8.934 0 003.51 9.72 8.646 8.646 0 000 9a8.886 8.886 0 003.51-.697 9.247 9.247 0 002.857-1.936A8.934 8.934 0 008.28 3.51C8.76 2.415 9 1.245 9 0c0 1.245.232 2.415.697 3.51a9.247 9.247 0 001.936 2.857 9.247 9.247 0 002.857 1.936A8.886 8.886 0 0018 9c-1.245 0-2.415.24-3.51.72a8.934 8.934 0 00-2.857 1.912 9.247 9.247 0 00-1.935 2.858A8.886 8.886 0 009 18z"}),e.jsx("defs",{children:e.jsxs("radialGradient",{id:"_4rif_paint0_radial_897_42",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(135 9 3.728) scale(25.4558 12.7279)",children:[e.jsx("stop",{offset:".325",stopColor:"#FFDDB7"}),e.jsx("stop",{offset:".706",stopColor:"#076EFF"})]})})]})},exports.GithubIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",children:e.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 0 0-3.84 23.399c.608.112.832-.256.832-.576v-2.015c-3.395.736-4.115-1.632-4.115-1.632a3.241 3.241 0 0 0-1.359-1.792c-1.104-.736.064-.736.064-.736a2.566 2.566 0 0 1 1.824 1.216a2.638 2.638 0 0 0 3.616 1.024a2.607 2.607 0 0 1 .768-1.6c-2.688-.32-5.504-1.344-5.504-5.984a4.677 4.677 0 0 1 1.216-3.168a4.383 4.383 0 0 1 .128-3.136s1.024-.32 3.36 1.216a11.66 11.66 0 0 1 6.112 0c2.336-1.536 3.36-1.216 3.36-1.216a4.354 4.354 0 0 1 .128 3.136a4.628 4.628 0 0 1 1.216 3.168c0 4.672-2.848 5.664-5.536 5.952a2.881 2.881 0 0 1 .832 2.24v3.36c0 .32.224.672.832.576A12 12 0 0 0 12 0z"})})},exports.GoogleIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",id:"google",className:"h-5 w-5",children:[e.jsx("path",{fill:"#fbbb00",d:"M113.47 309.408 95.648 375.94l-65.139 1.378C11.042 341.211 0 299.9 0 256c0-42.451 10.324-82.483 28.624-117.732h.014L86.63 148.9l25.404 57.644c-5.317 15.501-8.215 32.141-8.215 49.456.002 18.792 3.406 36.797 9.651 53.408z"}),e.jsx("path",{fill:"#518ef8",d:"M507.527 208.176C510.467 223.662 512 239.655 512 256c0 18.328-1.927 36.206-5.598 53.451-12.462 58.683-45.025 109.925-90.134 146.187l-.014-.014-73.044-3.727-10.338-64.535c29.932-17.554 53.324-45.025 65.646-77.911h-136.89V208.176h245.899z"}),e.jsx("path",{fill:"#28b446",d:"m416.253 455.624.014.014C372.396 490.901 316.666 512 256 512c-97.491 0-182.252-54.491-225.491-134.681l82.961-67.91c21.619 57.698 77.278 98.771 142.53 98.771 28.047 0 54.323-7.582 76.87-20.818l83.383 68.262z"}),e.jsx("path",{fill:"#f14336",d:"m419.404 58.936-82.933 67.896C313.136 112.246 285.552 103.82 256 103.82c-66.729 0-123.429 42.957-143.965 102.724l-83.397-68.276h-.014C71.23 56.123 157.06 0 256 0c62.115 0 119.068 22.126 163.404 58.936z"})]})},exports.GoogleIconChat=function({size:t=25,className:n=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24px",height:"24px",viewBox:"0 0 512 512",strokeWidth:"1.5",className:Ie(n,""),children:e.jsx("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})},exports.GoogleMinimalIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"800px",height:"800px",viewBox:"0 0 512 512",className:Ie("h-4 w-4",t),children:e.jsx("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})},exports.HoverCard=On,exports.HoverCardContent=_n,exports.HoverCardPortal=Fn,exports.HoverCardTrigger=Bn,exports.Input=Hn,exports.InputCombobox=({label:n,labelClassName:r,placeholder:a="Select an option",options:o,className:s,value:i,onChange:l,onBlur:c})=>{const d=e=>null!=e&&"object"==typeof e&&"value"in e,[u,h]=t.useState(!1),[p,m]=t.useState(i),[f,g]=t.useState(!1);t.useEffect(()=>{m(i)},[i]);const v=e=>{m(e),l(e)};return e.jsxs(E.ComboboxProvider,{value:p,setValue:v,children:[null!=n&&e.jsx(E.ComboboxLabel,{className:Ie("mb-2 block text-sm font-medium text-text-primary",r??""),children:n}),e.jsx("div",{className:Ie("relative",f?"rounded-md ring-2 ring-ring-primary":""),children:e.jsx(E.Combobox,{placeholder:a,className:Ie("h-10 w-full rounded-md border border-border-light bg-surface-primary px-3 py-2 text-sm","placeholder-text-secondary hover:bg-surface-hover","focus:outline-none",s),onChange:e=>v(e.target.value),onBlur:()=>{g(!1),c()},onFocusVisible:()=>{g(!0),h(!0)},onMouseDown:()=>{g(!1)}})}),e.jsx(E.ComboboxPopover,{gutter:4,sameWidth:!0,open:u,onClose:()=>h(!1),className:Ie("z-50 max-h-60 w-full overflow-auto rounded-md bg-surface-primary p-1 shadow-lg","animate-in fade-in-0 zoom-in-95"),children:o.map((t,n)=>e.jsxs(E.ComboboxItem,{className:Ie("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","cursor-pointer hover:bg-surface-tertiary hover:text-text-primary","data-[active-item]:bg-surface-tertiary data-[active-item]:text-text-primary"),value:d(t)?`${t.value??""}`:t,children:[d(t)&&null!=t.icon&&e.jsx("span",{className:"mr-2 flex-shrink-0",children:t.icon}),d(t)?t.label:t]},n))})]})},exports.InputNumber=Qr,exports.InputOTP=mp,exports.InputOTPGroup=fp,exports.InputOTPSeparator=vp,exports.InputOTPSlot=gp,exports.InputWithDropdown=ex,exports.Label=Jr,exports.LightningIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",className:Ie("h-6 w-6",t),children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"})})},exports.LinkIcon=function(){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 5C14.4477 5 14 4.55228 14 4C14 3.44772 14.4477 3 15 3H20C20.5523 3 21 3.44772 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V6.41421L13.7071 11.7071C13.3166 12.0976 12.6834 12.0976 12.2929 11.7071C11.9024 11.3166 11.9024 10.6834 12.2929 10.2929L17.5858 5H15ZM4 7C4 5.34315 5.34315 4 7 4H10C10.5523 4 11 4.44772 11 5C11 5.55228 10.5523 6 10 6H7C6.44772 6 6 6.44772 6 7V17C6 17.5523 6.44772 18 7 18H17C17.5523 18 18 17.5523 18 17V14C18 13.4477 18.4477 13 19 13C19.5523 13 20 13.4477 20 14V17C20 18.6569 18.6569 20 17 20H7C5.34315 20 4 18.6569 4 17V7Z",fill:"currentColor"})})},exports.ListeningIcon=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:Ie(t),strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),e.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),e.jsx("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]})},exports.LockIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-lock",children:[e.jsx("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),e.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})},exports.LogOutIcon=function(){return e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:[e.jsx("path",{d:"M11 3H7C5.89543 3 5 3.89543 5 5V19C5 20.1046 5.89543 21 7 21H11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M20 12H11M20 12L16 16M20 12L16 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.MCPIcon=function({className:t}){return e.jsxs("svg",{width:"195",height:"195",viewBox:"0 2 195 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[e.jsx("path",{d:"M25 97.8528L92.8823 29.9706C102.255 20.598 117.451 20.598 126.823 29.9706V29.9706C136.196 39.3431 136.196 54.5391 126.823 63.9117L75.5581 115.177",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e.jsx("path",{d:"M76.2653 114.47L126.823 63.9117C136.196 54.5391 151.392 54.5391 160.765 63.9117L161.118 64.2652C170.491 73.6378 170.491 88.8338 161.118 98.2063L99.7248 159.6C96.6006 162.724 96.6006 167.789 99.7248 170.913L112.331 183.52",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e.jsx("path",{d:"M109.853 46.9411L59.6482 97.1457C50.2757 106.518 50.2757 121.714 59.6482 131.087V131.087C69.0208 140.459 84.2168 140.459 93.5894 131.087L143.794 80.8822",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"})]})},exports.MessagesSquared=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Ie(t??"","lucide lucide-messages-square"),children:[e.jsx("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v5Z"}),e.jsx("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})]})},exports.MinimalPlugin=function({size:t,className:n="icon-md"}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4646 19C15.2219 20.6961 13.7632 22 12 22C10.2368 22 8.77806 20.6961 8.53544 19H6C4.34315 19 3 17.6569 3 16V13.5C3 12.9477 3.44772 12.5 4 12.5H4.5C5.32843 12.5 6 11.8284 6 11C6 10.1716 5.32843 9.5 4.5 9.5H4C3.44772 9.5 3 9.05229 3 8.5L3 6C3 4.34315 4.34315 3 6 3L18 3C19.6569 3 21 4.34315 21 6L21 16C21 17.6569 19.6569 19 18 19H15.4646ZM12 20C12.8284 20 13.5 19.3284 13.5 18.5V18C13.5 17.4477 13.9477 17 14.5 17H18C18.5523 17 19 16.5523 19 16L19 6C19 5.44772 18.5523 5 18 5L6 5C5.44772 5 5 5.44772 5 6V7.53544C6.69615 7.77806 8 9.23676 8 11C8 12.7632 6.69615 14.2219 5 14.4646L5 16C5 16.5523 5.44771 17 6 17H9.5C10.0523 17 10.5 17.4477 10.5 18V18.5C10.5 19.3284 11.1716 20 12 20Z",fill:"currentColor"})})},exports.MobileSidebar=function({className:t}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 8C3 7.44772 3.44772 7 4 7H20C20.5523 7 21 7.44772 21 8C21 8.55228 20.5523 9 20 9H4C3.44772 9 3 8.55228 3 8ZM3 16C3 15.4477 3.44772 15 4 15H14C14.5523 15 15 15.4477 15 16C15 16.5523 14.5523 17 14 17H4C3.44772 17 3 16.5523 3 16Z",fill:"currentColor"})})},exports.MultiSelect=function({items:n,label:r,placeholder:o="Select...",onSelectedValuesChange:s,renderSelectedValues:i=Yw,className:l,selectIcon:c,itemClassName:d,labelClassName:u,selectClassName:h,popoverClassName:p,selectItemsClassName:m,selectedValues:f=[],setSelectedValues:g,renderItemContent:v}){const w=t.useRef(null);return e.jsx("div",{className:l,children:e.jsxs(a.SelectProvider,{value:f,setValue:e=>{g(e),s&&s(e)},children:[r&&e.jsx(a.SelectLabel,{className:Ie("mb-1 block text-sm text-text-primary",u),children:r}),e.jsxs(a.Select,{ref:w,className:Ie("flex items-center justify-between gap-2 rounded-xl px-3 py-2 text-sm","bg-surface-tertiary text-text-primary shadow-sm hover:cursor-pointer hover:bg-surface-hover","outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",h,f.length>0&&null!=m&&m),onChange:e=>e.stopPropagation(),children:[c&&e.jsx("span",{children:c}),e.jsx("span",{className:"mr-auto hidden truncate md:block",children:i(f,o)}),e.jsx(a.SelectArrow,{className:"ml-1 hidden stroke-1 text-base opacity-75 md:block"})]}),e.jsx(a.SelectPopover,{gutter:4,sameWidth:!0,modal:!0,unmountOnHide:!0,finalFocus:w,className:Ie("animate-popover z-50 flex max-h-[300px]","flex-col overflow-auto overscroll-contain rounded-xl","bg-surface-secondary px-1.5 py-1 text-text-primary shadow-lg","border border-border-light","outline-none",p),children:n.map(t=>{const n=e.jsxs(e.Fragment,{children:[e.jsx(a.SelectItemCheck,{className:"text-primary"}),e.jsx("span",{className:"truncate",children:t})]}),r=f.includes(t);return e.jsx(a.SelectItem,{value:t,className:Ie("flex items-center gap-2 rounded-lg px-2 py-1.5 hover:cursor-pointer","scroll-m-1 outline-none transition-colors","hover:bg-black/[0.075] dark:hover:bg-white/10","data-[active-item]:bg-black/[0.075] dark:data-[active-item]:bg-white/10","w-full min-w-0 text-sm",d),children:v?v(t,n,r):n},t)})})]})})},exports.NewChatIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Ie("text-black dark:text-white",t),"aria-hidden":!0,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7929 2.79289C18.0118 1.57394 19.9882 1.57394 21.2071 2.79289C22.4261 4.01184 22.4261 5.98815 21.2071 7.20711L12.7071 15.7071C12.5196 15.8946 12.2652 16 12 16H9C8.44772 16 8 15.5523 8 15V12C8 11.7348 8.10536 11.4804 8.29289 11.2929L16.7929 2.79289ZM19.7929 4.20711C19.355 3.7692 18.645 3.7692 18.2071 4.2071L10 12.4142V14H11.5858L19.7929 5.79289C20.2308 5.35499 20.2308 4.64501 19.7929 4.20711ZM6 5C5.44772 5 5 5.44771 5 6V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V14C19 13.4477 19.4477 13 20 13C20.5523 13 21 13.4477 21 14V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6C3 4.34314 4.34315 3 6 3H10C10.5523 3 11 3.44771 11 4C11 4.55228 10.5523 5 10 5H6Z",fill:"currentColor"})})},exports.OGDialog=ea,exports.OGDialogClose=ra,exports.OGDialogContent=oa,exports.OGDialogDescription=ca,exports.OGDialogFooter=ia,exports.OGDialogHeader=sa,exports.OGDialogOverlay=aa,exports.OGDialogPortal=na,exports.OGDialogTemplate=Jw,exports.OGDialogTitle=la,exports.OGDialogTrigger=ta,exports.OpenAIMinimalIcon=function({className:t="h-4 w-4"}){return e.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"1",viewBox:"0 0 40 40",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z"})})},exports.OpenIDIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",id:"openid",className:"h-5 w-5",children:e.jsx("path",{fill:"currentColor",d:"M271.5 432l-68 32C88.5 453.7 0 392.5 0 318.2c0-71.5 82.5-131 191.7-144.3v43c-71.5 12.5-124 53-124 101.3 0 51 58.5 93.3 135.7 103v-340l68-33.2v384zM448 291l-131.3-28.5 36.8-20.7c-19.5-11.5-43.5-20-70-24.8v-43c46.2 5.5 87.7 19.5 120.3 39.3l35-19.8L448 291z"})})},exports.PaLMIcon=function({size:t=25,className:n=""}){return e.jsxs("svg",{width:t,height:t,className:n,viewBox:"0 0 19 17",fill:"none",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e.jsx("path",{d:"M9.62674 16.2202H9.7049C10.4225 16.2202 11.0016 15.6412 11.0016 14.9236V4.04224H8.33008V14.92C8.33008 15.6376 8.90914 16.2202 9.62674 16.2202Z",fill:"#F9AB00"}),e.jsx("path",{d:"M14.6819 8.02813C13.3249 6.66752 11.2964 6.39398 9.66577 7.2004L15.0585 12.5931C15.2823 12.8169 15.6624 12.7281 15.7583 12.4297C16.2308 10.927 15.8756 9.21822 14.6819 8.02813Z",fill:"#5BB974"}),e.jsx("path",{d:"M4.64953 8.02813C6.00659 6.66752 8.03507 6.39398 9.66567 7.2004L4.27297 12.5931C4.04916 12.8169 3.66904 12.7281 3.57312 12.4297C3.10064 10.927 3.45589 9.21822 4.64953 8.02813Z",fill:"#129EAF"}),e.jsx("path",{d:"M14.284 3.84326C12.1383 3.84326 10.3159 5.25005 9.66577 7.20038H18.1918C18.5399 7.20038 18.7744 6.83092 18.6145 6.5183C17.8081 4.93033 16.1704 3.84326 14.284 3.84326Z",fill:"#AF5CF7"}),e.jsx("path",{d:"M10.5574 1.55901C9.04053 3.07593 8.74567 5.36019 9.66577 7.20039L15.6944 1.17179C15.943 0.923113 15.8436 0.496814 15.5132 0.390239C13.8151 -0.1604 11.8896 0.226822 10.5574 1.55901Z",fill:"#FF8BCB"}),e.jsx("path",{d:"M8.77408 1.55901C10.291 3.07593 10.5859 5.36019 9.66576 7.20039L3.63716 1.17179C3.38848 0.923113 3.48795 0.496814 3.81833 0.390239C5.51643 -0.1604 7.44189 0.226822 8.77408 1.55901Z",fill:"#FA7B17"}),e.jsx("path",{d:"M5.04752 3.84326C7.19323 3.84326 9.01566 5.25005 9.66577 7.20038H1.13976C0.791616 7.20038 0.55715 6.83092 0.717013 6.5183C1.52343 4.93033 3.16114 3.84326 5.04752 3.84326Z",fill:"#4285F4"})]})},exports.PaLMinimalIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 32 32",strokeLinecap:"round",strokeLinejoin:"round",className:Ie("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"m16 30.238c1.2298 0 2.2259-0.99608 2.2259-2.2259v-11.46c-0.63513-0.56429-1.6553-1.6805-2.2259-2.251-0.79858 0.83793-1.3599 1.3599-2.2259 2.251v11.46c0 1.2298 0.99608 2.2259 2.2259 2.2259z"}),e.jsx("path",{d:"m24.868 15.761c-0.61691-0.61643-1.3121-1.1065-2.0536-1.4703-6.8147 0.010467 0.13304 0.031026-6.8147 0.010467l9.5286 9.5286c0.39324 0.39324 1.0703 0.23743 1.2372-0.29122 0.83841-2.6544 0.20589-5.6723-1.8976-7.7776z"}),e.jsx("path",{d:"m7.1318 15.761c0.5902-0.58975 1.2521-1.0639 1.9575-1.4224 6.9107-0.037427-0.11812-0.057288 6.9107-0.037427l-9.5286 9.5286c-0.39324 0.39324-1.0703 0.23743-1.2372-0.29122-0.83841-2.6543-0.20589-5.6723 1.8976-7.7776z"}),e.jsx("path",{d:"m24.162 8.3655c-0.93169 0-1.8288 0.15009-2.6691 0.42772-5.4924 5.5079 0 0-5.4924 5.5079h15.069c0.61767 0 1.0295-0.65292 0.74938-1.2038-1.432-2.8102-4.3219-4.7318-7.657-4.7318z"}),e.jsx("path",{d:"m17.575 4.333c-0.62613 0.62613-1.1343 1.3257-1.5248 2.0718 1.6767 4.1174 0.53518 6.3909-0.05003 7.8964l10.656-10.656c0.43775-0.43775 0.2671-1.1908-0.3209-1.3819-3.0012-0.97382-6.4031-0.28751-8.7607 2.0701z"}),e.jsx("path",{d:"m14.425 4.333c2.6822 2.6822 3.1997 6.7129 1.5748 9.9682l-10.656-10.656c-0.43775-0.43775-0.2671-1.1908 0.3209-1.3819 3.0012-0.97382 6.4031-0.28751 8.7607 2.0701z"}),e.jsx("path",{d:"m7.8385 8.3655c0.9121 0 1.791 0.14385 2.616 0.41037 5.5455 5.5253-0.061773 0.011675 5.5455 5.5253h-15.069c-0.61768 0-1.0295-0.65292-0.74938-1.2038 1.432-2.8102 4.3219-4.7318 7.657-4.7318z"})]})},exports.Pagination=Zh,exports.PaginationContent=qh,exports.PaginationEllipsis=ep,exports.PaginationItem=Gh,exports.PaginationLink=Kh,exports.PaginationNext=Jh,exports.PaginationPrevious=Qh,exports.PersonalizationIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`icon-sm ${t}`,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C10.3431 4 9 5.34315 9 7C9 8.65685 10.3431 10 12 10C13.6569 10 15 8.65685 15 7C15 5.34315 13.6569 4 12 4ZM7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7C17 9.76142 14.7614 12 12 12C9.23858 12 7 9.76142 7 7ZM19.0277 15.6255C18.6859 15.5646 18.1941 15.6534 17.682 16.1829C17.4936 16.3777 17.2342 16.4877 16.9632 16.4877C16.6922 16.4877 16.4328 16.3777 16.2444 16.1829C15.7322 15.6534 15.2405 15.5646 14.8987 15.6255C14.5381 15.6897 14.2179 15.9384 14.0623 16.3275C13.8048 16.9713 13.9014 18.662 16.9632 20.4617C20.0249 18.662 20.1216 16.9713 19.864 16.3275C19.7084 15.9384 19.3882 15.6897 19.0277 15.6255ZM21.721 15.5847C22.5748 17.7191 21.2654 20.429 17.437 22.4892C17.1412 22.6484 16.7852 22.6484 16.4893 22.4892C12.6609 20.4291 11.3516 17.7191 12.2053 15.5847C12.6117 14.5689 13.4917 13.8446 14.5481 13.6565C15.3567 13.5125 16.2032 13.6915 16.9632 14.1924C17.7232 13.6915 18.5697 13.5125 19.3783 13.6565C20.4347 13.8446 21.3147 14.5689 21.721 15.5847ZM9.92597 14.2049C10.1345 14.7163 9.889 15.2999 9.3776 15.5084C7.06131 16.453 5.5 18.5813 5.5 20.9999C5.5 21.5522 5.05228 21.9999 4.5 21.9999C3.94772 21.9999 3.5 21.5522 3.5 20.9999C3.5 17.6777 5.641 14.8723 8.6224 13.6565C9.1338 13.448 9.71743 13.6935 9.92597 14.2049Z",fill:"currentColor"})})},exports.PinIcon=function({unpin:t=!1}){return t?e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e.jsx("path",{d:"M15 15V17.5585C15 18.4193 14.4491 19.1836 13.6325 19.4558L13.1726 19.6091C12.454 19.8487 11.6616 19.6616 11.126 19.126L4.87403 12.874C4.33837 12.3384 4.15132 11.546 4.39088 10.8274L4.54415 10.3675C4.81638 9.55086 5.58066 9 6.44152 9H9M12 6.2L13.6277 3.92116C14.3461 2.91549 15.7955 2.79552 16.6694 3.66942L20.3306 7.33058C21.2045 8.20448 21.0845 9.65392 20.0788 10.3723L18 11.8571",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8 16L3 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4 4L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):e.jsx("svg",{className:"icon-sm",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4845 2.8798C16.1773 1.57258 14.0107 1.74534 12.9272 3.24318L9.79772 7.56923C9.60945 7.82948 9.30775 7.9836 8.98654 7.9836H6.44673C3.74061 7.9836 2.27414 11.6759 4.16948 13.5713L6.59116 15.993L2.29324 20.2909C1.90225 20.6819 1.90225 21.3158 2.29324 21.7068C2.68422 22.0977 3.31812 22.0977 3.70911 21.7068L8.00703 17.4088L10.4287 19.8305C12.3241 21.7259 16.0164 20.2594 16.0164 17.5533V15.0135C16.0164 14.6923 16.1705 14.3906 16.4308 14.2023L20.7568 11.0728C22.2547 9.98926 22.4274 7.8227 21.1202 6.51549L17.4845 2.8798ZM11.8446 18.4147C12.4994 19.0694 14.0141 18.4928 14.0141 17.5533V15.0135C14.0141 14.0499 14.4764 13.1447 15.2572 12.58L19.5832 9.45047C20.0825 9.08928 20.1401 8.3671 19.7043 7.93136L16.0686 4.29567C15.6329 3.85993 14.9107 3.91751 14.5495 4.4168L11.4201 8.74285C10.8553 9.52359 9.95016 9.98594 8.98654 9.98594H6.44673C5.5072 9.98594 4.93059 11.5006 5.58535 12.1554L11.8446 18.4147Z",fill:"currentColor"})})},exports.PixelCard=function({variant:n="default",gap:r,speed:a,colors:o,noFocus:s,className:i="",progress:l,randomness:c=.3,width:d,height:u}){const h=t.useRef(null),p=t.useRef(null),m=t.useRef([]),f=t.useRef(void 0),g=t.useRef(performance.now()),v=t.useRef(l),w=t.useRef(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,x=Uw[n],y=r??x.gap,b=a??x.speed,k=o??x.colors,C=s??x.noFocus,j=t.useCallback(()=>{if(!p.current)return;if(void 0===v.current)return void(p.current.style.opacity="1");const e=v.current>=.9?1-(v.current-.9)/.1:1;p.current.style.opacity=String(Ww(e))},[]),N=t.useCallback(e=>{f.current=requestAnimationFrame(()=>N(e));const t=performance.now(),n=t-g.current;if(n<1e3/60)return;g.current=t-n%(1e3/60);const r=p.current?.getContext("2d");if(!r||!p.current)return;r.clearRect(0,0,p.current.width,p.current.height);let a=!0;for(const t of m.current)"appearWithProgress"===e?void 0!==v.current?t.appearWithProgress(v.current):t.isIdle=!0:t[e](),t.isIdle||(a=!1);j(),a&&cancelAnimationFrame(f.current)},[j]),S=t.useCallback(e=>{cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>N(e))},[N]),M=t.useCallback(()=>{if(!h.current||!p.current)return;const{width:e,height:t}=h.current.getBoundingClientRect(),n=p.current.getContext("2d");p.current.width=Math.floor(e),p.current.height=Math.floor(t);const r=k.split(","),a=[],o=e/2,s=t/2,i=Math.hypot(o,s);for(let l=0;l<e;l+=y)for(let e=0;e<t;e+=y){const t=r[Math.floor(Math.random()*r.length)],d=Math.hypot(l-o,e-s)/i,u=Ww(d*(1-c)+Math.random()*c),h=w?0:d*i;n&&a.push(new Hw(p.current,n,l,e,t,$w(b,w),h,u))}m.current=a,void 0!==v.current&&S("appearWithProgress")},[y,k,b,c,w,S]);return t.useEffect(()=>{v.current=l,void 0!==l&&S("appearWithProgress")},[l,S]),t.useEffect(()=>{void 0===l&&cancelAnimationFrame(f.current)},[l]),t.useEffect(()=>{M();const e=new ResizeObserver(M);return h.current&&e.observe(h.current),()=>{e.disconnect(),cancelAnimationFrame(f.current)}},[M]),e.jsx("div",{ref:h,style:{width:d||"100%",height:u||"100%"},children:e.jsx("div",{className:Ie("relative isolate grid select-none place-items-center overflow-hidden rounded-lg border border-border-light shadow-md transition-colors duration-200 ease-in-out",i),style:{width:"100%",height:"100%",transitionTimingFunction:"cubic-bezier(0.5, 1, 0.89, 1)"},onMouseEnter:()=>void 0===v.current&&S("appear"),onMouseLeave:()=>void 0===v.current&&S("disappear"),onFocus:C?void 0:e=>{C||e.currentTarget.contains(e.relatedTarget)||void 0!==v.current||S("appear")},onBlur:C?void 0:e=>{C||e.currentTarget.contains(e.relatedTarget)||void 0!==v.current||S("disappear")},tabIndex:C?-1:0,children:e.jsx("canvas",{ref:p,className:"pointer-events-none absolute inset-0 block",width:d&&"auto"!==d?parseInt(String(d)):void 0,height:u&&"auto"!==u?parseInt(String(u)):void 0})})})},exports.Plugin=function({className:t="",...n}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:Ie("h-4 w-4",t),width:"16",height:"16",strokeWidth:"2",...n,children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13.164.98a.7.7 0 0 0-1.328 0l-.478 1.435a.7.7 0 0 1-.443.443l-1.436.478a.7.7 0 0 0 0 1.328l1.436.479a.7.7 0 0 1 .443.442l.478 1.436a.7.7 0 0 0 1.328 0l.478-1.436a.7.7 0 0 1 .443-.443l1.436-.478a.7.7 0 0 0 0-1.328l-1.436-.478a.7.7 0 0 1-.443-.443L13.164.979Z"}),e.jsx("path",{d:"M13.237 10.534c-.228-.245-.513-.46-.847-.46a.823.823 0 0 0-.828.849c.04 1.04.128 2.067.263 3.08a.619.619 0 0 1-.528.695c-.872.121-1.748.208-2.626.262a.8.8 0 0 1-.845-.805c0-.325.21-.602.45-.82.235-.215.375-.488.375-.787 0-.683-.738-1.237-1.65-1.237-.911 0-1.65.554-1.65 1.237 0 .294.137.563.364.775.245.229.461.513.461.848a.823.823 0 0 1-.85.829 33.809 33.809 0 0 1-3.266-.278.619.619 0 0 1-.532-.532 34.099 34.099 0 0 1-.278-3.267.823.823 0 0 1 .83-.85c.333 0 .619.216.846.461.212.228.482.364.776.364.683 0 1.237-.738 1.237-1.65 0-.91-.554-1.65-1.237-1.65-.299 0-.572.142-.786.376-.219.24-.496.45-.821.45a.8.8 0 0 1-.805-.845c.054-.885.142-1.76.262-2.626a.619.619 0 0 1 .695-.528c1.022.136 2.05.224 3.08.263a.822.822 0 0 0 .85-.828c0-.334-.217-.62-.462-.847-.227-.212-.363-.482-.363-.776C5.352 1.554 6.09 1 7.002 1c.91 0 1.649.554 1.649 1.237 0 .173-.012.327-.029.473C8.258 3 8 3.41 8 4c0 1.5 1.667 1.833 2.5 2 .167.833.5 2.5 2 2.5.732 0 1.186-.397 1.479-.9l.034-.001c.683 0 1.237.738 1.237 1.65 0 .911-.554 1.65-1.237 1.65-.294 0-.564-.137-.776-.364Z"})]})})},exports.Progress=tp,exports.QuestionMark=({className:t=""})=>e.jsx("span",{children:e.jsx("div",{className:Ie("border-token-border-medium text-token-text-tertiary ml-2 flex h-3.5 w-3.5 cursor-default items-center justify-center rounded-full border text-[0.5rem] font-medium leading-none",t),children:"?"})}),exports.RegenerateIcon=function({className:t="",size:n="1em"}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ie("icon-md-heavy",t),children:e.jsx("path",{fill:"currentColor",d:"M3.07 10.876C3.623 6.436 7.41 3 12 3a9.15 9.15 0 0 1 6.012 2.254V4a1 1 0 1 1 2 0v4a1 1 0 0 1-1 1H15a1 1 0 1 1 0-2h1.957A7.15 7.15 0 0 0 12 5a7 7 0 0 0-6.946 6.124 1 1 0 1 1-1.984-.248m16.992 1.132a1 1 0 0 1 .868 1.116C20.377 17.564 16.59 21 12 21a9.15 9.15 0 0 1-6-2.244V20a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H7.043A7.15 7.15 0 0 0 12 19a7 7 0 0 0 6.946-6.124 1 1 0 0 1 1.116-.868"})})},exports.ResizableHandle=({withHandle:t,className:n="",...r})=>e.jsx(Qm,{className:Ie("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),...r,children:t&&e.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e.jsx(pt,{className:"h-2.5 w-2.5"})})}),exports.ResizableHandleAlt=({withHandle:t,className:n="",...r})=>e.jsx(Qm,{className:Ie("group relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),...r,children:t&&e.jsx("div",{className:"invisible z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border group-hover:visible group-active:visible",children:e.jsx(pt,{className:"h-2.5 w-2.5"})})}),exports.ResizablePanel=Jm,exports.ResizablePanelGroup=({className:t="",...n})=>e.jsx(qm,{className:Ie("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...n}),exports.SamlIcon=function(){return e.jsx("svg",{width:"800px",height:"800px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"h-5 w-5",children:e.jsxs("g",{fill:"#000000",children:[e.jsx("path",{d:"M7.754 2l.463.41c.343.304.687.607 1.026.915C11.44 5.32 13.3 7.565 14.7 10.149c.072.132.137.268.202.403l.098.203-.108.057-.081-.115-.21-.299-.147-.214c-1.019-1.479-2.04-2.96-3.442-4.145a6.563 6.563 0 00-1.393-.904c-1.014-.485-1.916-.291-2.69.505-.736.757-1.118 1.697-1.463 2.653-.045.123-.092.245-.139.367l-.082.215-.172-.055c.1-.348.192-.698.284-1.049.21-.795.42-1.59.712-2.356.31-.816.702-1.603 1.093-2.39.169-.341.338-.682.5-1.025h.092z"}),e.jsx("path",{d:"M8.448 11.822c-1.626.77-5.56 1.564-7.426 1.36C.717 11.576 3.71 4.05 5.18 2.91l-.095.218a4.638 4.638 0 01-.138.303l-.066.129c-.76 1.462-1.519 2.926-1.908 4.53a7.482 7.482 0 00-.228 1.689c-.01 1.34.824 2.252 2.217 2.309.67.027 1.347-.043 2.023-.114.294-.03.587-.061.88-.084.108-.008.214-.021.352-.039l.231-.028z"}),e.jsx("path",{d:"M3.825 14.781c-.445.034-.89.068-1.333.108 4.097.39 8.03-.277 11.91-1.644-1.265-2.23-2.97-3.991-4.952-5.522.026.098.084.169.141.239l.048.06c.17.226.348.448.527.67.409.509.818 1.018 1.126 1.578.778 1.42.356 2.648-1.168 3.296-1.002.427-2.097.718-3.18.892-1.03.164-2.075.243-3.119.323z"})]})})},exports.SaveIcon=function({size:t="1em",className:n}){return e.jsx("svg",{viewBox:"64 64 896 896",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:n,width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"})})},exports.SelectDropDown=function({title:n,value:r,disabled:a,setValue:o,availableValues:s,showAbove:i=!1,showLabel:l=!0,emptyTitle:c=!1,iconSide:d="right",optionIconSide:u="left",placeholder:h,containerClassName:p,optionsListClass:m,optionsClass:f,currentValueClass:g,subContainerClassName:v,className:w,renderOption:x,searchClassName:y,searchPlaceholder:b,showOptionIcon:k=!1}){const C={className:"top-full mt-3"};i&&(C.className="bottom-full mb-3");let j=n;c&&(j="");const N=s??[],[M,P]=yp({availableOptions:N,placeholder:b,getTextKeyOverride:e=>function(e){return"string"==typeof e?e:"label"in e?e.label??"":"value"in e?(e.value??"")+"":""}(e).toUpperCase(),className:y,disabled:a}),L=null!=P?M:N,T=k&&null!=r&&null!=r.icon,E=t.useRef(null);return e.jsx("div",{className:Ie("flex items-center justify-center gap-2",p??""),children:e.jsx("div",{className:Ie("relative w-full",v??""),children:e.jsx(S.Listbox,{value:r,onChange:o,disabled:a,children:({open:t})=>e.jsxs(e.Fragment,{children:[e.jsxs(S.ListboxButton,{ref:E,"data-testid":"select-dropdown-button",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),!t&&E.current&&E.current.click())},className:Ie("relative flex w-full cursor-default flex-col rounded-md border border-black/10 bg-white py-2 pl-3 pr-10 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:bg-white dark:border-gray-600 dark:bg-gray-700 sm:text-sm",w??""),children:[l&&e.jsx(S.Label,{className:"block text-xs text-gray-700 dark:text-gray-500",id:"headlessui-listbox-label-:r1:","data-headlessui-state":"",children:j}),e.jsx("span",{className:"inline-flex w-full truncate",children:e.jsxs("span",{className:Ie("flex h-6 items-center gap-1 truncate text-sm text-gray-800 dark:text-white",l?"":"text-xs",g??""),children:[!l&&!c&&e.jsxs("span",{className:"text-xs text-gray-700 dark:text-gray-500",children:[j,":"]}),T&&"right"!==u&&e.jsx("span",{className:"icon-md flex items-center",children:r.icon}),T&&e.jsx("span",{className:"icon-md absolute right-0 mr-8 flex items-center",children:r.icon}),r?"string"!=typeof r?r.label??"":r:e.jsx("span",{className:"text-text-secondary",children:h})]})}),e.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 text-gray-400",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",style:i?{transform:"scaleY(-1)"}:{},children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}),e.jsx(S.Transition,{show:t,as:"div",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",...C,children:e.jsxs(S.ListboxOptions,{className:Ie("absolute z-10 mt-2 max-h-60 w-full overflow-auto rounded border bg-white text-xs ring-black/10 dark:border-gray-600 dark:bg-gray-700 dark:ring-white/20 md:w-[100%]",m??""),children:[x&&e.jsx(S.ListboxOption,{value:null,className:Ie("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-700",f??""),children:x()},"listbox-render-option"),P,L.map((t,n)=>{if(!t)return null;const a="string"==typeof t?t:t.label??t.value??"",o="string"==typeof t?t:t.value??"",s="string"==typeof t?null:t.icon??null;let i=r;return"string"!=typeof i&&(i=i?.value??""),e.jsx(S.ListboxOption,{value:t,className:({active:e})=>Ie("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-600",e?"bg-surface-active text-text-primary":"",f??""),children:e.jsxs("span",{className:"flex items-center gap-1.5 truncate",children:[e.jsxs("span",{className:Ie("flex h-6 items-center gap-1 text-gray-800 dark:text-gray-200",t===r?"font-semibold":"","left"===d?"ml-4":""),children:[null!=s&&e.jsx("span",{className:Ie("mr-1","right"===u?"absolute right-0 pr-2":""),children:s}),a]}),o===i&&e.jsx("span",{className:Ie("absolute inset-y-0 flex items-center text-gray-800 dark:text-gray-200","left"===d?"left-0 pl-2":"right-0 pr-3"),children:e.jsx(Vw,{})})]})},n)})]})})]})})})})},exports.SendIcon=function({size:t=24,className:n=""}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:Ie("text-white dark:text-black",n),children:e.jsx("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},exports.SendMessageIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:"icon-sm m-1 md:m-0",style:{width:"1em",height:"1em",verticalAlign:"middle"},children:e.jsx("path",{d:"M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z",fill:"currentColor"})})},exports.Separator=ua,exports.Sidebar=function({className:t}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.85719 3H15.1428C16.2266 2.99999 17.1007 2.99998 17.8086 3.05782C18.5375 3.11737 19.1777 3.24318 19.77 3.54497C20.7108 4.02433 21.4757 4.78924 21.955 5.73005C22.2568 6.32234 22.3826 6.96253 22.4422 7.69138C22.5 8.39925 22.5 9.27339 22.5 10.3572V13.6428C22.5 14.7266 22.5 15.6008 22.4422 16.3086C22.3826 17.0375 22.2568 17.6777 21.955 18.27C21.4757 19.2108 20.7108 19.9757 19.77 20.455C19.1777 20.7568 18.5375 20.8826 17.8086 20.9422C17.1008 21 16.2266 21 15.1428 21H8.85717C7.77339 21 6.89925 21 6.19138 20.9422C5.46253 20.8826 4.82234 20.7568 4.23005 20.455C3.28924 19.9757 2.52433 19.2108 2.04497 18.27C1.74318 17.6777 1.61737 17.0375 1.55782 16.3086C1.49998 15.6007 1.49999 14.7266 1.5 13.6428V10.3572C1.49999 9.27341 1.49998 8.39926 1.55782 7.69138C1.61737 6.96253 1.74318 6.32234 2.04497 5.73005C2.52433 4.78924 3.28924 4.02433 4.23005 3.54497C4.82234 3.24318 5.46253 3.11737 6.19138 3.05782C6.89926 2.99998 7.77341 2.99999 8.85719 3ZM6.35424 5.05118C5.74907 5.10062 5.40138 5.19279 5.13803 5.32698C4.57354 5.6146 4.1146 6.07354 3.82698 6.63803C3.69279 6.90138 3.60062 7.24907 3.55118 7.85424C3.50078 8.47108 3.5 9.26339 3.5 10.4V13.6C3.5 14.7366 3.50078 15.5289 3.55118 16.1458C3.60062 16.7509 3.69279 17.0986 3.82698 17.362C4.1146 17.9265 4.57354 18.3854 5.13803 18.673C5.40138 18.8072 5.74907 18.8994 6.35424 18.9488C6.97108 18.9992 7.76339 19 8.9 19H9.5V5H8.9C7.76339 5 6.97108 5.00078 6.35424 5.05118ZM11.5 5V19H15.1C16.2366 19 17.0289 18.9992 17.6458 18.9488C18.2509 18.8994 18.5986 18.8072 18.862 18.673C19.4265 18.3854 19.8854 17.9265 20.173 17.362C20.3072 17.0986 20.3994 16.7509 20.4488 16.1458C20.4992 15.5289 20.5 14.7366 20.5 13.6V10.4C20.5 9.26339 20.4992 8.47108 20.4488 7.85424C20.3994 7.24907 20.3072 6.90138 20.173 6.63803C19.8854 6.07354 19.4265 5.6146 18.862 5.32698C18.5986 5.19279 18.2509 5.10062 17.6458 5.05118C17.0289 5.00078 16.2366 5 15.1 5H11.5ZM5 8.5C5 7.94772 5.44772 7.5 6 7.5H7C7.55229 7.5 8 7.94772 8 8.5C8 9.05229 7.55229 9.5 7 9.5H6C5.44772 9.5 5 9.05229 5 8.5ZM5 12C5 11.4477 5.44772 11 6 11H7C7.55229 11 8 11.4477 8 12C8 12.5523 7.55229 13 7 13H6C5.44772 13 5 12.5523 5 12Z",fill:"currentColor"})})},exports.Skeleton=ha,exports.Slider=da,exports.Sparkles=function({className:t="",size:n=24}){return e.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Ie("icon-md shrink-0",t),children:[e.jsx("path",{d:"M19.3975 1.35498C19.3746 1.15293 19.2037 1.00021 19.0004 1C18.7971 0.999793 18.6259 1.15217 18.6026 1.35417C18.4798 2.41894 18.1627 3.15692 17.6598 3.65983C17.1569 4.16274 16.4189 4.47983 15.3542 4.60264C15.1522 4.62593 14.9998 4.79707 15 5.00041C15.0002 5.20375 15.1529 5.37457 15.355 5.39746C16.4019 5.51605 17.1562 5.83304 17.6716 6.33906C18.1845 6.84269 18.5078 7.57998 18.6016 8.63539C18.6199 8.84195 18.7931 9.00023 19.0005 9C19.2078 8.99977 19.3806 8.84109 19.3985 8.6345C19.4883 7.59673 19.8114 6.84328 20.3273 6.32735C20.8433 5.81142 21.5967 5.48834 22.6345 5.39851C22.8411 5.38063 22.9998 5.20782 23 5.00045C23.0002 4.79308 22.842 4.61992 22.6354 4.60157C21.58 4.50782 20.8427 4.18447 20.3391 3.67157C19.833 3.15623 19.516 2.40192 19.3975 1.35498Z",fill:"currentColor"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 3C11.4833 3 11.8974 3.34562 11.9839 3.82111C12.4637 6.46043 13.279 8.23983 14.5196 9.48039C15.7602 10.721 17.5396 11.5363 20.1789 12.0161C20.6544 12.1026 21 12.5167 21 13C21 13.4833 20.6544 13.8974 20.1789 13.9839C17.5396 14.4637 15.7602 15.279 14.5196 16.5196C13.279 17.7602 12.4637 19.5396 11.9839 22.1789C11.8974 22.6544 11.4833 23 11 23C10.5167 23 10.1026 22.6544 10.0161 22.1789C9.53625 19.5396 8.72096 17.7602 7.48039 16.5196C6.23983 15.279 4.46043 14.4637 1.82111 13.9839C1.34562 13.8974 1 13.4833 1 13C1 12.5167 1.34562 12.1026 1.82111 12.0161C4.46043 11.5363 6.23983 10.721 7.48039 9.48039C8.72096 8.23983 9.53625 6.46043 10.0161 3.82111C10.1026 3.34562 10.5167 3 11 3ZM5.66618 13C6.9247 13.5226 7.99788 14.2087 8.89461 15.1054C9.79134 16.0021 10.4774 17.0753 11 18.3338C11.5226 17.0753 12.2087 16.0021 13.1054 15.1054C14.0021 14.2087 15.0753 13.5226 16.3338 13C15.0753 12.4774 14.0021 11.7913 13.1054 10.8946C12.2087 9.99788 11.5226 8.9247 11 7.66618C10.4774 8.9247 9.79134 9.99788 8.89461 10.8946C7.99788 11.7913 6.9247 12.4774 5.66618 13Z",fill:"currentColor"})]})},exports.SpeechIcon=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Ie(t),children:[e.jsx("path",{d:"M2 10v3"}),e.jsx("path",{d:"M6 6v11"}),e.jsx("path",{d:"M10 3v18"}),e.jsx("path",{d:"M14 8v7"}),e.jsx("path",{d:"M18 5v13"}),e.jsx("path",{d:"M22 10v3"})]})},exports.Spinner=Iw,exports.SplitText=({text:n="",className:r="",delay:a=100,animationFrom:o={opacity:0,transform:"translate3d(0,40px,0)"},animationTo:s={opacity:1,transform:"translate3d(0,0,0)"},easing:i=e=>e,threshold:l=.1,rootMargin:c="-100px",textAlign:d="center",onLetterAnimationComplete:u,onLineCountChange:h})=>{const p=n.split(" ").map(Aw),m=p.flat(),[f,g]=t.useState(!1),v=t.useRef(null),w=t.useRef(0),[x]=function(e,n,r){const a=Af.fun(n)&&n;a&&!r&&(r=[]);const o=t.useMemo(()=>a||3==arguments.length?pw():void 0,[]),s=t.useRef(0),i=Yg(),l=t.useMemo(()=>({ctrls:[],queue:[],flush(e,t){const n=iw(e,t);return s.current>0&&!l.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?ow(e,t):new Promise(r=>{lw(e,n),l.queue.push(()=>{r(ow(e,t))}),i()})}}),[]),c=t.useRef([...l.ctrls]),d=t.useRef([]),u=Gg(e)||0;function h(e,t){for(let r=e;r<t;r++){const e=c.current[r]||(c.current[r]=new aw(null,l.flush)),t=a?a(r,e):n[r];t&&(d.current[r]=Kv(t))}}t.useMemo(()=>{zf(c.current.slice(e,u),e=>{!function(e,t){e.ref?.delete(e),t?.delete(e)}(e,o),e.stop(!0)}),c.current.length=e,h(u,e)},[e]),t.useMemo(()=>{h(0,Math.min(u,e))},r);const p=c.current.map((e,t)=>iw(e,d.current[t])),m=t.useContext(hw),f=Gg(m),g=m!==f&&function(e){for(const t in e)return!0;return!1}(m);Xg(()=>{s.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],zf(e,e=>e())),zf(c.current,(e,t)=>{o?.add(e),g&&e.start({default:m});const n=d.current[t];n&&(function(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),Zg(()=>()=>{zf(l.ctrls,e=>e.stop(!0))});const v=p.map(e=>({...e}));return o?[v,o]:v}(m.length,e=>({from:o,to:f?async e=>{await e(s),w.current+=1,w.current===m.length&&u&&u()}:o,delay:e*a,config:{easing:i}}),[f,n,a,o,s,i,u]);return t.useEffect(()=>{const e=new IntersectionObserver(([t])=>{t.isIntersecting&&(g(!0),v.current&&e.unobserve(v.current))},{threshold:l,rootMargin:c});return v.current&&e.observe(v.current),()=>e.disconnect()},[l,c]),t.useEffect(()=>{if(v.current&&f){const e=v.current;setTimeout(()=>{const t=parseInt(getComputedStyle(e).lineHeight)||1.2*parseInt(getComputedStyle(e).fontSize),n=e.offsetHeight,r=Math.round(n/t);h&&h(r)},100)}},[f,n,h]),e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sr-only",children:n}),e.jsx("p",{ref:v,className:`split-parent inline overflow-hidden ${r}`,style:{textAlign:d,whiteSpace:"normal",wordWrap:"break-word"},"aria-hidden":"true",children:p.map((t,n)=>e.jsxs("span",{style:{display:"inline-block",whiteSpace:"nowrap"},children:[t.map((t,r)=>{const a=p.slice(0,n).reduce((e,t)=>e+t.length,0)+r;return e.jsx(Ew.span,{style:x[a],className:"inline-block transform transition-opacity will-change-transform",children:t},a)}),n<p.length-1&&e.jsx("span",{style:{display:"inline-block",width:"0.3em"},children:" "})]},n))})]})},exports.SquirclePlusIcon=function(){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"text-3xl",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})},exports.StopGeneratingIcon=function({className:t=""}){return e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ie("h-3 w-3 text-gray-600 dark:text-gray-400",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})})},exports.Switch=pa,exports.Table=ma,exports.TableBody=ga,exports.TableCaption=ba,exports.TableCell=ya,exports.TableFooter=va,exports.TableHead=xa,exports.TableHeader=fa,exports.TableRow=wa,exports.Tabs=ka,exports.TabsContent=Na,exports.TabsList=Ca,exports.TabsTrigger=ja,exports.Tag=Ma,exports.Textarea=Pa,exports.TextareaAutosize=$a,exports.ThemeContext=nn,exports.ThemeProvider=({initialTheme:n,children:r})=>{const[a,o]=t.useState(()=>n??De()),s=u.useSetAtom(en);return t.useEffect(()=>{const e=document.documentElement,t="system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches:"dark"===a;e.classList.toggle("dark",t),e.classList.toggle("light",!t),localStorage.setItem("color-theme",a)},[a]),t.useEffect(()=>{if("system"!==a)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>o(e.matches?"dark":"light");return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[a]),t.useEffect(()=>{const e=localStorage.getItem("fontSize")||"text-base";Ve(e),s(e)},[s]),e.jsx(nn.Provider,{value:{theme:a,setTheme:o},children:r})},exports.ThemeSelector=({returnThemeOnly:n})=>{const{theme:r,setTheme:a}=t.useContext(nn),[o,s]=t.useState(""),i=t.useCallback(e=>{const t=Date.now();"number"==typeof window.lastThemeChange&&t-window.lastThemeChange<500||(window.lastThemeChange=t,a(e),s("dark"===e?"Dark theme enabled":"Light theme enabled"))},[a]);return t.useEffect(()=>{if("system"===r){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;a(e?"dark":"light")}},[r,a]),t.useEffect(()=>{if(o){const e=setTimeout(()=>s(""),1e3);return()=>clearTimeout(e)}},[o]),!0===n?e.jsx(qw,{theme:r,onChange:i}):e.jsxs("div",{className:"flex flex-col items-center justify-center bg-white pt-6 dark:bg-gray-900 sm:pt-0",children:[e.jsx("div",{className:"absolute bottom-0 left-0 m-4",children:e.jsx(qw,{theme:r,onChange:i})}),o&&e.jsx("div",{"aria-live":"polite",className:"sr-only",children:o})]})},exports.ThumbDownIcon=function({className:t="",size:n="1em",bold:r=!1}){return r?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",className:t,children:[e.jsx("path",{d:"M11.4079 21.4961C11.1953 21.8698 10.7683 22.0649 10.348 21.9805C8.4373 21.5968 7.27541 19.6391 7.84844 17.7691L8.69697 14.9999L6.98577 14.9999C4.35915 14.9999 2.45151 12.492 3.14262 9.94747L4.50063 4.94747C4.97329 3.20722 6.54741 1.99994 8.34378 1.99994H14.0328C15.131 2.00207 16.0206 2.89668 16.0206 3.99994V14.9999H15.6827C15.3253 14.9999 14.9953 15.1922 14.818 15.5038L11.4079 21.4961Z",fill:"currentColor"}),e.jsx("path",{d:"M18.0124 14.9999C19.6624 14.9999 21 13.6568 21 11.9999V4.99994C21 3.34308 19.6624 1.99994 18.0124 1.99994H17.4794C17.8184 2.58829 18.0124 3.27136 18.0124 3.99994V14.9999Z",fill:"currentColor"})]}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8727 21.4961C11.6725 21.8466 11.2811 22.0423 10.8805 21.9922L10.4267 21.9355C7.95958 21.6271 6.36855 19.1665 7.09975 16.7901L7.65054 15H6.93226C4.29476 15 2.37923 12.4921 3.0732 9.94753L4.43684 4.94753C4.91145 3.20728 6.49209 2 8.29589 2H18.0045C19.6614 2 21.0045 3.34315 21.0045 5V12C21.0045 13.6569 19.6614 15 18.0045 15H16.0045C15.745 15 15.5054 15.1391 15.3766 15.3644L11.8727 21.4961ZM14.0045 4H8.29589C7.39399 4 6.60367 4.60364 6.36637 5.47376L5.00273 10.4738C4.65574 11.746 5.61351 13 6.93226 13H9.00451C9.32185 13 9.62036 13.1506 9.8089 13.4059C9.99743 13.6612 10.0536 13.9908 9.96028 14.2941L9.01131 17.3782C8.6661 18.5002 9.35608 19.6596 10.4726 19.9153L13.6401 14.3721C13.9523 13.8258 14.4376 13.4141 15.0045 13.1902V5C15.0045 4.44772 14.5568 4 14.0045 4ZM17.0045 13V5C17.0045 4.64937 16.9444 4.31278 16.8338 4H18.0045C18.5568 4 19.0045 4.44772 19.0045 5V12C19.0045 12.5523 18.5568 13 18.0045 13H17.0045Z",fill:"currentColor"})})},exports.ThumbUpIcon=function({className:t="",size:n="1em",bold:r=!1}){return r?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",className:t,children:[e.jsx("path",{d:"M12.592 2.50386C12.8047 2.13014 13.2317 1.935 13.652 2.01942C15.5627 2.40314 16.7246 4.36079 16.1516 6.23085L15.303 9L17.0142 9C19.6409 9 21.5485 11.5079 20.8574 14.0525L19.4994 19.0525C19.0267 20.7927 17.4526 22 15.6562 22H9.96721C8.869 21.9979 7.97939 21.1033 7.97939 20V9H8.31734C8.67472 9 9.0047 8.80771 9.18201 8.49613L12.592 2.50386Z",fill:"currentColor"}),e.jsx("path",{d:"M5.98763 9C4.33761 9 3 10.3431 3 12V19C3 20.6569 4.33761 22 5.98763 22H6.52055C6.18162 21.4116 5.98763 20.7286 5.98763 20V9Z",fill:"currentColor"})]}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1318 2.50389C12.3321 2.15338 12.7235 1.95768 13.124 2.00775L13.5778 2.06447C16.0449 2.37286 17.636 4.83353 16.9048 7.20993L16.354 8.99999H17.0722C19.7097 8.99999 21.6253 11.5079 20.9313 14.0525L19.5677 19.0525C19.0931 20.7927 17.5124 22 15.7086 22H6C4.34315 22 3 20.6568 3 19V12C3 10.3431 4.34315 8.99999 6 8.99999H8C8.25952 8.99999 8.49914 8.86094 8.6279 8.63561L12.1318 2.50389ZM10 20H15.7086C16.6105 20 17.4008 19.3964 17.6381 18.5262L19.0018 13.5262C19.3488 12.2539 18.391 11 17.0722 11H15C14.6827 11 14.3841 10.8494 14.1956 10.5941C14.0071 10.3388 13.9509 10.0092 14.0442 9.70591L14.9932 6.62175C15.3384 5.49984 14.6484 4.34036 13.5319 4.08468L10.3644 9.62789C10.0522 10.1742 9.56691 10.5859 9 10.8098V19C9 19.5523 9.44772 20 10 20ZM7 11V19C7 19.3506 7.06015 19.6872 7.17071 20H6C5.44772 20 5 19.5523 5 19V12C5 11.4477 5.44772 11 6 11H7Z",fill:"currentColor"})})},exports.Toast=function(){const{toast:t,onOpenChange:n}=rn(),r={[exports.NotificationSeverity.INFO]:"border-gray-500 bg-gray-500",[exports.NotificationSeverity.SUCCESS]:"border-green-500 bg-green-500",[exports.NotificationSeverity.WARNING]:"border-orange-500 bg-orange-500",[exports.NotificationSeverity.ERROR]:"border-red-500 bg-red-500"};return e.jsx($.Root,{open:t.open,onOpenChange:n,className:"toast-root",style:{height:"74px",marginBottom:"0px"},children:e.jsx("div",{className:"w-full p-1 text-center md:w-auto md:text-justify",children:e.jsxs("div",{className:`alert-root pointer-events-auto inline-flex flex-row gap-2 rounded-md border px-3 py-2 text-white ${r[t.severity]}`,children:[t.showIcon&&e.jsx("div",{className:"mt-1 flex-shrink-0 flex-grow-0",children:e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),e.jsx($.Description,{className:"flex-1 justify-center gap-2",children:e.jsx("div",{className:"whitespace-pre-wrap text-left",children:t.message})})]})})})},exports.ToastContext=tx,exports.ToastProvider=function({children:t}){const{showToast:n}=rn();return e.jsx(tx.Provider,{value:{showToast:n},children:t})},exports.TooltipAnchor=Yh,exports.TrashIcon=Dw,exports.UserIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e.jsx("circle",{cx:"12",cy:"7",r:"4"})]})},exports.VectorIcon=function({className:t}){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-label":"",children:e.jsx("path",{d:"M7.45996 14.375C7.45996 13.3616 6.63844 12.54 5.625 12.54C4.61156 12.54 3.79004 13.3616 3.79004 14.375C3.79004 15.3884 4.61156 16.21 5.625 16.21C6.63844 16.21 7.45996 15.3884 7.45996 14.375ZM16.21 14.375C16.21 13.3616 15.3884 12.54 14.375 12.54C13.3616 12.54 12.54 13.3616 12.54 14.375C12.54 15.3884 13.3616 16.21 14.375 16.21C15.3884 16.21 16.21 15.3884 16.21 14.375ZM7.45996 5.625C7.45996 4.61156 6.63844 3.79004 5.625 3.79004C4.61156 3.79004 3.79004 4.61156 3.79004 5.625C3.79004 6.63844 4.61156 7.45996 5.625 7.45996C6.63844 7.45996 7.45996 6.63844 7.45996 5.625ZM16.21 5.625C16.21 4.61156 15.3884 3.79004 14.375 3.79004C13.3616 3.79004 12.54 4.61156 12.54 5.625C12.54 6.63844 13.3616 7.45996 14.375 7.45996C15.3884 7.45996 16.21 6.63844 16.21 5.625ZM17.54 14.375C17.54 16.123 16.123 17.54 14.375 17.54C12.627 17.54 11.21 16.123 11.21 14.375C11.21 12.627 12.627 11.21 14.375 11.21C16.123 11.21 17.54 12.627 17.54 14.375ZM8.79004 5.625C8.79004 7.37298 7.37298 8.79004 5.625 8.79004C3.87702 8.79004 2.45996 7.37298 2.45996 5.625C2.45996 3.87702 3.87702 2.45996 5.625 2.45996C7.37298 2.45996 8.79004 3.87702 8.79004 5.625ZM17.54 5.625C17.54 7.37298 16.123 8.79004 14.375 8.79004C13.7416 8.79004 13.153 8.60173 12.6582 8.28125L8.28125 12.6582C8.60173 13.153 8.79004 13.7416 8.79004 14.375C8.79004 16.123 7.37298 17.54 5.625 17.54C3.87702 17.54 2.45996 16.123 2.45996 14.375C2.45996 12.627 3.87702 11.21 5.625 11.21C6.25794 11.21 6.84623 11.3977 7.34082 11.7178L11.7178 7.34082C11.3977 6.84623 11.21 6.25794 11.21 5.625C11.21 3.87702 12.627 2.45996 14.375 2.45996C16.123 2.45996 17.54 3.87702 17.54 5.625Z"})})},exports.VolumeIcon=function({className:t="",size:n="1em"}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:n,width:n,className:Ie(t),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4.9099C11 4.47485 10.4828 4.24734 10.1621 4.54132L6.67572 7.7372C6.49129 7.90626 6.25019 8.00005 6 8.00005H4C3.44772 8.00005 3 8.44776 3 9.00005V15C3 15.5523 3.44772 16 4 16H6C6.25019 16 6.49129 16.0938 6.67572 16.2629L10.1621 19.4588C10.4828 19.7527 11 19.5252 11 19.0902V4.9099ZM8.81069 3.06701C10.4142 1.59714 13 2.73463 13 4.9099V19.0902C13 21.2655 10.4142 22.403 8.81069 20.9331L5.61102 18H4C2.34315 18 1 16.6569 1 15V9.00005C1 7.34319 2.34315 6.00005 4 6.00005H5.61102L8.81069 3.06701ZM20.3166 6.35665C20.8019 6.09313 21.409 6.27296 21.6725 6.75833C22.5191 8.3176 22.9996 10.1042 22.9996 12.0001C22.9996 13.8507 22.5418 15.5974 21.7323 17.1302C21.4744 17.6185 20.8695 17.8054 20.3811 17.5475C19.8927 17.2896 19.7059 16.6846 19.9638 16.1962C20.6249 14.9444 20.9996 13.5175 20.9996 12.0001C20.9996 10.4458 20.6064 8.98627 19.9149 7.71262C19.6514 7.22726 19.8312 6.62017 20.3166 6.35665ZM15.7994 7.90049C16.241 7.5688 16.8679 7.65789 17.1995 8.09947C18.0156 9.18593 18.4996 10.5379 18.4996 12.0001C18.4996 13.3127 18.1094 14.5372 17.4385 15.5604C17.1357 16.0222 16.5158 16.1511 16.0539 15.8483C15.5921 15.5455 15.4632 14.9255 15.766 14.4637C16.2298 13.7564 16.4996 12.9113 16.4996 12.0001C16.4996 10.9859 16.1653 10.0526 15.6004 9.30063C15.2687 8.85905 15.3578 8.23218 15.7994 7.90049Z",fill:"currentColor"})})},exports.VolumeMuteIcon=function({className:t="",size:n="1em"}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:n,width:n,className:Ie(t),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9.5 8.5C8.94772 8.5 8.5 8.94772 8.5 9.5V14.5C8.5 15.0523 8.94772 15.5 9.5 15.5H14.5C15.0523 15.5 15.5 15.0523 15.5 14.5V9.5C15.5 8.94772 15.0523 8.5 14.5 8.5H9.5Z",fill:"currentColor"})})},exports.XAIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:"currentColor",className:t,children:e.jsx("path",{d:"m3.005 8.858 8.783 12.544h3.904L6.908 8.858zM6.905 15.825 3 21.402h3.907l1.951-2.788zM16.585 2l-6.75 9.64 1.953 2.79L20.492 2zM17.292 7.965v13.437h3.2V3.395z"})})},exports.applyFontSize=Ve,exports.buttonVariants=Tt,exports.chatDirectionAtom=Jt,exports.cn=Ie,exports.fontSizeAtom=en,exports.getInitialTheme=De,exports.langAtom=Qt,exports.toastState=tn,exports.useCombobox=Cn,exports.useDelayedRender=Sn,exports.useLocalize=jn,exports.useMediaQuery=Nn,exports.useMultiSearch=yp,exports.useOnClickOutside=function(e,n,r,a){t.useEffect(()=>{const t=t=>{const o=t.target;o&&"id"in o&&r.includes(o.id)||o?.parentNode&&"id"in o.parentNode&&r.includes(o.parentNode.id)||a&&a(o)||e.current&&!e.current.contains(o)&&n()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,n])},exports.useToast=rn,exports.useToastContext=function(){return t.useContext(tx)};
60
40
  //# sourceMappingURL=index.js.map