@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.es.js CHANGED
@@ -1,60 +1,40 @@
1
- import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import o,{createContext as i,useMemo as a,createElement as s,useContext as l,useCallback as c,forwardRef as u,Children as d,isValidElement as f,cloneElement as p,Fragment as h,useRef as m,useEffect as g,useState as v,useLayoutEffect as b,useReducer as w,createRef as y,useId as x,useInsertionEffect as C,Component as S,useImperativeHandle as k,startTransition as E,memo as P,useSyncExternalStore as N}from"react";import*as R from"react-dom";import M,{flushSync as A,createPortal as T,unstable_batchedUpdates as I}from"react-dom";import{atom as O,useSetAtom as L,useAtom as D,useAtomValue as F}from"jotai";import{useTranslation as _}from"react-i18next";function V(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 z(){return z=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},z.apply(null,arguments)}function j(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>i(e)));return function(n){const r=(null==n?void 0:n[e])||t;return a((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=i(r),c=n.length;function u(t){const{scope:n,children:r,...i}=t,l=(null==n?void 0:n[e][c])||o,u=a((()=>i),Object.values(i));return s(l.Provider,{value:u},r)}return n=[...n,r],u.displayName=t+"Provider",[u,function(n,i){const a=(null==i?void 0:i[e][c])||o,s=l(a);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},H(r,...t)]}function H(...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((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function B(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function $(...e){return c(B(...e),e)}V('*, ::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 W=u(((e,t)=>{const{children:n,...r}=e,o=d.toArray(n),i=o.find(G);if(i){const e=i.props.children,n=o.map((t=>t===i?d.count(e)>1?d.only(null):f(e)?e.props.children:null:t));return s(U,z({},r,{ref:t}),f(e)?p(e,void 0,n):null)}return s(U,z({},r,{ref:t}),n)}));W.displayName="Slot";const U=u(((e,t)=>{const{children:n,...r}=e;return f(n)?p(n,{...X(r,n.props),ref:t?B(t,n.ref):n.ref}):d.count(n)>1?d.only(null):null}));U.displayName="SlotClone";const K=({children:e})=>s(h,null,e);function G(e){return f(e)&&e.type===K}function X(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 q(e){const t=e+"CollectionProvider",[n,r]=j(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=o.forwardRef(((e,t)=>{const{scope:n,children:r}=e,i=$(t,a(s,n).collectionRef);return o.createElement(W,{ref:i},r)})),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=o.forwardRef(((e,t)=>{const{scope:n,children:r,...i}=e,s=o.useRef(null),l=$(t,s),d=a(c,n);return o.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),o.createElement(W,{[u]:"",ref:l},r)}));return[{Provider:e=>{const{scope:t,children:n}=e,r=o.useRef(null),a=o.useRef(new Map).current;return o.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:l,ItemSlot:d},function(t){const n=a(e+"CollectionConsumer",t),r=o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}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 Z(e){const t=m(e);return g((()=>{t.current=e})),a((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Q({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=v(e),[r]=n,o=m(r),i=Z(t);return g((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=Z(n);return[a,c((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const J=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=u(((e,n)=>{const{asChild:r,...o}=e,i=r?W:t;return g((()=>{window[Symbol.for("radix-ui")]=!0}),[]),s(i,z({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function ee(e,t){e&&A((()=>e.dispatchEvent(t)))}const te=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?b:()=>{};const ne=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=v(),r=m({}),o=m(e),i=m("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return w(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g((()=>{const e=re(r.current);i.current="mounted"===s?e:"none"}),[s]),te((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=re(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),te((()=>{if(t){const e=e=>{const n=re(r.current).includes(e.animationName);e.target===t&&n&&A((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=re(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)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):d.only(n),i=$(r.ref,o.ref);return"function"==typeof n||r.isPresent?p(o,{ref:i}):null};function re(e){return(null==e?void 0:e.animationName)||"none"}ne.displayName="Presence";const oe=r["useId".toString()]||(()=>{});let ie=0;function ae(e){const[t,n]=r.useState(oe());return te((()=>{n((e=>null!=e?e:String(ie++)))}),[e]),t?`radix-${t}`:""}const se="Collapsible",[le,ce]=j(se),[ue,de]=le(se),fe=u(((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[u=!1,d]=Q({prop:r,defaultProp:o,onChange:a});return s(ue,{scope:n,disabled:i,contentId:ae(),open:u,onOpenToggle:c((()=>d((e=>!e))),[d])},s(J.div,z({"data-state":ve(u),"data-disabled":i?"":void 0},l,{ref:t})))})),pe=u(((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=de("CollapsibleTrigger",n);return s(J.button,z({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ve(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:Y(e.onClick,o.onOpenToggle)}))})),he="CollapsibleContent",me=u(((e,t)=>{const{forceMount:n,...r}=e,o=de(he,e.__scopeCollapsible);return s(ne,{present:n||o.open},(({present:e})=>s(ge,z({},r,{ref:t,present:e}))))})),ge=u(((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=de(he,n),[l,c]=v(r),u=m(null),d=$(t,u),f=m(0),p=f.current,h=m(0),b=h.current,w=a.open||l,y=m(w),x=m();return g((()=>{const e=requestAnimationFrame((()=>y.current=!1));return()=>cancelAnimationFrame(e)}),[]),te((()=>{const e=u.current;if(e){x.current=x.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();f.current=t.height,h.current=t.width,y.current||(e.style.transitionDuration=x.current.transitionDuration,e.style.animationName=x.current.animationName),c(r)}}),[a.open,r]),s(J.div,z({"data-state":ve(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!w},i,{ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style}}),w&&o)}));function ve(e){return e?"open":"closed"}const be=fe,we=pe,ye=me,xe=i(void 0);function Ce(e){const t=l(xe);return e||t||"ltr"}const Se="Accordion",ke=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ee,Pe,Ne]=q(Se),[Re,Me]=j(Se,[Ne,ce]),Ae=ce(),Te=o.forwardRef(((e,t)=>{const{type:n,...r}=e,i=r,a=r;return o.createElement(Ee.Provider,{scope:e.__scopeAccordion},"multiple"===n?o.createElement(_e,z({},a,{ref:t})):o.createElement(Fe,z({},i,{ref:t})))}));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[Ie,Oe]=Re(Se),[Le,De]=Re(Se,{collapsible:!1}),Fe=o.forwardRef(((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=(()=>{}),collapsible:a=!1,...s}=e,[l,c]=Q({prop:n,defaultProp:r,onChange:i});return o.createElement(Ie,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:c,onItemClose:o.useCallback((()=>a&&c("")),[a,c])},o.createElement(Le,{scope:e.__scopeAccordion,collapsible:a},o.createElement(je,z({},s,{ref:t}))))})),_e=o.forwardRef(((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=(()=>{}),...a}=e,[s=[],l]=Q({prop:n,defaultProp:r,onChange:i}),c=o.useCallback((e=>l(((t=[])=>[...t,e]))),[l]),u=o.useCallback((e=>l(((t=[])=>t.filter((t=>t!==e))))),[l]);return o.createElement(Ie,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:u},o.createElement(Le,{scope:e.__scopeAccordion,collapsible:!0},o.createElement(je,z({},a,{ref:t}))))})),[Ve,ze]=Re(Se),je=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:a="vertical",...s}=e,l=$(o.useRef(null),t),c=Pe(n),u="ltr"===Ce(i),d=Y(e.onKeyDown,(e=>{var t;if(!ke.includes(e.key))return;const n=e.target,r=c().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,d=()=>{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&&(u?d():f());break;case"ArrowDown":"vertical"===a&&d();break;case"ArrowLeft":"horizontal"===a&&(u?f():d());break;case"ArrowUp":"vertical"===a&&f()}null===(t=r[s%i].ref.current)||void 0===t||t.focus()}));return o.createElement(Ve,{scope:n,disabled:r,direction:i,orientation:a},o.createElement(Ee.Slot,{scope:n},o.createElement(J.div,z({},s,{"data-orientation":a,ref:l,onKeyDown:r?void 0:d}))))})),He="AccordionItem",[Be,$e]=Re(He),We=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,a=ze(He,n),s=Oe(He,n),l=Ae(n),c=ae(),u=r&&s.value.includes(r)||!1,d=a.disabled||e.disabled;return o.createElement(Be,{scope:n,open:u,disabled:d,triggerId:c},o.createElement(be,z({"data-orientation":a.orientation,"data-state":qe(u)},l,i,{ref:t,disabled:d,open:u,onOpenChange:e=>{e?s.onItemOpen(r):s.onItemClose(r)}})))})),Ue=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,...r}=e,i=ze(Se,n),a=$e("AccordionHeader",n);return o.createElement(J.h3,z({"data-orientation":i.orientation,"data-state":qe(a.open),"data-disabled":a.disabled?"":void 0},r,{ref:t}))})),Ke="AccordionTrigger",Ge=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,...r}=e,i=ze(Se,n),a=$e(Ke,n),s=De(Ke,n),l=Ae(n);return o.createElement(Ee.ItemSlot,{scope:n},o.createElement(we,z({"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId},l,r,{ref:t})))})),Xe=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,...r}=e,i=ze(Se,n),a=$e("AccordionContent",n),s=Ae(n);return o.createElement(ye,z({role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation},s,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))}));function qe(e){return e?"open":"closed"}const Ye=Te,Ze=We,Qe=Ue,Je=Ge,et=Xe;function tt(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 nt=["color"],rt=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,nt);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("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:r,fillRule:"evenodd",clipRule:"evenodd"}))})),ot=["color"],it=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,ot);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("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:r,fillRule:"evenodd",clipRule:"evenodd"}))})),at=["color"],st=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,at);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("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:r,fillRule:"evenodd",clipRule:"evenodd"}))})),lt=["color"],ct=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,lt);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("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:r,fillRule:"evenodd",clipRule:"evenodd"}))})),ut=["color"],dt=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,ut);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("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:r,fillRule:"evenodd",clipRule:"evenodd"}))})),ft=["color"],pt=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,ft);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("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:r,fillRule:"evenodd",clipRule:"evenodd"}))})),ht=["color"],mt=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,ht);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("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:r,fillRule:"evenodd",clipRule:"evenodd"}))}));function gt(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=gt(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function vt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=gt(e))&&(r&&(r+=" "),r+=t);return r}function bt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wt(e))&&(r&&(r+=" "),r+=t);return r}function wt(e){if("string"==typeof e)return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=wt(e[r]))&&(n&&(n+=" "),n+=t);return n}var yt="-";function xt(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];kt(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(yt);return""===n[0]&&1!==n.length&&n.shift(),Ct(n,t)||function(e){if(St.test(e)){var t=St.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 Ct(e,t){if(0===e.length)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Ct(e.slice(1),r):void 0;if(o)return o;if(0!==t.validators.length){var i=e.join(yt);return t.validators.find((function(e){return(0,e.validator)(i)}))?.classGroupId}}var St=/^\[(.+)\]$/;function kt(e,t,n,r){e.forEach((function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void kt(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((function(e){var o=e[0];kt(e[1],Et(t,o),n,r)}))}else{(""===e?t:Et(t,e)).classGroupId=n}}))}function Et(e,t){var n=e;return t.split(yt).forEach((function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function Pt(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 Nt="!";function Rt(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(Nt);return{modifiers:a,hasImportantModifier:f,baseClassName:f?d.substring(1):d,maybePostfixModifierPosition:i&&i>l?i-l:void 0}}}var Mt=/\s+/;function At(){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:Pt(e.cacheSize),splitModifiers:Rt(e),...xt(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(Mt).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+Nt: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(bt.apply(null,arguments))}}function Tt(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var It=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ot=/^\d+\/\d+$/,Lt=new Set(["px","full","screen"]),Dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ft=/\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$/,_t=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Vt(e){return Wt(e)||Lt.has(e)||Ot.test(e)||zt(e)}function zt(e){return Zt(e,"length",Qt)}function jt(e){return Zt(e,"size",Jt)}function Ht(e){return Zt(e,"position",Jt)}function Bt(e){return Zt(e,"url",en)}function $t(e){return Zt(e,"number",Wt)}function Wt(e){return!Number.isNaN(Number(e))}function Ut(e){return e.endsWith("%")&&Wt(e.slice(0,-1))}function Kt(e){return tn(e)||Zt(e,"number",tn)}function Gt(e){return It.test(e)}function Xt(){return!0}function qt(e){return Dt.test(e)}function Yt(e){return Zt(e,"",nn)}function Zt(e,t,n){var r=It.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function Qt(e){return Ft.test(e)}function Jt(){return!1}function en(e){return e.startsWith("url(")}function tn(e){return Number.isInteger(Number(e))}function nn(e){return _t.test(e)}function rn(){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"),h=Tt("gradientColorStopPositions"),m=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",Gt,t]},P=function(){return[Gt,t]},N=function(){return["",Vt]},R=function(){return["auto",Wt,Gt]},M=function(){return["","0",Gt]},A=function(){return[Wt,$t]},T=function(){return[Wt,Gt]};return{cacheSize:500,theme:{colors:[Xt],spacing:[Vt],blur:["none","",qt,Gt],brightness:A(),borderColor:[e],borderRadius:["none","","full",qt,Gt],borderSpacing:P(),borderWidth:N(),contrast:A(),grayscale:M(),hueRotate:T(),invert:M(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Ut,zt],inset:E(),margin:E(),opacity:A(),padding:P(),saturate:A(),scale:A(),sepia:M(),skew:T(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",Gt]}],container:["container"],columns:[{columns:[qt]}],"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"],[Gt])}],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:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Kt]}],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",Gt]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Kt]}],"grid-cols":[{"grid-cols":[Xt]}],"col-start-end":[{col:["auto",{span:["full",Kt]},Gt]}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[Xt]}],"row-start-end":[{row:["auto",{span:[Kt]},Gt]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Gt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Gt]}],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",Gt,t]}],"min-w":[{"min-w":["min","max","fit",Gt,Vt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[qt]},qt,Gt]}],h:[{h:[Gt,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Gt,Vt]}],"max-h":[{"max-h":[Gt,t,"min","max","fit"]}],"font-size":[{text:["base",qt,zt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$t]}],"font-family":[{font:[Xt]}],"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",Gt]}],"line-clamp":[{"line-clamp":["none",Wt,$t]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Gt,Vt]}],"list-image":[{"list-image":["none",Gt]}],"list-style-type":[{list:["none","disc","decimal",Gt]}],"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",Vt]}],"underline-offset":[{"underline-offset":["auto",Gt,Vt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Gt]}],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",Gt]}],"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"],[Ht])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Bt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"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":[Gt,Vt]}],"outline-w":[{outline:[Vt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Vt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qt,Yt]}],"shadow-color":[{shadow:[Xt]}],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",qt,Gt]}],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",Gt]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",Gt]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",Gt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[Kt,Gt]}],"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",Gt]}],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",Gt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",Gt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Vt,$t]}],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 on=At(rn);const an=(...e)=>on(vt(e)),sn=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")}},ln=()=>{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"},cn=Ye,un=r.forwardRef((({className:t="",...n},r)=>e(Ze,{ref:r,className:an("border-b",t),...n})));un.displayName="AccordionItem";const dn=r.forwardRef((({className:n="",children:r,...o},i)=>e(Qe,{className:"flex",children:t(Je,{ref:i,className:an("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",n),...o,children:[r,e(dt,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})));dn.displayName=Je.displayName;const fn=r.forwardRef((({className:t="",children:n,...r},o)=>e(et,{ref:o,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:e("div",{className:an("pb-4 pt-0",t),children:n})})));fn.displayName=et.displayName;var pn=Object.defineProperty,hn=Object.defineProperties,mn=Object.getOwnPropertyDescriptors,gn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,wn=(e,t,n)=>t in e?pn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yn=(e,t)=>{for(var n in t||(t={}))vn.call(t,n)&&wn(e,n,t[n]);if(gn)for(var n of gn(t))bn.call(t,n)&&wn(e,n,t[n]);return e},xn=(e,t)=>hn(e,mn(t)),Cn=(e,t)=>{var n={};for(var r in e)vn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&gn)for(var r of gn(e))t.indexOf(r)<0&&bn.call(e,r)&&(n[r]=e[r]);return n},Sn=Object.defineProperty,kn=Object.defineProperties,En=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Mn=(e,t,n)=>t in e?Sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,An=(e,t)=>{for(var n in t||(t={}))Nn.call(t,n)&&Mn(e,n,t[n]);if(Pn)for(var n of Pn(t))Rn.call(t,n)&&Mn(e,n,t[n]);return e},Tn=(e,t)=>kn(e,En(t)),In=(e,t)=>{var n={};for(var r in e)Nn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Pn)for(var r of Pn(e))t.indexOf(r)<0&&Rn.call(e,r)&&(n[r]=e[r]);return n};function On(...e){}function Ln(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 Dn(e,t){if(function(e){return"function"==typeof e}(e)){return e(function(e){return"function"==typeof e}(t)?t():t)}return e}function Fn(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function _n(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function Vn(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function zn(e){return e}function jn(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function Hn(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function Bn(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function $n(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}function Wn(...e){for(const t of e)if(void 0!==t)return t}function Un(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Kn(e){if(!function(e){return!!e&&!!f(e)&&("ref"in e.props||"ref"in e)}(e))return null;return yn({},e.props).ref||e.ref}var Gn,Xn="undefined"!=typeof window&&!!(null==(Gn=window.document)?void 0:Gn.createElement);function qn(e){return e?"self"in e?e.document:e.ownerDocument||document:document}function Yn(e){return e?"self"in e?e.self:qn(e).defaultView||window:self}function Zn(e,t=!1){const{activeElement:n}=qn(e);if(!(null==n?void 0:n.nodeName))return null;if(Jn(n)&&n.contentDocument)return Zn(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=qn(n).getElementById(e);if(t)return t}}return n}function Qn(e,t){return e===t||e.contains(t)}function Jn(e){return"IFRAME"===e.tagName}function er(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==tr.indexOf(e.type)}var tr=["button","color","file","image","reset","submit"];function nr(e){if("function"==typeof e.checkVisibility)return e.checkVisibility();const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function rr(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function or(e){return e.isContentEditable||rr(e)}function ir(e){let t=0,n=0;if(rr(e))t=e.selectionStart||0,n=e.selectionEnd||0;else if(e.isContentEditable){const r=qn(e).getSelection();if((null==r?void 0:r.rangeCount)&&r.anchorNode&&Qn(e,r.anchorNode)&&r.focusNode&&Qn(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 ar(e,t){const n=null==e?void 0:e.getAttribute("role");return n&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(n)?n:t}function sr(e,t){var n;const r=ar(e);if(!r)return t;return null!=(n={menu:"menuitem",listbox:"option",tree:"treeitem"}[r])?n:t}function lr(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 lr(e.parentElement)||document.scrollingElement||document.body}function cr(e,...t){/text|search|password|tel|url/i.test(e.type)&&e.setSelectionRange(...t)}function ur(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 dr(){return Xn&&!!navigator.maxTouchPoints}function fr(){return!!Xn&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function pr(){return Xn&&fr()&&/apple/i.test(navigator.vendor)}function hr(e){return Boolean(e.currentTarget&&!Qn(e.currentTarget,e.target))}function mr(e){return e.target===e.currentTarget}function gr(e){const t=e.currentTarget;if(!t)return!1;const n=fr();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 vr(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 br(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=Tn(An({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function wr(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function yr(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Qn(n,r)}function xr(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 Cr(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(Cr(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}for(const e of o)e()}}var Sr=yn({},r),kr=Sr.useId;Sr.useDeferredValue;var Er=Sr.useInsertionEffect,Pr=Xn?b:g;function Nr(e){const t=m(e);return Pr((()=>{t.current=e})),t}function Rr(e){const t=m((()=>{throw new Error("Cannot call an event handler while rendering.")}));return Er?Er((()=>{t.current=e})):t.current=e,c(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Mr(e){const[t,n]=v(null);return Pr((()=>{if(null==t)return;if(!e)return;let n=null;return e((e=>(n=e,t))),()=>{e(n)}}),[t,e]),[t,n]}function Ar(...e){return a((()=>{if(e.some(Boolean))return t=>{for(const n of e)Un(n,t)}}),e)}function Tr(e){if(kr){const t=kr();return e||t}const[t,n]=v(e);return Pr((()=>{if(e||t)return;const r=Math.random().toString(36).slice(2,8);n(`id-${r}`)}),[e,t]),e||t}function Ir(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=v((()=>n(t)));return Pr((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}function Or(e,t,n){const r=function(e){const[t]=v(e);return t}(n),[o,i]=v(r);return g((()=>{const n=e&&"current"in e?e.current:e;if(!n)return;const o=()=>{const e=n.getAttribute(t);i(null==e?r:e)},a=new MutationObserver(o);return a.observe(n,{attributeFilter:[t]}),o(),()=>a.disconnect()}),[e,t,r]),o}function Lr(e,t){const n=m(!1);g((()=>{if(n.current)return e();n.current=!0}),t),g((()=>()=>{n.current=!1}),[])}function Dr(){return w((()=>[]),[])}function Fr(e){return Rr("function"==typeof e?e:()=>e)}function _r(e,t,n=[]){const r=c((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return xn(yn({},e),{wrapElement:r})}function Vr(e=!1,t){const[n,r]=v(null);return{portalRef:Ar(r,t),portalNode:n,domReady:!e||n}}function zr(e,t,n){const r=e.onLoadedMetadataCapture,o=a((()=>Object.assign((()=>{}),xn(yn({},r),{[t]:n}))),[r,t,n]);return[null==r?void 0:r[t],{onLoadedMetadataCapture:o}]}function jr(){g((()=>{Cr("mousemove",Wr,!0),Cr("mousedown",Ur,!0),Cr("mouseup",Ur,!0),Cr("keydown",Ur,!0),Cr("scroll",Ur,!0)}),[]);return Rr((()=>Hr))}var Hr=!1,Br=0,$r=0;function Wr(e){(function(e){const t=e.movementX||e.screenX-Br,n=e.movementY||e.screenY-$r;return Br=e.screenX,$r=e.screenY,t||n||!1})(e)&&(Hr=!0)}function Ur(){Hr=!1}function Kr(e){const t=r.forwardRef(((t,n)=>e(xn(yn({},t),{ref:n}))));return t.displayName=e.displayName||e.name,t}function Gr(e,t){return r.memo(e,t)}function Xr(t,n){const o=n,{wrapElement:i,render:a}=o,s=Cn(o,["wrapElement","render"]),l=Ar(n.ref,Kn(a));let c;if(r.isValidElement(a)){const e=xn(yn({},a.props),{ref:l});c=r.cloneElement(a,function(e,t){const n=yn({},e);for(const r in t){if(!Fn(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]?yn(yn({},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=a?a(s):e(t,yn({},s));return i?i(c):c}function qr(e){const t=(t={})=>e(t);return t.displayName=e.name,t}function Yr(t=[],n=[]){const o=r.createContext(void 0),i=r.createContext(void 0),a=()=>r.useContext(o),s=n=>t.reduceRight(((t,r)=>e(r,xn(yn({},n),{children:t}))),e(o.Provider,yn({},n)));return{context:o,scopedContext:i,useContext:a,useScopedContext:(e=!1)=>{const t=r.useContext(i),n=a();return e?t:t||n},useProviderContext:()=>{const e=r.useContext(i),t=a();if(!e||e!==t)return t},ContextProvider:s,ScopedContextProvider:t=>e(s,xn(yn({},t),{children:n.reduceRight(((n,r)=>e(r,xn(yn({},t),{children:n}))),e(i.Provider,yn({},t)))}))}}var Zr=Yr();Zr.useContext,Zr.useScopedContext;var Qr=Zr.useProviderContext,Jr=Yr([Zr.ContextProvider],[Zr.ScopedContextProvider]),eo=Jr.useProviderContext,to=Jr.ContextProvider,no=Jr.ScopedContextProvider,ro=i(void 0),oo=i(void 0),io=Yr([to],[no]),ao=io.useContext;io.useScopedContext;var so=io.useProviderContext,lo=io.ContextProvider,co=io.ScopedContextProvider,uo=Yr(),fo=uo.useContext;uo.useScopedContext,uo.useProviderContext;var po=Yr([uo.ContextProvider],[uo.ScopedContextProvider]),ho=po.useContext,mo=po.useProviderContext,go=po.ContextProvider,vo=po.ScopedContextProvider,bo=i(void 0),wo=i(void 0),yo=Yr([lo,go],[co,vo]),xo=yo.useContext,Co=yo.useScopedContext,So=yo.useProviderContext,ko=yo.ContextProvider,Eo=yo.ScopedContextProvider,Po=i(!1),No=i(null);function Ro(e,t){const n=e.__unstableInternals;return jn(n,"Invalid store"),n[t]}function Mo(e,...t){let n=e,r=n,o=Symbol(),i=On;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)}),h=(e,i,a=!1)=>{var l;if(!Fn(n,e))return;const p=Dn(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 h=n;n=Tn(An({},n),{[e]:p});const m=Symbol();o=m,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,h);queueMicrotask((()=>{if(o!==m)return;const e=n;for(const e of u)g(e,r,s);r=e,s.clear()}))},m={getState:()=>n,setState:h,__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=>_n(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&Fn(r,e))return Oo(t,[e],(t=>{h(e,t[e],!0)}))})))));var c;const u=[];for(const e of l)u.push(e());const d=t.map(To);return i=_n(...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=>Mo(function(e,t){const n={};for(const r of t)Fn(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>Mo(function(e,t){const n=An({},e);for(const e of t)Fn(n,e)&&delete n[e];return n}(n,e),m)}};return m}function Ao(e,...t){if(e)return Ro(e,"setup")(...t)}function To(e,...t){if(e)return Ro(e,"init")(...t)}function Io(e,...t){if(e)return Ro(e,"subscribe")(...t)}function Oo(e,...t){if(e)return Ro(e,"sync")(...t)}function Lo(e,...t){if(e)return Ro(e,"batch")(...t)}function Do(e,...t){if(e)return Ro(e,"omit")(...t)}function Fo(e,...t){if(e)return Ro(e,"pick")(...t)}function _o(...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=Mo(t,...e);return Object.assign({},...e,n)}function Vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zo={exports:{}},jo={},Ho=o;var Bo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},$o=Ho.useState,Wo=Ho.useEffect,Uo=Ho.useLayoutEffect,Ko=Ho.useDebugValue;function Go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bo(e,n)}catch(e){return!0}}var Xo="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=$o({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Uo((function(){o.value=n,o.getSnapshot=t,Go(o)&&i({inst:o})}),[e,n,t]),Wo((function(){return Go(o)&&i({inst:o}),e((function(){Go(o)&&i({inst:o})}))}),[e]),Ko(n),n};jo.useSyncExternalStore=void 0!==Ho.useSyncExternalStore?Ho.useSyncExternalStore:Xo,zo.exports=jo;var qo=Vo(zo.exports),{useSyncExternalStore:Yo}=qo,Zo=()=>()=>{};function Qo(e,t=zn){const n=r.useCallback((t=>e?Io(e,null,t):Zo()),[e]),o=()=>{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&&Fn(o,n)?o[n]:void 0};return Yo(n,o,o)}function Jo(e,t){const n=r.useRef({}),o=r.useCallback((t=>e?Io(e,null,t):Zo()),[e]),i=()=>{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(!Fn(r,n))continue;const t=r[n];t!==i[e]&&(i[e]=t,o=!0)}}return o&&(n.current=yn({},i)),n.current};return Yo(o,i,i)}function ei(e,t,n,r){const o=Fn(t,n)?t[n]:void 0,i=r?t[r]:void 0,a=Nr({value:o,setValue:i});Pr((()=>Oo(e,[n],((e,t)=>{const{value:r,setValue:o}=a.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),Pr((()=>{if(void 0!==o)return e.setState(n,o),Lo(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function ti(e,t){const[n,o]=r.useState((()=>e(t)));Pr((()=>To(n)),[n]);const i=r.useCallback((e=>Qo(n,e)),[n]);return[r.useMemo((()=>xn(yn({},n),{useState:i})),[n,i]),Rr((()=>{o((n=>e(yn(yn({},t),n.getState()))))}))]}function ni(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=Wn(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:Wn(null==n?void 0:n.renderedItems,[])},a=null==(s=e.store)?void 0:s.__unstablePrivateStore;var s;const l=Mo({items:r,renderedItems:i.renderedItems},a),c=Mo(i,e.store),u=e=>{const t=ur(e,(e=>e.element));l.setState("renderedItems",t),c.setState("renderedItems",t)};Ao(c,(()=>To(l))),Ao(l,(()=>Lo(l,["items"],(e=>{c.setState("items",e.items)})))),Ao(l,(()=>Lo(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 qn(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=An(An({},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 Tn(An({},c),{registerItem:f,renderItem:e=>_n(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 ri(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function oi(e){const t=[];for(const n of e)t.push(...n);return t}function ii(e){return e.slice().reverse()}var ai={id:null};function si(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function li(e,t){return e.filter((e=>e.rowId===t))}function ci(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 ui(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function di(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=ni(e),o=Wn(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=Mo(Tn(An({},r.getState()),{id:Wn(e.id,null==n?void 0:n.id,`id-${Math.random().toString(36).slice(2,8)}`),activeId:o,baseElement:Wn(null==n?void 0:n.baseElement,null),includesBaseElement:Wn(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:Wn(null==n?void 0:n.moves,0),orientation:Wn(e.orientation,null==n?void 0:n.orientation,"both"),rtl:Wn(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:Wn(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:Wn(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:Wn(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:Wn(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);Ao(i,(()=>Oo(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=si(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,h="up"===e||"down"===e,m="next"===e||"down"===e,g=m?p&&!h:!p||h,v=l&&!a;let b=h?oi(function(e,t,n){const r=ui(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?si(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}(ci(f),s,v)):f;if(b=g?ii(b):b,b=h?function(e){const t=ci(e),n=ui(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(Tn(An({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}(b):b,null==s)return null==(n=si(b))?void 0:n.id;const w=b.find((e=>e.id===s));if(!w)return null==(r=si(b))?void 0:r.id;const y=b.some((e=>e.rowId)),x=b.indexOf(w),C=b.slice(x+1),S=li(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&&(h?"horizontal"!==c:"vertical"!==c),E=y&&u&&(h?"horizontal"!==u:"vertical"!==u),P=m?(!y||h)&&k&&d:!!h&&d;if(k){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[ai]:[],...e.slice(0,r)]}(E&&!P?b:li(b,w.rowId),s,P),t=si(e,s);return null==t?void 0:t.id}if(E){const e=si(P?S:C,s);return P?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const N=si(S,s);return!N&&P?null:null==N?void 0:N.id};return Tn(An(An({},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=si(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=si(ii(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 fi(e){const t=Tr(e.id);return yn({id:t},e)}function pi(e,t,n){return e=function(e,t,n){return Lr(t,[n.store]),ei(e,n,"items","setItems"),e}(e,t,n),ei(e,n,"activeId","setActiveId"),ei(e,n,"includesBaseElement"),ei(e,n,"virtualFocus"),ei(e,n,"orientation"),ei(e,n,"rtl"),ei(e,n,"focusLoop"),ei(e,n,"focusWrap"),ei(e,n,"focusShift"),e}var hi=i(void 0),mi=Yr([lo,go],[co,vo]),gi=mi.useContext,vi=mi.useScopedContext,bi=mi.useProviderContext,wi=mi.ContextProvider,yi=mi.ScopedContextProvider,xi=i(void 0),Ci=i(!1);function Si(e={}){var t=e,{composite:n,combobox:r}=t,o=In(t,["composite","combobox"]);const i=["items","renderedItems","moves","orientation","virtualFocus","includesBaseElement","baseElement","focusLoop","focusShift","focusWrap"],a=_o(o.store,Do(n,i),Do(r,i)),s=null==a?void 0:a.getState(),l=di(Tn(An({},o),{store:a,includesBaseElement:Wn(o.includesBaseElement,null==s?void 0:s.includesBaseElement,!1),orientation:Wn(o.orientation,null==s?void 0:s.orientation,"horizontal"),focusLoop:Wn(o.focusLoop,null==s?void 0:s.focusLoop,!0)})),c=ni(),u=Mo(Tn(An({},l.getState()),{selectedId:Wn(o.selectedId,null==s?void 0:s.selectedId,o.defaultSelectedId),selectOnMove:Wn(o.selectOnMove,null==s?void 0:s.selectOnMove,!0)}),l,a);Ao(u,(()=>Oo(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;Ao(u,(()=>Lo(u,["selectedId"],((e,t)=>{d?n&&e.selectedId===t.selectedId||u.setState("activeId",e.selectedId):d=!0})))),Ao(u,(()=>Oo(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)})))),Ao(u,(()=>Oo(u,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return Oo(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(Tn(An({},e),{tabId:r.id}))}))}))}))));let f=null;return Ao(u,(()=>{const e=()=>{f=u.getState().selectedId},t=()=>{d=!1,u.setState("selectedId",f)};return n&&"setSelectElement"in n?_n(Oo(n,["value"],e),Oo(n,["mounted"],t)):r?_n(Oo(r,["selectedValue"],e),Oo(r,["mounted"],t)):void 0})),Tn(An(An({},l),u),{panels:c,setSelectedId:e=>u.setState("selectedId",e),select:e=>{u.setState("selectedId",e),l.move(e)}})}function ki(e={}){const t=gi(),n=xo()||t;e=xn(yn({},e),{composite:void 0!==e.composite?e.composite:n,combobox:void 0!==e.combobox?e.combobox:t});const[r,o]=ti(Si,e);return function(e,t,n){Lr(t,[n.composite,n.combobox]),ei(e=pi(e,t,n),n,"selectedId","setSelectedId"),ei(e,n,"selectOnMove");const[r,o]=ti((()=>e.panels),{});return Lr(o,[e,o]),Object.assign(a((()=>xn(yn({},e),{panels:r})),[e,r]),{composite:n.composite,combobox:n.combobox})}(r,o,e)}var Ei=Yr([go],[vo]),Pi=Ei.useContext,Ni=Ei.useScopedContext,Ri=Ei.useProviderContext,Mi=Ei.ContextProvider,Ai=Ei.ScopedContextProvider,Ti={id:null};function Ii(e,t){return t&&e.item(t)||null}var Oi=Symbol("FOCUS_SILENTLY");function Li(e,t,n){if(!t)return!1;if(t===n)return!1;return!!e.item(t.id)}var Di=qr((function(e){var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=zn,element:i}=t,a=Cn(t,["store","shouldRegisterItem","getItem","element"]);const s=fo();n=n||s;const l=Tr(a.id),c=m(i);return g((()=>{const e=c.current;if(!l)return;if(!e)return;if(!r)return;const t=o({id:l,element:e});return null==n?void 0:n.renderItem(t)}),[l,r,o,n]),$n(a=xn(yn({},a),{ref:Ar(c,a.ref)}))}));Kr((function(e){return Xr("div",Di(e))}));var Fi=i(!0),_i="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 Vi(e){return!!e.matches(_i)&&(!!nr(e)&&!e.closest("[inert]"))}function zi(e){if(!Vi(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=Zn(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||n.name!==e.name)))}function ji(e,t){const n=Array.from(e.querySelectorAll(_i));t&&n.unshift(e);const r=n.filter(Vi);return r.forEach(((e,t)=>{if(Jn(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...ji(n))}})),r}function Hi(e,t,n){const r=Array.from(e.querySelectorAll(_i)),o=r.filter(zi);return t&&zi(e)&&o.unshift(e),o.forEach(((e,t)=>{if(Jn(e)&&e.contentDocument){const r=Hi(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function Bi(e,t){return function(e,t,n,r){const o=Zn(e),i=ji(e,t),a=i.indexOf(o),s=i.slice(a+1);return s.find(zi)||(n?i.find(zi):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function $i(e,t){return function(e,t,n,r){const o=Zn(e),i=ji(e,t).reverse(),a=i.indexOf(o);return i.slice(a+1).find(zi)||null}(document.body,!1)}function Wi(e){const t=Zn(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function Ui(e){const t=Zn(e);if(!t)return!1;if(Qn(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function Ki(e){!Ui(e)&&Vi(e)&&e.focus()}function Gi(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}var Xi=pr(),qi=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],Yi=Symbol("safariFocusAncestor");function Zi(e,t){e&&(e[Yi]=t)}function Qi(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function Ji(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function ea(e,t){return Rr((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var ta=!0;function na(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(ta=!1))}function ra(e){e.metaKey||e.ctrlKey||e.altKey||(ta=!0)}var oa=qr((function(e){var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,s=Cn(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const c=m(null);g((()=>{n&&(Cr("mousedown",na,!0),Cr("keydown",ra,!0))}),[n]),Xi&&g((()=>{if(!n)return;const e=c.current;if(!e)return;if(!Qi(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));for(const e of t)e.addEventListener("mouseup",r);return()=>{for(const e of t)e.removeEventListener("mouseup",r)}}),[n]);const u=n&&Bn(s),d=!!u&&!r,[f,p]=v(!1);g((()=>{n&&d&&f&&p(!1)}),[n,d,f]),g((()=>{if(!n)return;if(!f)return;const e=c.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{Vi(e)||p(!1)}));return t.observe(e),()=>t.disconnect()}),[n,f]);const h=ea(s.onKeyPressCapture,u),b=ea(s.onMouseDownCapture,u),w=ea(s.onClickCapture,u),y=s.onMouseDown,x=Rr((e=>{if(null==y||y(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!Xi)return;if(hr(e))return;if(!er(t)&&!Qi(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0});const i=function(e){for(;e&&!Vi(e);)e=e.closest(_i);return e||null}(t.parentElement);Zi(i,!0),xr(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),Zi(i,!1),r||Ki(t)}))})),C=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&Wi(r)&&(null==i||i(e),e.defaultPrevented||(r.dataset.focusVisible="true",p(!0)))},S=s.onKeyDownCapture,k=Rr((e=>{if(null==S||S(e),e.defaultPrevented)return;if(!n)return;if(f)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!mr(e))return;const t=e.currentTarget;xr(t,"focusout",(()=>C(e,t)))})),E=s.onFocusCapture,P=Rr((e=>{if(null==E||E(e),e.defaultPrevented)return;if(!n)return;if(!mr(e))return void p(!1);const t=e.currentTarget,r=()=>C(e,t);ta||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):qi.includes(r)))}(e.target)?xr(e.target,"focusout",r):p(!1)})),N=s.onBlur,R=Rr((e=>{null==N||N(e),n&&yr(e)&&(e.currentTarget.removeAttribute("data-focus-visible"),p(!1))})),M=l(Fi),A=Rr((e=>{n&&o&&e&&M&&queueMicrotask((()=>{Wi(e)||Vi(e)&&e.focus()}))})),T=Ir(c),I=n&&function(e){return!e||"button"===e||"summary"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(T),O=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(T),L=s.style,D=a((()=>d?yn({pointerEvents:"none"},L):L),[d,L]);return $n(s=xn(yn({"data-focus-visible":n&&f||void 0,"data-autofocus":o||void 0,"aria-disabled":u||void 0},s),{ref:Ar(c,A,s.ref),style:D,tabIndex:Ji(n,d,I,O,s.tabIndex),disabled:!(!O||!d)||void 0,contentEditable:u?void 0:s.contentEditable,onKeyPressCapture:h,onClickCapture:w,onMouseDownCapture:b,onMouseDown:x,onKeyDownCapture:k,onFocusCapture:P,onBlur:R}))}));Kr((function(e){return Xr("div",oa(e))}));function ia(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?er(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(er(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var aa=Symbol("command"),sa=qr((function(e){var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=Cn(t,["clickOnEnter","clickOnSpace"]);const i=m(null),[a,s]=v(!1);g((()=>{i.current&&s(er(i.current))}),[]);const[l,c]=v(!1),u=m(!1),d=Bn(o),[f,p]=zr(o,aa,!0),h=o.onKeyDown,b=Rr((e=>{null==h||h(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(f)return;if(d)return;if(!mr(e))return;if(rr(t))return;if(t.isContentEditable)return;const o=n&&"Enter"===e.key,i=r&&" "===e.key,a="Enter"===e.key&&!n,s=" "===e.key&&!r;if(a||s)e.preventDefault();else if(o||i){const n=ia(e);if(o){if(!n){e.preventDefault();const n=e,{view:r}=n,o=Cn(n,["view"]),i=()=>wr(t,o);Xn&&/firefox\//i.test(navigator.userAgent)?xr(t,"keyup",i):queueMicrotask(i)}}else i&&(u.current=!0,n||(e.preventDefault(),c(!0)))}})),w=o.onKeyUp,y=Rr((e=>{if(null==w||w(e),e.defaultPrevented)return;if(f)return;if(d)return;if(e.metaKey)return;const t=r&&" "===e.key;if(u.current&&t&&(u.current=!1,!ia(e))){e.preventDefault(),c(!1);const t=e.currentTarget,n=e,{view:r}=n,o=Cn(n,["view"]);queueMicrotask((()=>wr(t,o)))}}));return o=xn(yn(yn({"data-active":l||void 0,type:a?"button":void 0},p),o),{ref:Ar(i,o.ref),onKeyDown:b,onKeyUp:y}),o=oa(o)}));Kr((function(e){return Xr("button",sa(e))}));function la(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function ca(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=lr(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=Ii(t,l))?void 0:o.element;if(!a)continue;const u=la(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 ua=qr((function(t){var n=t,{store:r,rowId:o,preventScrollOnKeyDown:i=!1,moveOnKeyPress:s=!0,tabbable:u=!1,getItem:d,"aria-setsize":f,"aria-posinset":p}=n,h=Cn(n,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const g=ho();r=r||g;const v=Tr(h.id),b=m(null),w=l(wo),y=Bn(h)&&!h.accessibleWhenDisabled,{rowId:x,baseElement:C,isActiveItem:S,ariaSetSize:k,ariaPosInSet:E,isTabbable:P}=Jo(r,{rowId:e=>o||(e&&(null==w?void 0:w.baseElement)&&w.baseElement===e.baseElement?w.id:void 0),baseElement:e=>(null==e?void 0:e.baseElement)||void 0,isActiveItem:e=>!!e&&e.activeId===v,ariaSetSize:e=>null!=f?f:e&&(null==w?void 0:w.ariaSetSize)&&w.baseElement===e.baseElement?w.ariaSetSize:void 0,ariaPosInSet(e){if(null!=p)return p;if(!e)return;if(!(null==w?void 0:w.ariaPosInSet))return;if(w.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===x));return w.ariaPosInSet+t.findIndex((e=>e.id===v))},isTabbable(e){if(!(null==e?void 0:e.renderedItems.length))return!0;if(e.virtualFocus)return!1;if(u)return!0;if(null===e.activeId)return!1;const t=null==r?void 0:r.item(e.activeId);return!!(null==t?void 0:t.disabled)||(!(null==t?void 0:t.element)||e.activeId===v)}}),N=c((e=>{var t;const n=xn(yn({},e),{id:v||e.id,rowId:x,disabled:!!y,children:null==(t=e.element)?void 0:t.textContent});return d?d(n):n}),[v,x,y,d]),R=h.onFocus,M=m(!1),A=Rr((e=>{if(null==R||R(e),e.defaultPrevented)return;if(hr(e))return;if(!v)return;if(!r)return;if(function(e,t){return!mr(e)&&Li(t,e.target)}(e,r))return;const{virtualFocus:t,baseElement:n}=r.getState();if(r.setActiveId(v),or(e.currentTarget)&&function(e,t=!1){if(rr(e))e.setSelectionRange(t?e.value.length:0,e.value.length);else if(e.isContentEditable){const n=qn(e).getSelection();null==n||n.selectAllChildren(e),t&&(null==n||n.collapseToEnd())}}(e.currentTarget),!t)return;if(!mr(e))return;if(or(o=e.currentTarget)||"INPUT"===o.tagName&&!er(o))return;var o;if(!(null==n?void 0:n.isConnected))return;pr()&&e.currentTarget.hasAttribute("data-autofocus")&&e.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),M.current=!0;e.relatedTarget===n||Li(r,e.relatedTarget)?function(e){e[Oi]=!0,e.focus({preventScroll:!0})}(n):n.focus()})),T=h.onBlurCapture,I=Rr((e=>{if(null==T||T(e),e.defaultPrevented)return;const t=null==r?void 0:r.getState();(null==t?void 0:t.virtualFocus)&&M.current&&(M.current=!1,e.preventDefault(),e.stopPropagation())})),O=h.onKeyDown,L=Fr(i),D=Fr(s),F=Rr((e=>{if(null==O||O(e),e.defaultPrevented)return;if(!mr(e))return;if(!r)return;const{currentTarget:t}=e,n=r.getState(),o=r.item(v),i=!!(null==o?void 0:o.rowId),a="horizontal"!==n.orientation,s="vertical"!==n.orientation,l=()=>!!i||(!!s||(!n.baseElement||!rr(n.baseElement))),c={ArrowUp:(i||a)&&r.up,ArrowRight:(i||s)&&r.next,ArrowDown:(i||a)&&r.down,ArrowLeft:(i||s)&&r.previous,Home:()=>{if(l())return!i||e.ctrlKey?null==r?void 0:r.first():null==r?void 0:r.previous(-1)},End:()=>{if(l())return!i||e.ctrlKey?null==r?void 0:r.last():null==r?void 0:r.next(-1)},PageUp:()=>ca(t,r,null==r?void 0:r.up,!0),PageDown:()=>ca(t,r,null==r?void 0:r.down)}[e.key];if(c){if(or(t)){const n=ir(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(rr(e))return e.value;if(e.isContentEditable){const t=qn(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(L(e)||void 0!==n){if(!D(e))return;e.preventDefault(),r.move(n)}}})),_=a((()=>({id:v,baseElement:C})),[v,C]);return h=_r(h,(t=>e(bo.Provider,{value:_,children:t})),[_]),h=xn(yn({id:v,"data-active-item":S||void 0},h),{ref:Ar(b,h.ref),tabIndex:P?h.tabIndex:-1,onFocus:A,onBlurCapture:I,onKeyDown:F}),h=sa(h),h=Di(xn(yn({store:r},h),{getItem:N,shouldRegisterItem:!!v&&h.shouldRegisterItem})),$n(xn(yn({},h),{"aria-setsize":k,"aria-posinset":E}))})),da=Gr(Kr((function(e){return Xr("button",ua(e))}))),fa=qr((function(t){var n,r=t,{store:o,getItem:i}=r,a=Cn(r,["store","getItem"]);const s=Ni();jn(o=o||s,!1);const l=Tr(),u=a.id||l,d=Bn(a),f=c((e=>{const t=xn(yn({},e),{dimmed:d});return i?i(t):t}),[d,i]),p=a.onClick,h=Rr((e=>{null==p||p(e),e.defaultPrevented||null==o||o.setSelectedId(u)})),m=o.panels.useState((e=>{var t;return null==(t=e.items.find((e=>e.tabId===u)))?void 0:t.id})),g=!!l&&a.shouldRegisterItem,v=o.useState((e=>!!u&&e.activeId===u)),b=o.useState((e=>!!u&&e.selectedId===u)),w=o.useState((e=>!!o.item(e.activeId))),y=v||b&&!w,x=b||null==(n=a.accessibleWhenDisabled)||n;if(Qo(o.combobox||o.composite,"virtualFocus")&&(a=xn(yn({},a),{tabIndex:-1})),a=xn(yn({id:u,role:"tab","aria-selected":b,"aria-controls":m||void 0},a),{onClick:h}),o.composite){const t={id:u,accessibleWhenDisabled:x,store:o.composite,shouldRegisterItem:y&&g,rowId:a.rowId,render:a.render};a=xn(yn({},a),{render:e(da,xn(yn({},t),{render:o.combobox&&o.composite!==o.combobox?e(da,xn(yn({},t),{store:o.combobox})):t.render}))})}return a=ua(xn(yn({store:o},a),{accessibleWhenDisabled:x,getItem:f,shouldRegisterItem:g}))})),pa=Gr(Kr((function(e){return Xr("button",fa(e))})));function ha(t={}){const n=ki(t);return e(Mi,{value:n,children:t.children})}function ma(e,t,n){return Rr((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;if(r.isPropagationStopped())return;if(!mr(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&&!rr(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const i=e.getState(),a=null==(o=Ii(e,i.activeId))?void 0:o.element;if(!a)return;const s=r,{view:l}=s,c=Cn(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 ga=qr((function(t){var n=t,{store:r,composite:o=!0,focusOnMove:i=o,moveOnKeyPress:a=!0}=n,s=Cn(n,["store","composite","focusOnMove","moveOnKeyPress"]);const l=mo();jn(r=r||l,!1);const u=m(null),d=m(null),f=function(e){const[t,n]=v(!1),r=c((()=>n(!0)),[]),o=e.useState((t=>Ii(e,t.activeId)));return g((()=>{const e=null==o?void 0:o.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[o,t]),r}(r),p=r.useState("moves"),[,h]=Mr(o?r.setBaseElement:null);g((()=>{var e;if(!r)return;if(!p)return;if(!o)return;if(!i)return;const{activeId:t}=r.getState(),n=null==(e=Ii(r,t))?void 0:e.element;n&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(An({block:"nearest",inline:"nearest"},t))):e.focus()}(n)}),[r,p,o,i]),Pr((()=>{if(!r)return;if(!p)return;if(!o)return;const{baseElement:e,activeId:t}=r.getState();if(!(null===t))return;if(!e)return;const n=d.current;d.current=null,n&&br(n,{relatedTarget:e}),Wi(e)||e.focus()}),[r,p,o]);const b=r.useState("activeId"),w=r.useState("virtualFocus");Pr((()=>{var e;if(!r)return;if(!o)return;if(!w)return;const t=d.current;if(d.current=null,!t)return;const n=(null==(e=Ii(r,b))?void 0:e.element)||Zn(t);n!==t&&br(t,{relatedTarget:n})}),[r,b,w,o]);const y=ma(r,s.onKeyDownCapture,d),x=ma(r,s.onKeyUpCapture,d),C=s.onFocusCapture,S=Rr((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!r)return;const{virtualFocus:t}=r.getState();if(!t)return;const n=e.relatedTarget,o=function(e){const t=e[Oi];return delete e[Oi],t}(e.currentTarget);mr(e)&&o&&(e.stopPropagation(),d.current=n)})),k=s.onFocus,E=Rr((e=>{if(null==k||k(e),e.defaultPrevented)return;if(!o)return;if(!r)return;const{relatedTarget:t}=e,{virtualFocus:n}=r.getState();n?mr(e)&&!Li(r,t)&&queueMicrotask(f):mr(e)&&r.setActiveId(null)})),P=s.onBlurCapture,N=Rr((e=>{var t;if(null==P||P(e),e.defaultPrevented)return;if(!r)return;const{virtualFocus:n,activeId:o}=r.getState();if(!n)return;const i=null==(t=Ii(r,o))?void 0:t.element,a=e.relatedTarget,s=Li(r,a),l=d.current;if(d.current=null,mr(e)&&s)a===i?l&&l!==a&&br(l,e):i?br(i,e):l&&br(l,e),e.stopPropagation();else{!Li(r,e.target)&&i&&br(i,e)}})),R=s.onKeyDown,M=Fr(a),A=Rr((e=>{var t;if(null==R||R(e),e.nativeEvent.isComposing)return;if(e.defaultPrevented)return;if(!r)return;if(!mr(e))return;const{orientation:n,renderedItems:o,activeId:i}=r.getState(),a=Ii(r,i);if(null==(t=null==a?void 0:a.element)?void 0:t.isConnected)return;const s="horizontal"!==n,l="vertical"!==n,c=o.some((e=>!!e.rowId));if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&rr(e.currentTarget))return;const u={ArrowUp:(c||s)&&(()=>{if(c){const e=function(e){return function(e,t){return e.find((e=>!e.disabled))}(oi(ii(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))))}(o);return null==e?void 0:e.id}return null==r?void 0:r.last()}),ArrowRight:(c||l)&&r.first,ArrowDown:(c||s)&&r.first,ArrowLeft:(c||l)&&r.last,Home:r.first,End:r.last,PageUp:r.first,PageDown:r.last},d=u[e.key];if(d){const t=d();if(void 0!==t){if(!M(e))return;e.preventDefault(),r.move(t)}}}));s=_r(s,(t=>e(go,{value:r,children:t})),[r]);const T=r.useState((e=>{var t;if(r&&o&&e.virtualFocus)return null==(t=Ii(r,e.activeId))?void 0:t.id}));s=xn(yn({"aria-activedescendant":T},s),{ref:Ar(u,h,s.ref),onKeyDownCapture:y,onKeyUpCapture:x,onFocusCapture:S,onFocus:E,onBlurCapture:N,onKeyDown:A});const I=r.useState((e=>o&&(e.virtualFocus||null===e.activeId)));return s=oa(yn({focusable:I},s))}));Kr((function(e){return Xr("div",ga(e))}));var va=qr((function(t){var n=t,{store:r}=n,o=Cn(n,["store"]);const i=Ri();jn(r=r||i,!1);const a=r.useState((e=>"both"===e.orientation?void 0:e.orientation));return o=_r(o,(t=>e(Ai,{value:r,children:t})),[r]),r.composite&&(o=yn({focusable:!1},o)),o=yn({role:"tablist","aria-orientation":a},o),o=ga(yn({store:r},o))})),ba=Kr((function(e){return Xr("div",va(e))}));function wa(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function ya(...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 xa(e,t,n){return!(n||!1===t||e&&!t)}var Ca=qr((function(t){var n=t,{store:r,alwaysVisible:o}=n,i=Cn(n,["store","alwaysVisible"]);const s=Qr();jn(r=r||s,!1);const l=m(null),c=Tr(i.id),[u,d]=v(null),f=r.useState("open"),p=r.useState("mounted"),h=r.useState("animated"),g=r.useState("contentElement"),b=Qo(r.disclosure,"contentElement");Pr((()=>{l.current&&(null==r||r.setContentElement(l.current))}),[r]),Pr((()=>{let e;return null==r||r.setState("animated",(t=>(e=t,!0))),()=>{void 0!==e&&(null==r||r.setState("animated",e))}}),[r]),Pr((()=>{if(h){if(null==g?void 0:g.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{d(f?"enter":p?"leave":null)}));d(null)}}),[h,g,f,p]),Pr((()=>{if(!r)return;if(!h)return;if(!u)return;if(!g)return;const e=()=>null==r?void 0:r.setState("animating",!1),t=()=>A(e);if("leave"===u&&f)return;if("enter"===u&&!f)return;if("number"==typeof h){return wa(h,t)}const{transitionDuration:n,animationDuration:o,transitionDelay:i,animationDelay:a}=getComputedStyle(g),{transitionDuration:s="0",animationDuration:l="0",transitionDelay:c="0",animationDelay:d="0"}=b?getComputedStyle(b):{},p=ya(i,a,c,d)+ya(n,o,s,l);if(!p)return"enter"===u&&r.setState("animated",!1),void e();return wa(Math.max(p-1e3/60,0),t)}),[r,h,g,b,f,u]),i=_r(i,(t=>e(no,{value:r,children:t})),[r]);const w=xa(p,i.hidden,o),y=i.style,x=a((()=>w?xn(yn({},y),{display:"none"}):y),[w,y]);return $n(i=xn(yn({id:c,"data-open":f||void 0,"data-enter":"enter"===u||void 0,"data-leave":"leave"===u||void 0,hidden:w},i),{ref:Ar(c?r.setContentElement:null,l,i.ref),style:x}))})),Sa=Kr((function(e){return Xr("div",Ca(e))}));function ka(e={}){const t=_o(e.store,Do(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=Wn(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=Wn(e.animated,null==n?void 0:n.animated,!1),i=Mo({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:Wn(null==n?void 0:n.contentElement,null),disclosureElement:Wn(null==n?void 0:n.disclosureElement,null)},t);return Ao(i,(()=>Oo(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),Ao(i,(()=>Io(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),Ao(i,(()=>Oo(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),Tn(An({},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 Ea(e,t,n){return Lr(t,[n.store,n.disclosure]),ei(e,n,"open","setOpen"),ei(e,n,"mounted","setMounted"),ei(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function Pa(e={}){const[t,n]=ti(ka,e);return Ea(t,n,e)}Kr((function(t){var n=t,{unmountOnHide:r}=n,o=Cn(n,["unmountOnHide"]);const i=Qr();return!1===Qo(o.store||i,(e=>!r||(null==e?void 0:e.mounted)))?null:e(Sa,yn({},o))}));var Na=qr((function(t){var n=t,{store:r,unmountOnHide:o,tabId:i,getItem:a,scrollRestoration:s,scrollElement:l}=n,u=Cn(n,["store","unmountOnHide","tabId","getItem","scrollRestoration","scrollElement"]);const d=Ri();jn(r=r||d,!1);const f=m(null),p=Tr(u.id),h=Qo(r.panels,(()=>{var e;return i||(null==(e=null==r?void 0:r.panels.item(p))?void 0:e.tabId)})),b=Pa({open:Qo(r,(e=>!!h&&e.selectedId===h))}),w=Qo(b,"mounted"),y=m(new Map),x=Rr((()=>{const e=f.current;return e?l?"function"==typeof l?l(e):"current"in l?l.current:l:e:null}));g((()=>{var e,t;if(!s)return;if(!w)return;const n=x();if(!n)return;if("reset"===s)return void n.scroll(0,0);if(!h)return;const r=y.current.get(h);n.scroll(null!=(e=null==r?void 0:r.x)?e:0,null!=(t=null==r?void 0:r.y)?t:0);const o=()=>{y.current.set(h,{x:n.scrollLeft,y:n.scrollTop})};return n.addEventListener("scroll",o),()=>{n.removeEventListener("scroll",o)}}),[s,w,h,x,r]);const[C,S]=v(!1);g((()=>{const e=f.current;if(!e)return;const t=Hi(e);S(!!t.length)}),[]);const k=c((e=>{const t=xn(yn({},e),{id:p||e.id,tabId:i});return a?a(t):t}),[p,i,a]),E=u.onKeyDown,P=Rr((e=>{if(null==E||E(e),e.defaultPrevented)return;if(!(null==r?void 0:r.composite))return;const t={ArrowLeft:r.previous,ArrowRight:r.next,Home:r.first,End:r.last}[e.key];if(!t)return;const{selectedId:n}=r.getState(),o=t({activeId:n});o&&(e.preventDefault(),r.move(o))}));return u=_r(u,(t=>e(Ai,{value:r,children:t})),[r]),u=xn(yn({id:p,role:"tabpanel","aria-labelledby":h||void 0},u),{children:o&&!w?null:u.children,ref:Ar(f,u.ref),onKeyDown:P}),u=oa(yn({focusable:!r.composite&&!C},u)),u=Ca(yn({store:b},u)),u=Di(xn(yn({store:r.panels},u),{getItem:k}))})),Ra=Kr((function(e){return Xr("div",Na(e))})),Ma=qr((function(e){var t=e,{orientation:n="horizontal"}=t,r=Cn(t,["orientation"]);return r=yn({role:"separator","aria-orientation":n},r)}));Kr((function(e){return Xr("hr",Ma(e))}));var Aa=qr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=ho();jn(n=n||o,!1);const i=n.useState((e=>"horizontal"===e.orientation?"vertical":"horizontal"));return r=Ma(xn(yn({},r),{orientation:i}))}));function Ta(e={}){return ka(e)}function Ia(e,t,n){return Ea(e,t,n)}function Oa(e={}){var t=e,{popover:n}=t,r=In(t,["popover"]);const o=_o(r.store,Do(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),a=Ta(Tn(An({},r),{store:o})),s=Wn(r.placement,null==i?void 0:i.placement,"bottom"),l=Mo(Tn(An({},a.getState()),{placement:s,currentPlacement:s,anchorElement:Wn(null==i?void 0:i.anchorElement,null),popoverElement:Wn(null==i?void 0:i.popoverElement,null),arrowElement:Wn(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),a,o);return Tn(An(An({},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 La(e,t,n){return Lr(t,[n.popover]),ei(e,n,"placement"),Ia(e,t,n)}function Da(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Oa(Tn(An({},e),{placement:Wn(e.placement,null==n?void 0:n.placement,"bottom")})),o=Wn(e.timeout,null==n?void 0:n.timeout,500),i=Mo(Tn(An({},r.getState()),{timeout:o,showTimeout:Wn(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:Wn(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:Wn(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return Tn(An(An({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function Fa(e,t,n){return ei(e,n,"timeout"),ei(e,n,"showTimeout"),ei(e,n,"hideTimeout"),La(e,t,n)}function _a(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Da(Tn(An({},e),{placement:Wn(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:Wn(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=Mo(Tn(An({},r.getState()),{type:Wn(e.type,null==n?void 0:n.type,"description"),skipTimeout:Wn(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return An(An({},r),o)}function Va(e={}){const[t,n]=ti(_a,e);return function(e,t,n){return ei(e,n,"type"),ei(e,n,"skipTimeout"),Fa(e,t,n)}(t,n,e)}Kr((function(e){return Xr("hr",Aa(e))}));var za=Yr([lo],[co]);za.useContext,za.useScopedContext;var ja=za.useProviderContext,Ha=za.ContextProvider,Ba=za.ScopedContextProvider,$a=Yr([Ha],[Ba]),Wa=$a.useContext,Ua=$a.useProviderContext,Ka=$a.ContextProvider,Ga=$a.ScopedContextProvider;function Xa(e){return[e.clientX,e.clientY]}function qa(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 Za=i(null),Qa=qr((function(e){return e=xn(yn({},e),{style:yn({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})}));Kr((function(e){return Xr("span",Qa(e))}));var Ja=qr((function(e){return e=xn(yn({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:yn({position:"fixed",top:0,left:0},e.style)}),e=Qa(e)})),es=Kr((function(e){return Xr("span",Ja(e))}));function ts(e){queueMicrotask((()=>{null==e||e.focus()}))}var ns=qr((function(r){var o=r,{preserveTabOrder:i,preserveTabOrderAnchor:a,portalElement:s,portalRef:c,portal:u=!0}=o,d=Cn(o,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const f=m(null),p=Ar(f,d.ref),h=l(Za),[b,w]=v(null),[y,x]=v(null),C=m(null),S=m(null),k=m(null),E=m(null);return Pr((()=>{const e=f.current;if(!e||!u)return void w(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:qn(e).createElement("div")}(e,s);if(!t)return void w(null);const n=t.isConnected;if(!n){const n=h||function(e){return qn(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)}`}()),w(t),Un(c,t),n?void 0:()=>{t.remove(),Un(c,null)}}),[u,s,h,c]),Pr((()=>{if(!u)return;if(!i)return;if(!a)return;const e=qn(a).createElement("span");return e.style.position="fixed",a.insertAdjacentElement("afterend",e),x(e),()=>{e.remove(),x(null)}}),[u,i,a]),g((()=>{if(!b)return;if(!i)return;let e=0;const t=t=>{if(!yr(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)}(b);e=requestAnimationFrame((()=>{!function(e,t){const n=Hi(e,t);for(const e of n)Gi(e)}(b,!0)}))};return b.addEventListener("focusin",t,!0),b.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),b.removeEventListener("focusin",t,!0),b.removeEventListener("focusout",t,!0)}}),[b,i]),d=_r(d,(r=>{if(r=e(Za.Provider,{value:b||h,children:r}),!u)return r;if(!b)return e("span",{ref:p,id:d.id,style:{position:"fixed"},hidden:!0});r=t(n,{children:[i&&b&&e(es,{ref:S,"data-focus-trap":d.id,className:"__focus-trap-inner-before",onFocus:e=>{yr(e,b)?ts(Bi()):ts(C.current)}}),r,i&&b&&e(es,{ref:k,"data-focus-trap":d.id,className:"__focus-trap-inner-after",onFocus:e=>{yr(e,b)?ts($i()):ts(E.current)}})]}),b&&(r=T(r,b));let o=t(n,{children:[i&&b&&e(es,{ref:C,"data-focus-trap":d.id,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===E.current)&&yr(e,b)?ts(S.current):ts($i())}}),i&&e("span",{"aria-owns":null==b?void 0:b.id,style:{position:"fixed"}}),i&&b&&e(es,{ref:E,"data-focus-trap":d.id,className:"__focus-trap-outer-after",onFocus:e=>{if(yr(e,b))ts(k.current);else{const e=Bi();if(e===S.current)return void requestAnimationFrame((()=>{var e;return null==(e=Bi())?void 0:e.focus()}));ts(e)}}})]});return y&&i&&(o=T(o,y)),t(n,{children:[o,r]})}),[b,h,u,d.id,i,y]),d=xn(yn({},d),{ref:p})}));Kr((function(e){return Xr("div",ns(e))}));var rs=i(0);function os({level:t,children:n}){const r=l(rs),o=Math.max(Math.min(t||r+1,6),1);return e(rs.Provider,{value:o,children:n})}var is=qr((function(t){var n=t,{autoFocusOnShow:r=!0}=n,o=Cn(n,["autoFocusOnShow"]);return o=_r(o,(t=>e(Fi.Provider,{value:r,children:t})),[r])}));Kr((function(e){return Xr("div",is(e))}));var as=new WeakMap;function ss(e,t,n){as.has(e)||as.set(e,new Map);const r=as.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 ls(e,t,n){return ss(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function cs(e,t,n){return ss(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function us(e,t){if(!e)return()=>{};return ss(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var ds=["SCRIPT","STYLE"];function fs(e){return`__ariakit-dialog-snapshot-${e}`}function ps(e,t,n){return!ds.includes(t.tagName)&&(!!function(e,t){const n=qn(t),r=fs(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&&Qn(t,e))))}function hs(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=qn(o),s=o;for(;o.parentElement&&o!==a.body;){if(null==r||r(o.parentElement,s),!i)for(const r of o.parentElement.children)ps(e,r,t)&&n(r,s);o=o.parentElement}}}function ms(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 gs(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function vs(e,t=""){return _n(cs(e,gs("",!0),!0),cs(e,gs(t,!0),!0))}function bs(e,t){if(e[gs(t,!0)])return!0;const n=gs(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function ws(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));hs(e,t,(t=>{ms(t,...r)||n.unshift(function(e,t=""){return _n(cs(e,gs(),!0),cs(e,gs(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(vs(t,e))}));return()=>{for(const e of n)e()}}function ys({store:e,type:t,listener:n,capture:r,domReady:o}){const i=Rr(n),a=Qo(e,"open"),s=m(!1);Pr((()=>{if(!a)return;if(!o)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{s.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,a,o]),g((()=>{if(!a)return;return Cr(t,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;if(!n)return;if(!o)return;if(!function(e){return"HTML"===e.tagName||Qn(qn(e).body,e)}(o))return;if(Qn(n,o))return;if(function(e,t){if(!e)return!1;if(Qn(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=qn(e).getElementById(n);if(t)return Qn(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 a;s.current&&!bs(o,n.id)||((a=o)&&a[Yi]||i(t))}),r)}),[a,r])}function xs(e,t){return"function"==typeof e?e(t):!!e}function Cs(e,t,n){const r=function(e){const t=m();return g((()=>{if(e)return Cr("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(Qo(e,"open")),o={store:e,domReady:n,capture:!0};ys(xn(yn({},o),{type:"click",listener:n=>{const{contentElement:o}=e.getState(),i=r.current;i&&nr(i)&&bs(i,null==o?void 0:o.id)&&xs(t,n)&&e.hide()}})),ys(xn(yn({},o),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==qn(r)&&xs(t,n)&&e.hide()}})),ys(xn(yn({},o),{type:"contextmenu",listener:n=>{xs(t,n)&&e.hide()}}))}var Ss=i({});function ks(e,t,n){const r=function({attribute:e,contentId:t,contentElement:n,enabled:r}){const[o,i]=Dr(),a=c((()=>{if(!r)return!1;if(!n)return!1;const{body:o}=qn(n),i=o.getAttribute(e);return!i||i===t}),[o,r,n,e,t]);return g((()=>{if(!r)return;if(!t)return;if(!n)return;const{body:o}=qn(n);if(a())return o.setAttribute(e,t),()=>o.removeAttribute(e);const s=new MutationObserver((()=>A(i)));return s.observe(o,{attributeFilter:[e]}),()=>s.disconnect()}),[o,r,t,n,a,e]),a}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});g((()=>{if(!r())return;if(!e)return;const t=qn(e),n=Yn(e),{documentElement:o,body:i}=t,a=o.style.getPropertyValue("--scrollbar-width"),s=a?Number.parseInt(a):n.innerWidth-o.clientWidth,l=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(o),c=fr()&&!(Xn&&navigator.platform.startsWith("Mac")&&!dr());return _n((d="--scrollbar-width",f=`${s}px`,(u=o)?ss(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:o,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=us(i,{position:"fixed",overflow:"hidden",top:-(o-Math.floor(u))+"px",left:-(r-Math.floor(c))+"px",right:"0",[l]:`${s}px`});return()=>{d(),n.scrollTo({left:r,top:o,behavior:"instant"})}})():us(i,{overflow:"hidden",[l]:`${s}px`}));var u,d,f}),[r,e])}function Es(){return"inert"in HTMLElement.prototype}function Ps(e,t){if(!("style"in e))return On;if(Es())return cs(e,"inert",!0);const n=Hi(e,!0).map((e=>{if(null==t?void 0:t.some((t=>t&&Qn(t,e))))return On;const n=ss(e,"focus",(()=>(e.focus=On,()=>{delete e.focus})));return _n(ls(e,"tabindex","-1"),n)}));return _n(...n,function(e){return ls(e,"aria-hidden","true")}(e),us(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}qr((function(e){return e}));var Ns=Kr((function(e){return Xr("div",e)}));function Rs({store:t,backdrop:n,alwaysVisible:r,hidden:o}){const i=m(null),a=Pa({disclosure:t}),s=Qo(t,"contentElement");g((()=>{const e=i.current,t=s;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[s]),Pr((()=>{const e=null==s?void 0:s.id;if(!e)return;const t=i.current;return t?vs(t,e):void 0}),[s]);const l=Ca({ref:i,store:a,role:"presentation","data-backdrop":(null==s?void 0:s.id)||"",alwaysVisible:r,hidden:null!=o?o:void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!n)return null;if(f(n))return e(Ns,xn(yn({},l),{render:n}));const c="boolean"!=typeof n?n:"div";return e(Ns,xn(yn({},l),{render:e(c,{})}))}Object.assign(Ns,["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]=Kr((function(e){return Xr(t,e)})),e)),{}));var Ms=pr();function As(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?Vi(n)?n:null:n:null}var Ts=qr((function(r){var o=r,{store:i,open:s,onClose:u,focusable:d=!0,modal:f=!0,portal:p=!!f,backdrop:h=!!f,hideOnEscape:b=!0,hideOnInteractOutside:w=!0,getPersistentElements:y,preventBodyScroll:x=!!f,autoFocusOnShow:C=!0,autoFocusOnHide:S=!0,initialFocus:k,finalFocus:E,unmountOnHide:P,unstable_treeSnapshotKey:N}=o,R=Cn(o,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const M=eo(),A=m(null),T=function(e={}){const[t,n]=ti(Ta,e);return Ia(t,n,e)}({store:i||M,open:s,setOpen(e){if(e)return;const t=A.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});u&&t.addEventListener("close",u,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&T.setOpen(!0)}}),{portalRef:I,domReady:O}=Vr(p,R.portalRef),L=R.preserveTabOrder,D=Qo(T,(e=>L&&!f&&e.mounted)),F=Tr(R.id),_=Qo(T,"open"),V=Qo(T,"mounted"),z=Qo(T,"contentElement"),j=xa(V,R.hidden,R.alwaysVisible);ks(z,F,x&&!j),Cs(T,w,O);const{wrapElement:H,nestedDialogs:B}=function(t){const n=l(Ss),[r,o]=v([]),i=c((e=>{var t;return o((t=>[...t,e])),_n(null==(t=n.add)?void 0:t.call(n,e),(()=>{o((t=>t.filter((t=>t!==e))))}))}),[n]);Pr((()=>Oo(t,["open","contentElement"],(e=>{var r;if(e.open&&e.contentElement)return null==(r=n.add)?void 0:r.call(n,t)}))),[t,n]);const s=a((()=>({store:t,add:i})),[t,i]);return{wrapElement:c((t=>e(Ss.Provider,{value:s,children:t})),[s]),nestedDialogs:r}}(T);R=_r(R,H,[H]),Pr((()=>{if(!_)return;const e=A.current,t=Zn(e,!0);t&&"BODY"!==t.tagName&&(e&&Qn(e,t)||T.setDisclosureElement(t))}),[T,_]),Ms&&g((()=>{if(!V)return;const{disclosureElement:e}=T.getState();if(!e)return;if(!er(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),xr(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||Ki(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[T,V]),g((()=>{if(!V)return;if(!O)return;const e=A.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)}}),[V,O]),g((()=>{if(!f)return;if(!V)return;if(!O)return;const e=A.current;if(!e)return;return e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=qn(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,T.hide)}),[T,f,V,O]),Pr((()=>{if(!Es())return;if(_)return;if(!V)return;if(!O)return;const e=A.current;return e?Ps(e):void 0}),[_,V,O]);const $=_&&O;Pr((()=>{if(!F)return;if(!$)return;const e=A.current;return function(e,t){const{body:n}=qn(t[0]),r=[];return hs(e,t,(t=>{r.push(cs(t,fs(e),!0))})),_n(cs(n,fs(e),!0),(()=>{for(const e of r)e()}))}(F,[e])}),[F,$,N]);const W=Rr(y);Pr((()=>{if(!F)return;if(!$)return;const{disclosureElement:e}=T.getState(),t=[A.current,...W()||[],...B.map((e=>e.getState().contentElement))];return f?_n(ws(F,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return hs(e,t,(e=>{ms(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(Ps(e,t))}),(e=>{e.hasAttribute("role")&&(t.some((t=>t&&Qn(t,e)))||n.unshift(ls(e,"role","none")))})),()=>{for(const e of n)e()}}(F,t)):ws(F,[e,...t])}),[F,T,$,W,B,f,N]);const U=!!C,K=Fr(C),[G,X]=v(!1);g((()=>{if(!_)return;if(!U)return;if(!O)return;if(!(null==z?void 0:z.isConnected))return;const e=As(k,!0)||z.querySelector("[data-autofocus=true],[autofocus]")||function(e,t,n){const[r]=Hi(e,t,n);return r||null}(z,!0,p&&D)||z,t=Vi(e);K(t?e:null)&&(X(!0),queueMicrotask((()=>{e.focus(),Ms&&t&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[_,U,O,z,k,p,D,K]);const q=!!S,Y=Fr(S),[Z,Q]=v(!1);g((()=>{if(_)return Q(!0),()=>Q(!1)}),[_]);const J=c(((e,t=!0)=>{const{disclosureElement:n}=T.getState();if(function(e){const t=Zn();return!(!t||e&&Qn(e,t)||!Vi(t))}(e))return;let r=As(E)||n;if(null==r?void 0:r.id){const e=qn(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!Vi(r)){const e=r.closest("[data-dialog]");if(null==e?void 0:e.id){const t=qn(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&Vi(r);o||!t?Y(o?r:null)&&o&&(null==r||r.focus({preventScroll:!0})):requestAnimationFrame((()=>J(e,!1)))}),[T,E,Y]),ee=m(!1);Pr((()=>{if(_)return;if(!Z)return;if(!q)return;const e=A.current;ee.current=!0,J(e)}),[_,Z,O,q,J]),g((()=>{if(!Z)return;if(!q)return;const e=A.current;return()=>{ee.current?ee.current=!1:J(e)}}),[Z,q,J]);const te=Fr(b);g((()=>{if(!O)return;if(!V)return;return Cr("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=A.current;if(!t)return;if(bs(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=T.getState();("BODY"===n.tagName||Qn(t,n)||!r||Qn(r,n))&&te(e)&&T.hide()}),!0)}),[T,O,V,te]);const ne=(R=_r(R,(t=>e(os,{level:f?1:void 0,children:t})),[f])).hidden,re=R.alwaysVisible;R=_r(R,(r=>h?t(n,{children:[e(Rs,{store:T,backdrop:h,hidden:ne,alwaysVisible:re}),r]}):r),[T,h,ne,re]);const[oe,ie]=v(),[ae,se]=v();return R=_r(R,(t=>e(no,{value:T,children:e(ro.Provider,{value:ie,children:e(oo.Provider,{value:se,children:t})})})),[T]),R=xn(yn({id:F,"data-dialog":"",role:"dialog",tabIndex:d?-1:void 0,"aria-labelledby":oe,"aria-describedby":ae},R),{ref:Ar(A,R.ref)}),R=is(xn(yn({},R),{autoFocusOnShow:G})),R=Ca(yn({store:T},R)),R=oa(xn(yn({},R),{focusable:d})),R=ns(xn(yn({portal:p},R),{portalRef:I,preserveTabOrder:D}))}));function Is(t,n=eo){return Kr((function(r){const o=n();return Qo(r.store||o,(e=>!r.unmountOnHide||(null==e?void 0:e.mounted)||!!r.open))?e(t,yn({},r)):null}))}Is(Kr((function(e){return Xr("div",Ts(e))})),eo);const Os=["top","right","bottom","left"],Ls=Math.min,Ds=Math.max,Fs=Math.round,_s=Math.floor,Vs=e=>({x:e,y:e}),zs={left:"right",right:"left",bottom:"top",top:"bottom"},js={start:"end",end:"start"};function Hs(e,t,n){return Ds(e,Ls(t,n))}function Bs(e,t){return"function"==typeof e?e(t):e}function $s(e){return e.split("-")[0]}function Ws(e){return e.split("-")[1]}function Us(e){return"x"===e?"y":"x"}function Ks(e){return"y"===e?"height":"width"}function Gs(e){return["top","bottom"].includes($s(e))?"y":"x"}function Xs(e){return Us(Gs(e))}function qs(e){return e.replace(/start|end/g,(e=>js[e]))}function Ys(e){return e.replace(/left|right|bottom|top/g,(e=>zs[e]))}function Zs(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 Qs(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 Js(e,t,n){let{reference:r,floating:o}=e;const i=Gs(t),a=Xs(t),s=Ks(a),l=$s(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(Ws(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function el(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}=Bs(t,e),h=Zs(p),m=s[f?"floating"===d?"reference":"floating":d],g=Qs(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.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=Qs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-y.top+h.top)/w.y,bottom:(y.bottom-g.bottom+h.bottom)/w.y,left:(g.left-y.left+h.left)/w.x,right:(y.right-g.right+h.right)/w.x}}function tl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nl(e){return Os.some((t=>e[t]>=0))}function rl(){return"undefined"!=typeof window}function ol(e){return sl(e)?(e.nodeName||"").toLowerCase():"#document"}function il(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function al(e){var t;return null==(t=(sl(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function sl(e){return!!rl()&&(e instanceof Node||e instanceof il(e).Node)}function ll(e){return!!rl()&&(e instanceof Element||e instanceof il(e).Element)}function cl(e){return!!rl()&&(e instanceof HTMLElement||e instanceof il(e).HTMLElement)}function ul(e){return!(!rl()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof il(e).ShadowRoot)}function dl(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function fl(e){return["table","td","th"].includes(ol(e))}function pl(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function hl(e){const t=ml(),n=ll(e)?vl(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 ml(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function gl(e){return["html","body","#document"].includes(ol(e))}function vl(e){return il(e).getComputedStyle(e)}function bl(e){return ll(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wl(e){if("html"===ol(e))return e;const t=e.assignedSlot||e.parentNode||ul(e)&&e.host||al(e);return ul(t)?t.host:t}function yl(e){const t=wl(e);return gl(t)?e.ownerDocument?e.ownerDocument.body:e.body:cl(t)&&dl(t)?t:yl(t)}function xl(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=yl(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=il(o);if(i){const e=Cl(a);return t.concat(a,a.visualViewport||[],dl(o)?o:[],e&&n?xl(e):[])}return t.concat(o,xl(o,[],n))}function Cl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sl(e){const t=vl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=cl(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Fs(n)!==i||Fs(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function kl(e){return ll(e)?e:e.contextElement}function El(e){const t=kl(e);if(!cl(t))return Vs(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Sl(t);let a=(i?Fs(n.width):n.width)/r,s=(i?Fs(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Pl=Vs(0);function Nl(e){const t=il(e);return ml()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Pl}function Rl(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=kl(e);let a=Vs(1);t&&(r?ll(r)&&(a=El(r)):a=El(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==il(e))&&t}(i,n,r)?Nl(i):Vs(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=il(i),t=r&&ll(r)?il(r):r;let n=e,o=Cl(n);for(;o&&r&&t!==n;){const e=El(o),t=o.getBoundingClientRect(),r=vl(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=il(o),o=Cl(n)}}return Qs({width:u,height:d,x:l,y:c})}function Ml(e,t){const n=bl(e).scrollLeft;return t?t.left+n:Rl(al(e)).left+n}function Al(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=il(e),r=al(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=ml();(!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=al(e),n=bl(e),r=e.ownerDocument.body,o=Ds(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ds(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ml(e);const s=-n.scrollTop;return"rtl"===vl(r).direction&&(a+=Ds(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(al(e));else if(ll(t))r=function(e,t){const n=Rl(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=cl(e)?El(e):Vs(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=Nl(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Qs(r)}function Tl(e,t){const n=wl(e);return!(n===t||!ll(n)||gl(n))&&("fixed"===vl(n).position||Tl(n,t))}function Il(e,t,n){const r=cl(t),o=al(t),i="fixed"===n,a=Rl(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Vs(0);if(r||!r&&!i)if(("body"!==ol(t)||dl(o))&&(s=bl(t)),r){const e=Rl(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Ml(o));let c=0,u=0;if(o&&!r&&!i){const e=o.getBoundingClientRect();u=e.top+s.scrollTop,c=e.left+s.scrollLeft-Ml(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 Ol(e){return"static"===vl(e).position}function Ll(e,t){if(!cl(e)||"fixed"===vl(e).position)return null;if(t)return t(e);let n=e.offsetParent;return al(e)===n&&(n=n.ownerDocument.body),n}function Dl(e,t){const n=il(e);if(pl(e))return n;if(!cl(e)){let t=wl(e);for(;t&&!gl(t);){if(ll(t)&&!Ol(t))return t;t=wl(t)}return n}let r=Ll(e,t);for(;r&&fl(r)&&Ol(r);)r=Ll(r,t);return r&&gl(r)&&Ol(r)&&!hl(r)?n:r||function(e){let t=wl(e);for(;cl(t)&&!gl(t);){if(hl(t))return t;if(pl(t))return null;t=wl(t)}return null}(e)||n}const Fl={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=al(r),s=!!t&&pl(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Vs(1);const u=Vs(0),d=cl(r);if((d||!d&&!i)&&(("body"!==ol(r)||dl(a))&&(l=bl(r)),cl(r))){const e=Rl(r);c=El(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:al,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?pl(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=xl(e,[],!1).filter((e=>ll(e)&&"body"!==ol(e))),o=null;const i="fixed"===vl(e).position;let a=i?wl(e):e;for(;ll(a)&&!gl(a);){const t=vl(a),n=hl(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||dl(a)&&!n&&Tl(e,a))?r=r.filter((e=>e!==a)):o=t,a=wl(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Al(t,n,o);return e.top=Ds(r.top,e.top),e.right=Ls(r.right,e.right),e.bottom=Ls(r.bottom,e.bottom),e.left=Ds(r.left,e.left),e}),Al(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Dl,getElementRects:async function(e){const t=this.getOffsetParent||Dl,n=this.getDimensions,r=await n(e.floating);return{reference:Il(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}=Sl(e);return{width:t,height:n}},getScale:El,isElement:ll,isRTL:function(e){return"rtl"===vl(e).direction}};function _l(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=kl(e),u=o||i?[...c?xl(c):[],...xl(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=al(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:-_s(u)+"px "+-_s(o.clientWidth-(c+d))+"px "+-_s(o.clientHeight-(u+f))+"px "+-_s(c)+"px",threshold:Ds(0,Ls(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?Rl(e):null;return l&&function t(){const r=Rl(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=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=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const Vl=el,zl=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=$s(n),s=Ws(n),l="y"===Gs(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Bs(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),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}}}}},jl=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}=Bs(e,t),c={x:n,y:r},u=await el(t,l),d=Gs($s(o)),f=Us(d);let p=c[f],h=c[d];if(i){const e="y"===f?"bottom":"right";p=Hs(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";h=Hs(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Hl=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:h="none",flipAlignment:m=!0,...g}=Bs(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=$s(o),b=$s(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=f||(b||!m?[Ys(s)]:function(e){const t=Ys(e);return[qs(e),t,qs(t)]}(s));f||"none"===h||y.push(...function(e,t,n,r){const o=Ws(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[]}}($s(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(qs)))),i}(s,m,h,w));const x=[s,...y],C=await el(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=Ws(e),o=Xs(e),i=Ks(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,P;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==(P=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var N;const e=null==(N=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:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Bl=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}=Bs(e,t),l=await el(t,s),c=$s(n),u=Ws(n),d="y"===Gs(n),{width:f,height:p}=r.floating;let h,m;"top"===c||"bottom"===c?(h=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,h="end"===u?"top":"bottom");const g=p-l[h],v=f-l[m],b=!t.middlewareData.shift;let w=g,y=v;if(d){const e=f-l.left-l.right;y=u||b?Ls(v,e):e}else{const e=p-l.top-l.bottom;w=u||b?Ls(g,e):e}if(b&&!u){const e=Ds(l.left,0),t=Ds(l.right,0),n=Ds(l.top,0),r=Ds(l.bottom,0);d?y=f-2*(0!==e||0!==t?e+t:Ds(l.left,l.right)):w=p-2*(0!==n||0!==r?n+r:Ds(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}}:{}}}},$l=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Bs(e,t);switch(r){case"referenceHidden":{const e=tl(await el(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:nl(e)}}}case"escaped":{const e=tl(await el(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:nl(e)}}}default:return{}}}}},Wl=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}=Bs(e,t)||{};if(null==c)return{};const d=Zs(u),f={x:n,y:r},p=Xs(o),h=Ks(p),m=await a.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[p]-f[p]-i.floating[h],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[h]);const k=y/2-x/2,E=S/2-m[h]/2-1,P=Ls(d[v],E),N=Ls(d[b],E),R=P,M=S-m[h]-N,A=S/2-m[h]/2+k,T=Hs(R,A,M),I=!l.arrow&&null!=Ws(o)&&A!==T&&i.reference[h]/2-(A<R?P:N)-m[h]/2<0,O=I?A<R?A-R:A-M:0;return{[p]:f[p]+O,data:{[p]:T,centerOffset:A-T-O,...I&&{alignmentOffset:O}},reset:I}}}),Ul=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}=Bs(e,t),u={x:n,y:r},d=Gs(o),f=Us(d);let p=u[f],h=u[d];const m=Bs(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};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($s(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);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},Kl=(e,t,n)=>{const r=new Map,o={platform:Fl,...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}=Js(c,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y:v,data:b,reset:w}=await m({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&&h<=50&&(h++,"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}=Js(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};function Gl(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 xn(yn({},o),{toJSON:()=>o})}function Xl(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 Gl();const{x:t,y:n,width:r,height:o}=e;return Gl(t,n,r,o)}(r):n.getBoundingClientRect()}}}function ql(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 Zl(e,t){return zl((({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 Ql(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return jn(!t||t.every(ql),!1),Hl({padding:e.overflowPadding,fallbackPlacements:t})}function Jl(e){if(e.slide||e.overlap)return jl({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Ul()})}function ec(e){return Bl({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 tc(e,t){if(e)return Wl({element:e,padding:t.arrowPadding})}var nc=qr((function(t){var n=t,{store:r,modal:o=!1,portal:i=!!o,preserveTabOrder:a=!0,autoFocusOnShow:s=!0,wrapperProps:l,fixed:c=!1,flip:u=!0,shift:d=0,slide:f=!0,overlap:p=!1,sameWidth:h=!1,fitViewport:g=!1,gutter:b,arrowPadding:w=4,overflowPadding:y=8,getAnchorRect:x,updatePosition:C}=n,S=Cn(n,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const k=so();jn(r=r||k,!1);const E=r.useState("arrowElement"),P=r.useState("anchorElement"),N=r.useState("disclosureElement"),R=r.useState("popoverElement"),M=r.useState("contentElement"),A=r.useState("placement"),T=r.useState("mounted"),I=r.useState("rendered"),O=m(null),[L,D]=v(!1),{portalRef:F,domReady:_}=Vr(i,S.portalRef),V=Rr(x),z=Rr(C),j=!!C;Pr((()=>{if(!(null==R?void 0:R.isConnected))return;R.style.setProperty("--popover-overflow-padding",`${y}px`);const e=Xl(P,V),t=async()=>{if(!T)return;E||(O.current=O.current||document.createElement("div"));const t=E||O.current,n=[Zl(t,{gutter:b,shift:d}),Ql({flip:u,overflowPadding:y}),Jl({slide:f,overlap:p,overflowPadding:y}),tc(t,{arrowPadding:w}),ec({sameWidth:h,fitViewport:g,overflowPadding:y})],o=await Kl(e,R,{placement:A,strategy:c?"fixed":"absolute",middleware:n});null==r||r.setState("currentPlacement",o.placement),D(!0);const i=Yl(o.x),a=Yl(o.y);if(Object.assign(R.style,{top:"0",left:"0",transform:`translate3d(${i}px,${a}px,0)`}),t&&o.middlewareData.arrow){const{x:e,y:n}=o.middlewareData.arrow,r=o.placement.split("-")[0],i=t.clientWidth/2,a=t.clientHeight/2,s=null!=e?e+i:-i,l=null!=n?n+a:-a;R.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`}[r]),Object.assign(t.style,{left:null!=e?`${e}px`:"",top:null!=n?`${n}px`:"",[r]:"100%"})}},n=_l(e,R,(async()=>{j?(await z({updatePosition:t}),D(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{D(!1),n()}}),[r,I,R,E,P,R,A,T,_,c,u,d,f,p,h,g,b,w,y,V,j,z]),Pr((()=>{if(!T)return;if(!_)return;if(!(null==R?void 0:R.isConnected))return;if(!(null==M?void 0:M.isConnected))return;const e=()=>{R.style.zIndex=getComputedStyle(M).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[T,_,R,M]);const H=c?"fixed":"absolute";return S=_r(S,(t=>e("div",xn(yn({},l),{style:yn({position:H,top:0,left:0,width:"max-content"},null==l?void 0:l.style),ref:null==r?void 0:r.setPopoverElement,children:t}))),[r,H,l]),S=_r(S,(t=>e(co,{value:r,children:t})),[r]),S=xn(yn({"data-placing":!L||void 0},S),{style:yn({position:"relative"},S.style)}),S=Ts(xn(yn({store:r,modal:o,portal:i,preserveTabOrder:a,preserveTabOrderAnchor:N||P,autoFocusOnShow:L&&s},S),{portalRef:F}))}));Is(Kr((function(e){return Xr("div",nc(e))})),so);function rc(e,t,n,r){return!!Ui(t)||!!e&&(!!Qn(t,e)||(!(!n||!Qn(n,e))||!!(null==r?void 0:r.some((t=>rc(e,t,n))))))}var oc=i(null),ic=qr((function(t){var n=t,{store:r,modal:o=!1,portal:i=!!o,hideOnEscape:a=!0,hideOnHoverOutside:s=!0,disablePointerEventsOnApproach:u=!!s}=n,d=Cn(n,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const f=ja();jn(r=r||f,!1);const p=m(null),[h,b]=v([]),w=m(0),y=m(null),{portalRef:x,domReady:C}=Vr(i,d.portalRef),S=jr(),k=!!s,E=Fr(s),P=!!u,N=Fr(u),R=r.useState("open"),M=r.useState("mounted");g((()=>{if(!C)return;if(!M)return;if(!k&&!P)return;const e=p.current;if(!e)return;return _n(Cr("mousemove",(t=>{if(!r)return;if(!S())return;const{anchorElement:n,hideTimeout:o,timeout:i}=r.getState(),a=y.current,[s]=t.composedPath(),l=n;if(rc(s,e,l,h))return y.current=s&&l&&Qn(l,s)?Xa(t):null,window.clearTimeout(w.current),void(w.current=0);if(!w.current){if(a){const n=Xa(t);if(qa(n,Ya(e,a))){if(y.current=n,!N(t))return;return t.preventDefault(),void t.stopPropagation()}}E(t)&&(w.current=window.setTimeout((()=>{w.current=0,null==r||r.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(w.current)))}),[r,S,C,M,k,P,h,N,E]),g((()=>{if(!C)return;if(!M)return;if(!P)return;const e=e=>{const t=p.current;if(!t)return;const n=y.current;if(!n)return;const r=Ya(t,n);if(qa(Xa(e),r)){if(!N(e))return;e.preventDefault(),e.stopPropagation()}};return _n(Cr("mouseenter",e,!0),Cr("mouseover",e,!0),Cr("mouseout",e,!0),Cr("mouseleave",e,!0))}),[C,M,P,N]),g((()=>{C&&(R||null==r||r.setAutoFocusOnShow(!1))}),[r,C,R]);const A=Nr(R);g((()=>{if(C)return()=>{A.current||null==r||r.setAutoFocusOnShow(!1)}}),[r,C]);const T=l(oc);Pr((()=>{if(o)return;if(!i)return;if(!M)return;if(!C)return;const e=p.current;return e?null==T?void 0:T(e):void 0}),[o,i,M,C]);const I=c((e=>{b((t=>[...t,e]));const t=null==T?void 0:T(e);return()=>{b((t=>t.filter((t=>t!==e)))),null==t||t()}}),[T]);d=_r(d,(t=>e(Ba,{value:r,children:e(oc.Provider,{value:I,children:t})})),[r,I]),d=xn(yn({},d),{ref:Ar(p,d.ref)}),d=function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const[o,i]=v(!1),a=n.useState("mounted");g((()=>{a||i(!1)}),[a]);const s=r.onFocus,l=Rr((e=>{null==s||s(e),e.defaultPrevented||i(!0)})),c=m(null);return g((()=>Oo(n,["anchorElement"],(e=>{c.current=e.anchorElement}))),[]),xn(yn({autoFocusOnHide:o,finalFocus:c},r),{onFocus:l})}(yn({store:r},d));const O=r.useState((e=>o||e.autoFocusOnShow));return d=nc(xn(yn({store:r,modal:o,portal:i,autoFocusOnShow:O},d),{portalRef:x,hideOnEscape:e=>!Hn(a,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==r||r.hide()}))})),!0)}))}));Is(Kr((function(e){return Xr("div",ic(e))})),ja);var ac=qr((function(t){var n=t,{store:r,portal:o=!0,gutter:i=8,preserveTabOrder:a=!1,hideOnHoverOutside:s=!0,hideOnInteractOutside:l=!0}=n,c=Cn(n,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const u=Ua();jn(r=r||u,!1),c=_r(c,(t=>e(Ga,{value:r,children:t})),[r]);const d=r.useState((e=>"description"===e.type?"tooltip":"none"));return c=yn({role:d},c),c=ic(xn(yn({},c),{store:r,portal:o,gutter:i,preserveTabOrder:a,hideOnHoverOutside(e){if(Hn(s,e))return!1;const t=null==r?void 0:r.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(Hn(l,e))return!1;const t=null==r?void 0:r.getState().anchorElement;return!t||!Qn(t,e.target)}}))})),sc=Is(Kr((function(e){return Xr("div",ac(e))})),Ua);function lc(t={}){const n=Va(t);return e(Ka,{value:n,children:t.children})}var cc=qr((function(e){var t=e,{store:n,showOnHover:r=!0}=t,o=Cn(t,["store","showOnHover"]);const i=ja();jn(n=n||i,!1);const a=Bn(o),s=m(0);g((()=>()=>window.clearTimeout(s.current)),[]),g((()=>Cr("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(s.current),s.current=0)}),!0)),[n]);const l=o.onMouseMove,u=Fr(r),d=jr(),f=Rr((e=>{if(null==l||l(e),a)return;if(!n)return;if(e.defaultPrevented)return;if(s.current)return;if(!d())return;if(!u(e))return;const t=e.currentTarget;n.setAnchorElement(t),n.setDisclosureElement(t);const{showTimeout:r,timeout:o}=n.getState(),i=()=>{s.current=0,d()&&(null==n||n.setAnchorElement(t),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(t)})))},c=null!=r?r:o;0===c?i():s.current=window.setTimeout(i,c)})),p=o.onClick,h=Rr((e=>{null==p||p(e),n&&(window.clearTimeout(s.current),s.current=0)})),v=c((e=>{if(!n)return;const{anchorElement:t}=n.getState();(null==t?void 0:t.isConnected)||n.setAnchorElement(e)}),[n]);return o=xn(yn({},o),{ref:Ar(v,o.ref),onMouseMove:f,onClick:h}),o=oa(o)}));Kr((function(e){return Xr("a",cc(e))}));var uc=Mo({activeStore:null});function dc(e){return()=>{const{activeStore:t}=uc.getState();t===e&&uc.setState("activeStore",null)}}var fc=qr((function(e){var t=e,{store:n,showOnHover:r=!0}=t,o=Cn(t,["store","showOnHover"]);const i=Ua();jn(n=n||i,!1);const a=m(!1);g((()=>Oo(n,["mounted"],(e=>{e.mounted||(a.current=!1)}))),[n]),g((()=>{if(n)return _n(dc(n),Oo(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=uc.getState();return e!==n&&(null==e||e.hide()),uc.setState("activeStore",n)}const t=setTimeout(dc(n),e.skipTimeout);return()=>clearTimeout(t)})))}),[n]);const s=o.onMouseEnter,l=Rr((e=>{null==s||s(e),a.current=!0})),c=o.onFocusVisible,u=Rr((e=>{null==c||c(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),d=o.onBlur,f=Rr((e=>{if(null==d||d(e),e.defaultPrevented)return;const{activeStore:t}=uc.getState();a.current=!1,t===n&&uc.setState("activeStore",null)})),p=n.useState("type"),h=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return o=xn(yn({"aria-labelledby":"label"===p?h:void 0},o),{onMouseEnter:l,onFocusVisible:u,onBlur:f}),o=cc(yn({store:n,showOnHover(e){if(!a.current)return!1;if(Hn(r,e))return!1;const{activeStore:t}=uc.getState();return!t||(null==n||n.show(),!1)}},o))})),pc=Kr((function(e){return Xr("div",fc(e))})),hc="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",mc=30,gc=mc/2,vc={top:`rotate(180 ${gc} ${gc})`,right:`rotate(-90 ${gc} ${gc})`,bottom:`rotate(0 ${gc} ${gc})`,left:`rotate(90 ${gc} ${gc})`};var bc=qr((function(n){var r=n,{store:o,size:i=mc,borderWidth:s}=r,l=Cn(r,["store","size","borderWidth"]);const c=ao();jn(o=o||c,!1);const u=Qo(o,(e=>e.currentPlacement.split("-")[0])),d=Tr(),f=function(e){const[t,n]=v(),r=Qo(e,"contentElement");return Pr((()=>{if(!r)return;const e=Yn(r).getComputedStyle(r);n(e)}),[r]),t}(o),p=(null==f?void 0:f.getPropertyValue("background-color"))||"none",h=(null==f?void 0:f.getPropertyValue(`border-${u}-color`))||"none",m=a((()=>{if(null!=s)return s;if(!f)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]}(f);if(e)return Number.parseInt(e);const t=f.getPropertyValue(`border-${u}-width`);return t?Number.parseInt(t):0}),[s,f,u]),g=2*m*(mc/i),b=vc[u],w=a((()=>e("svg",{display:"block",viewBox:"0 0 30 30",children:t("g",{transform:b,children:[e("path",{fill:"none",d:hc,mask:`url(#${d})`}),e("path",{stroke:"none",d:hc}),e("mask",{id:d,maskUnits:"userSpaceOnUse",children:e("rect",{x:"-15",y:"0",width:"60",height:"30",fill:"white",stroke:"black"})})]})})),[b,d]);return $n(l=xn(yn({children:w,"aria-hidden":!0},l),{ref:Ar(o.setArrowElement,l.ref),style:yn({position:"absolute",fontSize:i,width:"1em",height:"1em",pointerEvents:"none",fill:`var(--ak-layer, ${p})`,stroke:`var(--ak-layer-border, ${h})`,strokeWidth:g},l.style)}))}));Gr(Kr((function(e){return Xr("div",bc(e))})));var wc=qr((function(e){var t=e,{store:n,size:r=16}=t,o=Cn(t,["store","size"]);const i=Wa();return jn(n=n||i,!1),o=bc(yn({store:n,size:r},o))})),yc=Kr((function(e){return Xr("div",wc(e))})),xc=Yr([go],[vo]),Cc=xc.useContext,Sc=xc.useScopedContext;i(void 0);var kc=qr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=so();return n=n||o,r=xn(yn({},r),{ref:Ar(null==n?void 0:n.setAnchorElement,r.ref)})}));Kr((function(e){return Xr("div",kc(e))}));var Ec={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"},Pc=qr((function(t){var n=t,{store:r,placement:o}=n,i=Cn(n,["store","placement"]);const s=ao();jn(r=r||s,!1);const l=r.useState((e=>o||e.placement)).split("-")[0],c=Ec[l],u=a((()=>e("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("polyline",{points:c})})),[c]);return $n(i=xn(yn({children:u,"aria-hidden":!0},i),{style:yn({width:"1em",height:"1em",pointerEvents:"none"},i.style)}))}));Kr((function(e){return Xr("span",Pc(e))}));var Nc="button",Rc=qr((function(e){const t=m(null),n=Ir(t,Nc),[r,o]=v((()=>!!n&&er({tagName:n,type:e.type})));return g((()=>{t.current&&o(er(t.current))}),[]),e=xn(yn({role:r||"a"===n?void 0:"button"},e),{ref:Ar(t,e.ref)}),e=sa(e)}));Kr((function(e){const t=Rc(e);return Xr(Nc,t)}));var Mc=Symbol("disclosure"),Ac=qr((function(e){var t=e,{store:n,toggleOnClick:r=!0}=t,o=Cn(t,["store","toggleOnClick"]);const i=Qr();jn(n=n||i,!1);const a=m(null),[s,l]=v(!1),c=n.useState("disclosureElement"),u=n.useState("open");g((()=>{let e=c===a.current;(null==c?void 0:c.isConnected)||(null==n||n.setDisclosureElement(a.current),e=!0),l(u&&e)}),[c,n,u]);const d=o.onClick,f=Fr(r),[p,h]=zr(o,Mc,!0),b=Rr((e=>{null==d||d(e),e.defaultPrevented||p||f(e)&&(null==n||n.setDisclosureElement(e.currentTarget),null==n||n.toggle())})),w=n.useState("contentElement");return o=xn(yn(yn({"aria-expanded":s,"aria-controls":null==w?void 0:w.id},h),o),{ref:Ar(a,o.ref),onClick:b}),o=Rc(o)}));Kr((function(e){return Xr("button",Ac(e))}));var Tc=qr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=eo();jn(n=n||o,!1);const i=n.useState("contentElement");return r=yn({"aria-haspopup":ar(i,"dialog")},r),r=Ac(yn({store:n},r))}));Kr((function(e){return Xr("button",Tc(e))}));var Ic=qr((function(t){var n=t,{store:r}=n,o=Cn(n,["store"]);const i=so();jn(r=r||i,!1);const a=o.onClick,s=Rr((e=>{null==r||r.setAnchorElement(e.currentTarget),null==a||a(e)}));return o=_r(o,(t=>e(co,{value:r,children:t})),[r]),o=xn(yn({},o),{onClick:s}),o=kc(yn({store:r},o)),o=Tc(yn({store:r},o))}));function Oc(e={}){var t=e,{combobox:n}=t,r=In(t,["combobox"]);const o=_o(r.store,Do(n,["value","items","renderedItems","baseElement","arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=o.getState(),a=di(Tn(An({},r),{store:o,virtualFocus:Wn(r.virtualFocus,i.virtualFocus,!0),includesBaseElement:Wn(r.includesBaseElement,i.includesBaseElement,!1),activeId:Wn(r.activeId,i.activeId,r.defaultActiveId,null),orientation:Wn(r.orientation,i.orientation,"vertical")})),s=Oa(Tn(An({},r),{store:o,placement:Wn(r.placement,i.placement,"bottom-start")})),l=new String(""),c=Tn(An(An({},a.getState()),s.getState()),{value:Wn(r.value,i.value,r.defaultValue,l),setValueOnMove:Wn(r.setValueOnMove,i.setValueOnMove,!1),labelElement:Wn(i.labelElement,null),selectElement:Wn(i.selectElement,null),listElement:Wn(i.listElement,null)}),u=Mo(c,a,s,o);return Ao(u,(()=>Oo(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)})))),Ao(u,(()=>Oo(u,["mounted"],(e=>{e.mounted||u.setState("activeId",c.activeId)})))),Ao(u,(()=>Oo(u,["mounted","items","value"],(e=>{if(n)return;if(e.mounted)return;const t=ri(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)})))),Ao(u,(()=>Lo(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)})))),Tn(An(An(An({},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 Lc(e={}){e=function(e){const t=bi();return fi(e=xn(yn({},e),{combobox:void 0!==e.combobox?e.combobox:t}))}(e);const[t,n]=ti(Oc,e);return function(e,t,n){return Lr(t,[n.combobox]),ei(e,n,"value","setValue"),ei(e,n,"setValueOnMove"),Object.assign(La(pi(e,t,n),t,n),{combobox:n.combobox})}(t,n,e)}Kr((function(e){return Xr("button",Ic(e))}));var Dc=qr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=xo();return r=Pc(yn({store:n=n||o},r))})),Fc=Kr((function(e){return Xr("span",Dc(e))})),_c="";function Vc(){_c=""}function zc(e,t){var n;const r=(null==(n=e.element)?void 0:n.textContent)||e.children||"value"in e&&e.value;return!!r&&Vn(r).trim().toLowerCase().startsWith(t.toLowerCase())}function jc(e,t,n){if(!n)return e;const r=e.find((e=>e.id===n));return r&&zc(r,t)?_c!==t&&zc(r,_c)?e:(_c=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=>zc(e,_c))),n).filter((e=>e.id!==n))):e}var Hc=qr((function(e){var t=e,{store:n,typeahead:r=!0}=t,o=Cn(t,["store","typeahead"]);const i=ho();jn(n=n||i,!1);const a=o.onKeyDownCapture,s=m(0),l=Rr((e=>{if(null==a||a(e),e.defaultPrevented)return;if(!r)return;if(!n)return;if(!function(e){const t=e.target;return(!t||!rr(t))&&(!(" "!==e.key||!_c.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(e))return Vc();const{renderedItems:t,items:o,activeId:i,id:l}=n.getState();let c=function(e){return e.filter((e=>!e.disabled))}(o.length>t.length?o:t);const u=`[data-offscreen-id="${l}"]`,d=qn(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=ur(c,(e=>e.element))),!function(e,t){if(mr(e))return!0;const n=e.target;return!!n&&t.some((e=>e.element===n))}(e,c))return Vc();e.preventDefault(),window.clearTimeout(s.current),s.current=window.setTimeout((()=>{_c=""}),500);const f=e.key.toLowerCase();_c+=f,c=jc(c,f,i);const p=c.find((e=>zc(e,_c)));p?n.move(p.id):Vc()}));return $n(o=xn(yn({},o),{onKeyDownCapture:l}))}));Kr((function(e){return Xr("div",Hc(e))}));function Bc(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 $c=qr((function(r){var o=r,{store:i,name:s,form:l,required:c,showOnKeyDown:u=!0,moveOnKeyDown:d=!0,toggleOnPress:f=!0,toggleOnClick:p=f}=o,h=Cn(o,["store","name","form","required","showOnKeyDown","moveOnKeyDown","toggleOnPress","toggleOnClick"]);const b=So();jn(i=i||b,!1);const w=h.onKeyDown,y=Fr(u),x=Fr(d),C=i.useState("placement").split("-")[0],S=i.useState("value"),k=Array.isArray(S),E=Rr((e=>{var t;if(null==w||w(e),e.defaultPrevented)return;if(!i)return;const{orientation:n,items:r,activeId:o}=i.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)&&Bc(i,i.up),ArrowRight:(l||s)&&Bc(i,i.next),ArrowDown:(l||a)&&Bc(i,i.down),ArrowLeft:(l||s)&&Bc(i,i.previous)}[e.key];c&&x(e)&&(e.preventDefault(),i.move(c()));const u="top"===C||"bottom"===C;({ArrowDown:u,ArrowUp:u,ArrowLeft:"left"===C,ArrowRight:"right"===C})[e.key]&&y(e)&&(e.preventDefault(),i.move(o),xr(e.currentTarget,"keyup",i.show))}));h=_r(h,(t=>e(Eo,{value:i,children:t})),[i]);const[P,N]=v(!1),R=m(!1);g((()=>{const e=R.current;R.current=!1,e||N(!1)}),[S]);const M=i.useState((e=>{var t;return null==(t=e.labelElement)?void 0:t.id})),A=h["aria-label"],T=h["aria-labelledby"]||M,I=i.useState((e=>{if(s)return e.items})),O=a((()=>[...new Set(null==I?void 0:I.map((e=>e.value)).filter((e=>null!=e)))]),[I]);h=_r(h,(r=>s?t(n,{children:[t("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":A,"aria-labelledby":T,name:s,form:l,required:c,disabled:h.disabled,value:S,multiple:k,onFocus:()=>{var e;return null==(e=null==i?void 0:i.getState().selectElement)?void 0:e.focus()},onChange:e=>{var t;R.current=!0,N(!0),null==i||i.setValue(k?(t=e.target,Array.from(t.selectedOptions).map((e=>e.value))):e.target.value)},children:[ri(S).map((t=>null==t||O.includes(t)?null:e("option",{value:t,children:t},t))),O.map((t=>e("option",{value:t,children:t},t)))]}),r]}):r),[i,A,T,s,l,c,S,k,O,h.disabled]);const L=t(n,{children:[S,e(Fc,{})]}),D=i.useState("contentElement");return h=xn(yn({role:"combobox","aria-autocomplete":"none","aria-labelledby":M,"aria-haspopup":ar(D,"listbox"),"data-autofill":P||void 0,"data-name":s,children:L},h),{ref:Ar(i.setSelectElement,h.ref),onKeyDown:E}),h=Ic(yn({store:i,toggleOnClick:p},h)),h=Hc(yn({store:i},h))})),Wc=Kr((function(e){return Xr("button",$c(e))}));function Uc(t={}){const n=Lc(t);return e(ko,{value:n,children:t.children})}var Kc=i(!1),Gc=e("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("polyline",{points:"4,8 7,12 12,4"})});var Xc=qr((function(e){var t=e,{store:n,checked:r}=t,o=Cn(t,["store","checked"]);const i=l(Kc),a=function(e){return e.checked?e.children||Gc:"function"==typeof e.children?e.children:null}({checked:r=null!=r?r:i,children:o.children});return $n(o=xn(yn({"aria-hidden":!0},o),{children:a,style:yn({width:"1em",height:"1em",pointerEvents:"none"},o.style)}))}));Kr((function(e){return Xr("span",Xc(e))}));var qc=qr((function(e){var t=e,{store:n,checked:r}=t,o=Cn(t,["store","checked"]);const i=l(Po);return r=null!=r?r:i,o=Xc(xn(yn({},o),{checked:r}))})),Yc=Kr((function(e){return Xr("span",qc(e))}));function Zc(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var Qc=Symbol("composite-hover");var Jc=qr((function(e){var t=e,{store:n,focusOnHover:r=!0,blurOnHoverEnd:o=!!r}=t,i=Cn(t,["store","focusOnHover","blurOnHoverEnd"]);const a=ho();jn(n=n||a,!1);const s=jr(),l=i.onMouseMove,u=Fr(r),d=Rr((e=>{if(null==l||l(e),!e.defaultPrevented&&s()&&u(e)){if(!Ui(e.currentTarget)){const e=null==n?void 0:n.getState().baseElement;e&&!Wi(e)&&e.focus()}null==n||n.setActiveId(e.currentTarget.id)}})),f=i.onMouseLeave,p=Fr(o),h=Rr((e=>{var t;null==f||f(e),e.defaultPrevented||s()&&(function(e){const t=Zc(e);return!!t&&Qn(e.currentTarget,t)}(e)||function(e){let t=Zc(e);if(!t)return!1;do{if(Fn(t,Qc)&&t[Qc])return!0;t=t.parentElement}while(t);return!1}(e)||u(e)&&p(e)&&(null==n||n.setActiveId(null),null==(t=null==n?void 0:n.getState().baseElement)||t.focus()))})),m=c((e=>{e&&(e[Qc]=!0)}),[]);return $n(i=xn(yn({},i),{ref:Ar(m,i.ref),onMouseMove:d,onMouseLeave:h}))}));Gr(Kr((function(e){return Xr("div",Jc(e))})));var eu=qr((function(t){var n,r=t,{store:o,value:i,getItem:a,hideOnClick:s,setValueOnClick:l=null!=i,preventScrollOnKeyDown:u=!0,focusOnHover:d=!0}=r,f=Cn(r,["store","value","getItem","hideOnClick","setValueOnClick","preventScrollOnKeyDown","focusOnHover"]);const p=Co();jn(o=o||p,!1);const h=Tr(f.id),m=Bn(f),{listElement:g,multiSelectable:v,selected:b,autoFocus:w}=Jo(o,{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,i),autoFocus:e=>null!=i&&(null!=e.value&&((e.activeId===h||!(null==o?void 0:o.item(e.activeId)))&&(Array.isArray(e.value)?e.value[e.value.length-1]===i:e.value===i)))}),y=c((e=>{const t=xn(yn({},e),{value:m?void 0:i,children:i});return a?a(t):t}),[m,i,a]);s=null!=s?s:null!=i&&!v;const x=f.onClick,C=Fr(l),S=Fr(s),k=Rr((e=>{null==x||x(e),e.defaultPrevented||vr(e)||gr(e)||(C(e)&&null!=i&&(null==o||o.setValue((e=>Array.isArray(e)?e.includes(i)?e.filter((e=>e!==i)):[...e,i]:i))),S(e)&&(null==o||o.hide()))}));f=_r(f,(t=>e(Po.Provider,{value:null!=b&&b,children:t})),[b]),f=xn(yn({id:h,role:sr(g),"aria-selected":b,children:i},f),{autoFocus:null!=(n=f.autoFocus)?n:w,onClick:k}),f=ua(yn({store:o,getItem:y,preventScrollOnKeyDown:u},f));const E=Fr(d);return f=Jc(xn(yn({store:o},f),{focusOnHover(e){if(!E(e))return!1;const t=null==o?void 0:o.getState();return!!(null==t?void 0:t.open)}}))})),tu=Gr(Kr((function(e){return Xr("div",eu(e))}))),nu=qr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=So();jn(n=n||o,!1);const i=Tr(r.id),a=r.onClick,s=Rr((e=>{null==a||a(e),e.defaultPrevented||queueMicrotask((()=>{const e=null==n?void 0:n.getState().selectElement;null==e||e.focus()}))}));return $n(r=xn(yn({id:i},r),{ref:Ar(n.setLabelElement,r.ref),onClick:s,style:yn({cursor:"default"},r.style)}))})),ru=Gr(Kr((function(e){return Xr("div",nu(e))}))),ou=i(null),iu=qr((function(t){var n=t,{store:r,resetOnEscape:o=!0,hideOnEnter:i=!0,focusOnMove:s=!0,composite:c,alwaysVisible:u}=n,d=Cn(n,["store","resetOnEscape","hideOnEnter","focusOnMove","composite","alwaysVisible"]);const f=xo();jn(r=r||f,!1);const p=Tr(d.id),h=r.useState("value"),m=Array.isArray(h),[b,w]=v(h),y=r.useState("mounted");g((()=>{y||w(h)}),[y,h]),o=o&&!m;const x=d.onKeyDown,C=Fr(o),S=Fr(i),k=Rr((e=>{null==x||x(e),e.defaultPrevented||("Escape"===e.key&&C(e)&&(null==r||r.setValue(b))," "!==e.key&&"Enter"!==e.key||mr(e)&&S(e)&&(e.preventDefault(),null==r||r.hide()))})),E=l(No),P=v(),[N,R]=E||P,M=a((()=>[N,R]),[N]),[A,T]=v(null),I=l(ou);g((()=>{if(I)return I(r),()=>I(null)}),[I,r]),d=_r(d,(t=>e(Eo,{value:r,children:e(ou.Provider,{value:T,children:e(No.Provider,{value:M,children:t})})})),[r,M]);const O=!!r.combobox;c=null!=c?c:!O&&A!==r;const[L,D]=Mr(c?r.setListElement:null),F=Or(L,"role",d.role),_=(c||("listbox"===F||"menu"===F||"tree"===F||"grid"===F))&&m||void 0,V=xa(y,d.hidden,u),z=V?xn(yn({},d.style),{display:"none"}):d.style;c&&(d=yn({role:"listbox","aria-multiselectable":_},d));const j=r.useState((e=>{var t;return N||(null==(t=e.labelElement)?void 0:t.id)}));return d=xn(yn({id:p,"aria-labelledby":j,hidden:V},d),{ref:Ar(D,d.ref),style:z,onKeyDown:k}),d=ga(xn(yn({store:r},d),{composite:c})),d=Hc(yn({store:r,typeahead:!O},d))}));Kr((function(e){return Xr("div",iu(e))}));var au=qr((function(e){var t=e,{store:n,alwaysVisible:r}=t,o=Cn(t,["store","alwaysVisible"]);const i=So();return o=iu(yn({store:n=n||i,alwaysVisible:r},o)),o=nc(yn({store:n,alwaysVisible:r},o))})),su=Is(Kr((function(e){return Xr("div",au(e))})),So);function lu(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=Mo({value:Wn(e.value,null==n?void 0:n.value,e.defaultValue,!1)},e.store);return Tn(An({},r),{setValue:e=>r.setState("value",e)})}function cu(e={}){const[t,n]=ti(lu,e);return function(e,t,n){return Lr(t,[n.store]),ei(e,n,"value","setValue"),e}(t,n,e)}var uu=Yr().useContext,du="input";function fu(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function pu(e){return Array.isArray(e)?e.toString():e}var hu=qr((function(t){var n=t,{store:r,name:o,value:i,checked:a,defaultChecked:s}=n,l=Cn(n,["store","name","value","checked","defaultChecked"]);const c=uu();r=r||c;const[u,d]=v(null!=s&&s),f=Qo(r,(e=>{if(void 0!==a)return a;if(void 0===(null==e?void 0:e.value))return u;if(null!=i){if(Array.isArray(e.value)){const t=pu(i);return e.value.includes(t)}return e.value===i}return!Array.isArray(e.value)&&("boolean"==typeof e.value&&e.value)})),p=m(null),h=function(e,t){return"input"===e&&(!t||"checkbox"===t)}(Ir(p,du),l.type),b=f?"mixed"===f:void 0,w="mixed"!==f&&f,y=Bn(l),[x,C]=Dr();g((()=>{const e=p.current;e&&(fu(e,b),h||(e.checked=w,void 0!==o&&(e.name=o),void 0!==i&&(e.value=`${i}`)))}),[x,b,h,w,o,i]);const S=l.onChange,k=Rr((e=>{if(y)return e.stopPropagation(),void e.preventDefault();if(fu(e.currentTarget,b),h||(e.currentTarget.checked=!e.currentTarget.checked,C()),null==S||S(e),e.defaultPrevented)return;const t=e.currentTarget.checked;d(t),null==r||r.setValue((e=>{if(null==i)return t;const n=pu(i);return Array.isArray(e)?t?e.includes(n)?e:[...e,n]:e.filter((e=>e!==n)):e!==n&&n}))})),E=l.onClick,P=Rr((e=>{null==E||E(e),e.defaultPrevented||h||k(e)}));return l=_r(l,(t=>e(Kc.Provider,{value:w,children:t})),[w]),l=xn(yn({role:h?void 0:"checkbox",type:h?"checkbox":void 0,"aria-checked":f},l),{ref:Ar(p,l.ref),onChange:k,onClick:P}),l=sa(yn({clickOnEnter:!h},l)),$n(yn({name:h?o:void 0,value:h?i:void 0,checked:w},l))})),mu=Kr((function(e){const t=hu(e);return Xr(du,t)})),gu=Yr([go,Ha],[vo,Ba]),vu=gu.useContext,bu=gu.useScopedContext,wu=gu.useProviderContext,yu=gu.ContextProvider,xu=gu.ScopedContextProvider;function Cu(e={}){var t=e,{combobox:n,parent:r,menubar:o}=t,i=In(t,["combobox","parent","menubar"]);const a=!!o&&!r,s=_o(i.store,Fo(r,["values"]),Do(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=s.getState(),c=di(Tn(An({},i),{store:s,orientation:Wn(i.orientation,l.orientation,"vertical")})),u=Da(Tn(An({},i),{store:s,placement:Wn(i.placement,l.placement,"bottom-start"),timeout:Wn(i.timeout,l.timeout,a?0:150),hideTimeout:Wn(i.hideTimeout,l.hideTimeout,0)})),d=Mo(Tn(An(An({},c.getState()),u.getState()),{initialFocus:Wn(l.initialFocus,"container"),values:Wn(i.values,l.values,i.defaultValues,{})}),c,u,s);return Ao(d,(()=>Oo(d,["mounted"],(e=>{e.mounted||d.setState("activeId",null)})))),Ao(d,(()=>Oo(r,["orientation"],(e=>{d.setState("placement","vertical"===e.orientation?"right-start":"bottom-start")})))),Tn(An(An(An({},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=Dn(t,r);return o===r?n:Tn(An({},n),{[e]:void 0!==o&&o})})))}})}function Su(e={}){const t=vu(),n=Cc(),r=bi();e=xn(yn({},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]=ti(Cu,e);return function(e,t,n){return Lr(t,[n.combobox,n.parent,n.menubar]),ei(e,n,"values","setValues"),Object.assign(Fa(pi(e,t,n),t,n),{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}(o,i,e)}i(void 0);var ku=qr((function(t){var n=t,{store:r,alwaysVisible:o,composite:i}=n,a=Cn(n,["store","alwaysVisible","composite"]);const s=wu();jn(r=r||s,!1);const l=r.parent,c=r.menubar,u=!!l,d=Tr(a.id),f=a.onKeyDown,p=r.useState((e=>e.placement.split("-")[0])),h=r.useState((e=>"both"===e.orientation?void 0:e.orientation)),m="vertical"!==h,b=Qo(c,(e=>!!e&&"vertical"!==e.orientation)),w=Rr((e=>{if(null==f||f(e),!e.defaultPrevented){if(u||c&&!m){const t={ArrowRight:()=>"left"===p&&!m,ArrowLeft:()=>"right"===p&&!m,ArrowUp:()=>"bottom"===p&&m,ArrowDown:()=>"top"===p&&m}[e.key];if(null==t?void 0:t())return e.stopPropagation(),e.preventDefault(),null==r?void 0:r.hide()}if(c){const t={ArrowRight:()=>{if(b)return c.next()},ArrowLeft:()=>{if(b)return c.previous()},ArrowDown:()=>{if(!b)return c.next()},ArrowUp:()=>{if(!b)return c.previous()}}[e.key],n=null==t?void 0:t();void 0!==n&&(e.stopPropagation(),e.preventDefault(),c.move(n))}}}));a=_r(a,(t=>e(xu,{value:r,children:t})),[r]);const y=function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const[o,i]=v(void 0),a=r["aria-label"],s=Qo(n,"disclosureElement"),l=Qo(n,"contentElement");return g((()=>{const e=s;e&&l&&(a||l.hasAttribute("aria-label")?i(void 0):e.id&&i(e.id))}),[a,s,l]),o}(yn({store:r},a)),x=xa(r.useState("mounted"),a.hidden,o),C=x?xn(yn({},a.style),{display:"none"}):a.style;a=xn(yn({id:d,"aria-labelledby":y,hidden:x},a),{ref:Ar(d?r.setContentElement:null,a.ref),style:C,onKeyDown:w});const S=!!r.combobox;return(i=null!=i?i:!S)&&(a=yn({role:"menu","aria-orientation":h},a)),a=ga(yn({store:r,composite:i},a)),a=Hc(yn({store:r,typeahead:!S},a))}));Kr((function(e){return Xr("div",ku(e))}));var Eu=qr((function(e){var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,autoFocusOnShow:s=!0,hideOnHoverOutside:l,alwaysVisible:c}=t,u=Cn(t,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const d=wu();jn(n=n||d,!1);const f=m(null),p=n.parent,h=n.menubar,b=!!p,w=!!h&&!b;u=xn(yn({},u),{ref:Ar(f,u.ref)});const x=ku(yn({store:n,alwaysVisible:c},u)),{"aria-labelledby":C}=x;u=Cn(x,["aria-labelledby"]);const[S,k]=v(),E=n.useState("autoFocusOnShow"),P=n.useState("initialFocus"),N=n.useState("baseElement"),R=n.useState("renderedItems");g((()=>{let e=!1;return k((t=>{var n,r,o;if(e)return;if(!E)return;if(null==(n=null==t?void 0:t.current)?void 0:n.isConnected)return t;const i=y();switch(P){case"first":i.current=(null==(r=R.find((e=>!e.disabled&&e.element)))?void 0:r.element)||null;break;case"last":i.current=(null==(o=[...R].reverse().find((e=>!e.disabled&&e.element)))?void 0:o.element)||null;break;default:i.current=N}return i})),()=>{e=!0}}),[n,E,P,R,N]);const M=!b&&r,A=!!s,T=!!S||!!u.initialFocus||!!M,I=Qo(n.combobox||n,"contentElement"),O=Qo((null==p?void 0:p.combobox)||p,"contentElement"),L=a((()=>{if(!O)return;if(!I)return;const e=I.getAttribute("role"),t=O.getAttribute("role");return"menu"!==t&&"menubar"!==t||"menu"!==e?O:void 0}),[I,O]);return void 0!==L&&(u=yn({preserveTabOrderAnchor:L},u)),u=ic(xn(yn({store:n,alwaysVisible:c,initialFocus:S,autoFocusOnShow:A?T&&s:E||!!M},u),{hideOnEscape:e=>!Hn(i,e)&&(null==n||n.hideAll(),!0),hideOnHoverOutside(e){const t=null==n?void 0:n.getState().disclosureElement;return!!("function"==typeof l?l(e):null!=l?l:b||w&&(!t||!Ui(t)))&&(!!e.defaultPrevented||(!b||(!t||(function(e,t,n){const r=new Event(t,n);e.dispatchEvent(r)}(t,"mouseout",e),!Ui(t)||(requestAnimationFrame((()=>{Ui(t)||null==n||n.hide()})),!1)))))},modal:M,portal:o,backdrop:!b&&u.backdrop})),u=yn({"aria-labelledby":C},u)})),Pu=Is(Kr((function(e){return Xr("div",Eu(e))})),wu);function Nu(t={}){const n=Su(t);return e(yu,{value:n,children:t.children})}var Ru=qr((function(e){var t=e,{store:n,hideOnClick:r=!0,preventScrollOnKeyDown:o=!0,focusOnHover:i,blurOnHoverEnd:a}=t,s=Cn(t,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const l=bu(!0),c=Sc();jn(n=n||l||c,!1);const u=s.onClick,d=Fr(r),f="hideAll"in n?n.hideAll:void 0,p=!!f,h=Rr((e=>{if(null==u||u(e),e.defaultPrevented)return;if(vr(e))return;if(gr(e))return;if(!f)return;"menu"!==e.currentTarget.getAttribute("aria-haspopup")&&d(e)&&f()})),m=sr(Qo(n,(e=>"contentElement"in e?e.contentElement:null)),"menuitem");return s=xn(yn({role:m},s),{onClick:h}),s=ua(yn({store:n,preventScrollOnKeyDown:o},s)),s=Jc(xn(yn({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(Ui(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=qn(e).getElementById(i);return!(!a||!Ui(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})),Mu=Gr(Kr((function(e){return Xr("div",Ru(e))}))),Au=qr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=vu();return r=Aa(yn({store:n=n||o},r))})),Tu=Kr((function(e){return Xr("hr",Au(e))}));i(null),i(null);var Iu=Yr([go],[vo]).useContext,Ou=pr()&&dr();function Lu(e={}){var t=e,{tag:n}=t,r=In(t,["tag"]);const o=_o(r.store,Fo(n,["value","rtl"])),i=null==n?void 0:n.getState(),a=null==o?void 0:o.getState(),s=Wn(r.activeId,null==a?void 0:a.activeId,r.defaultActiveId,null),l=di(Tn(An({},r),{activeId:s,includesBaseElement:Wn(r.includesBaseElement,null==a?void 0:a.includesBaseElement,!0),orientation:Wn(r.orientation,null==a?void 0:a.orientation,"vertical"),focusLoop:Wn(r.focusLoop,null==a?void 0:a.focusLoop,!0),focusWrap:Wn(r.focusWrap,null==a?void 0:a.focusWrap,!0),virtualFocus:Wn(r.virtualFocus,null==a?void 0:a.virtualFocus,!0)})),c=Oa(Tn(An({},r),{placement:Wn(r.placement,null==a?void 0:a.placement,"bottom-start")})),u=Wn(r.value,null==a?void 0:a.value,r.defaultValue,""),d=Wn(r.selectedValue,null==a?void 0:a.selectedValue,null==i?void 0:i.values,r.defaultSelectedValue,""),f=Array.isArray(d),p=Tn(An(An({},l.getState()),c.getState()),{value:u,selectedValue:d,resetValueOnSelect:Wn(r.resetValueOnSelect,null==a?void 0:a.resetValueOnSelect,f),resetValueOnHide:Wn(r.resetValueOnHide,null==a?void 0:a.resetValueOnHide,f&&!n),activeValue:null==a?void 0:a.activeValue}),h=Mo(p,l,c,o);return Ou&&Ao(h,(()=>Oo(h,["virtualFocus"],(()=>{h.setState("virtualFocus",!1)})))),Ao(h,(()=>{if(n)return _n(Oo(h,["selectedValue"],(e=>{Array.isArray(e.selectedValue)&&n.setValues(e.selectedValue)})),Oo(n,["values"],(e=>{h.setState("selectedValue",e.values)})))})),Ao(h,(()=>Oo(h,["resetValueOnHide","mounted"],(e=>{e.resetValueOnHide&&(e.mounted||h.setState("value",u))})))),Ao(h,(()=>Oo(h,["open"],(e=>{e.open||(h.setState("activeId",s),h.setState("moves",0))})))),Ao(h,(()=>Oo(h,["moves","activeId"],((e,t)=>{e.moves===t.moves&&h.setState("activeValue",void 0)})))),Ao(h,(()=>Lo(h,["moves","renderedItems"],((e,t)=>{if(e.moves===t.moves)return;const{activeId:n}=h.getState(),r=l.item(n);h.setState("activeValue",null==r?void 0:r.value)})))),Tn(An(An(An({},c),l),h),{tag:n,setValue:e=>h.setState("value",e),resetValue:()=>h.setState("value",p.value),setSelectedValue:e=>h.setState("selectedValue",e)})}function Du(e={}){e=function(e){const t=Iu();return fi(e=xn(yn({},e),{tag:void 0!==e.tag?e.tag:t}))}(e);const[t,n]=ti(Lu,e);return function(e,t,n){return Lr(t,[n.tag]),ei(e,n,"value","setValue"),ei(e,n,"selectedValue","setSelectedValue"),ei(e,n,"resetValueOnHide"),ei(e,n,"resetValueOnSelect"),Object.assign(pi(La(e,t,n),t,n),{tag:n.tag})}(t,n,e)}function Fu(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 _u(e,t){return!!t&&(null!=e&&(e=Vn(e),t.length>e.length&&0===t.toLowerCase().indexOf(e.toLowerCase())))}var Vu=qr((function(e){var t=e,{store:n,focusable:r=!0,autoSelect:o=!1,getAutoSelectId:i,setValueOnChange:s,showMinLength:l=0,showOnChange:c,showOnMouseDown:u,showOnClick:d=u,showOnKeyDown:f,showOnKeyPress:p=f,blurActiveItemOnClick:h,setValueOnClick:b=!0,moveOnKeyPress:w=!0,autoComplete:y="list"}=t,x=Cn(t,["store","focusable","autoSelect","getAutoSelectId","setValueOnChange","showMinLength","showOnChange","showOnMouseDown","showOnClick","showOnKeyDown","showOnKeyPress","blurActiveItemOnClick","setValueOnClick","moveOnKeyPress","autoComplete"]);const C=bi();jn(n=n||C,!1);const S=m(null),[k,E]=Dr(),P=m(!1),N=m(!1),R=n.useState((e=>e.virtualFocus&&o)),M="inline"===y||"both"===y,[A,T]=v(M);!function(e,t){const n=m(!1);Pr((()=>{if(n.current)return e();n.current=!0}),t),Pr((()=>()=>{n.current=!1}),[])}((()=>{M&&T(!0)}),[M]);const I=n.useState("value"),O=m();g((()=>Oo(n,["selectedValue","activeId"],((e,t)=>{O.current=t.selectedValue}))),[]);const L=n.useState((e=>{var t;if(M&&A){if(e.activeValue&&Array.isArray(e.selectedValue)){if(e.selectedValue.includes(e.activeValue))return;if(null==(t=O.current)?void 0:t.includes(e.activeValue))return}return e.activeValue}})),D=n.useState("renderedItems"),F=n.useState("open"),_=n.useState("contentElement"),V=a((()=>{if(!M)return I;if(!A)return I;if(Fu(D,L,R)){if(_u(I,L)){const e=(null==L?void 0:L.slice(I.length))||"";return I+e}return I}return L||I}),[M,A,D,L,R,I]);g((()=>{const e=S.current;if(!e)return;const t=()=>T(!0);return e.addEventListener("combobox-item-move",t),()=>{e.removeEventListener("combobox-item-move",t)}}),[]),g((()=>{if(!M)return;if(!A)return;if(!L)return;if(!Fu(D,L,R))return;if(!_u(I,L))return;let e=On;return queueMicrotask((()=>{const t=S.current;if(!t)return;const{start:n,end:r}=ir(t),o=I.length,i=L.length;cr(t,o,i),e=()=>{if(!Wi(t))return;const{start:e,end:a}=ir(t);e===o&&a===i&&cr(t,n,r)}})),()=>e()}),[k,M,A,L,D,R,I]);const z=m(null),j=Rr(i),H=m(null);g((()=>{if(!F)return;if(!_)return;const e=lr(_);if(!e)return;z.current=e;const t=()=>{P.current=!1},r=()=>{if(!n)return;if(!P.current)return;const{activeId:e}=n.getState();null!==e&&e!==H.current&&(P.current=!1)},o={passive:!0,capture:!0};return e.addEventListener("wheel",t,o),e.addEventListener("touchmove",t,o),e.addEventListener("scroll",r,o),()=>{e.removeEventListener("wheel",t,!0),e.removeEventListener("touchmove",t,!0),e.removeEventListener("scroll",r,!0)}}),[F,_,n]),Pr((()=>{I&&(N.current||(P.current=!0))}),[I]),Pr((()=>{"always"!==R&&F||(P.current=F)}),[R,F]);const B=n.useState("resetValueOnSelect");Lr((()=>{var e,t;const r=P.current;if(!n)return;if(!F)return;if(!r&&!B)return;const{baseElement:o,contentElement:i,activeId:a}=n.getState();if(!o||Wi(o)){if(null==i?void 0:i.hasAttribute("data-placing")){const e=new MutationObserver(E);return e.observe(i,{attributeFilter:["data-placing"]}),()=>e.disconnect()}if(R&&r){const t=j(D),r=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}(D))?e:n.first();H.current=r,n.move(null!=r?r:null)}else{const e=null==(t=n.item(a||n.first()))?void 0:t.element;e&&"scrollIntoView"in e&&e.scrollIntoView({block:"nearest",inline:"nearest"})}}}),[n,F,k,I,R,B,j,D]),g((()=>{if(!M)return;const e=S.current;if(!e)return;const t=[e,_].filter((e=>!!e)),r=e=>{t.every((t=>yr(e,t)))&&(null==n||n.setValue(V))};for(const e of t)e.addEventListener("focusout",r);return()=>{for(const e of t)e.removeEventListener("focusout",r)}}),[M,_,n,V]);const $=e=>e.currentTarget.value.length>=l,W=x.onChange,U=Fr(null!=c?c:$),K=Fr(null!=s?s:!n.tag),G=Rr((e=>{if(null==W||W(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget,{value:r,selectionStart:o,selectionEnd:i}=t,a=e.nativeEvent;if(P.current=!0,function(e){return"input"===e.type}(a)&&(a.isComposing&&(P.current=!1,N.current=!0),M)){const e="insertText"===a.inputType||"insertCompositionText"===a.inputType,t=o===r.length;T(e&&t)}if(K(e)){const e=r===n.getState().value;n.setValue(r),queueMicrotask((()=>{cr(t,o,i)})),M&&R&&e&&E()}U(e)&&n.show(),R&&P.current||n.setActiveId(null)})),X=x.onCompositionEnd,q=Rr((e=>{P.current=!0,N.current=!1,null==X||X(e),e.defaultPrevented||R&&E()})),Y=x.onMouseDown,Z=Fr(null!=h?h:()=>!!(null==n?void 0:n.getState().includesBaseElement)),Q=Fr(b),J=Fr(null!=d?d:$),ee=Rr((e=>{null==Y||Y(e),e.defaultPrevented||e.button||e.ctrlKey||n&&(Z(e)&&n.setActiveId(null),Q(e)&&n.setValue(V),J(e)&&xr(e.currentTarget,"mouseup",n.show))})),te=x.onKeyDown,ne=Fr(null!=p?p:$),re=Rr((e=>{if(null==te||te(e),e.repeat||(P.current=!1),e.defaultPrevented)return;if(e.ctrlKey)return;if(e.altKey)return;if(e.shiftKey)return;if(e.metaKey)return;if(!n)return;const{open:t}=n.getState();t||"ArrowUp"!==e.key&&"ArrowDown"!==e.key||ne(e)&&(e.preventDefault(),n.show())})),oe=x.onBlur,ie=Rr((e=>{P.current=!1,null==oe||oe(e),e.defaultPrevented})),ae=Tr(x.id),se=function(e){return"inline"===e||"list"===e||"both"===e||"none"===e}(y)?y:void 0,le=n.useState((e=>null===e.activeId));return x=xn(yn({id:ae,role:"combobox","aria-autocomplete":se,"aria-haspopup":ar(_,"listbox"),"aria-expanded":F,"aria-controls":null==_?void 0:_.id,"data-active-item":le||void 0,value:V},x),{ref:Ar(S,x.ref),onChange:G,onCompositionEnd:q,onMouseDown:ee,onKeyDown:re,onBlur:ie}),x=ga(xn(yn({store:n,focusable:r},x),{moveOnKeyPress:e=>!Hn(w,e)&&(M&&T(!0),!0)})),x=kc(yn({store:n},x)),yn({autoComplete:"off"},x)})),zu=Kr((function(e){return Xr("input",Vu(e))}));function ju(t={}){const n=Du(t);return e(wi,{value:n,children:t.children})}var Hu=t("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("line",{x1:"5",y1:"5",x2:"11",y2:"11"}),e("line",{x1:"5",y1:"11",x2:"11",y2:"5"})]}),Bu=qr((function(t){var n=t,{store:r,hideWhenEmpty:o}=n,i=Cn(n,["store","hideWhenEmpty"]);const a=bi();jn(r=r||a,!1);const s=i.onClick,l=Rr((e=>{null==s||s(e),e.defaultPrevented||(null==r||r.setValue(""),null==r||r.move(null))})),c=r.useState((e=>{var t;return null==(t=e.baseElement)?void 0:t.id})),u=r.useState((e=>""===e.value));return i=_r(i,(t=>o&&u?e(h,{}):t),[o,u]),i=xn(yn({children:Hu,"aria-label":"Clear input","aria-controls":c},i),{onClick:l}),i=Rc(i)})),$u=Kr((function(e){return Xr("button",Bu(e))}));function Wu(e){var t;return null!=(t={menu:"menuitem",listbox:"option",tree:"treeitem"}[e])?t:"option"}var Uu=qr((function(t){var n,r=t,{store:o,value:i,hideOnClick:a,setValueOnClick:s,selectValueOnClick:u=!0,resetValueOnSelect:d,focusOnHover:f=!1,moveOnKeyPress:p=!0,getItem:h}=r,m=Cn(r,["store","value","hideOnClick","setValueOnClick","selectValueOnClick","resetValueOnSelect","focusOnHover","moveOnKeyPress","getItem"]);const g=vi();jn(o=o||g,!1);const{resetValueOnSelectState:v,multiSelectable:b,selected:w}=Jo(o,{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,i)}),y=c((e=>{const t=xn(yn({},e),{value:i});return h?h(t):t}),[i,h]);s=null!=s?s:!b,a=null!=a?a:null!=i&&!b;const x=m.onClick,C=Fr(s),S=Fr(u),k=Fr(null!=(n=null!=d?d:v)?n:b),E=Fr(a),P=Rr((e=>{null==x||x(e),e.defaultPrevented||vr(e)||gr(e)||(null!=i&&(S(e)&&(k(e)&&(null==o||o.resetValue()),null==o||o.setSelectedValue((e=>Array.isArray(e)?e.includes(i)?e.filter((e=>e!==i)):[...e,i]:i))),C(e)&&(null==o||o.setValue(i))),E(e)&&(null==o||o.hide()))})),N=m.onKeyDown,R=Rr((e=>{if(null==N||N(e),e.defaultPrevented)return;const t=null==o?void 0:o.getState().baseElement;if(!t)return;if(Wi(t))return;(1===e.key.length||"Backspace"===e.key||"Delete"===e.key)&&(queueMicrotask((()=>t.focus())),rr(t)&&(null==o||o.setValue(t.value)))}));b&&null!=w&&(m=yn({"aria-selected":w},m)),m=_r(m,(t=>e(xi.Provider,{value:i,children:e(Ci.Provider,{value:null!=w&&w,children:t})})),[i,w]);const M=l(hi);m=xn(yn({role:Wu(M),children:i},m),{onClick:P,onKeyDown:R});const A=Fr(p);return m=ua(xn(yn({store:o},m),{getItem:y,moveOnKeyPress:e=>{if(!A(e))return!1;const t=new Event("combobox-item-move"),n=null==o?void 0:o.getState().baseElement;return null==n||n.dispatchEvent(t),!0}})),m=Jc(yn({store:o,focusOnHover:f},m))})),Ku=Gr(Kr((function(e){return Xr("div",Uu(e))}))),Gu=qr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=bi();jn(n=n||o,!1);const i=n.useState((e=>{var t;return null==(t=e.baseElement)?void 0:t.id}));return $n(r=yn({htmlFor:i},r))})),Xu=Gr(Kr((function(e){return Xr("label",Gu(e))}))),qu=qr((function(t){var n=t,{store:r,alwaysVisible:o}=n,i=Cn(n,["store","alwaysVisible"]);const a=vi(!0),s=gi(),l=!!(r=r||s)&&r===a;jn(r,!1);const c=m(null),u=Tr(i.id),d=r.useState("mounted"),f=xa(d,i.hidden,o),p=f?xn(yn({},i.style),{display:"none"}):i.style,h=r.useState((e=>Array.isArray(e.selectedValue))),g=Or(c,"role",i.role),b=("listbox"===g||"tree"===g||"grid"===g)&&h||void 0,[w,y]=v(!1),x=r.useState("contentElement");Pr((()=>{if(!d)return;const e=c.current;if(!e)return;if(x!==e)return;const t=()=>{y(!!e.querySelector("[role='listbox']"))},n=new MutationObserver(t);return n.observe(e,{subtree:!0,childList:!0,attributeFilter:["role"]}),t(),()=>n.disconnect()}),[d,x]),w||(i=yn({role:"listbox","aria-multiselectable":b},i)),i=_r(i,(t=>e(yi,{value:r,children:e(hi.Provider,{value:g,children:t})})),[r,g]);const C=!u||a&&l?null:r.setContentElement;return $n(i=xn(yn({id:u,hidden:f},i),{ref:Ar(C,c,i.ref),style:p}))})),Yu=Kr((function(e){return Xr("div",qu(e))}));var Zu=qr((function(e){var t=e,{store:n,modal:r,tabIndex:o,alwaysVisible:i,autoFocusOnHide:a=!0,hideOnInteractOutside:s=!0}=t,l=Cn(t,["store","modal","tabIndex","alwaysVisible","autoFocusOnHide","hideOnInteractOutside"]);const c=bi();jn(n=n||c,!1);const u=n.useState("baseElement"),d=m(!1),f=Qo(n.tag,(e=>null==e?void 0:e.renderedItems.length));return l=qu(yn({store:n,alwaysVisible:i},l)),l=nc(xn(yn({store:n,modal:r,alwaysVisible:i,backdrop:!1,autoFocusOnShow:!1,finalFocus:u,preserveTabOrderAnchor:null,unstable_treeSnapshotKey:f},l),{getPersistentElements(){var e;const t=(null==(e=l.getPersistentElements)?void 0:e.call(l))||[];if(!r)return t;if(!n)return t;const{contentElement:o,baseElement:i}=n.getState();if(!i)return t;const a=qn(i),s=[];if((null==o?void 0:o.id)&&s.push(`[aria-controls~="${o.id}"]`),(null==i?void 0:i.id)&&s.push(`[aria-controls~="${i.id}"]`),!s.length)return[...t,i];const c=s.join(","),u=a.querySelectorAll(c);return[...t,...u]},autoFocusOnHide:e=>!Hn(a,e)&&(!d.current||(d.current=!1,!1)),hideOnInteractOutside(e){var t,r;const o=null==n?void 0:n.getState(),i=null==(t=null==o?void 0:o.contentElement)?void 0:t.id,a=null==(r=null==o?void 0:o.baseElement)?void 0:r.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 l="function"==typeof s?s(e):s;return l&&(d.current="click"===e.type),l}})),l})),Qu=Is(Kr((function(e){return Xr("div",Zu(e))})),bi);V("/* 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 Ju=u((function(t,n){const r=m(null);return g((()=>{const e=r.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(pa,{ref:e=>{r.current=e,"function"==typeof n?n(e):n&&(n.current=e)},...t,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 ${t.className||""}`})})),ed=u((function(t,n){const r=function(e){const t=m(void 0);return g((()=>{t.current=e}),[e]),t.current}(Qo(Pi(),"selectedId")),o=t.tabId&&r===t.tabId;return e(Ra,{ref:n,...t,"data-was-open":o||void 0,className:`animated-tab-panel max-w-full ${t.className||""}`})}));function td({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=m(null);return g((()=>{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("div",{className:`w-full ${r}`,children:t(ha,{defaultSelectedId:d,children:[e(ba,{ref:f,"aria-label":"Tabs",className:`animated-tab-list flex py-1 ${o}`,...l,children:n.map(((t,n)=>e(Ju,{id:u[n],disabled:t.disabled,className:i,"data-state":u[n]===d?"active":"inactive",children:t.label},u[n])))}),e("div",{className:an("animated-panels relative flex w-full flex-col items-center overflow-hidden p-0",s),children:n.map(((t,n)=>e(ed,{id:`panel-${u[n]}`,tabId:u[n],className:a,children:t.content},`panel-${u[n]}`)))})]})})}const nd="dismissableLayer.update",rd="dismissableLayer.pointerDownOutside",od="dismissableLayer.focusOutside";let id;const ad=i({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sd=u(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:c,onDismiss:u,...d}=e,f=l(ad),[p,h]=v(null),b=null!==(n=null==p?void 0:p.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,w]=v({}),y=$(t,(e=>h(e))),x=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),S=x.indexOf(C),k=p?x.indexOf(p):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,P=k>=S,N=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Z(e),r=m(!1),o=m((()=>{}));return g((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){cd(rd,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}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=[...f.branches].some((e=>e.contains(t)));P&&!n&&(null==i||i(e),null==c||c(e),e.defaultPrevented||null==u||u())}),b),R=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Z(e),r=m(!1);return g((()=>{const e=e=>{if(e.target&&!r.current){cd(od,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;[...f.branches].some((e=>e.contains(t)))||(null==a||a(e),null==c||c(e),e.defaultPrevented||null==u||u())}),b);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Z(e);g((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{k===f.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),b),g((()=>{if(p)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(id=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),ld(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=id)}}),[p,b,r,f]),g((()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),ld())}),[p,f]),g((()=>{const e=()=>w({});return document.addEventListener(nd,e),()=>document.removeEventListener(nd,e)}),[]),s(J.div,z({},d,{ref:y,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,R.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,N.onPointerDownCapture)}))}));function ld(){const e=new CustomEvent(nd);document.dispatchEvent(e)}function cd(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?ee(o,i):o.dispatchEvent(i)}const ud=sd,dd="focusScope.autoFocusOnMount",fd="focusScope.autoFocusOnUnmount",pd={bubbles:!1,cancelable:!0},hd=u(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,u]=v(null),d=Z(o),f=Z(i),p=m(null),h=$(t,(e=>u(e))),b=m({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g((()=>{if(r){function e(e){if(b.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:bd(p.current,{select:!0})}function t(e){if(b.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||bd(p.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&bd(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return l&&o.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[r,l,b.paused]),g((()=>{if(l){wd.add(b);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(dd,pd);l.addEventListener(dd,d),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bd(r,{select:t}),document.activeElement!==n)return}((e=md(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&bd(l))}return()=>{l.removeEventListener(dd,d),setTimeout((()=>{const e=new CustomEvent(fd,pd);l.addEventListener(fd,f),l.dispatchEvent(e),e.defaultPrevented||bd(null!=t?t:document.body,{select:!0}),l.removeEventListener(fd,f),wd.remove(b)}),0)}}var e}),[l,d,f,b]);const w=c((e=>{if(!n&&!r)return;if(b.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=md(e),n=gd(t,e),r=gd(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&bd(i,{select:!0})):(e.preventDefault(),n&&bd(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,b.paused]);return s(J.div,z({tabIndex:-1},a,{ref:h,onKeyDown:w}))}));function md(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 gd(e,t){for(const n of e)if(!vd(n,{upTo:t}))return n}function vd(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 bd(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 wd=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=yd(e,t),e.unshift(t)},remove(t){var n;e=yd(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function yd(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const xd=u(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?M.createPortal(s(J.div,z({},o,{ref:t})),r):null}));let Cd=0;function Sd(){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 kd=function(){return kd=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},kd.apply(this,arguments)};function Ed(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 Pd(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 Nd="right-scroll-bar-position",Rd="width-before-scroll-bar";function Md(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ad="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Td=new WeakMap;function Id(e,t){var n,r,o,i=(n=null,r=function(t){return e.forEach((function(e){return Md(e,t)}))},(o=v((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade);return Ad((function(){var t=Td.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach((function(e){r.has(e)||Md(e,null)})),r.forEach((function(e){n.has(e)||Md(e,o)}))}Td.set(i,e)}),[e]),i}function Od(e){return e}function Ld(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Od);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=kd({async:!0,ssr:!1},e),t}var Dd=function(e){var t=e.sideCar,n=Ed(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,kd({},n))};function Fd(e,t){return e.useMedium(t),Dd}Dd.isSideCarExport=!0;var _d=Ld(),Vd=function(){},zd=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:Vd,onWheelCapture:Vd,onTouchMoveCapture:Vd}),i=o[0],a=o[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,w=Ed(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=p,x=Id([n,t]),C=kd(kd({},w),i);return r.createElement(r.Fragment,null,d&&r.createElement(y,{sideCar:_d,removeScrollBar:u,shards:f,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n}),s?r.cloneElement(r.Children.only(l),kd(kd({},C),{ref:x})):r.createElement(b,kd({},C,{className:c,ref:x}),l))}));zd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zd.classNames={fullWidth:Rd,zeroRight:Nd};function jd(){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 Hd=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=jd())&&(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)}}},Bd=function(){var e,t=(e=Hd(),function(t,n){r.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}},$d={left:0,top:0,right:0,gap:0},Wd=function(e){return parseInt(e||"",10)||0},Ud=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return $d;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[Wd(n),Wd(r),Wd(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])}},Kd=Bd(),Gd="data-scroll-locked",Xd=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(Nd," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Rd," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Nd," .").concat(Nd," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Rd," .").concat(Rd," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Gd,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},qd=function(){var e=parseInt(document.body.getAttribute(Gd)||"0",10);return isFinite(e)?e:0},Yd=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o;r.useEffect((function(){return document.body.setAttribute(Gd,(qd()+1).toString()),function(){var e=qd()-1;e<=0?document.body.removeAttribute(Gd):document.body.setAttribute(Gd,e.toString())}}),[]);var a=r.useMemo((function(){return Ud(i)}),[i]);return r.createElement(Kd,{styles:Xd(a,!t,i,n?"":"!important")})},Zd=!1;if("undefined"!=typeof window)try{var Qd=Object.defineProperty({},"passive",{get:function(){return Zd=!0,!0}});window.addEventListener("test",Qd,Qd),window.removeEventListener("test",Qd,Qd)}catch(e){Zd=!1}var Jd=!!Zd&&{passive:!1},ef=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])},tf=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),nf(e,n)){var r=rf(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},nf=function(e,t){return"v"===e?function(e){return ef(e,"overflowY")}(t):function(e){return ef(e,"overflowX")}(t)},rf=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)},of=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},af=function(e){return[e.deltaX,e.deltaY]},sf=function(e){return e&&"current"in e?e.current:e},lf=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},cf=0,uf=[];var df=Fd(_d,(function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(cf++)[0],a=r.useState((function(){return Bd()}))[0],s=r.useRef(e);r.useEffect((function(){s.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=Pd([e.lockRef.current],(e.shards||[]).map(sf),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var r,i=of(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=tf(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=tf(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=r),!r)return!0;var p=o.current||r;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=rf(e,s),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&nf(e,s)&&(d+=m,f+=h),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=r.useCallback((function(e){var n=e;if(uf.length&&uf[uf.length-1]===a){var r="deltaY"in n?af(n):of(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 i=(s.current.shards||[]).map(sf).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?l(n,i[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=r.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=r.useCallback((function(e){n.current=of(e),o.current=void 0}),[]),f=r.useCallback((function(t){u(t.type,af(t),t.target,l(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){u(t.type,of(t),t.target,l(t,e.lockRef.current))}),[]);r.useEffect((function(){return uf.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Jd),document.addEventListener("touchmove",c,Jd),document.addEventListener("touchstart",d,Jd),function(){uf=uf.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,Jd),document.removeEventListener("touchmove",c,Jd),document.removeEventListener("touchstart",d,Jd)}}),[]);var h=e.removeScrollBar,m=e.inert;return r.createElement(r.Fragment,null,m?r.createElement(a,{styles:lf(i)}):null,h?r.createElement(Yd,{gapMode:"margin"}):null)})),ff=r.forwardRef((function(e,t){return r.createElement(zd,kd({},e,{ref:t,sideCar:df}))}));ff.classNames=zd.classNames;var pf=new WeakMap,hf=new WeakMap,mf={},gf=0,vf=function(e){return e&&(e.host||vf(e.parentNode))},bf=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=vf(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]);mf[n]||(mf[n]=new WeakMap);var i=mf[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=(pf.get(e)||0)+1,c=(i.get(e)||0)+1;pf.set(e,l),i.set(e,c),a.push(e),1===l&&o&&hf.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(),gf++,function(){a.forEach((function(e){var t=pf.get(e)-1,o=i.get(e)-1;pf.set(e,t),i.set(e,o),t||(hf.has(e)||e.removeAttribute(r),hf.delete(e)),o||e.removeAttribute(n)})),--gf||(pf=new WeakMap,pf=new WeakMap,hf=new WeakMap,mf={})}},wf=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"))),bf(r,o,n,"aria-hidden")):function(){return null}};const yf="Dialog",[xf,Cf]=j(yf),[Sf,kf]=xf(yf),Ef=u(((e,t)=>{const{__scopeDialog:n,...r}=e,o=kf("DialogTrigger",n),i=$(t,o.triggerRef);return s(J.button,z({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$f(o.open)},r,{ref:i,onClick:Y(e.onClick,o.onOpenToggle)}))})),Pf="DialogPortal",[Nf,Rf]=xf(Pf,{forceMount:void 0}),Mf="DialogOverlay",Af=u(((e,t)=>{const n=Rf(Mf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=kf(Mf,e.__scopeDialog);return i.modal?s(ne,{present:r||i.open},s(Tf,z({},o,{ref:t}))):null})),Tf=u(((e,t)=>{const{__scopeDialog:n,...r}=e,o=kf(Mf,n);return s(ff,{as:W,allowPinchZoom:!0,shards:[o.contentRef]},s(J.div,z({"data-state":$f(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),If="DialogContent",Of=u(((e,t)=>{const n=Rf(If,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=kf(If,e.__scopeDialog);return s(ne,{present:r||i.open},i.modal?s(Lf,z({},o,{ref:t})):s(Df,z({},o,{ref:t})))})),Lf=u(((e,t)=>{const n=kf(If,e.__scopeDialog),r=m(null),o=$(t,n.contentRef,r);return g((()=>{const e=r.current;if(e)return wf(e)}),[]),s(Ff,z({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Y(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.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()))}))})),Df=u(((e,t)=>{const n=kf(If,e.__scopeDialog),r=m(!1),o=m(!1);return s(Ff,z({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;(null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented)||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),Ff=u(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=kf(If,n),c=$(t,m(null));return g((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Sd()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Sd()),Cd++,()=>{1===Cd&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Cd--}}),[]),s(h,null,s(hd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},s(sd,z({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":$f(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)})),_f="DialogTitle",Vf=u(((e,t)=>{const{__scopeDialog:n,...r}=e,o=kf(_f,n);return s(J.h2,z({id:o.titleId},r,{ref:t}))})),zf="DialogDescription",jf=u(((e,t)=>{const{__scopeDialog:n,...r}=e,o=kf(zf,n);return s(J.p,z({id:o.descriptionId},r,{ref:t}))})),Hf="DialogClose",Bf=u(((e,t)=>{const{__scopeDialog:n,...r}=e,o=kf(Hf,n);return s(J.button,z({type:"button"},r,{ref:t,onClick:Y(e.onClick,(()=>o.onOpenChange(!1)))}))}));function $f(e){return e?"open":"closed"}const[Wf,Uf]=function(e,t){const n=i(t);function r(e){const{children:t,...r}=e,o=a((()=>r),Object.values(r));return s(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=l(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:If,titleName:_f,docsSlug:"dialog"}),Kf=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=m(null),u=m(null),[d=!1,f]=Q({prop:r,defaultProp:o,onChange:i});return s(Sf,{scope:t,triggerRef:l,contentRef:u,contentId:ae(),titleId:ae(),descriptionId:ae(),open:d,onOpenChange:f,onOpenToggle:c((()=>f((e=>!e))),[f]),modal:a},n)},Gf=Ef,Xf=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=kf(Pf,t);return s(Nf,{scope:t,forceMount:n},d.map(r,(e=>s(ne,{present:n||i.open},s(xd,{asChild:!0,container:o},e)))))},qf=Af,Yf=Of,Zf=Vf,Qf=jf,Jf=Bf,[ep,tp]=j("AlertDialog",[Cf]),np=Cf(),rp=u(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=np(n);return s(Gf,z({},o,r,{ref:t}))})),op=u(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=np(n);return s(qf,z({},o,r,{ref:t}))})),ip="AlertDialogContent",[ap,sp]=ep(ip),lp=u(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=np(n),a=$(t,m(null)),l=m(null);return s(Wf,{contentName:ip,titleName:cp,docsSlug:"alert-dialog"},s(ap,{scope:n,cancelRef:l},s(Yf,z({role:"alertdialog"},i,o,{ref:a,onOpenAutoFocus:Y(o.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()}),s(K,null,r),!1)))})),cp="AlertDialogTitle",up=u(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=np(n);return s(Zf,z({},o,r,{ref:t}))})),dp=u(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=np(n);return s(Qf,z({},o,r,{ref:t}))})),fp=u(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=np(n);return s(Jf,z({},o,r,{ref:t}))})),pp=u(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=sp("AlertDialogCancel",n),i=np(n),a=$(t,o);return s(Jf,z({},i,r,{ref:a}))})),hp=e=>{const{__scopeAlertDialog:t,...n}=e,r=np(t);return s(Kf,z({},r,n,{modal:!0}))},mp=e=>{const{__scopeAlertDialog:t,...n}=e,r=np(t);return s(Xf,z({},r,n))},gp=op,vp=lp,bp=fp,wp=pp,yp=up,xp=dp,Cp=hp,Sp=rp,kp=({className:t="",children:n,...r})=>e(mp,{className:an(t),...r,children:e("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:n})});kp.displayName=mp.displayName;const Ep=r.forwardRef((({className:t="",...n},r)=>e(gp,{className:an("fixed inset-0 z-50 bg-gray-500/90 transition-opacity animate-in fade-in dark:bg-gray-800/90",t),...n,ref:r})));Ep.displayName=gp.displayName;const Pp=r.forwardRef((({className:n="",...r},o)=>t(kp,{children:[e(Ep,{}),e(vp,{ref:o,className:an("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",n),...r})]})));Pp.displayName=vp.displayName;const Np=({className:t="",...n})=>e("div",{className:an("flex flex-col space-y-2 text-center sm:text-left",t),...n});Np.displayName="AlertDialogHeader";const Rp=({className:t="",...n})=>e("div",{className:an("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});Rp.displayName="AlertDialogFooter";const Mp=r.forwardRef((({className:t="",...n},r)=>e(yp,{ref:r,className:an("text-lg font-semibold text-gray-900","dark:text-gray-50",t),...n})));Mp.displayName=yp.displayName;const Ap=r.forwardRef((({className:t="",...n},r)=>e(xp,{ref:r,className:an("text-sm text-gray-500","dark:text-gray-400",t),...n})));Ap.displayName=xp.displayName;const Tp=r.forwardRef((({className:t="",...n},r)=>e(bp,{ref:r,className:an("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})));Tp.displayName=bp.displayName;const Ip=r.forwardRef((({className:t="",...n},r)=>e(wp,{ref:r,className:an("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 Op(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Lp(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Op(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():Op(e[t],null)}}}}function Dp(...e){return r.useCallback(Lp(...e),e)}function Fp(t){const n=Vp(t),o=r.forwardRef(((t,o)=>{const{children:i,...a}=t,s=r.Children.toArray(i),l=s.find(jp);if(l){const t=l.props.children,i=s.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(n,{...a,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return e(n,{...a,ref:o,children:i})}));return o.displayName=`${t}.Slot`,o}Ip.displayName=wp.displayName;var _p=Fp("Slot");function Vp(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.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
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import a,{forwardRef as o,useRef as i,useEffect as s,createElement as l,createContext as c,useState as d,useMemo as u,version as h,useLayoutEffect as p,useId as m,useContext as f,useInsertionEffect as g,useCallback as v,Children as w,isValidElement as y,Fragment as b,Component as x,useImperativeHandle as k,startTransition as C,memo as N}from"react";import*as S from"@radix-ui/react-accordion";import{ChevronDownIcon as P,ArrowDownIcon as M,ArrowUpIcon as L,CaretSortIcon as T,EyeNoneIcon as A,ChevronUpIcon as E,CheckIcon as z}from"@radix-ui/react-icons";import*as R from"@ariakit/react";import{ComboboxProvider as V,Combobox as I,ComboboxCancel as D,ComboboxList as j,ComboboxItem as O,SelectProvider as B,SelectLabel as F,Select as _,SelectArrow as H,SelectPopover as $,SelectItemCheck as W,SelectItem as U,useCheckboxStore as X,useStoreState as Y,Checkbox as Z}from"@ariakit/react";import*as G from"@radix-ui/react-alert-dialog";import{Slot as q}from"@radix-ui/react-slot";import*as K from"@radix-ui/react-checkbox";import*as Q from"@radix-ui/react-collapsible";import*as J from"@radix-ui/react-dropdown-menu";import*as ee from"@radix-ui/react-dialog";import{atom as te,useSetAtom as ne,useAtom as re,useAtomValue as ae}from"jotai";import{useTranslation as oe}from"react-i18next";import*as ie from"@radix-ui/react-hover-card";import*as se from"@radix-ui/react-label";import*as le from"@radix-ui/react-slider";import*as ce from"@radix-ui/react-separator";import*as de from"@radix-ui/react-switch";import*as ue from"@radix-ui/react-tabs";import*as he from"@radix-ui/react-toast";import*as pe from"@radix-ui/react-progress";import*as me from"@radix-ui/react-select";import*as fe from"@ariakit/react/select";import{unstable_batchedUpdates as ge}from"react-dom";import{useVirtualizer as ve}from"@tanstack/react-virtual";import{flexRender as we,useReactTable as ye,getFilteredRowModel as be,getSortedRowModel as xe,getCoreRowModel as ke}from"@tanstack/react-table";import{Listbox as Ce,ListboxButton as Ne,Label as Se,Transition as Pe,ListboxOptions as Me,ListboxOption as Le}from"@headlessui/react";import{SelectRenderer as Te}from"@ariakit/react-core/select/select-renderer";function Ae(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 Ee(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=Ee(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ze(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ee(e))&&(r&&(r+=" "),r+=t);return r}function Re(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ve(e))&&(r&&(r+=" "),r+=t);return r}function Ve(e){if("string"==typeof e)return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Ve(e[r]))&&(n&&(n+=" "),n+=t);return n}Ae('*, ::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 Ie(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];Oe(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(),De(n,t)||function(e){if(je.test(e)){var t=je.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 De(e,t){if(0===e.length)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),a=r?De(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 je=/^\[(.+)\]$/;function Oe(e,t,n,r){e.forEach(function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void Oe(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(function(e){var a=e[0];Oe(e[1],Be(t,a),n,r)})}else{(""===e?t:Be(t,e)).classGroupId=n}})}function Be(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 Fe(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 _e(e){var t=e.separator||":",n=1===t.length,r=t[0],a=t.length;return function(e){for(var o,i=[],s=0,l=0,c=0;c<e.length;c++){var d=e[c];if(0===s){if(d===r&&(n||e.slice(c,c+a)===t)){i.push(e.slice(l,c)),l=c+a;continue}if("/"===d){o=c;continue}}"["===d?s++:"]"===d&&s--}var u=0===i.length?e:e.substring(l),h=u.startsWith("!");return{modifiers:i,hasImportantModifier:h,baseClassName:h?u.substring(1):u,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}}var He=/\s+/;function $e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,a,o,i=function(e){var n=t[0],l=t.slice(1).reduce(function(e,t){return t(e)},n());return r=function(e){return{cache:Fe(e.cacheSize),splitModifiers:_e(e),...Ie(e)}}(l),a=r.cache.get,o=r.cache.set,i=s,s(e)};function s(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(He).map(function(e){var t=n(e),a=t.modifiers,o=t.hasImportantModifier,i=t.baseClassName,s=t.maybePostfixModifierPosition,l=r(s?i.substring(0,s):i),c=Boolean(s);if(!l){if(!s)return{isTailwindClass:!1,originalClassName:e};if(!(l=r(i)))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,i=t+n;return!o.has(i)&&(o.add(i),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 i(Re.apply(null,arguments))}}function We(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var Ue=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xe=/^\d+\/\d+$/,Ye=new Set(["px","full","screen"]),Ze=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ge=/\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$/,qe=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Ke(e){return rt(e)||Ye.has(e)||Xe.test(e)||Qe(e)}function Qe(e){return dt(e,"length",ut)}function Je(e){return dt(e,"size",ht)}function et(e){return dt(e,"position",ht)}function tt(e){return dt(e,"url",pt)}function nt(e){return dt(e,"number",rt)}function rt(e){return!Number.isNaN(Number(e))}function at(e){return e.endsWith("%")&&rt(e.slice(0,-1))}function ot(e){return mt(e)||dt(e,"number",mt)}function it(e){return Ue.test(e)}function st(){return!0}function lt(e){return Ze.test(e)}function ct(e){return dt(e,"",ft)}function dt(e,t,n){var r=Ue.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function ut(e){return Ge.test(e)}function ht(){return!1}function pt(e){return e.startsWith("url(")}function mt(e){return Number.isInteger(Number(e))}function ft(e){return qe.test(e)}function gt(){var e=We("colors"),t=We("spacing"),n=We("blur"),r=We("brightness"),a=We("borderColor"),o=We("borderRadius"),i=We("borderSpacing"),s=We("borderWidth"),l=We("contrast"),c=We("grayscale"),d=We("hueRotate"),u=We("invert"),h=We("gap"),p=We("gradientColorStops"),m=We("gradientColorStopPositions"),f=We("inset"),g=We("margin"),v=We("opacity"),w=We("padding"),y=We("saturate"),b=We("scale"),x=We("sepia"),k=We("skew"),C=We("space"),N=We("translate"),S=function(){return["auto",it,t]},P=function(){return[it,t]},M=function(){return["",Ke]},L=function(){return["auto",rt,it]},T=function(){return["","0",it]},A=function(){return[rt,nt]},E=function(){return[rt,it]};return{cacheSize:500,theme:{colors:[st],spacing:[Ke],blur:["none","",lt,it],brightness:A(),borderColor:[e],borderRadius:["none","","full",lt,it],borderSpacing:P(),borderWidth:M(),contrast:A(),grayscale:T(),hueRotate:E(),invert:T(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[at,Qe],inset:S(),margin:S(),opacity:A(),padding:P(),saturate:A(),scale:A(),sepia:T(),skew:E(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",it]}],container:["container"],columns:[{columns:[lt]}],"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"],[it])}],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",ot]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",it]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",ot]}],"grid-cols":[{"grid-cols":[st]}],"col-start-end":[{col:["auto",{span:["full",ot]},it]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[st]}],"row-start-end":[{row:["auto",{span:[ot]},it]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",it]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",it]}],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",it,t]}],"min-w":[{"min-w":["min","max","fit",it,Ke]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[lt]},lt,it]}],h:[{h:[it,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",it,Ke]}],"max-h":[{"max-h":[it,t,"min","max","fit"]}],"font-size":[{text:["base",lt,Qe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nt]}],"font-family":[{font:[st]}],"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",it]}],"line-clamp":[{"line-clamp":["none",rt,nt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",it,Ke]}],"list-image":[{"list-image":["none",it]}],"list-style-type":[{list:["none","disc","decimal",it]}],"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",Ke]}],"underline-offset":[{"underline-offset":["auto",it,Ke]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",it]}],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",it]}],"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"],[et])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Je]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tt]}],"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:[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:[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":[it,Ke]}],"outline-w":[{outline:[Ke]}],"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":[Ke]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",lt,ct]}],"shadow-color":[{shadow:[st]}],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",lt,it]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[y]}],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":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",it]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",it]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",it]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[ot,it]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"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",it]}],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",it]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",it]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ke,nt]}],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 vt=$e(gt);const wt=(...e)=>vt(ze(e)),yt=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")}},bt=()=>{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"},xt=S.Root,kt=r.forwardRef(({className:t="",...n},r)=>e(S.Item,{ref:r,className:wt("border-b",t),...n}));kt.displayName="AccordionItem";const Ct=r.forwardRef(({className:n="",children:r,...a},o)=>e(S.Header,{className:"flex",children:t(S.Trigger,{ref:o,className:wt("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",n),...a,children:[r,e(P,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Ct.displayName=S.Trigger.displayName;const Nt=r.forwardRef(({className:t="",children:n,...r},a)=>e(S.Content,{ref:a,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:e("div",{className:wt("pb-4 pt-0",t),children:n})}));Nt.displayName=S.Content.displayName;Ae("/* 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 St=o(function(t,n){const r=i(null);return s(()=>{const e=r.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(R.Tab,{ref:e=>{r.current=e,"function"==typeof n?n(e):n&&(n.current=e)},...t,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 ${t.className||""}`})}),Pt=o(function(t,n){const r=R.useTabContext(),a=function(e){const t=i(void 0);return s(()=>{t.current=e},[e]),t.current}(R.useStoreState(r,"selectedId")),o=t.tabId&&a===t.tabId;return e(R.TabPanel,{ref:n,...t,"data-was-open":o||void 0,className:`animated-tab-panel max-w-full ${t.className||""}`})});function Mt({tabs:n,className:r="",tabListClassName:a="",tabClassName:o="",tabPanelClassName:l="",containerClassName:c="",tabListProps:d={},defaultSelectedId:u}){const h=n.map((e,t)=>e.id||`tab-${t}`),p=u||h[0],m=i(null);return s(()=>{const e=m.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("div",{className:`w-full ${r}`,children:t(R.TabProvider,{defaultSelectedId:p,children:[e(R.TabList,{ref:m,"aria-label":"Tabs",className:`animated-tab-list flex py-1 ${a}`,...d,children:n.map((t,n)=>e(St,{id:h[n],disabled:t.disabled,className:o,"data-state":h[n]===p?"active":"inactive",children:t.label},h[n]))}),e("div",{className:wt("animated-panels relative flex w-full flex-col items-center overflow-hidden p-0",c),children:n.map((t,n)=>e(Pt,{id:`panel-${h[n]}`,tabId:h[n],className:l,children:t.content},`panel-${h[n]}`))})]})})}const Lt=G.Root,Tt=G.Trigger,At=({className:t="",children:n,...r})=>e(G.Portal,{className:wt(t),...r,children:e("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:n})});At.displayName=G.Portal.displayName;const Et=r.forwardRef(({className:t="",...n},r)=>e(G.Overlay,{className:wt("fixed inset-0 z-50 bg-gray-500/90 transition-opacity animate-in fade-in dark:bg-gray-800/90",t),...n,ref:r}));Et.displayName=G.Overlay.displayName;const zt=r.forwardRef(({className:n="",...r},a)=>t(At,{children:[e(Et,{}),e(G.Content,{ref:a,className:wt("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",n),...r})]}));zt.displayName=G.Content.displayName;const Rt=({className:t="",...n})=>e("div",{className:wt("flex flex-col space-y-2 text-center sm:text-left",t),...n});Rt.displayName="AlertDialogHeader";const Vt=({className:t="",...n})=>e("div",{className:wt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});Vt.displayName="AlertDialogFooter";const It=r.forwardRef(({className:t="",...n},r)=>e(G.Title,{ref:r,className:wt("text-lg font-semibold text-gray-900","dark:text-gray-50",t),...n}));It.displayName=G.Title.displayName;const Dt=r.forwardRef(({className:t="",...n},r)=>e(G.Description,{ref:r,className:wt("text-sm text-gray-500","dark:text-gray-400",t),...n}));Dt.displayName=G.Description.displayName;const jt=r.forwardRef(({className:t="",...n},r)=>e(G.Action,{ref:r,className:wt("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}));jt.displayName=G.Action.displayName;const Ot=r.forwardRef(({className:t="",...n},r)=>e(G.Cancel,{ref:r,className:wt("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}));Ot.displayName=G.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),i=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}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?Lp(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var zp=Symbol("radix.slottable");function jp(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===zp}const Hp=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)},Bp=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim(),$p=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
7
+ */
8
+ const Bt=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)},Ft=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),_t=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 Wp={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 Ht={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 Up=u((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...l},c)=>s("svg",{ref:c,...Wp,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Bp("lucide",o),...!i&&!$p(l)&&{"aria-hidden":"true"},...l},[...a.map((([e,t])=>s(e,t))),...Array.isArray(i)?i:[i]]))),Kp=(e,t)=>{const n=u((({className:n,...r},o)=>{return s(Up,{ref:o,iconNode:t,className:Bp(`lucide-${i=Hp(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r});var i}));return n.displayName=Hp(e),n},Gp=Kp("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Xp=Kp("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),qp=Kp("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Yp=Kp("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Zp=Kp("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Qp=Kp("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"}]]),Jp=Kp("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"}]]),eh=Kp("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),th=Kp("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"}]]),nh=Kp("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),rh=Kp("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),oh=Kp("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),ih=Kp("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"}]]),ah=Kp("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),sh=r.forwardRef((({...t},n)=>e("nav",{ref:n,"aria-label":"breadcrumb",...t})));
21
+ */const $t=o(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:i,...s},c)=>l("svg",{ref:c,...Ht,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Ft("lucide",a),...!o&&!_t(s)&&{"aria-hidden":"true"},...s},[...i.map(([e,t])=>l(e,t)),...Array.isArray(o)?o:[o]])),Wt=(e,t)=>{const n=o(({className:n,...r},a)=>{return l($t,{ref:a,iconNode:t,className:Ft(`lucide-${o=Bt(e),o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r});var o});return n.displayName=Bt(e),n},Ut=Wt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Xt=Wt("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Yt=Wt("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Zt=Wt("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Gt=Wt("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),qt=Wt("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"}]]),Kt=Wt("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"}]]),Qt=Wt("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),Jt=Wt("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"}]]),en=Wt("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),tn=Wt("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),nn=Wt("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),rn=Wt("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"}]]),an=Wt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),on=r.forwardRef(({...t},n)=>e("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
- */sh.displayName="Breadcrumb";const lh=r.forwardRef((({className:t,...n},r)=>e("ol",{ref:r,className:an("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...n})));lh.displayName="BreadcrumbList";const ch=r.forwardRef((({className:t,...n},r)=>e("li",{ref:r,className:an("inline-flex items-center gap-1.5",t),...n})));ch.displayName="BreadcrumbItem";const uh=r.forwardRef((({asChild:t,className:n,...r},o)=>e(t?_p:"a",{ref:o,className:an("transition-colors hover:text-foreground",n),...r})));uh.displayName="BreadcrumbLink";const dh=r.forwardRef((({className:t,...n},r)=>e("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:an("font-normal text-foreground",t),...n})));dh.displayName="BreadcrumbPage";const fh=({children:t,className:n,...r})=>e("li",{role:"presentation","aria-hidden":"true",className:an("[&>svg]:size-3.5",n),...r,children:t??e(Yp,{})});fh.displayName="BreadcrumbSeparator";const ph=({className:n,...r})=>t("span",{role:"presentation","aria-hidden":"true",className:an("flex h-9 w-9 items-center justify-center",n),...r,children:[e(Qp,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"More"})]});ph.displayName="BreadcrumbElipssis";const hh=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,mh=vt,gh=((e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return mh(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=hh(t)||hh(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 mh(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"}}),vh=r.forwardRef((({className:t,variant:n,size:r,asChild:o=!1,...i},a)=>e(o?_p:"button",{className:an(gh({variant:n,size:r,className:t})),ref:a,...i})));function bh(e){const[t,n]=v(void 0);return te((()=>{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}vh.displayName="Button";const wh="Checkbox",[yh,xh]=j(wh),[Ch,Sh]=yh(wh),kh=u(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:l,value:c="on",onCheckedChange:u,...d}=e,[f,p]=v(null),h=$(t,(e=>p(e))),b=m(!1),w=!f||Boolean(f.closest("form")),[y=!1,x]=Q({prop:o,defaultProp:i,onChange:u}),C=m(y);return g((()=>{const e=null==f?void 0:f.form;if(e){const t=()=>x(C.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,x]),s(Ch,{scope:n,state:y,disabled:l},s(J.button,z({type:"button",role:"checkbox","aria-checked":Nh(y)?"mixed":y,"aria-required":a,"data-state":Rh(y),"data-disabled":l?"":void 0,disabled:l,value:c},d,{ref:h,onKeyDown:Y(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:Y(e.onClick,(e=>{x((e=>!!Nh(e)||!e)),w&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())}))})),w&&s(Ph,{control:f,bubbles:!b.current,name:r,value:c,checked:y,required:a,disabled:l,style:{transform:"translateX(-100%)"}}))})),Eh=u(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Sh("CheckboxIndicator",n);return s(ne,{present:r||Nh(i.state)||!0===i.state},s(J.span,z({"data-state":Rh(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),Ph=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=m(null),l=function(e){const t=m({value:e,previous:e});return a((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n),c=bh(t);return g((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=Nh(n),o.call(e,!Nh(n)&&n),e.dispatchEvent(t)}}),[l,n,r]),s("input",z({type:"checkbox","aria-hidden":!0,defaultChecked:!Nh(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Nh(e){return"indeterminate"===e}function Rh(e){return Nh(e)?"indeterminate":e?"checked":"unchecked"}const Mh=kh,Ah=Eh,Th=r.forwardRef((({className:t="",...n},r)=>e(Mh,{ref:r,className:an("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(Ah,{className:an("flex items-center justify-center"),children:e(Gp,{className:"h-4 w-4"})})})));function Ih(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Oh(...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 o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}Th.displayName=Mh.displayName;var Lh=globalThis?.document?r.useLayoutEffect:()=>{},Dh=r[" useInsertionEffect ".trim().toString()]||Lh;function Fh({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:o}){const[i,a,s]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return Dh((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} 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,o])}const u=r.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else a(t)}),[l,e,a,s]);return[c,u]}var _h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const o=Fp(`Primitive.${n}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{});var Vh=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=r.useState(),o=r.useRef(null),i=r.useRef(e),a=r.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return r.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 r.useEffect((()=>{const e=zh(o.current);a.current="mounted"===l?e:"none"}),[l]),Lh((()=>{const t=o.current,n=i.current;if(n!==e){const r=a.current,o=zh(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),Lh((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const a=zh(o.current).includes(r.animationName);if(r.target===t&&a&&(c("ANIMATION_END"),!i.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&&(a.current=zh(o.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:r.useCallback((e=>{o.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=Dp(o.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}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:a}):null};function zh(e){return e?.animationName||"none"}Vh.displayName="Presence";var jh=r[" useId ".trim().toString()]||(()=>{}),Hh=0;function Bh(e){const[t,n]=r.useState(jh());return Lh((()=>{n((e=>e??String(Hh++)))}),[e]),e||(t?`radix-${t}`:"")}var $h="Collapsible",[Wh,Uh]=function(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;o=[...o,i];const l=n=>{const{scope:o,children:i,...l}=n,c=o?.[t]?.[s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},Oh(i,...n)]}($h),[Kh,Gh]=Wh($h),Xh=r.forwardRef(((t,n)=>{const{__scopeCollapsible:o,open:i,defaultOpen:a,disabled:s,onOpenChange:l,...c}=t,[u,d]=Fh({prop:i,defaultProp:a??!1,onChange:l,caller:$h});return e(Kh,{scope:o,disabled:s,contentId:Bh(),open:u,onOpenToggle:r.useCallback((()=>d((e=>!e))),[d]),children:e(_h.div,{"data-state":em(u),"data-disabled":s?"":void 0,...c,ref:n})})}));Xh.displayName=$h;var qh="CollapsibleTrigger",Yh=r.forwardRef(((t,n)=>{const{__scopeCollapsible:r,...o}=t,i=Gh(qh,r);return e(_h.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":em(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:n,onClick:Ih(t.onClick,i.onOpenToggle)})}));Yh.displayName=qh;var Zh="CollapsibleContent",Qh=r.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=Gh(Zh,t.__scopeCollapsible);return e(Vh,{present:r||i.open,children:({present:t})=>e(Jh,{...o,ref:n,present:t})})}));Qh.displayName=Zh;var Jh=r.forwardRef(((t,n)=>{const{__scopeCollapsible:o,present:i,children:a,...s}=t,l=Gh(Zh,o),[c,u]=r.useState(i),d=r.useRef(null),f=Dp(n,d),p=r.useRef(0),h=p.current,m=r.useRef(0),g=m.current,v=l.open||c,b=r.useRef(v),w=r.useRef(void 0);return r.useEffect((()=>{const e=requestAnimationFrame((()=>b.current=!1));return()=>cancelAnimationFrame(e)}),[]),Lh((()=>{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,m.current=t.width,b.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),u(i)}}),[l.open,i]),e(_h.div,{"data-state":em(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!v,...s,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style},children:v&&a})}));function em(e){return e?"open":"closed"}const tm=Xh,nm=Yh,rm=Qh;function om(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function im(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function am(...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 o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function sm(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}function lm({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:t}){const n=r.useState(e),[o]=n,i=r.useRef(o),a=sm(t);return r.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:o,l=sm(n);return[s,r.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[a,e,i,l])]}var cm=r.forwardRef(((t,n)=>{const{children:o,...i}=t,a=r.Children.toArray(o),s=a.find(fm);if(s){const t=s.props.children,o=a.map((e=>e===s?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(um,{...i,ref:n,children:r.isValidElement(t)?r.cloneElement(t,void 0,o):null})}return e(um,{...i,ref:n,children:o})}));cm.displayName="Slot";var um=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.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 r.cloneElement(n,{...pm(o,n.props),ref:t?im(t,e):e})}return r.Children.count(n)>1?r.Children.only(null):null}));um.displayName="SlotClone";var dm=({children:t})=>e(n,{children:t});function fm(e){return r.isValidElement(e)&&e.type===dm}function pm(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 hm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const o=r.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?cm:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(a,{...i,ref:r})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{});function mm(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function gm(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;function l(n){const{scope:o,children:i,...l}=n,c=o?.[t][s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})}return o=[...o,i],l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t][s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},vm(i,...n)]}function vm(...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 o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function bm(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function wm(...e){return r.useCallback(bm(...e),e)}var ym=r.forwardRef(((t,n)=>{const{children:o,...i}=t,a=r.Children.toArray(o),s=a.find(Sm);if(s){const t=s.props.children,o=a.map((e=>e===s?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(xm,{...i,ref:n,children:r.isValidElement(t)?r.cloneElement(t,void 0,o):null})}return e(xm,{...i,ref:n,children:o})}));ym.displayName="Slot";var xm=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.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 r.cloneElement(n,{...km(o,n.props),ref:t?bm(t,e):e})}return r.Children.count(n)>1?r.Children.only(null):null}));xm.displayName="SlotClone";var Cm=({children:t})=>e(n,{children:t});function Sm(e){return r.isValidElement(e)&&e.type===Cm}function km(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 Em(t){const n=t+"CollectionProvider",[r,i]=gm(n),[a,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=t=>{const{scope:n,children:r}=t,i=o.useRef(null),s=o.useRef(new Map).current;return e(a,{scope:n,itemMap:s,collectionRef:i,children:r})};l.displayName=n;const c=t+"CollectionSlot",u=o.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=wm(n,s(c,r).collectionRef);return e(ym,{ref:i,children:o})}));u.displayName=c;const d=t+"CollectionItemSlot",f="data-radix-collection-item",p=o.forwardRef(((t,n)=>{const{scope:r,children:i,...a}=t,l=o.useRef(null),c=wm(n,l),u=s(d,r);return o.useEffect((()=>(u.itemMap.set(l,{ref:l,...a}),()=>{u.itemMap.delete(l)}))),e(ym,{[f]:"",ref:c,children:i})}));return p.displayName=d,[{Provider:l,Slot:u,ItemSlot:p},function(e){const n=s(t+"CollectionConsumer",e),r=o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},i]}var Pm=r.createContext(void 0);function Nm(e){const t=r.useContext(Pm);return e||t||"ltr"}var Rm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const o=r.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?ym:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(a,{...i,ref:r})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{});function Mm(e,t){e&&R.flushSync((()=>e.dispatchEvent(t)))}function Am(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}var Tm,Im="dismissableLayer.update",Om="dismissableLayer.pointerDownOutside",Lm="dismissableLayer.focusOutside",Dm=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fm=r.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=t,d=r.useContext(Dm),[f,p]=r.useState(null),h=f?.ownerDocument??globalThis?.document,[,m]=r.useState({}),g=wm(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=Am(e),o=r.useRef(!1),i=r.useRef((()=>{}));return r.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let r=function(){zm(Om,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);o.current=!1},r=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(a?.(e),l?.(e),e.defaultPrevented||c?.())}),h),k=function(e,t=globalThis?.document){const n=Am(e),o=r.useRef(!1);return r.useEffect((()=>{const e=e=>{if(e.target&&!o.current){zm(Lm,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(s?.(e),l?.(e),e.defaultPrevented||c?.())}),h);return function(e,t=globalThis?.document){const n=Am(e);r.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&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),h),r.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Tm=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Vm(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Tm)}}),[f,h,o,d]),r.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Vm())}),[f,d]),r.useEffect((()=>{const e=()=>m({});return document.addEventListener(Im,e),()=>document.removeEventListener(Im,e)}),[]),e(Rm.div,{...u,ref:g,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:mm(t.onFocusCapture,k.onFocusCapture),onBlurCapture:mm(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:mm(t.onPointerDownCapture,S.onPointerDownCapture)})}));Fm.displayName="DismissableLayer";var _m=r.forwardRef(((t,n)=>{const o=r.useContext(Dm),i=r.useRef(null),a=wm(n,i);return r.useEffect((()=>{const e=i.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}}),[o.branches]),e(Rm.div,{...t,ref:a})}));function Vm(){const e=new CustomEvent(Im);document.dispatchEvent(e)}function zm(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?Mm(o,i):o.dispatchEvent(i)}_m.displayName="DismissableLayerBranch";var jm=0;function Hm(){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 Bm="focusScope.autoFocusOnMount",$m="focusScope.autoFocusOnUnmount",Wm={bubbles:!1,cancelable:!0},Um=r.forwardRef(((t,n)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=t,[c,u]=r.useState(null),d=Am(a),f=Am(s),p=r.useRef(null),h=wm(n,(e=>u(e))),m=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect((()=>{if(i){let e=function(e){if(m.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:qm(p.current,{select:!0})},t=function(e){if(m.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||qm(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&qm(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()}}}),[i,c,m.paused]),r.useEffect((()=>{if(c){Ym.add(m);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(Bm,Wm);c.addEventListener(Bm,d),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(qm(r,{select:t}),document.activeElement!==n)return}((e=Km(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&qm(c))}return()=>{c.removeEventListener(Bm,d),setTimeout((()=>{const e=new CustomEvent($m,Wm);c.addEventListener($m,f),c.dispatchEvent(e),e.defaultPrevented||qm(t??document.body,{select:!0}),c.removeEventListener($m,f),Ym.remove(m)}),0)}}var e}),[c,d,f,m]);const g=r.useCallback((e=>{if(!o&&!i)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,i]=function(e){const t=Km(e),n=Gm(t,e),r=Gm(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||n!==i?e.shiftKey&&n===r&&(e.preventDefault(),o&&qm(i,{select:!0})):(e.preventDefault(),o&&qm(r,{select:!0})):n===t&&e.preventDefault()}}),[o,i,m.paused]);return e(Rm.div,{tabIndex:-1,...l,ref:h,onKeyDown:g})}));function Km(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 Gm(e,t){for(const n of e)if(!Xm(n,{upTo:t}))return n}function Xm(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 qm(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()}}Um.displayName="FocusScope";var Ym=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Zm(e,t),e.unshift(t)},remove(t){e=Zm(e,t),e[0]?.resume()}}}();function Zm(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Qm=Boolean(globalThis?.document)?r.useLayoutEffect:()=>{},Jm=r["useId".toString()]||(()=>{}),eg=0;function tg(e){const[t,n]=r.useState(Jm());return Qm((()=>{n((e=>e??String(eg++)))}),[e]),t?`radix-${t}`:""}var ng="undefined"!=typeof document?b:g;function rg(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(!rg(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)&&!rg(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function og(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ig(e,t){const n=og(e);return Math.round(t*n)/n}function ag(e){const t=r.useRef(e);return ng((()=>{t.current=e})),t}function sg(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);rg(p,o)||h(o);const[m,g]=r.useState(null),[v,b]=r.useState(null),w=r.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),y=r.useCallback((e=>{e!==k.current&&(k.current=e,b(e))}),[]),x=a||m,C=s||v,S=r.useRef(null),k=r.useRef(null),E=r.useRef(d),P=null!=c,N=ag(c),M=ag(i),A=r.useCallback((()=>{if(!S.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};M.current&&(e.platform=M.current),Kl(S.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!rg(E.current,t)&&(E.current=t,R.flushSync((()=>{f(t)})))}))}),[p,t,n,M]);ng((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const T=r.useRef(!1);ng((()=>(T.current=!0,()=>{T.current=!1})),[]),ng((()=>{if(x&&(S.current=x),C&&(k.current=C),x&&C){if(N.current)return N.current(x,C,A);A()}}),[x,C,A,N,P]);const I=r.useMemo((()=>({reference:S,floating:k,setReference:w,setFloating:y})),[w,y]),O=r.useMemo((()=>({reference:x,floating:C})),[x,C]),L=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=ig(O.floating,d.x),r=ig(O.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...og(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,O.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:A,refs:I,elements:O,floatingStyles:L})),[d,A,I,O,L])}const lg=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?Wl({element:n.current,padding:r}).fn(t):{}:n?Wl({element:n,padding:r}).fn(t):{};var o}}),cg=(e,t)=>({...zl(e),options:[e,t]}),ug=(e,t)=>({...jl(e),options:[e,t]}),dg=(e,t)=>({...Ul(e),options:[e,t]}),fg=(e,t)=>({...Hl(e),options:[e,t]}),pg=(e,t)=>({...Bl(e),options:[e,t]}),hg=(e,t)=>({...$l(e),options:[e,t]}),mg=(e,t)=>({...lg(e),options:[e,t]});var gg=r.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e(Rm.svg,{...a,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e("polygon",{points:"0,0 30,0 15,10"})})}));gg.displayName="Arrow";var vg=gg;var bg="Popper",[wg,yg]=gm(bg),[xg,Cg]=wg(bg),Sg=t=>{const{__scopePopper:n,children:o}=t,[i,a]=r.useState(null);return e(xg,{scope:n,anchor:i,onAnchorChange:a,children:o})};Sg.displayName=bg;var kg="PopperAnchor",Eg=r.forwardRef(((t,n)=>{const{__scopePopper:o,virtualRef:i,...a}=t,s=Cg(kg,o),l=r.useRef(null),c=wm(n,l);return r.useEffect((()=>{s.onAnchorChange(i?.current||l.current)})),i?null:e(Rm.div,{...a,ref:c})}));Eg.displayName=kg;var Pg="PopperContent",[Ng,Rg]=wg(Pg),Mg=r.forwardRef(((t,n)=>{const{__scopePopper:o,side:i="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...v}=t,b=Cg(Pg,o),[w,y]=r.useState(null),x=wm(n,(e=>y(e))),[C,S]=r.useState(null),k=function(e){const[t,n]=r.useState(void 0);return Qm((()=>{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,P=k?.height??0,N=i+("center"!==s?"-"+s:""),R="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(d)?d:[d],A=M.length>0,T={padding:R,boundary:M.filter(Og),altBoundary:A},{refs:I,floatingStyles:O,placement:L,isPositioned:D,middlewareData:F}=sg({strategy:"fixed",placement:N,whileElementsMounted:(...e)=>_l(...e,{animationFrame:"always"===m}),elements:{reference:b.anchor},middleware:[cg({mainAxis:a+P,alignmentAxis:l}),u&&ug({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?dg():void 0,...T}),u&&fg({...T}),pg({...T,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&&mg({element:C,padding:c}),Lg({arrowWidth:E,arrowHeight:P}),h&&hg({strategy:"referenceHidden",...T})]}),[_,V]=Dg(L),z=Am(g);Qm((()=>{D&&z?.()}),[D,z]);const j=F.arrow?.x,H=F.arrow?.y,B=0!==F.arrow?.centerOffset,[$,W]=r.useState();return Qm((()=>{w&&W(window.getComputedStyle(w).zIndex)}),[w]),e("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:D?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e(Ng,{scope:o,placedSide:_,onArrowChange:S,arrowX:j,arrowY:H,shouldHideArrow:B,children:e(Rm.div,{"data-side":_,"data-align":V,...v,ref:x,style:{...v.style,animation:D?void 0:"none"}})})})}));Mg.displayName=Pg;var Ag="PopperArrow",Tg={top:"bottom",right:"left",bottom:"top",left:"right"},Ig=r.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=Rg(Ag,r),a=Tg[i.placedSide];return e("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(vg,{...o,ref:n,style:{...o.style,display:"block"}})})}));function Og(e){return null!==e}Ig.displayName=Ag;var Lg=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]=Dg(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="",h="";return"bottom"===l?(p=i?u:`${d}px`,h=-s+"px"):"top"===l?(p=i?u:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",h=i?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=i?u:`${f}px`),{data:{x:p,y:h}}}});function Dg(e){const[t,n="center"]=e.split("-");return[t,n]}var Fg=Sg,_g=Eg,Vg=Mg,zg=Ig,jg=r.forwardRef(((t,n)=>{const{container:o,...i}=t,[a,s]=r.useState(!1);Qm((()=>s(!0)),[]);const l=o||a&&globalThis?.document?.body;return l?M.createPortal(e(Rm.div,{...i,ref:n}),l):null}));jg.displayName="Portal";var Hg=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=r.useState(),o=r.useRef({}),i=r.useRef(e),a=r.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return r.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 r.useEffect((()=>{const e=Bg(o.current);a.current="mounted"===l?e:"none"}),[l]),Qm((()=>{const t=o.current,n=i.current;if(n!==e){const r=a.current,o=Bg(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),Qm((()=>{if(t){const e=e=>{const n=Bg(o.current).includes(e.animationName);e.target===t&&n&&R.flushSync((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=Bg(o.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)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:r.useCallback((e=>{e&&(o.current=getComputedStyle(e)),n(e)}),[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=wm(o.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}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:a}):null};function Bg(e){return e?.animationName||"none"}function $g({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:t}){const n=r.useState(e),[o]=n,i=r.useRef(o),a=Am(t);return r.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:o,l=Am(n);return[s,r.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[a,e,i,l])]}Hg.displayName="Presence";var Wg="rovingFocusGroup.onEntryFocus",Ug={bubbles:!1,cancelable:!0},Kg="RovingFocusGroup",[Gg,Xg,qg]=Em(Kg),[Yg,Zg]=gm(Kg,[qg]),[Qg,Jg]=Yg(Kg),ev=r.forwardRef(((t,n)=>e(Gg.Provider,{scope:t.__scopeRovingFocusGroup,children:e(Gg.Slot,{scope:t.__scopeRovingFocusGroup,children:e(tv,{...t,ref:n})})})));ev.displayName=Kg;var tv=r.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:a=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=t,h=r.useRef(null),m=wm(n,h),g=Nm(s),[v=null,b]=$g({prop:l,defaultProp:c,onChange:u}),[w,y]=r.useState(!1),x=Am(d),C=Xg(o),S=r.useRef(!1),[k,E]=r.useState(0);return r.useEffect((()=>{const e=h.current;if(e)return e.addEventListener(Wg,x),()=>e.removeEventListener(Wg,x)}),[x]),e(Qg,{scope:o,orientation:i,dir:g,loop:a,currentTabStopId:v,onItemFocus:r.useCallback((e=>b(e)),[b]),onItemShiftTab:r.useCallback((()=>y(!0)),[]),onFocusableItemAdd:r.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:r.useCallback((()=>E((e=>e-1))),[]),children:e(Rm.div,{tabIndex:w||0===k?-1:0,"data-orientation":i,...p,ref:m,style:{outline:"none",...t.style},onMouseDown:mm(t.onMouseDown,(()=>{S.current=!0})),onFocus:mm(t.onFocus,(e=>{const t=!S.current;if(e.target===e.currentTarget&&t&&!w){const t=new CustomEvent(Wg,Ug);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=C().filter((e=>e.focusable));iv([e.find((e=>e.active)),e.find((e=>e.id===v)),...e].filter(Boolean).map((e=>e.ref.current)),f)}}S.current=!1})),onBlur:mm(t.onBlur,(()=>y(!1)))})})})),nv="RovingFocusGroupItem",rv=r.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:a=!1,tabStopId:s,...l}=t,c=tg(),u=s||c,d=Jg(nv,o),f=d.currentTabStopId===u,p=Xg(o),{onFocusableItemAdd:h,onFocusableItemRemove:m}=d;return r.useEffect((()=>{if(i)return h(),()=>m()}),[i,h,m]),e(Gg.ItemSlot,{scope:o,id:u,focusable:i,active:a,children:e(Rm.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:n,onMouseDown:mm(t.onMouseDown,(e=>{i?d.onItemFocus(u):e.preventDefault()})),onFocus:mm(t.onFocus,(()=>d.onItemFocus(u))),onKeyDown:mm(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:ov[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((()=>iv(o)))}var n,r}))})})}));rv.displayName=nv;var ov={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function iv(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 av=ev,sv=rv,lv=["Enter"," "],cv=["ArrowUp","PageDown","End"],uv=["ArrowDown","PageUp","Home",...cv],dv={ltr:[...lv,"ArrowRight"],rtl:[...lv,"ArrowLeft"]},fv={ltr:["ArrowLeft"],rtl:["ArrowRight"]},pv="Menu",[hv,mv,gv]=Em(pv),[vv,bv]=gm(pv,[gv,yg,Zg]),wv=yg(),yv=Zg(),[xv,Cv]=vv(pv),[Sv,kv]=vv(pv),Ev=t=>{const{__scopeMenu:n,open:o=!1,children:i,dir:a,onOpenChange:s,modal:l=!0}=t,c=wv(n),[u,d]=r.useState(null),f=r.useRef(!1),p=Am(s),h=Nm(a);return r.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(Fg,{...c,children:e(xv,{scope:n,open:o,onOpenChange:p,content:u,onContentChange:d,children:e(Sv,{scope:n,onClose:r.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:f,dir:h,modal:l,children:i})})})};Ev.displayName=pv;var Pv=r.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t,i=wv(r);return e(_g,{...i,...o,ref:n})}));Pv.displayName="MenuAnchor";var Nv="MenuPortal",[Rv,Mv]=vv(Nv,{forceMount:void 0}),Av=t=>{const{__scopeMenu:n,forceMount:r,children:o,container:i}=t,a=Cv(Nv,n);return e(Rv,{scope:n,forceMount:r,children:e(Hg,{present:r||a.open,children:e(jg,{asChild:!0,container:i,children:o})})})};Av.displayName=Nv;var Tv="MenuContent",[Iv,Ov]=vv(Tv),Lv=r.forwardRef(((t,n)=>{const r=Mv(Tv,t.__scopeMenu),{forceMount:o=r.forceMount,...i}=t,a=Cv(Tv,t.__scopeMenu),s=kv(Tv,t.__scopeMenu);return e(hv.Provider,{scope:t.__scopeMenu,children:e(Hg,{present:o||a.open,children:e(hv.Slot,{scope:t.__scopeMenu,children:s.modal?e(Dv,{...i,ref:n}):e(Fv,{...i,ref:n})})})})})),Dv=r.forwardRef(((t,n)=>{const o=Cv(Tv,t.__scopeMenu),i=r.useRef(null),a=wm(n,i);return r.useEffect((()=>{const e=i.current;if(e)return wf(e)}),[]),e(_v,{...t,ref:a,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:mm(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})})),Fv=r.forwardRef(((t,n)=>{const r=Cv(Tv,t.__scopeMenu);return e(_v,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})})),_v=r.forwardRef(((t,n)=>{const{__scopeMenu:o,loop:i=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...v}=t,b=Cv(Tv,o),w=kv(Tv,o),y=wv(o),x=yv(o),C=mv(o),[S,k]=r.useState(null),E=r.useRef(null),P=wm(n,E,b.onContentChange),N=r.useRef(0),R=r.useRef(""),M=r.useRef(0),A=r.useRef(null),T=r.useRef("right"),I=r.useRef(0),O=g?ff:r.Fragment,L=g?{as:ym,allowPinchZoom:!0}:void 0,D=e=>{const t=R.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){R.current=t,window.clearTimeout(N.current),""!==t&&(N.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))};r.useEffect((()=>()=>window.clearTimeout(N.current)),[]),r.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Hm()),document.body.insertAdjacentElement("beforeend",e[1]??Hm()),jm++,()=>{1===jm&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),jm--}}),[]);const F=r.useCallback((e=>T.current===A.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,A.current?.area)),[]);return e(Iv,{scope:o,searchRef:R,onItemEnter:r.useCallback((e=>{F(e)&&e.preventDefault()}),[F]),onItemLeave:r.useCallback((e=>{F(e)||(E.current?.focus(),k(null))}),[F]),onTriggerLeave:r.useCallback((e=>{F(e)&&e.preventDefault()}),[F]),pointerGraceTimerRef:M,onPointerGraceIntentChange:r.useCallback((e=>{A.current=e}),[]),children:e(O,{...L,children:e(Um,{asChild:!0,trapped:a,onMountAutoFocus:mm(s,(e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:l,children:e(Fm,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:m,children:e(av,{asChild:!0,...x,dir:w.dir,orientation:"vertical",loop:i,currentTabStopId:S,onCurrentTabStopIdChange:k,onEntryFocus:mm(u,(e=>{w.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:e(Vg,{role:"menu","aria-orientation":"vertical","data-state":db(b.open),"data-radix-menu-content":"",dir:w.dir,...y,...v,ref:P,style:{outline:"none",...v.style},onKeyDown:mm(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&&D(e.key));const o=E.current;if(e.target!==o)return;if(!uv.includes(e.key))return;e.preventDefault();const i=C().filter((e=>!e.disabled)).map((e=>e.ref.current));cv.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:mm(t.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(N.current),R.current="")})),onPointerMove:mm(t.onPointerMove,hb((e=>{const t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>I.current?"right":"left";T.current=t,I.current=e.clientX}})))})})})})})})}));Lv.displayName=Tv;var Vv=r.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t;return e(Rm.div,{role:"group",...o,ref:n})}));Vv.displayName="MenuGroup";var zv=r.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t;return e(Rm.div,{...o,ref:n})}));zv.displayName="MenuLabel";var jv="MenuItem",Hv="menu.itemSelect",Bv=r.forwardRef(((t,n)=>{const{disabled:o=!1,onSelect:i,...a}=t,s=r.useRef(null),l=kv(jv,t.__scopeMenu),c=Ov(jv,t.__scopeMenu),u=wm(n,s),d=r.useRef(!1);return e($v,{...a,ref:u,disabled:o,onClick:mm(t.onClick,(()=>{const e=s.current;if(!o&&e){const t=new CustomEvent(Hv,{bubbles:!0,cancelable:!0});e.addEventListener(Hv,(e=>i?.(e)),{once:!0}),Mm(e,t),t.defaultPrevented?d.current=!1:l.onClose()}})),onPointerDown:e=>{t.onPointerDown?.(e),d.current=!0},onPointerUp:mm(t.onPointerUp,(e=>{d.current||e.currentTarget?.click()})),onKeyDown:mm(t.onKeyDown,(e=>{const t=""!==c.searchRef.current;o||t&&" "===e.key||lv.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));Bv.displayName=jv;var $v=r.forwardRef(((t,n)=>{const{__scopeMenu:o,disabled:i=!1,textValue:a,...s}=t,l=Ov(jv,o),c=yv(o),u=r.useRef(null),d=wm(n,u),[f,p]=r.useState(!1),[h,m]=r.useState("");return r.useEffect((()=>{const e=u.current;e&&m((e.textContent??"").trim())}),[s.children]),e(hv.ItemSlot,{scope:o,disabled:i,textValue:a??h,children:e(sv,{asChild:!0,...c,focusable:!i,children:e(Rm.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...s,ref:d,onPointerMove:mm(t.onPointerMove,hb((e=>{if(i)l.onItemLeave(e);else if(l.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:mm(t.onPointerLeave,hb((e=>l.onItemLeave(e)))),onFocus:mm(t.onFocus,(()=>p(!0))),onBlur:mm(t.onBlur,(()=>p(!1)))})})})})),Wv=r.forwardRef(((t,n)=>{const{checked:r=!1,onCheckedChange:o,...i}=t;return e(Qv,{scope:t.__scopeMenu,checked:r,children:e(Bv,{role:"menuitemcheckbox","aria-checked":fb(r)?"mixed":r,...i,ref:n,"data-state":pb(r),onSelect:mm(i.onSelect,(()=>o?.(!!fb(r)||!r)),{checkForDefaultPrevented:!1})})})}));Wv.displayName="MenuCheckboxItem";var Uv="MenuRadioGroup",[Kv,Gv]=vv(Uv,{value:void 0,onValueChange:()=>{}}),Xv=r.forwardRef(((t,n)=>{const{value:r,onValueChange:o,...i}=t,a=Am(o);return e(Kv,{scope:t.__scopeMenu,value:r,onValueChange:a,children:e(Vv,{...i,ref:n})})}));Xv.displayName=Uv;var qv="MenuRadioItem",Yv=r.forwardRef(((t,n)=>{const{value:r,...o}=t,i=Gv(qv,t.__scopeMenu),a=r===i.value;return e(Qv,{scope:t.__scopeMenu,checked:a,children:e(Bv,{role:"menuitemradio","aria-checked":a,...o,ref:n,"data-state":pb(a),onSelect:mm(o.onSelect,(()=>i.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));Yv.displayName=qv;var Zv="MenuItemIndicator",[Qv,Jv]=vv(Zv,{checked:!1}),eb=r.forwardRef(((t,n)=>{const{__scopeMenu:r,forceMount:o,...i}=t,a=Jv(Zv,r);return e(Hg,{present:o||fb(a.checked)||!0===a.checked,children:e(Rm.span,{...i,ref:n,"data-state":pb(a.checked)})})}));eb.displayName=Zv;var tb=r.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t;return e(Rm.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})}));tb.displayName="MenuSeparator";var nb=r.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t,i=wv(r);return e(zg,{...i,...o,ref:n})}));nb.displayName="MenuArrow";var rb="MenuSub",[ob,ib]=vv(rb),ab=t=>{const{__scopeMenu:n,children:o,open:i=!1,onOpenChange:a}=t,s=Cv(rb,n),l=wv(n),[c,u]=r.useState(null),[d,f]=r.useState(null),p=Am(a);return r.useEffect((()=>(!1===s.open&&p(!1),()=>p(!1))),[s.open,p]),e(Fg,{...l,children:e(xv,{scope:n,open:i,onOpenChange:p,content:d,onContentChange:f,children:e(ob,{scope:n,contentId:tg(),triggerId:tg(),trigger:c,onTriggerChange:u,children:o})})})};ab.displayName=rb;var sb="MenuSubTrigger",lb=r.forwardRef(((t,n)=>{const o=Cv(sb,t.__scopeMenu),i=kv(sb,t.__scopeMenu),a=ib(sb,t.__scopeMenu),s=Ov(sb,t.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=s,d={__scopeMenu:t.__scopeMenu},f=r.useCallback((()=>{l.current&&window.clearTimeout(l.current),l.current=null}),[]);return r.useEffect((()=>f),[f]),r.useEffect((()=>{const e=c.current;return()=>{window.clearTimeout(e),u(null)}}),[c,u]),e(Pv,{asChild:!0,...d,children:e($v,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":a.contentId,"data-state":db(o.open),...t,ref:bm(n,a.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:mm(t.onPointerMove,hb((e=>{s.onItemEnter(e),e.defaultPrevented||t.disabled||o.open||l.current||(s.onPointerGraceIntentChange(null),l.current=window.setTimeout((()=>{o.onOpenChange(!0),f()}),100))}))),onPointerLeave:mm(t.onPointerLeave,hb((e=>{f();const t=o.content?.getBoundingClientRect();if(t){const n=o.content?.dataset.side,r="right"===n,i=r?-5:5,a=t[r?"left":"right"],l=t[r?"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:mm(t.onKeyDown,(e=>{const n=""!==s.searchRef.current;t.disabled||n&&" "===e.key||dv[i.dir].includes(e.key)&&(o.onOpenChange(!0),o.content?.focus(),e.preventDefault())}))})})}));lb.displayName=sb;var cb="MenuSubContent",ub=r.forwardRef(((t,n)=>{const o=Mv(Tv,t.__scopeMenu),{forceMount:i=o.forceMount,...a}=t,s=Cv(Tv,t.__scopeMenu),l=kv(Tv,t.__scopeMenu),c=ib(cb,t.__scopeMenu),u=r.useRef(null),d=wm(n,u);return e(hv.Provider,{scope:t.__scopeMenu,children:e(Hg,{present:i||s.open,children:e(hv.Slot,{scope:t.__scopeMenu,children:e(_v,{id:c.contentId,"aria-labelledby":c.triggerId,...a,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:mm(t.onFocusOutside,(e=>{e.target!==c.trigger&&s.onOpenChange(!1)})),onEscapeKeyDown:mm(t.onEscapeKeyDown,(e=>{l.onClose(),e.preventDefault()})),onKeyDown:mm(t.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=fv[l.dir].includes(e.key);t&&n&&(s.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())}))})})})})}));function db(e){return e?"open":"closed"}function fb(e){return"indeterminate"===e}function pb(e){return fb(e)?"indeterminate":e?"checked":"unchecked"}function hb(e){return t=>"mouse"===t.pointerType?e(t):void 0}ub.displayName=cb;var mb=Ev,gb=Pv,vb=Av,bb=Lv,wb=Vv,yb=zv,xb=Bv,Cb=Wv,Sb=Xv,kb=Yv,Eb=eb,Pb=tb,Nb=nb,Rb=ab,Mb=lb,Ab=ub,Tb=Boolean(globalThis?.document)?r.useLayoutEffect:()=>{},Ib=r["useId".toString()]||(()=>{}),Ob=0;function Lb(e){const[t,n]=r.useState(Ib());return Tb((()=>{n((e=>e??String(Ob++)))}),[e]),e||(t?`radix-${t}`:"")}var Db="DropdownMenu",[Fb,_b]=function(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;function l(n){const{scope:o,children:i,...l}=n,c=o?.[t][s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})}return o=[...o,i],l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t][s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},am(i,...n)]}(Db,[bv]),Vb=bv(),[zb,jb]=Fb(Db),Hb=t=>{const{__scopeDropdownMenu:n,children:o,dir:i,open:a,defaultOpen:s,onOpenChange:l,modal:c=!0}=t,u=Vb(n),d=r.useRef(null),[f=!1,p]=lm({prop:a,defaultProp:s,onChange:l});return e(zb,{scope:n,triggerId:Lb(),triggerRef:d,contentId:Lb(),open:f,onOpenChange:p,onOpenToggle:r.useCallback((()=>p((e=>!e))),[p]),modal:c,children:e(mb,{...u,open:f,onOpenChange:p,dir:i,modal:c,children:o})})};Hb.displayName=Db;var Bb="DropdownMenuTrigger",$b=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,disabled:o=!1,...i}=t,a=jb(Bb,r),s=Vb(r);return e(gb,{asChild:!0,...s,children:e(hm.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:im(n,a.triggerRef),onPointerDown:om(t.onPointerDown,(e=>{o||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())})),onKeyDown:om(t.onKeyDown,(e=>{o||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));$b.displayName=Bb;var Wb=t=>{const{__scopeDropdownMenu:n,...r}=t,o=Vb(n);return e(vb,{...o,...r})};Wb.displayName="DropdownMenuPortal";var Ub="DropdownMenuContent",Kb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:o,...i}=t,a=jb(Ub,o),s=Vb(o),l=r.useRef(!1);return e(bb,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...i,ref:n,onCloseAutoFocus:om(t.onCloseAutoFocus,(e=>{l.current||a.triggerRef.current?.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:om(t.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.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)"}})}));Kb.displayName=Ub;var Gb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Vb(r);return e(wb,{...i,...o,ref:n})}));Gb.displayName="DropdownMenuGroup";var Xb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Vb(r);return e(yb,{...i,...o,ref:n})}));Xb.displayName="DropdownMenuLabel";var qb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Vb(r);return e(xb,{...i,...o,ref:n})}));qb.displayName="DropdownMenuItem";var Yb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Vb(r);return e(Cb,{...i,...o,ref:n})}));Yb.displayName="DropdownMenuCheckboxItem";var Zb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Vb(r);return e(Sb,{...i,...o,ref:n})}));Zb.displayName="DropdownMenuRadioGroup";var Qb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Vb(r);return e(kb,{...i,...o,ref:n})}));Qb.displayName="DropdownMenuRadioItem";var Jb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Vb(r);return e(Eb,{...i,...o,ref:n})}));Jb.displayName="DropdownMenuItemIndicator";var ew=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Vb(r);return e(Pb,{...i,...o,ref:n})}));ew.displayName="DropdownMenuSeparator";var tw=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Vb(r);return e(Nb,{...i,...o,ref:n})}));tw.displayName="DropdownMenuArrow";var nw=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Vb(r);return e(Mb,{...i,...o,ref:n})}));nw.displayName="DropdownMenuSubTrigger";var rw=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Vb(r);return e(Ab,{...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)"}})}));rw.displayName="DropdownMenuSubContent";var ow=Wb,iw=Kb,aw=Xb,sw=qb,lw=Yb,cw=Qb,uw=Jb,dw=ew,fw=t=>{const{__scopeDropdownMenu:n,children:r,open:o,onOpenChange:i,defaultOpen:a}=t,s=Vb(n),[l=!1,c]=lm({prop:o,defaultProp:a,onChange:i});return e(Rb,{...s,open:l,onOpenChange:c,children:r})},pw=nw,hw=rw;const mw=Hb,gw=$b,vw=Gb,bw=ow,ww=fw,yw=Zb,xw=r.forwardRef((({className:n="",inset:r,children:o,...i},a)=>t(pw,{ref:a,className:an("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",r?"pl-8":"",n),...i,children:[o,e(Yp,{className:"ml-auto h-4 w-4"})]})));xw.displayName=pw.displayName;const Cw=r.forwardRef((({className:t="",...n},r)=>e(hw,{ref:r,className:an("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})));Cw.displayName=hw.displayName;const Sw=r.forwardRef((({className:t="",sideOffset:n=4,...r},o)=>e(ow,{children:e(iw,{ref:o,sideOffset:n,className:an("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})})));Sw.displayName=iw.displayName;const kw=r.forwardRef((({className:t="",inset:n,...r},o)=>e(sw,{ref:o,className:an("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})));kw.displayName=sw.displayName;const Ew=r.forwardRef((({className:n="",children:r,checked:o,...i},a)=>t(lw,{ref:a,className:an("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",n),checked:o,...i,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(uw,{children:e(Gp,{className:"h-4 w-4"})})}),r]})));Ew.displayName=lw.displayName;const Pw=r.forwardRef((({className:n="",children:r,...o},i)=>t(cw,{ref:i,className:an(n,"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"),...o,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(uw,{children:e(Zp,{className:"h-2 w-2 fill-current"})})}),r]})));Pw.displayName=cw.displayName;const Nw=r.forwardRef((({className:t="",inset:n,...r},o)=>e(aw,{ref:o,className:an("px-2 py-1.5 text-sm font-semibold text-gray-900 dark:text-gray-300",n?"pl-8":"",t),...r})));Nw.displayName=aw.displayName;const Rw=r.forwardRef((({className:t="",...n},r)=>e(dw,{ref:r,className:an("-mx-1 my-1 h-px bg-border-medium",t),...n})));Rw.displayName=dw.displayName;const Mw=({className:t="",...n})=>e("span",{className:an("ml-auto text-xs tracking-widest text-gray-500",t),...n});function Aw({column:n,title:r,className:o=""}){return n.getCanSort()?e("div",{className:an("flex items-center space-x-2",o),children:t(mw,{children:[e(gw,{asChild:!0,children:t(vh,{variant:"ghost",size:"sm",className:"-ml-3 h-8 data-[state=open]:bg-accent",children:[e("span",{children:r}),"desc"===n.getIsSorted()?e(rt,{className:"ml-2 h-4 w-4"}):"asc"===n.getIsSorted()?e(it,{className:"ml-2 h-4 w-4"}):e(st,{className:"ml-2 h-4 w-4"})]})}),t(Sw,{align:"start",className:"z-[1001]",children:[t(kw,{onClick:()=>n.toggleSorting(!1),children:[e(it,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Asc"]}),t(kw,{onClick:()=>n.toggleSorting(!0),children:[e(rt,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Desc"]}),e(Rw,{}),t(kw,{onClick:()=>n.toggleVisibility(!1),children:[e(mt,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Hide"]})]})]})}):e("div",{className:an(o),children:r})}var Tw;Mw.displayName="DropdownMenuShortcut",function(e){e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(Tw||(Tw={}));const Iw=O("en"),Ow=O("ltr"),Lw=O("text-base"),Dw=O({open:!1,message:"",severity:Tw.SUCCESS,showIcon:!0}),Fw=i({theme:"light",setTheme:()=>{}}),_w=({initialTheme:t,children:n})=>{const[r,o]=v((()=>t??ln())),i=L(Lw);return g((()=>{const e=document.documentElement,t="system"===r?window.matchMedia("(prefers-color-scheme: dark)").matches:"dark"===r;e.classList.toggle("dark",t),e.classList.toggle("light",!t),localStorage.setItem("color-theme",r)}),[r]),g((()=>{if("system"!==r)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)}),[r]),g((()=>{const e=localStorage.getItem("fontSize")||"text-base";sn(e),i(e)}),[i]),e(Fw.Provider,{value:{theme:r,setTheme:o},children:n})};function Vw(e=100){const[t,n]=D(Dw),r=m(null),o=m(null);g((()=>()=>{null!==r.current&&clearTimeout(r.current),null!==o.current&&clearTimeout(o.current)}),[]);return{toast:t,onOpenChange:e=>n({...t,open:e}),showToast:({message:t,severity:i=Tw.SUCCESS,showIcon:a=!0,duration:s=3e3,status:l})=>{null!==r.current&&clearTimeout(r.current),null!==o.current&&clearTimeout(o.current),r.current=window.setTimeout((()=>{n({open:!0,message:t,severity:l??i,showIcon:a}),o.current=window.setTimeout((()=>{n((e=>({...e,open:!1})))}),s)}),e)}}}var zw={exports:{}},jw={"À":"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","й":"и","Й":"И","ё":"е","Ё":"Е"},Hw=Object.keys(jw).join("|"),Bw=new RegExp(Hw,"g"),$w=new RegExp(Hw,"");function Ww(e){return jw[e]}var Uw=function(e){return e.replace(Bw,Ww)};zw.exports=Uw,zw.exports.has=function(e){return!!e.match($w)},zw.exports.remove=Uw;var Kw=Vo(zw.exports);
27
+ */on.displayName="Breadcrumb";const sn=r.forwardRef(({className:t,...n},r)=>e("ol",{ref:r,className:wt("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...n}));sn.displayName="BreadcrumbList";const ln=r.forwardRef(({className:t,...n},r)=>e("li",{ref:r,className:wt("inline-flex items-center gap-1.5",t),...n}));ln.displayName="BreadcrumbItem";const cn=r.forwardRef(({asChild:t,className:n,...r},a)=>e(t?q:"a",{ref:a,className:wt("transition-colors hover:text-foreground",n),...r}));cn.displayName="BreadcrumbLink";const dn=r.forwardRef(({className:t,...n},r)=>e("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:wt("font-normal text-foreground",t),...n}));dn.displayName="BreadcrumbPage";const un=({children:t,className:n,...r})=>e("li",{role:"presentation","aria-hidden":"true",className:wt("[&>svg]:size-3.5",n),...r,children:t??e(Zt,{})});un.displayName="BreadcrumbSeparator";const hn=({className:n,...r})=>t("span",{role:"presentation","aria-hidden":"true",className:wt("flex h-9 w-9 items-center justify-center",n),...r,children:[e(qt,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"More"})]});hn.displayName="BreadcrumbElipssis";const pn=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,mn=ze,fn=((e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return mn(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:a,defaultVariants:o}=t,i=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 i=pn(t)||pn(r);return a[e][i]}),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,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...s}[t]):{...o,...s}[t]===n})?[...e,n,r]:e},[]);return mn(e,i,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"}}),gn=r.forwardRef(({className:t,variant:n,size:r,asChild:a=!1,...o},i)=>e(a?q:"button",{className:wt(fn({variant:n,size:r,className:t})),ref:i,...o}));gn.displayName="Button";const vn=r.forwardRef(({className:t="",...n},r)=>e(K.Root,{ref:r,className:wt("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(K.Indicator,{className:wt("flex items-center justify-center"),children:e(Ut,{className:"h-4 w-4"})})}));vn.displayName=K.Root.displayName;const wn=Q.Root,yn=Q.CollapsibleTrigger,bn=Q.CollapsibleContent,xn=J.Root,kn=J.Trigger,Cn=J.Group,Nn=J.Portal,Sn=J.Sub,Pn=J.RadioGroup,Mn=r.forwardRef(({className:n="",inset:r,children:a,...o},i)=>t(J.SubTrigger,{ref:i,className:wt("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",r?"pl-8":"",n),...o,children:[a,e(Zt,{className:"ml-auto h-4 w-4"})]}));Mn.displayName=J.SubTrigger.displayName;const Ln=r.forwardRef(({className:t="",...n},r)=>e(J.SubContent,{ref:r,className:wt("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}));Ln.displayName=J.SubContent.displayName;const Tn=r.forwardRef(({className:t="",sideOffset:n=4,...r},a)=>e(J.Portal,{children:e(J.Content,{ref:a,sideOffset:n,className:wt("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})}));Tn.displayName=J.Content.displayName;const An=r.forwardRef(({className:t="",inset:n,...r},a)=>e(J.Item,{ref:a,className:wt("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}));An.displayName=J.Item.displayName;const En=r.forwardRef(({className:n="",children:r,checked:a,...o},i)=>t(J.CheckboxItem,{ref:i,className:wt("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",n),checked:a,...o,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(J.ItemIndicator,{children:e(Ut,{className:"h-4 w-4"})})}),r]}));En.displayName=J.CheckboxItem.displayName;const zn=r.forwardRef(({className:n="",children:r,...a},o)=>t(J.RadioItem,{ref:o,className:wt(n,"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"),...a,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(J.ItemIndicator,{children:e(Gt,{className:"h-2 w-2 fill-current"})})}),r]}));zn.displayName=J.RadioItem.displayName;const Rn=r.forwardRef(({className:t="",inset:n,...r},a)=>e(J.Label,{ref:a,className:wt("px-2 py-1.5 text-sm font-semibold text-gray-900 dark:text-gray-300",n?"pl-8":"",t),...r}));Rn.displayName=J.Label.displayName;const Vn=r.forwardRef(({className:t="",...n},r)=>e(J.Separator,{ref:r,className:wt("-mx-1 my-1 h-px bg-border-medium",t),...n}));Vn.displayName=J.Separator.displayName;const In=({className:t="",...n})=>e("span",{className:wt("ml-auto text-xs tracking-widest text-gray-500",t),...n});function Dn({column:n,title:r,className:a=""}){return n.getCanSort()?e("div",{className:wt("flex items-center space-x-2",a),children:t(xn,{children:[e(kn,{asChild:!0,children:t(gn,{variant:"ghost",size:"sm",className:"-ml-3 h-8 data-[state=open]:bg-accent",children:[e("span",{children:r}),"desc"===n.getIsSorted()?e(M,{className:"ml-2 h-4 w-4"}):"asc"===n.getIsSorted()?e(L,{className:"ml-2 h-4 w-4"}):e(T,{className:"ml-2 h-4 w-4"})]})}),t(Tn,{align:"start",className:"z-[1001]",children:[t(An,{onClick:()=>n.toggleSorting(!1),children:[e(L,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Asc"]}),t(An,{onClick:()=>n.toggleSorting(!0),children:[e(M,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Desc"]}),e(Vn,{}),t(An,{onClick:()=>n.toggleVisibility(!1),children:[e(A,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Hide"]})]})]})}):e("div",{className:wt(a),children:r})}var jn;In.displayName="DropdownMenuShortcut",function(e){e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(jn||(jn={}));const On=te("en"),Bn=te("ltr"),Fn=te("text-base"),_n=te({open:!1,message:"",severity:jn.SUCCESS,showIcon:!0}),Hn=c({theme:"light",setTheme:()=>{}}),$n=({initialTheme:t,children:n})=>{const[r,a]=d(()=>t??bt()),o=ne(Fn);return s(()=>{const e=document.documentElement,t="system"===r?window.matchMedia("(prefers-color-scheme: dark)").matches:"dark"===r;e.classList.toggle("dark",t),e.classList.toggle("light",!t),localStorage.setItem("color-theme",r)},[r]),s(()=>{if("system"!==r)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)},[r]),s(()=>{const e=localStorage.getItem("fontSize")||"text-base";yt(e),o(e)},[o]),e(Hn.Provider,{value:{theme:r,setTheme:a},children:n})};function Wn(e=100){const[t,n]=re(_n),r=i(null),a=i(null);s(()=>()=>{null!==r.current&&clearTimeout(r.current),null!==a.current&&clearTimeout(a.current)},[]);return{toast:t,onOpenChange:e=>n({...t,open:e}),showToast:({message:t,severity:o=jn.SUCCESS,showIcon:i=!0,duration:s=3e3,status:l})=>{null!==r.current&&clearTimeout(r.current),null!==a.current&&clearTimeout(a.current),r.current=window.setTimeout(()=>{n({open:!0,message:t,severity:l??o,showIcon:i}),a.current=window.setTimeout(()=>{n(e=>({...e,open:!1}))},s)},e)}}}function Un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xn={exports:{}},Yn={"À":"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","й":"и","Й":"И","ё":"е","Ё":"Е"},Zn=Object.keys(Yn).join("|"),Gn=new RegExp(Zn,"g"),qn=new RegExp(Zn,"");function Kn(e){return Yn[e]}var Qn=function(e){return e.replace(Gn,Kn)};Xn.exports=Qn,Xn.exports.has=function(e){return!!e.match(qn)},Xn.exports.remove=Qn;var Jn=Un(Xn.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 Gw={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},Xw=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function qw(e,t,n){void 0===n&&(n={});const{keys:r,threshold:o=Gw.MATCHES,baseSort:i=Xw,sorter:a=(e=>e.sort(((e,t)=>Zw(e,t,i))))}=n,s=e.reduce((function(e,i,a){const s=function(e,t,n,r){if(!t){return{rankedValue:e,rank:Yw(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=ty(o),a=Jw(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=Yw(c,n,r),f=a;const{minRanking:p,maxRanking:h,threshold:m}=u;return d<p&&d>=Gw.MATCHES?d=p:d>h&&(d=h),d>i&&(i=d,s=o,l=m,f=c),{rankedValue:f,rank:i,keyIndex:s,keyThreshold:l}}),{rankedValue:e,rank:Gw.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 Yw(e,t,n){return e=Qw(e,n),(t=Qw(t,n)).length>e.length?Gw.NO_MATCH:e===t?Gw.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?Gw.EQUAL:e.startsWith(t)?Gw.STARTS_WITH:e.includes(` ${t}`)?Gw.WORD_STARTS_WITH:e.includes(t)?Gw.CONTAINS:1===t.length?Gw.NO_MATCH:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?Gw.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 Gw.MATCHES+o*r}const a=o(t[0],e,0);if(a<0)return Gw.NO_MATCH;r=a;for(let n=1,i=t.length;n<i;n++){r=o(t[n],e,r);if(!(r>-1))return Gw.NO_MATCH}return i(r-a)}(e,t)}function Zw(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 Qw(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=Kw(e)),e}function Jw(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)]}qw.rankings=Gw;const ey={maxRanking:1/0,minRanking:-1/0};function ty(e){return"string"==typeof e?ey:{...ey,...e}}function ny({value:e,options:t}){const[n,r]=v(!1),[o,i]=v(""),s=a((()=>{if(!o)return t;const n=qw(t,o,{keys:["label","value"]}),r=t.find((t=>t.value===e));return r&&!n.includes(r)&&n.push(r),n}),[o,e,t]);return{open:n,setOpen:r,searchValue:o,setSearchValue:i,matches:s}}function ry(){const e=F(Iw),{t:t,i18n:n}=_();return g((()=>{n.language!==e&&n.changeLanguage(e)}),[e,n]),(e,n)=>t(e,n)}function oy(e){const[t,n]=v(!1);return g((()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const o=()=>n(r.matches);return r.addEventListener("change",o),()=>r.removeEventListener("change",o)}),[t,e]),t}const iy=e=>{const[t,n]=v(!0),r=m(null);return g((()=>{if(t){const t=new Promise((t=>{const r=setTimeout((()=>{n(!1),t()}),e);return()=>{clearTimeout(r)}}));r.current=t}return()=>{r.current=null}}),[e,t]),e=>{if(t&&r.current)throw r.current;return e()}};function ay(e,t,n,r){g((()=>{const o=o=>{const i=o.target;i&&"id"in i&&n.includes(i.id)||i?.parentNode&&"id"in i.parentNode&&n.includes(i.parentNode.id)||r&&r(i)||e.current&&!e.current.contains(i)&&t()};return document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}}),[e,t])}const sy=Kf,ly=Gf,cy=({className:t="",children:n,...r})=>e(Xf,{className:an(t),...r,children:e("div",{className:"fixed inset-0 z-[999] flex items-start justify-center sm:items-center",children:n})});cy.displayName=Xf.displayName;const uy=r.forwardRef((({className:t,...n},r)=>e(qf,{className:an("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})));uy.displayName=qf.displayName;const dy=r.forwardRef((({className:n,children:r=!0,showCloseButton:o=!0,disableScroll:i=!1,...a},s)=>{const l=oy("(max-width: 768px)");return t(cy,{children:[e(uy,{}),t(Yf,{ref:s,className:an("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",l?"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":"",i?"overflow-hidden":"",n??""),...a,children:[r,o&&t(Jf,{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(ah,{className:"h-5 w-5 text-black dark:text-white"}),e("span",{className:"sr-only",children:"Close"})]})]})]})}));dy.displayName=Yf.displayName;const fy=({className:t,...n})=>e("div",{className:an("flex flex-col space-y-2 border-b border-black/10 p-6 pb-4 text-left dark:border-white/10",t??""),...n});fy.displayName="DialogHeader";const py=({className:t,...n})=>e("div",{className:an("flex flex-row justify-between space-x-2 px-6 py-4",t??""),...n});py.displayName="DialogFooter";const hy=r.forwardRef((({className:t,...n},r)=>e(Zf,{ref:r,className:an("text-lg font-semibold text-gray-900","dark:text-gray-50",t??""),...n})));hy.displayName=Zf.displayName;const my=r.forwardRef((({className:t,...n},r)=>e(Qf,{ref:r,className:an("text-sm text-gray-500","dark:text-gray-400",t??""),...n})));my.displayName=Qf.displayName;const gy=r.forwardRef((({className:t,...n},r)=>e(Jf,{ref:r,className:an("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})));gy.displayName=Zf.displayName;const vy=r.forwardRef((({className:t,...n},r)=>e(vh,{ref:r,variant:"outline",className:an("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})));vy.displayName=Zf.displayName;const by="Popper",[wy,yy]=j(by),[xy,Cy]=wy(by),Sy=u(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Cy("PopperAnchor",n),a=m(null),l=$(t,a);return g((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:s(J.div,z({},o,{ref:l}))})),ky="PopperContent",[Ey,Py]=wy(ky),Ny=u(((e,t)=>{var n,r,o,i,a,l,c,u;const{__scopePopper:d,side:f="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:g=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:y=0,sticky:x="partial",hideWhenDetached:C=!1,updatePositionStrategy:S="optimized",onPlaced:k,...E}=e,P=Cy(ky,d),[N,R]=v(null),M=$(t,(e=>R(e))),[A,T]=v(null),I=bh(A),O=null!==(n=null==I?void 0:I.width)&&void 0!==n?n:0,L=null!==(r=null==I?void 0:I.height)&&void 0!==r?r:0,D=f+("center"!==h?"-"+h:""),F="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},_=Array.isArray(w)?w:[w],V=_.length>0,j={padding:F,boundary:_.filter(Ry),altBoundary:V},{refs:H,floatingStyles:B,placement:W,isPositioned:U,middlewareData:K}=sg({strategy:"fixed",placement:D,whileElementsMounted:(...e)=>_l(...e,{animationFrame:"always"===S}),elements:{reference:P.anchor},middleware:[cg({mainAxis:p+L,alignmentAxis:m}),b&&ug({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?dg():void 0,...j}),b&&fg({...j}),pg({...j,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`)}}),A&&mg({element:A,padding:g}),My({arrowWidth:O,arrowHeight:L}),C&&hg({strategy:"referenceHidden",...j})]}),[G,X]=Ay(W),q=Z(k);te((()=>{U&&(null==q||q())}),[U,q]);const Y=null===(o=K.arrow)||void 0===o?void 0:o.x,Q=null===(i=K.arrow)||void 0===i?void 0:i.y,ee=0!==(null===(a=K.arrow)||void 0===a?void 0:a.centerOffset),[ne,re]=v();return te((()=>{N&&re(window.getComputedStyle(N).zIndex)}),[N]),s("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:U?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[null===(l=K.transformOrigin)||void 0===l?void 0:l.x,null===(c=K.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},s(Ey,{scope:d,placedSide:G,onArrowChange:T,arrowX:Y,arrowY:Q,shouldHideArrow:ee},s(J.div,z({"data-side":G,"data-align":X},E,{ref:M,style:{...E.style,animation:U?void 0:"none",opacity:null!==(u=K.hide)&&void 0!==u&&u.referenceHidden?0:void 0}}))))}));function Ry(e){return null!==e}const My=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,h]=Ay(s),m={start:"0%",center:"50%",end:"100%"}[h],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?m:`${g}px`,w=-f+"px"):"top"===p?(b=u?m:`${g}px`,w=`${l.floating.height+f}px`):"right"===p?(b=-f+"px",w=u?m:`${v}px`):"left"===p&&(b=`${l.floating.width+f}px`,w=u?m:`${v}px`),{data:{x:b,y:w}}}});function Ay(e){const[t,n="center"]=e.split("-");return[t,n]}const Ty=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v(null);return s(xy,{scope:t,anchor:r,onAnchorChange:o},n)},Iy=Sy,Oy=Ny;let Ly;const Dy="HoverCard",[Fy,_y]=j(Dy,[yy]),Vy=yy(),[zy,jy]=Fy(Dy),Hy=u(((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=jy("HoverCardTrigger",n),i=Vy(n);return s(Iy,z({asChild:!0},i),s(J.a,z({"data-state":o.open?"open":"closed"},r,{ref:t,onPointerEnter:Y(e.onPointerEnter,Xy(o.onOpen)),onPointerLeave:Y(e.onPointerLeave,Xy(o.onClose)),onFocus:Y(e.onFocus,o.onOpen),onBlur:Y(e.onBlur,o.onClose),onTouchStart:Y(e.onTouchStart,(e=>e.preventDefault()))})))})),By="HoverCardPortal",[$y,Wy]=Fy(By,{forceMount:void 0}),Uy="HoverCardContent",Ky=u(((e,t)=>{const n=Wy(Uy,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=jy(Uy,e.__scopeHoverCard);return s(ne,{present:r||i.open},s(Gy,z({"data-state":i.open?"open":"closed"},o,{onPointerEnter:Y(e.onPointerEnter,Xy(i.onOpen)),onPointerLeave:Y(e.onPointerLeave,Xy(i.onClose)),ref:t})))})),Gy=u(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...l}=e,c=jy(Uy,n),u=Vy(n),d=m(null),f=$(t,d),[p,h]=v(!1);return g((()=>{if(p){const e=document.body;return Ly=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=Ly,e.style.webkitUserSelect=Ly}}}),[p]),g((()=>{if(d.current){const e=()=>{h(!1),c.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(c.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}}),[c.isPointerDownOnContentRef,c.hasSelectionRef]),g((()=>{if(d.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})(d.current).forEach((e=>e.setAttribute("tabindex","-1")))}})),s(sd,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:Y(i,(e=>{e.preventDefault()})),onDismiss:c.onDismiss},s(Oy,z({},u,l,{onPointerDown:Y(l.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&h(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0})),ref:f,style:{...l.style,userSelect:p?"text":void 0,WebkitUserSelect:p?"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 Xy(e){return t=>"touch"===t.pointerType?void 0:e()}const qy=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:a=700,closeDelay:l=300}=e,u=Vy(t),d=m(0),f=m(0),p=m(!1),h=m(!1),[v=!1,b]=Q({prop:r,defaultProp:o,onChange:i}),w=c((()=>{clearTimeout(f.current),d.current=window.setTimeout((()=>b(!0)),a)}),[a,b]),y=c((()=>{clearTimeout(d.current),p.current||h.current||(f.current=window.setTimeout((()=>b(!1)),l))}),[l,b]),x=c((()=>b(!1)),[b]);return g((()=>()=>{clearTimeout(d.current),clearTimeout(f.current)}),[]),s(zy,{scope:t,open:v,onOpenChange:b,onOpen:w,onClose:y,onDismiss:x,hasSelectionRef:p,isPointerDownOnContentRef:h},s(Ty,u,n))},Yy=e=>{const{__scopeHoverCard:t,forceMount:n,children:r,container:o}=e,i=jy(By,t);return s($y,{scope:t,forceMount:n},s(ne,{present:n||i.open},s(xd,{asChild:!0,container:o},r)))},Zy=Ky,Qy=qy,Jy=Hy,ex=Yy,tx=r.forwardRef((({className:t="",align:n="center",sideOffset:r=6,disabled:o=!1,...i},a)=>o?null:e(Zy,{ref:a,align:n,sideOffset:r,className:an("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})));tx.displayName=Zy.displayName;const nx=r.forwardRef((({className:t,...n},r)=>e("input",{className:an("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 rx(e){"@babel/helpers - typeof";return rx="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},rx(e)}function ox(e){var t=function(e,t){if("object"!=rx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=rx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rx(t)?t:t+""}function ix(e,t,n){return(t=ox(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ax(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 sx(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 ax(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)?ax(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 lx(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}nx.displayName="Input";var cx,ux={exports:{}};
34
+ const er={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},tr=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function nr(e,t,n){void 0===n&&(n={});const{keys:r,threshold:a=er.MATCHES,baseSort:o=tr,sorter:i=e=>e.sort((e,t)=>ar(e,t,o))}=n,s=e.reduce(function(e,o,i){const s=function(e,t,n,r){if(!t){return{rankedValue:e,rank:rr(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=lr(a),i=ir(e,a);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:o})}return n}(e,t);return a.reduce((e,t,a)=>{let{rank:o,rankedValue:i,keyIndex:s,keyThreshold:l}=e,{itemValue:c,attributes:d}=t,u=rr(c,n,r),h=i;const{minRanking:p,maxRanking:m,threshold:f}=d;return u<p&&u>=er.MATCHES?u=p:u>m&&(u=m),u>o&&(o=u,s=a,l=f,h=c),{rankedValue:h,rank:o,keyIndex:s,keyThreshold:l}},{rankedValue:e,rank:er.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(o,r,t,n),{rank:l,keyThreshold:c=a}=s;l>=c&&e.push({...s,item:o,index:i});return e},[]);return i(s).map(e=>{let{item:t}=e;return t})}function rr(e,t,n){return e=or(e,n),(t=or(t,n)).length>e.length?er.NO_MATCH:e===t?er.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?er.EQUAL:e.startsWith(t)?er.STARTS_WITH:e.includes(` ${t}`)?er.WORD_STARTS_WITH:e.includes(t)?er.CONTAINS:1===t.length?er.NO_MATCH:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?er.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 er.MATCHES+a*r}const i=a(t[0],e,0);if(i<0)return er.NO_MATCH;r=i;for(let n=1,o=t.length;n<o;n++){r=a(t[n],e,r);if(!(r>-1))return er.NO_MATCH}return o(r-i)}(e,t)}function ar(e,t,n){const{rank:r,keyIndex:a}=e,{rank:o,keyIndex:i}=t;return r===o?a===i?n(e,t):a<i?-1:1:r>o?-1:1}function or(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=Jn(e)),e}function ir(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)]}nr.rankings=er;const sr={maxRanking:1/0,minRanking:-1/0};function lr(e){return"string"==typeof e?sr:{...sr,...e}}function cr({value:e,options:t}){const[n,r]=d(!1),[a,o]=d(""),i=u(()=>{if(!a)return t;const n=nr(t,a,{keys:["label","value"]}),r=t.find(t=>t.value===e);return r&&!n.includes(r)&&n.push(r),n},[a,e,t]);return{open:n,setOpen:r,searchValue:a,setSearchValue:o,matches:i}}function dr(){const e=ae(On),{t:t,i18n:n}=oe();return s(()=>{n.language!==e&&n.changeLanguage(e)},[e,n]),(e,n)=>t(e,n)}function ur(e){const[t,n]=d(!1);return s(()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const a=()=>n(r.matches);return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[t,e]),t}const hr=e=>{const[t,n]=d(!0),r=i(null);return s(()=>{if(t){const t=new Promise(t=>{const r=setTimeout(()=>{n(!1),t()},e);return()=>{clearTimeout(r)}});r.current=t}return()=>{r.current=null}},[e,t]),e=>{if(t&&r.current)throw r.current;return e()}};function pr(e,t,n,r){s(()=>{const a=a=>{const o=a.target;o&&"id"in o&&n.includes(o.id)||o?.parentNode&&"id"in o.parentNode&&n.includes(o.parentNode.id)||r&&r(o)||e.current&&!e.current.contains(o)&&t()};return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[e,t])}const mr=ee.Root,fr=ee.Trigger,gr=({className:t="",children:n,...r})=>e(ee.Portal,{className:wt(t),...r,children:e("div",{className:"fixed inset-0 z-[999] flex items-start justify-center sm:items-center",children:n})});gr.displayName=ee.Portal.displayName;const vr=r.forwardRef(({className:t,...n},r)=>e(ee.Overlay,{className:wt("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}));vr.displayName=ee.Overlay.displayName;const wr=r.forwardRef(({className:n,children:r=!0,showCloseButton:a=!0,disableScroll:o=!1,...i},s)=>{const l=ur("(max-width: 768px)");return t(gr,{children:[e(vr,{}),t(ee.Content,{ref:s,className:wt("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",l?"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":"",n??""),...i,children:[r,a&&t(ee.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(an,{className:"h-5 w-5 text-black dark:text-white"}),e("span",{className:"sr-only",children:"Close"})]})]})]})});wr.displayName=ee.Content.displayName;const yr=({className:t,...n})=>e("div",{className:wt("flex flex-col space-y-2 border-b border-black/10 p-6 pb-4 text-left dark:border-white/10",t??""),...n});yr.displayName="DialogHeader";const br=({className:t,...n})=>e("div",{className:wt("flex flex-row justify-between space-x-2 px-6 py-4",t??""),...n});br.displayName="DialogFooter";const xr=r.forwardRef(({className:t,...n},r)=>e(ee.Title,{ref:r,className:wt("text-lg font-semibold text-gray-900","dark:text-gray-50",t??""),...n}));xr.displayName=ee.Title.displayName;const kr=r.forwardRef(({className:t,...n},r)=>e(ee.Description,{ref:r,className:wt("text-sm text-gray-500","dark:text-gray-400",t??""),...n}));kr.displayName=ee.Description.displayName;const Cr=r.forwardRef(({className:t,...n},r)=>e(ee.Close,{ref:r,className:wt("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}));Cr.displayName=ee.Title.displayName;const Nr=r.forwardRef(({className:t,...n},r)=>e(gn,{ref:r,variant:"outline",className:wt("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}));Nr.displayName=ee.Title.displayName;const Sr=ie.Root,Pr=ie.Trigger,Mr=ie.Portal,Lr=r.forwardRef(({className:t="",align:n="center",sideOffset:r=6,disabled:a=!1,...o},i)=>a?null:e(ie.Content,{ref:i,align:n,sideOffset:r,className:wt("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}));Lr.displayName=ie.Content.displayName;const Tr=r.forwardRef(({className:t,...n},r)=>e("input",{className:wt("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 Ar(){return Ar=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},Ar.apply(null,arguments)}function Er(e){"@babel/helpers - typeof";return Er="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},Er(e)}function zr(e){var t=function(e,t){if("object"!=Er(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Er(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Er(t)?t:t+""}function Rr(e,t,n){return(t=zr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(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 Ir(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,i,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vr(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)?Vr(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 Dr(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}Tr.displayName="Input";var jr,Or={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
- */cx=ux,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}cx.exports?(t.default=t,cx.exports=t):window.classNames=t}();var dx=Vo(ux.exports),fx={ENTER:13,UP:38,DOWN:40};var px,hx="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,mx=function(e,t){var n=r.useRef(!0);hx((function(){return e(n.current)}),t),hx((function(){return n.current=!1,function(){n.current=!0}}),[])},gx=function(e,t){mx((function(t){if(!t)return e()}),t)},vx={},bx=Symbol.for("react.element"),wx=Symbol.for("react.portal"),yx=Symbol.for("react.fragment"),xx=Symbol.for("react.strict_mode"),Cx=Symbol.for("react.profiler"),Sx=Symbol.for("react.provider"),kx=Symbol.for("react.context"),Ex=Symbol.for("react.server_context"),Px=Symbol.for("react.forward_ref"),Nx=Symbol.for("react.suspense"),Rx=Symbol.for("react.suspense_list"),Mx=Symbol.for("react.memo"),Ax=Symbol.for("react.lazy"),Tx=Symbol.for("react.offscreen");function Ix(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case bx:switch(e=e.type){case yx:case Cx:case xx:case Nx:case Rx:return e;default:switch(e=e&&e.$$typeof){case Ex:case kx:case Px:case Ax:case Mx:case Sx:return e;default:return t}}case wx:return t}}}function Ox(){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"===rx(e)&&e&&"current"in e&&(e.current=t)}(t,e)}))}}function Lx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dx(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,ox(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fx(){return"function"==typeof BigInt}function _x(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function Vx(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 zx(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function jx(e){var t=String(e);if(zx(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(".")&&Bx(t)?t.length-t.indexOf(".")-1:0}function Hx(e){var t=String(e);if(zx(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Fx()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Fx()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(jx(t))}return Vx(t).fullStr}function Bx(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))}px=Symbol.for("react.module.reference"),vx.ContextConsumer=kx,vx.ContextProvider=Sx,vx.Element=bx,vx.ForwardRef=Px,vx.Fragment=yx,vx.Lazy=Ax,vx.Memo=Mx,vx.Portal=wx,vx.Profiler=Cx,vx.StrictMode=xx,vx.Suspense=Nx,vx.SuspenseList=Rx,vx.isAsyncMode=function(){return!1},vx.isConcurrentMode=function(){return!1},vx.isContextConsumer=function(e){return Ix(e)===kx},vx.isContextProvider=function(e){return Ix(e)===Sx},vx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===bx},vx.isForwardRef=function(e){return Ix(e)===Px},vx.isFragment=function(e){return Ix(e)===yx},vx.isLazy=function(e){return Ix(e)===Ax},vx.isMemo=function(e){return Ix(e)===Mx},vx.isPortal=function(e){return Ix(e)===wx},vx.isProfiler=function(e){return Ix(e)===Cx},vx.isStrictMode=function(e){return Ix(e)===xx},vx.isSuspense=function(e){return Ix(e)===Nx},vx.isSuspenseList=function(e){return Ix(e)===Rx},vx.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===yx||e===Cx||e===xx||e===Nx||e===Rx||e===Tx||"object"==typeof e&&null!==e&&(e.$$typeof===Ax||e.$$typeof===Mx||e.$$typeof===Sx||e.$$typeof===kx||e.$$typeof===Px||e.$$typeof===px||void 0!==e.getModuleId)},vx.typeOf=Ix;var $x=function(){function e(t){if(Lx(this,e),ix(this,"origin",""),ix(this,"negative",void 0),ix(this,"integer",void 0),ix(this,"decimal",void 0),ix(this,"decimalLen",void 0),ix(this,"empty",void 0),ix(this,"nan",void 0),_x(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(zx(n)&&(n=Number(n)),Bx(n="string"==typeof n?n:Hx(n))){var r=Vx(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 Dx(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=Vx(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()?"":Vx("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Wx=function(){function e(t){Lx(this,e),ix(this,"origin",""),ix(this,"number",void 0),ix(this,"empty",void 0),_x(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Dx(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(jx(this.number),jx(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(jx(this.number),jx(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()?"":Hx(this.number):this.origin}}]),e}();function Ux(e){return Fx()?new $x(e):new Wx(e)}function Kx(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=Vx(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?Kx(Ux(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 Gx=function(){var e=sx(v(!1),2),t=e[0],n=e[1];return mx((function(){n(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))}())}),[]),t};function Xx(e){var t=e.prefixCls,n=e.upNode,o=e.downNode,i=e.upDisabled,a=e.downDisabled,s=e.onStep,l=r.useRef(),c=r.useRef();c.current=s;var u=function(e,t){e.preventDefault(),c.current(t),l.current=setTimeout((function e(){c.current(t),l.current=setTimeout(e,200)}),600)},d=function(){clearTimeout(l.current)};if(r.useEffect((function(){return d}),[]),Gx())return null;var f="".concat(t,"-handler"),p=dx(f,"".concat(f,"-up"),ix({},"".concat(f,"-up-disabled"),i)),h=dx(f,"".concat(f,"-down"),ix({},"".concat(f,"-down-disabled"),a)),m={unselectable:"on",role:"button",onMouseUp:d,onMouseLeave:d};return r.createElement("div",{className:"".concat(f,"-wrap")},r.createElement("span",z({},m,{onMouseDown:function(e){u(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:p}),n||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),r.createElement("span",z({},m,{onMouseDown:function(e){u(e,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:h}),o||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function qx(e){var t="number"==typeof e?Hx(e):Vx(e).fullStr;return t.includes(".")?Vx(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Yx={};function Zx(e,t){}function Qx(e,t){}function Jx(e,t,n){t||Yx[n]||(e(!1,n),Yx[n]=!0)}function eC(e,t){Jx(Zx,e,t)}eC.preMessage=function(e){},eC.resetWarned=function(){Yx={}},eC.noteOnce=function(e,t){Jx(Qx,e,t)};var tC=function(e){return+setTimeout(e,16)},nC=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(tC=function(e){return window.requestAnimationFrame(e)},nC=function(e){return window.cancelAnimationFrame(e)});var rC=0,oC=new Map;function iC(e){oC.delete(e)}var aC=function(e){var t=rC+=1;return function n(r){if(0===r)iC(t),e();else{var o=tC((function(){n(r-1)}));oC.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};aC.cancel=function(e){var t=oC.get(e);return iC(e),nC(t)};var sC=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],lC=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},cC=function(e){var t=Ux(e);return t.isInvalidate()?null:t},uC=r.forwardRef((function(e,t){var n,o=e.prefixCls,i=void 0===o?"rc-input-number":o,a=e.className,s=e.style,l=e.min,c=e.max,u=e.step,d=void 0===u?1:u,f=e.defaultValue,p=e.value,h=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,P=e.precision,N=e.decimalSeparator,R=e.onChange,M=e.onInput,A=e.onPressEnter,T=e.onStep,I=function(e,t){if(null==e)return{};var n,r,o=lx(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,sC),O="".concat(i,"-input"),L=r.useRef(null),D=sx(r.useState(!1),2),F=D[0],_=D[1],V=r.useRef(!1),j=r.useRef(!1),H=r.useRef(!1),B=sx(r.useState((function(){return Ux(null!=p?p:f)})),2),$=B[0],W=B[1];var U=r.useCallback((function(e,t){if(!t)return P>=0?P:Math.max(jx(e),jx(d))}),[P,d]),K=r.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]),G=r.useRef(""),X=r.useCallback((function(e,t){if(E)return E(e,{userTyping:t,input:String(G.current)});var n="number"==typeof e?Hx(e):e;if(!t){var r=U(n,t);if(Bx(n)&&(N||r>=0))n=Kx(n,N||".",r)}return n}),[E,U,N]),q=sx(r.useState((function(){var e=null!=f?f:p;return $.isInvalidate()&&["string","number"].includes(rx(e))?Number.isNaN(e)?"":e:X($.toString(),!1)})),2),Y=q[0],Z=q[1];function Q(e,t){Z(X(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}G.current=Y;var J,ee,te,ne,re,oe=r.useMemo((function(){return cC(c)}),[c,P]),ie=r.useMemo((function(){return cC(l)}),[l,P]),ae=r.useMemo((function(){return!(!oe||!$||$.isInvalidate())&&oe.lessEquals($)}),[oe,$]),se=r.useMemo((function(){return!(!ie||!$||$.isInvalidate())&&$.lessEquals(ie)}),[ie,$]),le=(J=L.current,ee=F,te=m(null),[function(){try{var e=J.selectionStart,t=J.selectionEnd,n=J.value,r=n.substring(0,e),o=n.substring(t);te.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(e){}},function(){if(J&&te.current&&ee)try{var e=J.value,t=te.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,i=e.length;if(e.endsWith(r))i=e.length-te.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)}J.setSelectionRange(i,i)}catch(e){eC(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),ce=sx(le,2),ue=ce[0],de=ce[1],fe=function(e){return oe&&!e.lessEquals(oe)?oe:ie&&!ie.lessEquals(e)?ie:null},pe=function(e){return!fe(e)},he=function(e,t){var n,r=e,o=pe(r)||r.isEmpty();if(r.isEmpty()||t||(r=fe(r)||r,o=!0),!v&&!h&&o){var i=r.toString(),a=U(i,t);return a>=0&&(r=Ux(Kx(i,".",a)),pe(r)||(r=Ux(Kx(i,".",a,!0)))),r.equals($)||(n=r,void 0===p&&W(n),null==R||R(r.isEmpty()?null:lC(S,r)),void 0===p&&Q(r,t)),r}return $},me=(ne=m(0),re=function(){aC.cancel(ne.current)},g((function(){return re}),[]),function(e){re(),ne.current=aC((function(){e()}))}),ge=function e(t){if(ue(),Z(t),!j.current){var n=Ux(K(t));n.isNaN()||he(n,!0)}null==M||M(t),me((function(){var n=t;k||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},ve=function(e){var t;if(!(e&&ae||!e&&se)){V.current=!1;var n=Ux(H.current?qx(d):d);e||(n=n.negate());var r=($||Ux(0)).add(n.toString()),o=he(r,!1);null==T||T(lC(S,o),{offset:H.current?qx(d):d,type:e?"up":"down"}),null===(t=L.current)||void 0===t||t.focus()}},be=function(e){var t=Ux(K(Y)),n=t;n=t.isNaN()?$:he(t,e),void 0!==p?Q($,!1):n.isNaN()||Q(n,!1)};return gx((function(){$.isInvalidate()||Q($,!1)}),[P]),gx((function(){var e=Ux(p);W(e);var t=Ux(K(Y));e.equals(t)&&V.current&&!E||Q(e,V.current)}),[p]),gx((function(){E&&de()}),[Y]),r.createElement("div",{className:dx(i,a,(n={},ix(n,"".concat(i,"-focused"),F),ix(n,"".concat(i,"-disabled"),h),ix(n,"".concat(i,"-readonly"),v),ix(n,"".concat(i,"-not-a-number"),$.isNaN()),ix(n,"".concat(i,"-out-of-range"),!$.isInvalidate()&&!pe($)),n)),style:s,onFocus:function(){_(!0)},onBlur:function(){be(!1),_(!1),V.current=!1},onKeyDown:function(e){var t=e.which,n=e.shiftKey;V.current=!0,H.current=!!n,t===fx.ENTER&&(j.current||(V.current=!1),be(!1),null==A||A(e)),!1!==y&&!j.current&&[fx.UP,fx.DOWN].includes(t)&&(ve(fx.UP===t),e.preventDefault())},onKeyUp:function(){V.current=!1,H.current=!1},onCompositionStart:function(){j.current=!0},onCompositionEnd:function(){j.current=!1,ge(L.current.value)},onBeforeInput:function(){V.current=!0}},C&&r.createElement(Xx,{prefixCls:i,upNode:b,downNode:w,upDisabled:ae,downDisabled:se,onStep:ve}),r.createElement("div",{className:"".concat(O,"-wrap")},r.createElement("input",z({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":$.isInvalidate()?null:$.toString(),step:d},I,{ref:Ox(L,t),className:O,value:Y,onChange:function(e){ge(e.target.value)},disabled:h,readOnly:v}))))}));uC.displayName="InputNumber";const dC=r.forwardRef((({className:t,...n},r)=>e(uC,{className:an("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 fC(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function pC(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.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),i=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}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?function(...e){return t=>{let n=!1;const r=e.map((e=>{const r=fC(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():fC(e[t],null)}}}}(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}dC.displayName="Input";var hC=Symbol("radix.slottable");function mC(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===hC}var gC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const o=function(t){const n=pC(t),o=r.forwardRef(((t,o)=>{const{children:i,...a}=t,s=r.Children.toArray(i),l=s.find(mC);if(l){const t=l.props.children,i=s.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(n,{...a,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return e(n,{...a,ref:o,children:i})}));return o.displayName=`${t}.Slot`,o}(`Primitive.${n}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{}),vC=r.forwardRef(((t,n)=>e(gC.label,{...t,ref:n,onMouseDown:e=>{e.target.closest("button, input, select, textarea")||(t.onMouseDown?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}})));vC.displayName="Label";var bC=vC;const wC=r.forwardRef((({className:t="",...n},r)=>e(bC,{ref:r,...n,className:an("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)})));wC.displayName=bC.displayName;const yC=r.forwardRef((({children:t,triggerRef:n,triggerRefs:r,onOpenChange:o,...i},a)=>e(Kf,{...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}))),xC=Gf,CC=Xf,SC=Jf,kC=r.forwardRef((({className:t,...n},r)=>e(qf,{ref:r,className:an("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})));kC.displayName=qf.displayName;const EC=r.forwardRef((({className:n,overlayClassName:r,showCloseButton:o=!0,children:i,...a},s)=>t(CC,{children:[e(kC,{className:r}),t(Yf,{ref:s,className:an("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%]",n),...a,children:[i,o&&t(Jf,{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(ah,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Close"})]})]})]})));EC.displayName=Yf.displayName;const PC=({className:t,...n})=>e("div",{className:an("flex flex-col space-y-1.5 text-center sm:text-left",t),...n});PC.displayName="DialogHeader";const NC=({className:t,...n})=>e("div",{className:an("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});NC.displayName="DialogFooter";const RC=r.forwardRef((({className:t,...n},r)=>e(Zf,{ref:r,className:an("text-lg font-semibold leading-none tracking-tight",t),...n})));RC.displayName=Zf.displayName;const MC=r.forwardRef((({className:t,...n},r)=>e(Qf,{ref:r,className:an("text-sm text-muted-foreground",t),...n})));MC.displayName=Qf.displayName;const AC=({className:t=""})=>e("span",{children:e("div",{className:an("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:"?"})});function TC(e,[t,n]){return Math.min(n,Math.max(t,e))}function IC(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function OC(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function LC(...e){return t=>{let n=!1;const r=e.map((e=>{const r=OC(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():OC(e[t],null)}}}}function DC(...e){return r.useCallback(LC(...e),e)}function FC(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;o=[...o,i];const l=n=>{const{scope:o,children:i,...l}=n,c=o?.[t]?.[s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},_C(i,...n)]}function _C(...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 o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}var VC=globalThis?.document?r.useLayoutEffect:()=>{},zC=r[" useInsertionEffect ".trim().toString()]||VC;function jC({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:o}){const[i,a,s]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return zC((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} 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,o])}const u=r.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else a(t)}),[l,e,a,s]);return[c,u]}var HC=r.createContext(void 0);function BC(t){const n=$C(t),o=r.forwardRef(((t,o)=>{const{children:i,...a}=t,s=r.Children.toArray(i),l=s.find(UC);if(l){const t=l.props.children,i=s.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(n,{...a,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return e(n,{...a,ref:o,children:i})}));return o.displayName=`${t}.Slot`,o}function $C(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.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),i=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}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?LC(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var WC=Symbol("radix.slottable");function UC(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===WC}var KC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const o=BC(`Primitive.${n}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{});var GC=["PageUp","PageDown"],XC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],qC={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},YC="Slider",[ZC,QC,JC]=function(t){const n=t+"CollectionProvider",[r,i]=FC(n),[a,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=t=>{const{scope:n,children:r}=t,i=o.useRef(null),s=o.useRef(new Map).current;return e(a,{scope:n,itemMap:s,collectionRef:i,children:r})};l.displayName=n;const c=t+"CollectionSlot",u=BC(c),d=o.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=DC(n,s(c,r).collectionRef);return e(u,{ref:i,children:o})}));d.displayName=c;const f=t+"CollectionItemSlot",p="data-radix-collection-item",h=BC(f),m=o.forwardRef(((t,n)=>{const{scope:r,children:i,...a}=t,l=o.useRef(null),c=DC(n,l),u=s(f,r);return o.useEffect((()=>(u.itemMap.set(l,{ref:l,...a}),()=>{u.itemMap.delete(l)}))),e(h,{[p]:"",ref:c,children:i})}));return m.displayName=f,[{Provider:l,Slot:d,ItemSlot:m},function(e){const n=s(t+"CollectionConsumer",e),r=o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},i]}(YC),[eS,tS]=FC(YC,[JC]),[nS,rS]=eS(YC),oS=r.forwardRef(((t,n)=>{const{name:o,min:i=0,max:a=100,step:s=1,orientation:l="horizontal",disabled:c=!1,minStepsBetweenThumbs:u=0,defaultValue:d=[i],value:f,onValueChange:p=(()=>{}),onValueCommit:h=(()=>{}),inverted:m=!1,form:g,...v}=t,b=r.useRef(new Set),w=r.useRef(0),y="horizontal"===l?sS:lS,[x=[],C]=jC({prop:f,defaultProp:d,onChange:e=>{const t=[...b.current];t[w.current]?.focus(),p(e)}}),S=r.useRef(x);function k(e,t,{commit:n}={commit:!1}){const r=function(e){return(String(e).split(".")[1]||"").length}(s),o=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-i)/s)*s+i,r),l=TC(o,[i,a]);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&&h(r),t?r:e}return e}))}return e(nS,{scope:t.__scopeSlider,name:o,disabled:c,min:i,max:a,valueIndexToChangeRef:w,thumbs:b.current,values:x,orientation:l,form:g,children:e(ZC.Provider,{scope:t.__scopeSlider,children:e(ZC.Slot,{scope:t.__scopeSlider,children:e(y,{"aria-disabled":c,"data-disabled":c?"":void 0,...v,ref:n,onPointerDown:IC(v.onPointerDown,(()=>{c||(S.current=x)})),min:i,max:a,inverted:m,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&&h(x)},onHomeKeyDown:()=>!c&&k(i,0,{commit:!0}),onEndKeyDown:()=>!c&&k(a,x.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){const n=GC.includes(e.key)||e.shiftKey&&XC.includes(e.key)?10:1,r=w.current;k(x[r]+s*n*t,r,{commit:!0})}}})})})})}));oS.displayName=YC;var[iS,aS]=eS(YC,{startEdge:"left",endEdge:"right",size:"width",direction:1}),sS=r.forwardRef(((t,n)=>{const{min:o,max:i,dir:a,inverted:s,onSlideStart:l,onSlideMove:c,onSlideEnd:u,onStepKeyDown:d,...f}=t,[p,h]=r.useState(null),m=DC(n,(e=>h(e))),g=r.useRef(void 0),v=function(e){const t=r.useContext(HC);return e||t||"ltr"}(a),b="ltr"===v,w=b&&!s||!b&&s;function y(e){const t=g.current||p.getBoundingClientRect(),n=wS([0,t.width],w?[o,i]:[i,o]);return g.current=t,n(e-t.left)}return e(iS,{scope:t.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width",children:e(cS,{dir:v,"data-orientation":"horizontal",...f,ref:m,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=qC[w?"from-left":"from-right"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})})),lS=r.forwardRef(((t,n)=>{const{min:o,max:i,inverted:a,onSlideStart:s,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...d}=t,f=r.useRef(null),p=DC(n,f),h=r.useRef(void 0),m=!a;function g(e){const t=h.current||f.current.getBoundingClientRect(),n=wS([0,t.height],m?[i,o]:[o,i]);return h.current=t,n(e-t.top)}return e(iS,{scope:t.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:e(cS,{"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:()=>{h.current=void 0,c?.()},onStepKeyDown:e=>{const t=qC[m?"from-bottom":"from-top"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})})),cS=r.forwardRef(((t,n)=>{const{__scopeSlider:r,onSlideStart:o,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:l,onStepKeyDown:c,...u}=t,d=rS(YC,r);return e(KC.span,{...u,ref:n,onKeyDown:IC(t.onKeyDown,(e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):GC.concat(XC).includes(e.key)&&(c(e),e.preventDefault())})),onPointerDown:IC(t.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():o(e)})),onPointerMove:IC(t.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)})),onPointerUp:IC(t.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))}))})})),uS="SliderTrack",dS=r.forwardRef(((t,n)=>{const{__scopeSlider:r,...o}=t,i=rS(uS,r);return e(KC.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...o,ref:n})}));dS.displayName=uS;var fS="SliderRange",pS=r.forwardRef(((t,n)=>{const{__scopeSlider:o,...i}=t,a=rS(fS,o),s=aS(fS,o),l=DC(n,r.useRef(null)),c=a.values.length,u=a.values.map((e=>bS(e,a.min,a.max))),d=c>1?Math.min(...u):0,f=100-Math.max(...u);return e(KC.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...i,ref:l,style:{...t.style,[s.startEdge]:d+"%",[s.endEdge]:f+"%"}})}));pS.displayName=fS;var hS="SliderThumb",mS=r.forwardRef(((t,n)=>{const o=QC(t.__scopeSlider),[i,a]=r.useState(null),s=DC(n,(e=>a(e))),l=r.useMemo((()=>i?o().findIndex((e=>e.ref.current===i)):-1),[o,i]);return e(gS,{...t,ref:s,index:l})})),gS=r.forwardRef(((n,o)=>{const{__scopeSlider:i,index:a,name:s,...l}=n,c=rS(hS,i),u=aS(hS,i),[d,f]=r.useState(null),p=DC(o,(e=>f(e))),h=!d||(c.form||!!d.closest("form")),m=function(e){const[t,n]=r.useState(void 0);return VC((()=>{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}(d),g=c.values[a],v=void 0===g?0:bS(g,c.min,c.max),b=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(a,c.values.length),w=m?.[u.size],y=w?function(e,t,n){const r=e/2,o=wS([0,50],[0,r]);return(r-o(t)*n)*n}(w,v,u.direction):0;return r.useEffect((()=>{if(d)return c.thumbs.add(d),()=>{c.thumbs.delete(d)}}),[d,c.thumbs]),t("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[u.startEdge]:`calc(${v}% + ${y}px)`},children:[e(ZC.ItemSlot,{scope:n.__scopeSlider,children:e(KC.span,{role:"slider","aria-label":n["aria-label"]||b,"aria-valuemin":c.min,"aria-valuenow":g,"aria-valuemax":c.max,"aria-orientation":c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,tabIndex:c.disabled?void 0:0,...l,ref:p,style:void 0===g?{display:"none"}:n.style,onFocus:IC(n.onFocus,(()=>{c.valueIndexToChangeRef.current=a}))})}),h&&e(vS,{name:s??(c.name?c.name+(c.values.length>1?"[]":""):void 0),form:c.form,value:g},a)]})}));mS.displayName=hS;var vS=r.forwardRef((({__scopeSlider:t,value:n,...o},i)=>{const a=r.useRef(null),s=DC(a,i),l=function(e){const t=r.useRef({value:e,previous:e});return r.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n);return r.useEffect((()=>{const e=a.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(KC.input,{style:{display:"none"},...o,ref:s,defaultValue:n})}));function bS(e,t,n){return TC(100/(n-t)*(e-t),[0,100])}function wS(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])}}vS.displayName="RadioBubbleInput";var yS=oS,xS=dS,CS=pS,SS=mS;const kS=r.forwardRef((({className:n,onDoubleClick:r,...o},i)=>t(yS,{ref:i,...o,className:an("relative flex w-full cursor-pointer touch-none select-none items-center",n),onDoubleClick:r,children:[e(xS,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e(CS,{className:"absolute h-full bg-primary"})}),e(SS,{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 ES(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function PS(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.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),i=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}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?function(...e){return t=>{let n=!1;const r=e.map((e=>{const r=ES(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():ES(e[t],null)}}}}(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}kS.displayName=yS.displayName;var NS=Symbol("radix.slottable");function RS(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===NS}var MS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const o=function(t){const n=PS(t),o=r.forwardRef(((t,o)=>{const{children:i,...a}=t,s=r.Children.toArray(i),l=s.find(RS);if(l){const t=l.props.children,i=s.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(n,{...a,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return e(n,{...a,ref:o,children:i})}));return o.displayName=`${t}.Slot`,o}(`Primitive.${n}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{}),AS="horizontal",TS=["horizontal","vertical"],IS=r.forwardRef(((t,n)=>{const{decorative:r,orientation:o=AS,...i}=t,a=function(e){return TS.includes(e)}(o)?o:AS,s=r?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"};return e(MS.div,{"data-orientation":a,...s,...i,ref:n})}));IS.displayName="Separator";var OS=IS;const LS=r.forwardRef((({className:t="",orientation:n="horizontal",decorative:r=!0,...o},i)=>e(OS,{ref:i,...o,decorative:r,orientation:n,className:an("shrink-0 bg-border-light","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",t)})));LS.displayName=OS.displayName;const DS=({label:n,labelClassName:r,placeholder:i="Select an option",options:a,className:s,value:l,onChange:c,onBlur:u})=>{const d=e=>null!=e&&"object"==typeof e&&"value"in e,[f,p]=o.useState(!1),[h,m]=o.useState(l),[g,v]=o.useState(!1);o.useEffect((()=>{m(l)}),[l]);const b=e=>{m(e),c(e)};return t(ju,{value:h,setValue:b,children:[null!=n&&e(Xu,{className:an("mb-2 block text-sm font-medium text-text-primary",r??""),children:n}),e("div",{className:an("relative",g?"rounded-md ring-2 ring-ring-primary":""),children:e(zu,{placeholder:i,className:an("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=>b(e.target.value),onBlur:()=>{v(!1),u()},onFocusVisible:()=>{v(!0),p(!0)},onMouseDown:()=>{v(!1)}})}),e(Qu,{gutter:4,sameWidth:!0,open:f,onClose:()=>p(!1),className:an("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:a.map(((n,r)=>t(Ku,{className:an("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(n)?`${n.value??""}`:n,children:[d(n)&&null!=n.icon&&e("span",{className:"mr-2 flex-shrink-0",children:n.icon}),d(n)?n.label:n]},r)))})]})};function FS({className:t,...n}){return e("div",{className:an("animate-pulse rounded-md bg-surface-tertiary opacity-50 dark:opacity-25",t),...n})}function _S(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function VS(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function zS(...e){return t=>{let n=!1;const r=e.map((e=>{const r=VS(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():VS(e[t],null)}}}}function jS(...e){return r.useCallback(zS(...e),e)}function HS(...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 o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}var BS=globalThis?.document?r.useLayoutEffect:()=>{},$S=r[" useInsertionEffect ".trim().toString()]||BS;function WS({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:o}){const[i,a,s]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return $S((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} 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,o])}const u=r.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else a(t)}),[l,e,a,s]);return[c,u]}function US(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.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),i=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}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?zS(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var KS=Symbol("radix.slottable");function GS(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===KS}var XS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const o=function(t){const n=US(t),o=r.forwardRef(((t,o)=>{const{children:i,...a}=t,s=r.Children.toArray(i),l=s.find(GS);if(l){const t=l.props.children,i=s.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(n,{...a,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return e(n,{...a,ref:o,children:i})}));return o.displayName=`${t}.Slot`,o}(`Primitive.${n}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{}),qS="Switch",[YS,ZS]=function(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;o=[...o,i];const l=n=>{const{scope:o,children:i,...l}=n,c=o?.[t]?.[s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},HS(i,...n)]}(qS),[QS,JS]=YS(qS),ek=r.forwardRef(((n,o)=>{const{__scopeSwitch:i,name:a,checked:s,defaultChecked:l,required:c,disabled:u,value:d="on",onCheckedChange:f,form:p,...h}=n,[m,g]=r.useState(null),v=jS(o,(e=>g(e))),b=r.useRef(!1),w=!m||(p||!!m.closest("form")),[y,x]=WS({prop:s,defaultProp:l??!1,onChange:f,caller:qS});return t(QS,{scope:i,checked:y,disabled:u,children:[e(XS.button,{type:"button",role:"switch","aria-checked":y,"aria-required":c,"data-state":ok(y),"data-disabled":u?"":void 0,disabled:u,value:d,...h,ref:v,onClick:_S(n.onClick,(e=>{x((e=>!e)),w&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())}))}),w&&e(rk,{control:m,bubbles:!b.current,name:a,value:d,checked:y,required:c,disabled:u,form:p,style:{transform:"translateX(-100%)"}})]})}));ek.displayName=qS;var tk="SwitchThumb",nk=r.forwardRef(((t,n)=>{const{__scopeSwitch:r,...o}=t,i=JS(tk,r);return e(XS.span,{"data-state":ok(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:n})}));nk.displayName=tk;var rk=r.forwardRef((({__scopeSwitch:t,control:n,checked:o,bubbles:i=!0,...a},s)=>{const l=r.useRef(null),c=jS(l,s),u=function(e){const t=r.useRef({value:e,previous:e});return r.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(o),d=function(e){const[t,n]=r.useState(void 0);return BS((()=>{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 r.useEffect((()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==o&&n){const t=new Event("click",{bubbles:i});n.call(e,o),e.dispatchEvent(t)}}),[u,o,i]),e("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...a,tabIndex:-1,ref:c,style:{...a.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})}));function ok(e){return e?"checked":"unchecked"}rk.displayName="SwitchBubbleInput";var ik=ek,ak=nk;const sk=r.forwardRef((({className:t,...n},r)=>e(ik,{className:an("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(ak,{className:an("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")})})));sk.displayName=ik.displayName;const lk=r.forwardRef((({className:t,...n},r)=>e("div",{className:"relative w-full overflow-auto",children:e("table",{ref:r,className:an("w-full caption-bottom text-sm",t),...n})})));lk.displayName="Table";const ck=r.forwardRef((({className:t,...n},r)=>e("thead",{ref:r,className:an("[&_tr]:border-b",t),...n})));ck.displayName="TableHeader";const uk=r.forwardRef((({className:t,...n},r)=>e("tbody",{ref:r,className:an("[&_tr:last-child]:border-0",t),...n})));uk.displayName="TableBody";const dk=r.forwardRef((({className:t,...n},r)=>e("tfoot",{ref:r,className:an("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...n})));dk.displayName="TableFooter";const fk=r.forwardRef((({className:t,...n},r)=>e("tr",{ref:r,className:an("border-b border-border-light transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...n})));fk.displayName="TableRow";const pk=r.forwardRef((({className:t,...n},r)=>e("th",{ref:r,className:an("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...n})));pk.displayName="TableHead";const hk=r.forwardRef((({className:t,...n},r)=>e("td",{ref:r,className:an("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...n})));hk.displayName="TableCell";const mk=r.forwardRef((({className:t,...n},r)=>e("caption",{ref:r,className:an("mt-4 text-sm text-muted-foreground",t),...n})));mk.displayName="TableCaption";const gk="rovingFocusGroup.onEntryFocus",vk={bubbles:!1,cancelable:!0},bk="RovingFocusGroup",[wk,yk,xk]=q(bk),[Ck,Sk]=j(bk,[xk]),[kk,Ek]=Ck(bk),Pk=u(((e,t)=>s(wk.Provider,{scope:e.__scopeRovingFocusGroup},s(wk.Slot,{scope:e.__scopeRovingFocusGroup},s(Nk,z({},e,{ref:t})))))),Nk=u(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,...f}=e,p=m(null),h=$(t,p),b=Ce(i),[w=null,y]=Q({prop:a,defaultProp:l,onChange:u}),[x,C]=v(!1),S=Z(d),k=yk(n),E=m(!1),[P,N]=v(0);return g((()=>{const e=p.current;if(e)return e.addEventListener(gk,S),()=>e.removeEventListener(gk,S)}),[S]),s(kk,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:w,onItemFocus:c((e=>y(e)),[y]),onItemShiftTab:c((()=>C(!0)),[]),onFocusableItemAdd:c((()=>N((e=>e+1))),[]),onFocusableItemRemove:c((()=>N((e=>e-1))),[])},s(J.div,z({tabIndex:x||0===P?-1:0,"data-orientation":r},f,{ref:h,style:{outline:"none",...e.style},onMouseDown:Y(e.onMouseDown,(()=>{E.current=!0})),onFocus:Y(e.onFocus,(e=>{const t=!E.current;if(e.target===e.currentTarget&&t&&!x){const t=new CustomEvent(gk,vk);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter((e=>e.focusable));Ak([e.find((e=>e.active)),e.find((e=>e.id===w)),...e].filter(Boolean).map((e=>e.ref.current)))}}E.current=!1})),onBlur:Y(e.onBlur,(()=>C(!1)))})))})),Rk=u(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=ae(),c=i||l,u=Ek("RovingFocusGroupItem",n),d=u.currentTabStopId===c,f=yk(n),{onFocusableItemAdd:p,onFocusableItemRemove:h}=u;return g((()=>{if(r)return p(),()=>h()}),[r,p,h]),s(wk.ItemSlot,{scope:n,id:c,focusable:r,active:o},s(J.span,z({tabIndex:d?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:Y(e.onMouseDown,(e=>{r?u.onItemFocus(c):e.preventDefault()})),onFocus:Y(e.onFocus,(()=>u.onItemFocus(c))),onKeyDown:Y(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.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:Mk[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=f().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=u.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Ak(o)))}var n,r}))})))})),Mk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ak(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const Tk=Pk,Ik=Rk,Ok="Tabs",[Lk,Dk]=j(Ok,[Sk]),Fk=Sk(),[_k,Vk]=Lk(Ok),zk=u(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:c="automatic",...u}=e,d=Ce(l),[f,p]=Q({prop:r,onChange:o,defaultProp:i});return s(_k,{scope:n,baseId:ae(),value:f,onValueChange:p,orientation:a,dir:d,activationMode:c},s(J.div,z({dir:d,"data-orientation":a},u,{ref:t})))})),jk=u(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Vk("TabsList",n),a=Fk(n);return s(Tk,z({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),s(J.div,z({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))})),Hk=u(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=Vk("TabsTrigger",n),l=Fk(n),c=$k(a.baseId,r),u=Wk(a.baseId,r),d=r===a.value;return s(Ik,z({asChild:!0},l,{focusable:!o,active:d}),s(J.button,z({type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c},i,{ref:t,onMouseDown:Y(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:Y(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:Y(e.onFocus,(()=>{const e="manual"!==a.activationMode;d||o||!e||a.onValueChange(r)}))})))})),Bk=u(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=Vk("TabsContent",n),c=$k(l.baseId,r),u=Wk(l.baseId,r),d=r===l.value,f=m(d);return g((()=>{const e=requestAnimationFrame((()=>f.current=!1));return()=>cancelAnimationFrame(e)}),[]),s(ne,{present:o||d},(({present:n})=>s(J.div,z({"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),n&&i)))}));function $k(e,t){return`${e}-trigger-${t}`}function Wk(e,t){return`${e}-content-${t}`}const Uk=jk,Kk=Hk,Gk=Bk,Xk=zk,qk=r.forwardRef((({className:t="",...n},r)=>e(Uk,{ref:r,className:an("inline-flex items-center justify-center rounded-md bg-surface-primary",t),...n})));qk.displayName=Uk.displayName;const Yk=r.forwardRef((({className:t="",...n},r)=>e(Kk,{className:an("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})));Yk.displayName=Kk.displayName;const Zk=r.forwardRef((({className:t="",...n},r)=>e(Gk,{className:an("mt-2 rounded-md p-6",t),...n,ref:r})));Zk.displayName=Gk.displayName;const Qk=r.forwardRef((({CancelButton:r,LabelNode:o,label:i,onRemove:a,className:s="",labelClassName:l="",...c},u)=>t("div",{ref:u,...c,className:an("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",s),children:[t("div",{className:an("ml-1 whitespace-pre-wrap px-2 py-1",l),children:[o?t(n,{children:[o," "]}):null,i]}),r||a&&e("button",{onClick:e=>{e.stopPropagation(),a(e)},className:"rounded-full bg-green-600/50","aria-label":`Remove ${i}`,children:e(ah,{className:"m-[1.5px] p-1"})})]})));Qk.displayName="Tag";const Jk=r.memo(Qk),eE=r.forwardRef((({className:t="",...n},r)=>e("textarea",{className:an("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})));eE.displayName="Textarea";var tE=b,nE=function(e,t){"function"!=typeof e?e.current=t:e(t)},rE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},oE=function(e){Object.keys(rE).forEach((function(t){e.style.setProperty(t,rE[t],"important")}))},iE=null,aE=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var sE=function(){},lE=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],cE=!!document.documentElement.currentStyle,uE=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}),{})}(lE,t),r=n.boxSizing;return""===r?null:(cE&&"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 dE(e,t,n){var o,i,a=(o=n,i=r.useRef(o),tE((function(){i.current=o})),i);r.useLayoutEffect((function(){var n=function(e){return a.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var fE=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],pE=function(e,t){var n=e.cacheMeasurements,o=e.maxRows,i=e.minRows,a=e.onChange,s=void 0===a?sE:a,l=e.onHeightChange,u=void 0===l?sE:l,d=lx(e,fE),f=void 0!==d.value,p=r.useRef(null),h=function(e,t){var n=m();return c((function(r){e.current=r,n.current&&nE(n.current,null),n.current=t,t&&nE(t,r)}),[t])}(p,t),g=r.useRef(0),v=r.useRef(),b=function(){var e=p.current,t=n&&v.current?v.current:uE(e);if(t){v.current=t;var r=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),iE||((iE=document.createElement("textarea")).setAttribute("tabindex","-1"),iE.setAttribute("aria-hidden","true"),oE(iE)),null===iE.parentNode&&document.body.appendChild(iE);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;iE.style[t]=a[t]})),oE(iE),iE.value=t;var l=aE(iE,e);iE.value=t,l=aE(iE,e),iE.value="x";var c=iE.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=r[0],s=r[1];g.current!==a&&(g.current=a,e.style.setProperty("height",a+"px","important"),u(a,{rowHeight:s}))}};return r.useLayoutEffect(b),dE(window,"resize",b),function(e){dE(document.fonts,"loadingdone",e)}(b),r.createElement("textarea",z({},d,{onChange:function(e){f||b(),s(e)},ref:h}))},hE=r.forwardRef(pE);const mE=u(((t,n)=>{const[,r]=v(!1),o=F(Ow).toLowerCase();return b((()=>r(!0)),[]),e(hE,{dir:o,...t,ref:n})})),gE=u(((e,t)=>s(J.span,z({},e,{ref:t,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}})))),vE="ToastProvider",[bE,wE,yE]=q("Toast"),[xE,CE]=j("Toast",[yE]),[SE,kE]=xE(vE),EE="toast.viewportPause",PE="toast.viewportResume",NE="Toast",RE=u(((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...a}=e,[l=!0,c]=Q({prop:r,defaultProp:o,onChange:i});return s(ne,{present:n||l},s(TE,z({open:l},a,{ref:t,onClose:()=>c(!1),onPause:Z(e.onPause),onResume:Z(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`),c(!1)}))})))})),[ME,AE]=xE(NE,{onClose(){}}),TE=u(((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:l,onEscapeKeyDown:u,onPause:d,onResume:f,onSwipeStart:p,onSwipeMove:b,onSwipeCancel:w,onSwipeEnd:y,...x}=e,C=kE(NE,n),[S,k]=v(null),E=$(t,(e=>k(e))),P=m(null),N=m(null),R=o||C.duration,M=m(0),A=m(R),I=m(0),{onToastAdd:O,onToastRemove:L}=C,D=Z((()=>{var e;(null==S?void 0:S.contains(document.activeElement))&&(null===(e=C.viewport)||void 0===e||e.focus()),l()})),F=c((e=>{e&&e!==1/0&&(window.clearTimeout(I.current),M.current=(new Date).getTime(),I.current=window.setTimeout(D,e))}),[D]);g((()=>{const e=C.viewport;if(e){const t=()=>{F(A.current),null==f||f()},n=()=>{const e=(new Date).getTime()-M.current;A.current=A.current-e,window.clearTimeout(I.current),null==d||d()};return e.addEventListener(EE,n),e.addEventListener(PE,t),()=>{e.removeEventListener(EE,n),e.removeEventListener(PE,t)}}}),[C.viewport,R,d,f,F]),g((()=>{i&&!C.isClosePausedRef.current&&F(R)}),[i,R,C.isClosePausedRef,F]),g((()=>(O(),()=>L())),[O,L]);const _=a((()=>S?_E(S):null),[S]);return C.viewport?s(h,null,_&&s(IE,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0},_),s(ME,{scope:n,onClose:D},T(s(bE.ItemSlot,{scope:n},s(ud,{asChild:!0,onEscapeKeyDown:Y(u,(()=>{C.isFocusedToastEscapeKeyDownRef.current||D(),C.isFocusedToastEscapeKeyDownRef.current=!1}))},s(J.li,z({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":C.swipeDirection},x,{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||(C.isFocusedToastEscapeKeyDownRef.current=!0,D()))})),onPointerDown:Y(e.onPointerDown,(e=>{0===e.button&&(P.current={x:e.clientX,y:e.clientY})})),onPointerMove:Y(e.onPointerMove,(e=>{if(!P.current)return;const t=e.clientX-P.current.x,n=e.clientY-P.current.y,r=Boolean(N.current),o=["left","right"].includes(C.swipeDirection),i=["left","up"].includes(C.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?(N.current=c,VE("toast.swipeMove",b,u,{discrete:!1})):zE(c,C.swipeDirection,l)?(N.current=c,VE("toast.swipeStart",p,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(P.current=null)})),onPointerUp:Y(e.onPointerUp,(e=>{const t=N.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),N.current=null,P.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};zE(t,C.swipeDirection,C.swipeThreshold)?VE("toast.swipeEnd",y,r,{discrete:!0}):VE("toast.swipeCancel",w,r,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})))),C.viewport))):null}));TE.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){return new Error(`Invalid prop \`type\` supplied to \`${NE}\`. Expected \`foreground | background\`.`)}return null}};const IE=e=>{const{__scopeToast:t,children:n,...r}=e,o=kE(NE,t),[i,a]=v(!1),[l,c]=v(!1);return function(e=(()=>{})){const t=Z(e);te((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>a(!0))),g((()=>{const e=window.setTimeout((()=>c(!0)),1e3);return()=>window.clearTimeout(e)}),[]),l?null:s(xd,{asChild:!0},s(gE,r,i&&s(h,null,o.label," ",n)))},OE=u(((e,t)=>{const{__scopeToast:n,...r}=e;return s(J.div,z({},r,{ref:t}))})),LE=u(((e,t)=>{const{altText:n,...r}=e;return n?s(FE,{altText:n,asChild:!0},s(DE,z({},r,{ref:t}))):null}));LE.propTypes={altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")};const DE=u(((e,t)=>{const{__scopeToast:n,...r}=e,o=AE("ToastClose",n);return s(FE,{asChild:!0},s(J.button,z({type:"button"},r,{ref:t,onClick:Y(e.onClick,o.onClose)})))})),FE=u(((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return s(J.div,z({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))}));function _E(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(..._E(e))}})),t}function VE(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?ee(o,i):o.dispatchEvent(i)}const zE=(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 jE=RE,HE=OE;function BE(){const{toast:n,onOpenChange:r}=Vw(),o={[Tw.INFO]:"border-gray-500 bg-gray-500",[Tw.SUCCESS]:"border-green-500 bg-green-500",[Tw.WARNING]:"border-orange-500 bg-orange-500",[Tw.ERROR]:"border-red-500 bg-red-500"};return e(jE,{open:n.open,onOpenChange:r,className:"toast-root",style:{height:"74px",marginBottom:"0px"},children:e("div",{className:"w-full p-1 text-center md:w-auto md:text-justify",children:t("div",{className:`alert-root pointer-events-auto inline-flex flex-row gap-2 rounded-md border px-3 py-2 text-white ${o[n.severity]}`,children:[n.showIcon&&e("div",{className:"mt-1 flex-shrink-0 flex-grow-0",children:t("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("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("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),e(HE,{className:"flex-1 justify-center gap-2",children:e("div",{className:"whitespace-pre-wrap text-left",children:n.message})})]})})})}const $E=i({});function WE(e){const t=m(null);return null===t.current&&(t.current=e()),t.current}const UE="undefined"!=typeof window,KE=UE?b:g,GE=i(null);function XE(e,t){-1===e.indexOf(t)&&e.push(t)}function qE(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const YE=(e,t,n)=>n>t?t:n<e?e:n;let ZE=()=>{};const QE={},JE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function eP(e){return"object"==typeof e&&null!==e}const tP=e=>/^0[^.\s]+$/u.test(e);function nP(e){let t;return()=>(void 0===t&&(t=e()),t)}const rP=e=>e,oP=(e,t)=>n=>t(e(n)),iP=(...e)=>e.reduce(oP),aP=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r};class sP{constructor(){this.subscriptions=[]}add(e){return XE(this.subscriptions,e),()=>qE(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 lP=e=>1e3*e,cP=e=>e/1e3;function uP(e,t){return t?e*(1e3/t):0}const dP=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fP=1e-7,pP=12;function hP(e,t,n,r){if(e===t&&n===r)return rP;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=dP(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>fP&&++s<pP);return a}(t,0,1,e,n);return e=>0===e||1===e?e:dP(o(e),t,r)}const mP=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gP=e=>t=>1-e(1-t),vP=hP(.33,1.53,.69,.99),bP=gP(vP),wP=mP(bP),yP=e=>(e*=2)<1?.5*bP(e):.5*(2-Math.pow(2,-10*(e-1))),xP=e=>1-Math.sin(Math.acos(e)),CP=gP(xP),SP=mP(xP),kP=hP(.42,0,1,1),EP=hP(0,0,.58,1),PP=hP(.42,0,.58,1),NP=e=>Array.isArray(e)&&"number"==typeof e[0],RP={linear:rP,easeIn:kP,easeInOut:PP,easeOut:EP,circIn:xP,circInOut:SP,circOut:CP,backIn:bP,backInOut:wP,backOut:vP,anticipate:yP},MP=e=>{if(NP(e)){ZE(4===e.length);const[t,n,r,o]=e;return hP(t,n,r,o)}return"string"==typeof e?RP[e]:e},AP=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function TP(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=AP.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:h}=a,m=()=>{const i=QE.useManualTiming?o.timestamp:performance.now();n=!1,QE.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),h.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:AP.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(m)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t<AP.length;t++)a[AP[t]].cancel(e)},state:o,steps:a}}const{schedule:IP,cancel:OP,state:LP,steps:DP}=TP("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:rP,!0);let FP;function _P(){FP=void 0}const VP={now:()=>(void 0===FP&&VP.set(LP.isProcessing||QE.useManualTiming?LP.timestamp:performance.now()),FP),set:e=>{FP=e,queueMicrotask(_P)}},zP=e=>t=>"string"==typeof t&&t.startsWith(e),jP=zP("--"),HP=zP("var(--"),BP=e=>!!HP(e)&&$P.test(e.split("/*")[0].trim()),$P=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,WP={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},UP={...WP,transform:e=>YE(0,1,e)},KP={...WP,default:1},GP=e=>Math.round(1e5*e)/1e5,XP=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const qP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,YP=(e,t)=>n=>Boolean("string"==typeof n&&qP.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),ZP=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,a,s]=r.match(XP);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},QP={...WP,transform:e=>Math.round((e=>YE(0,255,e))(e))},JP={test:YP("rgb","red"),parse:ZP("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+QP.transform(e)+", "+QP.transform(t)+", "+QP.transform(n)+", "+GP(UP.transform(r))+")"};const eN={test:YP("#"),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:JP.transform},tN=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),nN=tN("deg"),rN=tN("%"),oN=tN("px"),iN=tN("vh"),aN=tN("vw"),sN=(()=>({...rN,parse:e=>rN.parse(e)/100,transform:e=>rN.transform(100*e)}))(),lN={test:YP("hsl","hue"),parse:ZP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rN.transform(GP(t))+", "+rN.transform(GP(n))+", "+GP(UP.transform(r))+")"},cN={test:e=>JP.test(e)||eN.test(e)||lN.test(e),parse:e=>JP.test(e)?JP.parse(e):lN.test(e)?lN.parse(e):eN.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?JP.transform(e):lN.transform(e),getAnimatableNone:e=>{const t=cN.parse(e);return t.alpha=0,cN.transform(t)}},uN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const dN="number",fN="color",pN="var",hN="var(",mN="${}",gN=/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 vN(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(gN,(e=>(cN.test(e)?(r.color.push(i),o.push(fN),n.push(cN.parse(e))):e.startsWith(hN)?(r.var.push(i),o.push(pN),n.push(e)):(r.number.push(i),o.push(dN),n.push(parseFloat(e))),++i,mN))).split(mN);return{values:n,split:a,indexes:r,types:o}}function bN(e){return vN(e).values}function wN(e){const{split:t,types:n}=vN(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===dN?GP(e[i]):t===fN?cN.transform(e[i]):e[i]}return o}}const yN=e=>"number"==typeof e?0:cN.test(e)?cN.getAnimatableNone(e):e;const xN={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(XP)?.length||0)+(e.match(uN)?.length||0)>0},parse:bN,createTransformer:wN,getAnimatableNone:function(e){const t=bN(e);return wN(e)(t.map(yN))}};function CN(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 SN(e,t){return n=>n>0?t:e}const kN=(e,t,n)=>e+(t-e)*n,EN=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},PN=[eN,JP,lN];function NN(e){const t=(e=>PN.find((t=>t.test(e))))(e);if(!Boolean(t))return!1;let n=t.parse(e);return t===lN&&(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=CN(s,r,e+1/3),i=CN(s,r,e),a=CN(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 RN=(e,t)=>{const n=NN(e),r=NN(t);if(!n||!r)return SN(e,t);const o={...n};return e=>(o.red=EN(n.red,r.red,e),o.green=EN(n.green,r.green,e),o.blue=EN(n.blue,r.blue,e),o.alpha=kN(n.alpha,r.alpha,e),JP.transform(o))},MN=new Set(["none","hidden"]);function AN(e,t){return n=>kN(e,t,n)}function TN(e){return"number"==typeof e?AN:"string"==typeof e?BP(e)?SN:cN.test(e)?RN:LN:Array.isArray(e)?IN:"object"==typeof e?cN.test(e)?RN:ON:SN}function IN(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>TN(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function ON(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=TN(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const LN=(e,t)=>{const n=xN.createTransformer(t),r=vN(e),o=vN(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?MN.has(e)&&!o.values.length||MN.has(t)&&!r.values.length?function(e,t){return MN.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):iP(IN(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):SN(e,t)};function DN(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return kN(e,t,n);return TN(e)(e,t)}const FN=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>IP.update(t,e),stop:()=>OP(t),now:()=>LP.isProcessing?LP.timestamp:VP.now()}},_N=(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)})`},VN=2e4;function zN(e){let t=0;let n=e.next(t);for(;!n.done&&t<VN;)t+=50,n=e.next(t);return t>=VN?1/0:t}const jN=5;function HN(e,t,n){const r=Math.max(t-jN,0);return uP(n-e(r),t-r)}const BN={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},$N=.001;function WN({duration:e=BN.duration,bounce:t=BN.bounce,velocity:n=BN.velocity,mass:r=BN.mass}){let o,i,a=1-t;a=YE(BN.minDamping,BN.maxDamping,a),e=YE(BN.minDuration,BN.maxDuration,cP(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=KN(t,a),l=Math.exp(-o);return $N-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=KN(Math.pow(t,2),a);return(-o(t)+$N>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<UN;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=lP(e),isNaN(s))return{stiffness:BN.stiffness,damping:BN.damping,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const UN=12;function KN(e,t){return e*Math.sqrt(1-t*t)}const GN=["duration","bounce"],XN=["stiffness","damping","mass"];function qN(e,t){return t.some((t=>void 0!==e[t]))}function YN(e=BN.visualDuration,t=BN.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:BN.velocity,stiffness:BN.stiffness,damping:BN.damping,mass:BN.mass,isResolvedFromDuration:!1,...e};if(!qN(e,XN)&&qN(e,GN))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*YE(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:BN.mass,stiffness:o,damping:i}}else{const n=WN(e);t={...t,...n,mass:BN.mass},t.isResolvedFromDuration=!0}return t}({...n,velocity:-cP(n.velocity||0)}),h=f||0,m=c/(2*Math.sqrt(l*u)),g=a-i,v=cP(Math.sqrt(l/u)),b=Math.abs(g)<5;let w;if(r||(r=b?BN.restSpeed.granular:BN.restSpeed.default),o||(o=b?BN.restDelta.granular:BN.restDelta.default),m<1){const e=KN(v,m);w=t=>{const n=Math.exp(-m*v*t);return a-n*((h+m*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)w=e=>a-Math.exp(-v*e)*(g+(h+v*g)*e);else{const e=v*Math.sqrt(m*m-1);w=t=>{const n=Math.exp(-m*v*t),r=Math.min(e*t,300);return a-n*((h+m*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?h:0;m<1&&(n=0===e?lP(h):HN(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(zN(y),VN),t=_N((t=>y.next(e*t).value),e,30);return e+"ms "+t},toTransition:()=>{}};return y}function ZN({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 h=n*t;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const v=e=>-h*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=YN({keyframes:[f.value,p(f.value)],velocity:HN(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 QN(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(ZE(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||QE.mix||DN,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]||rP:t;i=iP(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=aP(e[r],e[r+1],n);return s[r](o)};return n?t=>c(YE(e[0],e[i-1],t)):c}function JN(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=aP(0,t,r);e.push(kN(n,1,o))}}(t,e.length-1),t}function eR({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(MP):MP(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:JN(t),e),s=QN(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||PP)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}YN.applyToOptions=e=>{const t=function(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(zN(r),VN);return{type:"keyframes",ease:e=>r.next(o*e).value/t,duration:cP(o)}}(e,100,YN);return e.ease=t.ease,e.duration=lP(t.duration),e.type="keyframes",e};const tR=e=>null!==e;function nR(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(tR),a=o<0||t&&"loop"!==n&&t%2==1?0:i.length-1;return a&&void 0!==r?r:i[a]}const rR={decay:ZN,inertia:ZN,tween:eR,keyframes:eR,spring:YN};function oR(e){"string"==typeof e.type&&(e.type=rR[e.type])}class iR{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 aR=e=>e/100;class sR extends iR{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!==VP.now()&&this.tick(VP.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;oR(e);const{type:t=eR,repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=e;let{keyframes:a}=e;const s=t||eR;s!==eR&&"number"!=typeof a[0]&&(this.mixKeyframes=iP(aR,DN(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=zN(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:h,finalKeyframe:m}=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=YE(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!==ZN&&(y.value=nR(c,this.options,m,this.speed)),h&&h(y.value),C&&this.finish(),y}then(e,t){return this.finished.then(e,t)}get duration(){return cP(this.calculatedDuration)}get time(){return cP(this.currentTime)}set time(e){e=lP(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(VP.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=cP(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=FN,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(VP.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 lR=e=>180*e/Math.PI,cR=e=>{const t=lR(Math.atan2(e[1],e[0]));return dR(t)},uR={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:cR,rotateZ:cR,skewX:e=>lR(Math.atan(e[1])),skewY:e=>lR(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},dR=e=>((e%=360)<0&&(e+=360),e),fR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),pR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),hR={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fR,scaleY:pR,scale:e=>(fR(e)+pR(e))/2,rotateX:e=>dR(lR(Math.atan2(e[6],e[5]))),rotateY:e=>dR(lR(Math.atan2(-e[2],e[0]))),rotateZ:cR,rotate:cR,skewX:e=>lR(Math.atan(e[4])),skewY:e=>lR(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function mR(e){return e.includes("scale")?1:0}function gR(e,t){if(!e||"none"===e)return mR(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=hR,o=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=uR,o=t}if(!o)return mR(t);const i=r[t],a=o[1].split(",").map(vR);return"function"==typeof i?i(a):a[i]}function vR(e){return parseFloat(e.trim())}const bR=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wR=(()=>new Set(bR))(),yR=e=>e===WP||e===oN,xR=new Set(["x","y","z"]),CR=bR.filter((e=>!xR.has(e)));const SR={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})=>gR(t,"x"),y:(e,{transform:t})=>gR(t,"y")};SR.translateX=SR.x,SR.translateY=SR.y;const kR=new Set;let ER=!1,PR=!1,NR=!1;function RR(){if(PR){const e=Array.from(kR).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 CR.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)}))}PR=!1,ER=!1,kR.forEach((e=>e.complete(NR))),kR.clear()}function MR(){kR.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(PR=!0)}))}class AR{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?(kR.add(this),ER||(ER=!0,IP.read(MR),IP.resolveKeyframes(RR))):(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),kR.delete(this)}cancel(){"scheduled"===this.state&&(kR.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const TR=nP((()=>void 0!==window.ScrollTimeline)),IR={};function OR(e,t){const n=nP(e);return()=>IR[t]??n()}const LR=OR((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),DR=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,FR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:DR([0,.65,.55,1]),circOut:DR([.55,0,1,.45]),backIn:DR([.31,.01,.66,-.59]),backOut:DR([.33,1.53,.69,.99])};function _R(e,t){return e?"function"==typeof e?LR()?_N(e,t):"ease-out":NP(e)?DR(e):Array.isArray(e)?e.map((e=>_R(e,t)||FR.easeOut)):FR[e]:void 0}function VR(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=_R(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 zR(e){return"function"==typeof e&&"applyToOptions"in e}class jR extends iR{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,ZE("string"!=typeof e.type);const l=function({type:e,...t}){return zR(e)&&LR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=VR(t,n,r,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const e=nR(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 cP(Number(e))}get time(){return cP(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=lP(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&&TR()?(this.animation.timeline=e,rP):t(this)}}const HR={anticipate:yP,backInOut:wP,circInOut:SP};function BR(e){"string"==typeof e.ease&&e.ease in HR&&(e.ease=HR[e.ease])}class $R extends jR{constructor(e){BR(e),oR(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 sR({...i,autoplay:!1}),s=lP(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}const WR=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!xN.test(e)&&"0"!==e||e.startsWith("url(")));const UR=new Set(["opacity","clipPath","filter","transform"]),KR=nP((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class GR extends iR{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=VP.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||AR;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=VP.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=WR(o,t),s=WR(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||zR(n))&&r)}(e,o,i,a)||(!QE.instantAnimations&&s||c?.(nR(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 KR()&&n&&UR.has(n)&&("transform"!==n||!c)&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==a}(u)?new $R({...u,element:u.motionValue.owner.current}):new sR(u);d.finished.then((()=>this.notifyFinished())).catch(rP),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(),NR=!0,MR(),RR(),NR=!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 XR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qR(e,t,n=1){const[r,o]=function(e){const t=XR.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 JE(e)?parseFloat(e):e}return BP(o)?qR(o,t,n+1):o}function YR(e,t){return e?.[t]??e?.default??e}const ZR=new Set(["width","height","top","left","right","bottom",...bR]),QR=e=>t=>t.test(e),JR=[WP,oN,rN,nN,aN,iN,{test:e=>"auto"===e,parse:e=>e}],eM=e=>JR.find(QR(e));const tM=new Set(["brightness","contrast","saturate","opacity"]);function nM(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(XP)||[];if(!r)return e;const o=n.replace(r,"");let i=tM.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const rM=/\b([a-z-]*)\(.*?\)/gu,oM={...xN,getAnimatableNone:e=>{const t=e.match(rM);return t?t.map(nM).join(" "):e}},iM={...WP,transform:Math.round},aM={borderWidth:oN,borderTopWidth:oN,borderRightWidth:oN,borderBottomWidth:oN,borderLeftWidth:oN,borderRadius:oN,radius:oN,borderTopLeftRadius:oN,borderTopRightRadius:oN,borderBottomRightRadius:oN,borderBottomLeftRadius:oN,width:oN,maxWidth:oN,height:oN,maxHeight:oN,top:oN,right:oN,bottom:oN,left:oN,padding:oN,paddingTop:oN,paddingRight:oN,paddingBottom:oN,paddingLeft:oN,margin:oN,marginTop:oN,marginRight:oN,marginBottom:oN,marginLeft:oN,backgroundPositionX:oN,backgroundPositionY:oN,...{rotate:nN,rotateX:nN,rotateY:nN,rotateZ:nN,scale:KP,scaleX:KP,scaleY:KP,scaleZ:KP,skew:nN,skewX:nN,skewY:nN,distance:oN,translateX:oN,translateY:oN,translateZ:oN,x:oN,y:oN,z:oN,perspective:oN,transformPerspective:oN,opacity:UP,originX:sN,originY:sN,originZ:oN},zIndex:iM,fillOpacity:UP,strokeOpacity:UP,numOctaves:iM},sM={...aM,color:cN,backgroundColor:cN,outlineColor:cN,fill:cN,stroke:cN,borderColor:cN,borderTopColor:cN,borderRightColor:cN,borderBottomColor:cN,borderLeftColor:cN,filter:oM,WebkitFilter:oM},lM=e=>sM[e];function cM(e,t){let n=lM(e);return n!==oM&&(n=xN),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const uM=new Set(["auto","none","0"]);class dM extends AR{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(),BP(r))){const o=qR(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ZR.has(n)||2!==e.length)return;const[r,o]=e,i=eM(r),a=eM(o);if(i!==a)if(yR(i)&&yR(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else SR[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||tP(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&&!uM.has(t)&&vN(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=cM(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=SR[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]=SR[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 fM=(e,t)=>t&&"number"==typeof e?t.transform(e):e;function pM(e){return eP(e)&&"offsetHeight"in e}class hM{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=VP.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=VP.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 sP);const n=this.events[e].add(t);return"change"===e?()=>{n(),IP.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=VP.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return uP(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 mM(e,t){return new hM(e,t)}const{schedule:gM}=TP(queueMicrotask,!1),vM={x:!1,y:!1};function bM(){return vM.x||vM.y}function wM(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 yM(e){return!("touch"===e.pointerType||bM())}const xM=(e,t)=>!!t&&(e===t||xM(e,t.parentElement)),CM=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,SM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const kM=new WeakSet;function EM(e){return t=>{"Enter"===t.key&&e(t)}}function PM(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function NM(e){return CM(e)&&!bM()}function RM(e,t,n={}){const[r,o,i]=wM(e,n),a=e=>{const r=e.currentTarget;if(!NM(e))return;kM.add(r);const i=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),kM.has(r)&&kM.delete(r),NM(e)&&"function"==typeof i&&i(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||xM(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),pM(e)&&(e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=EM((()=>{if(kM.has(n))return;PM(n,"down");const e=EM((()=>{PM(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>PM(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o))),t=e,SM.has(t.tagName)||-1!==t.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))})),i}function MM(e){return eP(e)&&"ownerSVGElement"in e}const AM=e=>Boolean(e&&e.getVelocity),TM=[...JR,cN,xN],IM=i({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class OM extends r.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=t.offsetParent,n=pM(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 LM({children:t,isPresent:n,anchorX:o,root:i}){const a=x(),s=m(null),c=m({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=l(IM);return C((()=>{const{width:e,height:t,top:r,left:l,right:d}=c.current;if(n||!s.current||!e||!t)return;const f="left"===o?`left: ${l}`:`right: ${d}`;s.current.dataset.motionPopId=a;const p=document.createElement("style");u&&(p.nonce=u);const h=i??document.head;return h.appendChild(p),p.sheet&&p.sheet.insertRule(`\n [data-motion-pop-id="${a}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n ${f}px !important;\n top: ${r}px !important;\n }\n `),()=>{h.removeChild(p),h.contains(p)&&h.removeChild(p)}}),[n]),e(OM,{isPresent:n,childRef:s,sizeRef:c,children:r.cloneElement(t,{ref:s})})}const DM=({children:t,initial:n,isPresent:o,onExitComplete:i,custom:s,presenceAffectsLayout:l,mode:c,anchorX:u,root:d})=>{const f=WE(FM),p=x();let h=!0,m=a((()=>(h=!1,{id:p,initial:n,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&&h&&(m={...m}),a((()=>{f.forEach(((e,t)=>f.set(t,!1)))}),[o]),r.useEffect((()=>{!o&&!f.size&&i&&i()}),[o]),"popLayout"===c&&(t=e(LM,{isPresent:o,anchorX:u,root:d,children:t})),e(GE.Provider,{value:m,children:t})};function FM(){return new Map}function _M(e=!0){const t=l(GE);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=x();g((()=>{if(e)return o(i)}),[e]);const a=c((()=>e&&r&&r(i)),[i,r,e]);return!n&&r?[!1,a]:[!0]}const VM=e=>e.key||"";function zM(e){const t=[];return d.forEach(e,(e=>{f(e)&&t.push(e)})),t}const jM=({children:t,custom:r,initial:o=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:c="sync",propagate:u=!1,anchorX:d="left",root:f})=>{const[p,h]=_M(u),g=a((()=>zM(t)),[t]),b=u&&!p?[]:g.map(VM),w=m(!0),y=m(g),x=WE((()=>new Map)),[C,S]=v(g),[k,E]=v(g);KE((()=>{w.current=!1,y.current=g;for(let e=0;e<k.length;e++){const t=VM(k[e]);b.includes(t)?x.delete(t):!0!==x.get(t)&&x.set(t,!1)}}),[k,b.length,b.join("-")]);const P=[];if(g!==C){let e=[...g];for(let t=0;t<k.length;t++){const n=k[t],r=VM(n);b.includes(r)||(e.splice(t,0,n),P.push(n))}return"wait"===c&&P.length&&(e=P),E(zM(e)),S(g),null}const{forceRender:N}=l($E);return e(n,{children:k.map((t=>{const n=VM(t),a=!(u&&!p)&&(g===k||b.includes(n));return e(DM,{isPresent:a,initial:!(w.current&&!o)&&void 0,custom:r,presenceAffectsLayout:s,mode:c,root:f,onExitComplete:a?void 0:()=>{if(!x.has(n))return;x.set(n,!0);let e=!0;x.forEach((t=>{t||(e=!1)})),e&&(N?.(),E(y.current),u&&h?.(),i&&i())},anchorX:d,children:t},n)}))})},HM=i({strict:!1}),BM={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"]},$M={};for(const e in BM)$M[e]={isEnabled:t=>BM[e].some((e=>!!t[e]))};const WM=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 UM(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||WM.has(e)}let KM=e=>!UM(e);try{"function"==typeof(GM=require("@emotion/is-prop-valid").default)&&(KM=e=>e.startsWith("on")?!UM(e):GM(e))}catch{}var GM;const XM=i({});function qM(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function YM(e){return"string"==typeof e||Array.isArray(e)}const ZM=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],QM=["initial",...ZM];function JM(e){return qM(e.animate)||QM.some((t=>YM(e[t])))}function eA(e){return Boolean(JM(e)||e.variants)}function tA(e){const{initial:t,animate:n}=function(e,t){if(JM(e)){const{initial:t,animate:n}=e;return{initial:!1===t||YM(t)?t:void 0,animate:YM(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,l(XM));return a((()=>({initial:t,animate:n})),[nA(t),nA(n)])}function nA(e){return Array.isArray(e)?e.join(" "):e}const rA={};function oA(e,{layout:t,layoutId:n}){return wR.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rA[e]||"opacity"===e)}const iA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},aA=bR.length;function sA(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(wR.has(e))a=!0;else if(jP(e))o[e]=n;else{const t=fM(n,aM[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<aA;i++){const a=bR[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=fM(s,aM[a]);l||(o=!1,r+=`${iA[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 lA=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cA(e,t,n){for(const r in t)AM(t[r])||oA(r,n)||(e[r]=t[r])}function uA(e,t){const n={};return cA(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return a((()=>{const n=lA();return sA(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}function dA(e,t){const n={},r=uA(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 fA={offset:"stroke-dashoffset",array:"stroke-dasharray"},pA={offset:"strokeDashoffset",array:"strokeDasharray"};function hA(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...s},l,c,u){if(sA(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?fA:pA;e[i.offset]=oN.transform(-r);const a=oN.transform(t),s=oN.transform(n);e[i.array]=`${a} ${s}`}(d,o,i,a,!1)}const mA=()=>({...lA(),attrs:{}}),gA=e=>"string"==typeof e&&"svg"===e.toLowerCase();function vA(e,t,n,r){const o=a((()=>{const n=mA();return hA(n,t,gA(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};cA(t,e.style,e),o.style={...t,...o.style}}return o}const bA=["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 wA(e){return"string"==typeof e&&!e.includes("-")&&!!(bA.indexOf(e)>-1||/[A-Z]/u.test(e))}function yA(e,t,n,{latestValues:r},o,i=!1){const l=(wA(e)?vA:dA)(t,r,o,e),c=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(KM(o)||!0===n&&UM(o)||!t&&!UM(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(t,"string"==typeof e,i),u=e!==h?{...c,...l,ref:n}:{},{children:d}=t,f=a((()=>AM(d)?d.get():d),[d]);return s(e,{...u,children:f})}function xA(e){const t=[{},{}];return e?.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function CA(e,t,n,r){if("function"==typeof t){const[o,i]=xA(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]=xA(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function SA(e){return AM(e)?e.get():e}function kA(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=SA(i[e]);let{initial:a,animate:s}=e;const l=JM(e),c=eA(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&&!qM(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=CA(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 EA=e=>(t,n)=>{const r=l(XM),o=l(GE),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:kA(n,r,o,e),renderState:t()}}(e,t,r,o);return n?i():WE(i)};function PA(e,t,n){const{style:r}=e,o={};for(const i in r)(AM(r[i])||t.style&&AM(t.style[i])||oA(i,e)||void 0!==n?.getValue(i)?.liveStyle)&&(o[i]=r[i]);return o}const NA=EA({scrapeMotionValuesFromProps:PA,createRenderState:lA});function RA(e,t,n){const r=PA(e,t,n);for(const n in e)if(AM(e[n])||AM(t[n])){r[-1!==bR.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}const MA=EA({scrapeMotionValuesFromProps:RA,createRenderState:mA}),AA=Symbol.for("motionComponentSymbol");function TA(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function IA(e,t,n){return c((r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):TA(n)&&(n.current=r))}),[t])}const OA=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),LA="data-"+OA("framerAppearId"),DA=i({});function FA(e,t,n,r,o){const{visualElement:i}=l(XM),a=l(HM),s=l(GE),c=l(IM).reducedMotion,u=m(null);r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:c}));const d=u.current,f=l(DA);!d||d.projection||!o||"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:_A(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&TA(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}(u.current,n,o,f);const p=m(!1);C((()=>{d&&p.current&&d.update(n,s)}));const h=n[LA],v=m(Boolean(h)&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return KE((()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),v.current&&d.animationState&&d.animationState.animateChanges())})),g((()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask((()=>{window.MotionHandoffMarkAsComplete?.(h)})),v.current=!1))})),d}function _A(e){if(e)return!1!==e.options.allowProjection?e.projection:_A(e.parent)}function VA(n,{forwardMotionProps:r=!1}={},o,i){o&&function(e){for(const t in e)$M[t]={...$M[t],...e[t]}}(o);const a=wA(n)?MA:NA;function s(o,s){let c;const u={...l(IM),...o,layoutId:zA(o)},{isStatic:d}=u,f=tA(o),p=a(o,d);if(!d&&UE){l(HM).strict;const e=function(e){const{drag:t,layout:n}=$M;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);c=e.MeasureLayout,f.visualElement=FA(n,p,u,i,e.ProjectionNode)}return t(XM.Provider,{value:f,children:[c&&f.visualElement?e(c,{visualElement:f.visualElement,...u}):null,yA(n,o,IA(p,f.visualElement,s),p,d,r)]})}s.displayName=`motion.${"string"==typeof n?n:`create(${n.displayName??n.name??""})`}`;const c=u(s);return c[AA]=n,c}function zA({layoutId:e}){const t=l($E).id;return t&&void 0!==e?t+"-"+e:e}function jA(e,t){if("undefined"==typeof Proxy)return VA;const n=new Map,r=(n,r)=>VA(n,r,e,t);return new Proxy(((e,t)=>r(e,t)),{get:(o,i)=>"create"===i?r:(n.has(i)||n.set(i,VA(i,void 0,e,t)),n.get(i))})}function HA({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BA(e){return void 0===e||1===e}function $A({scale:e,scaleX:t,scaleY:n}){return!BA(e)||!BA(t)||!BA(n)}function WA(e){return $A(e)||UA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function UA(e){return KA(e.x)||KA(e.y)}function KA(e){return e&&"0%"!==e}function GA(e,t,n){return n+t*(e-n)}function XA(e,t,n,r,o){return void 0!==o&&(e=GA(e,o,r)),GA(e,n,r)+t}function qA(e,t=0,n=1,r,o){e.min=XA(e.min,t,n,r,o),e.max=XA(e.max,t,n,r,o)}function YA(e,{x:t,y:n}){qA(e.x,t.translate,t.scale,t.originPoint),qA(e.y,n.translate,n.scale,n.originPoint)}const ZA=.999999999999,QA=1.0000000000001;function JA(e,t){e.min=e.min+t,e.max=e.max+t}function eT(e,t,n,r,o=.5){qA(e,t,n,kN(e.min,e.max,o),r)}function tT(e,t){eT(e.x,t.x,t.scaleX,t.scale,t.originX),eT(e.y,t.y,t.scaleY,t.scale,t.originY)}function nT(e,t){return HA(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 rT=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),oT=()=>({x:{min:0,max:0},y:{min:0,max:0}}),iT={current:null},aT={current:!1};const sT=new WeakMap;const lT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class cT{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=AR,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=VP.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,IP.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=JM(t),this.isVariantNode=eA(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]&&AM(t)&&t.set(s[e],!1)}}mount(e){this.current=e,sT.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))),aT.current||function(){if(aT.current=!0,UE)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iT.current=e.matches;e.addEventListener("change",t),t()}else iT.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iT.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),OP(this.notifyUpdate),OP(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=wR.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&IP.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 $M){const t=$M[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):oT()}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<lT.length;t++){const n=lT[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(AM(o))e.addValue(r,o);else if(AM(i))e.addValue(r,mM(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,mM(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=mM(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&&(JE(n)||tP(n))?n=parseFloat(n):!(e=>TM.find(QR(e)))(n)&&xN.test(t)&&(n=cM(e,t)),this.setBaseTarget(e,AM(n)?n.get():n)),AM(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=CA(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||AM(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 sP),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){gM.render(this.render)}}class uT extends cT{constructor(){super(...arguments),this.KeyframeResolver=dM}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;AM(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}function dT(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 fT extends uT{constructor(){super(...arguments),this.type="html",this.renderInstance=dT}readValueFromInstance(e,t){if(wR.has(t))return this.projection?.isProjecting?mR(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return gR(n,t)})(e,t);{const r=(n=e,window.getComputedStyle(n)),o=(jP(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return nT(e,t)}build(e,t,n){sA(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return PA(e,t,n)}}const pT=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 hT extends uT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=oT}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(wR.has(t)){const e=lM(t);return e&&e.default||0}return t=pT.has(t)?t:OA(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return RA(e,t,n)}build(e,t,n){hA(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){dT(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(pT.has(n)?n:OA(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=gA(e.tagName),super.mount(e)}}const mT=(e,t)=>wA(e)?new hT(t):new fT(t,{allowProjection:e!==h});function gT(e,t,n){const r=e.getProps();return CA(r,t,void 0!==n?n:r.custom,e)}const vT=e=>Array.isArray(e);function bT(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,mM(n))}function wT(e){return vT(e)?e[e.length-1]||0:e}function yT(e,t){const n=e.getValue("willChange");if(r=n,Boolean(AM(r)&&r.add))return n.add(t);if(!n&&QE.WillChange){const n=new QE.WillChange("auto");e.addValue("willChange",n),n.add(t)}var r}function xT(e){return e.props[LA]}const CT=e=>null!==e;const ST={type:"spring",stiffness:500,damping:25,restSpeed:10},kT={type:"keyframes",duration:.8},ET={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PT=(e,{keyframes:t})=>t.length>2?kT:wR.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:ST:ET;const NT=(e,t,n,r={},o,i)=>a=>{const s=YR(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=lP(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,PT(e,u)),u.duration&&(u.duration=lP(u.duration)),u.repeatDelay&&(u.repeatDelay=lP(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)),(QE.instantAnimations||QE.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(CT);return o[t&&"loop"!==n&&t%2==1?0:o.length-1]}(u.keyframes,s);if(void 0!==e)return void IP.update((()=>{u.onUpdate(e),u.onComplete()}))}return s.isSync?new sR(u):new GR(u)};function RT({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function MT(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&&RT(c,t))continue;const a={delay:n,...YR(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=xT(e);if(n){const e=window.MotionHandoffAnimation(n,t,IP);null!==e&&(a.startTime=e,d=!0)}}yT(e,t),r.start(NT(t,r,o,e.shouldReduceMotion&&ZR.has(t)?{type:!1}:a,e,d));const f=r.animation;f&&l.push(f)}return a&&Promise.all(l).then((()=>{IP.update((()=>{a&&function(e,t){const n=gT(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)bT(e,t,wT(i[t]))}(e,a)}))})),l}function AT(e,t,n={}){const r=gT(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(MT(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(TT).forEach(((e,o)=>{e.notify("AnimationStart",t),s.push(AT(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 TT(e,t){return e.sortNodePosition(t)}function IT(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 OT=QM.length;function LT(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&LT(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<OT;n++){const r=QM[n],o=e.props[r];(YM(o)||!1===o)&&(t[r]=o)}return t}const DT=[...ZM].reverse(),FT=ZM.length;function _T(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=>AT(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=AT(e,t,n);else{const o="function"==typeof t?gT(e,t,n.custom):t;r=Promise.all(MT(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}function VT(e){let t=_T(e),n=HT(),r=!0;const o=t=>(n,r)=>{const o=gT(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=LT(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<FT;t++){const f=DT[t],p=n[f],h=void 0!==a[f]?a[f]:s[f],m=YM(h),g=f===i?p.isActive:null;!1===g&&(d=t);let v=h===s[f]&&h!==a[f]&&m;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...u},!p.isActive&&null===g||!h&&!p.prevProp||qM(h)||"boolean"==typeof h)continue;const b=zT(p.prevProp,h);let w=b||f===i&&p.isActive&&!v&&m||t>d&&m,y=!1;const x=Array.isArray(h)?h:[h];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=vT(t)&&vT(n)?!IT(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=h,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=gT(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=HT(),r=!0}}}function zT(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!IT(t,e)}function jT(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function HT(){return{animate:jT(!0),whileInView:jT(),whileHover:jT(),whileTap:jT(),whileDrag:jT(),whileFocus:jT(),exit:jT()}}class BT{constructor(e){this.isMounted=!1,this.node=e}update(){}}let $T=0;const WT={animation:{Feature:class extends BT{constructor(e){super(e),e.animationState||(e.animationState=VT(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();qM(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 BT{constructor(){super(...arguments),this.id=$T++}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 UT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function KT(e){return{point:{x:e.pageX,y:e.pageY}}}function GT(e,t,n,r){return UT(e,t,(e=>t=>CM(t)&&e(t,KT(t)))(n),r)}const XT=.9999,qT=1.0001,YT=-.01,ZT=.01;function QT(e){return e.max-e.min}function JT(e,t,n,r=.5){e.origin=r,e.originPoint=kN(t.min,t.max,e.origin),e.scale=QT(n)/QT(t),e.translate=kN(n.min,n.max,e.origin)-e.originPoint,(e.scale>=XT&&e.scale<=qT||isNaN(e.scale))&&(e.scale=1),(e.translate>=YT&&e.translate<=ZT||isNaN(e.translate))&&(e.translate=0)}function eI(e,t,n,r){JT(e.x,t.x,n.x,r?r.originX:void 0),JT(e.y,t.y,n.y,r?r.originY:void 0)}function tI(e,t,n){e.min=n.min+t.min,e.max=e.min+QT(t)}function nI(e,t,n){e.min=t.min-n.min,e.max=e.min+QT(t)}function rI(e,t,n){nI(e.x,t.x,n.x),nI(e.y,t.y,n.y)}function oI(e){return[e("x"),e("y")]}const iI=({current:e})=>e?e.ownerDocument.defaultView:null,aI=(e,t)=>Math.abs(e-t);class sI{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=uI(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=aI(e.x,t.x),r=aI(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}=LP;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=lI(t,this.transformPagePoint),IP.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=uI("pointercancel"===e.type?this.lastMoveEventInfo:lI(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!CM(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=r||window;const a=lI(KT(e),this.transformPagePoint),{point:s}=a,{timestamp:l}=LP;this.history=[{...s,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,uI(a,this.history)),this.removeListeners=iP(GT(this.contextWindow,"pointermove",this.handlePointerMove),GT(this.contextWindow,"pointerup",this.handlePointerUp),GT(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),OP(this.updatePoint)}}function lI(e,t){return t?{point:t(e.point)}:e}function cI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uI({point:e},t){return{point:e,delta:cI(e,fI(t)),offset:cI(e,dI(t)),velocity:pI(t,.1)}}function dI(e){return e[0]}function fI(e){return e[e.length-1]}function pI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=fI(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>lP(t)));)n--;if(!r)return{x:0,y:0};const i=cP(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 hI(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 mI(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 gI=.35;function vI(e,t,n){return{min:bI(e,t),max:bI(e,n)}}function bI(e,t){return"number"==typeof e?e:e[t]||0}const wI=new WeakMap;class yI{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=oT(),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 sI(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(KT(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?vM[i]?null:(vM[i]=!0,()=>{vM[i]=!1}):vM.x||vM.y?null:(vM.x=vM.y=!0,()=>{vM.x=vM.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),oI((e=>{let t=this.getAxisMotionValue(e).get()||0;if(rN.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=QT(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&IP.postRender((()=>o(e,t))),yT(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:()=>oI((e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:n,contextWindow:iI(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&&IP.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||!xI(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?kN(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?kN(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&&TA(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:hI(e.x,n,o),y:hI(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=gI){return!1===e?e=0:!0===e&&(e=gI),{x:vI(e,"left","right"),y:vI(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&oI((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||!TA(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=nT(e,n),{scroll:o}=t;return o&&(JA(r.x,o.offset.x),JA(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:mI(e.x,t.x),y:mI(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=HA(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=oI((a=>{if(!xI(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 yT(this.visualElement,e),n.start(NT(e,n,0,t,this.visualElement,!1))}stopAnimation(){oI((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){oI((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){oI((t=>{const{drag:n}=this.getProps();if(!xI(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]-kN(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!TA(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};oI((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=QT(e),o=QT(t);return o>r?n=aP(t.min,t.max-r,e.min):r>o&&(n=aP(e.min,e.max-o,t.min)),YE(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(),oI((t=>{if(!xI(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(kN(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;wI.set(this.visualElement,this);const e=GT(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();TA(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()),IP.read(t);const o=UT(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(oI((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=gI,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function xI(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const CI=e=>(t,n)=>{e&&IP.postRender((()=>e(t,n)))};const SI={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const EI={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!oN.test(e))return e;e=parseFloat(e)}return`${kI(e,t.target.x)}% ${kI(e,t.target.y)}%`}},PI={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=xN.parse(e);if(o.length>5)return r;const i=xN.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=kN(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 NI=!1;class RI extends S{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;!function(e){for(const t in e)rA[t]=e[t],jP(t)&&(rA[t].isCSSVariable=!0)}(AI),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),NI&&o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),SI.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,{projection:i}=n;return i?(i.isPresent=o,NI=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==o?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||IP.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),gM.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 MI(t){const[n,r]=_M(),o=l($E);return e(RI,{...t,layoutGroup:o,switchLayoutGroup:l(DA),isPresent:n,safeToRemove:r})}const AI={borderRadius:{...EI,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:EI,borderTopRightRadius:EI,borderBottomLeftRadius:EI,borderBottomRightRadius:EI,boxShadow:PI};const TI=(e,t)=>e.depth-t.depth;class II{constructor(){this.children=[],this.isDirty=!1}add(e){XE(this.children,e),this.isDirty=!0}remove(e){qE(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(TI),this.isDirty=!1,this.children.forEach(e)}}const OI=["TopLeft","TopRight","BottomLeft","BottomRight"],LI=OI.length,DI=e=>"string"==typeof e?parseFloat(e):e,FI=e=>"number"==typeof e||oN.test(e);function _I(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const VI=jI(0,.5,CP),zI=jI(.5,.95,rP);function jI(e,t,n){return r=>r<e?0:r>t?1:n(aP(e,t,r))}function HI(e,t){e.min=t.min,e.max=t.max}function BI(e,t){HI(e.x,t.x),HI(e.y,t.y)}function $I(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function WI(e,t,n,r,o){return e=GA(e-=t,1/n,r),void 0!==o&&(e=GA(e,1/o,r)),e}function UI(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){rN.test(t)&&(t=parseFloat(t),t=kN(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=kN(i.min,i.max,r);e===i&&(s-=t),e.min=WI(e.min,t,n,s,o),e.max=WI(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const KI=["x","scaleX","originX"],GI=["y","scaleY","originY"];function XI(e,t,n,r){UI(e.x,t,KI,n?n.x:void 0,r?r.x:void 0),UI(e.y,t,GI,n?n.y:void 0,r?r.y:void 0)}function qI(e){return 0===e.translate&&1===e.scale}function YI(e){return qI(e.x)&&qI(e.y)}function ZI(e,t){return e.min===t.min&&e.max===t.max}function QI(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function JI(e,t){return QI(e.x,t.x)&&QI(e.y,t.y)}function eO(e){return QT(e.x)/QT(e.y)}function tO(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nO{constructor(){this.members=[]}add(e){XE(this.members,e),e.scheduleRender()}remove(e){if(qE(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 rO=["","X","Y","Z"];let oO=0;function iO(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function aO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=xT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",IP,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&aO(r)}function sO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=t?.()){this.id=oO++,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(uO),this.nodes.forEach(vO),this.nodes.forEach(bO),this.nodes.forEach(dO)},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 II)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new sP),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=MM(t)&&!(MM(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;IP.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=VP.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(OP(r),e(i-t))};return IP.setup(r,!0),()=>OP(r)}(o,250),SI.hasAnimatedSinceResize&&(SI.hasAnimatedSinceResize=!1,this.nodes.forEach(gO)))}))}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()||kO,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!JI(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={...YR(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||gO(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(),OP(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(wO),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&&aO(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(pO);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(hO);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mO),this.nodes.forEach(lO),this.nodes.forEach(cO)):this.nodes.forEach(hO),this.clearAllSnapshots();const e=VP.now();LP.delta=YE(0,1e3/60,e-LP.timestamp),LP.timestamp=e,LP.isProcessing=!0,DP.update.process(LP),DP.preRender.process(LP),DP.render.process(LP),LP.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gM.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fO),this.sharedNodes.forEach(yO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,IP.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){IP.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||QT(this.snapshot.measuredBox.x)||QT(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=oT(),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&&!YI(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||WA(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)),NO((r=n).x),NO(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return oT();const t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(MO))){const{scroll:e}=this.root;e&&(JA(t.x,e.offset.x),JA(t.y,e.offset.y))}return t}removeElementScroll(e){const t=oT();if(BI(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&&BI(t,e),JA(t.x,o.offset.x),JA(t.y,o.offset.y))}return t}applyTransform(e,t=!1){const n=oT();BI(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&&tT(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),WA(r.latestValues)&&tT(n,r.latestValues)}return WA(this.latestValues)&&tT(n,this.latestValues),n}removeTransform(e){const t=oT();BI(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!WA(n.latestValues))continue;$A(n.latestValues)&&n.updateSnapshot();const r=oT();BI(r,n.measurePageBox()),XI(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return WA(this.latestValues)&&XI(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!==LP.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=LP.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=oT(),this.relativeTargetOrigin=oT(),rI(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),BI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var i,a,s;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target=oT(),this.targetWithTransforms=oT()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,a=this.relativeTarget,s=this.relativeParent.target,tI(i.x,a.x,s.x),tI(i.y,a.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):BI(this.target,this.layout.layoutBox),YA(this.target,this.targetDelta)):BI(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=oT(),this.relativeTargetOrigin=oT(),rI(this.relativeTargetOrigin,this.target,e.target),BI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!$A(this.parent.latestValues)&&!UA(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===LP.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;BI(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&&tT(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,YA(e,a)),r&&WA(i.latestValues)&&tT(e,i.latestValues))}t.x<QA&&t.x>ZA&&(t.x=1),t.y<QA&&t.y>ZA&&(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=oT());const{target:s}=e;s?(this.projectionDelta&&this.prevProjectionDelta?($I(this.prevProjectionDelta.x,this.projectionDelta.x),$I(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),eI(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===i&&this.treeScale.y===a&&tO(this.projectionDelta.x,this.prevProjectionDelta.x)&&tO(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=rT(),this.projectionDelta=rT(),this.projectionDeltaWithTransform=rT()}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=rT();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=oT(),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(SO));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;xO(i.x,e.x,n),xO(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rI(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){CO(e.x,t.x,n.x,r),CO(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return ZI(e.x,t.x)&&ZI(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=oT()),BI(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=kN(0,n.opacity??1,VI(r)),e.opacityExit=kN(t.opacity??1,0,zI(r))):i&&(e.opacity=kN(t.opacity??1,n.opacity??1,r));for(let o=0;o<LI;o++){const i=`border${OI[o]}Radius`;let a=_I(t,i),s=_I(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||FI(a)===FI(s)?(e[i]=Math.max(kN(DI(a),DI(s),r),0),(rN.test(s)||rN.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=kN(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&&(OP(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=IP.update((()=>{SI.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mM(0)),this.currentAnimation=function(e,t,n){const r=AM(e)?e:mM(e);return r.start(NT("",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&&RO(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||oT();const t=QT(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=QT(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}BI(t,n),tT(t,o),eI(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nO);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&&iO("z",e,r,this.animationValues);for(let t=0;t<rO.length;t++)iO(`rotate${rO[t]}`,e,r,this.animationValues),iO(`skew${rO[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=SA(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=SA(t?.pointerEvents)||""),void(this.hasProjected&&!WA(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 rA){if(void 0===o[t])continue;const{correct:n,applyTo:a,isCSSVariable:s}=rA[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?SA(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>e.currentAnimation?.stop())),this.root.nodes.forEach(pO),this.root.sharedNodes.clear()}}}function lO(e){e.updateLayout()}function cO(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?oI((e=>{const r=i?t.measuredBox[e]:t.layoutBox[e],o=QT(r);r.min=n[e].min,r.max=r.min+o})):RO(o,t.layoutBox,n)&&oI((r=>{const o=i?t.measuredBox[r]:t.layoutBox[r],a=QT(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=rT();eI(a,n,t.layoutBox);const s=rT();i?eI(s,e.applyTransform(r,!0),t.measuredBox):eI(s,n,t.layoutBox);const l=!YI(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=oT();rI(a,t.layoutBox,o.layoutBox);const s=oT();rI(s,n,i.layoutBox),JI(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 uO(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 dO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fO(e){e.clearSnapshot()}function pO(e){e.clearMeasurements()}function hO(e){e.isLayoutDirty=!1}function mO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function gO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vO(e){e.resolveTargetDelta()}function bO(e){e.calcProjection()}function wO(e){e.resetSkewAndRotation()}function yO(e){e.removeLeadSnapshot()}function xO(e,t,n){e.translate=kN(t.translate,0,n),e.scale=kN(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function CO(e,t,n,r){e.min=kN(t.min,n.min,r),e.max=kN(t.max,n.max,r)}function SO(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const kO={duration:.45,ease:[.4,0,.1,1]},EO=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),PO=EO("applewebkit/")&&!EO("chrome/")?Math.round:rP;function NO(e){e.min=PO(e.min),e.max=PO(e.max)}function RO(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=eO(t),o=eO(n),i=.2,!(Math.abs(r-o)<=i));var r,o,i}function MO(e){return e!==e.root&&e.scroll?.wasRoot}const AO=sO({attachResizeListener:(e,t)=>UT(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),TO={current:void 0},IO=sO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!TO.current){const e=new AO({});e.mount(window),e.setOptions({layoutScroll:!0}),TO.current=e}return TO.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),OO={pan:{Feature:class extends BT{constructor(){super(...arguments),this.removePointerDownListener=rP}onPointerDown(e){this.session=new sI(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iI(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:CI(e),onStart:CI(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&IP.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=GT(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 BT{constructor(e){super(e),this.removeGroupControls=rP,this.removeListeners=rP,this.controls=new yI(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||rP}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:IO,MeasureLayout:MI}};function LO(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&IP.postRender((()=>o(t,KT(t))))}function DO(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&&IP.postRender((()=>o(t,KT(t))))}const FO=new WeakMap,_O=new WeakMap,VO=e=>{const t=FO.get(e.target);t&&t(e)},zO=e=>{e.forEach(VO)};function jO(e,t,n){const r=function({root:e,...t}){const n=e||document;_O.has(n)||_O.set(n,{});const r=_O.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(zO,{root:e,...t})),r[o]}(t);return FO.set(e,n),r.observe(e),()=>{FO.delete(e),r.unobserve(e)}}const HO={some:0,all:1};const BO={inView:{Feature:class extends BT{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:HO[r]};return jO(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 BT{mount(){const{current:e}=this.node;e&&(this.unmount=RM(e,((e,t)=>(DO(this.node,t,"Start"),(e,{success:t})=>DO(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends BT{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=iP(UT(this.node.current,"focus",(()=>this.onFocus())),UT(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends BT{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=wM(e,n),a=e=>{if(!yM(e))return;const{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;const i=e=>{yM(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)=>(LO(this.node,t,"Start"),e=>LO(this.node,e,"End")))))}unmount(){}}}},$O=jA({...WT,...BO,...OO,...{layout:{ProjectionNode:IO,MeasureLayout:MI}}},mT),WO=u((function({description:n,side:r="top",className:o,role:i,...s},l){const c=Va({placement:r}),u=Qo(c,(e=>e.mounted)),d=Qo(c,(e=>e.placement)),{x:f,y:p}=a((()=>{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 t(lc,{store:c,hideTimeout:0,children:[e(pc,{...s,ref:l,role:i,onKeyDown:e=>{"button"===i&&"Enter"===e.key&&(e.preventDefault(),e.target.click())},className:an("cursor-pointer",o)}),e(jM,{children:!0===u&&t(sc,{gutter:4,alwaysVisible:!0,className:"tooltip",render:e($O.div,{initial:{opacity:0,x:f,y:p},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:f,y:p}}),children:[e(yc,{}),n]})})]})})),UO=({className:t,...n})=>e("nav",{role:"navigation","aria-label":"pagination",className:an("mx-auto flex w-full justify-center",t),...n});UO.displayName="Pagination";const KO=r.forwardRef((({className:t,...n},r)=>e("ul",{ref:r,className:an("flex flex-row items-center gap-1",t),...n})));KO.displayName="PaginationContent";const GO=r.forwardRef((({className:t,...n},r)=>e("li",{ref:r,className:an("",t),...n})));GO.displayName="PaginationItem";const XO=({className:t,isActive:n=!1,size:r="icon",children:o,...i})=>e("a",{"aria-current":n?"page":void 0,className:an(gh({variant:n?"outline":"ghost",size:r}),t),...i,children:o||e("span",{className:"sr-only",children:"Page link"})});XO.displayName="PaginationLink";const qO=({className:n,...r})=>t(XO,{"aria-label":"Go to previous page",size:"default",className:an("gap-1 pl-2.5",n),...r,children:[e(qp,{className:"h-4 w-4"}),e("span",{children:"Previous"})]});qO.displayName="PaginationPrevious";const YO=({className:n,...r})=>t(XO,{"aria-label":"Go to next page",size:"default",className:an("gap-1 pr-2.5",n),...r,children:[e("span",{children:"Next"}),e(Yp,{className:"h-4 w-4"})]});YO.displayName="PaginationNext";const ZO=({className:n,...r})=>t("span",{"aria-hidden":!0,className:an("flex h-9 w-9 items-center justify-center",n),...r,children:[e(Qp,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"More pages"})]});function QO(...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 o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function JO(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}ZO.displayName="PaginationEllipsis";var eL=r.forwardRef(((t,n)=>{const{children:o,...i}=t,a=r.Children.toArray(o),s=a.find(rL);if(s){const t=s.props.children,o=a.map((e=>e===s?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(tL,{...i,ref:n,children:r.isValidElement(t)?r.cloneElement(t,void 0,o):null})}return e(tL,{...i,ref:n,children:o})}));eL.displayName="Slot";var tL=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.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),i=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}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?function(...e){return t=>{let n=!1;const r=e.map((e=>{const r=JO(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():JO(e[t],null)}}}}(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));tL.displayName="SlotClone";var nL=({children:t})=>e(n,{children:t});function rL(e){return r.isValidElement(e)&&e.type===nL}var oL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const o=r.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?eL:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(a,{...i,ref:r})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{}),iL="Progress",aL=100,[sL,lL]=function(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;o=[...o,i];const l=n=>{const{scope:o,children:i,...l}=n,c=o?.[t]?.[s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},QO(i,...n)]}(iL),[cL,uL]=sL(iL),dL=r.forwardRef(((t,n)=>{const{__scopeProgress:r,value:o=null,max:i,getValueLabel:a=hL,...s}=t;!i&&0!==i||vL(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=vL(i)?i:aL;null===o||bL(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=bL(o,l)?o:null,u=gL(c)?a(c,l):void 0;return e(cL,{scope:r,value:c,max:l,children:e(oL.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":gL(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":mL(c,l),"data-value":c??void 0,"data-max":l,...s,ref:n})})}));dL.displayName=iL;var fL="ProgressIndicator",pL=r.forwardRef(((t,n)=>{const{__scopeProgress:r,...o}=t,i=uL(fL,r);return e(oL.div,{"data-state":mL(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...o,ref:n})}));function hL(e,t){return`${Math.round(e/t*100)}%`}function mL(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function gL(e){return"number"==typeof e}function vL(e){return gL(e)&&!isNaN(e)&&e>0}function bL(e,t){return gL(e)&&!isNaN(e)&&e<=t&&e>=0}pL.displayName=fL;var wL=dL,yL=pL;const xL=r.forwardRef((({className:t,value:n,...r},o)=>e(wL,{ref:o,className:an("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...r,children:e(yL,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})})));xL.displayName=wL.displayName;var CL=Object.defineProperty,SL=Object.defineProperties,kL=Object.getOwnPropertyDescriptors,EL=Object.getOwnPropertySymbols,PL=Object.prototype.hasOwnProperty,NL=Object.prototype.propertyIsEnumerable,RL=(e,t,n)=>t in e?CL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ML=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var AL=r.createContext({}),TL=r.forwardRef(((e,t)=>{var n,o,i,a,s,l=e,{value:c,onChange:u,maxLength:d,textAlign:f="left",pattern:p,placeholder:h,inputMode:m="numeric",onComplete:g,pushPasswordManagerStrategy:v="increase-width",pasteTransformer:b,containerClassName:w,noScriptCSSFallback:y=OL,render:x,children:C}=l,S=((e,t)=>{var n={};for(var r in e)PL.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&EL)for(var r of EL(e))t.indexOf(r)<0&&NL.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]=r.useState("string"==typeof S.defaultValue?S.defaultValue:""),P=null!=c?c:k,N=function(e){let t=r.useRef();return r.useEffect((()=>{t.current=e})),t.current}(P),R=r.useCallback((e=>{null==u||u(e),E(e)}),[u]),M=r.useMemo((()=>p?"string"==typeof p?new RegExp(p):p:null),[p]),A=r.useRef(null),T=r.useRef(null),I=r.useRef({value:P,onChange:R,isIOS:"undefined"!=typeof window&&(null==(o=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:o.call(n,"-webkit-touch-callout","none"))}),O=r.useRef({prev:[null==(i=A.current)?void 0:i.selectionStart,null==(a=A.current)?void 0:a.selectionEnd,null==(s=A.current)?void 0:s.selectionDirection]});r.useImperativeHandle(t,(()=>A.current),[]),r.useEffect((()=>{let e=A.current,t=T.current;if(!e||!t)return;function n(){if(document.activeElement!==e)return z(null),void H(null);let t,n=e.selectionStart,r=e.selectionEnd,o=e.selectionDirection,i=e.maxLength,a=e.value,s=O.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&&A.current.setSelectionRange(l,c,t)}let u=-1!==l?l:n,d=-1!==c?c:r,f=null!=t?t:o;z(u),H(d),O.current.prev=[u,d,f]}if(I.current.value!==e.value&&I.current.onChange(e.value),O.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&_(!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;";IL(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),IL(e.sheet,`[data-input-otp]:autofill { ${t} }`),IL(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),IL(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; } }"),IL(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[L,D]=r.useState(!1),[F,_]=r.useState(!1),[V,z]=r.useState(null),[j,H]=r.useState(null);r.useEffect((()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}((()=>{var e,t,n,r;null==(e=A.current)||e.dispatchEvent(new Event("input"));let o=null==(t=A.current)?void 0:t.selectionStart,i=null==(n=A.current)?void 0:n.selectionEnd,a=null==(r=A.current)?void 0:r.selectionDirection;null!==o&&null!==i&&(z(o),H(i),O.current.prev=[o,i,a])}))}),[P,F]),r.useEffect((()=>{void 0!==N&&P!==N&&N.length<d&&P.length===d&&(null==g||g(P))}),[d,g,N,P]);let B=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:o}){let[i,a]=r.useState(!1),[s,l]=r.useState(!1),[c,u]=r.useState(!1),d=r.useMemo((()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&i&&s),[i,s,n]),f=r.useCallback((()=>{let r=e.current,o=t.current;if(!r||!o||c||"none"===n)return;let i=r,s=i.getBoundingClientRect().left+i.offsetWidth-18,l=i.getBoundingClientRect().top+i.offsetHeight/2;0===document.querySelectorAll(ML).length&&document.elementFromPoint(s,l)===r||(a(!0),u(!0))}),[e,t,c,n]);return r.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]),r.useEffect((()=>{let e=o||document.activeElement===t.current;if("none"===n||!e)return;let r=setTimeout(f,0),i=setTimeout(f,2e3),a=setTimeout(f,5e3),s=setTimeout((()=>{u(!0)}),6e3);return()=>{clearTimeout(r),clearTimeout(i),clearTimeout(a),clearTimeout(s)}}),[t,o,n,f]),{hasPWMBadge:i,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:T,inputRef:A,pushPasswordManagerStrategy:v,isFocused:F}),$=r.useCallback((e=>{let t=e.currentTarget.value.slice(0,d);t.length>0&&M&&!M.test(t)?e.preventDefault():("string"==typeof N&&t.length<N.length&&document.dispatchEvent(new Event("selectionchange")),R(t))}),[d,R,N,M]),W=r.useCallback((()=>{var e;if(A.current){let t=Math.min(A.current.value.length,d-1),n=A.current.value.length;null==(e=A.current)||e.setSelectionRange(t,n),z(t),H(n)}_(!0)}),[d]),U=r.useCallback((e=>{var t,n;let r=A.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=A.current)?void 0:t.selectionStart,s=null==(n=A.current)?void 0:n.selectionEnd,l=(a!==s?P.slice(0,a)+i+P.slice(s):P.slice(0,a)+i+P.slice(a)).slice(0,d);if(l.length>0&&M&&!M.test(l))return;r.value=l,R(l);let c=Math.min(l.length,d-1),u=l.length;r.setSelectionRange(c,u),z(c),H(u)}),[d,R,M,P]),K=r.useMemo((()=>({position:"relative",cursor:S.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"})),[S.disabled]),G=r.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=r.useMemo((()=>r.createElement("input",((e,t)=>SL(e,kL(t)))(((e,t)=>{for(var n in t||(t={}))PL.call(t,n)&&RL(e,n,t[n]);if(EL)for(var n of EL(t))NL.call(t,n)&&RL(e,n,t[n]);return e})({autoComplete:S.autoComplete||"one-time-code"},S),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===P.length||void 0,"data-input-otp-mss":V,"data-input-otp-mse":j,inputMode:m,pattern:null==M?void 0:M.source,"aria-placeholder":h,style:G,maxLength:d,value:P,ref:A,onPaste:e=>{var t;U(e),null==(t=S.onPaste)||t.call(S,e)},onChange:$,onMouseOver:e=>{var t;D(!0),null==(t=S.onMouseOver)||t.call(S,e)},onMouseLeave:e=>{var t;D(!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;_(!1),null==(t=S.onBlur)||t.call(S,e)}}))),[$,W,U,m,G,d,j,V,S,null==M?void 0:M.source,P]),q=r.useMemo((()=>({slots:Array.from({length:d}).map(((e,t)=>{var n;let r=F&&null!==V&&null!==j&&(V===j&&t===V||t>=V&&t<j),o=void 0!==P[t]?P[t]:null;return{char:o,placeholderChar:void 0!==P[0]?null:null!=(n=null==h?void 0:h[t])?n:null,isActive:r,hasFakeCaret:r&&null===o}})),isFocused:F,isHovering:!S.disabled&&L})),[F,L,d,j,V,S.disabled,P]),Y=r.useMemo((()=>x?x(q):r.createElement(AL.Provider,{value:q},C)),[C,q,x]);return r.createElement(r.Fragment,null,null!==y&&r.createElement("noscript",null,r.createElement("style",null,y)),r.createElement("div",{ref:T,"data-input-otp-container":!0,style:K,className:w},Y,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},X)))}));function IL(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}TL.displayName="Input";var OL="\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 LL=r.forwardRef((({className:t,containerClassName:n,...r},o)=>e(TL,{ref:o,containerClassName:an("flex items-center gap-2 has-[:disabled]:opacity-50",n),className:an("disabled:cursor-not-allowed",t),...r})));LL.displayName="InputOTP";const DL=r.forwardRef((({className:t,...n},r)=>e("div",{ref:r,className:an("flex items-center",t),...n})));DL.displayName="InputOTPGroup";const FL=r.forwardRef((({index:n,className:o,...i},a)=>{const s=r.useContext(AL),{char:l,hasFakeCaret:c,isActive:u}=s.slots[n];return t("div",{ref:a,className:an("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",u&&"z-10 ring-1 ring-ring",o),...i,children:[l,c&&e("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})}));FL.displayName="InputOTPSlot";const _L=r.forwardRef((({...t},n)=>e("div",{ref:n,role:"separator",...t,children:e(eh,{})})));function VL({value:n,onChange:r,placeholder:o,className:i=""}){const a=ry(),s=m(null),l=c((e=>r(e.target.value)),[r]);return t("div",{className:an("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(oh,{className:"h-4 w-4 text-text-secondary-alt transition-colors duration-300","aria-hidden":"true"}),e("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("button",{className:an("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(ah,{"aria-hidden":"true",className:an("text-text-secondary-alt",n?.length?"cursor-pointer opacity-100":"opacity-0")})})]})}function zL(e){return"string"==typeof e?e.startsWith("---")&&e.endsWith("---")?"":e.toUpperCase():""}function jL({availableOptions:t=[],placeholder:n,getTextKeyOverride:r,className:o,disabled:i=!1}){const[s,l]=v(null),u=t.length>10&&!i,d=r||zL,f=a((()=>{const e=s??"";if(!u||!e||!t.length)return t;const n=e.toUpperCase();return t.filter((e=>d(e).includes(n)))}),[t,d,s,u]),p=c((e=>l(e)),[]);return[f,u?e(VL,{value:s,className:o,onChange:p,placeholder:n}):null]}_L.displayName="InputOTPSeparator";const HL=i(null);HL.displayName="PanelGroupContext";const BL={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"},$L=10,WL=b,UL=r["useId".toString()],KL="function"==typeof UL?UL:()=>null;let GL=0;function XL(e=null){const t=KL(),n=m(e||t||null);return null===n.current&&(n.current=""+GL++),null!=e?e:n.current}function qL({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:i,id:a,maxSize:c,minSize:u,onCollapse:d,onExpand:f,onResize:p,order:h,style:g,tagName:v="div",...b}){const w=l(HL);if(null===w)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:x,getPanelSize:C,getPanelStyle:S,groupId:E,isPanelCollapsed:P,reevaluatePanelConstraints:N,registerPanel:R,resizePanel:M,unregisterPanel:A}=w,T=XL(a),I=m({callbacks:{onCollapse:d,onExpand:f,onResize:p},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:c,minSize:u},id:T,idIsFromProps:void 0!==a,order:h});m({didLogMissingDefaultSizeWarning:!1}),WL((()=>{const{callbacks:e,constraints:t}=I.current,i={...t};I.current.id=T,I.current.idIsFromProps=void 0!==a,I.current.order=h,e.onCollapse=d,e.onExpand=f,e.onResize=p,t.collapsedSize=n,t.collapsible=r,t.defaultSize=o,t.maxSize=c,t.minSize=u,i.collapsedSize===t.collapsedSize&&i.collapsible===t.collapsible&&i.maxSize===t.maxSize&&i.minSize===t.minSize||N(I.current,i)})),WL((()=>{const e=I.current;return R(e),()=>{A(e)}}),[h,T,R,A]),k(i,(()=>({collapse:()=>{y(I.current)},expand:e=>{x(I.current,e)},getId:()=>T,getSize:()=>C(I.current),isCollapsed:()=>P(I.current),isExpanded:()=>!P(I.current),resize:e=>{M(I.current,e)}})),[y,x,C,P,T,M]);const O=S(I.current,o);return s(v,{...b,children:e,className:t,id:T,style:{...O,...g},[BL.groupId]:E,[BL.panel]:"",[BL.panelCollapsible]:r||void 0,[BL.panelId]:T,[BL.panelSize]:parseFloat(""+O.flexGrow).toFixed(1)})}const YL=u(((e,t)=>s(qL,{...e,forwardedRef:t})));qL.displayName="Panel",YL.displayName="forwardRef(Panel)";let ZL=null,QL=-1,JL=null;function eD(e,t){var n,r;const o=function(e,t){if(t){const e=0!=(t&pD),n=0!=(t&hD);if(0!=(t&dD))return e?"se-resize":n?"ne-resize":"e-resize";if(0!=(t&fD))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(ZL!==o){var i;if(ZL=o,null===JL&&(JL=document.createElement("style"),document.head.appendChild(JL)),QL>=0)null===(i=JL.sheet)||void 0===i||i.removeRule(QL);QL=null!==(n=null===(r=JL.sheet)||void 0===r?void 0:r.insertRule(`*{cursor: ${o} !important;}`))&&void 0!==n?n:-1}}function tD(e){return"keydown"===e.type}function nD(e){return e.type.startsWith("pointer")}function rD(e){return e.type.startsWith("mouse")}function oD(e){if(nD(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(rD(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}const iD=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function aD(e){const t=getComputedStyle(e);return"fixed"===t.position||(!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=uD(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||(!!iD.test(t.willChange)||"touch"===t.webkitOverflowScrolling)))))))))}function sD(e){let t=e.length;for(;t--;){const n=e[t];if(TD(n,"Missing node"),aD(n))return n}return null}function lD(e){return e&&Number(getComputedStyle(e).zIndex)||0}function cD(e){const t=[];for(;e;)t.push(e),e=uD(e);return t}function uD(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const dD=1,fD=2,pD=4,hD=8,mD="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let gD=[],vD=!1,bD=new Map,wD=new Map;const yD=new Set;function xD(e){const{target:t}=e,{x:n,y:r}=oD(e);vD=!0,ED({target:t,x:n,y:r}),MD(),gD.length>0&&(AD("down",e),e.preventDefault(),kD(t)||e.stopImmediatePropagation())}function CD(e){const{x:t,y:n}=oD(e);if(vD&&0===e.buttons&&(vD=!1,AD("up",e)),!vD){const{target:r}=e;ED({target:r,x:t,y:n})}AD("move",e),ND(),gD.length>0&&e.preventDefault()}function SD(e){const{target:t}=e,{x:n,y:r}=oD(e);wD.clear(),vD=!1,gD.length>0&&(e.preventDefault(),kD(t)||e.stopImmediatePropagation()),AD("up",e),ED({target:t,x:n,y:r}),ND(),MD()}function kD(e){let t=e;for(;t;){if(t.hasAttribute(BL.resizeHandle))return!0;t=t.parentElement}return!1}function ED({target:e,x:t,y:n}){gD.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),yD.forEach((e=>{const{element:o,hitAreaMargins:i}=e,a=o.getBoundingClientRect(),{bottom:s,left:l,right:c,top:u}=a,d=mD?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:cD(e),b:cD(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;TD(r,"Stacking order can only be calculated for elements with a common ancestor");const o=lD(sD(n.a)),i=lD(sD(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}gD.push(e)}var f,p}))}function PD(e,t){wD.set(e,t)}function ND(){let e=!1,t=!1;gD.forEach((n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0}));let n=0;wD.forEach((e=>{n|=e})),e&&t?eD("intersection",n):e?eD("horizontal",n):t?eD("vertical",n):null!==JL&&(document.head.removeChild(JL),ZL=null,JL=null,QL=-1)}let RD;function MD(){var e;null===(e=RD)||void 0===e||e.abort(),RD=new AbortController;const t={capture:!0,signal:RD.signal};yD.size&&(vD?(gD.length>0&&bD.forEach(((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",SD,t),r.addEventListener("pointerleave",CD,t),r.addEventListener("pointermove",CD,t))})),bD.forEach(((e,n)=>{const{body:r}=n;r.addEventListener("pointerup",SD,t),r.addEventListener("pointercancel",SD,t)}))):bD.forEach(((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",xD,t),r.addEventListener("pointermove",CD,t))})))}function AD(e,t){yD.forEach((n=>{const{setResizeHandlerState:r}=n,o=gD.includes(n);r(e,o,t)}))}function TD(e,t){if(!e)throw console.error(t),Error(t)}function ID(e,t,n=$L){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function OD(e,t,n=$L){return 0===ID(e,t,n)}function LD(e,t,n){return 0===ID(e,t,n)}function DD({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];TD(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:i,maxSize:a=100,minSize:s=0}=r;if(ID(n,s)<0)if(i){n=ID(n,(o+s)/2)<0?o:s}else n=s;return n=Math.min(a,n),n=parseFloat(n.toFixed($L))}function FD({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:i}){if(LD(e,0))return t;const a=[...t],[s,l]=r;TD(null!=s,"Invalid first pivot index"),TD(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===i){{const r=e<0?l:s,o=n[r];TD(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(TD(null!=n,`Previous layout not found for panel index ${r}`),LD(n,i)){const t=c-n;ID(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,o=n[r];TD(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(TD(null!=n,`Previous layout not found for panel index ${r}`),LD(n,c)){const t=n-i;ID(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];TD(null!=e,`Previous layout not found for panel index ${o}`);if(i+=DD({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];TD(null!=i,`Previous layout not found for panel index ${r}`);const s=DD({panelConstraints:n,panelIndex:r,size:i-o});if(!LD(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(!LD(e[r],t[r],n))return!1;return!0}(o,a))return o;{const r=e<0?l:s,o=t[r];TD(null!=o,`Previous layout not found for panel index ${r}`);const i=o+c,u=DD({panelConstraints:n,panelIndex:r,size:i});if(a[r]=u,!LD(u,i)){let t=i-u;let r=e<0?l:s;for(;r>=0&&r<n.length;){const o=a[r];TD(null!=o,`Previous layout not found for panel index ${r}`);const i=DD({panelConstraints:n,panelIndex:r,size:o+t});if(LD(o,i)||(t-=i-o,a[r]=i),LD(t,0))break;e>0?r--:r++}}}const u=a.reduce(((e,t)=>t+e),0);return LD(u,100)?a:o}function _D({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,i=0,a=0;const s=n[0];TD(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 VD(e,t=document){return Array.from(t.querySelectorAll(`[${BL.resizeHandleId}][data-panel-group-id="${e}"]`))}function zD(e,t,n=document){const r=VD(e,n).findIndex((e=>e.getAttribute(BL.resizeHandleId)===t));return null!=r?r:null}function jD(e,t,n){const r=zD(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function HD(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 BD(e,t=document){const n=t.querySelector(`[${BL.resizeHandleId}="${e}"]`);return n||null}function $D({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:i,setLayout:a}){m({didWarnAboutMissingResizeHandle:!1}),WL((()=>{if(!i)return;const e=VD(n,i);for(let t=0;t<o.length-1;t++){const{valueMax:n,valueMin:i,valueNow:a}=_D({layout:r,panelsArray:o,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=o[t];TD(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(i)),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")}))}}),[n,r,o,i]),g((()=>{if(!i)return;const e=t.current;TD(e,"Eager values not found");const{panelDataArray:o}=e;TD(null!=HD(n,i),`No group found for id "${n}"`);const s=VD(n,i);TD(s,`No resize handles found for group id "${n}"`);const l=s.map((e=>{const t=e.getAttribute(BL.resizeHandleId);TD(t,"Resize handle element has no handle id attribute");const[s,l]=function(e,t,n,r=document){var o,i,a,s;const l=BD(t,r),c=VD(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]}(n,t,o,i);if(null==s||null==l)return()=>{};const c=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=o.findIndex((e=>e.id===s));if(l>=0){const e=o[l];TD(e,`No panel data found for index ${l}`);const s=r[l],{collapsedSize:c=0,collapsible:u,minSize:d=0}=e.constraints;if(null!=s&&u){const e=FD({delta:LD(s,c)?d-c:c-s,initialLayout:r,panelConstraints:o.map((e=>e.constraints)),pivotIndices:jD(n,t,i),prevLayout:r,trigger:"keyboard"});r!==e&&a(e)}}break}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}));return()=>{l.forEach((e=>e()))}}),[i,e,t,n,r,o,a])}function WD(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 UD(e,t){const n="horizontal"===e,{x:r,y:o}=oD(t);return n?r:o}function KD(e,t,n,r,o,i){if(tD(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=BD(t,o);TD(a,`No resize handle element found for id "${t}"`);const s=a.getAttribute(BL.groupId);TD(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=UD(n,e),u=HD(s,o);TD(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 GD(e,t,n){t.forEach(((t,r)=>{const o=e[r];TD(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&&!OD(u,l)||OD(t,l)||r(),!e||null!=u&&OD(u,l)||!OD(t,l)||e())}}))}function XD(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 qD(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 YD(e){return`react-resizable-panels:${e}`}function ZD(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 QD(e,t){try{const n=YD(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 JD(e,t,n,r,o){var i;const a=YD(e),s=ZD(t),l=null!==(i=QD(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 eF({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(!LD(r,100)&&n.length>0)for(let e=0;e<t.length;e++){const t=n[e];TD(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];TD(null!=r,`No layout data found for index ${e}`);const i=DD({panelConstraints:t,panelIndex:e,size:r});r!=i&&(o+=r-i,n[e]=i)}if(!LD(o,0))for(let e=0;e<t.length;e++){const r=n[e];TD(null!=r,`No layout data found for index ${e}`);const i=DD({panelConstraints:t,panelIndex:e,size:r+o});if(r!==i&&(o-=i-r,n[e]=i,LD(o,0)))break}return n}const tF={getItem:e=>(qD(tF),tF.getItem(e)),setItem:(e,t)=>{qD(tF),tF.setItem(e,t)}},nF={};function rF({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:i=null,onLayout:l=null,keyboardResizeBy:u=null,storage:d=tF,style:f,tagName:p="div",...h}){const b=XL(i),w=m(null),[y,x]=v(null),[C,S]=v([]),E=function(){const[e,t]=v(0);return c((()=>t((e=>e+1))),[])}(),P=m({}),N=m(new Map),R=m(0),M=m({autoSaveId:e,direction:r,dragState:y,id:b,keyboardResizeBy:u,onLayout:l,storage:d}),A=m({layout:C,panelDataArray:[],panelDataArrayChanged:!1});m({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),k(o,(()=>({getId:()=>M.current.id,getLayout:()=>{const{layout:e}=A.current;return e},setLayout:e=>{const{onLayout:t}=M.current,{layout:n,panelDataArray:r}=A.current,o=eF({layout:e,panelConstraints:r.map((e=>e.constraints))});WD(n,o)||(S(o),A.current.layout=o,t&&t(o),GD(r,o,P.current))}})),[]),WL((()=>{M.current.autoSaveId=e,M.current.direction=r,M.current.dragState=y,M.current.id=b,M.current.onLayout=l,M.current.storage=d})),$D({committedValuesRef:M,eagerValuesRef:A,groupId:b,layout:C,panelDataArray:A.current.panelDataArray,setLayout:S,panelGroupElement:w.current}),g((()=>{const{panelDataArray:t}=A.current;if(e){if(0===C.length||C.length!==t.length)return;let n=nF[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(JD,100),nF[e]=n);const r=[...t],o=new Map(N.current);n(e,r,o,C,d)}}),[e,C,d]),g((()=>{}));const T=c((e=>{const{onLayout:t}=M.current,{layout:n,panelDataArray:r}=A.current;if(e.constraints.collapsible){const o=r.map((e=>e.constraints)),{collapsedSize:i=0,panelSize:a,pivotIndices:s}=aF(r,e,n);if(TD(null!=a,`Panel size not found for panel "${e.id}"`),!OD(a,i)){N.current.set(e.id,a);const l=FD({delta:iF(r,e)===r.length-1?a-i:i-a,initialLayout:n,panelConstraints:o,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});XD(n,l)||(S(l),A.current.layout=l,t&&t(l),GD(r,l,P.current))}}}),[]),I=c(((e,t)=>{const{onLayout:n}=M.current,{layout:r,panelDataArray:o}=A.current;if(e.constraints.collapsible){const i=o.map((e=>e.constraints)),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:c}=aF(o,e,r),u=null!=t?t:l;if(OD(s,a)){const t=N.current.get(e.id),a=null!=t&&t>=u?t:u,l=FD({delta:iF(o,e)===o.length-1?s-a:a-s,initialLayout:r,panelConstraints:i,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});XD(r,l)||(S(l),A.current.layout=l,n&&n(l),GD(o,l,P.current))}}}),[]),O=c((e=>{const{layout:t,panelDataArray:n}=A.current,{panelSize:r}=aF(n,e,t);return TD(null!=r,`Panel size not found for panel "${e.id}"`),r}),[]),L=c(((e,t)=>{const{panelDataArray:n}=A.current,r=iF(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:y,layout:C,panelData:n,panelIndex:r})}),[y,C]),D=c((e=>{const{layout:t,panelDataArray:n}=A.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=aF(n,e,t);return TD(null!=i,`Panel size not found for panel "${e.id}"`),!0===o&&OD(i,r)}),[]),F=c((e=>{const{layout:t,panelDataArray:n}=A.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=aF(n,e,t);return TD(null!=i,`Panel size not found for panel "${e.id}"`),!o||ID(i,r)>0}),[]),_=c((e=>{const{panelDataArray:t}=A.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})),A.current.panelDataArrayChanged=!0,E()}),[E]);WL((()=>{if(A.current.panelDataArrayChanged){A.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=M.current,{layout:r,panelDataArray:o}=A.current;let i=null;if(e){const t=function(e,t,n){var r,o;return null!==(o=(null!==(r=QD(e,n))&&void 0!==r?r:{})[ZD(t)])&&void 0!==o?o:null}(e,o,n);t&&(N.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];TD(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];TD(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=eF({layout:i,panelConstraints:o.map((e=>e.constraints))});WD(r,a)||(S(a),A.current.layout=a,t&&t(a),GD(o,a,P.current))}})),WL((()=>{const e=A.current;return()=>{e.layout=[]}}),[]);const V=c((e=>{let t=!1;const n=w.current;if(n){"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0)}return function(n){n.preventDefault();const r=w.current;if(!r)return()=>null;const{direction:o,dragState:i,id:a,keyboardResizeBy:s,onLayout:l}=M.current,{layout:c,panelDataArray:u}=A.current,{initialLayout:d}=null!=i?i:{},f=jD(a,e,r);let p=KD(n,e,o,i,s,r);const h="horizontal"===o;h&&t&&(p=-p);const m=FD({delta:p,initialLayout:null!=d?d:c,panelConstraints:u.map((e=>e.constraints)),pivotIndices:f,prevLayout:c,trigger:tD(n)?"keyboard":"mouse-or-touch"}),g=!XD(c,m);(nD(n)||rD(n))&&R.current!=p&&(R.current=p,PD(e,g||0===p?0:h?p<0?dD:fD:p<0?pD:hD)),g&&(S(m),A.current.layout=m,l&&l(m),GD(u,m,P.current))}}),[]),z=c(((e,t)=>{const{onLayout:n}=M.current,{layout:r,panelDataArray:o}=A.current,i=o.map((e=>e.constraints)),{panelSize:a,pivotIndices:s}=aF(o,e,r);TD(null!=a,`Panel size not found for panel "${e.id}"`);const l=FD({delta:iF(o,e)===o.length-1?a-t:t-a,initialLayout:r,panelConstraints:i,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});XD(r,l)||(S(l),A.current.layout=l,n&&n(l),GD(o,l,P.current))}),[]),j=c(((e,t)=>{const{layout:n,panelDataArray:r}=A.current,{collapsedSize:o=0,collapsible:i}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:u}=aF(r,e,n);null!=u&&(i&&s&&OD(u,o)?OD(o,a)||z(e,a):u<c?z(e,c):u>l&&z(e,l))}),[z]),H=c(((e,t)=>{const{direction:n}=M.current,{layout:r}=A.current;if(!w.current)return;const o=BD(e,w.current);TD(o,`Drag handle element not found for id "${e}"`);const i=UD(n,t);x({dragHandleId:e,dragHandleRect:o.getBoundingClientRect(),initialCursorPosition:i,initialLayout:r})}),[]),B=c((()=>{x(null)}),[]),$=c((e=>{const{panelDataArray:t}=A.current,n=iF(t,e);n>=0&&(t.splice(n,1),delete P.current[e.id],A.current.panelDataArrayChanged=!0,E())}),[E]),W=a((()=>({collapsePanel:T,direction:r,dragState:y,expandPanel:I,getPanelSize:O,getPanelStyle:L,groupId:b,isPanelCollapsed:D,isPanelExpanded:F,reevaluatePanelConstraints:j,registerPanel:_,registerResizeHandle:V,resizePanel:z,startDragging:H,stopDragging:B,unregisterPanel:$,panelGroupElement:w.current})),[T,y,r,I,O,L,b,D,F,j,_,V,z,H,B,$]),U={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return s(HL.Provider,{value:W},s(p,{...h,children:t,className:n,id:i,ref:w,style:{...U,...f},[BL.group]:"",[BL.groupDirection]:r,[BL.groupId]:b}))}const oF=u(((e,t)=>s(rF,{...e,forwardedRef:t})));function iF(e,t){return e.findIndex((e=>e===t||e.id===t.id))}function aF(e,t,n){const r=iF(e,t),o=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:o}}function sF({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:i,onClick:a,onDragging:c,onFocus:u,onPointerDown:d,onPointerUp:f,style:p={},tabIndex:h=0,tagName:b="div",...w}){var y,x;const C=m(null),S=m({onClick:a,onDragging:c,onPointerDown:d,onPointerUp:f});g((()=>{S.current.onClick=a,S.current.onDragging=c,S.current.onPointerDown=d,S.current.onPointerUp=f}));const k=l(HL);if(null===k)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:E,groupId:P,registerResizeHandle:N,startDragging:R,stopDragging:M,panelGroupElement:A}=k,T=XL(o),[I,O]=v("inactive"),[L,D]=v(!1),[F,_]=v(null),V=m({state:I});WL((()=>{V.current.state=I})),g((()=>{if(n)_(null);else{const e=N(T);_((()=>e))}}),[n,T,N]);const z=null!==(y=null==r?void 0:r.coarse)&&void 0!==y?y:15,j=null!==(x=null==r?void 0:r.fine)&&void 0!==x?x:5;g((()=>{if(n||null==F)return;const e=C.current;TD(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=bD.get(a))&&void 0!==i?i:0;return bD.set(a,l+1),yD.add(s),MD(),function(){var t;wD.delete(e),yD.delete(s);const n=null!==(t=bD.get(a))&&void 0!==t?t:1;if(bD.set(a,n-1),MD(),1===n&&bD.delete(a),gD.includes(s)){const e=gD.indexOf(s);e>=0&&gD.splice(e,1),ND(),o("up",!0,null)}}}(T,e,E,{coarse:z,fine:j},((e,n,r)=>{if(n)switch(e){case"down":{O("drag"),t=!1,TD(r,'Expected event to be defined for "down" action'),R(T,r);const{onDragging:e,onPointerDown:n}=S.current;null==e||e(!0),null==n||n();break}case"move":{const{state:e}=V.current;t=!0,"drag"!==e&&O("hover"),TD(r,'Expected event to be defined for "move" action'),F(r);break}case"up":{O("hover"),M();const{onClick:e,onDragging:n,onPointerUp:r}=S.current;null==n||n(!1),null==r||r(),t||null==e||e();break}}else O("inactive")}))}),[z,E,n,j,N,T,F,R,M]),function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){g((()=>{if(e||null==n||null==r)return;const o=BD(t,r);if(null==o)return;const i=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=o.getAttribute(BL.groupId);TD(n,`No group element found for id "${n}"`);const i=VD(n,r),a=zD(n,t,r);TD(null!==a,`No resize element found for id "${t}"`),i[e.shiftKey?a>0?a-1:i.length-1:a+1<i.length?a+1:0].focus();break}}};return o.addEventListener("keydown",i),()=>{o.removeEventListener("keydown",i)}}),[r,e,t,n])}({disabled:n,handleId:T,resizeHandler:F,panelGroupElement:A});return s(b,{...w,children:e,className:t,id:o,onBlur:()=>{D(!1),null==i||i()},onFocus:()=>{D(!0),null==u||u()},ref:C,role:"separator",style:{touchAction:"none",userSelect:"none",...p},tabIndex:h,[BL.groupDirection]:E,[BL.groupId]:P,[BL.resizeHandle]:"",[BL.resizeHandleActive]:"drag"===I?"pointer":L?"keyboard":void 0,[BL.resizeHandleEnabled]:!n,[BL.resizeHandleId]:T,[BL.resizeHandleState]:I})}rF.displayName="PanelGroup",oF.displayName="forwardRef(PanelGroup)",sF.displayName="PanelResizeHandle";const lF=({className:t="",...n})=>e(oF,{className:an("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...n}),cF=YL,uF=({withHandle:t,className:n="",...r})=>e(sF,{className:an("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("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e(Jp,{className:"h-2.5 w-2.5"})})}),dF=({withHandle:t,className:n="",...r})=>e(sF,{className:an("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("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(Jp,{className:"h-2.5 w-2.5"})})});function fF({icon:n,label:r,id:o,isActive:i=!1,isEditing:a=!1,isDragging:s=!1,isAvailable:l=!0,isInChat:c=!1,onBadgeAction:u,onToggle:d,className:f,...p}){const h=a&&l,m="1"===o&&c;return t($O.button,{onClick:e=>{if(m)return e.preventDefault(),void e.stopPropagation();!a&&d&&(e.preventDefault(),e.stopPropagation(),d())},className:an("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",i?"bg-surface-active shadow-md":"bg-surface-chat shadow-sm hover:bg-surface-hover hover:shadow-md","active:scale-95 active:shadow-inner",h&&"cursor-move",m&&"cursor-not-allowed opacity-50 hover:shadow-sm",f),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"},...p,children:[n&&e(n,{className:an("relative h-5 w-5 md:h-4 md:w-4",!r&&"mx-auto")}),e("span",{className:"relative hidden md:inline",children:r}),a&&!s&&e($O.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(),u?.()},children:e(l?ah:rh,{className:"h-3 w-3"})})]})}function pF(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function hF(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;o=[...o,i];const l=n=>{const{scope:o,children:i,...l}=n,c=o?.[t]?.[s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},mF(i,...n)]}function mF(...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 o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function gF(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function vF(...e){return t=>{let n=!1;const r=e.map((e=>{const r=gF(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():gF(e[t],null)}}}}function bF(...e){return r.useCallback(vF(...e),e)}function wF(t){const n=yF(t),o=r.forwardRef(((t,o)=>{const{children:i,...a}=t,s=r.Children.toArray(i),l=s.find(CF);if(l){const t=l.props.children,i=s.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(n,{...a,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return e(n,{...a,ref:o,children:i})}));return o.displayName=`${t}.Slot`,o}function yF(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.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),i=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}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?vF(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var xF=Symbol("radix.slottable");function CF(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===xF}var SF=r.createContext(void 0);var kF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const o=wF(`Primitive.${n}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{});function EF(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}var PF,NF="dismissableLayer.update",RF="dismissableLayer.pointerDownOutside",MF="dismissableLayer.focusOutside",AF=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),TF=r.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=t,d=r.useContext(AF),[f,p]=r.useState(null),h=f?.ownerDocument??globalThis?.document,[,m]=r.useState({}),g=bF(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=EF(e),o=r.useRef(!1),i=r.useRef((()=>{}));return r.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let r=function(){LF(RF,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);o.current=!1},r=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(a?.(e),l?.(e),e.defaultPrevented||c?.())}),h),k=function(e,t=globalThis?.document){const n=EF(e),o=r.useRef(!1);return r.useEffect((()=>{const e=e=>{if(e.target&&!o.current){LF(MF,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(s?.(e),l?.(e),e.defaultPrevented||c?.())}),h);return function(e,t=globalThis?.document){const n=EF(e);r.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&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),h),r.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(PF=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),OF(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=PF)}}),[f,h,o,d]),r.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),OF())}),[f,d]),r.useEffect((()=>{const e=()=>m({});return document.addEventListener(NF,e),()=>document.removeEventListener(NF,e)}),[]),e(kF.div,{...u,ref:g,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:pF(t.onFocusCapture,k.onFocusCapture),onBlurCapture:pF(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pF(t.onPointerDownCapture,S.onPointerDownCapture)})}));TF.displayName="DismissableLayer";var IF=r.forwardRef(((t,n)=>{const o=r.useContext(AF),i=r.useRef(null),a=bF(n,i);return r.useEffect((()=>{const e=i.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}}),[o.branches]),e(kF.div,{...t,ref:a})}));function OF(){const e=new CustomEvent(NF);document.dispatchEvent(e)}function LF(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&&R.flushSync((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}IF.displayName="DismissableLayerBranch";var DF=0;function FF(){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 _F="focusScope.autoFocusOnMount",VF="focusScope.autoFocusOnUnmount",zF={bubbles:!1,cancelable:!0},jF=r.forwardRef(((t,n)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=t,[c,u]=r.useState(null),d=EF(a),f=EF(s),p=r.useRef(null),h=bF(n,(e=>u(e))),m=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect((()=>{if(i){let e=function(e){if(m.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:WF(p.current,{select:!0})},t=function(e){if(m.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||WF(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&WF(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()}}}),[i,c,m.paused]),r.useEffect((()=>{if(c){UF.add(m);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(_F,zF);c.addEventListener(_F,d),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(WF(r,{select:t}),document.activeElement!==n)return}((e=HF(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&WF(c))}return()=>{c.removeEventListener(_F,d),setTimeout((()=>{const e=new CustomEvent(VF,zF);c.addEventListener(VF,f),c.dispatchEvent(e),e.defaultPrevented||WF(t??document.body,{select:!0}),c.removeEventListener(VF,f),UF.remove(m)}),0)}}var e}),[c,d,f,m]);const g=r.useCallback((e=>{if(!o&&!i)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,i]=function(e){const t=HF(e),n=BF(t,e),r=BF(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||n!==i?e.shiftKey&&n===r&&(e.preventDefault(),o&&WF(i,{select:!0})):(e.preventDefault(),o&&WF(r,{select:!0})):n===t&&e.preventDefault()}}),[o,i,m.paused]);return e(kF.div,{tabIndex:-1,...l,ref:h,onKeyDown:g})}));function HF(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 BF(e,t){for(const n of e)if(!$F(n,{upTo:t}))return n}function $F(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 WF(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()}}jF.displayName="FocusScope";var UF=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=KF(e,t),e.unshift(t)},remove(t){e=KF(e,t),e[0]?.resume()}}}();function KF(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var GF=globalThis?.document?r.useLayoutEffect:()=>{},XF=r[" useId ".trim().toString()]||(()=>{}),qF=0;function YF(e){const[t,n]=r.useState(XF());return GF((()=>{n((e=>e??String(qF++)))}),[e]),t?`radix-${t}`:""}var ZF=r.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e(kF.svg,{...a,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e("polygon",{points:"0,0 30,0 15,10"})})}));ZF.displayName="Arrow";var QF=ZF;var JF="Popper",[e_,t_]=hF(JF),[n_,r_]=e_(JF),o_=t=>{const{__scopePopper:n,children:o}=t,[i,a]=r.useState(null);return e(n_,{scope:n,anchor:i,onAnchorChange:a,children:o})};o_.displayName=JF;var i_="PopperAnchor",a_=r.forwardRef(((t,n)=>{const{__scopePopper:o,virtualRef:i,...a}=t,s=r_(i_,o),l=r.useRef(null),c=bF(n,l);return r.useEffect((()=>{s.onAnchorChange(i?.current||l.current)})),i?null:e(kF.div,{...a,ref:c})}));a_.displayName=i_;var s_="PopperContent",[l_,c_]=e_(s_),u_=r.forwardRef(((t,n)=>{const{__scopePopper:o,side:i="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...v}=t,b=r_(s_,o),[w,y]=r.useState(null),x=bF(n,(e=>y(e))),[C,S]=r.useState(null),k=function(e){const[t,n]=r.useState(void 0);return GF((()=>{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,P=k?.height??0,N=i+("center"!==s?"-"+s:""),R="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(d)?d:[d],A=M.length>0,T={padding:R,boundary:M.filter(h_),altBoundary:A},{refs:I,floatingStyles:O,placement:L,isPositioned:D,middlewareData:F}=sg({strategy:"fixed",placement:N,whileElementsMounted:(...e)=>_l(...e,{animationFrame:"always"===m}),elements:{reference:b.anchor},middleware:[cg({mainAxis:a+P,alignmentAxis:l}),u&&ug({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?dg():void 0,...T}),u&&fg({...T}),pg({...T,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&&mg({element:C,padding:c}),m_({arrowWidth:E,arrowHeight:P}),h&&hg({strategy:"referenceHidden",...T})]}),[_,V]=g_(L),z=EF(g);GF((()=>{D&&z?.()}),[D,z]);const j=F.arrow?.x,H=F.arrow?.y,B=0!==F.arrow?.centerOffset,[$,W]=r.useState();return GF((()=>{w&&W(window.getComputedStyle(w).zIndex)}),[w]),e("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:D?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e(l_,{scope:o,placedSide:_,onArrowChange:S,arrowX:j,arrowY:H,shouldHideArrow:B,children:e(kF.div,{"data-side":_,"data-align":V,...v,ref:x,style:{...v.style,animation:D?void 0:"none"}})})})}));u_.displayName=s_;var d_="PopperArrow",f_={top:"bottom",right:"left",bottom:"top",left:"right"},p_=r.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=c_(d_,r),a=f_[i.placedSide];return e("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(QF,{...o,ref:n,style:{...o.style,display:"block"}})})}));function h_(e){return null!==e}p_.displayName=d_;var m_=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]=g_(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="",h="";return"bottom"===l?(p=i?u:`${d}px`,h=-s+"px"):"top"===l?(p=i?u:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",h=i?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=i?u:`${f}px`),{data:{x:p,y:h}}}});function g_(e){const[t,n="center"]=e.split("-");return[t,n]}var v_=o_,b_=a_,w_=u_,y_=p_,x_=r.forwardRef(((t,n)=>{const{container:o,...i}=t,[a,s]=r.useState(!1);GF((()=>s(!0)),[]);const l=o||a&&globalThis?.document?.body;return l?M.createPortal(e(kF.div,{...i,ref:n}),l):null}));x_.displayName="Portal";var C_=r[" useInsertionEffect ".trim().toString()]||GF;function S_({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:o}){const[i,a,s]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return C_((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} 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,o])}const u=r.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else a(t)}),[l,e,a,s]);return[c,u]}var k_=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"}),E_=r.forwardRef(((t,n)=>e(kF.span,{...t,ref:n,style:{...k_,...t.style}})));E_.displayName="VisuallyHidden";var P_=Ld(),N_=function(){},R_=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:N_,onWheelCapture:N_,onTouchMoveCapture:N_}),i=o[0],a=o[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,m=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,w=void 0===b?"div":b,y=e.gapMode,x=Ed(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,S=Id([n,t]),k=kd(kd({},x),i);return r.createElement(r.Fragment,null,d&&r.createElement(C,{sideCar:P_,removeScrollBar:u,shards:f,noRelative:h,noIsolation:m,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:y}),s?r.cloneElement(r.Children.only(l),kd(kd({},k),{ref:S})):r.createElement(w,kd({},k,{className:c,ref:S}),l))}));R_.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},R_.classNames={fullWidth:Rd,zeroRight:Nd};var M_=!1;if("undefined"!=typeof window)try{var A_=Object.defineProperty({},"passive",{get:function(){return M_=!0,!0}});window.addEventListener("test",A_,A_),window.removeEventListener("test",A_,A_)}catch(e){M_=!1}var T_=!!M_&&{passive:!1},I_=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])},O_=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),L_(e,r)){var o=D_(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},L_=function(e,t){return"v"===e?function(e){return I_(e,"overflowY")}(t):function(e){return I_(e,"overflowX")}(t)},D_=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)},F_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},__=function(e){return[e.deltaX,e.deltaY]},V_=function(e){return e&&"current"in e?e.current:e},z_=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},j_=0,H_=[];function B_(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var $_=Fd(P_,(function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(j_++)[0],a=r.useState(Bd)[0],s=r.useRef(e);r.useEffect((function(){s.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=Pd([e.lockRef.current],(e.shards||[]).map(V_),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var r,i=F_(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=O_(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=O_(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=r),!r)return!0;var p=o.current||r;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=D_(e,s),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&L_(e,s)&&(d+=m,f+=h);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=r.useCallback((function(e){var n=e;if(H_.length&&H_[H_.length-1]===a){var r="deltaY"in n?__(n):F_(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 i=(s.current.shards||[]).map(V_).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?l(n,i[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=r.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:B_(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=r.useCallback((function(e){n.current=F_(e),o.current=void 0}),[]),f=r.useCallback((function(t){u(t.type,__(t),t.target,l(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){u(t.type,F_(t),t.target,l(t,e.lockRef.current))}),[]);r.useEffect((function(){return H_.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,T_),document.addEventListener("touchmove",c,T_),document.addEventListener("touchstart",d,T_),function(){H_=H_.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,T_),document.removeEventListener("touchmove",c,T_),document.removeEventListener("touchstart",d,T_)}}),[]);var h=e.removeScrollBar,m=e.inert;return r.createElement(r.Fragment,null,m?r.createElement(a,{styles:z_(i)}):null,h?r.createElement(Yd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)})),W_=r.forwardRef((function(e,t){return r.createElement(R_,kd({},e,{ref:t,sideCar:$_}))}));W_.classNames=R_.classNames;var U_=[" ","Enter","ArrowUp","ArrowDown"],K_=[" ","Enter"],G_="Select",[X_,q_,Y_]=function(t){const n=t+"CollectionProvider",[r,i]=hF(n),[a,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=t=>{const{scope:n,children:r}=t,i=o.useRef(null),s=o.useRef(new Map).current;return e(a,{scope:n,itemMap:s,collectionRef:i,children:r})};l.displayName=n;const c=t+"CollectionSlot",u=wF(c),d=o.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=bF(n,s(c,r).collectionRef);return e(u,{ref:i,children:o})}));d.displayName=c;const f=t+"CollectionItemSlot",p="data-radix-collection-item",h=wF(f),m=o.forwardRef(((t,n)=>{const{scope:r,children:i,...a}=t,l=o.useRef(null),c=bF(n,l),u=s(f,r);return o.useEffect((()=>(u.itemMap.set(l,{ref:l,...a}),()=>{u.itemMap.delete(l)}))),e(h,{[p]:"",ref:c,children:i})}));return m.displayName=f,[{Provider:l,Slot:d,ItemSlot:m},function(e){const n=s(t+"CollectionConsumer",e),r=o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},i]}(G_),[Z_,Q_]=hF(G_,[Y_,t_]),J_=t_(),[eV,tV]=Z_(G_),[nV,rV]=Z_(G_),oV=n=>{const{__scopeSelect:o,children:i,open:a,defaultOpen:s,onOpenChange:l,value:c,defaultValue:u,onValueChange:d,dir:f,name:p,autoComplete:h,disabled:m,required:g,form:v}=n,b=J_(o),[w,y]=r.useState(null),[x,C]=r.useState(null),[S,k]=r.useState(!1),E=function(e){const t=r.useContext(SF);return e||t||"ltr"}(f),[P,N]=S_({prop:a,defaultProp:s??!1,onChange:l,caller:G_}),[R,M]=S_({prop:c,defaultProp:u,onChange:d,caller:G_}),A=r.useRef(null),T=!w||(v||!!w.closest("form")),[I,O]=r.useState(new Set),L=Array.from(I).map((e=>e.props.value)).join(";");return e(v_,{...b,children:t(eV,{required:g,scope:o,trigger:w,onTriggerChange:y,valueNode:x,onValueNodeChange:C,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:YF(),value:R,onValueChange:M,open:P,onOpenChange:N,dir:E,triggerPointerDownPosRef:A,disabled:m,children:[e(X_.Provider,{scope:o,children:e(nV,{scope:n.__scopeSelect,onNativeOptionAdd:r.useCallback((e=>{O((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:r.useCallback((e=>{O((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),children:i})}),T?t(KV,{"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:h,value:R,onChange:e=>M(e.target.value),disabled:m,form:v,children:[void 0===R?e("option",{value:""}):null,Array.from(I)]},L):null]})})};oV.displayName=G_;var iV="SelectTrigger",aV=r.forwardRef(((t,n)=>{const{__scopeSelect:o,disabled:i=!1,...a}=t,s=J_(o),l=tV(iV,o),c=l.disabled||i,u=bF(n,l.onTriggerChange),d=q_(o),f=r.useRef("touch"),[p,h,m]=XV((e=>{const t=d().filter((e=>!e.disabled)),n=t.find((e=>e.value===l.value)),r=qV(t,e,n);void 0!==r&&l.onValueChange(r.value)})),g=e=>{c||(l.onOpenChange(!0),m()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return e(b_,{asChild:!0,...s,children:e(kF.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":GV(l.value)?"":void 0,...a,ref:u,onClick:pF(a.onClick,(e=>{e.currentTarget.focus(),"mouse"!==f.current&&g(e)})),onPointerDown:pF(a.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:pF(a.onKeyDown,(e=>{const t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),t&&" "===e.key||U_.includes(e.key)&&(g(),e.preventDefault())}))})})}));aV.displayName=iV;var sV="SelectValue",lV=r.forwardRef(((t,r)=>{const{__scopeSelect:o,className:i,style:a,children:s,placeholder:l="",...c}=t,u=tV(sV,o),{onValueNodeHasChildrenChange:d}=u,f=void 0!==s,p=bF(r,u.onValueNodeChange);return GF((()=>{d(f)}),[d,f]),e(kF.span,{...c,ref:p,style:{pointerEvents:"none"},children:GV(u.value)?e(n,{children:l}):s})}));lV.displayName=sV;var cV=r.forwardRef(((t,n)=>{const{__scopeSelect:r,children:o,...i}=t;return e(kF.span,{"aria-hidden":!0,...i,ref:n,children:o||"▼"})}));cV.displayName="SelectIcon";var uV=t=>e(x_,{asChild:!0,...t});uV.displayName="SelectPortal";var dV="SelectContent",fV=r.forwardRef(((t,n)=>{const o=tV(dV,t.__scopeSelect),[i,a]=r.useState();if(GF((()=>{a(new DocumentFragment)}),[]),!o.open){const n=i;return n?R.createPortal(e(hV,{scope:t.__scopeSelect,children:e(X_.Slot,{scope:t.__scopeSelect,children:e("div",{children:t.children})})}),n):null}return e(vV,{...t,ref:n})}));fV.displayName=dV;var pV=10,[hV,mV]=Z_(dV),gV=wF("SelectContent.RemoveScroll"),vV=r.forwardRef(((t,n)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:l,side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:v,avoidCollisions:b,...w}=t,y=tV(dV,o),[x,C]=r.useState(null),[S,k]=r.useState(null),E=bF(n,(e=>C(e))),[P,N]=r.useState(null),[R,M]=r.useState(null),A=q_(o),[T,I]=r.useState(!1),O=r.useRef(!1);r.useEffect((()=>{if(x)return wf(x)}),[x]),r.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??FF()),document.body.insertAdjacentElement("beforeend",e[1]??FF()),DF++,()=>{1===DF&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),DF--}}),[]);const L=r.useCallback((e=>{const[t,...n]=A().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}}),[A,S]),D=r.useCallback((()=>L([P,x])),[L,P,x]);r.useEffect((()=>{T&&D()}),[T,D]);const{onOpenChange:F,triggerPointerDownPosRef:_}=y;r.useEffect((()=>{if(x){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(_.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(_.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||F(!1),document.removeEventListener("pointermove",t),_.current=null};return null!==_.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[x,F,_]),r.useEffect((()=>{const e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[F]);const[V,z]=XV((e=>{const t=A().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=qV(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),j=r.useCallback(((e,t,n)=>{const r=!O.current&&!n;(void 0!==y.value&&y.value===t||r)&&(N(e),r&&(O.current=!0))}),[y.value]),H=r.useCallback((()=>x?.focus()),[x]),B=r.useCallback(((e,t,n)=>{const r=!O.current&&!n;(void 0!==y.value&&y.value===t||r)&&M(e)}),[y.value]),$="popper"===i?wV:bV,W=$===wV?{side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:v,avoidCollisions:b}:{};return e(hV,{scope:o,content:x,viewport:S,onViewportChange:k,itemRefCallback:j,selectedItem:P,onItemLeave:H,itemTextRefCallback:B,focusSelectedItem:D,selectedItemText:R,position:i,isPositioned:T,searchRef:V,children:e(W_,{as:gV,allowPinchZoom:!0,children:e(jF,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:pF(a,(e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()})),children:e(TF,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:e($,{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:pF(w.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().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((()=>L(t))),e.preventDefault()}}))})})})})})}));vV.displayName="SelectContentImpl";var bV=r.forwardRef(((t,n)=>{const{__scopeSelect:o,onPlaced:i,...a}=t,s=tV(dV,o),l=mV(dV,o),[c,u]=r.useState(null),[d,f]=r.useState(null),p=bF(n,(e=>f(e))),h=q_(o),m=r.useRef(!1),g=r.useRef(!0),{viewport:v,selectedItem:b,selectedItemText:w,focusSelectedItem:y}=l,x=r.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-pV,d=TC(i,[pV,Math.max(pV,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-pV,d=TC(i,[pV,Math.max(pV,u-l)]);c.style.minWidth=s+"px",c.style.right=d+"px"}const o=h(),a=window.innerHeight-2*pV,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-pV,P=a-E,N=b.offsetHeight/2,R=f+p+(b.offsetTop+N),M=y-R;if(R<=E){const e=o.length>0&&b===o[o.length-1].ref.current;c.style.bottom="0px";const t=d.clientHeight-v.offsetTop-v.offsetHeight,n=R+Math.max(P,N+(e?k:0)+t+g);c.style.height=n+"px"}else{const e=o.length>0&&b===o[0].ref.current;c.style.top="0px";const t=Math.max(E,f+v.offsetTop+(e?S:0)+N)+M;c.style.height=t+"px",v.scrollTop=R-E+v.offsetTop}c.style.margin=`${pV}px 0`,c.style.minHeight=x+"px",c.style.maxHeight=a+"px",i?.(),requestAnimationFrame((()=>m.current=!0))}}),[h,s.trigger,s.valueNode,c,d,v,b,w,s.dir,i]);GF((()=>x()),[x]);const[C,S]=r.useState();GF((()=>{d&&S(window.getComputedStyle(d).zIndex)}),[d]);const k=r.useCallback((e=>{e&&!0===g.current&&(x(),y?.(),g.current=!1)}),[x,y]);return e(yV,{scope:o,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:k,children:e("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:e(kF.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));bV.displayName="SelectItemAlignedPosition";var wV=r.forwardRef(((t,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:i=pV,...a}=t,s=J_(r);return e(w_,{...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)"}})}));wV.displayName="SelectPopperPosition";var[yV,xV]=Z_(dV,{}),CV="SelectViewport",SV=r.forwardRef(((o,i)=>{const{__scopeSelect:a,nonce:s,...l}=o,c=mV(CV,a),u=xV(CV,a),d=bF(i,c.onViewportChange),f=r.useRef(0);return t(n,{children:[e("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:s}),e(X_.Slot,{scope:a,children:e(kF.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:pF(l.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;if(r?.current&&n){const e=Math.abs(f.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*pV,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")}}}f.current=t.scrollTop}))})})]})}));SV.displayName=CV;var kV="SelectGroup",[EV,PV]=Z_(kV),NV=r.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=YF();return e(EV,{scope:r,id:i,children:e(kF.div,{role:"group","aria-labelledby":i,...o,ref:n})})}));NV.displayName=kV;var RV="SelectLabel",MV=r.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=PV(RV,r);return e(kF.div,{id:i.id,...o,ref:n})}));MV.displayName=RV;var AV="SelectItem",[TV,IV]=Z_(AV),OV=r.forwardRef(((t,n)=>{const{__scopeSelect:o,value:i,disabled:a=!1,textValue:s,...l}=t,c=tV(AV,o),u=mV(AV,o),d=c.value===i,[f,p]=r.useState(s??""),[h,m]=r.useState(!1),g=bF(n,(e=>u.itemRefCallback?.(e,i,a))),v=YF(),b=r.useRef("touch"),w=()=>{a||(c.onValueChange(i),c.onOpenChange(!1))};if(""===i)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(TV,{scope:o,value:i,disabled:a,textId:v,isSelected:d,onItemTextChange:r.useCallback((e=>{p((t=>t||(e?.textContent??"").trim()))}),[]),children:e(X_.ItemSlot,{scope:o,value:i,disabled:a,textValue:f,children:e(kF.div,{role:"option","aria-labelledby":v,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:g,onFocus:pF(l.onFocus,(()=>m(!0))),onBlur:pF(l.onBlur,(()=>m(!1))),onClick:pF(l.onClick,(()=>{"mouse"!==b.current&&w()})),onPointerUp:pF(l.onPointerUp,(()=>{"mouse"===b.current&&w()})),onPointerDown:pF(l.onPointerDown,(e=>{b.current=e.pointerType})),onPointerMove:pF(l.onPointerMove,(e=>{b.current=e.pointerType,a?u.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:pF(l.onPointerLeave,(e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()})),onKeyDown:pF(l.onKeyDown,(e=>{""!==u.searchRef?.current&&" "===e.key||(K_.includes(e.key)&&w()," "===e.key&&e.preventDefault())}))})})})}));OV.displayName=AV;var LV="SelectItemText",DV=r.forwardRef(((o,i)=>{const{__scopeSelect:a,className:s,style:l,...c}=o,u=tV(LV,a),d=mV(LV,a),f=IV(LV,a),p=rV(LV,a),[h,m]=r.useState(null),g=bF(i,(e=>m(e)),f.onItemTextChange,(e=>d.itemTextRefCallback?.(e,f.value,f.disabled))),v=h?.textContent,b=r.useMemo((()=>e("option",{value:f.value,disabled:f.disabled,children:v},f.value)),[f.disabled,f.value,v]),{onNativeOptionAdd:w,onNativeOptionRemove:y}=p;return GF((()=>(w(b),()=>y(b))),[w,y,b]),t(n,{children:[e(kF.span,{id:f.textId,...c,ref:g}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?R.createPortal(c.children,u.valueNode):null]})}));DV.displayName=LV;var FV="SelectItemIndicator",_V=r.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t;return IV(FV,r).isSelected?e(kF.span,{"aria-hidden":!0,...o,ref:n}):null}));_V.displayName=FV;var VV="SelectScrollUpButton",zV=r.forwardRef(((t,n)=>{const o=mV(VV,t.__scopeSelect),i=xV(VV,t.__scopeSelect),[a,s]=r.useState(!1),l=bF(n,i.onScrollButtonChange);return GF((()=>{if(o.viewport&&o.isPositioned){let e=function(){const e=t.scrollTop>0;s(e)};const t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[o.viewport,o.isPositioned]),a?e(BV,{...t,ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}));zV.displayName=VV;var jV="SelectScrollDownButton",HV=r.forwardRef(((t,n)=>{const o=mV(jV,t.__scopeSelect),i=xV(jV,t.__scopeSelect),[a,s]=r.useState(!1),l=bF(n,i.onScrollButtonChange);return GF((()=>{if(o.viewport&&o.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;s(n)};const t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[o.viewport,o.isPositioned]),a?e(BV,{...t,ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}));HV.displayName=jV;var BV=r.forwardRef(((t,n)=>{const{__scopeSelect:o,onAutoScroll:i,...a}=t,s=mV("SelectScrollButton",o),l=r.useRef(null),c=q_(o),u=r.useCallback((()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)}),[]);return r.useEffect((()=>()=>u()),[u]),GF((()=>{const e=c().find((e=>e.ref.current===document.activeElement));e?.ref.current?.scrollIntoView({block:"nearest"})}),[c]),e(kF.div,{"aria-hidden":!0,...a,ref:n,style:{flexShrink:0,...a.style},onPointerDown:pF(a.onPointerDown,(()=>{null===l.current&&(l.current=window.setInterval(i,50))})),onPointerMove:pF(a.onPointerMove,(()=>{s.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(i,50))})),onPointerLeave:pF(a.onPointerLeave,(()=>{u()}))})})),$V=r.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t;return e(kF.div,{"aria-hidden":!0,...o,ref:n})}));$V.displayName="SelectSeparator";var WV="SelectArrow",UV=r.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=J_(r),a=tV(WV,r),s=mV(WV,r);return a.open&&"popper"===s.position?e(y_,{...i,...o,ref:n}):null}));UV.displayName=WV;var KV=r.forwardRef((({__scopeSelect:t,value:n,...o},i)=>{const a=r.useRef(null),s=bF(i,a),l=function(e){const t=r.useRef({value:e,previous:e});return r.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n);return r.useEffect((()=>{const e=a.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(kF.select,{...o,style:{...k_,...o.style},ref:s,defaultValue:n})}));function GV(e){return""===e||void 0===e}function XV(e){const t=EF(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback((e=>{const r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout((()=>e("")),1e3))}(r)}),[t]),a=r.useCallback((()=>{n.current="",window.clearTimeout(o.current)}),[]);return r.useEffect((()=>()=>window.clearTimeout(o.current)),[]),[n,i,a]}function qV(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}KV.displayName="SelectBubbleInput";var YV=oV,ZV=aV,QV=cV,JV=uV,ez=fV,tz=SV,nz=MV,rz=OV,oz=DV,iz=_V,az=zV,sz=HV,lz=$V;const cz=lV,uz=r.forwardRef((({className:n="",children:r,...o},i)=>t(ZV,{ref:i,className:an("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",n),...o,children:[r,e(QV,{asChild:!0,children:e(st,{className:"h-4 w-4 opacity-50"})})]})));uz.displayName=ZV.displayName;const dz=r.forwardRef((({className:t="",...n},r)=>e(az,{ref:r,className:an("flex cursor-default items-center justify-center py-1 dark:text-white",t),...n,children:e(pt,{})})));dz.displayName=az.displayName;const fz=r.forwardRef((({className:t="",...n},r)=>e(sz,{ref:r,className:an("flex cursor-default items-center justify-center py-1 dark:text-white",t),...n,children:e(dt,{})})));fz.displayName=sz.displayName;const pz=r.forwardRef((({className:n="",children:r,position:o="popper",...i},a)=>e(JV,{children:t(ez,{ref:a,className:an("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"===o?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":"",n),position:o,...i,children:[e(dz,{}),e(tz,{className:an("p-1","popper"===o?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:r}),e(fz,{})]})})));pz.displayName=ez.displayName;const hz=r.forwardRef((({className:t="",...n},r)=>e(nz,{ref:r,className:an("px-2 py-1.5 text-sm font-semibold",t),...n})));hz.displayName=nz.displayName;const mz=r.forwardRef((({className:n="",children:r,...o},i)=>t(rz,{ref:i,className:an("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",n),...o,children:[e("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e(iz,{children:e(ct,{className:"h-4 w-4"})})}),e(oz,{children:r})]})));mz.displayName=rz.displayName;const gz=r.forwardRef((({className:t="",...n},r)=>e(lz,{ref:r,className:an("-mx-1 my-1 h-px bg-muted",t),...n})));function vz({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:h,matches:m}=ny({value:n,options:d});return e(YV,{value:n,onValueChange:i,open:f,onOpenChange:()=>{!0!==f?setTimeout((()=>{p(!f)}),75):p(!1)},children:t(ju,{open:f,setOpen:p,resetValueOnHide:!0,includesBaseElement:!1,setValue:e=>{E((()=>{h(e)}))},children:[e(uz,{"aria-label":a,className:an("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:t(cz,{placeholder:l,children:[e("div",{className:"assistant-item flex items-center justify-center overflow-hidden rounded-full",children:u||e(dt,{})}),e("span",{className:an("ml-2",c?"hidden":""),style:{userSelect:"none"},children:n?r??n:l&&l})]})}),e(JV,{children:t(ez,{role:"dialog","aria-label":a+"s",position:"popper",className:an("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:[t(tz,{className:"mb-5 h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",children:[t("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(oh,{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(zu,{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($u,{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(Yu,{className:"overflow-y-auto p-1 py-2",children:m.map((({label:n,value:r,icon:o})=>e(rz,{value:`${r??""}`,asChild:!0,children:t(Ku,{className:an("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(`${r??""}`),p(!1)},children:[e("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e(iz,{children:e(ct,{className:"h-4 w-4"})})}),e(oz,{children:t("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("div",{className:"assistant-item overflow-hidden rounded-full",children:o&&o}),n]})})]})},r)))})]}),e(fz,{className:"absolute bottom-0 left-0 right-0"})]})})]})})}gz.displayName=lz.displayName;const bz=e=>"object"==typeof e&&"divider"in e,wz=e=>"object"==typeof e&&"value"in e&&"label"in e,yz=({value:n,label:r="",onChange:o,options:i,className:a="",sizeClasses:s,testId:l="dropdown-menu",icon:c,iconOnly:u=!1,renderValue:d,ariaLabel:f,portal:p=!0})=>{const h=Lc({value:n,setValue:e=>{o(e)}}),m=e=>{if(null!=e&&""!==e)return i.filter((e=>!bz(e))).map((e=>"string"==typeof e?{value:e,label:e}:e)).find((t=>wz(t)&&t.value===e))};return t("div",{className:an("relative",a),children:[t(Wc,{store:h,className:an("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",u?"h-full w-10":"w-fit gap-2",a),"data-testid":l,"aria-label":f,children:[t("div",{className:"flex w-full items-center gap-2",children:[c,!u&&t("span",{className:"block truncate",children:[r,(()=>{const e=m(n);return e&&d?d(e):(e=>{if(null==e||""===e)return"";const t=m(e);return t?t.label:e})(n)})()]})]}),!u&&e(Fc,{})]}),e(su,{portal:p,store:h,className:an("popover-ui",s,a,"max-h-[80vh] overflow-y-auto"),children:i.map(((r,o)=>{if(bz(r))return e("div",{className:"my-1 border-t border-border-heavy"},`divider-${o}`);const i="string"==typeof r?{value:r,label:r}:r;return wz(i)?e(tu,{value:String(i.value),className:"select-item","data-theme":i.value,children:t("div",{className:"flex w-full items-center gap-2",children:[null!=i.icon&&e("span",{children:i.icon}),e("span",{className:"block truncate",children:i.label}),n===i.value&&e("span",{className:"ml-auto pl-2",children:e("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("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-${o}`):null}))})]})};var xz=_z(),Cz=e=>Oz(e,xz),Sz=_z();Cz.write=e=>Oz(e,Sz);var kz=_z();Cz.onStart=e=>Oz(e,kz);var Ez=_z();Cz.onFrame=e=>Oz(e,Ez);var Pz=_z();Cz.onFinish=e=>Oz(e,Pz);var Nz=[];Cz.setTimeout=(e,t)=>{const n=Cz.now()+t,r=()=>{const e=Nz.findIndex((e=>e.cancel==r));~e&&Nz.splice(e,1),Tz-=~e?1:0},o={time:n,handler:e,cancel:r};return Nz.splice(Rz(n),0,o),Tz+=1,Lz(),o};var Rz=e=>~(~Nz.findIndex((t=>t.time>e))||~Nz.length);Cz.cancel=e=>{kz.delete(e),Ez.delete(e),Pz.delete(e),xz.delete(e),Sz.delete(e)},Cz.sync=e=>{Iz=!0,Cz.batchedUpdates(e),Iz=!1},Cz.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,Cz.onStart(n)}return r.handler=e,r.cancel=()=>{kz.delete(n),t=null},r};var Mz="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Cz.use=e=>Mz=e,Cz.now="undefined"!=typeof performance?()=>performance.now():Date.now,Cz.batchedUpdates=e=>e(),Cz.catch=console.error,Cz.frameLoop="always",Cz.advance=()=>{"demand"!==Cz.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Fz()};var Az=-1,Tz=0,Iz=!1;function Oz(e,t){Iz?(t.delete(e),e(0)):(t.add(e),Lz())}function Lz(){Az<0&&(Az=0,"demand"!==Cz.frameLoop&&Mz(Dz))}function Dz(){~Az&&(Mz(Dz),Cz.batchedUpdates(Fz))}function Fz(){const e=Az;Az=Cz.now();const t=Rz(Az);t&&(Vz(Nz.splice(0,t),(e=>e.handler())),Tz-=t),Tz?(kz.flush(),xz.flush(e?Math.min(64,Az-e):16.667),Ez.flush(),Sz.flush(),Pz.flush()):Az=-1}function _z(){let e=new Set,t=e;return{add(n){Tz+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Tz-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Tz-=t.size,Vz(t,(t=>t(n)&&e.add(t))),Tz+=e.size,t=e)}}}function Vz(e,t){e.forEach((e=>{try{t(e)}catch(e){Cz.catch(e)}}))}var zz=Object.defineProperty,jz={};function Hz(){}((e,t)=>{for(var n in t)zz(e,n,{get:t[n],enumerable:!0})})(jz,{assign:()=>tj,colors:()=>Qz,createStringInterpolator:()=>Xz,skipAnimation:()=>Jz,to:()=>qz,willAdvance:()=>ej});var Bz={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 $z(e,t){if(Bz.arr(e)){if(!Bz.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 Wz=(e,t)=>e.forEach(t);function Uz(e,t,n){if(Bz.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 Kz=e=>Bz.und(e)?[]:Bz.arr(e)?e:[e];function Gz(e,t){if(e.size){const n=Array.from(e);e.clear(),Wz(n,t)}}var Xz,qz,Yz=(e,...t)=>Gz(e,(e=>e(...t))),Zz=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qz=null,Jz=!1,ej=Hz,tj=e=>{e.to&&(qz=e.to),e.now&&(Cz.now=e.now),void 0!==e.colors&&(Qz=e.colors),null!=e.skipAnimation&&(Jz=e.skipAnimation),e.createStringInterpolator&&(Xz=e.createStringInterpolator),e.requestAnimationFrame&&Cz.use(e.requestAnimationFrame),e.batchedUpdates&&(Cz.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ej=e.willAdvance),e.frameLoop&&(Cz.frameLoop=e.frameLoop)},nj=new Set,rj=[],oj=[],ij=0,aj={get idle(){return!nj.size&&!rj.length},start(e){ij>e.priority?(nj.add(e),Cz.onStart(sj)):(lj(e),Cz(uj))},advance:uj,sort(e){if(ij)Cz.onFrame((()=>aj.sort(e)));else{const t=rj.indexOf(e);~t&&(rj.splice(t,1),cj(e))}},clear(){rj=[],nj.clear()}};function sj(){nj.forEach(lj),nj.clear(),Cz(uj)}function lj(e){rj.includes(e)||cj(e)}function cj(e){rj.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(rj,(t=>t.priority>e.priority)),0,e)}function uj(e){const t=oj;for(let n=0;n<rj.length;n++){const r=rj[n];ij=r.priority,r.idle||(ej(r),r.advance(e),r.idle||t.push(r))}return ij=0,(oj=rj).length=0,(rj=t).length>0}var dj="[-+]?\\d*\\.?\\d+",fj=dj+"%";function pj(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var hj=new RegExp("rgb"+pj(dj,dj,dj)),mj=new RegExp("rgba"+pj(dj,dj,dj,dj)),gj=new RegExp("hsl"+pj(dj,fj,fj)),vj=new RegExp("hsla"+pj(dj,fj,fj,dj)),bj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,wj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yj=/^#([0-9a-fA-F]{6})$/,xj=/^#([0-9a-fA-F]{8})$/;function Cj(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 Sj(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Cj(o,r,e+1/3),a=Cj(o,r,e),s=Cj(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function kj(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ej(e){return(parseFloat(e)%360+360)%360/360}function Pj(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Nj(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Rj(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=yj.exec(e))?parseInt(t[1]+"ff",16)>>>0:Qz&&void 0!==Qz[e]?Qz[e]:(t=hj.exec(e))?(kj(t[1])<<24|kj(t[2])<<16|kj(t[3])<<8|255)>>>0:(t=mj.exec(e))?(kj(t[1])<<24|kj(t[2])<<16|kj(t[3])<<8|Pj(t[4]))>>>0:(t=bj.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=xj.exec(e))?parseInt(t[1],16)>>>0:(t=wj.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gj.exec(e))?(255|Sj(Ej(t[1]),Nj(t[2]),Nj(t[3])))>>>0:(t=vj.exec(e))?(Sj(Ej(t[1]),Nj(t[2]),Nj(t[3]))|Pj(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 Mj=(e,t,n)=>{if(Bz.fun(e))return e;if(Bz.arr(e))return Mj({range:e,output:t,extrapolate:n});if(Bz.str(e.output[0]))return Xz(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 Aj=Symbol.for("FluidValue.get"),Tj=Symbol.for("FluidValue.observers"),Ij=e=>Boolean(e&&e[Aj]),Oj=e=>e&&e[Aj]?e[Aj]():e,Lj=e=>e[Tj]||null;function Dj(e,t){const n=e[Tj];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Fj=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");_j(this,e)}},_j=(e,t)=>Hj(e,Aj,t);function Vj(e,t){if(e[Aj]){let n=e[Tj];n||Hj(e,Tj,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function zj(e,t){const n=e[Tj];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Tj]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var jj,Hj=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Bj=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,$j=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Wj=new RegExp(`(${Bj.source})(%|[a-z]+)`,"i"),Uj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Kj=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Gj=e=>{const[t,n]=Xj(e);if(!t||Zz())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&&Kj.test(n)?Gj(n):n||e},Xj=e=>{const t=Kj.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},qj=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Yj=e=>{jj||(jj=Qz?new RegExp(`(${Object.keys(Qz).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Oj(e).replace(Kj,Gj).replace($j,Rj).replace(jj,Rj))),n=t.map((e=>e.match(Bj).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=>Mj({...e,output:t})));return e=>{const n=!Wj.test(t[0])&&t.find((e=>Wj.test(e)))?.replace(Bj,"");let r=0;return t[0].replace(Bj,(()=>`${o[r++](e)}${n||""}`)).replace(Uj,qj)}},Zj="react-spring: ",Qj=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Zj}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Jj=Qj(console.warn);var eH=Qj(console.warn);function tH(e){return Bz.str(e)&&("#"==e[0]||/\d/.test(e)||!Zz()&&Kj.test(e)||e in(Qz||{}))}var nH=Zz()?g:b,rH=()=>{const e=m(!1);return nH((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function oH(){const e=v()[1],t=rH();return()=>{t.current&&e(Math.random())}}var iH=e=>g(e,aH),aH=[];function sH(e){const t=m();return g((()=>{t.current=e})),t.current}var lH=Symbol.for("Animated:node"),cH=e=>e&&e[lH],uH=(e,t)=>{return n=e,r=lH,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},dH=e=>e&&e[lH]&&e[lH].getPayload(),fH=class{constructor(){uH(this,this)}getPayload(){return this.payload||[]}},pH=class extends fH{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Bz.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new pH(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Bz.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,Bz.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},hH=class extends pH{constructor(e){super(0),this._string=null,this._toString=Mj({output:[e,e]})}static create(e){return new hH(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Bz.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=Mj({output:[this.getValue(),e]})),this._value=0,super.reset()}},mH={dependencies:null},gH=class extends fH{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Uz(this.source,((n,r)=>{var o;(o=n)&&o[lH]===o?t[r]=n.getValue(e):Ij(n)?t[r]=Oj(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Wz(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Uz(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){mH.dependencies&&Ij(e)&&mH.dependencies.add(e);const t=dH(e);t&&Wz(t,(e=>this.add(e)))}},vH=class extends gH{constructor(e){super(e)}static create(e){return new vH(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(bH)),!0)}};function bH(e){return(tH(e)?hH:pH).create(e)}function wH(e){const t=cH(e);return t?t.constructor:Bz.arr(e)?vH:tH(e)?hH:pH}var yH=(e,t)=>{const n=!Bz.fun(e)||e.prototype&&e.prototype.isReactComponent;return u(((o,i)=>{const a=m(null),s=n&&c((e=>{a.current=function(e,t){e&&(Bz.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[l,u]=function(e,t){const n=new Set;mH.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new gH(e),mH.dependencies=null,[e,n]}(o,t),d=oH(),f=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&d()},p=new xH(f,u),h=m();nH((()=>(h.current=p,Wz(u,(e=>Vj(e,p))),()=>{h.current&&(Wz(h.current.deps,(e=>zj(e,h.current))),Cz.cancel(h.current.update))}))),g(f,[]),iH((()=>()=>{const e=h.current;Wz(e.deps,(t=>zj(t,e)))}));const v=t.getComponentProps(l.getValue());return r.createElement(e,{...v,ref:s})}))},xH=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Cz.write(this.update)}};var CH=Symbol.for("AnimatedComponent"),SH=e=>Bz.str(e)?e:e&&Bz.str(e.displayName)?e.displayName:Bz.fun(e)&&e.name||null;function kH(e,...t){return Bz.fun(e)?e(...t):e}var EH=(e,t)=>!0===e||!!(t&&e&&(Bz.fun(e)?e(t):Kz(e).includes(t))),PH=(e,t)=>Bz.obj(e)?t&&e[t]:e,NH=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,RH=e=>e,MH=(e,t=RH)=>{let n=AH;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);Bz.und(n)||(r[o]=n)}return r},AH=["config","onProps","onStart","onChange","onPause","onResume","onRest"],TH={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 IH(e){const t=function(e){const t={};let n=0;if(Uz(e,((e,r)=>{TH[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Uz(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function OH(e){return e=Oj(e),Bz.arr(e)?e.map(OH):tH(e)?jz.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function LH(e){return Bz.fun(e)||Bz.arr(e)&&Bz.obj(e[0])}var DH={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},FH=class{constructor(){this.velocity=0,Object.assign(this,DH)}};function _H(e,t){if(Bz.und(t.decay)){const n=!Bz.und(t.tension)||!Bz.und(t.friction);!n&&Bz.und(t.frequency)&&Bz.und(t.damping)&&Bz.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var VH=[],zH=class{constructor(){this.changed=!1,this.values=VH,this.toValues=null,this.fromValues=VH,this.config=new FH,this.immediate=!1}};function jH(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=EH(n.cancel??r?.cancel,t);if(u)p();else{Bz.und(n.pause)||(o.paused=EH(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||EH(e,t)),l=kH(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-Cz.now()}function f(){l>0&&!jz.skipAnimation?(o.delayed=!0,c=Cz.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 HH=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?WH(e.get()):t.every((e=>e.noop))?BH(e.get()):$H(e.get(),t.every((e=>e.finished))),BH=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),$H=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),WH=e=>({value:e,cancelled:!0,finished:!1});function UH(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=MH(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)&&WH(r)||o!==n.asyncId&&$H(r,!1);if(t)throw e.result=t,d(e),e},h=(e,t)=>{const i=new GH,a=new XH;return(async()=>{if(jz.skipAnimation)throw KH(n),a.result=$H(r,!1),d(a),a;p(i);const s=Bz.obj(e)?{...e}:{...t,to:e};s.parentId=o,Uz(c,((e,t)=>{Bz.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 m;if(jz.skipAnimation)return KH(n),$H(r,!1);try{let t;t=Bz.arr(e)?(async e=>{for(const t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(u),f]),m=$H(r.get(),!0,!1)}catch(e){if(e instanceof GH)m=e.result;else{if(!(e instanceof XH))throw e;m=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return Bz.fun(a)&&Cz.batchedUpdates((()=>{a(m,r,r.item)})),m})():l}function KH(e,t){Gz(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var GH=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.")}},XH=class extends Error{constructor(){super("SkipAnimationSignal")}},qH=e=>e instanceof ZH,YH=1,ZH=class extends Fj{constructor(){super(...arguments),this.id=YH++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=cH(this);return e&&e.getValue()}to(...e){return jz.to(this,e)}interpolate(...e){return Jj(`${Zj}The "interpolate" function is deprecated in v9 (use "to" instead)`),jz.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){Dj(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||aj.sort(this),Dj(this,{type:"priority",parent:this,priority:e})}},QH=Symbol.for("SpringPhase"),JH=e=>(1&e[QH])>0,eB=e=>(2&e[QH])>0,tB=e=>(4&e[QH])>0,nB=(e,t)=>t?e[QH]|=3:e[QH]&=-3,rB=(e,t)=>t?e[QH]|=4:e[QH]&=-5,oB=class extends ZH{constructor(e,t){if(super(),this.animation=new zH,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,!Bz.und(e)||!Bz.und(t)){const n=Bz.obj(e)?{...e}:{...t,from:e};Bz.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(eB(this)||this._state.asyncTo)||tB(this)}get goal(){return Oj(this.animation.to)}get velocity(){const e=cH(this);return e instanceof pH?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return JH(this)}get isAnimating(){return eB(this)}get isPaused(){return tB(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=dH(r.to);!a&&Ij(r.to)&&(o=Kz(Oj(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==hH?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=Bz.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(Bz.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=!Bz.und(r),p=n==c?s.v0>0:n<c;let h,m=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(h=Math.abs(a)>t,h||(u=Math.abs(c-d)<=f,!u));++e){l&&(m=d==c||d>c==p,m&&(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=cH(this),l=s.getValue();if(t){const e=Oj(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 Cz.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(eB(this)){const{to:e,config:t}=this.animation;Cz.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 Bz.und(e)?(n=this.queue||[],this.queue=[]):n=[Bz.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>HH(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),KH(this._state,e&&this._lastCallId),Cz.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=Bz.obj(n)?n[t]:n,(null==n||LH(n))&&(n=void 0),r=Bz.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return JH(this)||(e.reverse&&([n,r]=[r,n]),r=Oj(r),Bz.und(r)?cH(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,MH(e,((e,t)=>/^on/.test(t)?PH(e,n):e))),dB(this,e,"onProps"),fB(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 jH(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{tB(this)||(rB(this,!0),Yz(i.pauseQueue),fB(this,"onPause",$H(this,iB(this,this.animation.to)),this))},resume:()=>{tB(this)&&(rB(this,!1),eB(this)&&this._resume(),Yz(i.resumeQueue),fB(this,"onResume",$H(this,iB(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=aB(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(WH(this));const r=!Bz.und(e.to),o=!Bz.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(WH(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&&!Bz.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const f=!$z(d,c);f&&(s.from=d),d=Oj(d);const p=!$z(u,l);p&&this._focus(u);const h=LH(t.to),{config:m}=s,{decay:g,velocity:v}=m;(r||o)&&(m.velocity=0),t.config&&!h&&function(e,t,n){n&&(_H(n={...n},t),t={...n,...t}),_H(e,t),Object.assign(e,t);for(const t in DH)null==e[t]&&(e[t]=DH[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;Bz.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)}(m,kH(t.config,i),t.config!==a.config?kH(a.config,i):void 0);let b=cH(this);if(!b||Bz.und(u))return n($H(this,!0));const w=Bz.und(t.reset)?o&&!t.default:!Bz.und(d)&&EH(t.reset,i),y=w?d:this.get(),x=OH(u),C=Bz.num(x)||Bz.arr(x)||tH(x),S=!h&&(!C||EH(a.immediate||t.immediate,i));if(p){const e=wH(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=Ij(u),P=!1;if(!E){const e=w||!JH(this)&&f;(p||e)&&(P=$z(OH(y),x),E=!P),($z(s.immediate,S)||S)&&$z(m.decay,g)&&$z(m.velocity,v)||(E=!0)}if(P&&eB(this)&&(s.changed&&!w?E=!0:E||this._stop(l)),!h&&((E||Ij(l))&&(s.values=b.getPayload(),s.toValues=Ij(u)?null:k==hH?[1]:Kz(x)),s.immediate!=S&&(s.immediate=S,S||w||this._set(l)),E)){const{onRest:e}=s;Wz(uB,(e=>dB(this,t,e)));const r=$H(this,iB(this,l));Yz(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&Cz.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?kH(a.onRest,r):s.onStart?.(r,this)}))}w&&this._set(y),h?n(UH(t.to,t,this._state,this)):E?this._start():eB(this)&&!p?this._pendingCalls.add(n):n(BH(y))}_focus(e){const t=this.animation;e!==t.to&&(Lj(this)&&this._detach(),t.to=e,Lj(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ij(t)&&(Vj(t,this),qH(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ij(e)&&zj(e,this)}_set(e,t=!0){const n=Oj(e);if(!Bz.und(n)){const e=cH(this);if(!e||!$z(n,e.getValue())){const r=wH(n);e&&e.constructor==r?e.setValue(n):uH(this,r.create(n)),e&&Cz.batchedUpdates((()=>{this._onChange(n,t)}))}}return cH(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,fB(this,"onStart",$H(this,iB(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),kH(this.animation.onChange,e,this)),kH(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;cH(this).reset(Oj(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),eB(this)||(nB(this,!0),tB(this)||this._resume())}_resume(){jz.skipAnimation?this.finish():aj.start(this)}_stop(e,t){if(eB(this)){nB(this,!1);const n=this.animation;Wz(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Dj(this,{type:"idle",parent:this});const r=t?WH(this.get()):$H(this.get(),iB(this,e??n.to));Yz(this._pendingCalls,r),n.changed&&(n.changed=!1,fB(this,"onRest",r,this))}}};function iB(e,t){const n=OH(t);return $z(OH(e.get()),n)}function aB(e,t=e.loop,n=e.to){const r=kH(t);if(r){const o=!0!==r&&IH(r),i=(o||e).reverse,a=!o||o.reset;return sB({...e,loop:t,default:!1,pause:void 0,to:!i||LH(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function sB(e){const{to:t,from:n}=e=IH(e),r=new Set;return Bz.obj(t)&&cB(t,r),Bz.obj(n)&&cB(n,r),e.keys=r.size?Array.from(r):null,e}function lB(e){const t=sB(e);return Bz.und(t.default)&&(t.default=MH(t)),t}function cB(e,t){Uz(e,((e,n)=>null!=e&&t.add(n)))}var uB=["onStart","onRest","onChange","onPause","onResume"];function dB(e,t,n){e.animation[n]=t[n]!==NH(t,n)?PH(t[n],e.key):void 0}function fB(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var pB=["onStart","onChange","onRest"],hB=1,mB=class{constructor(e,t){this.id=hB++,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];Bz.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(sB(e)),this}start(e){let{queue:t}=this;return e?t=Kz(e).map(sB):this.queue=[],this._flush?this._flush(this,t):(CB(this,t),gB(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Wz(Kz(t),(t=>n[t].stop(!!e)))}else KH(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Bz.und(e))this.start({pause:!0});else{const t=this.springs;Wz(Kz(e),(e=>t[e].pause()))}return this}resume(e){if(Bz.und(e))this.start({pause:!1});else{const t=this.springs;Wz(Kz(e),(e=>t[e].resume()))}return this}each(e){Uz(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,Gz(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&&Gz(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,Gz(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)}Cz.onFrame(this._onFrame)}};function gB(e,t){return Promise.all(t.map((t=>vB(e,t)))).then((t=>HH(e,t)))}async function vB(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=Bz.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=Bz.arr(o)||Bz.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Wz(pB,(n=>{const r=t[n];if(Bz.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,Yz(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===NH(t,"cancel");(u||p&&d.asyncId)&&f.push(jH(++e._lastAsyncId,{props:t,state:d,actions:{pause:Hz,resume:Hz,start(t,n){p?(KH(d,e._lastAsyncId),n(WH(e))):(t.onRest=s,n(UH(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const h=HH(e,await Promise.all(f));if(a&&h.finished&&(!n||!h.noop)){const n=aB(t,a,o);if(n)return CB(e,[n]),vB(e,n,!0)}return l&&Cz.batchedUpdates((()=>l(h,e,e.item))),h}function bB(e,t){const n={...e.springs};return t&&Wz(Kz(t),(e=>{Bz.und(e.keys)&&(e=sB(e)),Bz.obj(e.to)||(e={...e,to:void 0}),xB(n,e,(e=>yB(e)))})),wB(e,n),n}function wB(e,t){Uz(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Vj(t,e))}))}function yB(e,t){const n=new oB;return n.key=e,t&&Vj(n,t),n}function xB(e,t,n){t.keys&&Wz(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function CB(e,t){Wz(t,(t=>{xB(e.springs,t,(t=>yB(t,e)))}))}var SB=({children:e,...t})=>{const n=l(kB),o=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){const[n]=v((()=>({inputs:t,result:e()}))),r=m(),o=r.current;let i=o;if(i){const n=Boolean(t&&i.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}(t,i.inputs));n||(i={inputs:t,result:e()})}else i=n;return g((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:o,immediate:i})),[o,i]);const{Provider:a}=kB;return r.createElement(a,{value:t},e)},kB=function(e,t){return Object.assign(e,r.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(SB,{});SB.Provider=kB.Provider,SB.Consumer=kB.Consumer;var EB=()=>{const e=[],t=function(t){eH(`${Zj}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 Wz(e,((e,o)=>{if(Bz.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 Wz(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Wz(e,(e=>e.resume(...arguments))),this},t.set=function(t){Wz(e,((e,n)=>{const r=Bz.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return Wz(e,((e,r)=>{if(Bz.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 Wz(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Wz(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Bz.fun(e)?e(n,t):e};return t._getProps=n,t};var PB=class extends ZH{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Mj(...t);const n=this._get(),r=wH(n);uH(this,r.create(n))}advance(e){const t=this._get();$z(t,this.get())||(cH(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&RB(this._active)&&MB(this)}_get(){const e=Bz.arr(this.source)?this.source.map(Oj):Kz(Oj(this.source));return this.calc(...e)}_start(){this.idle&&!RB(this._active)&&(this.idle=!1,Wz(dH(this),(e=>{e.done=!1})),jz.skipAnimation?(Cz.batchedUpdates((()=>this.advance())),MB(this)):aj.start(this))}_attach(){let e=1;Wz(Kz(this.source),(t=>{Ij(t)&&Vj(t,this),qH(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Wz(Kz(this.source),(e=>{Ij(e)&&zj(e,this)})),this._active.clear(),MB(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=Kz(this.source).reduce(((e,t)=>Math.max(e,(qH(t)?t.priority:0)+1)),0))}};function NB(e){return!1!==e.idle}function RB(e){return!e.size||Array.from(e).every(NB)}function MB(e){e.idle||(e.idle=!0,Wz(dH(e),(e=>{e.done=!0})),Dj(e,{type:"idle",parent:e}))}jz.assign({createStringInterpolator:Yj,to:(e,t)=>new PB(e,t)});var AB=/^--/;function TB(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||AB.test(e)||OB.hasOwnProperty(e)&&OB[e]?(""+t).trim():t+"px"}var IB={};var OB={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},LB=["Webkit","Ms","Moz","O"];OB=Object.keys(OB).reduce(((e,t)=>(LB.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),OB);var DB=/^(matrix|translate|scale|rotate|skew)/,FB=/^(translate)/,_B=/^(rotate|skew)/,VB=(e,t)=>Bz.num(e)&&0!==e?e+t:e,zB=(e,t)=>Bz.arr(e)?e.every((e=>zB(e,t))):Bz.num(e)?e===t:parseFloat(e)===t,jB=class extends gH{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=>VB(e,"px"))).join(",")})`,zB(e,0)]))),Uz(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(DB.test(t)){if(delete r[t],Bz.und(e))return;const n=FB.test(t)?"px":_B.test(t)?"deg":"";o.push(Kz(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${VB(o,n)})`,zB(o,0)]:e=>[`${t}(${e.map((e=>VB(e,n))).join(",")})`,zB(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new HB(o,i)),super(r)}},HB=class extends Fj{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 Wz(this.inputs,((n,r)=>{const o=Oj(n[0]),[i,a]=this.transforms[r](Bz.arr(o)?o:n.map(Oj));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Wz(this.inputs,(e=>Wz(e,(e=>Ij(e)&&Vj(e,this)))))}observerRemoved(e){0==e&&Wz(this.inputs,(e=>Wz(e,(e=>Ij(e)&&zj(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Dj(this,e)}};jz.assign({batchedUpdates:I,createStringInterpolator:Yj,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 BB=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new gH(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=SH(e)||"Anonymous";return(e=Bz.str(e)?i[e]||(i[e]=yH(e,o)):e[CH]||(e[CH]=yH(e,o))).displayName=`Animated(${t})`,e};return Uz(e,((t,n)=>{Bz.arr(e)&&(n=SH(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:IB[t]||(IB[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=TB(t,o[t]);AB.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 jB(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),$B=BB.animated;const WB=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]},UB=({text:r="",className:o="",delay:i=100,animationFrom:s={opacity:0,transform:"translate3d(0,40px,0)"},animationTo:c={opacity:1,transform:"translate3d(0,0,0)"},easing:u=(e=>e),threshold:d=.1,rootMargin:f="-100px",textAlign:p="center",onLetterAnimationComplete:h,onLineCountChange:b})=>{const w=r.split(" ").map(WB),y=w.flat(),[x,C]=v(!1),S=m(null),k=m(0),[E]=function(e,t,n){const r=Bz.fun(t)&&t;r&&!n&&(n=[]);const o=a((()=>r||3==arguments.length?EB():void 0),[]),i=m(0),s=oH(),c=a((()=>({ctrls:[],queue:[],flush(e,t){const n=bB(e,t);return i.current>0&&!c.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?gB(e,t):new Promise((r=>{wB(e,n),c.queue.push((()=>{r(gB(e,t))})),s()}))}})),[]),u=m([...c.ctrls]),d=[],f=sH(e)||0;function p(e,n){for(let o=e;o<n;o++){const e=u.current[o]||(u.current[o]=new mB(null,c.flush)),n=r?r(o,e):t[o];n&&(d[o]=lB(n))}}a((()=>{Wz(u.current.slice(e,f),(e=>{!function(e,t){e.ref?.delete(e),t?.delete(e)}(e,o),e.stop(!0)})),u.current.length=e,p(f,e)}),[e]),a((()=>{p(0,Math.min(f,e))}),n);const h=u.current.map(((e,t)=>bB(e,d[t]))),g=l(SB),v=sH(g),b=g!==v&&function(e){for(const t in e)return!0;return!1}(g);nH((()=>{i.current++,c.ctrls=u.current;const{queue:e}=c;e.length&&(c.queue=[],Wz(e,(e=>e()))),Wz(u.current,((e,t)=>{o?.add(e),b&&e.start({default:g});const n=d[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))}))})),iH((()=>()=>{Wz(c.ctrls,(e=>e.stop(!0)))}));const w=h.map((e=>({...e})));return o?[w,o]:w}(y.length,(e=>({from:s,to:x?async e=>{await e(c),k.current+=1,k.current===y.length&&h&&h()}:s,delay:e*i,config:{easing:u}})),[x,r,i,s,c,u,h]);return g((()=>{const e=new IntersectionObserver((([t])=>{t.isIntersecting&&(C(!0),S.current&&e.unobserve(S.current))}),{threshold:d,rootMargin:f});return S.current&&e.observe(S.current),()=>e.disconnect()}),[d,f]),g((()=>{if(S.current&&x){const e=S.current;setTimeout((()=>{const t=parseInt(getComputedStyle(e).lineHeight)||1.2*parseInt(getComputedStyle(e).fontSize),n=e.offsetHeight,r=Math.round(n/t);b&&b(r)}),100)}}),[x,r,b]),t(n,{children:[e("span",{className:"sr-only",children:r}),e("p",{ref:S,className:`split-parent inline overflow-hidden ${o}`,style:{textAlign:p,whiteSpace:"normal",wordWrap:"break-word"},"aria-hidden":"true",children:w.map(((n,r)=>t("span",{style:{display:"inline-block",whiteSpace:"nowrap"},children:[n.map(((t,n)=>{const o=w.slice(0,r).reduce(((e,t)=>e+t.length),0)+n;return e($B.span,{style:E[o],className:"inline-block transform transition-opacity will-change-transform",children:t},o)})),r<w.length-1&&e("span",{style:{display:"inline-block",width:"0.3em"},children:" "})]},r)))})]})};function KB(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 GB(e,t){if(void 0===e)throw new Error("Unexpected undefined");return e}const XB=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout((()=>t.apply(this,o)),n)}},qB=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},YB=e=>e,ZB=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},QB=(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(qB(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(qB(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()}));return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},JB={passive:!0},e$="undefined"==typeof window||"onscrollend"in window,t$=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&e$?()=>{}:XB(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,JB);const c=e.options.useScrollendEvent&&e$;return c&&n.addEventListener("scrollend",l,JB),()=>{n.removeEventListener("scroll",s),c&&n.removeEventListener("scrollend",l)}},n$=(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"]},r$=(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 o${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:YB,rangeExtractor:ZB,onChange:()=>{},measureElement:n$,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=KB((()=>(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=KB((()=>[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=KB((()=>[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=KB((()=>[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=i$(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=KB((()=>{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=KB((()=>[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 GB(t[i$(0,t.length-1,(e=>GB(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 i$=(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 a$="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function s$(e){return function(e){const t=r.useReducer((()=>({})),{})[1],n={...e,onChange:(n,r)=>{var o;r?A(t):t(),null==(o=e.onChange)||o.call(e,n,r)}},[o]=r.useState((()=>new o$(n)));return o.setOptions(n),a$((()=>o._didMount()),[]),a$((()=>o._willUpdate())),o}({observeElementRect:QB,observeElementOffset:t$,scrollToFn:r$,...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 l$(e,t){return"function"==typeof e?e(t):e}function c$(e,t){return n=>{t.setState((t=>({...t,[e]:l$(n,t[e])})))}}function u$(e){return e instanceof Function}function d$(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 f$(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 p$={createTable:e=>{e.getHeaderGroups=d$((()=>[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 h$(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=d$((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>h$(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=d$((()=>[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 h$(t,i,e,"left")}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=d$((()=>[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 h$(t,i,e,"right")}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=d$((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=d$((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=d$((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=d$((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=d$((()=>[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=d$((()=>[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=d$((()=>[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=d$((()=>[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=d$((()=>[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=d$((()=>[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=d$((()=>[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=d$((()=>[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 h$(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=f$(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)=>f$(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 m$={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},g$={getDefaultColumnDef:()=>m$,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:c$("columnSizing",e),onColumnSizingInfoChange:c$("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:m$.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:m$.size),null!=(o=e.columnDef.maxSize)?o:m$.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(),b$(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=b$(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,h={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",h.moveHandler),null==p||p.removeEventListener("mouseup",h.upHandler),f(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",m.moveHandler),null==p||p.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof v$)return v$;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 v$=e,v$}()&&{passive:!1};b$(i)?(null==p||p.addEventListener("touchmove",m.moveHandler,g),null==p||p.addEventListener("touchend",m.upHandler,g)):(null==p||p.addEventListener("mousemove",h.moveHandler,g),null==p||p.addEventListener("mouseup",h.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 v$=null;function b$(e){return"touchstart"===e.type}const w$={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:c$("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()}}}},y$=(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))};y$.autoRemove=e=>A$(e);const x$=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};x$.autoRemove=e=>A$(e);const C$=(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())};C$.autoRemove=e=>A$(e);const S$=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};S$.autoRemove=e=>A$(e)||!(null!=e&&e.length);const k$=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));k$.autoRemove=e=>A$(e)||!(null!=e&&e.length);const E$=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));E$.autoRemove=e=>A$(e)||!(null!=e&&e.length);const P$=(e,t,n)=>e.getValue(t)===n;P$.autoRemove=e=>A$(e);const N$=(e,t,n)=>e.getValue(t)==n;N$.autoRemove=e=>A$(e);const R$=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};R$.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]},R$.autoRemove=e=>A$(e)||A$(e[0])&&A$(e[1]);const M$={includesString:y$,includesStringSensitive:x$,equalsString:C$,arrIncludes:S$,arrIncludesAll:k$,arrIncludesSome:E$,equals:P$,weakEquals:N$,inNumberRange:R$};function A$(e){return null==e||""===e}const T$={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:c$("columnFilters",e),onGlobalFilterChange:c$("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?M$.includesString:"number"==typeof r?M$.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?M$.equals:Array.isArray(r)?M$.arrIncludes:M$.weakEquals},e.getFilterFn=()=>{var n,r;return u$(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:M$[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=l$(n,o?o.value:void 0);var a;if(I$(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=()=>M$.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return u$(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:M$[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=l$(t,e))?void 0:r.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(I$(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 I$(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const O$={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},L$={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:c$("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?O$.sum:"[object Date]"===Object.prototype.toString.call(r)?O$.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return u$(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:O$[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 D$={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:c$("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=d$((()=>[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})}},F$={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:c$("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=>l$(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=l$(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,l$(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=l$(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),e.getPageOptions=d$((()=>[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)}}},_$={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:c$("columnPinning",e),onRowPinningChange:c$("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=d$((()=>[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=d$((()=>[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=d$((()=>[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=d$((()=>[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=d$((()=>[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=d$((()=>[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=>d$((()=>[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=d$((()=>[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}})}},V$={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:c$("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=>{z$(o,t.id,r,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=d$((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?j$(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=d$((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?j$(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=d$((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?j$(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 z$(s,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),s}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return H$(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===B$(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===B$(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)}}}},z$=(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=>z$(e,t.id,n,r,o)))};function j$(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map((e=>{var t;const a=H$(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 H$(e,t){var n;return null!=(n=t[e.id])&&n}function B$(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()&&(H$(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=B$(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}})),o?"all":!!i&&"some"}const $$=/([0-9]+)/gm;function W$(e,t){return e===t?0:e>t?1:-1}function U$(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function K$(e,t){const n=e.split($$).filter(Boolean),r=t.split($$).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 G$={alphanumeric:(e,t,n)=>K$(U$(e.getValue(n)).toLowerCase(),U$(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>K$(U$(e.getValue(n)),U$(t.getValue(n))),text:(e,t,n)=>W$(U$(e.getValue(n)).toLowerCase(),U$(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>W$(U$(e.getValue(n)),U$(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)=>W$(e.getValue(n),t.getValue(n))},X$={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:c$("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 G$.datetime;if("string"==typeof n&&(r=!0,n.split($$).length>1))return G$.alphanumeric}return r?G$.text:G$.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 u$(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:G$[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())}},q$={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:c$("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=d$((()=>[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=d$((()=>[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)=>d$((()=>[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)}}},Y$=[p$,q$,D$,_$,T$,X$,L$,w$,F$,V$,g$];function Z$(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:Y$};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:Y$,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=l$(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:d$((()=>[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:d$((()=>[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:d$((()=>[!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:d$((()=>[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:d$((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:d$((()=>[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:d$((()=>[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 Q$=(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:d$((()=>[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:d$((()=>[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:d$((()=>[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 J$(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=Q$(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=Q$(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 eW(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)?r.createElement(e,t):e:null;var n}const tW=({value:n,onChange:r,isSearching:o,placeholder:i})=>{const a=!0===o,s=null!=n&&n.length>0;return t("div",{className:"relative w-full",children:[e("div",{className:"relative rounded-lg transition-all duration-500 ease-in-out",children:t("div",{className:"relative",children:[e("div",{className:"absolute left-3 top-1/2 z-50 -translate-y-1/2",children:e(oh,{className:an("h-4 w-4 transition-all duration-500 ease-in-out",a&&s?"text-blue-400":"text-gray-400")})}),e("input",{type:"text",value:n,onChange:r,placeholder:i,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("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 ${a&&s?"opacity-100 blur-sm":"opacity-0 blur-none"} `}),e("div",{className:`absolute right-3 top-1/2 z-20 -translate-y-1/2 transition-all duration-500 ease-in-out ${a&&s?"scale-100 opacity-100":"scale-0 opacity-0"} `,children:t("div",{className:"relative h-2 w-2",children:[e("div",{className:"absolute inset-0 animate-ping rounded-full bg-blue-500/60"}),e("div",{className:"absolute inset-0 rounded-full bg-blue-500"})]})})]})}),e("div",{className:`absolute -inset-8 -z-10 transition-all duration-700 ease-in-out ${a&&s?"scale-105 opacity-100":"scale-100 opacity-0"} `,children:t("div",{className:"absolute inset-0",children:[e("div",{className:`bg-gradient-radial absolute inset-0 from-blue-500/10 to-transparent transition-opacity duration-700 ease-in-out ${a&&s?"animate-pulse-slow opacity-100":"opacity-0"} `}),e("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 ${a&&s?"animate-gradient-x opacity-100":"opacity-0"} `})]})}),e("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"})]})};function nW({className:t="icon-md"}){return e("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("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"})})}function rW({className:n=""}){return t("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:an("lucide lucide-blocks",n),children:[e("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),e("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"})]})}function oW({className:n="",...r}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:an("h-4 w-4",n),width:"16",height:"16",strokeWidth:"2",...r,children:t("g",{fill:"currentColor",children:[e("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("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"})]})})}function iW({size:t=25,className:n=""}){return e("svg",{width:t,height:t,viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"1.5",className:an(n,""),children:e("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"})})}const aW=o.forwardRef(((t,n)=>{const{className:r="icon-md",size:o="1.2em"}=t;return e("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:an(r),children:e("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 sW({className:t="icon-sm"}){return e("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("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"})})}function lW({className:t}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("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"})})}function cW({className:t}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("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"})})}function uW({className:n="m-auto",size:r=20,color:o="currentColor",bgOpacity:i=.1,speed:a=.75}){const s={"--spinner-speed":`${a}s`};return t("svg",{className:an(n,"spinner"),width:r,height:r,viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",style:s,children:[e("defs",{children:e("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("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:o,strokeOpacity:i}),e("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:o,strokeDasharray:"25 75",strokeLinecap:"round"})]})}function dW({className:t="icon-md-heavy",size:n="1em"}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an(t),children:e("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"})})}function fW({className:t=""}){return e("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("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 pW({className:n=""}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an(n,"h-4 w-4"),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function hW(){return t("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:[e("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("path",{d:"M20 12H11M20 12L16 16M20 12L16 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function mW({size:n=25,className:r=""}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:an("lucide lucide-bot",r),children:[e("path",{d:"M12 8V4H8"}),e("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),e("path",{d:"M2 14h2"}),e("path",{d:"M20 14h2"}),e("path",{d:"M15 13v2"}),e("path",{d:"M9 13v2"})]})}function gW({className:t=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",className:an("h-6 w-6",t),children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"})})}function vW({className:t=""}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("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"})})}function bW({className:n}){return t("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:an(n??"","lucide lucide-messages-square"),children:[e("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("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})]})}function wW({className:t=""}){return e("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an("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("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})})}function yW({className:t="",size:n="1em"}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an("icon-md-heavy",t),children:e("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"})})}function xW({className:n=""}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an("h-3 w-3 -rotate-180",n),height:"19",width:"19",xmlns:"http://www.w3.org/2000/svg",children:[e("polygon",{points:"11 19 2 12 11 5 11 19"}),e("polygon",{points:"22 19 13 12 22 5 22 19"})]})}function CW(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",id:"google",className:"h-5 w-5",children:[e("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("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("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("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"})]})}function SW(){return t("svg",{viewBox:"0 0 40 40",width:"25",height:"25",children:[t("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("stop",{offset:0,stopColor:"#0062e0"}),e("stop",{offset:1,stopColor:"#19afff"})]}),e("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("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"})]})}function kW(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",id:"openid",className:"h-5 w-5",children:e("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"})})}function EW(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",children:e("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"})})}function PW(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"discord",className:"h-6 w-6",children:[e("circle",{cx:"512",cy:"512",r:"512",fill:"#5865f2"}),e("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"})]})}function NW(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 814 1000",id:"apple",className:"h-6 w-6",children:e("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"})})}function RW(){return e("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:t("g",{fill:"#000000",children:[e("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("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("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"})]})})}function MW({size:n=25,className:r=""}){return t("svg",{viewBox:"0 0 24 16",overflow:"visible",width:n,height:n,className:an("fill-current text-black",r),children:[e("g",{style:{transform:"translateX(13px) rotateZ(0deg)",transformOrigin:"4.775px 7.73501px"},children:e("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("g",{style:{transform:"none",transformOrigin:"7.935px 7.73501px"},opacity:"1",children:e("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"})})]})}function AW({size:t=24,className:n=""}){return e("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:an("text-white dark:text-black",n),children:e("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function TW(){return e("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:e("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"})})}function IW({className:n="h-4 w-4 flex-shrink-0 text-gray-500"}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:n,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("circle",{cx:"12",cy:"12",r:"1"}),e("circle",{cx:"19",cy:"12",r:"1"}),e("circle",{cx:"5",cy:"12",r:"1"})]})}const OW=({className:n=""})=>t("svg",{className:n,width:"17",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("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("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"2"})]});function LW({unpin:n=!1}){return n?t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e("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("path",{d:"M8 16L3 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M4 4L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):e("svg",{className:"icon-sm",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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"})})}function DW({className:t=""}){return e("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an("icon-md h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("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"})})}function FW({size:t,className:n="icon-md"}){return e("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:e("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"})})}function _W({size:n=25,className:r="h-4 w-4"}){const o=n,i=n;return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an(r,""),width:i,height:o,xmlns:"http://www.w3.org/2000/svg",children:[e("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("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("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"})]})}function VW({className:t="h-4 w-4"}){return e("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("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"})})}function zW(){return t("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("rect",{width:"18",height:"10",x:"3",y:"11",rx:"2"}),e("circle",{cx:"12",cy:"5",r:"2"}),e("path",{d:"M12 7v4"}),e("line",{x1:"8",x2:"8",y1:"16",y2:"16"}),e("line",{x1:"16",x2:"16",y1:"16",y2:"16"})]})}function jW({className:n=""}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 32 32",strokeLinecap:"round",strokeLinejoin:"round",className:an("h-4 w-4",n),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("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("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("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("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("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("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("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"})]})}function HW({size:n=25,className:r=""}){return t("svg",{width:n,height:n,className:r,viewBox:"0 0 19 17",fill:"none",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e("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("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("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("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("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("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("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"})]})}function BW({size:t=25,className:n=""}){return e("svg",{width:t,height:t,className:an("dark:fill-white",n),viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:e("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"})})}function $W({size:n=25,className:r=""}){return t("svg",{width:n,height:n,className:r,viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e("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("defs",{children:t("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("stop",{offset:".325",stopColor:"#FFDDB7"}),e("stop",{offset:".706",stopColor:"#076EFF"})]})})]})}function WW({className:t=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"800px",height:"800px",viewBox:"0 0 512 512",className:an("h-4 w-4",t),children:e("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"})})}function UW(){return e("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("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"})})}function KW({className:n}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:an(n),strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),e("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),e("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]})}function GW({className:t="",size:n="1em"}){return e("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:n,width:n,className:an(t),children:e("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"})})}function XW({className:t="",size:n="1em"}){return e("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:n,width:n,className:an(t),children:e("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"})})}function qW(){return e("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("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"})})}function YW(){return t("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("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e("circle",{cx:"12",cy:"7",r:"4"})]})}function ZW(){return t("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("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),e("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})}function QW({className:t=""}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:an("text-black dark:text-white",t),"aria-hidden":!0,children:e("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"})})}function JW(){return t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e("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("path",{d:"M5 14.774C11.5 12.839 12.15 16.7089 18 14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function eU({size:t=25,className:n=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24px",height:"24px",viewBox:"0 0 512 512",strokeWidth:"1.5",className:an(n,""),children:e("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"})})}function tU({className:n=""}){return t("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:an("h-9 w-9",n),children:[e("defs",{children:t("linearGradient",{id:"linearGradient1842",x1:"163.92",x2:"173.66",y1:"22.212",y2:"-6.5784",gradientTransform:"translate(.10391 .050143)",gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#640a62",offset:"0"}),e("stop",{stopColor:"#852283",offset:".49917"}),e("stop",{stopColor:"#640a62",offset:"1"})]})}),t("g",{children:[e("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("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("circle",{cx:"170.36",cy:"215.76",r:"12.903",fill:"#cfffff"}),e("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"}),t("g",{fill:"#cfffff",children:[e("circle",{cx:"72.684",cy:"99.47",r:"12.903"}),e("circle",{cx:"99.144",cy:"172.32",r:"12.903"}),e("circle",{cx:"59.617",cy:"214.78",r:"12.903"}),e("circle",{cx:"135.4",cy:"118.42",r:"12.903"}),e("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("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"})]})]})]})}function nU({className:n="",size:r="1em"}){return t("svg",{width:r,height:r,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:an("text-token-secondary h-2/3 w-2/3",n),xmlns:"http://www.w3.org/2000/svg",children:[e("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("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),e("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})}function rU({className:n="",size:r=24}){return t("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:an("icon-md shrink-0",n),children:[e("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("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"})]})}function oU({className:n}){return t("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:an(n),children:[e("path",{d:"M2 10v3"}),e("path",{d:"M6 6v11"}),e("path",{d:"M10 3v18"}),e("path",{d:"M14 8v7"}),e("path",{d:"M18 5v13"}),e("path",{d:"M22 10v3"})]})}function iU({size:t="1em",className:n}){return e("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("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"})})}function aU({className:n="icon-md-heavy",size:r="1em"}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:an(n),children:[e("circle",{cx:"12",cy:"12",r:"10"}),e("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e("path",{d:"M12 17h.01"})]})}function sU({size:t=25,className:n=""}){return e("svg",{width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:an("fill-current text-black",n),children:e("g",{fill:"currentColor",children:e("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"})})})}function lU({className:n="",size:r="1em",bold:o=!1}){return o?t("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:n,children:[e("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("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("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:n,children:e("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"})})}function cU({className:n="",size:r="1em",bold:o=!1}){return o?t("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:n,children:[e("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("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("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:n,children:e("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"})})}function uU({className:t=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:"currentColor",className:t,children:e("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"})})}function dU({className:t=""}){return e("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("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"})})}function fU({className:n}){return t("svg",{width:"195",height:"195",viewBox:"0 2 195 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:[e("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("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("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"})]})}function pU({className:t}){return e("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("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"})})}function hU(){return t("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("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}const mU=P((({checked:t,onChange:n,ariaLabel:r})=>e("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(Th,{checked:t,onCheckedChange:n,"aria-label":r})})));mU.displayName="SelectionCheckbox";const gU=P((({row:t,isSmallScreen:n,onSelectionChange:r,index:o,isSearching:i})=>{const a=c((e=>{t.toggleSelected(e),r?.(t.id,e)}),[t,r]);return e(fk,{"data-state":t.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(${i?"4px":"0"})`,opacity:i?.5:1},children:t.getVisibleCells().map((r=>"select"===r.column.id?e(hk,{className:"px-2 py-1 transition-all duration-300",children:e(mU,{checked:t.getIsSelected(),onChange:a,ariaLabel:"Select row"})},r.id):e(hk,{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:vU(r.column.columnDef,n),children:e("div",{className:"overflow-hidden text-ellipsis",children:eW(r.column.columnDef.cell,r.getContext())})},r.id)))})}));function vU(e,t){return{width:t?e.meta?.mobileSize:e.meta?.size,minWidth:e.meta?.minWidth,maxWidth:e.meta?.size}}const bU=P((({onDelete:r,isDeleting:o,disabled:i,isSmallScreen:a})=>r?e(vh,{variant:"outline",onClick:r,disabled:i,className:an("min-w-[40px] transition-all duration-200",a&&"px-2 py-1"),children:o?e(uW,{className:"size-4"}):t(n,{children:[e(DW,{className:"size-3.5 text-red-400 sm:size-4"}),!a&&e("span",{className:"ml-2",children:"Delete"})]})}):null));function wU({columns:n,data:o,onDelete:i,filterColumn:s,defaultSort:l=[],className:u="",isFetchingNextPage:d=!1,hasNextPage:f=!1,fetchNextPage:p,enableRowSelection:h=!0,showCheckboxes:b=!0,onFilterChange:w,filterValue:y,isLoading:x,enableSearch:C=!0}){const S=oy("(max-width: 768px)"),k=m(null),[E,P]=v(!1),[N,R]=v({}),[M,A]=v(l),[T,I]=v([]),[O,L]=v({}),[D,F]=v(y??""),[_,V]=v(!1),z=a((()=>{if(!h||!b)return n;const t={id:"select",header:({table:t})=>e("div",{className:"flex h-full w-[30px] items-center justify-center",children:e(Th,{checked:t.getIsAllPageRowsSelected(),onCheckedChange:e=>t.toggleAllPageRowsSelected(Boolean(e)),"aria-label":"Select all"})}),cell:({row:t})=>e(mU,{checked:t.getIsSelected(),onChange:e=>t.toggleSelected(e),ariaLabel:"Select row"}),meta:{size:"50px"}};return[t,...n]}),[n,h,b]),j=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState((()=>({current:Z$(t)}))),[o,i]=r.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...o,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}({data:o,columns:z,getCoreRowModel:e=>d$((()=>[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=Q$(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=>d$((()=>[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=>d$((()=>[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 J$(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:h,enableMultiRowSelection:!0,state:{sorting:M,columnFilters:T,columnVisibility:O,rowSelection:N},onSortingChange:A,onColumnFiltersChange:I,onColumnVisibilityChange:L,onRowSelectionChange:R}),{rows:H}=j.getRowModel(),B=s$({count:H.length,getScrollElement:()=>k.current,estimateSize:c((()=>48),[]),overscan:10}),$=B.getVirtualItems(),W=B.getTotalSize(),U=$.length>0?$[0].start:0,K=$.length>0?W-$[$.length-1].end:0;g((()=>{const e=k.current;if(!e)return;const t=async()=>{if(!f||d)return;const{scrollTop:t,scrollHeight:n,clientHeight:r}=e;if(n-t<=1.5*r)try{await(p?.())}catch(e){console.error("Unable to fetch next page:",e)}};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)}),[f,d,p]),g((()=>{V(!0);const e=setTimeout((()=>{w?.(D),V(!1)}),300);return()=>clearTimeout(e)}),[D,w]);const G=c((async()=>{if(i){P(!0);try{const e=j.getFilteredSelectedRowModel().rows.map((e=>e.original));await i(e),R({})}finally{P(!1)}}}),[i,j]),X=Array.from({length:13},((t,n)=>{const r=Math.floor(241*Math.random())+170,o="select"===z[0]?.id?1:0;return e(fk,{className:"motion-safe:animate-fadeIn border-b border-border-light",children:z.map(((t,n)=>{const i=vU(t,S);return e(hk,{className:"px-2 py-1 sm:px-4 sm:py-2",style:i,children:e(FS,{className:"h-6",style:n===o?{width:`${r}px`}:{width:"100%"}})},t.id)}))},n)}));return t("div",{className:an("flex h-full flex-col gap-4",u),children:[t("div",{className:"flex flex-wrap items-center gap-2 sm:gap-4",children:[h&&b&&e(bU,{onDelete:G,isDeleting:E,disabled:!j.getFilteredSelectedRowModel().rows.length||E,isSmallScreen:S}),void 0!==s&&j.getColumn(s)&&C&&e("div",{className:"relative flex-1",children:e(tW,{value:D,onChange:e=>F(e.target.value),isSearching:_,placeholder:"Search..."})})]}),e("div",{ref:k,className:an("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",_&&"bg-surface-secondary/50",u),children:t(lk,{className:"w-full min-w-[300px] table-fixed border-separate border-spacing-0",children:[e(ck,{className:"sticky top-0 z-50 bg-surface-secondary",children:j.getHeaderGroups().map((t=>e(fk,{className:"border-b border-border-light",children:t.headers.map((t=>e(pk,{className:"whitespace-nowrap bg-surface-secondary px-2 py-2 text-left text-sm font-medium text-text-secondary sm:px-4",style:vU(t.column.columnDef,S),onClick:t.column.getCanSort()?t.column.getToggleSortingHandler():void 0,children:t.isPlaceholder?null:eW(t.column.columnDef.header,t.getContext())},t.id)))},t.id)))}),t(uk,{children:[U>0&&e("tr",{children:e("td",{style:{height:`${U}px`}})}),x&&X,$.map((t=>{const n=H[t.index];return e(gU,{row:n,isSmallScreen:S,index:t.index,isSearching:_},n.id)})),!$.length&&e(fk,{className:"hover:bg-transparent",children:e(hk,{colSpan:n.length,className:"p-4 text-center",children:"No data available"})}),K>0&&e("tr",{children:e("td",{style:{height:`${K}px`}})}),(d||f)&&e(fk,{className:"hover:bg-transparent",children:e(hk,{colSpan:n.length,className:"p-4",children:e("div",{className:"flex h-full items-center justify-center",children:d?e(uW,{className:"size-4"}):f&&e("div",{className:"h-6"})})})})]})]})})]})}function yU({field:n,label:r,labelClass:o,inputClass:i,containerClass:a,labelAdjacent:s,placeholder:l="",type:c="string"}){return t("div",{className:an("flex w-full flex-col items-center gap-2",a),children:[t("div",{className:"flex w-full items-center justify-start gap-2",children:[e(wC,{htmlFor:`${n.name}-input`,className:an("text-left text-sm font-semibold text-text-primary",o),children:r}),s]}),e(nx,{id:`${n.name}-input`,value:n.value??"",onChange:e=>{const t=e.target.value;"number"===c?""===t?n.onChange(t):isNaN(Number(t))||n.onChange(Number(t)):n.onChange(t)},placeholder:l,className:an("flex h-10 max-h-10 w-full resize-none border-none bg-surface-secondary px-3 py-2",i)})]})}class xU{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 CU=(e,t)=>{const n=parseInt(String(e),10);return n<=0||t?0:n>=100?.1:.001*n},SU=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),kU={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}};function EU({variant:t="default",gap:n,speed:r,colors:o,noFocus:i,className:a="",progress:s,randomness:l=.3,width:u,height:d}){const f=m(null),p=m(null),h=m([]),v=m(),b=m(performance.now()),w=m(s),y=m(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,x=kU[t],C=n??x.gap,S=r??x.speed,k=o??x.colors,E=i??x.noFocus,P=c((()=>{if(!p.current)return;if(void 0===w.current)return void(p.current.style.opacity="1");const e=w.current>=.9?1-(w.current-.9)/.1:1;p.current.style.opacity=String(SU(e))}),[]),N=c((e=>{v.current=requestAnimationFrame((()=>N(e)));const t=performance.now(),n=t-b.current;if(n<1e3/60)return;b.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 h.current)"appearWithProgress"===e?void 0!==w.current?t.appearWithProgress(w.current):t.isIdle=!0:t[e](),t.isIdle||(o=!1);P(),o&&cancelAnimationFrame(v.current)}),[P]),R=c((e=>{cancelAnimationFrame(v.current),v.current=requestAnimationFrame((()=>N(e)))}),[N]),M=c((()=>{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=k.split(","),o=[],i=e/2,a=t/2,s=Math.hypot(i,a);for(let c=0;c<e;c+=C)for(let e=0;e<t;e+=C){const t=r[Math.floor(Math.random()*r.length)],u=Math.hypot(c-i,e-a)/s,d=SU(u*(1-l)+Math.random()*l),f=y?0:u*s;n&&o.push(new xU(p.current,n,c,e,t,CU(S,y),f,d))}h.current=o,void 0!==w.current&&R("appearWithProgress")}),[C,k,S,l,y,R]);g((()=>{w.current=s,void 0!==s&&R("appearWithProgress")}),[s,R]),g((()=>{void 0===s&&cancelAnimationFrame(v.current)}),[s]),g((()=>{M();const e=new ResizeObserver(M);return f.current&&e.observe(f.current),()=>{e.disconnect(),cancelAnimationFrame(v.current)}}),[M]);return e("div",{ref:f,style:{width:u||"100%",height:d||"100%"},children:e("div",{className:an("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",a),style:{width:"100%",height:"100%",transitionTimingFunction:"cubic-bezier(0.5, 1, 0.89, 1)"},onMouseEnter:()=>void 0===w.current&&R("appear"),onMouseLeave:()=>void 0===w.current&&R("disappear"),onFocus:E?void 0:e=>{E||e.currentTarget.contains(e.relatedTarget)||void 0!==w.current||R("appear")},onBlur:E?void 0:e=>{E||e.currentTarget.contains(e.relatedTarget)||void 0!==w.current||R("disappear")},tabIndex:E?-1:0,children:e("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})})})}const PU=u((({children:r,handleFileChange:o},i)=>t(n,{children:[r,e("input",{ref:i,multiple:!0,type:"file",style:{display:"none"},onChange:o})]})));function NU(e,t){return 0===e.length?t||"Select...":1===e.length?e[0]:`${e.length} items selected`}function RU({items:r,label:o,placeholder:i="Select...",onSelectedValuesChange:a,renderSelectedValues:s=NU,className:l,selectIcon:c,itemClassName:u,labelClassName:d,selectClassName:f,popoverClassName:p,selectItemsClassName:h,selectedValues:g=[],setSelectedValues:v,renderItemContent:b}){const w=m(null);return e("div",{className:l,children:t(Uc,{value:g,setValue:e=>{v(e),a&&a(e)},children:[o&&e(ru,{className:an("mb-1 block text-sm text-text-primary",d),children:o}),t(Wc,{ref:w,className:an("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",f,g.length>0&&null!=h&&h),onChange:e=>e.stopPropagation(),children:[c&&c,e("span",{className:"mr-auto hidden truncate md:block",children:s(g,i)}),e(Fc,{className:"ml-1 hidden stroke-1 text-base opacity-75 md:block"})]}),e(su,{gutter:4,sameWidth:!0,modal:!0,unmountOnHide:!0,finalFocus:w,className:an("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:r.map((r=>{const o=t(n,{children:[e(Yc,{className:"text-primary"}),e("span",{className:"truncate",children:r})]}),i=g.includes(r);return e(tu,{value:r,className:an("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",u),children:b?b(r,o,i):o},r)}))})]})})}PU.displayName="FileUpload";const MU=({trigger:n,isOpen:r,setIsOpen:o,focusLoop:i,mountByState:a,...s})=>{const l=Su({open:r,setOpen:o,focusLoop:i});return t(Nu,a?{store:l,children:[n,r&&e(AU,{...s})]}:{store:l,children:[n,e(AU,{...s})]})},AU=({items:n,menuId:r,keyPrefix:o,className:i,iconClassName:a,itemClassName:s,modal:l,portal:c,sameWidth:u,gutter:d=8,finalFocus:f,unmountOnHide:p,preserveTabOrder:h})=>{const m=vu();return e(Pu,{id:r,modal:l,gutter:d,portal:c,sameWidth:u,finalFocus:f,unmountOnHide:p,preserveTabOrder:h,className:an("popover-ui z-50",i),children:n.filter((e=>!1!==e.show)).map(((n,r)=>!0===n.separate?e(Tu,{className:"my-1 h-px bg-white/10"},r):t(Mu,{id:n.id,className:an("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:n.disabled,render:n.render,ref:n.ref,hideOnClick:n.hideOnClick,onClick:e=>{e.preventDefault(),n.onClick&&n.onClick(e),!1!==n.hideOnClick&&m?.hide()},children:[null!=n.icon&&e("span",{className:an("mr-2 size-4",a),"aria-hidden":"true",children:n.icon}),n.label,null!=n.kbd&&t("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline group-focus:inline dark:text-white/50",children:["⌘",n.kbd]})]},`${o??""}${r}-${n.id??""}`)))})},TU=({delay:e,children:t})=>iy(e)((()=>t)),IU=({theme:t,onChange:n})=>{const r={system:e(th,{}),dark:e(nh,{color:"white"}),light:e(ih,{})},o="dark"===t?"light":"dark",i=`Switch to ${o} theme`;return g((()=>{const e=e=>{e.ctrlKey&&e.shiftKey&&"t"===e.key.toLowerCase()&&(e.preventDefault(),n(o))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[o,n]),e("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":i,"aria-keyshortcuts":"Ctrl+Shift+T",onClick:e=>{e.preventDefault(),n(o)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n(o))},children:r[t]})},OU=({returnThemeOnly:n})=>{const{theme:r,setTheme:o}=l(Fw),[i,a]=v(""),s=c((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 g((()=>{if("system"===r){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;o(e?"dark":"light")}}),[r,o]),g((()=>{if(i){const e=setTimeout((()=>a("")),1e3);return()=>clearTimeout(e)}}),[i]),!0===n?e(IU,{theme:r,onChange:s}):t("div",{className:"flex flex-col items-center justify-center bg-white pt-6 dark:bg-gray-900 sm:pt-0",children:[e("div",{className:"absolute bottom-0 left-0 m-4",children:e(IU,{theme:r,onChange:s})}),i&&e("div",{"aria-live":"polite",className:"sr-only",children:i})]})},LU=r.forwardRef((({icon:n,label:r,setValue:o,className:i,checked:a,defaultChecked:s,isCheckedClassName:l},c)=>{const u=cu(),d=Qo(u,(e=>e?.value));return g((()=>{void 0!==a&&u.setValue(a)}),[a,u]),g((()=>{void 0!==s&&void 0===a&&u.setValue(s)}),[s,a,u]),t(mu,{ref:c,store:u,onChange:e=>{e.stopPropagation(),"boolean"==typeof d&&o?.({e:e,value:!d})},className:an("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("button",{type:"button","aria-label":r}),children:[n&&e("span",{className:"icon-md text-text-primary",children:n}),e("span",{className:"hidden truncate md:block",children:r})]})}));LU.displayName="CheckboxButton";const DU=u(((n,r)=>{const{title:o,description:i,main:a,buttons:s,leftButtons:l,selection:c,className:u,headerClassName:d,footerClassName:f,showCloseButton:p,showCancelButton:h=!0}=n,{selectHandler:m,selectClasses:g,selectText:v}=c||{};return t(dy,{showCloseButton:p,ref:r,className:an("shadow-2xl dark:bg-gray-700",u||""),onClick:e=>e.stopPropagation(),children:[t(fy,{className:an(d??""),children:[e(hy,{className:"text-lg font-medium leading-6 text-gray-800 dark:text-gray-200",children:o}),i&&e(my,{className:"text-gray-600 dark:text-gray-300",children:i})]}),e("div",{className:"px-6",children:a||null}),t(py,{className:f,children:[e("div",{children:l||null}),t("div",{className:"flex h-auto gap-3",children:[h&&e(gy,{className:"border-gray-100 hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-600",children:"cancel"}),s||null,c?e(gy,{onClick:m,className:`${g||"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:v}):null]})]})]})})),FU="undefined"!=typeof document?o.useLayoutEffect:()=>{};const _U=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},VU=e=>{if(e&&"window"in e&&e.window===e)return e;return _U(e).defaultView||window};function zU(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 jU=!1;function HU(){return jU}function BU(e,t){if(!HU())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:zU(n)?n.host:n.parentNode}return!1}const $U=(e=document)=>{var t;if(!HU())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 WU(e){return HU()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function UU(e){let t=null;return()=>(null==t&&(t=e()),t)}const KU=UU((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)})),GU=UU((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 XU(){let e=m(new Map),t=c(((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)}),[]),n=c(((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)}),[]),r=c((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return g((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function qU(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function YU(e){let t=m({isFocused:!1,observer:null});FU((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=m(null);return FU((()=>{t.current=e}),[e]),c(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return c((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{if(t.current.isFocused=!1,r.disabled){let t=qU(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let ZU=!1,QU=null,JU=new Set,eK=new Map,tK=!1,nK=!1;const rK={Tab:!0,Escape:!0};function oK(e,t){for(let n of JU)n(e,t)}function iK(e){tK=!0,function(e){return!(e.metaKey||!KU()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(QU="keyboard",oK("keyboard",e))}function aK(e){QU="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(tK=!0,oK("pointer",e))}function sK(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(GU()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(tK=!0,QU="virtual")}function lK(e){e.target!==window&&e.target!==document&&!ZU&&e.isTrusted&&(tK||nK||(QU="virtual",oK("virtual",e)),tK=!1,nK=!1)}function cK(){tK=!1,nK=!0}function uK(e){if("undefined"==typeof window||"undefined"==typeof document||eK.get(VU(e)))return;const t=VU(e),n=_U(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){tK=!0,r.apply(this,arguments)},n.addEventListener("keydown",iK,!0),n.addEventListener("keyup",iK,!0),n.addEventListener("click",sK,!0),t.addEventListener("focus",lK,!0),t.addEventListener("blur",cK,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",aK,!0),n.addEventListener("pointermove",aK,!0),n.addEventListener("pointerup",aK,!0)),t.addEventListener("beforeunload",(()=>{dK(e)}),{once:!0}),eK.set(t,{focus:r})}const dK=(e,t)=>{const n=VU(e),r=_U(e);t&&r.removeEventListener("DOMContentLoaded",t),eK.has(n)&&(n.HTMLElement.prototype.focus=eK.get(n).focus,r.removeEventListener("keydown",iK,!0),r.removeEventListener("keyup",iK,!0),r.removeEventListener("click",sK,!0),n.removeEventListener("focus",lK,!0),n.removeEventListener("blur",cK,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",aK,!0),r.removeEventListener("pointermove",aK,!0),r.removeEventListener("pointerup",aK,!0)),eK.delete(n))};function fK(){return"pointer"!==QU}"undefined"!=typeof document&&function(e){const t=_U(e);let n;"loading"!==t.readyState?uK(e):(n=()=>{uK(e)},t.addEventListener("DOMContentLoaded",n))}();const pK=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hK(e,t,n){uK(),g((()=>{let t=(t,r)=>{(function(e,t,n){let r=_U(null==n?void 0:n.target);const o="undefined"!=typeof window?VU(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?VU(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?VU(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?VU(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!pK.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof s&&!rK[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(fK())};return JU.add(t),()=>{JU.delete(t)}}),t)}function mK(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=m({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=XU(),l=c((e=>{e.currentTarget.contains(e.target)&&i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,s(),n&&n(e),o&&o(!1))}),[n,o,i,s]),u=YU(l),d=c((e=>{if(!e.currentTarget.contains(e.target))return;const t=_U(e.target),n=$U(t);if(!i.current.isFocusWithin&&n===WU(e.nativeEvent)){r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,u(e);let n=e.currentTarget;a(t,"focus",(e=>{if(i.current.isFocusWithin&&!BU(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=qU(r);l(o)}}),{capture:!0})}}),[r,o,u,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:l}}}let gK=!1,vK=0;function bK(e){"touch"===e.pointerType&&(gK=!0,setTimeout((()=>{gK=!1}),50))}function wK(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",bK),vK++,()=>{vK--,vK>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",bK)}}function yK(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=v(!1),l=m({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;g(wK,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=XU(),{hoverProps:d,triggerHoverEnd:f}=a((()=>{let e=(e,t)=>{let o=l.target;l.pointerType="",l.target=null,"touch"!==t&&l.isHovered&&o&&(l.isHovered=!1,u(),r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),s(!1))},i={};return"undefined"!=typeof PointerEvent&&(i.onPointerEnter=r=>{gK&&"mouse"===r.pointerType||((r,i)=>{if(l.pointerType=i,o||"touch"===i||l.isHovered||!r.currentTarget.contains(r.target))return;l.isHovered=!0;let a=r.currentTarget;l.target=a,c(_U(r.target),"pointerover",(t=>{l.isHovered&&l.target&&!BU(l.target,t.target)&&e(t,t.pointerType)}),{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:i}),n&&n(!0),s(!0)})(r,r.pointerType)},i.onPointerLeave=t=>{!o&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:i,triggerHoverEnd:e}}),[t,n,r,o,l,c,u]);return g((()=>{o&&f({currentTarget:l.target},l.pointerType)}),[o]),{hoverProps:d,isHovered:i}}function xK(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=m({isFocused:!1,isFocusVisible:t||fK()}),[i,a]=v(!1),[s,l]=v((()=>o.current.isFocused&&o.current.isFocusVisible)),u=c((()=>l(o.current.isFocused&&o.current.isFocusVisible)),[]),d=c((e=>{o.current.isFocused=e,a(e),u()}),[u]);hK((e=>{o.current.isFocusVisible=e,u()}),[],{isTextInput:n});let{focusProps:f}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=c((e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0}),[r,o]),a=YU(i),s=c((e=>{const t=_U(e.target),r=t?$U(t):$U();e.target===e.currentTarget&&r===WU(e.nativeEvent)&&(n&&n(e),o&&o(!0),a(e))}),[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:t||!r&&!o?void 0:i}}}({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=mK({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}var CK=Object.defineProperty,SK=(e,t,n)=>(((e,t,n)=>{t in e?CK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let kK=new class{constructor(){SK(this,"current",this.detect()),SK(this,"handoffState","pending"),SK(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 EK(e){var t,n;return kK.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 PK(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function NK(){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 PK((()=>{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=NK();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 RK(){let[e]=v(NK);return g((()=>()=>e.dispose()),[e]),e}let MK=(e,t)=>{kK.isServer?g(e,t):b(e,t)};function AK(e){let t=m(e);return MK((()=>{t.current=e}),[e]),t}let TK=function(e){let t=AK(e);return o.useCallback(((...e)=>t.current(...e)),[t])};let IK=i(void 0);function OK(){return l(IK)}function LK(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function DK(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,DK),r}var FK=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(FK||{}),_K=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_K||{});function VK(){let e=function(){let e=m([]),t=c((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...n)=>{if(!n.every((e=>null==e)))return e.current=n,t}}();return c((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:jK;let l=HK(t,e);if(i)return zK(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return zK(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return DK(e?0:1,{0:()=>null,1:()=>zK({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return zK(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function zK(e,t={},n,r,o){let{as:i=n,children:a,refName:l="ref",...c}=UK(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let m={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){m["data-headlessui-state"]=n.join(" ");for(let e of n)m[`data-${e}`]=""}}if(i===h&&(Object.keys(WK(c)).length>0||Object.keys(WK(m)).length>0)){if(f(d)&&!(Array.isArray(d)&&d.length>1)){let e=d.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>LK(t(...e),c.className):LK(t,c.className),r=n?{className:n}:{},i=HK(d.props,WK(UK(c,["ref"])));for(let e in m)e in i&&delete m[e];return p(d,Object.assign({},i,m,u,{ref:o(KK(d),u.ref)},r))}if(Object.keys(WK(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(WK(c)).concat(Object.keys(WK(m))).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 s(i,Object.assign({},UK(c,["ref"]),i!==h&&u,i!==h&&m),d)}function jK(...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 HK(...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 BK(...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 $K(e){var t;return Object.assign(u(e),{displayName:null!=(t=e.displayName)?t:e.name})}function WK(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function UK(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function KK(e){return o.version.split(".")[0]>="19"?e.props.ref:e.ref}function GK(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))qK(n,XK(t,r),o);return n}function XK(e,t){return e?e+"["+t+"]":t}function qK(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())qK(e,XK(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,""]):GK(n,t,e)}var YK=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(YK||{});let ZK=$K((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 VK()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})})),QK=i(null);function JK({children:e}){let t=l(QK);if(!t)return o.createElement(o.Fragment,null,e);let{target:n}=t;return n?T(o.createElement(o.Fragment,null,e),n):null}function eG({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[a,s]=v(null),l=RK();return g((()=>{if(r&&a)return l.addEventListener(a,"reset",r)}),[a,t,r]),o.createElement(JK,null,o.createElement(tG,{setForm:s,formId:t}),GK(e).map((([e,r])=>o.createElement(ZK,{features:YK.Hidden,...WK({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:r,...i})}))))}function tG({setForm:e,formId:t}){return g((()=>{if(t){let n=document.getElementById(t);n&&e(n)}}),[e,t]),t?null:o.createElement(ZK,{features:YK.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}let nG=i(void 0);function rG(){return l(nG)}function oG(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function iG(e){return oG(e)&&"tagName"in e}function aG(e){return iG(e)&&"accessKey"in e}function sG(e){return iG(e)&&"tabIndex"in e}function lG(e){return aG(e)&&"INPUT"===e.nodeName}function cG(e){return aG(e)&&"LABEL"===e.nodeName}function uG(e){return aG(e)&&"FIELDSET"===e.nodeName}function dG(e){return aG(e)&&"LEGEND"===e.nodeName}function fG(e){let t=e.parentElement,n=null;for(;t&&!uG(t);)dG(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(dG(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}let pG=Symbol();function hG(...e){let t=m(e);g((()=>{t.current=e}),[e]);let n=TK((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[pG])))?void 0:n}let mG=i(null);function gG(){let e=l(mG);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,gG),e}return e}mG.displayName="DescriptionContext";let vG=$K((function(e,t){let n=x(),r=OK(),{id:o=`headlessui-description-${n}`,...i}=e,s=gG(),l=hG(t);MK((()=>s.register(o)),[o,s.register]);let c=r||!1,u=a((()=>({...s.slot,disabled:c})),[s.slot,c]),d={ref:l,...s.props,id:o};return VK()({ourProps:d,theirProps:i,slot:u,defaultTag:"p",name:s.name||"Description"})}));Object.assign(vG,{});var bG=(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))(bG||{});let wG=i(null);function yG(){let e=l(wG);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,yG),e}return e}function xG(e){var t,n,r;let o=null!=(n=null==(t=l(wG))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function CG({inherit:e=!1}={}){let t=xG(),[n,r]=v([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,a((()=>function(e){let t=TK((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=a((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return o.createElement(wG.Provider,{value:n},e.children)}),[r])]}wG.displayName="LabelContext";let SG=$K((function(e,t){var n;let r=x(),o=yG(),i=rG(),s=OK(),{id:l=`headlessui-label-${r}`,htmlFor:c=(null!=i?i:null==(n=o.props)?void 0:n.htmlFor),passive:u=!1,...d}=e,f=hG(t);MK((()=>o.register(l)),[l,o.register]);let p=TK((e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!function(e){return!!iG(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}(e.target))&&(cG(t)&&e.preventDefault(),o.props&&"onClick"in o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),cG(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;(lG(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})}}})),h=s||!1,m=a((()=>({...o.slot,disabled:h})),[o.slot,h]),g={ref:f,...o.props,id:l,htmlFor:c,onClick:p};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in d&&delete d.onClick),VK()({ourProps:g,theirProps:d,slot:m,defaultTag:c?"label":"div",name:o.name||"Label"})})),kG=Object.assign(SG,{});function EG(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 PG(e,t=!1){let[n,r]=w((()=>({})),{}),o=a((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,n]);return MK((()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${o.width}px`,height:`${o.height}px`}:o}let NG=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 RG,MG,AG,TG=Object.defineProperty,IG=(e,t,n)=>(((e,t,n)=>{t in e?TG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n),OG=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},LG=(e,t,n)=>(OG(e,t,"read from private field"),n?n.call(e):t.get(e)),DG=(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)},FG=(e,t,n,r)=>(OG(e,t,"write to private field"),t.set(e,n),n);let _G=class{constructor(e){DG(this,RG,{}),DG(this,MG,new NG((()=>new Set))),DG(this,AG,new Set),IG(this,"disposables",NK()),FG(this,RG,e)}dispose(){this.disposables.dispose()}get state(){return LG(this,RG)}subscribe(e,t){let n={selector:e,callback:t,current:e(LG(this,RG))};return LG(this,AG).add(n),this.disposables.add((()=>{LG(this,AG).delete(n)}))}on(e,t){return LG(this,MG).get(e).add(t),this.disposables.add((()=>{LG(this,MG).get(e).delete(t)}))}send(e){let t=this.reduce(LG(this,RG),e);if(t!==LG(this,RG)){FG(this,RG,t);for(let e of LG(this,AG)){let t=e.selector(LG(this,RG));VG(e.current,t)||(e.current=t,e.callback(t))}for(let t of LG(this,MG).get(e.type))t(LG(this,RG),e)}}};function VG(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&&zG(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&zG(e.entries(),t.entries()):!(!jG(e)||!jG(t))&&zG(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function zG(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 jG(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function HG(e){let[t,n]=e(),r=NK();return(...e)=>{t(...e),r.dispose(),r.microTask(n)}}RG=new WeakMap,MG=new WeakMap,AG=new WeakMap;var BG=Object.defineProperty,$G=(e,t,n)=>(((e,t,n)=>{t in e?BG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),WG=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(WG||{});let UG={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}}},KG=class e extends _G{constructor(){super(...arguments),$G(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),$G(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 DK(t.type,UG,e,t)}};const GG=new NG((()=>KG.new()));var XG={exports:{}},qG={},YG=o;var ZG="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},QG=YG.useSyncExternalStore,JG=YG.useRef,eX=YG.useEffect,tX=YG.useMemo,nX=YG.useDebugValue;qG.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=JG(null);if(null===i.current){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=tX((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,ZG(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=QG(e,i[0],i[1]);return eX((function(){a.hasValue=!0,a.value=s}),[s]),nX(s),s},XG.exports=qG;var rX=XG.exports;function oX(e,t,n=VG){return rX.useSyncExternalStoreWithSelector(TK((t=>e.subscribe(iX,t))),TK((()=>e.state)),TK((()=>e.state)),TK(t),n)}function iX(e){return e}function aX(e,t){let n=x(),r=GG.get(t),[o,i]=oX(r,c((e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)]),[r,n]));return MK((()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)}),[r,e,n]),!!e&&(!i||o)}let sX=new Map,lX=new Map;function cX(e){var t;let n=null!=(t=lX.get(e))?t:0;return lX.set(e,n+1),0!==n||(sX.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>uX(e)}function uX(e){var t;let n=null!=(t=lX.get(e))?t:1;if(1===n?lX.delete(e):lX.set(e,n-1),1!==n)return;let r=sX.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,sX.delete(e))}let dX=["[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(","),fX=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var pX=(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))(pX||{}),hX=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(hX||{}),mX=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(mX||{});function gX(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(dX)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var vX=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(vX||{});function bX(e,t=0){var n;return e!==(null==(n=EK(e))?void 0:n.body)&&DK(t,{0:()=>e.matches(dX),1(){let t=e;for(;null!==t;){if(t.matches(dX))return!0;t=t.parentElement}return!1}})}var wX=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(wX||{});"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 yX=["textarea","input"].join(",");function xX(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 CX(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?xX(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(fX)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):gX(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,yX))&&n}(s)&&s.select(),2}(gX(),t,{relativeTo:e})}function SX(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function kX(){return SX()||/Android/gi.test(window.navigator.userAgent)}function EX(e,t,n,r){let o=AK(n);g((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){o.current(e)}}),[e,t,r])}const PX=30;function NX(e,t,n){let r=AK(n),o=c((function(e,n){if(e.defaultPrevented)return;let o=n(e);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of i)if(null!==t&&(t.contains(o)||e.composed&&e.composedPath().includes(t)))return;return!bX(o,vX.Loose)&&-1!==o.tabIndex&&e.preventDefault(),r.current(e,o)}),[r,t]),i=m(null);EX(e,"pointerdown",(e=>{var t,n;kX()||(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),EX(e,"pointerup",(e=>{if(kX()||!i.current)return;let t=i.current;return i.current=null,o(e,(()=>t))}),!0);let a=m({x:0,y:0});EX(e,"touchstart",(e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY}),!0),EX(e,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-a.current.x)>=PX||Math.abs(n-a.current.y)>=PX))return o(e,(()=>sG(e.target)?e.target:null))}),!0),function(e,t,n,r){let o=AK(n);g((()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){o.current(e)}}),[e,t,r])}(e,"blur",(e=>o(e,(()=>function(e){return aG(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null))),!0)}function RX(...e){return a((()=>EK(...e)),[...e])}var MX=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(MX||{});const AX={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},TX=200;function IX(e,{trigger:t,action:n,close:r,select:o}){let i=m(null);EX(e&&null!==t,"pointerdown",(e=>{oG(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(i.current=new Date)})),EX(e&&null!==t,"pointerup",(e=>{if(null===i.current||!sG(e.target))return;let t=n(e),a=(new Date).getTime()-i.current.getTime();switch(i.current=null,t.kind){case 0:return;case 1:a>TX&&(o(t.target),r());break;case 2:r()}}),{capture:!0})}function OX(e,t){return a((()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function LX(){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 DX(){return SX()?{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=NK();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(sG(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),a=e.querySelector(o);sG(a)&&!r(a)&&(i=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(sG(e.target)&&function(e){return iG(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(sG(e.target)){if(lG(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 FX(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let _X=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:NK(),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:FX(n)},o=[DX(),LX(),{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 VX(e,t,n=(()=>({containers:[]}))){let r=function(e){return N(e.subscribe,e.getSnapshot,e.getSnapshot)}(_X),o=t?r.get(t):void 0,i=!!o&&o.count>0;return MK((()=>{if(t&&e)return _X.dispatch("PUSH",t,n),()=>_X.dispatch("POP",t,n)}),[e,t]),i}function zX(e){return[e.screenX,e.screenY]}function jX(){let e=m([-1,-1]);return{wasMoved(t){let n=zX(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=zX(t)}}}var HX,BX;_X.subscribe((()=>{let e=_X.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)&&_X.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&_X.dispatch("TEARDOWN",n)}})),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(HX=null==process?void 0:process.env)?void 0:HX.NODE_ENV)&&void 0===(null==(BX=null==Element?void 0:Element.prototype)?void 0:BX.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 $X=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))($X||{});function WX(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function UX(e,t,n,r){let[o,i]=v(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=v(e),r=c((e=>n(e)),[t]),o=c((e=>n((t=>t|e))),[t]),i=c((e=>(t&e)===e),[t]),a=c((e=>n((t=>t&~e))),[n]),s=c((e=>n((t=>t^e))),[n]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(e&&o?3:0),u=m(!1),d=m(!1),f=RK();return MK((()=>{var o;if(e)return n&&i(!0),t?(null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:o}){let i=NK();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=NK();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}(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){d.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var e;d.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(u.current=!1,l(7),n||i(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&s(3))}),[e,n,t,f]),e?[o,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}const KX={...r},GX=KX.useInsertionEffect||(e=>e());function XX(e){const t=r.useRef((()=>{}));return GX((()=>{t.current=e})),r.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 qX="undefined"!=typeof document?b:g;let YX=!1,ZX=0;const QX=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ZX++;const JX=KX.useId||function(){const[e,t]=r.useState((()=>YX?QX():void 0));return qX((()=>{null==e&&t(QX())}),[]),r.useEffect((()=>{YX=!0}),[]),e};const eq=r.createContext(null),tq=r.createContext(null),nq=()=>{var e;return(null==(e=r.useContext(eq))?void 0:e.id)||null},rq=()=>r.useContext(tq);function oq(e){const{open:t=!1,onOpenChange:n,elements:o}=e,i=JX(),a=r.useRef({}),[s]=r.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!=nq(),[c,u]=r.useState(o.reference),d=XX(((e,t,r)=>{a.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=r.useMemo((()=>({setPositionReference:u})),[]),p=r.useMemo((()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference})),[c,o.reference,o.floating]);return r.useMemo((()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:s,floatingId:i,refs:f})),[t,d,p,s,i,f])}const iq="active",aq="selected";function sq(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[iq]:t,[aq]: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&&[iq,aq].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 lq(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const cq=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=Bs(e,t),{rects:d,elements:{floating:f}}=t,p=n.current[a];if(!p)return{};const h={...t,...await cg(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-i).fn(t)},m=(null==c?void 0:c.current)||f,g=await Vl(lq(h,m.scrollHeight),u),v=await Vl(h,{...u,elementContext:"reference"}),b=Math.max(0,g.top),w=h.y+b,y=Math.max(0,m.scrollHeight-b-Math.max(0,g.bottom));return m.style.maxHeight=y+"px",m.scrollTop=b,o&&(m.offsetHeight<p.offsetHeight*Math.min(s,n.current.length-1)-1||v.top>=-l||v.bottom>=-l?R.flushSync((()=>o(!0))):R.flushSync((()=>o(!1)))),r&&(r.current=await Vl(lq({...h,y:w},m.offsetHeight),u)),{y:w}}});function uq(e,t){const{open:n,elements:o}=e,{enabled:i=!0,overflowRef:a,scrollRef:s,onChange:l}=t,c=XX(l),u=r.useRef(!1),d=r.useRef(null),f=r.useRef(null);r.useEffect((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==a.current)return;const n=e.deltaY,r=a.current.top>=-.5,o=a.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,s=n<0?-1:1,l=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),R.flushSync((()=>{c((e=>e+Math[l](n,i*s)))}))):/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==s?void 0:s.current)||o.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=a.current&&(f.current={...a.current})})),()=>{d.current=null,f.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,o.floating,a,s,c]);const p=r.useMemo((()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==s?void 0:s.current)||o.floating;if(a.current&&e&&u.current){if(null!==d.current){const t=e.scrollTop-d.current;(a.current.bottom<-.5&&t<-1||a.current.top<-.5&&t>1)&&R.flushSync((()=>c((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}})),[o.floating,c,a,s]);return r.useMemo((()=>i?{floating:p}:{}),[i,p])}let dq=i({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});dq.displayName="FloatingContext";let fq=i(null);function pq(){return l(dq).setReference}function hq(){return l(dq).getReferenceProps}function mq(){let{getFloatingProps:e,slot:t}=l(dq);return c(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}function gq(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=l(fq),n=a((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);MK((()=>{null==t||t(null!=n?n:null)}),[t,n]);let r=l(dq);return a((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}fq.displayName="PlacementContext";let vq=4;function bq({children:e,enabled:t=!0}){let[n,o]=v(null),[i,s]=v(0),l=m(null),[c,u]=v(null);!function(e){MK((()=>{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=t&&null!==n&&null!==c,{to:f="bottom",gap:p=0,offset:h=0,padding:g=0,inner:b}=function(e,t){var n,r,o;let i=wq(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=wq(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=wq(null!=(o=null==e?void 0:e.padding)?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:a,padding:s}}(n,c),[w,y="center"]=f.split(" ");MK((()=>{d&&s(0)}),[d]);let{refs:x,floatingStyles:C,context:S}=function(e){void 0===e&&(e={});const{nodeId:t}=e,n=oq({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,i=o.elements,[a,s]=r.useState(null),[l,c]=r.useState(null),u=(null==i?void 0:i.reference)||a,d=r.useRef(null),f=rq();qX((()=>{u&&(d.current=u)}),[u]);const p=sg({...e,elements:{...i,...l&&{reference:l}}}),h=r.useCallback((e=>{const t=ll(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)}),[p.refs]),m=r.useCallback((e=>{(ll(e)||null===e)&&(d.current=e,s(e)),(ll(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!ll(e))&&p.refs.setReference(e)}),[p.refs]),g=r.useMemo((()=>({...p.refs,setReference:m,setPositionReference:h,domReference:d})),[p.refs,m,h]),v=r.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),b=r.useMemo((()=>({...p,...o,refs:g,elements:v,nodeId:t})),[p,g,v,t,o]);return qX((()=>{o.dataRef.current.floatingContext=b;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),r.useMemo((()=>({...p,context:b,refs:g,elements:v})),[p,g,v,b])}({open:d,placement:"selection"===w?"center"===y?"bottom":`bottom-${y}`:"center"===y?`${w}`:`${w}-${y}`,strategy:"absolute",transform:!1,middleware:[cg({mainAxis:"selection"===w?0:p,crossAxis:h}),ug({padding:g}),"selection"!==w&&fg({padding:g}),"selection"===w&&b?cq({...b,padding:g,overflowRef:l,offset:i,minItemsVisible:vq,referenceOverflowThreshold:g,onFallbackChange(e){var t,n;if(!e)return;let r=S.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(vq,r.childElementCount),a=0,l=0;for(let e of null!=(n=null==(t=S.elements.floating)?void 0:t.childNodes)?n:[])if(aG(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,pg({padding:g,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:_l}),[k=w,E=y]=S.placement.split("-");"selection"===w&&(k="selection");let P=a((()=>({anchor:[k,E].filter(Boolean).join(" ")})),[k,E]),N=uq(S,{overflowRef:l,onChange:s}),{getReferenceProps:R,getFloatingProps:M}=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)),o=e.map((e=>null==e?void 0:e.item)),i=r.useCallback((t=>sq(t,e,"reference")),t),a=r.useCallback((t=>sq(t,e,"floating")),n),s=r.useCallback((t=>sq(t,e,"item")),o);return r.useMemo((()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s})),[i,a,s])}([N]),A=TK((e=>{u(e),x.setFloating(e)}));return r.createElement(fq.Provider,{value:o},r.createElement(dq.Provider,{value:{setFloating:A,setReference:x.setReference,styles:C,getReferenceProps:R,getFloatingProps:M,slot:P}},e))}function wq(e,t,n=void 0){let r=RK(),o=TK(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=xq(e,t);return[o,n=>{let i=yq(e);{let a=i.map((e=>window.getComputedStyle(t).getPropertyValue(e)));r.requestAnimationFrame((function s(){r.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=xq(e,t);o!==c&&(n(c),o=c)}))}return r.dispose}]}return[n,null]})),i=a((()=>o(e,t)[0]),[e,t]),[s=i,l]=v();return MK((()=>{let[n,r]=o(e,t);if(l(n),r)return r(l)}),[e,t]),s}function yq(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,...yq(r)]:[n]}return[]}function xq(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 Cq=i(null);Cq.displayName="OpenClosedContext";var Sq=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Sq||{});function kq(){return l(Cq)}function Eq({value:e,children:t}){return o.createElement(Cq.Provider,{value:e},t)}var Pq=(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))(Pq||{});function Nq(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 Rq(e){let t=TK(e),n=m(!1);g((()=>(n.current=!1,()=>{n.current=!0,PK((()=>{n.current&&t()}))})),[t])}function Mq(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in r&&r.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=r.useState(kK.isHandoffComplete);return t&&!1===kK.isHandoffComplete&&n(!1),r.useEffect((()=>{!0!==t&&n(!0)}),[t]),r.useEffect((()=>kK.handoff()),[]),!e&&t}let Aq=i(!1);function Tq(){return l(Aq)}let Iq=h,Oq=$K((function(e,t){let{ownerDocument:n=null,...r}=e,o=m(null),i=hG(function(e,t=!0){return Object.assign(e,{[pG]:t})}((e=>{o.current=e})),t),a=RX(o),s=null!=n?n:a,c=function(e){let t=Tq(),n=l(Dq),[r,o]=v((()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(kK.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 g((()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))}),[r,e]),g((()=>{t||null!==n&&o(n.current)}),[n,o,t]),r}(s),[u]=v((()=>{var e;return kK.isServer?null:null!=(e=null==s?void 0:s.createElement("div"))?e:null})),d=l(Fq),f=Mq();MK((()=>{!c||!u||c.contains(u)||(u.setAttribute("data-headlessui-portal",""),c.appendChild(u))}),[c,u]),MK((()=>{if(u&&d)return d.register(u)}),[d,u]),Rq((()=>{var e;!c||!u||(oG(u)&&c.contains(u)&&c.removeChild(u),c.childNodes.length<=0&&(null==(e=c.parentElement)||e.removeChild(c)))}));let p=VK();return f&&c&&u?T(p({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:Iq,name:"Portal"}),u):null}));let Lq=h,Dq=i(null);let Fq=i(null),_q=$K((function(e,t){let n=hG(t),{enabled:r=!0,ownerDocument:i,...a}=e,s=VK();return r?o.createElement(Oq,{...a,ownerDocument:i,ref:n}):s({ourProps:{ref:n},theirProps:a,slot:{},defaultTag:Iq,name:"Portal"})})),Vq=$K((function(e,t){let{target:n,...r}=e,i={ref:hG(t)},a=VK();return o.createElement(Dq.Provider,{value:n},a({ourProps:i,theirProps:r,defaultTag:Lq,name:"Popover.Group"}))})),zq=Object.assign(_q,{Group:Vq});function jq(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:Kq)!==h||1===o.Children.count(e.children)}let Hq=i(null);Hq.displayName="TransitionContext";var Bq=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Bq||{});let $q=i(null);function Wq(e){return"children"in e?Wq(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Uq(e,t){let n=AK(e),r=m([]),o=function(){let e=m(!1);return MK((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),i=RK(),s=TK(((e,t=_K.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(DK(t,{[_K.Unmount](){r.current.splice(a,1)},[_K.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!Wq(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),l=TK((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>s(e,_K.Unmount)})),c=m([]),u=m(Promise.resolve()),d=m({enter:[],leave:[]}),f=TK(((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(d.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=TK(((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 a((()=>({children:r,register:l,unregister:s,onStart:f,onStop:p,wait:u,chains:d})),[l,s,r,f,p,d,u])}$q.displayName="NestingContext";let Kq=h,Gq=FK.RenderStrategy;let Xq=$K((function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...s}=e,l=m(null),c=hG(...jq(e)?[l,t]:null===t?[]:[t]);Mq();let u=kq();if(void 0===n&&null!==u&&(n=(u&Sq.Open)===Sq.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,f]=v(n?"visible":"hidden"),p=Uq((()=>{n||f("hidden")})),[g,b]=v(!0),w=m([n]);MK((()=>{!1!==g&&w.current[w.current.length-1]!==n&&(w.current.push(n),b(!1))}),[w,n]);let y=a((()=>({show:n,appear:r,initial:g})),[n,r,g]);MK((()=>{n?f("visible"):!Wq(p)&&null!==l.current&&f("hidden")}),[n,p]);let x={unmount:i},C=TK((()=>{var t;g&&b(!1),null==(t=e.beforeEnter)||t.call(e)})),S=TK((()=>{var t;g&&b(!1),null==(t=e.beforeLeave)||t.call(e)})),k=VK();return o.createElement($q.Provider,{value:p},o.createElement(Hq.Provider,{value:y},k({ourProps:{...x,as:h,children:o.createElement(qq,{ref:c,...x,...s,beforeEnter:C,beforeLeave:S})},theirProps:{},defaultTag:h,features:Gq,visible:"visible"===d,name:"Transition"})))})),qq=$K((function(e,t){var n,r;let{transition:i=!0,beforeEnter:a,afterEnter:s,beforeLeave:c,afterLeave:u,enter:d,enterFrom:f,enterTo:p,entered:h,leave:b,leaveFrom:w,leaveTo:y,...x}=e,[C,S]=v(null),k=m(null),E=jq(e),P=hG(...E?[k,t,S]:null===t?[]:[t]),N=null==(n=x.unmount)||n?_K.Unmount:_K.Hidden,{show:R,appear:M,initial:A}=function(){let e=l(Hq);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[T,I]=v(R?"visible":"hidden"),O=function(){let e=l($q);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:L,unregister:D}=O;MK((()=>L(k)),[L,k]),MK((()=>{if(N===_K.Hidden&&k.current)return R&&"visible"!==T?void I("visible"):DK(T,{hidden:()=>D(k),visible:()=>L(k)})}),[T,k,L,D,R,N]);let F=Mq();MK((()=>{if(E&&F&&"visible"===T&&null===k.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[k,T,F,E]);let _=A&&!M,V=M&&R&&A,z=m(!1),j=Uq((()=>{z.current||(I("hidden"),D(k))}),O),H=TK((e=>{z.current=!0;let t=e?"enter":"leave";j.onStart(k,t,(e=>{"enter"===e?null==a||a():"leave"===e&&(null==c||c())}))})),B=TK((e=>{let t=e?"enter":"leave";z.current=!1,j.onStop(k,t,(e=>{"enter"===e?null==s||s():"leave"===e&&(null==u||u())})),"leave"===t&&!Wq(j)&&(I("hidden"),D(k))}));g((()=>{E&&i||(H(R),B(R))}),[R,E,i]);let $=!(!i||!E||!F||_),[,W]=UX($,C,R,{start:H,end:B}),U=WK({ref:P,className:(null==(r=LK(x.className,V&&d,V&&f,W.enter&&d,W.enter&&W.closed&&f,W.enter&&!W.closed&&p,W.leave&&b,W.leave&&!W.closed&&w,W.leave&&W.closed&&y,!W.transition&&R&&h))?void 0:r.trim())||void 0,...WX(W)}),K=0;"visible"===T&&(K|=Sq.Open),"hidden"===T&&(K|=Sq.Closed),R&&"hidden"===T&&(K|=Sq.Opening),!R&&"visible"===T&&(K|=Sq.Closing);let G=VK();return o.createElement($q.Provider,{value:j},o.createElement(Eq,{value:K},G({ourProps:U,theirProps:x,defaultTag:Kq,features:Gq,visible:"visible"===T,name:"Transition.Child"})))})),Yq=$K((function(e,t){let n=null!==l(Hq),r=null!==kq();return o.createElement(o.Fragment,null,!n&&r?o.createElement(Xq,{ref:t,...e}):o.createElement(qq,{ref:t,...e}))})),Zq=Object.assign(Xq,{Child:Yq,Root:Xq});let Qq=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Jq(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!aG(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 Qq.test(a)&&(a=a.replace(Qq,"")),a}function eY(e){let t=m(""),n=m("");return TK((()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.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():Jq(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return Jq(e).trim()}(r).trim().toLowerCase();return t.current=o,n.current=i,i}))}var tY=Object.defineProperty,nY=(e,t,n)=>(((e,t,n)=>{t in e?tY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),rY=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(rY||{}),oY=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(oY||{}),iY=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(iY||{}),aY=(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))(aY||{});function sY(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=xX(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 lY={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,pendingFocus:{focus:Pq.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===Pq.Nothing)return{...s,activeOptionIndex:null};if(t.focus===Pq.Specific)return{...s,activeOptionIndex:e.options.findIndex((e=>e.id===t.id))};if(t.focus===Pq.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,a=Nq(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===Pq.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=Nq(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=sY(e),c=Nq(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!==Pq.Nothing&&(r=Nq(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:Pq.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,...sY(e),pendingShouldSort:!1}:e};class cY extends _G{constructor(e){super(e),nY(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return DK(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:HG((()=>{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:HG((()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:6,options:e.splice(0)})}]})),goToOption:HG((()=>{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:Pq.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})}}),nY(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=GG.get(null);this.disposables.add(t.on(WG.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 cY({id:e,dataRef:{current:{}},listboxState:t?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:Pq.Nothing},__demoMode:t})}reduce(e,t){return DK(t.type,lY,e,t)}}const uY=i(null);function dY(e){let t=l(uY);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,fY),t}return t}function fY({id:e,__demoMode:t=!1}){let n=a((()=>cY.new({id:e,__demoMode:t})),[]);return Rq((()=>n.dispose())),n}let pY=i(null);function hY(e){let t=l(pY);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,hY),t}return t}pY.displayName="ListboxDataContext";let mY=h;let gY=i(!1),vY=FK.RenderStrategy|FK.Static;let bY=h;let wY=$K((function(e,t){let n=x(),r=OK(),{value:i,defaultValue:s,form:l,name:u,onChange:d,by:f,invalid:p=!1,disabled:h=r||!1,horizontal:g=!1,multiple:b=!1,__demoMode:w=!1,...y}=e;const C=g?"horizontal":"vertical";let S=hG(t),k=function(e){let[t]=v(e);return t}(s),[E=(b?[]:void 0),P]=function(e,t,n){let[r,o]=v(n),i=void 0!==e,a=m(i),s=m(!1),l=m(!1);return!i||a.current||s.current?!i&&a.current&&!l.current&&(l.current=!0,a.current=i,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.")):(s.current=!0,a.current=i,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.")),[i?e:r,TK((e=>(i||o(e),null==t?void 0:t(e))))]}(i,d,k),N=fY({id:n,__demoMode:w}),R=m({static:!1,hold:!1}),M=m(new Map),A=function(e=EG){return c(((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])}(f),T=c((e=>DK(I.mode,{[oY.Multi]:()=>E.some((t=>A(t,e))),[oY.Single]:()=>A(E,e)})),[E]),I=a((()=>({value:E,disabled:h,invalid:p,mode:b?oY.Multi:oY.Single,orientation:C,onChange:P,compare:A,isSelected:T,optionsPropsRef:R,listRef:M})),[E,h,p,b,C,P,A,T,R,M]);MK((()=>{N.state.dataRef.current=I}),[I]);let O=oX(N,(e=>e.listboxState)),L=GG.get(null),D=oX(L,c((e=>L.selectors.isTop(e,n)),[L,n])),[F,_]=oX(N,(e=>[e.buttonElement,e.optionsElement]));NX(D,[F,_],((e,t)=>{N.send({type:aY.CloseListbox}),bX(t,vX.Loose)||(e.preventDefault(),null==F||F.focus())}));let V=a((()=>({open:O===rY.Open,disabled:h,invalid:p,value:E})),[O,h,p,E]),[z,j]=CG({inherit:!0}),H={ref:S},B=c((()=>{if(void 0!==k)return null==P?void 0:P(k)}),[P,k]),$=VK();return o.createElement(j,{value:z,props:{htmlFor:null==F?void 0:F.id},slot:{open:O===rY.Open,disabled:h}},o.createElement(bq,null,o.createElement(uY.Provider,{value:N},o.createElement(pY.Provider,{value:I},o.createElement(Eq,{value:DK(O,{[rY.Open]:Sq.Open,[rY.Closed]:Sq.Closed})},null!=u&&null!=E&&o.createElement(eG,{disabled:h,data:{[u]:E},form:l,onReset:B}),$({ourProps:H,theirProps:y,slot:V,defaultTag:mY,name:"Listbox"}))))))})),yY=$K((function(e,t){let n=x(),r=rG(),o=hY("Listbox.Button"),i=dY("Listbox.Button"),{id:s=r||`headlessui-listbox-button-${n}`,disabled:u=o.disabled||!1,autoFocus:d=!1,...f}=e,p=hG(t,pq(),i.actions.setButtonElement),h=hq(),[g,b,w]=oX(i,(e=>[e.listboxState,e.buttonElement,e.optionsElement]));IX(g===rY.Open,{trigger:b,action:c((e=>{if(null!=b&&b.contains(e.target))return AX.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return aG(t)?AX.Select(t):null!=w&&w.contains(e.target)?AX.Ignore:AX.Close}),[b,w]),close:i.actions.closeListbox,select:i.actions.selectActiveOption});let y=TK((e=>{switch(e.key){case bG.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 bG.Space:case bG.ArrowDown:e.preventDefault(),i.actions.openListbox({focus:o.value?Pq.Nothing:Pq.First});break;case bG.ArrowUp:e.preventDefault(),i.actions.openListbox({focus:o.value?Pq.Nothing:Pq.Last})}})),C=TK((e=>{if(e.key===bG.Space)e.preventDefault()})),S=TK((e=>{var t;if(0===e.button){if(fG(e.currentTarget))return e.preventDefault();i.state.listboxState===rY.Open?(A((()=>i.actions.closeListbox())),null==(t=i.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),i.actions.openListbox({focus:Pq.Nothing}))}})),k=TK((e=>e.preventDefault())),E=xG([s]),P=function(){var e,t;return null!=(t=null==(e=l(mG))?void 0:e.value)?t:void 0}(),{isFocusVisible:N,focusProps:R}=xK({autoFocus:d}),{isHovered:M,hoverProps:T}=yK({isDisabled:u}),{pressed:I,pressProps:O}=function({disabled:e=!1}={}){let t=m(null),[n,r]=v(!1),o=RK(),i=TK((()=>{t.current=null,r(!1),o.dispose()})),a=TK((e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=EK(e.currentTarget);o.addEventListener(n,"pointerup",i,!1),o.addEventListener(n,"pointermove",(e=>{if(t.current){let n=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);r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}}),!1),o.addEventListener(n,"pointercancel",i,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:i,onClick:i}}}({disabled:u}),L=a((()=>({open:g===rY.Open,active:I||g===rY.Open,disabled:u,invalid:o.invalid,value:o.value,hover:M,focus:N,autofocus:d})),[g,o.value,u,M,N,I,o.invalid,d]),D=oX(i,(e=>e.listboxState===rY.Open)),F=BK(h(),{ref:p,id:s,type:OX(e,b),"aria-haspopup":"listbox","aria-controls":null==w?void 0:w.id,"aria-expanded":D,"aria-labelledby":E,"aria-describedby":P,disabled:u||void 0,autoFocus:d,onKeyDown:y,onKeyUp:C,onKeyPress:k,onPointerDown:S},R,T,O);return VK()({ourProps:F,theirProps:f,slot:L,defaultTag:"button",name:"Listbox.Button"})})),xY=kG,CY=$K((function(e,t){let n=x(),{id:r=`headlessui-listbox-options-${n}`,anchor:i,portal:s=!1,modal:l=!0,transition:u=!1,...d}=e,f=function(e){return a((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(i),[p,h]=v(null);f&&(s=!0);let b=hY("Listbox.Options"),w=dY("Listbox.Options"),[y,C,S,k]=oX(w,(e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode])),E=RX(C),P=RX(S),N=kq(),[R,M]=UX(u,p,null!==N?(N&Sq.Open)===Sq.Open:y===rY.Open);!function(e,t,n){let r=AK((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));g((()=>{if(!e)return;let n=null===t?null:aG(t)?t:t.current;if(!n)return;let o=NK();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>r.current(n)));e.observe(n),o.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>r.current(n)));e.observe(n),o.add((()=>e.disconnect()))}return()=>o.dispose()}),[t,r,e])}(R,C,w.actions.closeListbox),function(e,t,n=(()=>[document.body])){VX(aX(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(!k&&(l&&y===rY.Open),P),function(e,{allowed:t,disallowed:n}={}){let r=aX(e,"inert-others");MK((()=>{var e,o;if(!r)return;let i=NK();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(cX(t));let a=null!=(o=null==t?void 0:t())?o:[];for(let e of a){if(!e)continue;let t=EK(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(cX(e));n=n.parentElement}}return i.dispose}),[r,t,n])}(!k&&(l&&y===rY.Open),{allowed:c((()=>[C,S]),[C,S])});let T=!function(e,t){let n=m({left:0,top:0});if(MK((()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)}),[e,t]),null==t||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}(y!==rY.Open,C)&&R,I=function(e,t){let[n,r]=v(t);return!e&&n!==t&&r(t),e?n:t}(R&&y===rY.Closed,b.value),O=TK((e=>b.compare(I,e))),L=oX(w,(e=>{var t;if(null==f||null==(t=null==f?void 0:f.to)||!t.includes("selection"))return null;let n=e.options.findIndex((e=>O(e.dataRef.current.value)));return-1===n&&(n=0),n})),D=(()=>{if(null==f)return;if(null===L)return{...f,inner:void 0};let e=Array.from(b.listRef.current.values());return{...f,inner:{listRef:{current:e},index:L}}})(),[F,_]=gq(D),V=mq(),z=hG(t,f?F:null,w.actions.setOptionsElement,h),j=RK();g((()=>{var e;let t=S;t&&y===rY.Open&&t!==(null==(e=EK(t))?void 0:e.activeElement)&&(null==t||t.focus({preventScroll:!0}))}),[y,S]);let H=TK((e=>{var t,n;switch(j.dispose(),e.key){case bG.Space:if(""!==w.state.searchQuery)return e.preventDefault(),e.stopPropagation(),w.actions.search(e.key);case bG.Enter:if(e.preventDefault(),e.stopPropagation(),null!==w.state.activeOptionIndex){let{dataRef:e}=w.state.options[w.state.activeOptionIndex];w.actions.onChange(e.current.value)}b.mode===oY.Single&&(A((()=>w.actions.closeListbox())),null==(t=w.state.buttonElement)||t.focus({preventScroll:!0}));break;case DK(b.orientation,{vertical:bG.ArrowDown,horizontal:bG.ArrowRight}):return e.preventDefault(),e.stopPropagation(),w.actions.goToOption({focus:Pq.Next});case DK(b.orientation,{vertical:bG.ArrowUp,horizontal:bG.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),w.actions.goToOption({focus:Pq.Previous});case bG.Home:case bG.PageUp:return e.preventDefault(),e.stopPropagation(),w.actions.goToOption({focus:Pq.First});case bG.End:case bG.PageDown:return e.preventDefault(),e.stopPropagation(),w.actions.goToOption({focus:Pq.Last});case bG.Escape:return e.preventDefault(),e.stopPropagation(),A((()=>w.actions.closeListbox())),void(null==(n=w.state.buttonElement)||n.focus({preventScroll:!0}));case bG.Tab:e.preventDefault(),e.stopPropagation(),A((()=>w.actions.closeListbox())),CX(w.state.buttonElement,e.shiftKey?pX.Previous:pX.Next);break;default:1===e.key.length&&(w.actions.search(e.key),j.setTimeout((()=>w.actions.clearSearch()),350))}})),B=oX(w,(e=>{var t;return null==(t=e.buttonElement)?void 0:t.id})),$=a((()=>({open:y===rY.Open})),[y]),W=BK(f?V():{},{id:r,ref:z,"aria-activedescendant":oX(w,w.selectors.activeDescendantId),"aria-multiselectable":b.mode===oY.Multi||void 0,"aria-labelledby":B,"aria-orientation":b.orientation,onKeyDown:H,role:"listbox",tabIndex:y===rY.Open?0:void 0,style:{...d.style,..._,"--button-width":PG(C,!0).width},...WX(M)}),U=VK(),K=a((()=>b.mode===oY.Multi?b:{...b,isSelected:O}),[b,O]);return o.createElement(zq,{enabled:!!s&&(e.static||R),ownerDocument:E},o.createElement(pY.Provider,{value:K},U({ourProps:W,theirProps:d,slot:$,defaultTag:"div",features:vY,visible:T,name:"Listbox.Options"})))})),SY=$K((function(e,t){let n=x(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...s}=e,c=!0===l(gY),u=hY("Listbox.Option"),d=dY("Listbox.Option"),f=oX(d,(e=>d.selectors.isActive(e,r))),p=u.isSelected(i),h=m(null),g=eY(h),v=AK({disabled:o,value:i,domRef:h,get textValue(){return g()}}),b=hG(t,h,(e=>{e?u.listRef.current.set(r,e):u.listRef.current.delete(r)})),w=oX(d,(e=>d.selectors.shouldScrollIntoView(e,r)));MK((()=>{if(w)return NK().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[w,h]),MK((()=>{if(!c)return d.actions.registerOption(r,v),()=>d.actions.unregisterOption(r)}),[v,r,c]);let y=TK((e=>{var t;if(o)return e.preventDefault();d.actions.onChange(i),u.mode===oY.Single&&(A((()=>d.actions.closeListbox())),null==(t=d.state.buttonElement)||t.focus({preventScroll:!0}))})),C=TK((()=>{if(o)return d.actions.goToOption({focus:Pq.Nothing});d.actions.goToOption({focus:Pq.Specific,id:r})})),S=jX(),k=TK((e=>{S.update(e),!o&&(f||d.actions.goToOption({focus:Pq.Specific,id:r},iY.Pointer))})),E=TK((e=>{S.wasMoved(e)&&(o||f||d.actions.goToOption({focus:Pq.Specific,id:r},iY.Pointer))})),P=TK((e=>{S.wasMoved(e)&&(o||f&&d.actions.goToOption({focus:Pq.Nothing}))})),N=a((()=>({active:f,focus:f,selected:p,disabled:o,selectedOption:p&&c})),[f,p,o,c]),R=c?{}:{id:r,ref:b,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:C,onPointerEnter:k,onMouseEnter:k,onPointerMove:E,onMouseMove:E,onPointerLeave:P,onMouseLeave:P},M=VK();return!p&&c?null:M({ourProps:R,theirProps:s,slot:N,defaultTag:"div",name:"Listbox.Option"})})),kY=$K((function(e,t){let{options:n,placeholder:r,...i}=e,s={ref:hG(t)},l=hY("ListboxSelectedOption"),c=a((()=>({})),[]),u=void 0===l.value||null===l.value||l.mode===oY.Multi&&Array.isArray(l.value)&&0===l.value.length,d=VK();return o.createElement(gY.Provider,{value:!0},d({ourProps:s,theirProps:{...i,children:o.createElement(o.Fragment,null,r&&u?r:n)},slot:c,defaultTag:bY,name:"ListboxSelectedOption"}))})),EY=Object.assign(wY,{Button:yY,Label:xY,Options:CY,Option:SY,SelectedOption:kY});function PY({title:r,value:i,disabled:a,setValue:s,availableValues:l,showAbove:c=!1,showLabel:u=!0,emptyTitle:d=!1,iconSide:f="right",optionIconSide:p="left",placeholder:h,containerClassName:g,optionsListClass:v,optionsClass:b,currentValueClass:w,subContainerClassName:y,className:x,renderOption:C,searchClassName:S,searchPlaceholder:k,showOptionIcon:E=!1}){const P=ry(),N={className:"top-full mt-3"};c&&(N.className="bottom-full mb-3");let R=r;d?R="":R||(R=P("com_ui_model"));const M=l??[],[A,T]=jL({availableOptions:M,placeholder:k,getTextKeyOverride:e=>function(e){return"string"==typeof e?e:"label"in e?e.label??"":"value"in e?(e.value??"")+"":""}(e).toUpperCase(),className:S,disabled:a}),I=null!=T?A:M,O=E&&null!=i&&null!=i.icon,L=m(null);return e("div",{className:an("flex items-center justify-center gap-2",g??""),children:e("div",{className:an("relative w-full",y??""),children:e(EY,{value:i,onChange:s,disabled:a,children:({open:r})=>t(n,{children:[t(yY,{ref:L,"data-testid":"select-dropdown-button",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),!r&&L.current&&L.current.click())},className:an("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",x??""),children:[u&&e(kG,{className:"block text-xs text-gray-700 dark:text-gray-500",id:"headlessui-listbox-label-:r1:","data-headlessui-state":"",children:R}),e("span",{className:"inline-flex w-full truncate",children:t("span",{className:an("flex h-6 items-center gap-1 truncate text-sm text-gray-800 dark:text-white",u?"":"text-xs",w??""),children:[!u&&!d&&t("span",{className:"text-xs text-gray-700 dark:text-gray-500",children:[R,":"]}),O&&"right"!==p&&e("span",{className:"icon-md flex items-center",children:i.icon}),O&&e("span",{className:"icon-md absolute right-0 mr-8 flex items-center",children:i.icon}),i?"string"!=typeof i?i.label??"":i:e("span",{className:"text-text-secondary",children:h})]})}),e("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:e("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:c?{transform:"scaleY(-1)"}:{},children:e("polyline",{points:"6 9 12 15 18 9"})})})]}),e(Zq,{show:r,as:o.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",...N,children:t(CY,{className:an("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%]",v??""),children:[C&&e(SY,{value:null,className:an("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",b??""),children:C()},"listbox-render-option"),T,I.map(((n,r)=>{if(!n)return null;const o="string"==typeof n?n:n.label??n.value??"",a="string"==typeof n?n:n.value??"",s="string"==typeof n?null:n.icon??null;let l=i;return"string"!=typeof l&&(l=l?.value??""),e(SY,{value:n,className:({active:e})=>an("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":"",b??""),children:t("span",{className:"flex items-center gap-1.5 truncate",children:[t("span",{className:an("flex h-6 items-center gap-1 text-gray-800 dark:text-gray-200",n===i?"font-semibold":"","left"===f?"ml-4":""),children:[null!=s&&e("span",{className:an("mr-1","right"===p?"absolute right-0 pr-2":""),children:s}),o]}),a===l&&e("span",{className:an("absolute inset-y-0 flex items-center text-gray-800 dark:text-gray-200","left"===f?"left-0 pl-2":"right-0 pr-3"),children:e(fW,{})})]})},r)}))]})})]})})})})}var NY=o.memo((({label:n="Value",ariaLabel:r="Value",min:o=0,max:i=100,step:a=1,stepClick:s=1,initialValue:l=0,showButtons:u=!0,onChange:d,disabled:f=!1})=>{const p=ry(),[h,b]=v(l),[w,y]=v(!1),x=m(null),C=`model-parameter-${r.toLowerCase().replace(/\s+/g,"-")}`,S=n&&n.startsWith("com_")?p(n):n,k=(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),E=c((e=>{const t=Math.min(Math.max(e,o),i),n=Object.is(t,-0)?0:t;b(n),d?.(n)}),[o,i,d]),P=c((e=>{E(parseFloat(e.target.value))}),[E]),N=c((()=>{E(h+s)}),[h,s,E]),R=c((()=>{E(h-s)}),[h,s,E]),M=c((e=>{"ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),N()):"ArrowLeft"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),R())}),[N,R]);return g((()=>{const e=x.current;if(e){const t=(h-o)/(i-o)*100;e.style.backgroundSize=`${t}% 100%`}}),[h,o,i]),t("div",{className:"w-full",children:[t("div",{className:"mb-2 flex items-center justify-between",children:[e("label",{htmlFor:C,className:"text-sm font-medium "+(f?"text-gray-400 dark:text-gray-400":""),children:S}),t("div",{className:"flex items-center gap-2",children:[e("output",{htmlFor:C,className:"select-none text-sm font-medium "+(f?"text-gray-400 dark:text-gray-400":""),"aria-live":"polite",children:h.toFixed(k).replace("-0.00","0.00")}),u&&t("div",{className:"flex items-center gap-1",children:[e("button",{type:"button",onClick:R,className:"rounded-md p-1 transition-colors "+(f?"cursor-not-allowed text-gray-400 dark:text-gray-400":"hover:bg-gray-200 dark:hover:bg-gray-700"),"aria-label":`Decrease ${n}`,disabled:f,children:e(eh,{size:16})}),e("button",{type:"button",onClick:N,className:"rounded-md p-1 transition-colors "+(f?"cursor-not-allowed text-gray-400 dark:text-gray-400":"hover:bg-gray-200 dark:hover:bg-gray-700"),"aria-label":`Increase ${n}`,disabled:f,children:e(rh,{size:16})})]})]})]}),t("div",{className:"relative w-full",children:[e("input",{ref:x,type:"range",id:C,min:o,max:i,step:a,value:h,onChange:P,onKeyDown:M,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!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 "+(f?"cursor-not-allowed opacity-50":"cursor-pointer"),tabIndex:0,style:{backgroundSize:"50% 100%",backgroundPosition:"left"},"aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":h,"aria-valuetext":`${h.toFixed(k).replace("-0.00","0.00")}`,disabled:f}),w?t("div",{className:"trab mt-1 flex justify-between",children:[e("span",{className:"text-xs text-gray-500",children:o}),e("span",{className:"text-xs text-gray-500",children:i})]}):e("div",{className:"mt-1",style:{height:"1rem"}})]})]})})),RY=i(null);function MY(){let e=0;return{run:t=>{e||(e=requestAnimationFrame((()=>{e=0,t()})))},cancel:()=>{cancelAnimationFrame(e),e=0}}}function AY(e){return"number"==typeof e?e:e.length}function TY(e){return e&&"object"==typeof e?e:{value:e}}function IY(e,t,n){var r;jn(n,"CollectionRenderer must be given an `id` prop.");const o=`${n}/${t}`;return null!=(r=TY(e).id)?r:o}function OY(e,t){if("number"==typeof e)return t>=e?null:{};const n=e[t];return n?"object"==typeof n?n:{value:n}:null}function LY(e,t,n){var r,o,i,a,s;const l=TY(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+LY(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 DY(e,t){return"scrollX"in e?t?e.scrollX:e.scrollY:t?e.scrollLeft:e.scrollTop}function FY(e){const{defaultView:t,documentElement:n}=e.ownerDocument;return e===n?t:e}function _Y(e,t,n){const r=DY(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 DY(r,n)+a;const s=t.getBoundingClientRect();return a-(n?s.left:s.top)+DY(t,n)}(e,t,n),i=r-o;return{start:i,end:i+(n?t.clientWidth:t.clientHeight)}}function VY(e){var t;const n=AY(e.items);let r,o=e.paddingStart;const i=function(e){const t=AY(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=OY(e.items,n),r=IY(t,n,e.baseId),i=e.data.get(r),a=e.elements.get(r),s=LY(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=OY(e.items,a),s=IY(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;Ln(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=LY(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 zY(t){var n,r,o=t,{store:i,items:s,initialItems:u=0,gap:d=0,itemSize:f,estimatedItemSize:p=40,overscan:h,orientation:b,padding:w=0,paddingStart:y=w,paddingEnd:x=w,persistentIndices:C,renderOnScroll:S=!0,renderOnResize:k=!!S,children:E}=o,P=Cn(o,["store","items","initialItems","gap","itemSize","estimatedItemSize","overscan","orientation","padding","paddingStart","paddingEnd","persistentIndices","renderOnScroll","renderOnResize","children"]);const N=fo(),R=Qo(i=i||N,(e=>null!=s?s:null==e?void 0:e.items));jn(null!=R,!1);let M=l(RY);i&&(null==M?void 0:M.store)!==i&&(M=null);const T=null==M?void 0:M.childrenData,I=null!=(n=null!=b?b:null==M?void 0:M.orientation)?n:"vertical",O=null!=(r=null!=h?h:null==M?void 0:M.overscan)?r:1,L=m(null),D=Tr(P.id),F="horizontal"===I,_=a((()=>new Map),[]),[V,z]=Dr(),[j,H]=v((()=>{if(!u)return[];const e=AY(R),t=Math.min(e,Math.abs(u));return Array.from({length:t},((t,n)=>u<0?e-n-1:n))})),B=a((()=>{if(!C)return j;const e=j.slice();for(const t of C)t<0||e.includes(t)||e.push(t);return e.sort(((e,t)=>e-t)),Ln(j,e)?j:e}),[j,C]),[$,W]=v((()=>{if(!D)return new Map;const e=(null==T?void 0:T.get(D))||new Map;if(null!=f)return e;if(!R)return e;return VY({baseId:D,items:R,data:e,gap:d,elements:_,horizontal:F,paddingStart:y,estimatedItemSize:p})||e})),U=a((()=>function(e){const t=AY(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=IY(OY(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+LY(n,e.horizontal,!1)),0);return l?l+o+n:i}({baseId:D,items:R,data:$,gap:d,horizontal:F,itemSize:f,estimatedItemSize:p,paddingStart:y,paddingEnd:x})),[D,R,$,d,F,f,p,y,x]);g((()=>{D&&(null==T||T.set(D,$))}),[D,T,$]),g((()=>{if(null!=f)return;if(!D)return;if(!R)return;const e=VY({baseId:D,items:R,data:$,gap:d,elements:_,horizontal:F,paddingStart:y,estimatedItemSize:p});e&&W(e)}),[V,f,D,R,$,d,_,F,y,p]);const K=function(e){const[t,n]=v(null);return g((()=>{const t=null==e?void 0:e.current;if(!t)return;const r=lr(t);r&&n(r)}),[e]),t}(R?L:null),G=m({start:0,end:0}),X=c((()=>{const e=G.current;if(!R)return;if(!D)return;if(!e.end)return;if(!$.size&&!f)return;const t=AY(R),n=(e,t="start")=>{var n;if(f){const n=f*e+d*e+y;return"start"===t?n:n+f}const r=IY(OY(R,e),e,D),o=$.get(r);return null!=(n=null==o?void 0:o[t])?n:0},r=function(e,t,n){let r=0,o=AY(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}(R,e.start,n);let o=r;for(;o<t&&n(o)<e.end;)o+=1;const i=o-r?O:0,a=Math.max(r-i,0),s=Math.min(o+i,t),l=Array.from({length:s-a},((e,t)=>t+a));H((e=>Ln(e,l)?e:l))}),[V,R,D,$,f,d,y,O]);g(X,[X]);const q=Rr(X);g((()=>{const e=L.current;e&&K&&(G.current=_Y(e,K,F),q())}),[K,F,q]);const Y=!!S,Z=Fr(S);g((()=>{if(!Y)return;const e=L.current;if(!e)return;if(!K)return;const t=FY(K);if(!t)return;const n=MY(),r=t=>{n.run((()=>{Z(t)&&(G.current=_Y(e,K,F),q())}))};return t.addEventListener("scroll",r,{passive:!0}),()=>{n.cancel(),t.removeEventListener("scroll",r)}}),[Y,K,Z,F,q]);const Q=!!k,J=Fr(k);g((()=>{if(!Q)return;const e=L.current;if(!e)return;if(!K)return;const t=FY(K);if(!t)return;const n=MY();if(t===K){if("function"!=typeof ResizeObserver)return;let t=!0;const r=new ResizeObserver((()=>{t?t=!1:n.run((()=>{J(K)&&(G.current=_Y(e,K,F),q())}))}));return r.observe(K),()=>{n.cancel(),r.disconnect()}}const r=()=>{n.run((()=>{J(K)&&(G.current=_Y(e,K,F),q())}))};return t.addEventListener("resize",r,{passive:!0}),()=>{n.cancel(),t.removeEventListener("resize",r)}}),[Q,K,J,F,q]),g((()=>{if("function"!=typeof IntersectionObserver)return;const e=L.current;if(!e)return;if(!K)return;const t=FY(K);if(!t)return;const n=new IntersectionObserver((()=>{G.current=_Y(e,K,F),q()}),{root:K===t?K:null});return n.observe(e),()=>{n.disconnect()}}),[K,q]);const ee=a((()=>{if("function"==typeof ResizeObserver)return new ResizeObserver((()=>{A(z)}))}),[z]),te=c((e=>{e&&(f||(z(),_.set(e.id,e),null==ee||ee.observe(e)))}),[f,_,z,ee]),ne=c(((e,t)=>{var n,r;const o=IY(e,t,D),i=f?y+f*t+d*t:null!=(r=null==(n=$.get(o))?void 0:n.start)?r:0,a={id:o,ref:te,index:t,style:{position:"absolute",left:F?i:0,top:F?0:i}};if(f&&(a.style[F?"width":"height"]=f),null==e)return a;const s=TY(e);return xn(yn(yn({},s),a),{style:yn(yn({},s.style),a.style)})}),[D,$,f,y,d,F,te]),re=a((()=>B.map((e=>{if(e<0)return;const t=OY(R,e);return t?ne(t,e):void 0})).filter((e=>null!=e))),[R,B,ne]),oe=null==re?void 0:re.map((e=>null==E?void 0:E(e))),ie=P.style,ae=F?"width":"height",se=a((()=>yn({flex:"none",position:"relative",[ae]:U},ie)),[ie,ae,U]),le=a((()=>new Map),[]),ce=a((()=>({store:i,orientation:I,overscan:O,childrenData:le})),[i,I,O,le]);return P=_r(P,(t=>e(RY.Provider,{value:ce,children:t})),[ce]),P=xn(yn({id:D},P),{style:se,ref:Ar(L,P.ref)}),xn(yn({},P),{children:oe})}Kr((function(e){return Xr("div",zY(e))}));var jY=IY;function HY(e){return e&&"object"==typeof e?e:{value:e}}function BY(e){return e?"number"==typeof e?Array.from({length:e},((e,t)=>t+1)):e.reduce(((e,t,n)=>{var r,o;const i=HY(t);if(i.items,!i.items)return e[n]=n+1,e;const a=null!=(r=e[n-1])?r:0,s=null!=(o=BY(i.items)[i.items.length-1])?o:0;return e[n]=a+s,e}),[]):[0]}function $Y(e,t=1){for(let n=t>0?0:e.length-1;n>=0&&n<e.length;n+=t){const r=HY(e[n]);if(r.items&&-1!==$Y(r.items,t))return n;if(!r.disabled)return n}return-1}function WY(e,t,n){return e.findIndex(((e,r)=>{var o;const i=jY(e,r,n);if(i===t)return!0;const a=HY(e);if(null==(o=a.items)?void 0:o.length)return-1!==WY(a.items,t,i);const s=t.split("/");return 1!==s.length&&s.some((e=>i===e))}))}function UY(e){var t=e,{store:n,orientation:r,persistentIndices:o,children:i,"aria-setsize":s,"aria-posinset":l=1}=t,c=Cn(t,["store","orientation","persistentIndices","children","aria-setsize","aria-posinset"]);const u=ho(),d=Qo(n=n||u,(e=>(null!=r?r:"both"===(null==e?void 0:e.orientation))?"vertical":null==e?void 0:e.orientation)),f=Qo(n,(e=>{var t;return e?"mounted"in e&&!e.mounted?0:null!=(t=c.items)?t:e.items:c.items})),p=Tr(c.id),h=a((()=>BY(f)),[f]),m=a((()=>{var e;return null!=(e=null!=s?s:h[h.length-1])?e:0}),[s,h]),g=a((()=>f?"number"==typeof f?0:f.length?$Y(f):-1:-1),[f]),v=a((()=>f?"number"==typeof f?f-1:f.length?function(e){return $Y(e,-1)}(f):-1:-1),[f]),b=Qo(n,"activeId"),w=a((()=>p&&f?null==b||"number"==typeof f?-1:f.length?WY(f,b,p):-1:-1),[p,f,b]),y=a((()=>{const e=[g,w,v].filter((e=>e>=0));return o?[...o,...e]:e}),[g,w,v,o]);return zY(xn(yn({id:p,store:n,orientation:d,persistentIndices:y},c),{children:e=>{var t;const n=xn(yn({},e),{"aria-setsize":m,"aria-posinset":l+(null!=(t=h[e.index-1])?t:0)});return null==i?void 0:i(n)}}))}Kr((function(e){return Xr("div",UY(e))}));function KY(e){return e&&"object"==typeof e?e:{value:`${e}`}}function GY(e,t){var n;const r=ri(t),o=[];for(const[i,a]of e.entries()){if(o.length===r.length)break;const e=KY(a);if(null!=e.value&&r.includes(e.value))o.push(i);else if(null==(n=e.items)?void 0:n.length){GY(e.items,t).length&&o.push(i)}}return o}function XY(e){var t=e,{store:n,orientation:r,persistentIndices:o,items:i,value:s}=t,l=Cn(t,["store","orientation","persistentIndices","items","value"]);const c=xo(),u=Qo(n=n||c,(e=>e?e.mounted?null!=i?i:e.items:0:i)),d=Qo(n,(e=>null!=s?s:null==e?void 0:e.value)),f=a((()=>u?null==d||"number"==typeof u?[]:u.length?GY(u,d):[]:[]),[u,d]),p=a((()=>o?[...o,...f]:f),[f,o]);return UY(yn({store:n,items:u,persistentIndices:p},l))}var qY=Kr((function(e){return Xr("div",XY(e))}));var YY=P((function({selectedValue:r,displayValue:o,items:i,setValue:s,ariaLabel:l,searchPlaceholder:c,selectPlaceholder:u,containerClassName:d,isCollapsed:f,SelectIcon:p,showCarat:h,className:b,disabled:w,iconClassName:y,iconSide:x="left",selectId:C}){const[S,k]=v(""),E=m(null),[P,N]=v(null),R=e=>({id:`item-${e.value}`,value:e.value,label:e.label,icon:e.icon}),M=Du({defaultItems:i.map(R),resetValueOnHide:!0,value:S,setValue:k}),A=Lc({combobox:M,defaultItems:i.map(R),value:r,setValue:s}),T=a((()=>{const e=qw(i,S,{keys:["value","label"],baseSort:(e,t)=>e.index<t.index?-1:1});return e.map(R)}),[S,i]);g((()=>{E.current&&!f&&N(E.current.offsetWidth)}),[f]);const I=an("flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",y),O=an("mr-2 flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",y);return t("div",{className:an("flex w-full items-center justify-center px-1",d),children:[e(ru,{store:A,className:"sr-only",children:l}),t(Wc,{ref:E,store:A,id:C,disabled:w,className:an("flex items-center justify-center gap-2 rounded-full bg-surface-secondary","text-text-primary hover:bg-surface-tertiary","border border-border-light",f?"h-10 w-10":"h-10 w-full rounded-xl px-3 py-2 text-sm",b),children:[null!=p&&"left"===x&&e("div",{className:I,children:p}),!f&&t(n,{children:[e("span",{className:"flex-grow truncate text-left",children:null!=o?o||u:r||u}),null!=p&&"right"===x&&e("div",{className:I,children:p}),h&&e(Xp,{className:"h-4 w-4 text-text-secondary"})]})]}),t(su,{store:A,gutter:4,portal:!0,className:an("animate-popover z-50 overflow-hidden rounded-xl border border-border-light bg-surface-secondary shadow-lg"),style:{width:f?"300px":P??"300px"},children:[e("div",{className:"py-1.5",children:t("div",{className:"relative",children:[e(oh,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-primary"}),e(zu,{store:M,autoSelect:!0,placeholder:c,className:"w-full rounded-md bg-surface-secondary py-2 pl-9 pr-3 text-sm text-text-primary focus:outline-none"})]})}),e("div",{className:"max-h-[300px] overflow-auto",children:e(Yu,{store:M,children:e(qY,{store:A,items:T,itemSize:36,overscan:5,children:({value:n,icon:r,label:o,...i})=>t(Ku,{...i,className:an("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(tu,{value:n}),children:[null!=r&&"left"===x&&e("div",{className:O,children:r}),e("span",{className:"flex-grow truncate text-left",children:o}),null!=r&&"right"===x&&e("div",{className:O,children:r})]},i.id)})})})]})]})}));const ZY=u(((n,r)=>{const o=ry(),{title:i,main:a,buttons:s,selection:l,className:c,leftButtons:u,description:d="",mainClassName:f,headerClassName:p,footerClassName:h,showCloseButton:m,overlayClassName:g,showCancelButton:v=!0}=n,{selectHandler:b,selectClasses:w,selectText:y,isLoading:x}=l||{};return t(EC,{overlayClassName:g,showCloseButton:m,ref:r,className:an("w-11/12 border-none bg-background text-foreground",c??""),onClick:e=>e.stopPropagation(),children:[t(PC,{className:an(p??""),children:[e(RC,{children:i}),d&&e(MC,{className:"items-center justify-center",children:d})]}),e("div",{className:an("px-0 py-2",f),children:null!=a?a:null}),t(NC,{className:h,children:[e("div",{children:null!=u?e("div",{className:"mt-3 flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:mt-0 sm:flex-row",children:u}):null}),t("div",{className:"flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:flex-row",children:[v&&e(SC,{asChild:!0,children:e(vh,{variant:"outline",children:o("com_ui_cancel")})}),null!=s?s:null,l?e(SC,{onClick:b,disabled:x,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===x?e(uW,{className:"size-4 text-white"}):y}):null]})]})]})})),QY=r.forwardRef((({className:n,options:o,onSelect:i,...a},s)=>{const[l,c]=r.useState(!1),[u,d]=r.useState(a.value||""),[f,p]=r.useState(-1),h=r.useRef(null),m=e=>{d(e),c(!1),p(-1),i&&i(e),a.onChange&&a.onChange({target:{value:e}})};return r.useEffect((()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&(c(!1),p(-1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),t("div",{className:"relative",ref:h,children:[t("div",{className:"relative",children:[e(nx,{...a,value:u,onChange:e=>{d(e.target.value),a.onChange&&a.onChange(e)},onKeyDown:e=>{switch(e.key){case"ArrowDown":e.preventDefault(),l?p((e=>e<o.length-1?e+1:e)):c(!0);break;case"ArrowUp":e.preventDefault(),p((e=>e>0?e-1:0));break;case"Enter":e.preventDefault(),l&&-1!==f&&m(o[f]),c(!1);break;case"Escape":c(!1),p(-1)}},"aria-haspopup":"listbox","aria-controls":"dropdown-list",className:an("bg-surface-secondary",n??""),ref:s}),e("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:()=>c(!l),"aria-label":l?"Close dropdown":"Open dropdown",children:e("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),l&&e("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:o.map(((t,n)=>e("li",{role:"option","aria-selected":n===f,className:an("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===f?"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)))})]})}));QY.displayName="InputWithDropdown";const JY=i({showToast:()=>({})});function eZ(){return l(JY)}function tZ({children:t}){const{showToast:n}=Vw();return e(JY.Provider,{value:{showToast:n},children:t})}export{cn as Accordion,fn as AccordionContent,un as AccordionItem,dn as AccordionTrigger,Cp as AlertDialog,Tp as AlertDialogAction,Ip as AlertDialogCancel,Pp as AlertDialogContent,Ap as AlertDialogDescription,Rp as AlertDialogFooter,Np as AlertDialogHeader,Mp as AlertDialogTitle,Sp as AlertDialogTrigger,tW as AnimatedSearchInput,td as AnimatedTabs,MW as AnthropicIcon,UW as AnthropicMinimalIcon,NW as AppleIcon,nW as ArchiveIcon,nU as AssistantIcon,vW as AttachmentIcon,_W as AzureMinimalIcon,fF as Badge,sU as BedrockIcon,tU as BirthdayIcon,rW as Blocks,sh as Breadcrumb,ph as BreadcrumbEllipsis,ch as BreadcrumbItem,uh as BreadcrumbLink,lh as BreadcrumbList,dh as BreadcrumbPage,fh as BreadcrumbSeparator,vh as Button,zW as ChatGPTMinimalIcon,fW as CheckMark,Th as Checkbox,LU as CheckboxButton,aU as CircleHelpIcon,dW as Clipboard,BW as CodeyIcon,tm as Collapsible,rm as CollapsibleContent,nm as CollapsibleTrigger,vz as Combobox,xW as ContinueIcon,YY as ControlCombobox,pW as CrossIcon,mW as CustomMinimalIcon,sW as DataIcon,wU as DataTable,Aw as DataTableColumnHeader,TU as DelayedRender,sy as Dialog,vy as DialogButton,gy as DialogClose,dy as DialogContent,my as DialogDescription,py as DialogFooter,fy as DialogHeader,kC as DialogOverlay,DU as DialogTemplate,hy as DialogTitle,ly as DialogTrigger,PW as DiscordIcon,IW as DotsIcon,yz as Dropdown,mw as DropdownMenu,Ew as DropdownMenuCheckboxItem,Sw as DropdownMenuContent,vw as DropdownMenuGroup,kw as DropdownMenuItem,Nw as DropdownMenuLabel,bw as DropdownMenuPortal,yw as DropdownMenuRadioGroup,Pw as DropdownMenuRadioItem,Rw as DropdownMenuSeparator,Mw as DropdownMenuShortcut,ww as DropdownMenuSub,Cw as DropdownMenuSubContent,xw as DropdownMenuSubTrigger,gw as DropdownMenuTrigger,MU as DropdownPopup,aW as EditIcon,JW as ExperimentIcon,SW as FacebookIcon,PU as FileUpload,yU as FormInput,iW as GPTIcon,OW as GearIcon,$W as GeminiIcon,EW as GithubIcon,CW as GoogleIcon,eU as GoogleIconChat,WW as GoogleMinimalIcon,Qy as HoverCard,tx as HoverCardContent,ex as HoverCardPortal,Jy as HoverCardTrigger,nx as Input,DS as InputCombobox,dC as InputNumber,LL as InputOTP,DL as InputOTPGroup,_L as InputOTPSeparator,FL as InputOTPSlot,QY as InputWithDropdown,wC as Label,gW as LightningIcon,TW as LinkIcon,KW as ListeningIcon,ZW as LockIcon,hW as LogOutIcon,fU as MCPIcon,bW as MessagesSquared,FW as MinimalPlugin,cW as MobileSidebar,NY as ModelParameters,RU as MultiSelect,QW as NewChatIcon,Tw as NotificationSeverity,yC as OGDialog,SC as OGDialogClose,EC as OGDialogContent,MC as OGDialogDescription,NC as OGDialogFooter,PC as OGDialogHeader,kC as OGDialogOverlay,CC as OGDialogPortal,ZY as OGDialogTemplate,RC as OGDialogTitle,xC as OGDialogTrigger,VW as OpenAIMinimalIcon,kW as OpenIDIcon,HW as PaLMIcon,jW as PaLMinimalIcon,UO as Pagination,KO as PaginationContent,ZO as PaginationEllipsis,GO as PaginationItem,XO as PaginationLink,YO as PaginationNext,qO as PaginationPrevious,dU as PersonalizationIcon,LW as PinIcon,EU as PixelCard,oW as Plugin,xL as Progress,AC as QuestionMark,yW as RegenerateIcon,uF as ResizableHandle,dF as ResizableHandleAlt,cF as ResizablePanel,lF as ResizablePanelGroup,RW as SamlIcon,iU as SaveIcon,PY as SelectDropDown,AW as SendIcon,qW as SendMessageIcon,LS as Separator,lW as Sidebar,FS as Skeleton,kS as Slider,rU as Sparkles,oU as SpeechIcon,uW as Spinner,UB as SplitText,hU as SquirclePlusIcon,wW as StopGeneratingIcon,sk as Switch,lk as Table,uk as TableBody,mk as TableCaption,hk as TableCell,dk as TableFooter,pk as TableHead,ck as TableHeader,fk as TableRow,Xk as Tabs,Zk as TabsContent,qk as TabsList,Yk as TabsTrigger,Jk as Tag,eE as Textarea,mE as TextareaAutosize,Fw as ThemeContext,_w as ThemeProvider,OU as ThemeSelector,cU as ThumbDownIcon,lU as ThumbUpIcon,BE as Toast,JY as ToastContext,tZ as ToastProvider,WO as TooltipAnchor,DW as TrashIcon,YW as UserIcon,pU as VectorIcon,GW as VolumeIcon,XW as VolumeMuteIcon,uU as XAIcon,sn as applyFontSize,gh as buttonVariants,Ow as chatDirectionAtom,an as cn,Lw as fontSizeAtom,ln as getInitialTheme,Iw as langAtom,Dw as toastState,ny as useCombobox,iy as useDelayedRender,ry as useLocalize,oy as useMediaQuery,jL as useMultiSearch,ay as useOnClickOutside,Vw as useToast,eZ as useToastContext};
39
+ */jr=Or,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}jr.exports?(t.default=t,jr.exports=t):window.classNames=t}();var Br=Un(Or.exports),Fr={ENTER:13,UP:38,DOWN:40};var _r,Hr="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,$r=function(e,t){var n=r.useRef(!0);Hr(function(){return e(n.current)},t),Hr(function(){return n.current=!1,function(){n.current=!0}},[])},Wr=function(e,t){$r(function(t){if(!t)return e()},t)},Ur={},Xr=Symbol.for("react.element"),Yr=Symbol.for("react.portal"),Zr=Symbol.for("react.fragment"),Gr=Symbol.for("react.strict_mode"),qr=Symbol.for("react.profiler"),Kr=Symbol.for("react.provider"),Qr=Symbol.for("react.context"),Jr=Symbol.for("react.server_context"),ea=Symbol.for("react.forward_ref"),ta=Symbol.for("react.suspense"),na=Symbol.for("react.suspense_list"),ra=Symbol.for("react.memo"),aa=Symbol.for("react.lazy"),oa=Symbol.for("react.offscreen");function ia(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Xr:switch(e=e.type){case Zr:case qr:case Gr:case ta:case na:return e;default:switch(e=e&&e.$$typeof){case Jr:case Qr:case ea:case aa:case ra:case Kr:return e;default:return t}}case Yr:return t}}}_r=Symbol.for("react.module.reference"),Ur.ContextConsumer=Qr,Ur.ContextProvider=Kr,Ur.Element=Xr,Ur.ForwardRef=ea,Ur.Fragment=Zr,Ur.Lazy=aa,Ur.Memo=ra,Ur.Portal=Yr,Ur.Profiler=qr,Ur.StrictMode=Gr,Ur.Suspense=ta,Ur.SuspenseList=na,Ur.isAsyncMode=function(){return!1},Ur.isConcurrentMode=function(){return!1},Ur.isContextConsumer=function(e){return ia(e)===Qr},Ur.isContextProvider=function(e){return ia(e)===Kr},Ur.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Xr},Ur.isForwardRef=function(e){return ia(e)===ea},Ur.isFragment=function(e){return ia(e)===Zr},Ur.isLazy=function(e){return ia(e)===aa},Ur.isMemo=function(e){return ia(e)===ra},Ur.isPortal=function(e){return ia(e)===Yr},Ur.isProfiler=function(e){return ia(e)===qr},Ur.isStrictMode=function(e){return ia(e)===Gr},Ur.isSuspense=function(e){return ia(e)===ta},Ur.isSuspenseList=function(e){return ia(e)===na},Ur.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Zr||e===qr||e===Gr||e===ta||e===na||e===oa||"object"==typeof e&&null!==e&&(e.$$typeof===aa||e.$$typeof===ra||e.$$typeof===Kr||e.$$typeof===Qr||e.$$typeof===ea||e.$$typeof===_r||void 0!==e.getModuleId)},Ur.typeOf=ia,Number(h.split(".")[0]);var sa=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"===Er(e)&&e&&"current"in e&&(e.current=t)}(t,e)})}};function la(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ca(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,zr(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function da(){return"function"==typeof BigInt}function ua(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function ha(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",i=a[1]||"0";"0"===o&&"0"===i&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:i,fullStr:"".concat(s).concat(r)}}function pa(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ma(e){var t=String(e);if(pa(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(".")&&ga(t)?t.length-t.indexOf(".")-1:0}function fa(e){var t=String(e);if(pa(e)){if(e>Number.MAX_SAFE_INTEGER)return String(da()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(da()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(ma(t))}return ha(t).fullStr}function ga(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 va=function(){function e(t){if(la(this,e),Rr(this,"origin",""),Rr(this,"negative",void 0),Rr(this,"integer",void 0),Rr(this,"decimal",void 0),Rr(this,"decimalLen",void 0),Rr(this,"empty",void 0),Rr(this,"nan",void 0),ua(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(pa(n)&&(n=Number(n)),ga(n="string"==typeof n?n:fa(n))){var r=ha(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 ca(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(),i=r(a),s=ha(o),l=s.negativeStr,c=s.trimStr,d="".concat(l).concat(c.padStart(i+1,"0"));return new e("".concat(d.slice(0,-i),".").concat(d.slice(-i)))}},{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()?"":ha("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),wa=function(){function e(t){la(this,e),Rr(this,"origin",""),Rr(this,"number",void 0),Rr(this,"empty",void 0),ua(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return ca(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(ma(this.number),ma(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(ma(this.number),ma(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()?"":fa(this.number):this.origin}}]),e}();function ya(e){return da()?new va(e):new wa(e)}function ba(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var a=ha(e),o=a.negativeStr,i=a.integerStr,s=a.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(i);if(n>=0){var d=Number(s[n]);return d>=5&&!r?ba(ya(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-d)).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 xa=function(){var e=Ir(d(!1),2),t=e[0],n=e[1];return $r(function(){n(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))}())},[]),t};function ka(e){var t=e.prefixCls,n=e.upNode,a=e.downNode,o=e.upDisabled,i=e.downDisabled,s=e.onStep,l=r.useRef(),c=r.useRef();c.current=s;var d=function(e,t){e.preventDefault(),c.current(t),l.current=setTimeout(function e(){c.current(t),l.current=setTimeout(e,200)},600)},u=function(){clearTimeout(l.current)};if(r.useEffect(function(){return u},[]),xa())return null;var h="".concat(t,"-handler"),p=Br(h,"".concat(h,"-up"),Rr({},"".concat(h,"-up-disabled"),o)),m=Br(h,"".concat(h,"-down"),Rr({},"".concat(h,"-down-disabled"),i)),f={unselectable:"on",role:"button",onMouseUp:u,onMouseLeave:u};return r.createElement("div",{className:"".concat(h,"-wrap")},r.createElement("span",Ar({},f,{onMouseDown:function(e){d(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:p}),n||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),r.createElement("span",Ar({},f,{onMouseDown:function(e){d(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:m}),a||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Ca(e){var t="number"==typeof e?fa(e):ha(e).fullStr;return t.includes(".")?ha(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Na={};function Sa(e,t){}function Pa(e,t){}function Ma(e,t,n){t||Na[n]||(e(!1,n),Na[n]=!0)}function La(e,t){Ma(Sa,e,t)}La.preMessage=function(e){},La.resetWarned=function(){Na={}},La.noteOnce=function(e,t){Ma(Pa,e,t)};var Ta=function(e){return+setTimeout(e,16)},Aa=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ta=function(e){return window.requestAnimationFrame(e)},Aa=function(e){return window.cancelAnimationFrame(e)});var Ea=0,za=new Map;function Ra(e){za.delete(e)}var Va=function(e){var t=Ea+=1;return function n(r){if(0===r)Ra(t),e();else{var a=Ta(function(){n(r-1)});za.set(t,a)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Va.cancel=function(e){var t=za.get(e);return Ra(e),Aa(t)};var Ia=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Da=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},ja=function(e){var t=ya(e);return t.isInvalidate()?null:t},Oa=r.forwardRef(function(e,t){var n,a=e.prefixCls,o=void 0===a?"rc-input-number":a,l=e.className,c=e.style,d=e.min,u=e.max,h=e.step,p=void 0===h?1:h,m=e.defaultValue,f=e.value,g=e.disabled,v=e.readOnly,w=e.upHandler,y=e.downHandler,b=e.keyboard,x=e.controls,k=void 0===x||x,C=e.stringMode,N=e.parser,S=e.formatter,P=e.precision,M=e.decimalSeparator,L=e.onChange,T=e.onInput,A=e.onPressEnter,E=e.onStep,z=function(e,t){if(null==e)return{};var n,r,a=Dr(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,Ia),R="".concat(o,"-input"),V=r.useRef(null),I=Ir(r.useState(!1),2),D=I[0],j=I[1],O=r.useRef(!1),B=r.useRef(!1),F=r.useRef(!1),_=Ir(r.useState(function(){return ya(null!=f?f:m)}),2),H=_[0],$=_[1];var W=r.useCallback(function(e,t){if(!t)return P>=0?P:Math.max(ma(e),ma(p))},[P,p]),U=r.useCallback(function(e){var t=String(e);if(N)return N(t);var n=t;return M&&(n=n.replace(M,".")),n.replace(/[^\w.-]+/g,"")},[N,M]),X=r.useRef(""),Y=r.useCallback(function(e,t){if(S)return S(e,{userTyping:t,input:String(X.current)});var n="number"==typeof e?fa(e):e;if(!t){var r=W(n,t);if(ga(n)&&(M||r>=0))n=ba(n,M||".",r)}return n},[S,W,M]),Z=Ir(r.useState(function(){var e=null!=m?m:f;return H.isInvalidate()&&["string","number"].includes(Er(e))?Number.isNaN(e)?"":e:Y(H.toString(),!1)}),2),G=Z[0],q=Z[1];function K(e,t){q(Y(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}X.current=G;var Q,J,ee,te,ne,re=r.useMemo(function(){return ja(u)},[u,P]),ae=r.useMemo(function(){return ja(d)},[d,P]),oe=r.useMemo(function(){return!(!re||!H||H.isInvalidate())&&re.lessEquals(H)},[re,H]),ie=r.useMemo(function(){return!(!ae||!H||H.isInvalidate())&&H.lessEquals(ae)},[ae,H]),se=(Q=V.current,J=D,ee=i(null),[function(){try{var e=Q.selectionStart,t=Q.selectionEnd,n=Q.value,r=n.substring(0,e),a=n.substring(t);ee.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:a}}catch(e){}},function(){if(Q&&ee.current&&J)try{var e=Q.value,t=ee.current,n=t.beforeTxt,r=t.afterTxt,a=t.start,o=e.length;if(e.endsWith(r))o=e.length-ee.current.afterTxt.length;else if(e.startsWith(n))o=n.length;else{var i=n[a-1],s=e.indexOf(i,a-1);-1!==s&&(o=s+1)}Q.setSelectionRange(o,o)}catch(e){La(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),le=Ir(se,2),ce=le[0],de=le[1],ue=function(e){return re&&!e.lessEquals(re)?re:ae&&!ae.lessEquals(e)?ae:null},he=function(e){return!ue(e)},pe=function(e,t){var n,r=e,a=he(r)||r.isEmpty();if(r.isEmpty()||t||(r=ue(r)||r,a=!0),!v&&!g&&a){var o=r.toString(),i=W(o,t);return i>=0&&(r=ya(ba(o,".",i)),he(r)||(r=ya(ba(o,".",i,!0)))),r.equals(H)||(n=r,void 0===f&&$(n),null==L||L(r.isEmpty()?null:Da(C,r)),void 0===f&&K(r,t)),r}return H},me=(te=i(0),ne=function(){Va.cancel(te.current)},s(function(){return ne},[]),function(e){ne(),te.current=Va(function(){e()})}),fe=function e(t){if(ce(),q(t),!B.current){var n=ya(U(t));n.isNaN()||pe(n,!0)}null==T||T(t),me(function(){var n=t;N||(n=t.replace(/。/g,".")),n!==t&&e(n)})},ge=function(e){var t;if(!(e&&oe||!e&&ie)){O.current=!1;var n=ya(F.current?Ca(p):p);e||(n=n.negate());var r=(H||ya(0)).add(n.toString()),a=pe(r,!1);null==E||E(Da(C,a),{offset:F.current?Ca(p):p,type:e?"up":"down"}),null===(t=V.current)||void 0===t||t.focus()}},ve=function(e){var t=ya(U(G)),n=t;n=t.isNaN()?H:pe(t,e),void 0!==f?K(H,!1):n.isNaN()||K(n,!1)};return Wr(function(){H.isInvalidate()||K(H,!1)},[P]),Wr(function(){var e=ya(f);$(e);var t=ya(U(G));e.equals(t)&&O.current&&!S||K(e,O.current)},[f]),Wr(function(){S&&de()},[G]),r.createElement("div",{className:Br(o,l,(n={},Rr(n,"".concat(o,"-focused"),D),Rr(n,"".concat(o,"-disabled"),g),Rr(n,"".concat(o,"-readonly"),v),Rr(n,"".concat(o,"-not-a-number"),H.isNaN()),Rr(n,"".concat(o,"-out-of-range"),!H.isInvalidate()&&!he(H)),n)),style:c,onFocus:function(){j(!0)},onBlur:function(){ve(!1),j(!1),O.current=!1},onKeyDown:function(e){var t=e.which,n=e.shiftKey;O.current=!0,F.current=!!n,t===Fr.ENTER&&(B.current||(O.current=!1),ve(!1),null==A||A(e)),!1!==b&&!B.current&&[Fr.UP,Fr.DOWN].includes(t)&&(ge(Fr.UP===t),e.preventDefault())},onKeyUp:function(){O.current=!1,F.current=!1},onCompositionStart:function(){B.current=!0},onCompositionEnd:function(){B.current=!1,fe(V.current.value)},onBeforeInput:function(){O.current=!0}},k&&r.createElement(ka,{prefixCls:o,upNode:w,downNode:y,upDisabled:oe,downDisabled:ie,onStep:ge}),r.createElement("div",{className:"".concat(R,"-wrap")},r.createElement("input",Ar({autoComplete:"off",role:"spinbutton","aria-valuemin":d,"aria-valuemax":u,"aria-valuenow":H.isInvalidate()?null:H.toString(),step:p},z,{ref:sa(V,t),className:R,value:G,onChange:function(e){fe(e.target.value)},disabled:g,readOnly:v}))))});Oa.displayName="InputNumber";const Ba=r.forwardRef(({className:t,...n},r)=>e(Oa,{className:wt("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}));Ba.displayName="Input";const Fa=r.forwardRef(({className:t="",...n},r)=>e(se.Root,{ref:r,...n,className:wt("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)}));Fa.displayName=se.Root.displayName;const _a=r.forwardRef(({children:t,triggerRef:n,triggerRefs:r,onOpenChange:a,...o},i)=>e(ee.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})),Ha=ee.Trigger,$a=ee.Portal,Wa=ee.Close,Ua=r.forwardRef(({className:t,...n},r)=>e(ee.Overlay,{ref:r,className:wt("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}));Ua.displayName=ee.Overlay.displayName;const Xa=r.forwardRef(({className:n,overlayClassName:r,showCloseButton:a=!0,children:o,...i},s)=>t($a,{children:[e(Ua,{className:r}),t(ee.Content,{ref:s,className:wt("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%]",n),...i,children:[o,a&&t(ee.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(an,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Close"})]})]})]}));Xa.displayName=ee.Content.displayName;const Ya=({className:t,...n})=>e("div",{className:wt("flex flex-col space-y-1.5 text-center sm:text-left",t),...n});Ya.displayName="DialogHeader";const Za=({className:t,...n})=>e("div",{className:wt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});Za.displayName="DialogFooter";const Ga=r.forwardRef(({className:t,...n},r)=>e(ee.Title,{ref:r,className:wt("text-lg font-semibold leading-none tracking-tight",t),...n}));Ga.displayName=ee.Title.displayName;const qa=r.forwardRef(({className:t,...n},r)=>e(ee.Description,{ref:r,className:wt("text-sm text-muted-foreground",t),...n}));qa.displayName=ee.Description.displayName;const Ka=({className:t=""})=>e("span",{children:e("div",{className:wt("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:"?"})}),Qa=r.forwardRef(({className:n,onDoubleClick:r,...a},o)=>t(le.Root,{ref:o,...a,className:wt("relative flex w-full cursor-pointer touch-none select-none items-center",n),onDoubleClick:r,children:[e(le.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e(le.Range,{className:"absolute h-full bg-primary"})}),e(le.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"})]}));Qa.displayName=le.Root.displayName;const Ja=r.forwardRef(({className:t="",orientation:n="horizontal",decorative:r=!0,...a},o)=>e(ce.Root,{ref:o,...a,decorative:r,orientation:n,className:wt("shrink-0 bg-border-light","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",t)}));Ja.displayName=ce.Root.displayName;const eo=({label:n,labelClassName:r,placeholder:o="Select an option",options:i,className:s,value:l,onChange:c,onBlur:d})=>{const u=e=>null!=e&&"object"==typeof e&&"value"in e,[h,p]=a.useState(!1),[m,f]=a.useState(l),[g,v]=a.useState(!1);a.useEffect(()=>{f(l)},[l]);const w=e=>{f(e),c(e)};return t(R.ComboboxProvider,{value:m,setValue:w,children:[null!=n&&e(R.ComboboxLabel,{className:wt("mb-2 block text-sm font-medium text-text-primary",r??""),children:n}),e("div",{className:wt("relative",g?"rounded-md ring-2 ring-ring-primary":""),children:e(R.Combobox,{placeholder:o,className:wt("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=>w(e.target.value),onBlur:()=>{v(!1),d()},onFocusVisible:()=>{v(!0),p(!0)},onMouseDown:()=>{v(!1)}})}),e(R.ComboboxPopover,{gutter:4,sameWidth:!0,open:h,onClose:()=>p(!1),className:wt("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((n,r)=>t(R.ComboboxItem,{className:wt("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(n)?`${n.value??""}`:n,children:[u(n)&&null!=n.icon&&e("span",{className:"mr-2 flex-shrink-0",children:n.icon}),u(n)?n.label:n]},r))})]})};function to({className:t,...n}){return e("div",{className:wt("animate-pulse rounded-md bg-surface-tertiary opacity-50 dark:opacity-25",t),...n})}const no=r.forwardRef(({className:t,...n},r)=>e(de.Root,{className:wt("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(de.Thumb,{className:wt("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")})}));no.displayName=de.Root.displayName;const ro=r.forwardRef(({className:t,...n},r)=>e("div",{className:"relative w-full overflow-auto",children:e("table",{ref:r,className:wt("w-full caption-bottom text-sm",t),...n})}));ro.displayName="Table";const ao=r.forwardRef(({className:t,...n},r)=>e("thead",{ref:r,className:wt("[&_tr]:border-b",t),...n}));ao.displayName="TableHeader";const oo=r.forwardRef(({className:t,...n},r)=>e("tbody",{ref:r,className:wt("[&_tr:last-child]:border-0",t),...n}));oo.displayName="TableBody";const io=r.forwardRef(({className:t,...n},r)=>e("tfoot",{ref:r,className:wt("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...n}));io.displayName="TableFooter";const so=r.forwardRef(({className:t,...n},r)=>e("tr",{ref:r,className:wt("border-b border-border-light transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...n}));so.displayName="TableRow";const lo=r.forwardRef(({className:t,...n},r)=>e("th",{ref:r,className:wt("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...n}));lo.displayName="TableHead";const co=r.forwardRef(({className:t,...n},r)=>e("td",{ref:r,className:wt("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...n}));co.displayName="TableCell";const uo=r.forwardRef(({className:t,...n},r)=>e("caption",{ref:r,className:wt("mt-4 text-sm text-muted-foreground",t),...n}));uo.displayName="TableCaption";const ho=ue.Root,po=r.forwardRef(({className:t="",...n},r)=>e(ue.List,{ref:r,className:wt("inline-flex items-center justify-center rounded-md bg-surface-primary",t),...n}));po.displayName=ue.List.displayName;const mo=r.forwardRef(({className:t="",...n},r)=>e(ue.Trigger,{className:wt("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}));mo.displayName=ue.Trigger.displayName;const fo=r.forwardRef(({className:t="",...n},r)=>e(ue.Content,{className:wt("mt-2 rounded-md p-6",t),...n,ref:r}));fo.displayName=ue.Content.displayName;const go=r.forwardRef(({CancelButton:r,LabelNode:a,label:o,onRemove:i,className:s="",labelClassName:l="",...c},d)=>t("div",{ref:d,...c,className:wt("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",s),children:[t("div",{className:wt("ml-1 whitespace-pre-wrap px-2 py-1",l),children:[a?t(n,{children:[a," "]}):null,o]}),r||i&&e("button",{onClick:e=>{e.stopPropagation(),i(e)},className:"rounded-full bg-green-600/50","aria-label":`Remove ${o}`,children:e(an,{className:"m-[1.5px] p-1"})})]}));go.displayName="Tag";const vo=r.memo(go),wo=r.forwardRef(({className:t="",...n},r)=>e("textarea",{className:wt("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}));wo.displayName="Textarea";var yo=p,bo=function(e,t){"function"!=typeof e?e.current=t:e(t)},xo={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},ko=function(e){Object.keys(xo).forEach(function(t){e.style.setProperty(t,xo[t],"important")})},Co=null,No=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var So=function(){},Po=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],Mo=!!document.documentElement.currentStyle,Lo=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},{})}(Po,t),r=n.boxSizing;return""===r?null:(Mo&&"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 To(e,t,n){var o,i,s=(o=n,i=a.useRef(o),yo(function(){i.current=o}),i);r.useLayoutEffect(function(){var n=function(e){return s.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var Ao=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Eo=function(e,t){var n=e.cacheMeasurements,o=e.maxRows,i=e.minRows,s=e.onChange,l=void 0===s?So:s,c=e.onHeightChange,d=void 0===c?So:c,u=Dr(e,Ao),h=void 0!==u.value,p=r.useRef(null),m=function(e,t){var n=a.useRef();return a.useCallback(function(r){e.current=r,n.current&&bo(n.current,null),n.current=t,t&&bo(t,r)},[t])}(p,t),f=r.useRef(0),g=r.useRef(),v=function(){var e=p.current,t=n&&g.current?g.current:Lo(e);if(t){g.current=t;var r=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),Co||((Co=document.createElement("textarea")).setAttribute("tabindex","-1"),Co.setAttribute("aria-hidden","true"),ko(Co)),null===Co.parentNode&&document.body.appendChild(Co);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,s=i.boxSizing;Object.keys(i).forEach(function(e){var t=e;Co.style[t]=i[t]}),ko(Co),Co.value=t;var l=No(Co,e);Co.value=t,l=No(Co,e),Co.value="x";var c=Co.scrollHeight-a,d=c*n;"border-box"===s&&(d=d+a+o),l=Math.max(d,l);var u=c*r;return"border-box"===s&&(u=u+a+o),[l=Math.min(u,l),c]}(t,e.value||e.placeholder||"x",i,o),a=r[0],s=r[1];f.current!==a&&(f.current=a,e.style.setProperty("height",a+"px","important"),d(a,{rowHeight:s}))}};return r.useLayoutEffect(v),function(e,t){To(document.body,"reset",function(n){e.current.form===n.target&&t(n)})}(p,function(){if(!h){var e=p.current.value;requestAnimationFrame(function(){var t=p.current;t&&e!==t.value&&v()})}}),To(window,"resize",v),function(e){To(document.fonts,"loadingdone",e)}(v),r.createElement("textarea",Ar({},u,{onChange:function(e){h||v(),l(e)},ref:m}))},zo=r.forwardRef(Eo);const Ro=o((t,n)=>{const[,r]=d(!1),a=ae(Bn).toLowerCase();return p(()=>r(!0),[]),e(zo,{dir:a,...t,ref:n})});function Vo(){const{toast:n,onOpenChange:r}=Wn(),a={[jn.INFO]:"border-gray-500 bg-gray-500",[jn.SUCCESS]:"border-green-500 bg-green-500",[jn.WARNING]:"border-orange-500 bg-orange-500",[jn.ERROR]:"border-red-500 bg-red-500"};return e(he.Root,{open:n.open,onOpenChange:r,className:"toast-root",style:{height:"74px",marginBottom:"0px"},children:e("div",{className:"w-full p-1 text-center md:w-auto md:text-justify",children:t("div",{className:`alert-root pointer-events-auto inline-flex flex-row gap-2 rounded-md border px-3 py-2 text-white ${a[n.severity]}`,children:[n.showIcon&&e("div",{className:"mt-1 flex-shrink-0 flex-grow-0",children:t("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("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("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),e(he.Description,{className:"flex-1 justify-center gap-2",children:e("div",{className:"whitespace-pre-wrap text-left",children:n.message})})]})})})}const Io=c({});function Do(e){const t=i(null);return null===t.current&&(t.current=e()),t.current}const jo="undefined"!=typeof window,Oo=jo?p:s,Bo=c(null);function Fo(e,t){-1===e.indexOf(t)&&e.push(t)}function _o(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ho=(e,t,n)=>n>t?t:n<e?e:n;const $o={},Wo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Uo(e){return"object"==typeof e&&null!==e}const Xo=e=>/^0[^.\s]+$/u.test(e);function Yo(e){let t;return()=>(void 0===t&&(t=e()),t)}const Zo=e=>e,Go=(e,t)=>n=>t(e(n)),qo=(...e)=>e.reduce(Go),Ko=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r};class Qo{constructor(){this.subscriptions=[]}add(e){return Fo(this.subscriptions,e),()=>_o(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 Jo=e=>1e3*e,ei=e=>e/1e3;function ti(e,t){return t?e*(1e3/t):0}const ni=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function ri(e,t,n,r){if(e===t&&n===r)return Zo;const a=t=>function(e,t,n,r,a){let o,i,s=0;do{i=t+(n-t)/2,o=ni(i,r,a)-e,o>0?n=i:t=i}while(Math.abs(o)>1e-7&&++s<12);return i}(t,0,1,e,n);return e=>0===e||1===e?e:ni(a(e),t,r)}const ai=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oi=e=>t=>1-e(1-t),ii=ri(.33,1.53,.69,.99),si=oi(ii),li=ai(si),ci=e=>(e*=2)<1?.5*si(e):.5*(2-Math.pow(2,-10*(e-1))),di=e=>1-Math.sin(Math.acos(e)),ui=oi(di),hi=ai(di),pi=ri(.42,0,1,1),mi=ri(0,0,.58,1),fi=ri(.42,0,.58,1),gi=e=>Array.isArray(e)&&"number"==typeof e[0],vi={linear:Zo,easeIn:pi,easeInOut:fi,easeOut:mi,circIn:di,circInOut:hi,circOut:ui,backIn:si,backInOut:li,backOut:ii,anticipate:ci},wi=e=>{if(gi(e)){e.length;const[t,n,r,a]=e;return ri(t,n,r,a)}return"string"==typeof e?vi[e]:e},yi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function bi(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,i=yi.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,a=!1;const o=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function s(t){o.has(t)&&(l.schedule(t),e()),t(i)}const l={schedule:(e,a=!1,i=!1)=>{const s=i&&r?t:n;return a&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{i=e,r?a=!0:(r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,a&&(a=!1,l.process(e)))}};return l}(o),e),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:p,postRender:m}=i,f=()=>{const o=$o.useManualTiming?a.timestamp:performance.now();n=!1,$o.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(o-a.timestamp,40),1)),a.timestamp=o,a.isProcessing=!0,s.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:yi.reduce((t,o)=>{const s=i[o];return t[o]=(t,o=!1,i=!1)=>(n||(n=!0,r=!0,a.isProcessing||e(f)),s.schedule(t,o,i)),t},{}),cancel:e=>{for(let t=0;t<yi.length;t++)i[yi[t]].cancel(e)},state:a,steps:i}}const{schedule:xi,cancel:ki,state:Ci,steps:Ni}=bi("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Zo,!0);let Si;function Pi(){Si=void 0}const Mi={now:()=>(void 0===Si&&Mi.set(Ci.isProcessing||$o.useManualTiming?Ci.timestamp:performance.now()),Si),set:e=>{Si=e,queueMicrotask(Pi)}},Li=e=>t=>"string"==typeof t&&t.startsWith(e),Ti=Li("--"),Ai=Li("var(--"),Ei=e=>!!Ai(e)&&zi.test(e.split("/*")[0].trim()),zi=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ri={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Vi={...Ri,transform:e=>Ho(0,1,e)},Ii={...Ri,default:1},Di=e=>Math.round(1e5*e)/1e5,ji=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Oi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Bi=(e,t)=>n=>Boolean("string"==typeof n&&Oi.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),Fi=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[a,o,i,s]=r.match(ji);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},_i={...Ri,transform:e=>Math.round((e=>Ho(0,255,e))(e))},Hi={test:Bi("rgb","red"),parse:Fi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+_i.transform(e)+", "+_i.transform(t)+", "+_i.transform(n)+", "+Di(Vi.transform(r))+")"};const $i={test:Bi("#"),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:Hi.transform},Wi=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ui=Wi("deg"),Xi=Wi("%"),Yi=Wi("px"),Zi=Wi("vh"),Gi=Wi("vw"),qi=(()=>({...Xi,parse:e=>Xi.parse(e)/100,transform:e=>Xi.transform(100*e)}))(),Ki={test:Bi("hsl","hue"),parse:Fi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xi.transform(Di(t))+", "+Xi.transform(Di(n))+", "+Di(Vi.transform(r))+")"},Qi={test:e=>Hi.test(e)||$i.test(e)||Ki.test(e),parse:e=>Hi.test(e)?Hi.parse(e):Ki.test(e)?Ki.parse(e):$i.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Hi.transform(e):Ki.transform(e),getAnimatableNone:e=>{const t=Qi.parse(e);return t.alpha=0,Qi.transform(t)}},Ji=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const es="number",ts="color",ns=/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 rs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const i=t.replace(ns,e=>(Qi.test(e)?(r.color.push(o),a.push(ts),n.push(Qi.parse(e))):e.startsWith("var(")?(r.var.push(o),a.push("var"),n.push(e)):(r.number.push(o),a.push(es),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:i,indexes:r,types:a}}function as(e){return rs(e).values}function os(e){const{split:t,types:n}=rs(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===es?Di(e[o]):t===ts?Qi.transform(e[o]):e[o]}return a}}const is=e=>"number"==typeof e?0:Qi.test(e)?Qi.getAnimatableNone(e):e;const ss={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(ji)?.length||0)+(e.match(Ji)?.length||0)>0},parse:as,createTransformer:os,getAnimatableNone:function(e){const t=as(e);return os(e)(t.map(is))}};function ls(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 cs(e,t){return n=>n>0?t:e}const ds=(e,t,n)=>e+(t-e)*n,us=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},hs=[$i,Hi,Ki];function ps(e){const t=(e=>hs.find(t=>t.test(e)))(e);if(!Boolean(t))return!1;let n=t.parse(e);return t===Ki&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let a=0,o=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=ls(s,r,e+1/3),o=ls(s,r,e),i=ls(s,r,e-1/3)}else a=o=i=n;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*i),alpha:r}}(n)),n}const ms=(e,t)=>{const n=ps(e),r=ps(t);if(!n||!r)return cs(e,t);const a={...n};return e=>(a.red=us(n.red,r.red,e),a.green=us(n.green,r.green,e),a.blue=us(n.blue,r.blue,e),a.alpha=ds(n.alpha,r.alpha,e),Hi.transform(a))},fs=new Set(["none","hidden"]);function gs(e,t){return n=>ds(e,t,n)}function vs(e){return"number"==typeof e?gs:"string"==typeof e?Ei(e)?cs:Qi.test(e)?ms:bs:Array.isArray(e)?ws:"object"==typeof e?Qi.test(e)?ms:ys:cs}function ws(e,t){const n=[...e],r=n.length,a=e.map((e,n)=>vs(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}}function ys(e,t){const n={...e,...t},r={};for(const a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=vs(e[a])(e[a],t[a]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const bs=(e,t)=>{const n=ss.createTransformer(t),r=rs(e),a=rs(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?fs.has(e)&&!a.values.length||fs.has(t)&&!r.values.length?function(e,t){return fs.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):qo(ws(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],i=e.indexes[o][r[o]],s=e.values[i]??0;n[a]=s,r[o]++}return n}(r,a),a.values),n):cs(e,t)};function xs(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return ds(e,t,n);return vs(e)(e,t)}const ks=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>xi.update(t,e),stop:()=>ki(t),now:()=>Ci.isProcessing?Ci.timestamp:Mi.now()}},Cs=(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)})`},Ns=2e4;function Ss(e){let t=0;let n=e.next(t);for(;!n.done&&t<Ns;)t+=50,n=e.next(t);return t>=Ns?1/0:t}function Ps(e,t,n){const r=Math.max(t-5,0);return ti(n-e(r),t-r)}const Ms=100,Ls=10,Ts=1,As=0,Es=800,zs=.3,Rs=.3,Vs={granular:.01,default:2},Is={granular:.005,default:.5},Ds=.01,js=10,Os=.05,Bs=1,Fs=.001;function _s({duration:e=Es,bounce:t=zs,velocity:n=As,mass:r=Ts}){let a,o,i=1-t;i=Ho(Os,Bs,i),e=Ho(Ds,js,ei(e)),i<1?(a=t=>{const r=t*i,a=r*e,o=r-n,s=$s(t,i),l=Math.exp(-a);return Fs-o/s*l},o=t=>{const r=t*i*e,o=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=$s(Math.pow(t,2),i);return(-a(t)+Fs>0?-1:1)*((o-s)*l)/c}):(a=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Hs;n++)r-=e(r)/t(r);return r}(a,o,5/e);if(e=Jo(e),isNaN(s))return{stiffness:Ms,damping:Ls,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}const Hs=12;function $s(e,t){return e*Math.sqrt(1-t*t)}const Ws=["duration","bounce"],Us=["stiffness","damping","mass"];function Xs(e,t){return t.some(t=>void 0!==e[t])}function Ys(e=Rs,t=zs){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const o=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],s={done:!1,value:o},{stiffness:l,damping:c,mass:d,duration:u,velocity:h,isResolvedFromDuration:p}=function(e){let t={velocity:As,stiffness:Ms,damping:Ls,mass:Ts,isResolvedFromDuration:!1,...e};if(!Xs(e,Us)&&Xs(e,Ws))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),a=r*r,o=2*Ho(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Ts,stiffness:a,damping:o}}else{const n=_s(e);t={...t,...n,mass:Ts},t.isResolvedFromDuration=!0}return t}({...n,velocity:-ei(n.velocity||0)}),m=h||0,f=c/(2*Math.sqrt(l*d)),g=i-o,v=ei(Math.sqrt(l/d)),w=Math.abs(g)<5;let y;if(r||(r=w?Vs.granular:Vs.default),a||(a=w?Is.granular:Is.default),f<1){const e=$s(v,f);y=t=>{const n=Math.exp(-f*v*t);return i-n*((m+f*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===f)y=e=>i-Math.exp(-v*e)*(g+(m+v*g)*e);else{const e=v*Math.sqrt(f*f-1);y=t=>{const n=Math.exp(-f*v*t),r=Math.min(e*t,300);return i-n*((m+f*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const b={calculatedDuration:p&&u||null,next:e=>{const t=y(e);if(p)s.done=e>=u;else{let n=0===e?m:0;f<1&&(n=0===e?Jo(m):Ps(y,e,t));const o=Math.abs(n)<=r,l=Math.abs(i-t)<=a;s.done=o&&l}return s.value=s.done?i:t,s},toString:()=>{const e=Math.min(Ss(b),Ns),t=Cs(t=>b.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return b}function Zs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:i,min:s,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=n*t;const f=u+m,g=void 0===i?f:i(f);g!==f&&(m=g-u);const v=e=>-m*Math.exp(-e/r),w=e=>g+v(e),y=e=>{const t=v(e),n=w(e);h.done=Math.abs(t)<=c,h.value=h.done?g:n};let b,x;const k=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(h.value)&&(b=e,x=Ys({keyframes:[h.value,p(h.value)],velocity:Ps(w,e,h.value),damping:a,stiffness:o,restDelta:c,restSpeed:d}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==b||(t=!0,y(e),k(e)),void 0!==b&&e>=b?x.next(e-b):(!t&&y(e),h)}}}function Gs(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 i=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],a=n||$o.mix||xs,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]||Zo:t;o=qo(e,o)}r.push(o)}return r}(t,r,a),l=s.length,c=n=>{if(i&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const a=Ko(e[r],e[r+1],n);return s[r](a)};return n?t=>c(Ho(e[0],e[o-1],t)):c}function qs(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Ko(0,t,r);e.push(ds(n,1,a))}}(t,e.length-1),t}function Ks({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(wi):wi(r),o={done:!1,value:t[0]},i=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:qs(t),e),s=Gs(i,t,{ease:Array.isArray(a)?a:(l=t,c=a,l.map(()=>c||fi).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}Ys.applyToOptions=e=>{const t=function(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Ss(r),Ns);return{type:"keyframes",ease:e=>r.next(a*e).value/t,duration:ei(a)}}(e,100,Ys);return e.ease=t.ease,e.duration=Jo(t.duration),e.type="keyframes",e};const Qs=e=>null!==e;function Js(e,{repeat:t,repeatType:n="loop"},r,a=1){const o=e.filter(Qs),i=a<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}const el={decay:Zs,inertia:Zs,tween:Ks,keyframes:Ks,spring:Ys};function tl(e){"string"==typeof e.type&&(e.type=el[e.type])}class nl{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 rl=e=>e/100;class al extends nl{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!==Mi.now()&&this.tick(Mi.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;tl(e);const{type:t=Ks,repeat:n=0,repeatDelay:r=0,repeatType:a,velocity:o=0}=e;let{keyframes:i}=e;const s=t||Ks;s!==Ks&&"number"!=typeof i[0]&&(this.mixKeyframes=qo(rl,xs(i[0],i[1])),i=[0,100]);const l=s({...e,keyframes:i});"mirror"===a&&(this.mirroredGenerator=s({...e,keyframes:[...i].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=Ss(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:i,calculatedDuration:s}=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,y=n;if(d){const e=Math.min(this.currentTime,r)/i;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/i)):"mirror"===u&&(y=o)),w=Ho(0,1,n)*i}const b=v?{done:!1,value:c[0]}:y.next(w);a&&(b.value=a(b.value));let{done:x}=b;v||null===s||(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return k&&p!==Zs&&(b.value=Js(c,this.options,f,this.speed)),m&&m(b.value),k&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return ei(this.calculatedDuration)}get time(){return ei(this.currentTime)}set time(e){e=Jo(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(Mi.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=ei(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=ks,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(Mi.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 ol=e=>180*e/Math.PI,il=e=>{const t=ol(Math.atan2(e[1],e[0]));return ll(t)},sl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:il,rotateZ:il,skewX:e=>ol(Math.atan(e[1])),skewY:e=>ol(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ll=e=>((e%=360)<0&&(e+=360),e),cl=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dl=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ul={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cl,scaleY:dl,scale:e=>(cl(e)+dl(e))/2,rotateX:e=>ll(ol(Math.atan2(e[6],e[5]))),rotateY:e=>ll(ol(Math.atan2(-e[2],e[0]))),rotateZ:il,rotate:il,skewX:e=>ol(Math.atan(e[4])),skewY:e=>ol(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function hl(e){return e.includes("scale")?1:0}function pl(e,t){if(!e||"none"===e)return hl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=ul,a=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=sl,a=t}if(!a)return hl(t);const o=r[t],i=a[1].split(",").map(ml);return"function"==typeof o?o(i):i[o]}function ml(e){return parseFloat(e.trim())}const fl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gl=(()=>new Set(fl))(),vl=e=>e===Ri||e===Yi,wl=new Set(["x","y","z"]),yl=fl.filter(e=>!wl.has(e));const bl={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})=>pl(t,"x"),y:(e,{transform:t})=>pl(t,"y")};bl.translateX=bl.x,bl.translateY=bl.y;const xl=new Set;let kl=!1,Cl=!1,Nl=!1;function Sl(){if(Cl){const e=Array.from(xl).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 yl.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)})}Cl=!1,kl=!1,xl.forEach(e=>e.complete(Nl)),xl.clear()}function Pl(){xl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Cl=!0)})}class Ml{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?(xl.add(this),kl||(kl=!0,xi.read(Pl),xi.resolveKeyframes(Sl))):(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),xl.delete(this)}cancel(){"scheduled"===this.state&&(xl.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const Ll=Yo(()=>void 0!==window.ScrollTimeline),Tl={};function Al(e,t){const n=Yo(e);return()=>Tl[t]??n()}const El=Al(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),zl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Rl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zl([0,.65,.55,1]),circOut:zl([.55,0,1,.45]),backIn:zl([.31,.01,.66,-.59]),backOut:zl([.33,1.53,.69,.99])};function Vl(e,t){return e?"function"==typeof e?El()?Cs(e,t):"ease-out":gi(e)?zl(e):Array.isArray(e)?e.map(e=>Vl(e,t)||Rl.easeOut):Rl[e]:void 0}function Il(e,t,n,{delay:r=0,duration:a=300,repeat:o=0,repeatType:i="loop",ease:s="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const u=Vl(s,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"===i?"alternate":"normal"};c&&(h.pseudoElement=c);return e.animate(d,h)}function Dl(e){return"function"==typeof e&&"applyToOptions"in e}class jl extends nl{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:i,onComplete:s}=e;this.isPseudoElement=Boolean(a),this.allowFlatten=o,this.options=e,e.type;const l=function({type:e,...t}){return Dl(e)&&El()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=Il(t,n,r,l,a),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const e=Js(r,this.options,i,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 ei(Number(e))}get time(){return ei(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Jo(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&&Ll()?(this.animation.timeline=e,Zo):t(this)}}const Ol={anticipate:ci,backInOut:li,circInOut:hi};function Bl(e){"string"==typeof e.ease&&e.ease in Ol&&(e.ease=Ol[e.ease])}class Fl extends jl{constructor(e){Bl(e),tl(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 i=new al({...o,autoplay:!1}),s=Jo(this.finishedTime??this.time);t.setWithVelocity(i.sample(s-10).value,i.sample(s).value,10),i.stop()}}const _l=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!ss.test(e)&&"0"!==e||e.startsWith("url(")));const Hl=new Set(["opacity","clipPath","filter","transform"]),$l=Yo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class Wl extends nl{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:o="loop",keyframes:i,name:s,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Mi.now();const u={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:a,repeatType:o,name:s,motionValue:l,element:c,...d},h=c?.KeyframeResolver||Ml;this.keyframeResolver=new h(i,(e,t,n)=>this.onKeyframesResolved(e,t,u,!n),s,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:a,type:o,velocity:i,delay:s,isHandoff:l,onUpdate:c}=n;this.resolvedAt=Mi.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],i=_l(a,t),s=_l(o,t);return!(!i||!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||Dl(n))&&r)}(e,a,o,i)||(!$o.instantAnimations&&s||c?.(Js(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:i}=e,s=t?.owner?.current;if(!(s instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return $l()&&n&&Hl.has(n)&&("transform"!==n||!c)&&!l&&!r&&"mirror"!==a&&0!==o&&"inertia"!==i}(d)?new Fl({...d,element:d.motionValue.owner.current}):new al(d);u.finished.then(()=>this.notifyFinished()).catch(Zo),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(),Nl=!0,Pl(),Sl(),Nl=!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 Ul=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Xl(e,t,n=1){const[r,a]=function(e){const t=Ul.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 Wo(e)?parseFloat(e):e}return Ei(a)?Xl(a,t,n+1):a}function Yl(e,t){return e?.[t]??e?.default??e}const Zl=new Set(["width","height","top","left","right","bottom",...fl]),Gl=e=>t=>t.test(e),ql=[Ri,Yi,Xi,Ui,Gi,Zi,{test:e=>"auto"===e,parse:e=>e}],Kl=e=>ql.find(Gl(e));function Ql(e){return"number"==typeof e?0===e:null===e||("none"===e||"0"===e||Xo(e))}const Jl=new Set(["brightness","contrast","saturate","opacity"]);function ec(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ji)||[];if(!r)return e;const a=n.replace(r,"");let o=Jl.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const tc=/\b([a-z-]*)\(.*?\)/gu,nc={...ss,getAnimatableNone:e=>{const t=e.match(tc);return t?t.map(ec).join(" "):e}},rc={...Ri,transform:Math.round},ac={borderWidth:Yi,borderTopWidth:Yi,borderRightWidth:Yi,borderBottomWidth:Yi,borderLeftWidth:Yi,borderRadius:Yi,radius:Yi,borderTopLeftRadius:Yi,borderTopRightRadius:Yi,borderBottomRightRadius:Yi,borderBottomLeftRadius:Yi,width:Yi,maxWidth:Yi,height:Yi,maxHeight:Yi,top:Yi,right:Yi,bottom:Yi,left:Yi,padding:Yi,paddingTop:Yi,paddingRight:Yi,paddingBottom:Yi,paddingLeft:Yi,margin:Yi,marginTop:Yi,marginRight:Yi,marginBottom:Yi,marginLeft:Yi,backgroundPositionX:Yi,backgroundPositionY:Yi,...{rotate:Ui,rotateX:Ui,rotateY:Ui,rotateZ:Ui,scale:Ii,scaleX:Ii,scaleY:Ii,scaleZ:Ii,skew:Ui,skewX:Ui,skewY:Ui,distance:Yi,translateX:Yi,translateY:Yi,translateZ:Yi,x:Yi,y:Yi,z:Yi,perspective:Yi,transformPerspective:Yi,opacity:Vi,originX:qi,originY:qi,originZ:Yi},zIndex:rc,fillOpacity:Vi,strokeOpacity:Vi,numOctaves:rc},oc={...ac,color:Qi,backgroundColor:Qi,outlineColor:Qi,fill:Qi,stroke:Qi,borderColor:Qi,borderTopColor:Qi,borderRightColor:Qi,borderBottomColor:Qi,borderLeftColor:Qi,filter:nc,WebkitFilter:nc},ic=e=>oc[e];function sc(e,t){let n=ic(e);return n!==nc&&(n=ss),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lc=new Set(["auto","none","0"]);class cc extends Ml{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(),Ei(r))){const a=Xl(r,t.current);void 0!==a&&(e[n]=a),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Zl.has(n)||2!==e.length)return;const[r,a]=e,o=Kl(r),i=Kl(a);if(o!==i)if(vl(o)&&vl(i))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else bl[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||Ql(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&&!lc.has(t)&&rs(t).values.length&&(r=e[a]),a++}if(r&&n)for(const a of t)e[a]=sc(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=bl[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]=bl[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 dc=(e,t)=>t&&"number"==typeof e?t.transform(e):e;function uc(e){return Uo(e)&&"offsetHeight"in e}class hc{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=Mi.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=Mi.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 Qo);const n=this.events[e].add(t);return"change"===e?()=>{n(),xi.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=Mi.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ti(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 pc(e,t){return new hc(e,t)}const{schedule:mc}=bi(queueMicrotask,!1),fc={x:!1,y:!1};function gc(){return fc.x||fc.y}function vc(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 wc(e){return!("touch"===e.pointerType||gc())}const yc=(e,t)=>!!t&&(e===t||yc(e,t.parentElement)),bc=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,xc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const kc=new WeakSet;function Cc(e){return t=>{"Enter"===t.key&&e(t)}}function Nc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Sc(e){return bc(e)&&!gc()}function Pc(e,t,n={}){const[r,a,o]=vc(e,n),i=e=>{const r=e.currentTarget;if(!Sc(e))return;kc.add(r);const o=t(r,e),i=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),kc.has(r)&&kc.delete(r),Sc(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{i(e,r===window||r===document||n.useGlobalTarget||yc(r,e.target))},l=e=>{i(e,!1)};window.addEventListener("pointerup",s,a),window.addEventListener("pointercancel",l,a)};return r.forEach(e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",i,a),uc(e)&&(e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=Cc(()=>{if(kc.has(n))return;Nc(n,"down");const e=Cc(()=>{Nc(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>Nc(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,a)),t=e,xc.has(t.tagName)||-1!==t.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}function Mc(e){return Uo(e)&&"ownerSVGElement"in e}const Lc=e=>Boolean(e&&e.getVelocity),Tc=[...ql,Qi,ss],Ac=c({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Ec extends r.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=t.offsetParent,n=uc(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 zc({children:t,isPresent:n,anchorX:a,root:o}){const s=m(),l=i(null),c=i({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=f(Ac);return g(()=>{const{width:e,height:t,top:r,left:i,right:u}=c.current;if(n||!l.current||!e||!t)return;const h="left"===a?`left: ${i}`:`right: ${u}`;l.current.dataset.motionPopId=s;const p=document.createElement("style");d&&(p.nonce=d);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: ${r}px !important;\n }\n `),()=>{m.removeChild(p),m.contains(p)&&m.removeChild(p)}},[n]),e(Ec,{isPresent:n,childRef:l,sizeRef:c,children:r.cloneElement(t,{ref:l})})}const Rc=({children:t,initial:n,isPresent:a,onExitComplete:o,custom:i,presenceAffectsLayout:s,mode:l,anchorX:c,root:d})=>{const h=Do(Vc),p=m();let f=!0,g=u(()=>(f=!1,{id:p,initial:n,isPresent:a,custom:i,onExitComplete:e=>{h.set(e,!0);for(const e of h.values())if(!e)return;o&&o()},register:e=>(h.set(e,!1),()=>h.delete(e))}),[a,h,o]);return s&&f&&(g={...g}),u(()=>{h.forEach((e,t)=>h.set(t,!1))},[a]),r.useEffect(()=>{!a&&!h.size&&o&&o()},[a]),"popLayout"===l&&(t=e(zc,{isPresent:a,anchorX:c,root:d,children:t})),e(Bo.Provider,{value:g,children:t})};function Vc(){return new Map}function Ic(e=!0){const t=f(Bo);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,o=m();s(()=>{if(e)return a(o)},[e]);const i=v(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,i]:[!0]}const Dc=e=>e.key||"";function jc(e){const t=[];return w.forEach(e,e=>{y(e)&&t.push(e)}),t}const Oc=({children:t,custom:r,initial:a=!0,onExitComplete:o,presenceAffectsLayout:s=!0,mode:l="sync",propagate:c=!1,anchorX:h="left",root:p})=>{const[m,g]=Ic(c),v=u(()=>jc(t),[t]),w=c&&!m?[]:v.map(Dc),y=i(!0),b=i(v),x=Do(()=>new Map),[k,C]=d(v),[N,S]=d(v);Oo(()=>{y.current=!1,b.current=v;for(let e=0;e<N.length;e++){const t=Dc(N[e]);w.includes(t)?x.delete(t):!0!==x.get(t)&&x.set(t,!1)}},[N,w.length,w.join("-")]);const P=[];if(v!==k){let e=[...v];for(let t=0;t<N.length;t++){const n=N[t],r=Dc(n);w.includes(r)||(e.splice(t,0,n),P.push(n))}return"wait"===l&&P.length&&(e=P),S(jc(e)),C(v),null}const{forceRender:M}=f(Io);return e(n,{children:N.map(t=>{const n=Dc(t),i=!(c&&!m)&&(v===N||w.includes(n));return e(Rc,{isPresent:i,initial:!(y.current&&!a)&&void 0,custom:r,presenceAffectsLayout:s,mode:l,root:p,onExitComplete:i?void 0:()=>{if(!x.has(n))return;x.set(n,!0);let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(M?.(),S(b.current),c&&g?.(),o&&o())},anchorX:h,children:t},n)})})},Bc=c({strict:!1}),Fc={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"]},_c={};for(const e in Fc)_c[e]={isEnabled:t=>Fc[e].some(e=>!!t[e])};const Hc=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 $c(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Hc.has(e)}let Wc=e=>!$c(e);try{"function"==typeof(Uc=require("@emotion/is-prop-valid").default)&&(Wc=e=>e.startsWith("on")?!$c(e):Uc(e))}catch{}var Uc;const Xc=c({});function Yc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function Zc(e){return"string"==typeof e||Array.isArray(e)}const Gc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qc=["initial",...Gc];function Kc(e){return Yc(e.animate)||qc.some(t=>Zc(e[t]))}function Qc(e){return Boolean(Kc(e)||e.variants)}function Jc(e){const{initial:t,animate:n}=function(e,t){if(Kc(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Zc(t)?t:void 0,animate:Zc(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,f(Xc));return u(()=>({initial:t,animate:n}),[ed(t),ed(n)])}function ed(e){return Array.isArray(e)?e.join(" "):e}const td={};function nd(e,{layout:t,layoutId:n}){return gl.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!td[e]||"opacity"===e)}const rd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ad=fl.length;function od(e,t,n){const{style:r,vars:a,transformOrigin:o}=e;let i=!1,s=!1;for(const e in t){const n=t[e];if(gl.has(e))i=!0;else if(Ti(e))a[e]=n;else{const t=dc(n,ac[e]);e.startsWith("origin")?(s=!0,o[e]=t):r[e]=t}}if(t.transform||(i||n?r.transform=function(e,t,n){let r="",a=!0;for(let o=0;o<ad;o++){const i=fl[o],s=e[i];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(i.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=dc(s,ac[i]);l||(a=!1,r+=`${rd[i]||i}(${e}) `),n&&(t[i]=e)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}const id=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sd(e,t,n){for(const r in t)Lc(t[r])||nd(r,n)||(e[r]=t[r])}function ld(e,t){const n={};return sd(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return u(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return od(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}function cd(e,t){const n={},r=ld(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 dd={offset:"stroke-dashoffset",array:"stroke-dasharray"},ud={offset:"strokeDashoffset",array:"strokeDasharray"};function hd(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:o=1,pathOffset:i=0,...s},l,c,d){if(od(e,s,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?dd:ud;e[o.offset]=Yi.transform(-r);const i=Yi.transform(t),s=Yi.transform(n);e[o.array]=`${i} ${s}`}(u,a,o,i,!1)}const pd=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),md=e=>"string"==typeof e&&"svg"===e.toLowerCase();function fd(e,t,n,r){const a=u(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return hd(n,t,md(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};sd(t,e.style,e),a.style={...t,...a.style}}return a}const gd=["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 vd(e){return"string"==typeof e&&!e.includes("-")&&!!(gd.indexOf(e)>-1||/[A-Z]/u.test(e))}function wd(e,t,n,{latestValues:r},a,o=!1){const i=(vd(e)?fd:cd)(t,r,a,e),s=function(e,t,n){const r={};for(const a in e)"values"===a&&"object"==typeof e.values||(Wc(a)||!0===n&&$c(a)||!t&&!$c(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(t,"string"==typeof e,o),c=e!==b?{...s,...i,ref:n}:{},{children:d}=t,h=u(()=>Lc(d)?d.get():d,[d]);return l(e,{...c,children:h})}function yd(e){const t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function bd(e,t,n,r){if("function"==typeof t){const[a,o]=yd(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]=yd(r);t=t(void 0!==n?n:e.custom,a,o)}return t}function xd(e){return Lc(e)?e.get():e}function kd(e,t,n,r){const a={},o=r(e,{});for(const e in o)a[e]=xd(o[e]);let{initial:i,animate:s}=e;const l=Kc(e),c=Qc(e);t&&c&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===s&&(s=t.animate));let d=!!n&&!1===n.initial;d=d||!1===i;const u=d?s:i;if(u&&"boolean"!=typeof u&&!Yc(u)){const t=Array.isArray(u)?u:[u];for(let n=0;n<t.length;n++){const r=bd(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 Cd=e=>(t,n)=>{const r=f(Xc),a=f(Bo),o=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:kd(n,r,a,e),renderState:t()}}(e,t,r,a);return n?o():Do(o)};function Nd(e,t,n){const{style:r}=e,a={};for(const o in r)(Lc(r[o])||t.style&&Lc(t.style[o])||nd(o,e)||void 0!==n?.getValue(o)?.liveStyle)&&(a[o]=r[o]);return a}const Sd=Cd({scrapeMotionValuesFromProps:Nd,createRenderState:id});function Pd(e,t,n){const r=Nd(e,t,n);for(const n in e)if(Lc(e[n])||Lc(t[n])){r[-1!==fl.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}const Md=Cd({scrapeMotionValuesFromProps:Pd,createRenderState:pd}),Ld=Symbol.for("motionComponentSymbol");function Td(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ad(e,t,n){return v(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Td(n)&&(n.current=r))},[t])}const Ed=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zd="data-"+Ed("framerAppearId"),Rd=c({});function Vd(e,t,n,r,a){const{visualElement:o}=f(Xc),l=f(Bc),c=f(Bo),d=f(Ac).reducedMotion,u=i(null);r=r||l.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));const h=u.current,p=f(Rd);!h||h.projection||!a||"html"!==h.type&&"svg"!==h.type||function(e,t,n,r){const{layoutId:a,layout:o,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Id(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:Boolean(i)||s&&Td(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c})}(u.current,n,a,p);const m=i(!1);g(()=>{h&&m.current&&h.update(n,c)});const v=n[zd],w=i(Boolean(v)&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return Oo(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),w.current&&h.animationState&&h.animationState.animateChanges())}),s(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),w.current=!1))}),h}function Id(e){if(e)return!1!==e.options.allowProjection?e.projection:Id(e.parent)}function Dd(n,{forwardMotionProps:r=!1}={},a,i){a&&function(e){for(const t in e)_c[t]={..._c[t],...e[t]}}(a);const s=vd(n)?Md:Sd;function l(a,o){let l;const c={...f(Ac),...a,layoutId:jd(a)},{isStatic:d}=c,u=Jc(a),h=s(a,d);if(!d&&jo){f(Bc).strict;const e=function(e){const{drag:t,layout:n}=_c;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=Vd(n,h,c,i,e.ProjectionNode)}return t(Xc.Provider,{value:u,children:[l&&u.visualElement?e(l,{visualElement:u.visualElement,...c}):null,wd(n,a,Ad(h,u.visualElement,o),h,d,r)]})}l.displayName=`motion.${"string"==typeof n?n:`create(${n.displayName??n.name??""})`}`;const c=o(l);return c[Ld]=n,c}function jd({layoutId:e}){const t=f(Io).id;return t&&void 0!==e?t+"-"+e:e}function Od(e,t){if("undefined"==typeof Proxy)return Dd;const n=new Map,r=(n,r)=>Dd(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(a,o)=>"create"===o?r:(n.has(o)||n.set(o,Dd(o,void 0,e,t)),n.get(o))})}function Bd({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Fd(e){return void 0===e||1===e}function _d({scale:e,scaleX:t,scaleY:n}){return!Fd(e)||!Fd(t)||!Fd(n)}function Hd(e){return _d(e)||$d(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $d(e){return Wd(e.x)||Wd(e.y)}function Wd(e){return e&&"0%"!==e}function Ud(e,t,n){return n+t*(e-n)}function Xd(e,t,n,r,a){return void 0!==a&&(e=Ud(e,a,r)),Ud(e,n,r)+t}function Yd(e,t=0,n=1,r,a){e.min=Xd(e.min,t,n,r,a),e.max=Xd(e.max,t,n,r,a)}function Zd(e,{x:t,y:n}){Yd(e.x,t.translate,t.scale,t.originPoint),Yd(e.y,n.translate,n.scale,n.originPoint)}const Gd=.999999999999,qd=1.0000000000001;function Kd(e,t){e.min=e.min+t,e.max=e.max+t}function Qd(e,t,n,r,a=.5){Yd(e,t,n,ds(e.min,e.max,a),r)}function Jd(e,t){Qd(e.x,t.x,t.scaleX,t.scale,t.originX),Qd(e.y,t.y,t.scaleY,t.scale,t.originY)}function eu(e,t){return Bd(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 tu=()=>({x:{min:0,max:0},y:{min:0,max:0}}),nu={current:null},ru={current:!1};const au=new WeakMap;const ou=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class iu{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:a,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ml,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=Mi.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,xi.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=o;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=i,this.blockInitialAnimation=Boolean(a),this.isControllingVariants=Kc(t),this.isVariantNode=Qc(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!==s[e]&&Lc(t)&&t.set(s[e],!1)}}mount(e){this.current=e,au.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)),ru.current||function(){if(ru.current=!0,jo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>nu.current=e.matches;e.addEventListener("change",t),t()}else nu.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nu.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ki(this.notifyUpdate),ki(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=gl.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&xi.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 _c){const t=_c[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<ou.length;t++){const n=ou[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(Lc(a))e.addValue(r,a);else if(Lc(o))e.addValue(r,pc(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,pc(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=pc(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&&(Wo(n)||Xo(n))?n=parseFloat(n):!(e=>Tc.find(Gl(e)))(n)&&ss.test(t)&&(n=sc(e,t)),this.setBaseTarget(e,Lc(n)?n.get():n)),Lc(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=bd(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||Lc(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 Qo),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){mc.render(this.render)}}class su extends iu{constructor(){super(...arguments),this.KeyframeResolver=cc}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;Lc(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function lu(e,{style:t,vars:n},r,a){const o=e.style;let i;for(i in t)o[i]=t[i];for(i in a?.applyProjectionStyles(o,r),n)o.setProperty(i,n[i])}class cu extends su{constructor(){super(...arguments),this.type="html",this.renderInstance=lu}readValueFromInstance(e,t){if(gl.has(t))return this.projection?.isProjecting?hl(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return pl(n,t)})(e,t);{const r=(n=e,window.getComputedStyle(n)),a=(Ti(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof a?a.trim():a}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return eu(e,t)}build(e,t,n){od(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Nd(e,t,n)}}const du=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 uu extends su{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tu}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(gl.has(t)){const e=ic(t);return e&&e.default||0}return t=du.has(t)?t:Ed(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Pd(e,t,n)}build(e,t,n){hd(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){lu(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(du.has(n)?n:Ed(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=md(e.tagName),super.mount(e)}}const hu=(e,t)=>vd(e)?new uu(t):new cu(t,{allowProjection:e!==b});function pu(e,t,n){const r=e.getProps();return bd(r,t,void 0!==n?n:r.custom,e)}const mu=e=>Array.isArray(e);function fu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pc(n))}function gu(e){return mu(e)?e[e.length-1]||0:e}function vu(e,t){const n=e.getValue("willChange");if(r=n,Boolean(Lc(r)&&r.add))return n.add(t);if(!n&&$o.WillChange){const n=new $o.WillChange("auto");e.addValue("willChange",n),n.add(t)}var r}function wu(e){return e.props[zd]}const yu=e=>null!==e;const bu={type:"spring",stiffness:500,damping:25,restSpeed:10},xu={type:"keyframes",duration:.8},ku={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Cu=(e,{keyframes:t})=>t.length>2?xu:gl.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:bu:ku;const Nu=(e,t,n,r={},a,o)=>i=>{const s=Yl(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=Jo(l);const d={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:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:a};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:o,repeatType:i,repeatDelay:s,from:l,elapsed:c,...d}){return!!Object.keys(d).length})(s)||Object.assign(d,Cu(e,d)),d.duration&&(d.duration=Jo(d.duration)),d.repeatDelay&&(d.repeatDelay=Jo(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)),($o.instantAnimations||$o.skipAnimations)&&(u=!0,d.duration=0,d.delay=0),d.allowFlatten=!s.type&&!s.ease,u&&!o&&void 0!==t.get()){const e=function(e,{repeat:t,repeatType:n="loop"}){const r=e.filter(yu);return r[t&&"loop"!==n&&t%2==1?0:r.length-1]}(d.keyframes,s);if(void 0!==e)return void xi.update(()=>{d.onUpdate(e),d.onComplete()})}return s.isSync?new al(d):new Wl(d)};function Su({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Pu(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:i,...s}=t;r&&(o=r);const l=[],c=a&&e.animationState&&e.animationState.getState()[a];for(const t in s){const r=e.getValue(t,e.latestValues[t]??null),a=s[t];if(void 0===a||c&&Su(c,t))continue;const i={delay:n,...Yl(o||{},t)},d=r.get();if(void 0!==d&&!r.isAnimating&&!Array.isArray(a)&&a===d&&!i.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){const n=wu(e);if(n){const e=window.MotionHandoffAnimation(n,t,xi);null!==e&&(i.startTime=e,u=!0)}}vu(e,t),r.start(Nu(t,r,a,e.shouldReduceMotion&&Zl.has(t)?{type:!1}:i,e,u));const h=r.animation;h&&l.push(h)}return i&&Promise.all(l).then(()=>{xi.update(()=>{i&&function(e,t){const n=pu(e,t);let{transitionEnd:r={},transition:a={},...o}=n||{};o={...o,...r};for(const t in o)fu(e,t,gu(o[t]))}(e,i)})}),l}function Mu(e,t,n={}){const r=pu(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(Pu(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:s}=a;return function(e,t,n=0,r=0,a=0,o=1,i){const s=[],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(Lu).forEach((e,a)=>{e.notify("AnimationStart",t),s.push(Mu(e,t,{...i,delay:n+(d?0:r)+u(a)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,r,o,i,s,n)}:()=>Promise.resolve(),{when:s}=a;if(s){const[e,t]="beforeChildren"===s?[o,i]:[i,o];return e().then(()=>t())}return Promise.all([o(),i(n.delay)])}function Lu(e,t){return e.sortNodePosition(t)}function Tu(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 Au=qc.length;function Eu(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Eu(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Au;n++){const r=qc[n],a=e.props[r];(Zc(a)||!1===a)&&(t[r]=a)}return t}const zu=[...Gc].reverse(),Ru=Gc.length;function Vu(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=>Mu(e,t,n));r=Promise.all(a)}else if("string"==typeof t)r=Mu(e,t,n);else{const a="function"==typeof t?pu(e,t,n.custom):t;r=Promise.all(Pu(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}function Iu(e){let t=Vu(e),n=Ou(),r=!0;const a=t=>(n,r)=>{const a=pu(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:i}=e,s=Eu(e.parent)||{},l=[],c=new Set;let d={},u=1/0;for(let t=0;t<Ru;t++){const h=zu[t],p=n[h],m=void 0!==i[h]?i[h]:s[h],f=Zc(m),g=h===o?p.isActive:null;!1===g&&(u=t);let v=m===s[h]&&m!==i[h]&&f;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...d},!p.isActive&&null===g||!m&&!p.prevProp||Yc(m)||"boolean"==typeof m)continue;const w=Du(p.prevProp,m);let y=w||h===o&&p.isActive&&!v&&f||t>u&&f,b=!1;const x=Array.isArray(m)?m:[m];let k=x.reduce(a(h),{});!1===g&&(k={});const{prevResolvedValues:C={}}=p,N={...C,...k},S=t=>{y=!0,c.has(t)&&(b=!0,c.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in N){const t=k[e],n=C[e];if(d.hasOwnProperty(e))continue;let r=!1;r=mu(t)&&mu(n)?!Tu(t,n):t!==n,r?null!=t?S(e):c.add(e):void 0!==t&&c.has(e)?S(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=k,p.isActive&&(d={...d,...k}),r&&e.blockInitialAnimation&&(y=!1);y&&(!(v&&w)||b)&&l.push(...x.map(e=>({animation:e,options:{type:h}})))}if(c.size){const t={};if("boolean"!=typeof i.initial){const n=pu(e,Array.isArray(i.initial)?i.initial[0]:i.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!==i.initial&&i.initial!==i.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=Ou(),r=!0}}}function Du(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Tu(t,e)}function ju(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ou(){return{animate:ju(!0),whileInView:ju(),whileHover:ju(),whileTap:ju(),whileDrag:ju(),whileFocus:ju(),exit:ju()}}class Bu{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Fu=0;const _u={animation:{Feature:class extends Bu{constructor(e){super(e),e.animationState||(e.animationState=Iu(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Yc(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 Bu{constructor(){super(...arguments),this.id=Fu++}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 Hu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function $u(e){return{point:{x:e.pageX,y:e.pageY}}}function Wu(e,t,n,r){return Hu(e,t,(e=>t=>bc(t)&&e(t,$u(t)))(n),r)}function Uu(e){return e.max-e.min}function Xu(e,t,n,r=.5){e.origin=r,e.originPoint=ds(t.min,t.max,e.origin),e.scale=Uu(n)/Uu(t),e.translate=ds(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 Yu(e,t,n,r){Xu(e.x,t.x,n.x,r?r.originX:void 0),Xu(e.y,t.y,n.y,r?r.originY:void 0)}function Zu(e,t,n){e.min=n.min+t.min,e.max=e.min+Uu(t)}function Gu(e,t,n){e.min=t.min-n.min,e.max=e.min+Uu(t)}function qu(e,t,n){Gu(e.x,t.x,n.x),Gu(e.y,t.y,n.y)}function Ku(e){return[e("x"),e("y")]}const Qu=({current:e})=>e?e.ownerDocument.defaultView:null,Ju=(e,t)=>Math.abs(e-t);class eh{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=rh(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ju(e.x,t.x),r=Ju(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}=Ci;this.history.push({...r,timestamp:a});const{onStart:o,onMove:i}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=th(t,this.transformPagePoint),xi.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=rh("pointercancel"===e.type?this.lastMoveEventInfo:th(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!bc(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const i=th($u(e),this.transformPagePoint),{point:s}=i,{timestamp:l}=Ci;this.history=[{...s,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,rh(i,this.history)),this.removeListeners=qo(Wu(this.contextWindow,"pointermove",this.handlePointerMove),Wu(this.contextWindow,"pointerup",this.handlePointerUp),Wu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ki(this.updatePoint)}}function th(e,t){return t?{point:t(e.point)}:e}function nh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rh({point:e},t){return{point:e,delta:nh(e,oh(t)),offset:nh(e,ah(t)),velocity:ih(t,.1)}}function ah(e){return e[0]}function oh(e){return e[e.length-1]}function ih(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=oh(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Jo(t)));)n--;if(!r)return{x:0,y:0};const o=ei(a.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const i={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function sh(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 lh(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 ch=.35;function dh(e,t,n){return{min:uh(e,t),max:uh(e,n)}}function uh(e,t){return"number"==typeof e?e:e[t]||0}const hh=new WeakMap;class ph{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 eh(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor($u(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?fc[o]?null:(fc[o]=!0,()=>{fc[o]=!1}):fc.x||fc.y?null:(fc.x=fc.y=!0,()=>{fc.x=fc.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),Ku(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Xi.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Uu(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),a&&xi.postRender(()=>a(e,t)),vu(this.visualElement,"transform");const{animationState:i}=this.visualElement;i&&i.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:i}=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}(i),void(null!==this.currentDirection&&a&&a(this.currentDirection));this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),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:()=>Ku(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,distanceThreshold:n,contextWindow:Qu(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:i}=this.getProps();i&&xi.postRender(()=>i(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||!mh(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?ds(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?ds(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&&Td(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:a}){return{x:sh(e.x,n,a),y:sh(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=ch){return!1===e?e=0:!0===e&&(e=ch),{x:dh(e,"left","right"),y:dh(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ku(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||!Td(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=eu(e,n),{scroll:a}=t;return a&&(Kd(r.x,a.offset.x),Kd(r.y,a.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:lh(e.x,t.x),y:lh(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=Bd(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:i}=this.getProps(),s=this.constraints||{},l=Ku(i=>{if(!mh(i,t,this.currentDirection))return;let l=s&&s[i]||{};o&&(l={min:0,max:0});const c=r?200:1e6,d=r?40:1e7,u={type:"inertia",velocity:n?e[i]:0,bounceStiffness:c,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(i,u)});return Promise.all(l).then(i)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return vu(this.visualElement,e),n.start(Nu(e,n,0,t,this.visualElement,!1))}stopAnimation(){Ku(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Ku(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){Ku(t=>{const{drag:n}=this.getProps();if(!mh(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]-ds(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Td(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ku(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=Uu(e),a=Uu(t);return a>r?n=Ko(t.min,t.max-r,e.min):r>a&&(n=Ko(e.min,e.max-a,t.min)),Ho(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(),Ku(t=>{if(!mh(t,e,null))return;const n=this.getAxisMotionValue(t),{min:a,max:o}=this.constraints[t];n.set(ds(a,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;hh.set(this.visualElement,this);const e=Wu(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();Td(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()),xi.read(t);const a=Hu(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ku(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=ch,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:a,dragElastic:o,dragMomentum:i}}}function mh(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const fh=e=>(t,n)=>{e&&xi.postRender(()=>e(t,n))};const gh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wh={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Yi.test(e))return e;e=parseFloat(e)}return`${vh(e,t.target.x)}% ${vh(e,t.target.y)}%`}},yh={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=ss.parse(e);if(a.length>5)return r;const o=ss.createTransformer(e),i="number"!=typeof a[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;a[0+i]/=s,a[1+i]/=l;const c=ds(s,l,.5);return"number"==typeof a[2+i]&&(a[2+i]/=c),"number"==typeof a[3+i]&&(a[3+i]/=c),o(a)}};let bh=!1;class xh extends x{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:a}=e;!function(e){for(const t in e)td[t]=e[t],Ti(t)&&(td[t].isCSSVariable=!0)}(Ch),a&&(t.group&&t.group.add(a),n&&n.register&&r&&n.register(a),bh&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),gh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:a}=this.props,{projection:o}=n;return o?(o.isPresent=a,bh=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||xi.postRender(()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),mc.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 kh(t){const[n,r]=Ic(),a=f(Io);return e(xh,{...t,layoutGroup:a,switchLayoutGroup:f(Rd),isPresent:n,safeToRemove:r})}const Ch={borderRadius:{...wh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wh,borderTopRightRadius:wh,borderBottomLeftRadius:wh,borderBottomRightRadius:wh,boxShadow:yh};const Nh=(e,t)=>e.depth-t.depth;class Sh{constructor(){this.children=[],this.isDirty=!1}add(e){Fo(this.children,e),this.isDirty=!0}remove(e){_o(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Nh),this.isDirty=!1,this.children.forEach(e)}}const Ph=["TopLeft","TopRight","BottomLeft","BottomRight"],Mh=Ph.length,Lh=e=>"string"==typeof e?parseFloat(e):e,Th=e=>"number"==typeof e||Yi.test(e);function Ah(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Eh=Rh(0,.5,ui),zh=Rh(.5,.95,Zo);function Rh(e,t,n){return r=>r<e?0:r>t?1:n(Ko(e,t,r))}function Vh(e,t){e.min=t.min,e.max=t.max}function Ih(e,t){Vh(e.x,t.x),Vh(e.y,t.y)}function Dh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function jh(e,t,n,r,a){return e=Ud(e-=t,1/n,r),void 0!==a&&(e=Ud(e,1/a,r)),e}function Oh(e,t,[n,r,a],o,i){!function(e,t=0,n=1,r=.5,a,o=e,i=e){Xi.test(t)&&(t=parseFloat(t),t=ds(i.min,i.max,t/100)-i.min);if("number"!=typeof t)return;let s=ds(o.min,o.max,r);e===o&&(s-=t),e.min=jh(e.min,t,n,s,a),e.max=jh(e.max,t,n,s,a)}(e,t[n],t[r],t[a],t.scale,o,i)}const Bh=["x","scaleX","originX"],Fh=["y","scaleY","originY"];function _h(e,t,n,r){Oh(e.x,t,Bh,n?n.x:void 0,r?r.x:void 0),Oh(e.y,t,Fh,n?n.y:void 0,r?r.y:void 0)}function Hh(e){return 0===e.translate&&1===e.scale}function $h(e){return Hh(e.x)&&Hh(e.y)}function Wh(e,t){return e.min===t.min&&e.max===t.max}function Uh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Xh(e,t){return Uh(e.x,t.x)&&Uh(e.y,t.y)}function Yh(e){return Uu(e.x)/Uu(e.y)}function Zh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Gh{constructor(){this.members=[]}add(e){Fo(this.members,e),e.scheduleRender()}remove(e){if(_o(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 qh=["","X","Y","Z"];let Kh=0;function Qh(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Jh(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=wu(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",xi,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Jh(r)}function ep({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(e={},n=t?.()){this.id=Kh++,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(rp),this.nodes.forEach(dp),this.nodes.forEach(up),this.nodes.forEach(ap)},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 Sh)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Qo),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=Mc(t)&&!(Mc(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;xi.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=Mi.now(),r=({timestamp:a})=>{const o=a-n;o>=t&&(ki(r),e(o-t))};return xi.setup(r,!0),()=>ki(r)}(a,250),gh.hasAnimatedSinceResize&&(gh.hasAnimatedSinceResize=!1,this.nodes.forEach(cp)))})}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()||vp,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!Xh(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={...Yl(a,"layout"),onPlay:i,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||cp(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(),ki(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(hp),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&&Jh(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(ip);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(sp);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(lp),this.nodes.forEach(tp),this.nodes.forEach(np)):this.nodes.forEach(sp),this.clearAllSnapshots();const e=Mi.now();Ci.delta=Ho(0,1e3/60,e-Ci.timestamp),Ci.timestamp=e,Ci.isProcessing=!0,Ni.update.process(Ci),Ni.preRender.process(Ci),Ni.render.process(Ci),Ci.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,mc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(op),this.sharedNodes.forEach(pp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Uu(this.snapshot.measuredBox.x)||Uu(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&&!$h(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Hd(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)),bp((r=n).x),bp(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(kp))){const{scroll:e}=this.root;e&&(Kd(t.x,e.offset.x),Kd(t.y,e.offset.y))}return t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};if(Ih(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&&Ih(t,e),Kd(t.x,a.offset.x),Kd(t.y,a.offset.y))}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Ih(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&&Jd(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Hd(r.latestValues)&&Jd(n,r.latestValues)}return Hd(this.latestValues)&&Jd(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Ih(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Hd(n.latestValues))continue;_d(n.latestValues)&&n.updateSnapshot();const r=tu();Ih(r,n.measurePageBox()),_h(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Hd(this.latestValues)&&_h(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!==Ci.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=Ci.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}},qu(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Ih(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var o,i,s;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,i=this.relativeTarget,s=this.relativeParent.target,Zu(o.x,i.x,s.x),Zu(o.y,i.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ih(this.target,this.layout.layoutBox),Zd(this.target,this.targetDelta)):Ih(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}},qu(this.relativeTargetOrigin,this.target,e.target),Ih(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!_d(this.parent.latestValues)&&!$d(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===Ci.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;Ih(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,i=this.treeScale.y;!function(e,t,n,r=!1){const a=n.length;if(!a)return;let o,i;t.x=t.y=1;for(let s=0;s<a;s++){o=n[s],i=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&&Jd(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Zd(e,i)),r&&Hd(o.latestValues)&&Jd(e,o.latestValues))}t.x<qd&&t.x>Gd&&(t.x=1),t.y<qd&&t.y>Gd&&(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:s}=e;s?(this.projectionDelta&&this.prevProjectionDelta?(Dh(this.prevProjectionDelta.x,this.projectionDelta.x),Dh(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Yu(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===i&&Zh(this.projectionDelta.x,this.prevProjectionDelta.x)&&Zh(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={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 i={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,d=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(gp));let u;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;mp(o.x,e.x,n),mp(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qu(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){fp(e.x,t.x,n.x,r),fp(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,i,n),u&&function(e,t){return Wh(e.x,t.x)&&Wh(e.y,t.y)}(this.relativeTarget,u)&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),Ih(u,this.relativeTarget)),s&&(this.animationValues=a,function(e,t,n,r,a,o){a?(e.opacity=ds(0,n.opacity??1,Eh(r)),e.opacityExit=ds(t.opacity??1,0,zh(r))):o&&(e.opacity=ds(t.opacity??1,n.opacity??1,r));for(let a=0;a<Mh;a++){const o=`border${Ph[a]}Radius`;let i=Ah(t,o),s=Ah(n,o);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||Th(i)===Th(s)?(e[o]=Math.max(ds(Lh(i),Lh(s),r),0),(Xi.test(s)||Xi.test(i))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=ds(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&&(ki(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xi.update(()=>{gh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=pc(0)),this.currentAnimation=function(e,t,n){const r=Lc(e)?e:pc(e);return r.start(Nu("",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&&xp(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Uu(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Uu(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Ih(t,n),Jd(t,a),Yu(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Gh);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&&Qh("z",e,r,this.animationValues);for(let t=0;t<qh.length;t++)Qh(`rotate${qh[t]}`,e,r,this.animationValues),Qh(`skew${qh[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=xd(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=xd(t?.pointerEvents)||""),void(this.hasProjected&&!Hd(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,i=n?.z||0;if((a||o||i)&&(r=`translate3d(${a}px, ${o}px, ${i}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:i,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),i&&(r+=`skewX(${i}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,a);n&&(o=n(a,o)),e.transform=o;const{x:i,y:s}=this.projectionDelta;e.transformOrigin=`${100*i.origin}% ${100*s.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 td){if(void 0===a[t])continue;const{correct:n,applyTo:i,isCSSVariable:s}=td[t],l="none"===o?a[t]:n(a[t],r);if(i){const t=i.length;for(let n=0;n<t;n++)e[i[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?xd(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ip),this.root.sharedNodes.clear()}}}function tp(e){e.updateLayout()}function np(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?Ku(e=>{const r=o?t.measuredBox[e]:t.layoutBox[e],a=Uu(r);r.min=n[e].min,r.max=r.min+a}):xp(a,t.layoutBox,n)&&Ku(r=>{const a=o?t.measuredBox[r]:t.layoutBox[r],i=Uu(n[r]);a.max=a.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+i)});const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Yu(i,n,t.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?Yu(s,e.applyTransform(r,!0),t.measuredBox):Yu(s,n,t.layoutBox);const l=!$h(i);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:a,layout:o}=r;if(a&&o){const i={x:{min:0,max:0},y:{min:0,max:0}};qu(i,t.layoutBox,a.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};qu(s,n,o.layoutBox),Xh(i,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=i,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rp(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 ap(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function op(e){e.clearSnapshot()}function ip(e){e.clearMeasurements()}function sp(e){e.isLayoutDirty=!1}function lp(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function cp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dp(e){e.resolveTargetDelta()}function up(e){e.calcProjection()}function hp(e){e.resetSkewAndRotation()}function pp(e){e.removeLeadSnapshot()}function mp(e,t,n){e.translate=ds(t.translate,0,n),e.scale=ds(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function fp(e,t,n,r){e.min=ds(t.min,n.min,r),e.max=ds(t.max,n.max,r)}function gp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const vp={duration:.45,ease:[.4,0,.1,1]},wp=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yp=wp("applewebkit/")&&!wp("chrome/")?Math.round:Zo;function bp(e){e.min=yp(e.min),e.max=yp(e.max)}function xp(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Yh(t),a=Yh(n),o=.2,!(Math.abs(r-a)<=o));var r,a,o}function kp(e){return e!==e.root&&e.scroll?.wasRoot}const Cp=ep({attachResizeListener:(e,t)=>Hu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Np={current:void 0},Sp=ep({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Np.current){const e=new Cp({});e.mount(window),e.setOptions({layoutScroll:!0}),Np.current=e}return Np.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Pp={pan:{Feature:class extends Bu{constructor(){super(...arguments),this.removePointerDownListener=Zo}onPointerDown(e){this.session=new eh(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qu(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:fh(e),onStart:fh(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&xi.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Wu(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 Bu{constructor(e){super(e),this.removeGroupControls=Zo,this.removeListeners=Zo,this.controls=new ph(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zo}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Sp,MeasureLayout:kh}};function Mp(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const a=r["onHover"+n];a&&xi.postRender(()=>a(t,$u(t)))}function Lp(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&&xi.postRender(()=>a(t,$u(t)))}const Tp=new WeakMap,Ap=new WeakMap,Ep=e=>{const t=Tp.get(e.target);t&&t(e)},zp=e=>{e.forEach(Ep)};function Rp(e,t,n){const r=function({root:e,...t}){const n=e||document;Ap.has(n)||Ap.set(n,{});const r=Ap.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(zp,{root:e,...t})),r[a]}(t);return Tp.set(e,n),r.observe(e),()=>{Tp.delete(e),r.unobserve(e)}}const Vp={some:0,all:1};const Ip={inView:{Feature:class extends Bu{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:Vp[r]};return Rp(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 Bu{mount(){const{current:e}=this.node;e&&(this.unmount=Pc(e,(e,t)=>(Lp(this.node,t,"Start"),(e,{success:t})=>Lp(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Bu{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=qo(Hu(this.node.current,"focus",()=>this.onFocus()),Hu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Bu{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,a,o]=vc(e,n),i=e=>{if(!wc(e))return;const{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;const o=e=>{wc(e)&&(r(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,a)};return r.forEach(e=>{e.addEventListener("pointerenter",i,a)}),o}(e,(e,t)=>(Mp(this.node,t,"Start"),e=>Mp(this.node,e,"End"))))}unmount(){}}}},Dp=Od({..._u,...Ip,...Pp,...{layout:{ProjectionNode:Sp,MeasureLayout:kh}}},hu),jp=o(function({description:n,side:r="top",className:a,role:o,...i},s){const l=R.useTooltipStore({placement:r}),c=R.useStoreState(l,e=>e.mounted),d=R.useStoreState(l,e=>e.placement),{x:h,y:p}=u(()=>{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 t(R.TooltipProvider,{store:l,hideTimeout:0,children:[e(R.TooltipAnchor,{...i,ref:s,role:o,onKeyDown:e=>{"button"===o&&"Enter"===e.key&&(e.preventDefault(),e.target.click())},className:wt("cursor-pointer",a)}),e(Oc,{children:!0===c&&t(R.Tooltip,{gutter:4,alwaysVisible:!0,className:"tooltip",render:e(Dp.div,{initial:{opacity:0,x:h,y:p},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:h,y:p}}),children:[e(R.TooltipArrow,{}),n]})})]})}),Op=({className:t,...n})=>e("nav",{role:"navigation","aria-label":"pagination",className:wt("mx-auto flex w-full justify-center",t),...n});Op.displayName="Pagination";const Bp=r.forwardRef(({className:t,...n},r)=>e("ul",{ref:r,className:wt("flex flex-row items-center gap-1",t),...n}));Bp.displayName="PaginationContent";const Fp=r.forwardRef(({className:t,...n},r)=>e("li",{ref:r,className:wt("",t),...n}));Fp.displayName="PaginationItem";const _p=({className:t,isActive:n=!1,size:r="icon",children:a,...o})=>e("a",{"aria-current":n?"page":void 0,className:wt(fn({variant:n?"outline":"ghost",size:r}),t),...o,children:a||e("span",{className:"sr-only",children:"Page link"})});_p.displayName="PaginationLink";const Hp=({className:n,...r})=>t(_p,{"aria-label":"Go to previous page",size:"default",className:wt("gap-1 pl-2.5",n),...r,children:[e(Yt,{className:"h-4 w-4"}),e("span",{children:"Previous"})]});Hp.displayName="PaginationPrevious";const $p=({className:n,...r})=>t(_p,{"aria-label":"Go to next page",size:"default",className:wt("gap-1 pr-2.5",n),...r,children:[e("span",{children:"Next"}),e(Zt,{className:"h-4 w-4"})]});$p.displayName="PaginationNext";const Wp=({className:n,...r})=>t("span",{"aria-hidden":!0,className:wt("flex h-9 w-9 items-center justify-center",n),...r,children:[e(qt,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"More pages"})]});Wp.displayName="PaginationEllipsis";const Up=r.forwardRef(({className:t,value:n,...r},a)=>e(pe.Root,{ref:a,className:wt("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...r,children:e(pe.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})}));Up.displayName=pe.Root.displayName;var Xp=Object.defineProperty,Yp=Object.defineProperties,Zp=Object.getOwnPropertyDescriptors,Gp=Object.getOwnPropertySymbols,qp=Object.prototype.hasOwnProperty,Kp=Object.prototype.propertyIsEnumerable,Qp=(e,t,n)=>t in e?Xp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jp=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var em=r.createContext({}),tm=r.forwardRef((e,t)=>{var n,a,o,i,s,l=e,{value:c,onChange:d,maxLength:u,textAlign:h="left",pattern:p,placeholder:m,inputMode:f="numeric",onComplete:g,pushPasswordManagerStrategy:v="increase-width",pasteTransformer:w,containerClassName:y,noScriptCSSFallback:b=rm,render:x,children:k}=l,C=((e,t)=>{var n={};for(var r in e)qp.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Gp)for(var r of Gp(e))t.indexOf(r)<0&&Kp.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[N,S]=r.useState("string"==typeof C.defaultValue?C.defaultValue:""),P=null!=c?c:N,M=function(e){let t=r.useRef();return r.useEffect(()=>{t.current=e}),t.current}(P),L=r.useCallback(e=>{null==d||d(e),S(e)},[d]),T=r.useMemo(()=>p?"string"==typeof p?new RegExp(p):p:null,[p]),A=r.useRef(null),E=r.useRef(null),z=r.useRef({value:P,onChange:L,isIOS:"undefined"!=typeof window&&(null==(a=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:a.call(n,"-webkit-touch-callout","none"))}),R=r.useRef({prev:[null==(o=A.current)?void 0:o.selectionStart,null==(i=A.current)?void 0:i.selectionEnd,null==(s=A.current)?void 0:s.selectionDirection]});r.useImperativeHandle(t,()=>A.current,[]),r.useEffect(()=>{let e=A.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,i=e.value,s=R.current.prev,l=-1,c=-1;if(0!==i.length&&null!==n&&null!==r){let e=n===r,a=n===i.length&&i.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&&i.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]<o;"backward"===t&&!r&&(n=-1)}l=n+e,c=n+e+1}}-1!==l&&-1!==c&&l!==c&&A.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(z.current.value!==e.value&&z.current.onChange(e.value),R.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&j(!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;";nm(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),nm(e.sheet,`[data-input-otp]:autofill { ${t} }`),nm(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),nm(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; } }"),nm(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[V,I]=r.useState(!1),[D,j]=r.useState(!1),[O,B]=r.useState(null),[F,_]=r.useState(null);r.useEffect(()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}(()=>{var e,t,n,r;null==(e=A.current)||e.dispatchEvent(new Event("input"));let a=null==(t=A.current)?void 0:t.selectionStart,o=null==(n=A.current)?void 0:n.selectionEnd,i=null==(r=A.current)?void 0:r.selectionDirection;null!==a&&null!==o&&(B(a),_(o),R.current.prev=[a,o,i])})},[P,D]),r.useEffect(()=>{void 0!==M&&P!==M&&M.length<u&&P.length===u&&(null==g||g(P))},[u,g,M,P]);let H=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:a}){let[o,i]=r.useState(!1),[s,l]=r.useState(!1),[c,d]=r.useState(!1),u=r.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&o&&s,[o,s,n]),h=r.useCallback(()=>{let r=e.current,a=t.current;if(!r||!a||c||"none"===n)return;let o=r,s=o.getBoundingClientRect().left+o.offsetWidth-18,l=o.getBoundingClientRect().top+o.offsetHeight/2;0===document.querySelectorAll(Jp).length&&document.elementFromPoint(s,l)===r||(i(!0),d(!0))},[e,t,c,n]);return r.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function r(){let e=window.innerWidth-t.getBoundingClientRect().right;l(e>=40)}r();let a=setInterval(r,1e3);return()=>{clearInterval(a)}},[e,n]),r.useEffect(()=>{let e=a||document.activeElement===t.current;if("none"===n||!e)return;let r=setTimeout(h,0),o=setTimeout(h,2e3),i=setTimeout(h,5e3),s=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(r),clearTimeout(o),clearTimeout(i),clearTimeout(s)}},[t,a,n,h]),{hasPWMBadge:o,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:E,inputRef:A,pushPasswordManagerStrategy:v,isFocused:D}),$=r.useCallback(e=>{let t=e.currentTarget.value.slice(0,u);t.length>0&&T&&!T.test(t)?e.preventDefault():("string"==typeof M&&t.length<M.length&&document.dispatchEvent(new Event("selectionchange")),L(t))},[u,L,M,T]),W=r.useCallback(()=>{var e;if(A.current){let t=Math.min(A.current.value.length,u-1),n=A.current.value.length;null==(e=A.current)||e.setSelectionRange(t,n),B(t),_(n)}j(!0)},[u]),U=r.useCallback(e=>{var t,n;let r=A.current;if(!(w||z.current.isIOS&&e.clipboardData&&r))return;let a=e.clipboardData.getData("text/plain"),o=w?w(a):a;e.preventDefault();let i=null==(t=A.current)?void 0:t.selectionStart,s=null==(n=A.current)?void 0:n.selectionEnd,l=(i!==s?P.slice(0,i)+o+P.slice(s):P.slice(0,i)+o+P.slice(i)).slice(0,u);if(l.length>0&&T&&!T.test(l))return;r.value=l,L(l);let c=Math.min(l.length,u-1),d=l.length;r.setSelectionRange(c,d),B(c),_(d)},[u,L,T,P]),X=r.useMemo(()=>({position:"relative",cursor:C.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[C.disabled]),Y=r.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:h,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,h]),Z=r.useMemo(()=>r.createElement("input",((e,t)=>Yp(e,Zp(t)))(((e,t)=>{for(var n in t||(t={}))qp.call(t,n)&&Qp(e,n,t[n]);if(Gp)for(var n of Gp(t))Kp.call(t,n)&&Qp(e,n,t[n]);return e})({autoComplete:C.autoComplete||"one-time-code"},C),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===P.length||void 0,"data-input-otp-mss":O,"data-input-otp-mse":F,inputMode:f,pattern:null==T?void 0:T.source,"aria-placeholder":m,style:Y,maxLength:u,value:P,ref:A,onPaste:e=>{var t;U(e),null==(t=C.onPaste)||t.call(C,e)},onChange:$,onMouseOver:e=>{var t;I(!0),null==(t=C.onMouseOver)||t.call(C,e)},onMouseLeave:e=>{var t;I(!1),null==(t=C.onMouseLeave)||t.call(C,e)},onFocus:e=>{var t;W(),null==(t=C.onFocus)||t.call(C,e)},onBlur:e=>{var t;j(!1),null==(t=C.onBlur)||t.call(C,e)}})),[$,W,U,f,Y,u,F,O,C,null==T?void 0:T.source,P]),G=r.useMemo(()=>({slots:Array.from({length:u}).map((e,t)=>{var n;let r=D&&null!==O&&null!==F&&(O===F&&t===O||t>=O&&t<F),a=void 0!==P[t]?P[t]:null;return{char:a,placeholderChar:void 0!==P[0]?null:null!=(n=null==m?void 0:m[t])?n:null,isActive:r,hasFakeCaret:r&&null===a}}),isFocused:D,isHovering:!C.disabled&&V}),[D,V,u,F,O,C.disabled,P]),q=r.useMemo(()=>x?x(G):r.createElement(em.Provider,{value:G},k),[k,G,x]);return r.createElement(r.Fragment,null,null!==b&&r.createElement("noscript",null,r.createElement("style",null,b)),r.createElement("div",{ref:E,"data-input-otp-container":!0,style:X,className:y},q,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},Z)))});function nm(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}tm.displayName="Input";var rm="\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 am=r.forwardRef(({className:t,containerClassName:n,...r},a)=>e(tm,{ref:a,containerClassName:wt("flex items-center gap-2 has-[:disabled]:opacity-50",n),className:wt("disabled:cursor-not-allowed",t),...r}));am.displayName="InputOTP";const om=r.forwardRef(({className:t,...n},r)=>e("div",{ref:r,className:wt("flex items-center",t),...n}));om.displayName="InputOTPGroup";const im=r.forwardRef(({index:n,className:a,...o},i)=>{const s=r.useContext(em);if(!s)throw new Error("InputOTPSlot must be used within an OTPInput");const{char:l,hasFakeCaret:c,isActive:d}=s.slots[n];return t("div",{ref:i,className:wt("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",d&&"z-10 ring-1 ring-ring",a),...o,children:[l,c&&e("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})});im.displayName="InputOTPSlot";const sm=r.forwardRef(({...t},n)=>e("div",{ref:n,role:"separator",...t,children:e(Qt,{})}));function lm({value:n,onChange:r,placeholder:a,className:o=""}){const s=i(null),l=v(e=>r(e.target.value),[r]);return t("div",{className:wt("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(nn,{className:"h-4 w-4 text-text-secondary-alt transition-colors duration-300","aria-hidden":"true"}),e("input",{ref:s,type:"text",value:n??"",onChange:l,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("button",{className:wt("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(an,{"aria-hidden":"true",className:wt("text-text-secondary-alt",n?.length?"cursor-pointer opacity-100":"opacity-0")})})]})}function cm(e){return"string"==typeof e?e.startsWith("---")&&e.endsWith("---")?"":e.toUpperCase():""}function dm({availableOptions:t=[],placeholder:n,getTextKeyOverride:r,className:a,disabled:o=!1}){const[i,s]=d(null),l=t.length>10&&!o,c=r||cm,h=u(()=>{const e=i??"";if(!l||!e||!t.length)return t;const n=e.toUpperCase();return t.filter(e=>c(e).includes(n))},[t,c,i,l]),p=v(e=>s(e),[]);return[h,l?e(lm,{value:i,className:a,onChange:p,placeholder:n}):null]}sm.displayName="InputOTPSeparator";const um=c(null);um.displayName="PanelGroupContext";const hm="data-panel-group",pm="data-panel-group-direction",mm="data-panel-group-id",fm="data-panel",gm="data-panel-collapsible",vm="data-panel-id",wm="data-panel-size",ym="data-resize-handle",bm="data-resize-handle-active",xm="data-panel-resize-handle-enabled",km="data-panel-resize-handle-id",Cm="data-resize-handle-state",Nm=p,Sm=r["useId".toString()],Pm="function"==typeof Sm?Sm:()=>null;let Mm=0;function Lm(e=null){const t=Pm(),n=i(e||t||null);return null===n.current&&(n.current=""+Mm++),null!=e?e:n.current}function Tm({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:a,forwardedRef:o,id:s,maxSize:c,minSize:d,onCollapse:u,onExpand:h,onResize:p,order:m,style:g,tagName:v="div",...w}){const y=f(um);if(null===y)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:b,expandPanel:x,getPanelSize:C,getPanelStyle:N,groupId:S,isPanelCollapsed:P,reevaluatePanelConstraints:M,registerPanel:L,resizePanel:T,unregisterPanel:A}=y,E=Lm(s),z=i({callbacks:{onCollapse:u,onExpand:h,onResize:p},constraints:{collapsedSize:n,collapsible:r,defaultSize:a,maxSize:c,minSize:d},id:E,idIsFromProps:void 0!==s,order:m});i({didLogMissingDefaultSizeWarning:!1}),Nm(()=>{const{callbacks:e,constraints:t}=z.current,o={...t};z.current.id=E,z.current.idIsFromProps=void 0!==s,z.current.order=m,e.onCollapse=u,e.onExpand=h,e.onResize=p,t.collapsedSize=n,t.collapsible=r,t.defaultSize=a,t.maxSize=c,t.minSize=d,o.collapsedSize===t.collapsedSize&&o.collapsible===t.collapsible&&o.maxSize===t.maxSize&&o.minSize===t.minSize||M(z.current,o)}),Nm(()=>{const e=z.current;return L(e),()=>{A(e)}},[m,E,L,A]),k(o,()=>({collapse:()=>{b(z.current)},expand:e=>{x(z.current,e)},getId:()=>E,getSize:()=>C(z.current),isCollapsed:()=>P(z.current),isExpanded:()=>!P(z.current),resize:e=>{T(z.current,e)}}),[b,x,C,P,E,T]);const R=N(z.current,a);return l(v,{...w,children:e,className:t,id:E,style:{...R,...g},[mm]:S,[fm]:"",[gm]:r||void 0,[vm]:E,[wm]:parseFloat(""+R.flexGrow).toFixed(1)})}const Am=o((e,t)=>l(Tm,{...e,forwardedRef:t}));Tm.displayName="Panel",Am.displayName="forwardRef(Panel)";let Em=null,zm=-1,Rm=null;function Vm(e,t){var n,r;const a=function(e,t){if(t){const e=0!==(t&Zm),n=0!==(t&Gm);if(0!==(t&Xm))return e?"se-resize":n?"ne-resize":"e-resize";if(0!==(t&Ym))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(Em!==a){var o;if(Em=a,null===Rm&&(Rm=document.createElement("style"),document.head.appendChild(Rm)),zm>=0)null===(o=Rm.sheet)||void 0===o||o.removeRule(zm);zm=null!==(n=null===(r=Rm.sheet)||void 0===r?void 0:r.insertRule(`*{cursor: ${a} !important;}`))&&void 0!==n?n:-1}}function Im(e){return"keydown"===e.type}function Dm(e){return e.type.startsWith("pointer")}function jm(e){return e.type.startsWith("mouse")}function Om(e){if(Dm(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(jm(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Bm(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 Fm=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function _m(e){const t=getComputedStyle(e);return"fixed"===t.position||(!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=Um(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||(!!Fm.test(t.willChange)||"touch"===t.webkitOverflowScrolling)))))))))}function Hm(e){let t=e.length;for(;t--;){const n=e[t];if(pf(n,"Missing node"),_m(n))return n}return null}function $m(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Wm(e){const t=[];for(;e;)t.push(e),e=Um(e);return t}function Um(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const Xm=1,Ym=2,Zm=4,Gm=8,qm="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let Km=[],Qm=!1,Jm=new Map,ef=new Map;const tf=new Set;function nf(e){const{target:t}=e,{x:n,y:r}=Om(e);Qm=!0,sf({target:t,x:n,y:r}),uf(),Km.length>0&&(hf("down",e),e.preventDefault(),of(t)||e.stopImmediatePropagation())}function rf(e){const{x:t,y:n}=Om(e);if(Qm&&0===e.buttons&&(Qm=!1,hf("up",e)),!Qm){const{target:r}=e;sf({target:r,x:t,y:n})}hf("move",e),cf(),Km.length>0&&e.preventDefault()}function af(e){const{target:t}=e,{x:n,y:r}=Om(e);ef.clear(),Qm=!1,Km.length>0&&(e.preventDefault(),of(t)||e.stopImmediatePropagation()),hf("up",e),sf({target:t,x:n,y:r}),cf(),uf()}function of(e){let t=e;for(;t;){if(t.hasAttribute(ym))return!0;t=t.parentElement}return!1}function sf({target:e,x:t,y:n}){Km.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),tf.forEach(e=>{const{element:a,hitAreaMargins:o}=e,i=a.getBoundingClientRect(),{bottom:s,left:l,right:c,top:d}=i,u=qm?o.coarse:o.fine;if(t>=l-u&&t<=c+u&&n>=d-u&&n<=s+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:Wm(e),b:Wm(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;pf(r,"Stacking order can only be calculated for elements with a common ancestor");const a=$m(Hm(n.a)),o=$m(Hm(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(Bm(e.getBoundingClientRect(),i)){t=!0;break}e=e.parentElement}if(t)return}Km.push(e)}})}function lf(e,t){ef.set(e,t)}function cf(){let e=!1,t=!1;Km.forEach(n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0});let n=0;ef.forEach(e=>{n|=e}),e&&t?Vm("intersection",n):e?Vm("horizontal",n):t?Vm("vertical",n):null!==Rm&&(document.head.removeChild(Rm),Em=null,Rm=null,zm=-1)}let df;function uf(){var e;null===(e=df)||void 0===e||e.abort(),df=new AbortController;const t={capture:!0,signal:df.signal};tf.size&&(Qm?(Km.length>0&&Jm.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",af,t),r.addEventListener("pointerleave",rf,t),r.addEventListener("pointermove",rf,t))}),Jm.forEach((e,n)=>{const{body:r}=n;r.addEventListener("pointerup",af,t),r.addEventListener("pointercancel",af,t)})):Jm.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",nf,t),r.addEventListener("pointermove",rf,t))}))}function hf(e,t){tf.forEach(n=>{const{setResizeHandlerState:r}=n,a=Km.includes(n);r(e,a,t)})}function pf(e,t){if(!e)throw console.error(t),Error(t)}function mf(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function ff(e,t,n=10){return 0===mf(e,t,n)}function gf(e,t,n){return 0===mf(e,t,n)}function vf({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];pf(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:a=0,collapsible:o,maxSize:i=100,minSize:s=0}=r;if(mf(n,s)<0)if(o){n=mf(n,(a+s)/2)<0?a:s}else n=s;return n=Math.min(i,n),n=parseFloat(n.toFixed(10))}function wf({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:a,trigger:o}){if(gf(e,0))return t;const i=[...t],[s,l]=r;pf(null!=s,"Invalid first pivot index"),pf(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===o){{const r=e<0?l:s,a=n[r];pf(a,`Panel constraints not found for index ${r}`);const{collapsedSize:o=0,collapsible:i,minSize:c=0}=a;if(i){const n=t[r];if(pf(null!=n,`Previous layout not found for panel index ${r}`),gf(n,o)){const t=c-n;mf(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,a=n[r];pf(a,`No panel constraints found for index ${r}`);const{collapsedSize:o=0,collapsible:i,minSize:c=0}=a;if(i){const n=t[r];if(pf(null!=n,`Previous layout not found for panel index ${r}`),gf(n,c)){const t=n-o;mf(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let a=e<0?l:s,o=0;for(;;){const e=t[a];pf(null!=e,`Previous layout not found for panel index ${a}`);if(o+=vf({panelConstraints:n,panelIndex:a,size:100})-e,a+=r,a<0||a>=n.length)break}const i=Math.min(Math.abs(e),Math.abs(o));e=e<0?0-i:i}{let r=e<0?s:l;for(;r>=0&&r<n.length;){const a=Math.abs(e)-Math.abs(c),o=t[r];pf(null!=o,`Previous layout not found for panel index ${r}`);const s=vf({panelConstraints:n,panelIndex:r,size:o-a});if(!gf(o,s)&&(c+=o-s,i[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(!gf(e[r],t[r],n))return!1;return!0}(a,i))return a;{const r=e<0?l:s,a=t[r];pf(null!=a,`Previous layout not found for panel index ${r}`);const o=a+c,d=vf({panelConstraints:n,panelIndex:r,size:o});if(i[r]=d,!gf(d,o)){let t=o-d;let r=e<0?l:s;for(;r>=0&&r<n.length;){const a=i[r];pf(null!=a,`Previous layout not found for panel index ${r}`);const o=vf({panelConstraints:n,panelIndex:r,size:a+t});if(gf(a,o)||(t-=o-a,i[r]=o),gf(t,0))break;e>0?r--:r++}}}return gf(i.reduce((e,t)=>t+e,0),100)?i:a}function yf({layout:e,panelsArray:t,pivotIndices:n}){let r=0,a=100,o=0,i=0;const s=n[0];pf(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,a=l):(o+=c,i+=l)});return{valueMax:Math.min(a,100-o),valueMin:Math.max(r,100-i),valueNow:e[s]}}function bf(e,t=document){return Array.from(t.querySelectorAll(`[${km}][data-panel-group-id="${e}"]`))}function xf(e,t,n=document){const r=bf(e,n).findIndex(e=>e.getAttribute(km)===t);return null!=r?r:null}function kf(e,t,n){const r=xf(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function Cf(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 Nf(e,t=document){const n=t.querySelector(`[${km}="${e}"]`);return n||null}function Sf({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:a,panelGroupElement:o,setLayout:l}){i({didWarnAboutMissingResizeHandle:!1}),Nm(()=>{if(!o)return;const e=bf(n,o);for(let t=0;t<a.length-1;t++){const{valueMax:n,valueMin:o,valueNow:i}=yf({layout:r,panelsArray:a,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=a[t];pf(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(o)),s.setAttribute("aria-valuenow",null!=i?""+Math.round(i):"")}}return()=>{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[n,r,a,o]),s(()=>{if(!o)return;const e=t.current;pf(e,"Eager values not found");const{panelDataArray:a}=e;pf(null!=Cf(n,o),`No group found for id "${n}"`);const i=bf(n,o);pf(i,`No resize handles found for group id "${n}"`);const s=i.map(e=>{const t=e.getAttribute(km);pf(t,"Resize handle element has no handle id attribute");const[i,s]=function(e,t,n,r=document){var a,o,i,s;const l=Nf(t,r),c=bf(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!==(i=null===(s=n[d+1])||void 0===s?void 0:s.id)&&void 0!==i?i:null]}(n,t,a,o);if(null==i||null==s)return()=>{};const c=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const s=a.findIndex(e=>e.id===i);if(s>=0){const e=a[s];pf(e,`No panel data found for index ${s}`);const i=r[s],{collapsedSize:c=0,collapsible:d,minSize:u=0}=e.constraints;if(null!=i&&d){const e=wf({delta:gf(i,c)?u-c:c-i,initialLayout:r,panelConstraints:a.map(e=>e.constraints),pivotIndices:kf(n,t,o),prevLayout:r,trigger:"keyboard"});r!==e&&l(e)}}break}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}});return()=>{s.forEach(e=>e())}},[o,e,t,n,r,a,l])}function Pf(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 Mf(e,t){const n="horizontal"===e,{x:r,y:a}=Om(t);return n?r:a}function Lf(e,t,n,r,a,o){if(Im(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,i=Nf(t,a);pf(i,`No resize handle element found for id "${t}"`);const s=i.getAttribute(mm);pf(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=Mf(n,e),d=Cf(s,a);pf(d,`No group element found for id "${s}"`);const u=d.getBoundingClientRect();return(c-l)/(o?u.width:u.height)*100}(e,t,n,r,o)}function Tf(e,t,n){t.forEach((t,r)=>{const a=e[r];pf(a,`Panel data not found for index ${r}`);const{callbacks:o,constraints:i,id:s}=a,{collapsedSize:l=0,collapsible:c}=i,d=n[s];if(null==d||t!==d){n[s]=t;const{onCollapse:e,onExpand:r,onResize:a}=o;a&&a(t,d),c&&(e||r)&&(!r||null!=d&&!ff(d,l)||ff(t,l)||r(),!e||null!=d&&ff(d,l)||!ff(t,l)||e())}})}function Af(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 Ef(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 zf(e){return`react-resizable-panels:${e}`}function Rf(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 Vf(e,t){try{const n=zf(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 If(e,t,n,r,a){var o;const i=zf(e),s=Rf(t),l=null!==(o=Vf(e,a))&&void 0!==o?o:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{a.setItem(i,JSON.stringify(l))}catch(e){console.error(e)}}function Df({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(!gf(r,100)&&n.length>0)for(let e=0;e<t.length;e++){const t=n[e];pf(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];pf(null!=r,`No layout data found for index ${e}`);const o=vf({panelConstraints:t,panelIndex:e,size:r});r!=o&&(a+=r-o,n[e]=o)}if(!gf(a,0))for(let e=0;e<t.length;e++){const r=n[e];pf(null!=r,`No layout data found for index ${e}`);const o=vf({panelConstraints:t,panelIndex:e,size:r+a});if(r!==o&&(a-=o-r,n[e]=o,gf(a,0)))break}return n}const jf={getItem:e=>(Ef(jf),jf.getItem(e)),setItem:(e,t)=>{Ef(jf),jf.setItem(e,t)}},Of={};function Bf({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:a,id:o=null,onLayout:c=null,keyboardResizeBy:h=null,storage:p=jf,style:m,tagName:f="div",...g}){const w=Lm(o),y=i(null),[b,x]=d(null),[C,N]=d([]),S=function(){const[e,t]=d(0);return v(()=>t(e=>e+1),[])}(),P=i({}),M=i(new Map),L=i(0),T=i({autoSaveId:e,direction:r,dragState:b,id:w,keyboardResizeBy:h,onLayout:c,storage:p}),A=i({layout:C,panelDataArray:[],panelDataArrayChanged:!1});i({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),k(a,()=>({getId:()=>T.current.id,getLayout:()=>{const{layout:e}=A.current;return e},setLayout:e=>{const{onLayout:t}=T.current,{layout:n,panelDataArray:r}=A.current,a=Df({layout:e,panelConstraints:r.map(e=>e.constraints)});Pf(n,a)||(N(a),A.current.layout=a,t&&t(a),Tf(r,a,P.current))}}),[]),Nm(()=>{T.current.autoSaveId=e,T.current.direction=r,T.current.dragState=b,T.current.id=w,T.current.onLayout=c,T.current.storage=p}),Sf({committedValuesRef:T,eagerValuesRef:A,groupId:w,layout:C,panelDataArray:A.current.panelDataArray,setLayout:N,panelGroupElement:y.current}),s(()=>{const{panelDataArray:t}=A.current;if(e){if(0===C.length||C.length!==t.length)return;let n=Of[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(If,100),Of[e]=n);const r=[...t],a=new Map(M.current);n(e,r,a,C,p)}},[e,C,p]),s(()=>{});const E=v(e=>{const{onLayout:t}=T.current,{layout:n,panelDataArray:r}=A.current;if(e.constraints.collapsible){const a=r.map(e=>e.constraints),{collapsedSize:o=0,panelSize:i,pivotIndices:s}=Hf(r,e,n);if(pf(null!=i,`Panel size not found for panel "${e.id}"`),!ff(i,o)){M.current.set(e.id,i);const l=wf({delta:_f(r,e)===r.length-1?i-o:o-i,initialLayout:n,panelConstraints:a,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});Af(n,l)||(N(l),A.current.layout=l,t&&t(l),Tf(r,l,P.current))}}},[]),z=v((e,t)=>{const{onLayout:n}=T.current,{layout:r,panelDataArray:a}=A.current;if(e.constraints.collapsible){const o=a.map(e=>e.constraints),{collapsedSize:i=0,panelSize:s=0,minSize:l=0,pivotIndices:c}=Hf(a,e,r),d=null!=t?t:l;if(ff(s,i)){const t=M.current.get(e.id),i=null!=t&&t>=d?t:d,l=wf({delta:_f(a,e)===a.length-1?s-i:i-s,initialLayout:r,panelConstraints:o,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});Af(r,l)||(N(l),A.current.layout=l,n&&n(l),Tf(a,l,P.current))}}},[]),R=v(e=>{const{layout:t,panelDataArray:n}=A.current,{panelSize:r}=Hf(n,e,t);return pf(null!=r,`Panel size not found for panel "${e.id}"`),r},[]),V=v((e,t)=>{const{panelDataArray:n}=A.current,r=_f(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:a,precision:o=3}){const i=n[a];let s;return s=null==i?null!=e?e.toPrecision(o):"1":1===r.length?"1":i.toPrecision(o),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:b,layout:C,panelData:n,panelIndex:r})},[b,C]),I=v(e=>{const{layout:t,panelDataArray:n}=A.current,{collapsedSize:r=0,collapsible:a,panelSize:o}=Hf(n,e,t);return pf(null!=o,`Panel size not found for panel "${e.id}"`),!0===a&&ff(o,r)},[]),D=v(e=>{const{layout:t,panelDataArray:n}=A.current,{collapsedSize:r=0,collapsible:a,panelSize:o}=Hf(n,e,t);return pf(null!=o,`Panel size not found for panel "${e.id}"`),!a||mf(o,r)>0},[]),j=v(e=>{const{panelDataArray:t}=A.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}),A.current.panelDataArrayChanged=!0,S()},[S]);Nm(()=>{if(A.current.panelDataArrayChanged){A.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=T.current,{layout:r,panelDataArray:a}=A.current;let o=null;if(e){const t=function(e,t,n){var r,a;return null!==(a=(null!==(r=Vf(e,n))&&void 0!==r?r:{})[Rf(t)])&&void 0!==a?a:null}(e,a,n);t&&(M.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];pf(e,`Panel constraints not found for index ${o}`);const{defaultSize:i}=e;null!=i&&(r++,t[o]=i,a-=i)}for(let o=0;o<e.length;o++){const i=n[o];pf(i,`Panel constraints not found for index ${o}`);const{defaultSize:s}=i;if(null!=s)continue;const l=a/(e.length-r);r++,t[o]=l,a-=l}return t}({panelDataArray:a}));const i=Df({layout:o,panelConstraints:a.map(e=>e.constraints)});Pf(r,i)||(N(i),A.current.layout=i,t&&t(i),Tf(a,i,P.current))}}),Nm(()=>{const e=A.current;return()=>{e.layout=[]}},[]);const O=v(e=>{let t=!1;const n=y.current;if(n){"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0)}return function(n){n.preventDefault();const r=y.current;if(!r)return()=>null;const{direction:a,dragState:o,id:i,keyboardResizeBy:s,onLayout:l}=T.current,{layout:c,panelDataArray:d}=A.current,{initialLayout:u}=null!=o?o:{},h=kf(i,e,r);let p=Lf(n,e,a,o,s,r);const m="horizontal"===a;m&&t&&(p=-p);const f=wf({delta:p,initialLayout:null!=u?u:c,panelConstraints:d.map(e=>e.constraints),pivotIndices:h,prevLayout:c,trigger:Im(n)?"keyboard":"mouse-or-touch"}),g=!Af(c,f);(Dm(n)||jm(n))&&L.current!=p&&(L.current=p,lf(e,g||0===p?0:m?p<0?Xm:Ym:p<0?Zm:Gm)),g&&(N(f),A.current.layout=f,l&&l(f),Tf(d,f,P.current))}},[]),B=v((e,t)=>{const{onLayout:n}=T.current,{layout:r,panelDataArray:a}=A.current,o=a.map(e=>e.constraints),{panelSize:i,pivotIndices:s}=Hf(a,e,r);pf(null!=i,`Panel size not found for panel "${e.id}"`);const l=wf({delta:_f(a,e)===a.length-1?i-t:t-i,initialLayout:r,panelConstraints:o,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});Af(r,l)||(N(l),A.current.layout=l,n&&n(l),Tf(a,l,P.current))},[]),F=v((e,t)=>{const{layout:n,panelDataArray:r}=A.current,{collapsedSize:a=0,collapsible:o}=t,{collapsedSize:i=0,collapsible:s,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:d}=Hf(r,e,n);null!=d&&(o&&s&&ff(d,a)?ff(a,i)||B(e,i):d<c?B(e,c):d>l&&B(e,l))},[B]),_=v((e,t)=>{const{direction:n}=T.current,{layout:r}=A.current;if(!y.current)return;const a=Nf(e,y.current);pf(a,`Drag handle element not found for id "${e}"`);const o=Mf(n,t);x({dragHandleId:e,dragHandleRect:a.getBoundingClientRect(),initialCursorPosition:o,initialLayout:r})},[]),H=v(()=>{x(null)},[]),$=v(e=>{const{panelDataArray:t}=A.current,n=_f(t,e);n>=0&&(t.splice(n,1),delete P.current[e.id],A.current.panelDataArrayChanged=!0,S())},[S]),W=u(()=>({collapsePanel:E,direction:r,dragState:b,expandPanel:z,getPanelSize:R,getPanelStyle:V,groupId:w,isPanelCollapsed:I,isPanelExpanded:D,reevaluatePanelConstraints:F,registerPanel:j,registerResizeHandle:O,resizePanel:B,startDragging:_,stopDragging:H,unregisterPanel:$,panelGroupElement:y.current}),[E,b,r,z,R,V,w,I,D,F,j,O,B,_,H,$]),U={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return l(um.Provider,{value:W},l(f,{...g,children:t,className:n,id:o,ref:y,style:{...U,...m},[hm]:"",[pm]:r,[mm]:w}))}const Ff=o((e,t)=>l(Bf,{...e,forwardedRef:t}));function _f(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function Hf(e,t,n){const r=_f(e,t),a=r===e.length-1?[r-1,r]:[r,r+1],o=n[r];return{...t.constraints,panelSize:o,pivotIndices:a}}function $f({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:a,onBlur:o,onClick:c,onDragging:u,onFocus:h,onPointerDown:p,onPointerUp:m,style:g={},tabIndex:v=0,tagName:w="div",...y}){var b,x;const k=i(null),C=i({onClick:c,onDragging:u,onPointerDown:p,onPointerUp:m});s(()=>{C.current.onClick=c,C.current.onDragging=u,C.current.onPointerDown=p,C.current.onPointerUp=m});const N=f(um);if(null===N)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:S,groupId:P,registerResizeHandle:M,startDragging:L,stopDragging:T,panelGroupElement:A}=N,E=Lm(a),[z,R]=d("inactive"),[V,I]=d(!1),[D,j]=d(null),O=i({state:z});Nm(()=>{O.current.state=z}),s(()=>{if(n)j(null);else{const e=M(E);j(()=>e)}},[n,E,M]);const B=null!==(b=null==r?void 0:r.coarse)&&void 0!==b?b:15,F=null!==(x=null==r?void 0:r.fine)&&void 0!==x?x:5;s(()=>{if(n||null==D)return;const e=k.current;pf(e,"Element ref not attached");let t=!1;return function(e,t,n,r,a){var o;const{ownerDocument:i}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:a},l=null!==(o=Jm.get(i))&&void 0!==o?o:0;return Jm.set(i,l+1),tf.add(s),uf(),function(){var t;ef.delete(e),tf.delete(s);const n=null!==(t=Jm.get(i))&&void 0!==t?t:1;if(Jm.set(i,n-1),uf(),1===n&&Jm.delete(i),Km.includes(s)){const e=Km.indexOf(s);e>=0&&Km.splice(e,1),cf(),a("up",!0,null)}}}(E,e,S,{coarse:B,fine:F},(e,n,r)=>{if(n)switch(e){case"down":{R("drag"),t=!1,pf(r,'Expected event to be defined for "down" action'),L(E,r);const{onDragging:e,onPointerDown:n}=C.current;null==e||e(!0),null==n||n();break}case"move":{const{state:e}=O.current;t=!0,"drag"!==e&&R("hover"),pf(r,'Expected event to be defined for "move" action'),D(r);break}case"up":{R("hover"),T();const{onClick:e,onDragging:n,onPointerUp:r}=C.current;null==n||n(!1),null==r||r(),t||null==e||e();break}}else R("inactive")})},[B,S,n,F,M,E,D,L,T]),function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){s(()=>{if(e||null==n||null==r)return;const a=Nf(t,r);if(null==a)return;const o=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=a.getAttribute(mm);pf(n,`No group element found for id "${n}"`);const o=bf(n,r),i=xf(n,t,r);pf(null!==i,`No resize element found for id "${t}"`),o[e.shiftKey?i>0?i-1:o.length-1:i+1<o.length?i+1:0].focus();break}}};return a.addEventListener("keydown",o),()=>{a.removeEventListener("keydown",o)}},[r,e,t,n])}({disabled:n,handleId:E,resizeHandler:D,panelGroupElement:A});return l(w,{...y,children:e,className:t,id:a,onBlur:()=>{I(!1),null==o||o()},onFocus:()=>{I(!0),null==h||h()},ref:k,role:"separator",style:{touchAction:"none",userSelect:"none",...g},tabIndex:v,[pm]:S,[mm]:P,[ym]:"",[bm]:"drag"===z?"pointer":V?"keyboard":void 0,[xm]:!n,[km]:E,[Cm]:z})}Bf.displayName="PanelGroup",Ff.displayName="forwardRef(PanelGroup)",$f.displayName="PanelResizeHandle";const Wf=({className:t="",...n})=>e(Ff,{className:wt("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...n}),Uf=Am,Xf=({withHandle:t,className:n="",...r})=>e($f,{className:wt("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("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e(Kt,{className:"h-2.5 w-2.5"})})}),Yf=({withHandle:t,className:n="",...r})=>e($f,{className:wt("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("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(Kt,{className:"h-2.5 w-2.5"})})});function Zf({icon:n,label:r,id:a,isActive:o=!1,isEditing:i=!1,isDragging:s=!1,isAvailable:l=!0,isInChat:c=!1,onBadgeAction:d,onToggle:u,className:h,...p}){const m=i&&l,f="1"===a&&c;return t(Dp.button,{onClick:e=>{if(f)return e.preventDefault(),void e.stopPropagation();!i&&u&&(e.preventDefault(),e.stopPropagation(),u())},className:wt("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",m&&"cursor-move",f&&"cursor-not-allowed opacity-50 hover:shadow-sm",h),animate:{scale:s?1.1:1,boxShadow:s?"0 10px 25px rgba(0,0,0,0.1)":void 0},whileTap:{scale:s?1.1:f?1:.97},transition:{type:"tween",duration:.1,ease:"easeOut"},...p,children:[n&&e(n,{className:wt("relative h-5 w-5 md:h-4 md:w-4",!r&&"mx-auto")}),e("span",{className:"relative hidden md:inline",children:r}),i&&!s&&e(Dp.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(),d?.()},children:e(l?an:tn,{className:"h-3 w-3"})})]})}const Gf=me.Value,qf=r.forwardRef(({className:n="",children:r,...a},o)=>t(me.Trigger,{ref:o,className:wt("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",n),...a,children:[r,e(me.Icon,{asChild:!0,children:e(T,{className:"h-4 w-4 opacity-50"})})]}));qf.displayName=me.Trigger.displayName;const Kf=r.forwardRef(({className:t="",...n},r)=>e(me.ScrollUpButton,{ref:r,className:wt("flex cursor-default items-center justify-center py-1 dark:text-white",t),...n,children:e(E,{})}));Kf.displayName=me.ScrollUpButton.displayName;const Qf=r.forwardRef(({className:t="",...n},r)=>e(me.ScrollDownButton,{ref:r,className:wt("flex cursor-default items-center justify-center py-1 dark:text-white",t),...n,children:e(P,{})}));Qf.displayName=me.ScrollDownButton.displayName;const Jf=r.forwardRef(({className:n="",children:r,position:a="popper",...o},i)=>e(me.Portal,{children:t(me.Content,{ref:i,className:wt("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"===a?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":"",n),position:a,...o,children:[e(Kf,{}),e(me.Viewport,{className:wt("p-1","popper"===a?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:r}),e(Qf,{})]})}));Jf.displayName=me.Content.displayName;const eg=r.forwardRef(({className:t="",...n},r)=>e(me.Label,{ref:r,className:wt("px-2 py-1.5 text-sm font-semibold",t),...n}));eg.displayName=me.Label.displayName;const tg=r.forwardRef(({className:n="",children:r,...a},o)=>t(me.Item,{ref:o,className:wt("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",n),...a,children:[e("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e(me.ItemIndicator,{children:e(z,{className:"h-4 w-4"})})}),e(me.ItemText,{children:r})]}));tg.displayName=me.Item.displayName;const ng=r.forwardRef(({className:t="",...n},r)=>e(me.Separator,{ref:r,className:wt("-mx-1 my-1 h-px bg-muted",t),...n}));function rg({selectedValue:n,displayValue:r,items:a,setValue:o,ariaLabel:i,searchPlaceholder:s,selectPlaceholder:l,isCollapsed:c,SelectIcon:d}){const u=(a??[]).map(e=>"string"==typeof e?{label:e,value:e}:e),{open:h,setOpen:p,setSearchValue:m,matches:f}=cr({value:n,options:u});return e(me.Root,{value:n,onValueChange:o,open:h,onOpenChange:()=>{!0!==h?setTimeout(()=>{p(!h)},75):p(!1)},children:t(V,{open:h,setOpen:p,resetValueOnHide:!0,includesBaseElement:!1,setValue:e=>{C(()=>{m(e)})},children:[e(qf,{"aria-label":i,className:wt("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:t(Gf,{placeholder:l,children:[e("div",{className:"assistant-item flex items-center justify-center overflow-hidden rounded-full",children:d||e(P,{})}),e("span",{className:wt("ml-2",c?"hidden":""),style:{userSelect:"none"},children:n?r??n:l&&l})]})}),e(me.Portal,{children:t(me.Content,{role:"dialog","aria-label":i+"s",position:"popper",className:wt("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:[t(me.Viewport,{className:"mb-5 h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",children:[t("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(nn,{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(I,{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(D,{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(j,{className:"overflow-y-auto p-1 py-2",children:f.map(({label:n,value:r,icon:a})=>e(me.Item,{value:`${r??""}`,asChild:!0,children:t(O,{className:wt("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:()=>{o(`${r??""}`),p(!1)},children:[e("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e(me.ItemIndicator,{children:e(z,{className:"h-4 w-4"})})}),e(me.ItemText,{children:t("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("div",{className:"assistant-item overflow-hidden rounded-full",children:a&&a}),n]})})]})},r))})]}),e(Qf,{className:"absolute bottom-0 left-0 right-0"})]})})]})})}ng.displayName=me.Separator.displayName;const ag=e=>"object"==typeof e&&"divider"in e,og=e=>"object"==typeof e&&"value"in e&&"label"in e,ig=({value:n,label:r="",onChange:a,options:o,className:i="",sizeClasses:s,testId:l="dropdown-menu",icon:c,iconOnly:d=!1,renderValue:u,ariaLabel:h,portal:p=!0})=>{const m=fe.useSelectStore({value:n,setValue:e=>{a(e)}}),f=e=>{if(null!=e&&""!==e)return o.filter(e=>!ag(e)).map(e=>"string"==typeof e?{value:e,label:e}:e).find(t=>og(t)&&t.value===e)};return t("div",{className:wt("relative",i),children:[t(fe.Select,{store:m,className:wt("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",d?"h-full w-10":"w-fit gap-2",i),"data-testid":l,"aria-label":h,children:[t("div",{className:"flex w-full items-center gap-2",children:[c,!d&&t("span",{className:"block truncate",children:[r,(()=>{const e=f(n);return e&&u?u(e):(e=>{if(null==e||""===e)return"";const t=f(e);return t?t.label:e})(n)})()]})]}),!d&&e(fe.SelectArrow,{})]}),e(fe.SelectPopover,{portal:p,store:m,className:wt("popover-ui",s,i,"max-h-[80vh] overflow-y-auto"),children:o.map((r,a)=>{if(ag(r))return e("div",{className:"my-1 border-t border-border-heavy"},`divider-${a}`);const o="string"==typeof r?{value:r,label:r}:r;return og(o)?e(fe.SelectItem,{value:String(o.value),className:"select-item","data-theme":o.value,children:t("div",{className:"flex w-full items-center gap-2",children:[null!=o.icon&&e("span",{children:o.icon}),e("span",{className:"block truncate",children:o.label}),n===o.value&&e("span",{className:"ml-auto pl-2",children:e("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("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-${a}`):null})})]})};var sg=Cg(),lg=e=>yg(e,sg),cg=Cg();lg.write=e=>yg(e,cg);var dg=Cg();lg.onStart=e=>yg(e,dg);var ug=Cg();lg.onFrame=e=>yg(e,ug);var hg=Cg();lg.onFinish=e=>yg(e,hg);var pg=[];lg.setTimeout=(e,t)=>{const n=lg.now()+t,r=()=>{const e=pg.findIndex(e=>e.cancel==r);~e&&pg.splice(e,1),vg-=~e?1:0},a={time:n,handler:e,cancel:r};return pg.splice(mg(n),0,a),vg+=1,bg(),a};var mg=e=>~(~pg.findIndex(t=>t.time>e)||~pg.length);lg.cancel=e=>{dg.delete(e),ug.delete(e),hg.delete(e),sg.delete(e),cg.delete(e)},lg.sync=e=>{wg=!0,lg.batchedUpdates(e),wg=!1},lg.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,lg.onStart(n)}return r.handler=e,r.cancel=()=>{dg.delete(n),t=null},r};var fg="undefined"!=typeof window?window.requestAnimationFrame:()=>{};lg.use=e=>fg=e,lg.now="undefined"!=typeof performance?()=>performance.now():Date.now,lg.batchedUpdates=e=>e(),lg.catch=console.error,lg.frameLoop="always",lg.advance=()=>{"demand"!==lg.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):kg()};var gg=-1,vg=0,wg=!1;function yg(e,t){wg?(t.delete(e),e(0)):(t.add(e),bg())}function bg(){gg<0&&(gg=0,"demand"!==lg.frameLoop&&fg(xg))}function xg(){~gg&&(fg(xg),lg.batchedUpdates(kg))}function kg(){const e=gg;gg=lg.now();const t=mg(gg);t&&(Ng(pg.splice(0,t),e=>e.handler()),vg-=t),vg?(dg.flush(),sg.flush(e?Math.min(64,gg-e):16.667),ug.flush(),cg.flush(),hg.flush()):gg=-1}function Cg(){let e=new Set,t=e;return{add(n){vg+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(vg-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,vg-=t.size,Ng(t,t=>t(n)&&e.add(t)),vg+=e.size,t=e)}}}function Ng(e,t){e.forEach(e=>{try{t(e)}catch(e){lg.catch(e)}})}var Sg=Object.defineProperty,Pg={};function Mg(){}((e,t)=>{for(var n in t)Sg(e,n,{get:t[n],enumerable:!0})})(Pg,{assign:()=>_g,colors:()=>Og,createStringInterpolator:()=>Vg,skipAnimation:()=>Bg,to:()=>Ig,willAdvance:()=>Fg});var Lg={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 Tg(e,t){if(Lg.arr(e)){if(!Lg.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 Ag=(e,t)=>e.forEach(t);function Eg(e,t,n){if(Lg.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 zg=e=>Lg.und(e)?[]:Lg.arr(e)?e:[e];function Rg(e,t){if(e.size){const n=Array.from(e);e.clear(),Ag(n,t)}}var Vg,Ig,Dg=(e,...t)=>Rg(e,e=>e(...t)),jg=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Og=null,Bg=!1,Fg=Mg,_g=e=>{e.to&&(Ig=e.to),e.now&&(lg.now=e.now),void 0!==e.colors&&(Og=e.colors),null!=e.skipAnimation&&(Bg=e.skipAnimation),e.createStringInterpolator&&(Vg=e.createStringInterpolator),e.requestAnimationFrame&&lg.use(e.requestAnimationFrame),e.batchedUpdates&&(lg.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Fg=e.willAdvance),e.frameLoop&&(lg.frameLoop=e.frameLoop)},Hg=new Set,$g=[],Wg=[],Ug=0,Xg={get idle(){return!Hg.size&&!$g.length},start(e){Ug>e.priority?(Hg.add(e),lg.onStart(Yg)):(Zg(e),lg(qg))},advance:qg,sort(e){if(Ug)lg.onFrame(()=>Xg.sort(e));else{const t=$g.indexOf(e);~t&&($g.splice(t,1),Gg(e))}},clear(){$g=[],Hg.clear()}};function Yg(){Hg.forEach(Zg),Hg.clear(),lg(qg)}function Zg(e){$g.includes(e)||Gg(e)}function Gg(e){$g.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}($g,t=>t.priority>e.priority),0,e)}function qg(e){const t=Wg;for(let n=0;n<$g.length;n++){const r=$g[n];Ug=r.priority,r.idle||(Fg(r),r.advance(e),r.idle||t.push(r))}return Ug=0,(Wg=$g).length=0,($g=t).length>0}var Kg="[-+]?\\d*\\.?\\d+",Qg=Kg+"%";function Jg(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ev=new RegExp("rgb"+Jg(Kg,Kg,Kg)),tv=new RegExp("rgba"+Jg(Kg,Kg,Kg,Kg)),nv=new RegExp("hsl"+Jg(Kg,Qg,Qg)),rv=new RegExp("hsla"+Jg(Kg,Qg,Qg,Kg)),av=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ov=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,iv=/^#([0-9a-fA-F]{6})$/,sv=/^#([0-9a-fA-F]{8})$/;function lv(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 cv(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,o=lv(a,r,e+1/3),i=lv(a,r,e),s=lv(a,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function dv(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function uv(e){return(parseFloat(e)%360+360)%360/360}function hv(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pv(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function mv(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=iv.exec(e))?parseInt(t[1]+"ff",16)>>>0:Og&&void 0!==Og[e]?Og[e]:(t=ev.exec(e))?(dv(t[1])<<24|dv(t[2])<<16|dv(t[3])<<8|255)>>>0:(t=tv.exec(e))?(dv(t[1])<<24|dv(t[2])<<16|dv(t[3])<<8|hv(t[4]))>>>0:(t=av.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=sv.exec(e))?parseInt(t[1],16)>>>0:(t=ov.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=nv.exec(e))?(255|cv(uv(t[1]),pv(t[2]),pv(t[3])))>>>0:(t=rv.exec(e))?(cv(uv(t[1]),pv(t[2]),pv(t[3]))|hv(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 fv=(e,t,n)=>{if(Lg.fun(e))return e;if(Lg.arr(e))return fv({range:e,output:t,extrapolate:n});if(Lg.str(e.output[0]))return Vg(e);const r=e,a=r.output,o=r.range||[0,1],i=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,o);return function(e,t,n,r,a,o,i,s,l){let c=l?l(e):e;if(c<t){if("identity"===i)return c;"clamp"===i&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(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,i,s,r.map)}};var gv=Symbol.for("FluidValue.get"),vv=Symbol.for("FluidValue.observers"),wv=e=>Boolean(e&&e[gv]),yv=e=>e&&e[gv]?e[gv]():e,bv=e=>e[vv]||null;function xv(e,t){const n=e[vv];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}var kv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Cv(this,e)}},Cv=(e,t)=>Mv(e,gv,t);function Nv(e,t){if(e[gv]){let n=e[vv];n||Mv(e,vv,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Sv(e,t){const n=e[vv];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[vv]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Pv,Mv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Lv=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Tv=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Av=new RegExp(`(${Lv.source})(%|[a-z]+)`,"i"),Ev=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,zv=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Rv=e=>{const[t,n]=Vv(e);if(!t||jg())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&&zv.test(n)?Rv(n):n||e},Vv=e=>{const t=zv.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Iv=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,Dv=e=>{Pv||(Pv=Og?new RegExp(`(${Object.keys(Og).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>yv(e).replace(zv,Rv).replace(Tv,mv).replace(Pv,mv)),n=t.map(e=>e.match(Lv).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=>fv({...e,output:t}));return e=>{const n=!Av.test(t[0])&&t.find(e=>Av.test(e))?.replace(Lv,"");let a=0;return t[0].replace(Lv,()=>`${r[a++](e)}${n||""}`).replace(Ev,Iv)}},jv="react-spring: ",Ov=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${jv}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Bv=Ov(console.warn);var Fv=Ov(console.warn);function _v(e){return Lg.str(e)&&("#"==e[0]||/\d/.test(e)||!jg()&&zv.test(e)||e in(Og||{}))}var Hv=jg()?s:p;function $v(){const e=d()[1],t=(()=>{const e=i(!1);return Hv(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{t.current&&e(Math.random())}}var Wv=e=>s(e,Uv),Uv=[];function Xv(e){const t=i(void 0);return s(()=>{t.current=e}),t.current}var Yv=Symbol.for("Animated:node"),Zv=e=>e&&e[Yv],Gv=(e,t)=>{return n=e,r=Yv,a=t,Object.defineProperty(n,r,{value:a,writable:!0,configurable:!0});var n,r,a},qv=e=>e&&e[Yv]&&e[Yv].getPayload(),Kv=class{constructor(){Gv(this,this)}getPayload(){return this.payload||[]}},Qv=class e extends Kv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Lg.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 Lg.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,Lg.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Jv=class e extends Qv{constructor(e){super(0),this._string=null,this._toString=fv({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(Lg.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=fv({output:[this.getValue(),e]})),this._value=0,super.reset()}},ew={dependencies:null},tw=class extends Kv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Eg(this.source,(n,r)=>{var a;(a=n)&&a[Yv]===a?t[r]=n.getValue(e):wv(n)?t[r]=yv(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ag(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Eg(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ew.dependencies&&wv(e)&&ew.dependencies.add(e);const t=qv(e);t&&Ag(t,e=>this.add(e))}},nw=class e extends tw{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(rw)),!0)}};function rw(e){return(_v(e)?Jv:Qv).create(e)}function aw(e){const t=Zv(e);return t?t.constructor:Lg.arr(e)?nw:_v(e)?Jv:Qv}var ow=(e,t)=>{const n=!Lg.fun(e)||e.prototype&&e.prototype.isReactComponent;return o((a,o)=>{const l=i(null),c=n&&v(e=>{l.current=function(e,t){e&&(Lg.fun(e)?e(t):e.current=t);return t}(o,e)},[o]),[d,u]=function(e,t){const n=new Set;ew.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new tw(e),ew.dependencies=null,[e,n]}(a,t),h=$v(),p=()=>{const e=l.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,d.getValue(!0)))&&h()},m=new iw(p,u),f=i(void 0);Hv(()=>(f.current=m,Ag(u,e=>Nv(e,m)),()=>{f.current&&(Ag(f.current.deps,e=>Sv(e,f.current)),lg.cancel(f.current.update))})),s(p,[]),Wv(()=>()=>{const e=f.current;Ag(e.deps,t=>Sv(t,e))});const g=t.getComponentProps(d.getValue());return r.createElement(e,{...g,ref:c})})},iw=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&lg.write(this.update)}};var sw=Symbol.for("AnimatedComponent"),lw=e=>Lg.str(e)?e:e&&Lg.str(e.displayName)?e.displayName:Lg.fun(e)&&e.name||null;function cw(e,...t){return Lg.fun(e)?e(...t):e}var dw=(e,t)=>!0===e||!!(t&&e&&(Lg.fun(e)?e(t):zg(e).includes(t))),uw=(e,t)=>Lg.obj(e)?t&&e[t]:e,hw=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,pw=e=>e,mw=(e,t=pw)=>{let n=fw;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);Lg.und(n)||(r[a]=n)}return r},fw=["config","onProps","onStart","onChange","onPause","onResume","onRest"],gw={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 vw(e){const t=function(e){const t={};let n=0;if(Eg(e,(e,r)=>{gw[r]||(t[r]=e,n++)}),n)return t}(e);if(t){const n={to:t};return Eg(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function ww(e){return e=yv(e),Lg.arr(e)?e.map(ww):_v(e)?Pg.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yw(e){return Lg.fun(e)||Lg.arr(e)&&Lg.obj(e[0])}var bw={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},xw=class{constructor(){this.velocity=0,Object.assign(this,bw)}};function kw(e,t){if(Lg.und(t.decay)){const n=!Lg.und(t.tension)||!Lg.und(t.friction);!n&&Lg.und(t.frequency)&&Lg.und(t.damping)&&Lg.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Cw=[],Nw=class{constructor(){this.changed=!1,this.values=Cw,this.toValues=null,this.fromValues=Cw,this.config=new xw,this.immediate=!1}};function Sw(e,{key:t,props:n,defaultProps:r,state:a,actions:o}){return new Promise((i,s)=>{let l,c,d=dw(n.cancel??r?.cancel,t);if(d)p();else{Lg.und(n.pause)||(a.paused=dw(n.pause,t));let e=r?.pause;!0!==e&&(e=a.paused||dw(e,t)),l=cw(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-lg.now()}function h(){l>0&&!Pg.skipAnimation?(a.delayed=!0,c=lg.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},i)}catch(e){s(e)}}})}var Pw=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Tw(e.get()):t.every(e=>e.noop)?Mw(e.get()):Lw(e.get(),t.every(e=>e.finished)),Mw=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Lw=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Tw=e=>({value:e,cancelled:!0,finished:!1});function Aw(e,t,n,r){const{callId:a,parentId:o,onRest:i}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const c=mw(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)&&Tw(r)||a!==n.asyncId&&Lw(r,!1);if(t)throw e.result=t,u(e),e},m=(e,t)=>{const o=new zw,i=new Rw;return(async()=>{if(Pg.skipAnimation)throw Ew(n),i.result=Lw(r,!1),u(i),i;p(o);const s=Lg.obj(e)?{...e}:{...t,to:e};s.parentId=a,Eg(c,(e,t)=>{Lg.und(s[t])&&(s[t]=e)});const l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};let f;if(Pg.skipAnimation)return Ew(n),Lw(r,!1);try{let t;t=Lg.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=Lw(r.get(),!0,!1)}catch(e){if(e instanceof zw)f=e.result;else{if(!(e instanceof Rw))throw e;f=e.result}}finally{a==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return Lg.fun(i)&&lg.batchedUpdates(()=>{i(f,r,r.item)}),f})():l}function Ew(e,t){Rg(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var zw=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.")}},Rw=class extends Error{constructor(){super("SkipAnimationSignal")}},Vw=e=>e instanceof Dw,Iw=1,Dw=class extends kv{constructor(){super(...arguments),this.id=Iw++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Zv(this);return e&&e.getValue()}to(...e){return Pg.to(this,e)}interpolate(...e){return Bv(`${jv}The "interpolate" function is deprecated in v9 (use "to" instead)`),Pg.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){xv(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Xg.sort(this),xv(this,{type:"priority",parent:this,priority:e})}},jw=Symbol.for("SpringPhase"),Ow=e=>(1&e[jw])>0,Bw=e=>(2&e[jw])>0,Fw=e=>(4&e[jw])>0,_w=(e,t)=>t?e[jw]|=3:e[jw]&=-3,Hw=(e,t)=>t?e[jw]|=4:e[jw]&=-5,$w=class extends Dw{constructor(e,t){if(super(),this.animation=new Nw,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,!Lg.und(e)||!Lg.und(t)){const n=Lg.obj(e)?{...e}:{...t,from:e};Lg.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Bw(this)||this._state.asyncTo)||Fw(this)}get goal(){return yv(this.animation.to)}get velocity(){const e=Zv(this);return e instanceof Qv?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return Ow(this)}get isAnimating(){return Bw(this)}get isPaused(){return Fw(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,i=qv(r.to);!i&&wv(r.to)&&(a=zg(yv(r.to))),r.values.forEach((s,l)=>{if(s.done)return;const c=s.constructor==Jv?1:i?i[l].lastPosition:a[l];let d=r.immediate,u=c;if(!d){if(u=s.lastPosition,o.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=Lg.arr(o.velocity)?o.velocity[l]:o.velocity;let i;const h=o.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(Lg.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(s.lastPosition-u)<=h,i=a*r}else{i=null==s.lastVelocity?a:s.lastVelocity;const t=o.restVelocity||h/10,r=o.clamp?0:o.bounce,l=!Lg.und(r),p=n==c?s.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(i)>t,m||(d=Math.abs(c-u)<=h,!d));++e){l&&(f=u==c||u>c==p,f&&(i=-i*r,u=c));i+=(1e-6*-o.tension*(u-c)+.001*-o.friction*i)/o.mass*g,u+=i*g}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),u=n+o.easing(r)*(c-n),i=(u-s.lastPosition)/e,d=1==r}s.lastVelocity=i,Number.isNaN(u)&&(console.warn("Got NaN while animating:",this),d=!0)}i&&!i[l].done&&(d=!1),d?s.done=!0:t=!1,s.setValue(u,o.round)&&(n=!0)});const s=Zv(this),l=s.getValue();if(t){const e=yv(r.to);l===e&&!n||o.decay?n&&o.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return lg.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Bw(this)){const{to:e,config:t}=this.animation;lg.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 Lg.und(e)?(n=this.queue||[],this.queue=[]):n=[Lg.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>Pw(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ew(this._state,e&&this._lastCallId),lg.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=Lg.obj(n)?n[t]:n,(null==n||yw(n))&&(n=void 0),r=Lg.obj(r)?r[t]:r,null==r&&(r=void 0);const a={to:n,from:r};return Ow(this)||(e.reverse&&([n,r]=[r,n]),r=yv(r),Lg.und(r)?Zv(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,mw(e,(e,t)=>/^on/.test(t)?uw(e,n):e)),qw(this,e,"onProps"),Kw(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 Sw(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Fw(this)||(Hw(this,!0),Dg(o.pauseQueue),Kw(this,"onPause",Lw(this,Ww(this,this.animation.to)),this))},resume:()=>{Fw(this)&&(Hw(this,!1),Bw(this)&&this._resume(),Dg(o.resumeQueue),Kw(this,"onResume",Lw(this,Ww(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=Uw(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Tw(this));const r=!Lg.und(e.to),a=!Lg.und(e.from);if(r||a){if(!(t.callId>this._lastToId))return n(Tw(this));this._lastToId=t.callId}const{key:o,defaultProps:i,animation:s}=this,{to:l,from:c}=s;let{to:d=l,from:u=c}=e;!a||r||t.default&&!Lg.und(d)||(d=u),t.reverse&&([d,u]=[u,d]);const h=!Tg(u,c);h&&(s.from=u),u=yv(u);const p=!Tg(d,l);p&&this._focus(d);const m=yw(t.to),{config:f}=s,{decay:g,velocity:v}=f;(r||a)&&(f.velocity=0),t.config&&!m&&function(e,t,n){n&&(kw(n={...n},t),t={...n,...t}),kw(e,t),Object.assign(e,t);for(const t in bw)null==e[t]&&(e[t]=bw[t]);let{frequency:r,damping:a}=e;const{mass:o}=e;Lg.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,cw(t.config,o),t.config!==i.config?cw(i.config,o):void 0);let w=Zv(this);if(!w||Lg.und(d))return n(Lw(this,!0));const y=Lg.und(t.reset)?a&&!t.default:!Lg.und(u)&&dw(t.reset,o),b=y?u:this.get(),x=ww(d),k=Lg.num(x)||Lg.arr(x)||_v(x),C=!m&&(!k||dw(i.immediate||t.immediate,o));if(p){const e=aw(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(x)}}const N=w.constructor;let S=wv(d),P=!1;if(!S){const e=y||!Ow(this)&&h;(p||e)&&(P=Tg(ww(b),x),S=!P),(Tg(s.immediate,C)||C)&&Tg(f.decay,g)&&Tg(f.velocity,v)||(S=!0)}if(P&&Bw(this)&&(s.changed&&!y?S=!0:S||this._stop(l)),!m&&((S||wv(l))&&(s.values=w.getPayload(),s.toValues=wv(d)?null:N==Jv?[1]:zg(x)),s.immediate!=C&&(s.immediate=C,C||y||this._set(l)),S)){const{onRest:e}=s;Ag(Gw,e=>qw(this,t,e));const r=Lw(this,Ww(this,l));Dg(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&lg.batchedUpdates(()=>{s.changed=!y,e?.(r,this),y?cw(i.onRest,r):s.onStart?.(r,this)})}y&&this._set(b),m?n(Aw(t.to,t,this._state,this)):S?this._start():Bw(this)&&!p?this._pendingCalls.add(n):n(Mw(b))}_focus(e){const t=this.animation;e!==t.to&&(bv(this)&&this._detach(),t.to=e,bv(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;wv(t)&&(Nv(t,this),Vw(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;wv(e)&&Sv(e,this)}_set(e,t=!0){const n=yv(e);if(!Lg.und(n)){const e=Zv(this);if(!e||!Tg(n,e.getValue())){const r=aw(n);e&&e.constructor==r?e.setValue(n):Gv(this,r.create(n)),e&&lg.batchedUpdates(()=>{this._onChange(n,t)})}}return Zv(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Kw(this,"onStart",Lw(this,Ww(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),cw(this.animation.onChange,e,this)),cw(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Zv(this).reset(yv(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),Bw(this)||(_w(this,!0),Fw(this)||this._resume())}_resume(){Pg.skipAnimation?this.finish():Xg.start(this)}_stop(e,t){if(Bw(this)){_w(this,!1);const n=this.animation;Ag(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),xv(this,{type:"idle",parent:this});const r=t?Tw(this.get()):Lw(this.get(),Ww(this,e??n.to));Dg(this._pendingCalls,r),n.changed&&(n.changed=!1,Kw(this,"onRest",r,this))}}};function Ww(e,t){const n=ww(t);return Tg(ww(e.get()),n)}function Uw(e,t=e.loop,n=e.to){const r=cw(t);if(r){const a=!0!==r&&vw(r),o=(a||e).reverse,i=!a||a.reset;return Xw({...e,loop:t,default:!1,pause:void 0,to:!o||yw(n)?n:void 0,from:i?e.from:void 0,reset:i,...a})}}function Xw(e){const{to:t,from:n}=e=vw(e),r=new Set;return Lg.obj(t)&&Zw(t,r),Lg.obj(n)&&Zw(n,r),e.keys=r.size?Array.from(r):null,e}function Yw(e){const t=Xw(e);return Lg.und(t.default)&&(t.default=mw(t)),t}function Zw(e,t){Eg(e,(e,n)=>null!=e&&t.add(n))}var Gw=["onStart","onRest","onChange","onPause","onResume"];function qw(e,t,n){e.animation[n]=t[n]!==hw(t,n)?uw(t[n],e.key):void 0}function Kw(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Qw=["onStart","onChange","onRest"],Jw=1,ey=class{constructor(e,t){this.id=Jw++,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];Lg.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Xw(e)),this}start(e){let{queue:t}=this;return e?t=zg(e).map(Xw):this.queue=[],this._flush?this._flush(this,t):(sy(this,t),ty(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ag(zg(t),t=>n[t].stop(!!e))}else Ew(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(Lg.und(e))this.start({pause:!0});else{const t=this.springs;Ag(zg(e),e=>t[e].pause())}return this}resume(e){if(Lg.und(e))this.start({pause:!1});else{const t=this.springs;Ag(zg(e),e=>t[e].resume())}return this}each(e){Eg(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,Rg(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const o=!r&&this._started,i=a||o&&n.size?this.get():null;a&&t.size&&Rg(t,([e,t])=>{t.value=i,e(t,this,this._item)}),o&&(this._started=!1,Rg(n,([e,t])=>{t.value=i,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)}lg.onFrame(this._onFrame)}};function ty(e,t){return Promise.all(t.map(t=>ny(e,t))).then(t=>Pw(e,t))}async function ny(e,t,n){const{keys:r,to:a,from:o,loop:i,onRest:s,onResolve:l}=t,c=Lg.obj(t.default)&&t.default;i&&(t.loop=!1),!1===a&&(t.to=null),!1===o&&(t.from=null);const d=Lg.arr(a)||Lg.fun(a)?a:void 0;d?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ag(Qw,n=>{const r=t[n];if(Lg.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,Dg(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===hw(t,"cancel");(d||p&&u.asyncId)&&h.push(Sw(++e._lastAsyncId,{props:t,state:u,actions:{pause:Mg,resume:Mg,start(t,n){p?(Ew(u,e._lastAsyncId),n(Tw(e))):(t.onRest=s,n(Aw(d,t,u,e)))}}})),u.paused&&await new Promise(e=>{u.resumeQueue.add(e)});const m=Pw(e,await Promise.all(h));if(i&&m.finished&&(!n||!m.noop)){const n=Uw(t,i,a);if(n)return sy(e,[n]),ny(e,n,!0)}return l&&lg.batchedUpdates(()=>l(m,e,e.item)),m}function ry(e,t){const n={...e.springs};return t&&Ag(zg(t),e=>{Lg.und(e.keys)&&(e=Xw(e)),Lg.obj(e.to)||(e={...e,to:void 0}),iy(n,e,e=>oy(e))}),ay(e,n),n}function ay(e,t){Eg(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,Nv(t,e))})}function oy(e,t){const n=new $w;return n.key=e,t&&Nv(n,t),n}function iy(e,t,n){t.keys&&Ag(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function sy(e,t){Ag(t,t=>{iy(e.springs,t,t=>oy(t,e))})}var ly=r.createContext({pause:!1,immediate:!1}),cy=()=>{const e=[],t=function(t){Fv(`${jv}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 Ag(e,(e,a)=>{if(Lg.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 Ag(e,e=>e.pause(...arguments)),this},t.resume=function(){return Ag(e,e=>e.resume(...arguments)),this},t.set=function(t){Ag(e,(e,n)=>{const r=Lg.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){const n=[];return Ag(e,(e,r)=>{if(Lg.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 Ag(e,e=>e.stop(...arguments)),this},t.update=function(t){return Ag(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return Lg.fun(e)?e(n,t):e};return t._getProps=n,t};var dy=class extends Dw{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=fv(...t);const n=this._get(),r=aw(n);Gv(this,r.create(n))}advance(e){const t=this._get();Tg(t,this.get())||(Zv(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&hy(this._active)&&py(this)}_get(){const e=Lg.arr(this.source)?this.source.map(yv):zg(yv(this.source));return this.calc(...e)}_start(){this.idle&&!hy(this._active)&&(this.idle=!1,Ag(qv(this),e=>{e.done=!1}),Pg.skipAnimation?(lg.batchedUpdates(()=>this.advance()),py(this)):Xg.start(this))}_attach(){let e=1;Ag(zg(this.source),t=>{wv(t)&&Nv(t,this),Vw(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ag(zg(this.source),e=>{wv(e)&&Sv(e,this)}),this._active.clear(),py(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=zg(this.source).reduce((e,t)=>Math.max(e,(Vw(t)?t.priority:0)+1),0))}};function uy(e){return!1!==e.idle}function hy(e){return!e.size||Array.from(e).every(uy)}function py(e){e.idle||(e.idle=!0,Ag(qv(e),e=>{e.done=!0}),xv(e,{type:"idle",parent:e}))}Pg.assign({createStringInterpolator:Dv,to:(e,t)=>new dy(e,t)});var my=/^--/;function fy(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||my.test(e)||vy.hasOwnProperty(e)&&vy[e]?(""+t).trim():t+"px"}var gy={};var vy={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},wy=["Webkit","Ms","Moz","O"];vy=Object.keys(vy).reduce((e,t)=>(wy.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),vy);var yy=/^(matrix|translate|scale|rotate|skew)/,by=/^(translate)/,xy=/^(rotate|skew)/,ky=(e,t)=>Lg.num(e)&&0!==e?e+t:e,Cy=(e,t)=>Lg.arr(e)?e.every(e=>Cy(e,t)):Lg.num(e)?e===t:parseFloat(e)===t,Ny=class extends tw{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=>ky(e,"px")).join(",")})`,Cy(e,0)])),Eg(r,(e,t)=>{if("transform"===t)a.push([e||""]),o.push(e=>[e,""===e]);else if(yy.test(t)){if(delete r[t],Lg.und(e))return;const n=by.test(t)?"px":xy.test(t)?"deg":"";a.push(zg(e)),o.push("rotate3d"===t?([e,t,r,a])=>[`rotate3d(${e},${t},${r},${ky(a,n)})`,Cy(a,0)]:e=>[`${t}(${e.map(e=>ky(e,n)).join(",")})`,Cy(e,t.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new Sy(a,o)),super(r)}},Sy=class extends kv{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 Ag(this.inputs,(n,r)=>{const a=yv(n[0]),[o,i]=this.transforms[r](Lg.arr(a)?a:n.map(yv));e+=" "+o,t=t&&i}),t?"none":e}observerAdded(e){1==e&&Ag(this.inputs,e=>Ag(e,e=>wv(e)&&Nv(e,this)))}observerRemoved(e){0==e&&Ag(this.inputs,e=>Ag(e,e=>wv(e)&&Sv(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),xv(this,e)}};Pg.assign({batchedUpdates:ge,createStringInterpolator:Dv,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 Py=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new tw(e),getComponentProps:r=e=>e}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=lw(e)||"Anonymous";return(e=Lg.str(e)?o[e]||(o[e]=ow(e,a)):e[sw]||(e[sw]=ow(e,a))).displayName=`Animated(${t})`,e};return Eg(e,(t,n)=>{Lg.arr(e)&&(n=lw(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:i,scrollLeft:s,viewBox:l,...c}=t,d=Object.values(c),u=Object.keys(c).map(t=>n||e.hasAttribute(t)?t:gy[t]||(gy[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=fy(t,a[t]);my.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!==i&&(e.scrollTop=i),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Ny(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),My=Py.animated;const Ly=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]},Ty=({text:r="",className:a="",delay:o=100,animationFrom:l={opacity:0,transform:"translate3d(0,40px,0)"},animationTo:c={opacity:1,transform:"translate3d(0,0,0)"},easing:h=e=>e,threshold:p=.1,rootMargin:m="-100px",textAlign:g="center",onLetterAnimationComplete:v,onLineCountChange:w})=>{const y=r.split(" ").map(Ly),b=y.flat(),[x,k]=d(!1),C=i(null),N=i(0),[S]=function(e,t,n){const r=Lg.fun(t)&&t;r&&!n&&(n=[]);const a=u(()=>r||3==arguments.length?cy():void 0,[]),o=i(0),s=$v(),l=u(()=>({ctrls:[],queue:[],flush(e,t){const n=ry(e,t);return o.current>0&&!l.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?ty(e,t):new Promise(r=>{ay(e,n),l.queue.push(()=>{r(ty(e,t))}),s()})}}),[]),c=i([...l.ctrls]),d=i([]),h=Xv(e)||0;function p(e,n){for(let a=e;a<n;a++){const e=c.current[a]||(c.current[a]=new ey(null,l.flush)),n=r?r(a,e):t[a];n&&(d.current[a]=Yw(n))}}u(()=>{Ag(c.current.slice(e,h),e=>{!function(e,t){e.ref?.delete(e),t?.delete(e)}(e,a),e.stop(!0)}),c.current.length=e,p(h,e)},[e]),u(()=>{p(0,Math.min(h,e))},n);const m=c.current.map((e,t)=>ry(e,d.current[t])),g=f(ly),v=Xv(g),w=g!==v&&function(e){for(const t in e)return!0;return!1}(g);Hv(()=>{o.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],Ag(e,e=>e())),Ag(c.current,(e,t)=>{a?.add(e),w&&e.start({default:g});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))})}),Wv(()=>()=>{Ag(l.ctrls,e=>e.stop(!0))});const y=m.map(e=>({...e}));return a?[y,a]:y}(b.length,e=>({from:l,to:x?async e=>{await e(c),N.current+=1,N.current===b.length&&v&&v()}:l,delay:e*o,config:{easing:h}}),[x,r,o,l,c,h,v]);return s(()=>{const e=new IntersectionObserver(([t])=>{t.isIntersecting&&(k(!0),C.current&&e.unobserve(C.current))},{threshold:p,rootMargin:m});return C.current&&e.observe(C.current),()=>e.disconnect()},[p,m]),s(()=>{if(C.current&&x){const e=C.current;setTimeout(()=>{const t=parseInt(getComputedStyle(e).lineHeight)||1.2*parseInt(getComputedStyle(e).fontSize),n=e.offsetHeight,r=Math.round(n/t);w&&w(r)},100)}},[x,r,w]),t(n,{children:[e("span",{className:"sr-only",children:r}),e("p",{ref:C,className:`split-parent inline overflow-hidden ${a}`,style:{textAlign:g,whiteSpace:"normal",wordWrap:"break-word"},"aria-hidden":"true",children:y.map((n,r)=>t("span",{style:{display:"inline-block",whiteSpace:"nowrap"},children:[n.map((t,n)=>{const a=y.slice(0,r).reduce((e,t)=>e+t.length,0)+n;return e(My.span,{style:S[a],className:"inline-block transform transition-opacity will-change-transform",children:t},a)}),r<y.length-1&&e("span",{style:{display:"inline-block",width:"0.3em"},children:" "})]},r))})]})},Ay=({value:n,onChange:r,isSearching:a,placeholder:o})=>{const i=!0===a,s=null!=n&&n.length>0;return t("div",{className:"relative w-full",children:[e("div",{className:"relative rounded-lg transition-all duration-500 ease-in-out",children:t("div",{className:"relative",children:[e("div",{className:"absolute left-3 top-1/2 z-50 -translate-y-1/2",children:e(nn,{className:wt("h-4 w-4 transition-all duration-500 ease-in-out",i&&s?"text-blue-400":"text-gray-400")})}),e("input",{type:"text",value:n,onChange:r,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("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&&s?"opacity-100 blur-sm":"opacity-0 blur-none"} `}),e("div",{className:`absolute right-3 top-1/2 z-20 -translate-y-1/2 transition-all duration-500 ease-in-out ${i&&s?"scale-100 opacity-100":"scale-0 opacity-0"} `,children:t("div",{className:"relative h-2 w-2",children:[e("div",{className:"absolute inset-0 animate-ping rounded-full bg-blue-500/60"}),e("div",{className:"absolute inset-0 rounded-full bg-blue-500"})]})})]})}),e("div",{className:`absolute -inset-8 -z-10 transition-all duration-700 ease-in-out ${i&&s?"scale-105 opacity-100":"scale-100 opacity-0"} `,children:t("div",{className:"absolute inset-0",children:[e("div",{className:`bg-gradient-radial absolute inset-0 from-blue-500/10 to-transparent transition-opacity duration-700 ease-in-out ${i&&s?"animate-pulse-slow opacity-100":"opacity-0"} `}),e("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&&s?"animate-gradient-x opacity-100":"opacity-0"} `})]})}),e("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"})]})};function Ey({className:t="icon-md"}){return e("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("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"})})}function zy({className:n=""}){return t("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:wt("lucide lucide-blocks",n),children:[e("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),e("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"})]})}function Ry({className:n="",...r}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:wt("h-4 w-4",n),width:"16",height:"16",strokeWidth:"2",...r,children:t("g",{fill:"currentColor",children:[e("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("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"})]})})}function Vy({size:t=25,className:n=""}){return e("svg",{width:t,height:t,viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"1.5",className:wt(n,""),children:e("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"})})}const Iy=a.forwardRef((t,n)=>{const{className:r="icon-md",size:a="1.2em"}=t;return e("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:wt(r),children:e("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 Dy({className:t="icon-sm"}){return e("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("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"})})}function jy({className:t}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("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"})})}function Oy({className:t}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("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"})})}function By({className:n="m-auto",size:r=20,color:a="currentColor",bgOpacity:o=.1,speed:i=.75}){const s={"--spinner-speed":`${i}s`};return t("svg",{className:wt(n,"spinner"),width:r,height:r,viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",style:s,children:[e("defs",{children:e("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("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:a,strokeOpacity:o}),e("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:a,strokeDasharray:"25 75",strokeLinecap:"round"})]})}function Fy({className:t="icon-md-heavy",size:n="1em"}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:wt(t),children:e("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"})})}function _y({className:t=""}){return e("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:wt("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("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 Hy({className:n=""}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:wt(n,"h-4 w-4"),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function $y(){return t("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:[e("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("path",{d:"M20 12H11M20 12L16 16M20 12L16 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Wy({size:n=25,className:r=""}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:wt("lucide lucide-bot",r),children:[e("path",{d:"M12 8V4H8"}),e("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),e("path",{d:"M2 14h2"}),e("path",{d:"M20 14h2"}),e("path",{d:"M15 13v2"}),e("path",{d:"M9 13v2"})]})}function Uy({className:t=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",className:wt("h-6 w-6",t),children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"})})}function Xy({className:t=""}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("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"})})}function Yy({className:n}){return t("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:wt(n??"","lucide lucide-messages-square"),children:[e("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("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})]})}function Zy({className:t=""}){return e("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:wt("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("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})})}function Gy({className:t="",size:n="1em"}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:wt("icon-md-heavy",t),children:e("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"})})}function qy({className:n=""}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:wt("h-3 w-3 -rotate-180",n),height:"19",width:"19",xmlns:"http://www.w3.org/2000/svg",children:[e("polygon",{points:"11 19 2 12 11 5 11 19"}),e("polygon",{points:"22 19 13 12 22 5 22 19"})]})}function Ky(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",id:"google",className:"h-5 w-5",children:[e("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("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("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("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"})]})}function Qy(){return t("svg",{viewBox:"0 0 40 40",width:"25",height:"25",children:[t("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("stop",{offset:0,stopColor:"#0062e0"}),e("stop",{offset:1,stopColor:"#19afff"})]}),e("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("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"})]})}function Jy(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",id:"openid",className:"h-5 w-5",children:e("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"})})}function eb(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",children:e("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"})})}function tb(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"discord",className:"h-6 w-6",children:[e("circle",{cx:"512",cy:"512",r:"512",fill:"#5865f2"}),e("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"})]})}function nb(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 814 1000",id:"apple",className:"h-6 w-6",children:e("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"})})}function rb(){return e("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:t("g",{fill:"#000000",children:[e("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("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("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"})]})})}function ab({size:n=25,className:r=""}){return t("svg",{viewBox:"0 0 24 16",overflow:"visible",width:n,height:n,className:wt("fill-current text-black",r),children:[e("g",{style:{transform:"translateX(13px) rotateZ(0deg)",transformOrigin:"4.775px 7.73501px"},children:e("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("g",{style:{transform:"none",transformOrigin:"7.935px 7.73501px"},opacity:"1",children:e("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"})})]})}function ob({size:t=24,className:n=""}){return e("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:wt("text-white dark:text-black",n),children:e("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function ib(){return e("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:e("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"})})}function sb({className:n="h-4 w-4 flex-shrink-0 text-gray-500"}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:n,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("circle",{cx:"12",cy:"12",r:"1"}),e("circle",{cx:"19",cy:"12",r:"1"}),e("circle",{cx:"5",cy:"12",r:"1"})]})}const lb=({className:n=""})=>t("svg",{className:n,width:"17",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("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("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"2"})]});function cb({unpin:n=!1}){return n?t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e("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("path",{d:"M8 16L3 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M4 4L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):e("svg",{className:"icon-sm",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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"})})}function db({className:t=""}){return e("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:wt("icon-md h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("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"})})}function ub({size:t,className:n="icon-md"}){return e("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:e("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"})})}function hb({size:n=25,className:r="h-4 w-4"}){const a=n,o=n;return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:wt(r,""),width:o,height:a,xmlns:"http://www.w3.org/2000/svg",children:[e("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("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("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"})]})}function pb({className:t="h-4 w-4"}){return e("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("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"})})}function mb(){return t("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("rect",{width:"18",height:"10",x:"3",y:"11",rx:"2"}),e("circle",{cx:"12",cy:"5",r:"2"}),e("path",{d:"M12 7v4"}),e("line",{x1:"8",x2:"8",y1:"16",y2:"16"}),e("line",{x1:"16",x2:"16",y1:"16",y2:"16"})]})}function fb({className:n=""}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 32 32",strokeLinecap:"round",strokeLinejoin:"round",className:wt("h-4 w-4",n),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("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("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("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("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("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("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("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"})]})}function gb({size:n=25,className:r=""}){return t("svg",{width:n,height:n,className:r,viewBox:"0 0 19 17",fill:"none",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e("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("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("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("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("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("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("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"})]})}function vb({size:t=25,className:n=""}){return e("svg",{width:t,height:t,className:wt("dark:fill-white",n),viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:e("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"})})}function wb({size:n=25,className:r=""}){return t("svg",{width:n,height:n,className:r,viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e("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("defs",{children:t("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("stop",{offset:".325",stopColor:"#FFDDB7"}),e("stop",{offset:".706",stopColor:"#076EFF"})]})})]})}function yb({className:t=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"800px",height:"800px",viewBox:"0 0 512 512",className:wt("h-4 w-4",t),children:e("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"})})}function bb(){return e("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("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"})})}function xb({className:n}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:wt(n),strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),e("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),e("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]})}function kb({className:t="",size:n="1em"}){return e("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:n,width:n,className:wt(t),children:e("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"})})}function Cb({className:t="",size:n="1em"}){return e("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:n,width:n,className:wt(t),children:e("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"})})}function Nb(){return e("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("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"})})}function Sb(){return t("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("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e("circle",{cx:"12",cy:"7",r:"4"})]})}function Pb(){return t("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("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),e("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})}function Mb({className:t=""}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:wt("text-black dark:text-white",t),"aria-hidden":!0,children:e("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"})})}function Lb(){return t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e("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("path",{d:"M5 14.774C11.5 12.839 12.15 16.7089 18 14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Tb({size:t=25,className:n=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24px",height:"24px",viewBox:"0 0 512 512",strokeWidth:"1.5",className:wt(n,""),children:e("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"})})}function Ab({className:n=""}){return t("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:wt("h-9 w-9",n),children:[e("defs",{children:t("linearGradient",{id:"linearGradient1842",x1:"163.92",x2:"173.66",y1:"22.212",y2:"-6.5784",gradientTransform:"translate(.10391 .050143)",gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#640a62",offset:"0"}),e("stop",{stopColor:"#852283",offset:".49917"}),e("stop",{stopColor:"#640a62",offset:"1"})]})}),t("g",{children:[e("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("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("circle",{cx:"170.36",cy:"215.76",r:"12.903",fill:"#cfffff"}),e("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"}),t("g",{fill:"#cfffff",children:[e("circle",{cx:"72.684",cy:"99.47",r:"12.903"}),e("circle",{cx:"99.144",cy:"172.32",r:"12.903"}),e("circle",{cx:"59.617",cy:"214.78",r:"12.903"}),e("circle",{cx:"135.4",cy:"118.42",r:"12.903"}),e("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("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"})]})]})]})}function Eb({className:n="",size:r="1em"}){return t("svg",{width:r,height:r,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:wt("text-token-secondary h-2/3 w-2/3",n),xmlns:"http://www.w3.org/2000/svg",children:[e("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("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),e("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})}function zb({className:n="",size:r=24}){return t("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:wt("icon-md shrink-0",n),children:[e("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("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"})]})}function Rb({className:n}){return t("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:wt(n),children:[e("path",{d:"M2 10v3"}),e("path",{d:"M6 6v11"}),e("path",{d:"M10 3v18"}),e("path",{d:"M14 8v7"}),e("path",{d:"M18 5v13"}),e("path",{d:"M22 10v3"})]})}function Vb({size:t="1em",className:n}){return e("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("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"})})}function Ib({className:n="icon-md-heavy",size:r="1em"}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:wt(n),children:[e("circle",{cx:"12",cy:"12",r:"10"}),e("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e("path",{d:"M12 17h.01"})]})}function Db({size:t=25,className:n=""}){return e("svg",{width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:wt("fill-current text-black",n),children:e("g",{fill:"currentColor",children:e("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"})})})}function jb({className:n="",size:r="1em",bold:a=!1}){return a?t("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:n,children:[e("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("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("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:n,children:e("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"})})}function Ob({className:n="",size:r="1em",bold:a=!1}){return a?t("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:n,children:[e("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("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("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:n,children:e("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"})})}function Bb({className:t=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:"currentColor",className:t,children:e("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"})})}function Fb({className:t=""}){return e("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("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"})})}function _b({className:n}){return t("svg",{width:"195",height:"195",viewBox:"0 2 195 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:[e("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("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("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"})]})}function Hb({className:t}){return e("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("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"})})}function $b(){return t("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("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}const Wb=N(({checked:t,onChange:n,ariaLabel:r})=>e("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(vn,{checked:t,onCheckedChange:n,"aria-label":r})}));Wb.displayName="SelectionCheckbox";const Ub=N(({row:t,isSmallScreen:n,onSelectionChange:r,index:a,isSearching:o})=>{const i=v(e=>{t.toggleSelected(e),r?.(t.id,e)},[t,r]);return e(so,{"data-state":t.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*a+"ms",transform:`translateY(${o?"4px":"0"})`,opacity:o?.5:1},children:t.getVisibleCells().map(r=>"select"===r.column.id?e(co,{className:"px-2 py-1 transition-all duration-300",children:e(Wb,{checked:t.getIsSelected(),onChange:i,ariaLabel:"Select row"})},r.id):e(co,{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:Xb(r.column.columnDef,n),children:e("div",{className:"overflow-hidden text-ellipsis",children:we(r.column.columnDef.cell,r.getContext())})},r.id))})});function Xb(e,t){return{width:t?e.meta?.mobileSize:e.meta?.size,minWidth:e.meta?.minWidth,maxWidth:e.meta?.size}}const Yb=N(({onDelete:r,isDeleting:a,disabled:o,isSmallScreen:i})=>r?e(gn,{variant:"outline",onClick:r,disabled:o,className:wt("min-w-[40px] transition-all duration-200",i&&"px-2 py-1"),children:a?e(By,{className:"size-4"}):t(n,{children:[e(db,{className:"size-3.5 text-red-400 sm:size-4"}),!i&&e("span",{className:"ml-2",children:"Delete"})]})}):null);function Zb({columns:n,data:r,onDelete:a,filterColumn:o,defaultSort:l=[],className:c="",isFetchingNextPage:h=!1,hasNextPage:p=!1,fetchNextPage:m,enableRowSelection:f=!0,showCheckboxes:g=!0,onFilterChange:w,filterValue:y,isLoading:b,enableSearch:x=!0}){const k=ur("(max-width: 768px)"),C=i(null),[N,S]=d(!1),[P,M]=d({}),[L,T]=d(l),[A,E]=d([]),[z,R]=d({}),[V,I]=d(y??""),[D,j]=d(!1),O=u(()=>{if(!f||!g)return n;const t={id:"select",header:({table:t})=>e("div",{className:"flex h-full w-[30px] items-center justify-center",children:e(vn,{checked:t.getIsAllPageRowsSelected(),onCheckedChange:e=>t.toggleAllPageRowsSelected(Boolean(e)),"aria-label":"Select all"})}),cell:({row:t})=>e(Wb,{checked:t.getIsSelected(),onChange:e=>t.toggleSelected(e),ariaLabel:"Select row"}),meta:{size:"50px"}};return[t,...n]},[n,f,g]),B=ye({data:r,columns:O,getCoreRowModel:ke(),getSortedRowModel:xe(),getFilteredRowModel:be(),enableRowSelection:f,enableMultiRowSelection:!0,state:{sorting:L,columnFilters:A,columnVisibility:z,rowSelection:P},onSortingChange:T,onColumnFiltersChange:E,onColumnVisibilityChange:R,onRowSelectionChange:M}),{rows:F}=B.getRowModel(),_=ve({count:F.length,getScrollElement:()=>C.current,estimateSize:v(()=>48,[]),overscan:10}),H=_.getVirtualItems(),$=_.getTotalSize(),W=H.length>0?H[0].start:0,U=H.length>0?$-H[H.length-1].end:0;s(()=>{const e=C.current;if(!e)return;const t=async()=>{if(!p||h)return;const{scrollTop:t,scrollHeight:n,clientHeight:r}=e;if(n-t<=1.5*r)try{await(m?.())}catch(e){console.error("Unable to fetch next page:",e)}};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[p,h,m]),s(()=>{j(!0);const e=setTimeout(()=>{w?.(V),j(!1)},300);return()=>clearTimeout(e)},[V,w]);const X=v(async()=>{if(a){S(!0);try{const e=B.getFilteredSelectedRowModel().rows.map(e=>e.original);await a(e),M({})}finally{S(!1)}}},[a,B]),Y=Array.from({length:13},(t,n)=>{const r=Math.floor(241*Math.random())+170,a="select"===O[0]?.id?1:0;return e(so,{className:"motion-safe:animate-fadeIn border-b border-border-light",children:O.map((t,n)=>{const o=Xb(t,k);return e(co,{className:"px-2 py-1 sm:px-4 sm:py-2",style:o,children:e(to,{className:"h-6",style:n===a?{width:`${r}px`}:{width:"100%"}})},t.id)})},n)});return t("div",{className:wt("flex h-full flex-col gap-4",c),children:[t("div",{className:"flex flex-wrap items-center gap-2 sm:gap-4",children:[f&&g&&e(Yb,{onDelete:X,isDeleting:N,disabled:!B.getFilteredSelectedRowModel().rows.length||N,isSmallScreen:k}),void 0!==o&&B.getColumn(o)&&x&&e("div",{className:"relative flex-1",children:e(Ay,{value:V,onChange:e=>I(e.target.value),isSearching:D,placeholder:"Search..."})})]}),e("div",{ref:C,className:wt("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",D&&"bg-surface-secondary/50",c),children:t(ro,{className:"w-full min-w-[300px] table-fixed border-separate border-spacing-0",children:[e(ao,{className:"sticky top-0 z-50 bg-surface-secondary",children:B.getHeaderGroups().map(t=>e(so,{className:"border-b border-border-light",children:t.headers.map(t=>e(lo,{className:"whitespace-nowrap bg-surface-secondary px-2 py-2 text-left text-sm font-medium text-text-secondary sm:px-4",style:Xb(t.column.columnDef,k),onClick:t.column.getCanSort()?t.column.getToggleSortingHandler():void 0,children:t.isPlaceholder?null:we(t.column.columnDef.header,t.getContext())},t.id))},t.id))}),t(oo,{children:[W>0&&e("tr",{children:e("td",{style:{height:`${W}px`}})}),b&&Y,H.map(t=>{const n=F[t.index];return e(Ub,{row:n,isSmallScreen:k,index:t.index,isSearching:D},n.id)}),!H.length&&e(so,{className:"hover:bg-transparent",children:e(co,{colSpan:n.length,className:"p-4 text-center",children:"No data available"})}),U>0&&e("tr",{children:e("td",{style:{height:`${U}px`}})}),(h||p)&&e(so,{className:"hover:bg-transparent",children:e(co,{colSpan:n.length,className:"p-4",children:e("div",{className:"flex h-full items-center justify-center",children:h?e(By,{className:"size-4"}):p&&e("div",{className:"h-6"})})})})]})]})})]})}function Gb({field:n,label:r,labelClass:a,inputClass:o,containerClass:i,labelAdjacent:s,placeholder:l="",type:c="string"}){return t("div",{className:wt("flex w-full flex-col items-center gap-2",i),children:[t("div",{className:"flex w-full items-center justify-start gap-2",children:[e(Fa,{htmlFor:`${n.name}-input`,className:wt("text-left text-sm font-semibold text-text-primary",a),children:r}),s]}),e(Tr,{id:`${n.name}-input`,value:n.value??"",onChange:e=>{const t=e.target.value;"number"===c?""===t?n.onChange(t):isNaN(Number(t))||n.onChange(Number(t)):n.onChange(t)},placeholder:l,className:wt("flex h-10 max-h-10 w-full resize-none border-none bg-surface-secondary px-3 py-2",o)})]})}class qb{constructor(e,t,n,r,a,o,i,s){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=i,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 Kb=(e,t)=>{const n=parseInt(String(e),10);return n<=0||t?0:n>=100?.1:.001*n},Qb=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Jb={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}};function ex({variant:t="default",gap:n,speed:r,colors:a,noFocus:o,className:l="",progress:c,randomness:d=.3,width:u,height:h}){const p=i(null),m=i(null),f=i([]),g=i(void 0),w=i(performance.now()),y=i(c),b=i(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,x=Jb[t],k=n??x.gap,C=r??x.speed,N=a??x.colors,S=o??x.noFocus,P=v(()=>{if(!m.current)return;if(void 0===y.current)return void(m.current.style.opacity="1");const e=y.current>=.9?1-(y.current-.9)/.1:1;m.current.style.opacity=String(Qb(e))},[]),M=v(e=>{g.current=requestAnimationFrame(()=>M(e));const t=performance.now(),n=t-w.current;if(n<1e3/60)return;w.current=t-n%(1e3/60);const r=m.current?.getContext("2d");if(!r||!m.current)return;r.clearRect(0,0,m.current.width,m.current.height);let a=!0;for(const t of f.current)"appearWithProgress"===e?void 0!==y.current?t.appearWithProgress(y.current):t.isIdle=!0:t[e](),t.isIdle||(a=!1);P(),a&&cancelAnimationFrame(g.current)},[P]),L=v(e=>{cancelAnimationFrame(g.current),g.current=requestAnimationFrame(()=>M(e))},[M]),T=v(()=>{if(!p.current||!m.current)return;const{width:e,height:t}=p.current.getBoundingClientRect(),n=m.current.getContext("2d");m.current.width=Math.floor(e),m.current.height=Math.floor(t);const r=N.split(","),a=[],o=e/2,i=t/2,s=Math.hypot(o,i);for(let l=0;l<e;l+=k)for(let e=0;e<t;e+=k){const t=r[Math.floor(Math.random()*r.length)],c=Math.hypot(l-o,e-i)/s,u=Qb(c*(1-d)+Math.random()*d),h=b?0:c*s;n&&a.push(new qb(m.current,n,l,e,t,Kb(C,b),h,u))}f.current=a,void 0!==y.current&&L("appearWithProgress")},[k,N,C,d,b,L]);s(()=>{y.current=c,void 0!==c&&L("appearWithProgress")},[c,L]),s(()=>{void 0===c&&cancelAnimationFrame(g.current)},[c]),s(()=>{T();const e=new ResizeObserver(T);return p.current&&e.observe(p.current),()=>{e.disconnect(),cancelAnimationFrame(g.current)}},[T]);return e("div",{ref:p,style:{width:u||"100%",height:h||"100%"},children:e("div",{className:wt("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",l),style:{width:"100%",height:"100%",transitionTimingFunction:"cubic-bezier(0.5, 1, 0.89, 1)"},onMouseEnter:()=>void 0===y.current&&L("appear"),onMouseLeave:()=>void 0===y.current&&L("disappear"),onFocus:S?void 0:e=>{S||e.currentTarget.contains(e.relatedTarget)||void 0!==y.current||L("appear")},onBlur:S?void 0:e=>{S||e.currentTarget.contains(e.relatedTarget)||void 0!==y.current||L("disappear")},tabIndex:S?-1:0,children:e("canvas",{ref:m,className:"pointer-events-none absolute inset-0 block",width:u&&"auto"!==u?parseInt(String(u)):void 0,height:h&&"auto"!==h?parseInt(String(h)):void 0})})})}const tx=o(({children:r,handleFileChange:a},o)=>t(n,{children:[r,e("input",{ref:o,multiple:!0,type:"file",style:{display:"none"},onChange:a})]}));function nx(e,t){return 0===e.length?t||"Select...":1===e.length?e[0]:`${e.length} items selected`}function rx({items:r,label:a,placeholder:o="Select...",onSelectedValuesChange:s,renderSelectedValues:l=nx,className:c,selectIcon:d,itemClassName:u,labelClassName:h,selectClassName:p,popoverClassName:m,selectItemsClassName:f,selectedValues:g=[],setSelectedValues:v,renderItemContent:w}){const y=i(null);return e("div",{className:c,children:t(B,{value:g,setValue:e=>{v(e),s&&s(e)},children:[a&&e(F,{className:wt("mb-1 block text-sm text-text-primary",h),children:a}),t(_,{ref:y,className:wt("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",p,g.length>0&&null!=f&&f),onChange:e=>e.stopPropagation(),children:[d&&e("span",{children:d}),e("span",{className:"mr-auto hidden truncate md:block",children:l(g,o)}),e(H,{className:"ml-1 hidden stroke-1 text-base opacity-75 md:block"})]}),e($,{gutter:4,sameWidth:!0,modal:!0,unmountOnHide:!0,finalFocus:y,className:wt("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",m),children:r.map(r=>{const a=t(n,{children:[e(W,{className:"text-primary"}),e("span",{className:"truncate",children:r})]}),o=g.includes(r);return e(U,{value:r,className:wt("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",u),children:w?w(r,a,o):a},r)})})]})})}tx.displayName="FileUpload";const ax=({trigger:n,isOpen:r,setIsOpen:a,focusLoop:o,mountByState:i,...s})=>{const l=R.useMenuStore({open:r,setOpen:a,focusLoop:o});return t(R.MenuProvider,i?{store:l,children:[n,r&&e(ox,{...s})]}:{store:l,children:[n,e(ox,{...s})]})},ox=({items:n,menuId:r,keyPrefix:a,className:o,iconClassName:i,itemClassName:s,modal:l,portal:c,sameWidth:d,gutter:u=8,finalFocus:h,unmountOnHide:p,preserveTabOrder:m})=>{const f=R.useMenuContext();return e(R.Menu,{id:r,modal:l,gutter:u,portal:c,sameWidth:d,finalFocus:h,unmountOnHide:p,preserveTabOrder:m,className:wt("popover-ui z-50",o),children:n.filter(e=>!1!==e.show).map((n,r)=>!0===n.separate?e(R.MenuSeparator,{className:"my-1 h-px bg-white/10"},r):t(R.MenuItem,{id:n.id,className:wt("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:n.disabled,ref:n.ref,hideOnClick:n.hideOnClick,onClick:e=>{e.preventDefault(),n.onClick&&n.onClick(e),!1!==n.hideOnClick&&f?.hide()},children:[null!=n.icon&&e("span",{className:wt("mr-2 size-4",i),"aria-hidden":"true",children:n.icon}),n.label,null!=n.kbd&&t("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline group-focus:inline dark:text-white/50",children:["⌘",n.kbd]})]},`${a??""}${r}-${n.id??""}`))})},ix=({delay:e,children:t})=>hr(e)(()=>t),sx=({theme:t,onChange:n})=>{const r={system:e(Jt,{}),dark:e(en,{color:"white"}),light:e(rn,{})},a="dark"===t?"light":"dark",o=`Switch to ${a} theme`;return s(()=>{const e=e=>{e.ctrlKey&&e.shiftKey&&"t"===e.key.toLowerCase()&&(e.preventDefault(),n(a))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[a,n]),e("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":o,"aria-keyshortcuts":"Ctrl+Shift+T",onClick:e=>{e.preventDefault(),n(a)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n(a))},children:r[t]})},lx=({returnThemeOnly:n})=>{const{theme:r,setTheme:a}=f(Hn),[o,i]=d(""),l=v(e=>{const t=Date.now();"number"==typeof window.lastThemeChange&&t-window.lastThemeChange<500||(window.lastThemeChange=t,a(e),i("dark"===e?"Dark theme enabled":"Light theme enabled"))},[a]);return s(()=>{if("system"===r){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;a(e?"dark":"light")}},[r,a]),s(()=>{if(o){const e=setTimeout(()=>i(""),1e3);return()=>clearTimeout(e)}},[o]),!0===n?e(sx,{theme:r,onChange:l}):t("div",{className:"flex flex-col items-center justify-center bg-white pt-6 dark:bg-gray-900 sm:pt-0",children:[e("div",{className:"absolute bottom-0 left-0 m-4",children:e(sx,{theme:r,onChange:l})}),o&&e("div",{"aria-live":"polite",className:"sr-only",children:o})]})},cx=r.forwardRef(({icon:n,label:r,setValue:a,className:o,checked:i,defaultChecked:l,isCheckedClassName:c},d)=>{const u=X(),h=Y(u,e=>e?.value);return s(()=>{void 0!==i&&u.setValue(i)},[i,u]),s(()=>{void 0!==l&&void 0===i&&u.setValue(l)},[l,i,u]),t(Z,{ref:d,store:u,onChange:e=>{e.stopPropagation(),"boolean"==typeof h&&a?.({e:e,value:!h})},className:wt("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,o),render:e("button",{type:"button","aria-label":r}),children:[n&&e("span",{className:"icon-md text-text-primary",children:n}),e("span",{className:"hidden truncate md:block",children:r})]})});cx.displayName="CheckboxButton";const dx=o((n,r)=>{const{title:a,description:o,main:i,buttons:s,leftButtons:l,selection:c,className:d,headerClassName:u,footerClassName:h,showCloseButton:p,showCancelButton:m=!0}=n,{selectHandler:f,selectClasses:g,selectText:v}=c||{};return t(wr,{showCloseButton:p,ref:r,className:wt("shadow-2xl dark:bg-gray-700",d||""),onClick:e=>e.stopPropagation(),children:[t(yr,{className:wt(u??""),children:[e(xr,{className:"text-lg font-medium leading-6 text-gray-800 dark:text-gray-200",children:a}),o&&e(kr,{className:"text-gray-600 dark:text-gray-300",children:o})]}),e("div",{className:"px-6",children:i||null}),t(br,{className:h,children:[e("div",{children:l||null}),t("div",{className:"flex h-auto gap-3",children:[m&&e(Cr,{className:"border-gray-100 hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-600",children:"cancel"}),s||null,c?e(Cr,{onClick:f,className:`${g||"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:v}):null]})]})]})});function ux({title:r,value:a,disabled:o,setValue:s,availableValues:l,showAbove:c=!1,showLabel:d=!0,emptyTitle:u=!1,iconSide:h="right",optionIconSide:p="left",placeholder:m,containerClassName:f,optionsListClass:g,optionsClass:v,currentValueClass:w,subContainerClassName:y,className:b,renderOption:x,searchClassName:k,searchPlaceholder:C,showOptionIcon:N=!1}){const S={className:"top-full mt-3"};c&&(S.className="bottom-full mb-3");let P=r;u&&(P="");const M=l??[],[L,T]=dm({availableOptions:M,placeholder:C,getTextKeyOverride:e=>function(e){return"string"==typeof e?e:"label"in e?e.label??"":"value"in e?(e.value??"")+"":""}(e).toUpperCase(),className:k,disabled:o}),A=null!=T?L:M,E=N&&null!=a&&null!=a.icon,z=i(null);return e("div",{className:wt("flex items-center justify-center gap-2",f??""),children:e("div",{className:wt("relative w-full",y??""),children:e(Ce,{value:a,onChange:s,disabled:o,children:({open:r})=>t(n,{children:[t(Ne,{ref:z,"data-testid":"select-dropdown-button",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),!r&&z.current&&z.current.click())},className:wt("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:[d&&e(Se,{className:"block text-xs text-gray-700 dark:text-gray-500",id:"headlessui-listbox-label-:r1:","data-headlessui-state":"",children:P}),e("span",{className:"inline-flex w-full truncate",children:t("span",{className:wt("flex h-6 items-center gap-1 truncate text-sm text-gray-800 dark:text-white",d?"":"text-xs",w??""),children:[!d&&!u&&t("span",{className:"text-xs text-gray-700 dark:text-gray-500",children:[P,":"]}),E&&"right"!==p&&e("span",{className:"icon-md flex items-center",children:a.icon}),E&&e("span",{className:"icon-md absolute right-0 mr-8 flex items-center",children:a.icon}),a?"string"!=typeof a?a.label??"":a:e("span",{className:"text-text-secondary",children:m})]})}),e("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:e("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:c?{transform:"scaleY(-1)"}:{},children:e("polyline",{points:"6 9 12 15 18 9"})})})]}),e(Pe,{show:r,as:"div",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",...S,children:t(Me,{className:wt("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%]",g??""),children:[x&&e(Le,{value:null,className:wt("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",v??""),children:x()},"listbox-render-option"),T,A.map((n,r)=>{if(!n)return null;const o="string"==typeof n?n:n.label??n.value??"",i="string"==typeof n?n:n.value??"",s="string"==typeof n?null:n.icon??null;let l=a;return"string"!=typeof l&&(l=l?.value??""),e(Le,{value:n,className:({active:e})=>wt("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":"",v??""),children:t("span",{className:"flex items-center gap-1.5 truncate",children:[t("span",{className:wt("flex h-6 items-center gap-1 text-gray-800 dark:text-gray-200",n===a?"font-semibold":"","left"===h?"ml-4":""),children:[null!=s&&e("span",{className:wt("mr-1","right"===p?"absolute right-0 pr-2":""),children:s}),o]}),i===l&&e("span",{className:wt("absolute inset-y-0 flex items-center text-gray-800 dark:text-gray-200","left"===h?"left-0 pl-2":"right-0 pr-3"),children:e(_y,{})})]})},r)})]})})]})})})})}var hx=N(function({selectedValue:r,displayValue:a,items:o,setValue:l,ariaLabel:c,searchPlaceholder:h,selectPlaceholder:p,containerClassName:m,isCollapsed:f,SelectIcon:g,showCarat:v,className:w,disabled:y,iconClassName:b,iconSide:x="left",selectId:k}){const[C,N]=d(""),S=i(null),[P,M]=d(null),L=e=>({id:`item-${e.value}`,value:e.value,label:e.label,icon:e.icon}),T=R.useComboboxStore({defaultItems:o.map(L),resetValueOnHide:!0,value:C,setValue:N}),A=R.useSelectStore({combobox:T,defaultItems:o.map(L),value:r,setValue:l}),E=u(()=>{const e=nr(o,C,{keys:["value","label"],baseSort:(e,t)=>e.index<t.index?-1:1});return e.map(L)},[C,o]);s(()=>{S.current&&!f&&M(S.current.offsetWidth)},[f]);const z=wt("flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",b),V=wt("mr-2 flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",b);return t("div",{className:wt("flex w-full items-center justify-center px-1",m),children:[e(R.SelectLabel,{store:A,className:"sr-only",children:c}),t(R.Select,{ref:S,store:A,id:k,disabled:y,className:wt("flex items-center justify-center gap-2 rounded-full bg-surface-secondary","text-text-primary hover:bg-surface-tertiary","border border-border-light",f?"h-10 w-10":"h-10 w-full rounded-xl px-3 py-2 text-sm",w),children:[null!=g&&"left"===x&&e("div",{className:z,children:g}),!f&&t(n,{children:[e("span",{className:"flex-grow truncate text-left",children:null!=a?a||p:r||p}),null!=g&&"right"===x&&e("div",{className:z,children:g}),v&&e(Xt,{className:"h-4 w-4 text-text-secondary"})]})]}),t(R.SelectPopover,{store:A,gutter:4,portal:!0,className:wt("animate-popover z-50 overflow-hidden rounded-xl border border-border-light bg-surface-secondary shadow-lg"),style:{width:f?"300px":P??"300px"},children:[e("div",{className:"py-1.5",children:t("div",{className:"relative",children:[e(nn,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-primary"}),e(R.Combobox,{store:T,autoSelect:!0,placeholder:h,className:"w-full rounded-md bg-surface-secondary py-2 pl-9 pr-3 text-sm text-text-primary focus:outline-none"})]})}),e("div",{className:"max-h-[300px] overflow-auto",children:e(R.ComboboxList,{store:T,children:e(Te,{store:A,items:E,itemSize:36,overscan:5,children:({value:n,icon:r,label:a,...o})=>t(R.ComboboxItem,{...o,className:wt("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(R.SelectItem,{value:n}),children:[null!=r&&"left"===x&&e("div",{className:V,children:r}),e("span",{className:"flex-grow truncate text-left",children:a}),null!=r&&"right"===x&&e("div",{className:V,children:r})]},o.id)})})})]})]})});const px=o((n,r)=>{const a=dr(),{title:o,main:i,buttons:s,selection:l,className:c,leftButtons:d,description:u="",mainClassName:h,headerClassName:p,footerClassName:m,showCloseButton:f,overlayClassName:g,showCancelButton:v=!0}=n,{selectHandler:w,selectClasses:y,selectText:b,isLoading:x}=l||{};return t(Xa,{overlayClassName:g,showCloseButton:f,ref:r,className:wt("w-11/12 border-none bg-background text-foreground",c??""),onClick:e=>e.stopPropagation(),children:[t(Ya,{className:wt(p??""),children:[e(Ga,{children:o}),u&&e(qa,{className:"items-center justify-center",children:u})]}),e("div",{className:wt("px-0 py-2",h),children:null!=i?i:null}),t(Za,{className:m,children:[e("div",{children:null!=d?e("div",{className:"mt-3 flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:mt-0 sm:flex-row",children:d}):null}),t("div",{className:"flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:flex-row",children:[v&&e(Wa,{asChild:!0,children:e(gn,{variant:"outline",children:a("com_ui_cancel")})}),null!=s?s:null,l?e(Wa,{onClick:w,disabled:x,className:`${y??"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===x?e(By,{className:"size-4 text-white"}):b}):null]})]})]})}),mx=r.forwardRef(({className:n,options:a,onSelect:o,...i},s)=>{const[l,c]=r.useState(!1),[d,u]=r.useState(i.value||""),[h,p]=r.useState(-1),m=r.useRef(null),f=e=>{u(e),c(!1),p(-1),o&&o(e),i.onChange&&i.onChange({target:{value:e}})};return r.useEffect(()=>{const e=e=>{m.current&&!m.current.contains(e.target)&&(c(!1),p(-1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),t("div",{className:"relative",ref:m,children:[t("div",{className:"relative",children:[e(Tr,{...i,value:d,onChange:e=>{u(e.target.value),i.onChange&&i.onChange(e)},onKeyDown:e=>{switch(e.key){case"ArrowDown":e.preventDefault(),l?p(e=>e<a.length-1?e+1:e):c(!0);break;case"ArrowUp":e.preventDefault(),p(e=>e>0?e-1:0);break;case"Enter":e.preventDefault(),l&&-1!==h&&f(a[h]),c(!1);break;case"Escape":c(!1),p(-1)}},"aria-haspopup":"listbox","aria-controls":"dropdown-list",className:wt("bg-surface-secondary",n??""),ref:s}),e("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:()=>c(!l),"aria-label":l?"Close dropdown":"Open dropdown",children:e("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),l&&e("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:a.map((t,n)=>e("li",{role:"option","aria-selected":n===h,className:wt("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===h?"bg-surface-active text-primary":"text-secondary hover:bg-surface-tertiary"),onClick:()=>f(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f(t))},tabIndex:0,children:t},n))})]})});mx.displayName="InputWithDropdown";const fx=c({showToast:()=>({})});function gx(){return f(fx)}function vx({children:t}){const{showToast:n}=Wn();return e(fx.Provider,{value:{showToast:n},children:t})}export{xt as Accordion,Nt as AccordionContent,kt as AccordionItem,Ct as AccordionTrigger,Lt as AlertDialog,jt as AlertDialogAction,Ot as AlertDialogCancel,zt as AlertDialogContent,Dt as AlertDialogDescription,Vt as AlertDialogFooter,Rt as AlertDialogHeader,It as AlertDialogTitle,Tt as AlertDialogTrigger,Ay as AnimatedSearchInput,Mt as AnimatedTabs,ab as AnthropicIcon,bb as AnthropicMinimalIcon,nb as AppleIcon,Ey as ArchiveIcon,Eb as AssistantIcon,Xy as AttachmentIcon,hb as AzureMinimalIcon,Zf as Badge,Db as BedrockIcon,Ab as BirthdayIcon,zy as Blocks,on as Breadcrumb,hn as BreadcrumbEllipsis,ln as BreadcrumbItem,cn as BreadcrumbLink,sn as BreadcrumbList,dn as BreadcrumbPage,un as BreadcrumbSeparator,gn as Button,mb as ChatGPTMinimalIcon,_y as CheckMark,vn as Checkbox,cx as CheckboxButton,Ib as CircleHelpIcon,Fy as Clipboard,vb as CodeyIcon,wn as Collapsible,bn as CollapsibleContent,yn as CollapsibleTrigger,rg as Combobox,qy as ContinueIcon,hx as ControlCombobox,Hy as CrossIcon,Wy as CustomMinimalIcon,Dy as DataIcon,Zb as DataTable,Dn as DataTableColumnHeader,ix as DelayedRender,mr as Dialog,Nr as DialogButton,Cr as DialogClose,wr as DialogContent,kr as DialogDescription,br as DialogFooter,yr as DialogHeader,Ua as DialogOverlay,dx as DialogTemplate,xr as DialogTitle,fr as DialogTrigger,tb as DiscordIcon,sb as DotsIcon,ig as Dropdown,xn as DropdownMenu,En as DropdownMenuCheckboxItem,Tn as DropdownMenuContent,Cn as DropdownMenuGroup,An as DropdownMenuItem,Rn as DropdownMenuLabel,Nn as DropdownMenuPortal,Pn as DropdownMenuRadioGroup,zn as DropdownMenuRadioItem,Vn as DropdownMenuSeparator,In as DropdownMenuShortcut,Sn as DropdownMenuSub,Ln as DropdownMenuSubContent,Mn as DropdownMenuSubTrigger,kn as DropdownMenuTrigger,ax as DropdownPopup,Iy as EditIcon,Lb as ExperimentIcon,Qy as FacebookIcon,tx as FileUpload,Gb as FormInput,Vy as GPTIcon,lb as GearIcon,wb as GeminiIcon,eb as GithubIcon,Ky as GoogleIcon,Tb as GoogleIconChat,yb as GoogleMinimalIcon,Sr as HoverCard,Lr as HoverCardContent,Mr as HoverCardPortal,Pr as HoverCardTrigger,Tr as Input,eo as InputCombobox,Ba as InputNumber,am as InputOTP,om as InputOTPGroup,sm as InputOTPSeparator,im as InputOTPSlot,mx as InputWithDropdown,Fa as Label,Uy as LightningIcon,ib as LinkIcon,xb as ListeningIcon,Pb as LockIcon,$y as LogOutIcon,_b as MCPIcon,Yy as MessagesSquared,ub as MinimalPlugin,Oy as MobileSidebar,rx as MultiSelect,Mb as NewChatIcon,jn as NotificationSeverity,_a as OGDialog,Wa as OGDialogClose,Xa as OGDialogContent,qa as OGDialogDescription,Za as OGDialogFooter,Ya as OGDialogHeader,Ua as OGDialogOverlay,$a as OGDialogPortal,px as OGDialogTemplate,Ga as OGDialogTitle,Ha as OGDialogTrigger,pb as OpenAIMinimalIcon,Jy as OpenIDIcon,gb as PaLMIcon,fb as PaLMinimalIcon,Op as Pagination,Bp as PaginationContent,Wp as PaginationEllipsis,Fp as PaginationItem,_p as PaginationLink,$p as PaginationNext,Hp as PaginationPrevious,Fb as PersonalizationIcon,cb as PinIcon,ex as PixelCard,Ry as Plugin,Up as Progress,Ka as QuestionMark,Gy as RegenerateIcon,Xf as ResizableHandle,Yf as ResizableHandleAlt,Uf as ResizablePanel,Wf as ResizablePanelGroup,rb as SamlIcon,Vb as SaveIcon,ux as SelectDropDown,ob as SendIcon,Nb as SendMessageIcon,Ja as Separator,jy as Sidebar,to as Skeleton,Qa as Slider,zb as Sparkles,Rb as SpeechIcon,By as Spinner,Ty as SplitText,$b as SquirclePlusIcon,Zy as StopGeneratingIcon,no as Switch,ro as Table,oo as TableBody,uo as TableCaption,co as TableCell,io as TableFooter,lo as TableHead,ao as TableHeader,so as TableRow,ho as Tabs,fo as TabsContent,po as TabsList,mo as TabsTrigger,vo as Tag,wo as Textarea,Ro as TextareaAutosize,Hn as ThemeContext,$n as ThemeProvider,lx as ThemeSelector,Ob as ThumbDownIcon,jb as ThumbUpIcon,Vo as Toast,fx as ToastContext,vx as ToastProvider,jp as TooltipAnchor,db as TrashIcon,Sb as UserIcon,Hb as VectorIcon,kb as VolumeIcon,Cb as VolumeMuteIcon,Bb as XAIcon,yt as applyFontSize,fn as buttonVariants,Bn as chatDirectionAtom,wt as cn,Fn as fontSizeAtom,bt as getInitialTheme,On as langAtom,_n as toastState,cr as useCombobox,hr as useDelayedRender,dr as useLocalize,ur as useMediaQuery,dm as useMultiSearch,pr as useOnClickOutside,Wn as useToast,gx as useToastContext};
60
40
  //# sourceMappingURL=index.es.js.map