@osmandvc/react-upload-control 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/README.md +421 -0
  2. package/dist/FileUploadContainer.d.ts +9 -0
  3. package/dist/FileUploadControl.d.ts +5 -0
  4. package/dist/actions/FileDeleteAllButton.d.ts +1 -0
  5. package/dist/actions/FileItemActions.d.ts +7 -0
  6. package/dist/actions/FileUploadAllButton.d.ts +1 -0
  7. package/dist/actions/index.d.ts +3 -0
  8. package/dist/components/camera/custom-react-webcam.d.ts +58 -0
  9. package/dist/components/camera/frames/WebcamFrameA4.d.ts +20 -0
  10. package/dist/components/camera/frames/index.d.ts +1 -0
  11. package/dist/components/camera/index.d.ts +1 -0
  12. package/dist/components/camera/use-webcam.d.ts +34 -0
  13. package/dist/components/file-drop/FileDropArea.d.ts +2 -0
  14. package/dist/components/file-drop/FileDropLarge.d.ts +6 -0
  15. package/dist/components/file-drop/FileDropSmall.d.ts +6 -0
  16. package/dist/components/file-list/FileList.d.ts +2 -0
  17. package/dist/components/file-list/FileListActions.d.ts +1 -0
  18. package/dist/components/file-list/FileListContainer.d.ts +6 -0
  19. package/dist/components/file-list/FileListItem.d.ts +3 -0
  20. package/dist/components/index.d.ts +6 -0
  21. package/dist/hooks/index.d.ts +2 -0
  22. package/dist/hooks/use-mobile-detect.d.ts +9 -0
  23. package/dist/hooks/use-state-machine.d.ts +21 -0
  24. package/dist/index.d.ts +6 -0
  25. package/dist/index.js +2 -0
  26. package/dist/index.js.LICENSE.txt +33 -0
  27. package/dist/loaders/FileLoaderActions.d.ts +2 -0
  28. package/dist/loaders/FileLoaderCamera.d.ts +2 -0
  29. package/dist/loaders/FileLoaderFileSystem.d.ts +2 -0
  30. package/dist/loaders/index.d.ts +3 -0
  31. package/dist/providers/UploadedFilesManager.d.ts +26 -0
  32. package/dist/providers/UploadedFilesProvider.d.ts +3 -0
  33. package/dist/providers/index.d.ts +2 -0
  34. package/dist/stories/FileUploadControlSimple.d.ts +3 -0
  35. package/dist/stories/FileUploadControlSmall.d.ts +3 -0
  36. package/dist/stories/FileUploadControlWithProgress.d.ts +3 -0
  37. package/dist/types.d.ts +162 -0
  38. package/dist/ui/button/Button.d.ts +18 -0
  39. package/dist/ui/button/index.d.ts +1 -0
  40. package/dist/ui/card/Card.d.ts +8 -0
  41. package/dist/ui/card/index.d.ts +1 -0
  42. package/dist/ui/dialog/Dialog.d.ts +19 -0
  43. package/dist/ui/dialog/index.d.ts +1 -0
  44. package/dist/ui/icons/index.d.ts +1 -0
  45. package/dist/ui/image-zoom/index.d.ts +3 -0
  46. package/dist/ui/progress/Progress.d.ts +4 -0
  47. package/dist/ui/progress/index.d.ts +1 -0
  48. package/dist/ui/select/Select.d.ts +13 -0
  49. package/dist/ui/select/index.d.ts +1 -0
  50. package/dist/ui/seperator/Seperator.d.ts +4 -0
  51. package/dist/ui/seperator/index.d.ts +1 -0
  52. package/dist/ui/tooltip/Tooltip.d.ts +7 -0
  53. package/dist/ui/tooltip/index.d.ts +1 -0
  54. package/dist/utils/api-mocker.d.ts +2 -0
  55. package/dist/utils/cn.d.ts +2 -0
  56. package/dist/utils/date/index.d.ts +1 -0
  57. package/dist/utils/error-handling.d.ts +3 -0
  58. package/dist/utils/file-types.d.ts +36 -0
  59. package/dist/utils/image-processing/blob-to-base64.d.ts +1 -0
  60. package/dist/utils/image-processing/canvas-utils.d.ts +7 -0
  61. package/dist/utils/image-processing/index.d.ts +3 -0
  62. package/dist/utils/image-processing/load-image.d.ts +3 -0
  63. package/dist/utils/index.d.ts +6 -0
  64. package/dist/utils/is-filedrop-error.d.ts +2 -0
  65. package/package.json +107 -0
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports["@osmandvc/react-upload-control"]=t(require("react"),require("react-dom")):e["@osmandvc/react-upload-control"]=t(e.React,e.ReactDOM)}(this,((e,t)=>(()=>{"use strict";var n,r,o={393:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(758),o=n.n(r),a=n(935),i=n.n(a)()(o());i.push([e.id,'[data-rmiz-ghost] {\n position: absolute;\n pointer-events: none;\n}\n[data-rmiz-btn-zoom],\n[data-rmiz-btn-unzoom] {\n background-color: rgba(0, 0, 0, 0.7);\n border-radius: 50%;\n border: none;\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n color: #fff;\n height: 40px;\n margin: 0;\n outline-offset: 2px;\n padding: 9px;\n touch-action: manipulation;\n width: 40px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n[data-rmiz-btn-zoom]:not(:focus):not(:active) {\n position: absolute;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n pointer-events: none;\n white-space: nowrap;\n width: 1px;\n}\n[data-rmiz-btn-zoom] {\n position: absolute;\n inset: 10px 10px auto auto;\n cursor: zoom-in;\n}\n[data-rmiz-btn-unzoom] {\n position: absolute;\n inset: 20px 20px auto auto;\n cursor: zoom-out;\n z-index: 1;\n}\n[data-rmiz-content="found"] img,\n[data-rmiz-content="found"] svg,\n[data-rmiz-content="found"] [role="img"],\n[data-rmiz-content="found"] [data-zoom] {\n cursor: zoom-in;\n}\n[data-rmiz-modal]::backdrop {\n display: none;\n}\n[data-rmiz-modal][open] {\n position: fixed;\n width: 100vw;\n width: 100dvw;\n height: 100vh;\n height: 100dvh;\n max-width: none;\n max-height: none;\n margin: 0;\n padding: 0;\n border: 0;\n background: transparent;\n overflow: hidden;\n}\n[data-rmiz-modal-overlay] {\n position: absolute;\n inset: 0;\n transition: background-color 0.3s;\n}\n[data-rmiz-modal-overlay="hidden"] {\n background-color: rgba(255, 255, 255, 0);\n}\n[data-rmiz-modal-overlay="visible"] {\n background-color: rgba(255, 255, 255, 1);\n}\n[data-rmiz-modal-content] {\n position: relative;\n width: 100%;\n height: 100%;\n}\n[data-rmiz-modal-img] {\n position: absolute;\n cursor: zoom-out;\n image-rendering: high-quality;\n transform-origin: top left;\n transition: transform 0.3s;\n}\n@media (prefers-reduced-motion: reduce) {\n [data-rmiz-modal-overlay],\n [data-rmiz-modal-img] {\n transition-duration: 0.01ms !important;\n }\n}\n',""]);const s=i},376:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(758),o=n.n(r),a=n(935),i=n.n(a)()(o());i.push([e.id,'/* src/styles/tailwind.css */\n*, ::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: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\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::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: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\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.16 | 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::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n::before,\n::after {\n --tw-content: \'\';\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*/\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, 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/*\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*/\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\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*/\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n/*\nRemove the default font size and weight for headings.\n*/\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\na {\n color: inherit;\n text-decoration: inherit;\n}\n/*\nAdd the correct font weight in Edge and Safari.\n*/\nb,\nstrong {\n font-weight: bolder;\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*/\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/*\nAdd the correct font size in all browsers.\n*/\nsmall {\n font-size: 80%;\n}\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\nsup {\n top: -0.5em;\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*/\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\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*/\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/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\nbutton,\nselect {\n text-transform: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\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/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n:-moz-focusring {\n outline: auto;\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:-moz-ui-invalid {\n box-shadow: none;\n}\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\nprogress {\n vertical-align: baseline;\n}\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n[type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n/*\nAdd the correct display in Chrome and Safari.\n*/\nsummary {\n display: list-item;\n}\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\nfieldset {\n margin: 0;\n padding: 0;\n}\nlegend {\n padding: 0;\n}\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n/*\nPrevent resizing textareas horizontally by default.\n*/\ntextarea {\n resize: vertical;\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*/\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n/*\nSet the default cursor for buttons.\n*/\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:disabled {\n cursor: default;\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*/\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\nimg,\nvideo {\n max-width: 100%;\n height: auto;\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* {\n scrollbar-color: initial;\n scrollbar-width: initial;\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.static {\n position: static;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.inset-0 {\n inset: 0px;\n}\n.left-1\\/2 {\n left: 50%;\n}\n.left-\\[50\\%\\] {\n left: 50%;\n}\n.right-2 {\n right: 0.5rem;\n}\n.right-4 {\n right: 1rem;\n}\n.top-4 {\n top: 1rem;\n}\n.top-\\[50\\%\\] {\n top: 50%;\n}\n.z-50 {\n z-index: 50;\n}\n.-mx-1 {\n margin-left: -0.25rem;\n margin-right: -0.25rem;\n}\n.mx-2 {\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n}\n.my-1 {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n}\n.mb-4 {\n margin-bottom: 1rem;\n}\n.ml-2 {\n margin-left: 0.5rem;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.grid {\n display: grid;\n}\n.hidden {\n display: none;\n}\n.h-0 {\n height: 0px;\n}\n.h-1 {\n height: 0.25rem;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-24 {\n height: 6rem;\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-8 {\n height: 2rem;\n}\n.h-9 {\n height: 2.25rem;\n}\n.h-\\[1px\\] {\n height: 1px;\n}\n.h-\\[var\\(--radix-select-trigger-height\\)\\] {\n height: var(--radix-select-trigger-height);\n}\n.h-full {\n height: 100%;\n}\n.h-px {\n height: 1px;\n}\n.max-h-72 {\n max-height: 18rem;\n}\n.max-h-96 {\n max-height: 24rem;\n}\n.min-h-0 {\n min-height: 0px;\n}\n.w-16 {\n width: 4rem;\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-8 {\n width: 2rem;\n}\n.w-9 {\n width: 2.25rem;\n}\n.w-\\[1px\\] {\n width: 1px;\n}\n.w-full {\n width: 100%;\n}\n.min-w-0 {\n min-width: 0px;\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-20 {\n max-width: 5rem;\n}\n.max-w-2xl {\n max-width: 42rem;\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.origin-top {\n transform-origin: top;\n}\n.-translate-x-1\\/2 {\n --tw-translate-x: -50%;\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(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), 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-y-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(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-y-100 {\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(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 spin {\n to {\n transform: rotate(360deg);\n }\n}\n.animate-spin {\n animation: spin 1s linear infinite;\n}\n.cursor-default {\n cursor: default;\n}\n.cursor-grab {\n cursor: grab;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.grid-rows-\\[auto\\2c 1fr\\] {\n grid-template-rows: auto 1fr;\n}\n.flex-col {\n flex-direction: column;\n}\n.place-items-center {\n place-items: center;\n}\n.items-center {\n align-items: center;\n}\n.justify-start {\n justify-content: flex-start;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-2 {\n gap: 0.5rem;\n}\n.gap-4 {\n gap: 1rem;\n}\n.gap-5 {\n gap: 1.25rem;\n}\n.gap-6 {\n gap: 1.5rem;\n}\n.space-y-1\\.5 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));\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 * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));\n}\n.self-end {\n align-self: flex-end;\n}\n.self-stretch {\n align-self: stretch;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.overflow-x-hidden {\n overflow-x: hidden;\n}\n.text-ellipsis {\n text-overflow: ellipsis;\n}\n.whitespace-nowrap {\n white-space: nowrap;\n}\n.text-wrap {\n text-wrap: wrap;\n}\n.text-nowrap {\n text-wrap: nowrap;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.rounded-3xl {\n border-radius: 1.5rem;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n}\n.rounded-md {\n border-radius: 0.375rem;\n}\n.rounded-sm {\n border-radius: 0.125rem;\n}\n.rounded-xl {\n border-radius: 0.75rem;\n}\n.rounded-l-lg {\n border-top-left-radius: 0.5rem;\n border-bottom-left-radius: 0.5rem;\n}\n.rounded-r-lg {\n border-top-right-radius: 0.5rem;\n border-bottom-right-radius: 0.5rem;\n}\n.border {\n border-width: 1px;\n}\n.border-4 {\n border-width: 4px;\n}\n.border-dashed {\n border-style: dashed;\n}\n.border-gray-400 {\n --tw-border-opacity: 1;\n border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));\n}\n.border-white {\n --tw-border-opacity: 1;\n border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));\n}\n.bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n.bg-gray-200\\/65 {\n background-color: rgb(229 231 235 / 0.65);\n}\n.bg-green-500\\/90 {\n background-color: rgb(34 197 94 / 0.9);\n}\n.bg-primary {\n --tw-bg-opacity: 1;\n background-color: rgb(8 145 178 / var(--tw-bg-opacity, 1));\n}\n.bg-primary\\/10 {\n background-color: rgb(8 145 178 / 0.1);\n}\n.bg-primary\\/20 {\n background-color: rgb(8 145 178 / 0.2);\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));\n}\n.bg-slate-950 {\n --tw-bg-opacity: 1;\n background-color: rgb(2 6 23 / var(--tw-bg-opacity, 1));\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n.bg-opacity-80 {\n --tw-bg-opacity: 0.8;\n}\n.object-contain {\n -o-object-fit: contain;\n object-fit: contain;\n}\n.p-0 {\n padding: 0px;\n}\n.p-1 {\n padding: 0.25rem;\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-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\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-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.pl-2 {\n padding-left: 0.5rem;\n}\n.pl-3 {\n padding-left: 0.75rem;\n}\n.pr-8 {\n padding-right: 2rem;\n}\n.pt-0 {\n padding-top: 0px;\n}\n.text-center {\n text-align: center;\n}\n.text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\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-semibold {\n font-weight: 600;\n}\n.leading-none {\n line-height: 1;\n}\n.tracking-tight {\n letter-spacing: -0.025em;\n}\n.text-gray-300 {\n --tw-text-opacity: 1;\n color: rgb(209 213 219 / var(--tw-text-opacity, 1));\n}\n.text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1));\n}\n.text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1));\n}\n.text-neutral-50 {\n --tw-text-opacity: 1;\n color: rgb(250 250 250 / var(--tw-text-opacity, 1));\n}\n.text-primary {\n --tw-text-opacity: 1;\n color: rgb(8 145 178 / var(--tw-text-opacity, 1));\n}\n.text-primary\\/50 {\n color: rgb(8 145 178 / 0.5);\n}\n.text-slate-900 {\n --tw-text-opacity: 1;\n color: rgb(15 23 42 / var(--tw-text-opacity, 1));\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.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(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: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(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: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), 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.blur-sm {\n --tw-blur: blur(4px);\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.invert {\n --tw-invert: invert(100%);\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: 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: 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-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.duration-150 {\n transition-duration: 150ms;\n}\n.duration-200 {\n transition-duration: 200ms;\n}\n.duration-300 {\n transition-duration: 300ms;\n}\n.duration-75 {\n transition-duration: 75ms;\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n@keyframes enter {\n from {\n opacity: var(--tw-enter-opacity, 1);\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 to {\n opacity: var(--tw-exit-opacity, 1);\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-0 {\n --tw-enter-opacity: 0;\n}\n.zoom-in-95 {\n --tw-enter-scale: .95;\n}\n.duration-150 {\n animation-duration: 150ms;\n}\n.duration-200 {\n animation-duration: 200ms;\n}\n.duration-300 {\n animation-duration: 300ms;\n}\n.duration-75 {\n animation-duration: 75ms;\n}\n.ease-in-out {\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.scrollbar-thin::-webkit-scrollbar-track {\n background-color: var(--scrollbar-track);\n border-radius: var(--scrollbar-track-radius);\n}\n.scrollbar-thin::-webkit-scrollbar-track:hover {\n background-color: var(--scrollbar-track-hover, var(--scrollbar-track));\n}\n.scrollbar-thin::-webkit-scrollbar-track:active {\n background-color: var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)));\n}\n.scrollbar-thin::-webkit-scrollbar-thumb {\n background-color: var(--scrollbar-thumb);\n border-radius: var(--scrollbar-thumb-radius);\n}\n.scrollbar-thin::-webkit-scrollbar-thumb:hover {\n background-color: var(--scrollbar-thumb-hover, var(--scrollbar-thumb));\n}\n.scrollbar-thin::-webkit-scrollbar-thumb:active {\n background-color: var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)));\n}\n.scrollbar-thin::-webkit-scrollbar-corner {\n background-color: var(--scrollbar-corner);\n border-radius: var(--scrollbar-corner-radius);\n}\n.scrollbar-thin::-webkit-scrollbar-corner:hover {\n background-color: var(--scrollbar-corner-hover, var(--scrollbar-corner));\n}\n.scrollbar-thin::-webkit-scrollbar-corner:active {\n background-color: var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)));\n}\n.scrollbar-thin {\n scrollbar-width: thin;\n scrollbar-color: var(--scrollbar-thumb, initial) var(--scrollbar-track, initial);\n}\n.scrollbar-thin::-webkit-scrollbar {\n display: block;\n width: 8px;\n height: 8px;\n}\n.scrollbar-track-transparent {\n --scrollbar-track: transparent !important;\n}\n.scrollbar-thumb-gray-300 {\n --scrollbar-thumb: #d1d5db !important;\n}\n.data-\\[disabled\\]\\:pointer-events-none[data-disabled] {\n pointer-events: none;\n}\n.data-\\[side\\=bottom\\]\\:translate-y-1[data-side="bottom"] {\n --tw-translate-y: 0.25rem;\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(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(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), 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-\\[hover\\=true\\]\\:bg-gray-200[data-hover="true"] {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));\n}\n.data-\\[disabled\\]\\:opacity-50[data-disabled] {\n opacity: 0.5;\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-0[data-state="closed"] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in-0[data-state="open"] {\n --tw-enter-opacity: 0;\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-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.hover\\:bg-green-500\\/20:hover {\n background-color: rgb(34 197 94 / 0.2);\n}\n.hover\\:bg-primary\\/10:hover {\n background-color: rgb(8 145 178 / 0.1);\n}\n.hover\\:bg-primary\\/20:hover {\n background-color: rgb(8 145 178 / 0.2);\n}\n.hover\\:text-green-500:hover {\n --tw-text-opacity: 1;\n color: rgb(34 197 94 / var(--tw-text-opacity, 1));\n}\n.hover\\:text-primary:hover {\n --tw-text-opacity: 1;\n color: rgb(8 145 178 / var(--tw-text-opacity, 1));\n}\n.hover\\:opacity-100:hover {\n opacity: 1;\n}\n.focus\\:bg-neutral-200:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(229 229 229 / var(--tw-bg-opacity, 1));\n}\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\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), var(--tw-shadow, 0 0 #0000);\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), var(--tw-shadow, 0 0 #0000);\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), var(--tw-shadow, 0 0 #0000);\n}\n.active\\:cursor-grabbing:active {\n cursor: grabbing;\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\\:opacity-50:disabled {\n opacity: 0.5;\n}\n@media (min-width: 640px) {\n .sm\\:flex {\n display: flex;\n }\n .sm\\:hidden {\n display: none;\n }\n .sm\\:rounded-lg {\n border-radius: 0.5rem;\n }\n .sm\\:p-3 {\n padding: 0.75rem;\n }\n .sm\\:text-left {\n text-align: left;\n }\n}\n@media (min-width: 768px) {\n .md\\:flex-1 {\n flex: 1 1 0%;\n }\n .md\\:justify-start {\n justify-content: flex-start;\n }\n .md\\:justify-center {\n justify-content: center;\n }\n}\n@media (min-width: 410px) {\n .xs\\:h-20 {\n height: 5rem;\n }\n .xs\\:w-14 {\n width: 3.5rem;\n }\n .xs\\:text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n}\n@media (min-height: 480px) {\n .xsh\\:flex {\n display: flex;\n }\n .xsh\\:hidden {\n display: none;\n }\n}\n@media (prefers-color-scheme: dark) {\n .dark\\:text-gray-300 {\n --tw-text-opacity: 1;\n color: rgb(209 213 219 / var(--tw-text-opacity, 1));\n }\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.\\[\\&_svg\\]\\:pointer-events-none svg {\n pointer-events: none;\n}\n.\\[\\&_svg\\]\\:size-4 svg {\n width: 1rem;\n height: 1rem;\n}\n.\\[\\&_svg\\]\\:shrink-0 svg {\n flex-shrink: 0;\n}\n',""]);const s=i},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(i[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);r&&i[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},758:e=>{e.exports=function(e){return e[1]}},985:(e,t,n)=>{var r=n(524),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=f(n);o&&o!==p&&e(t,o,r)}var i=d(n);u&&(i=i.concat(u(n)));for(var s=l(t),m=l(n),g=0;g<i.length;++g){var v=i[g];if(!(a[v]||r&&r[v]||m&&m[v]||s&&s[v])){var b=h(n,v);try{c(t,v,b)}catch(e){}}}}return t}},320:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case u:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case o:return t}}}function E(e){return x(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||x(e)===d},t.isConcurrentMode=E,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===i},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===s||e===i||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},524:(e,t,n)=>{e.exports=n(320)},335:(e,t,n)=>{var r=n(12),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,d=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:d,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},85:(e,t,n)=>{e.exports=n(335)},591:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],d=a[c]||0,u="".concat(c," ").concat(d);a[c]=d+1;var h=n(u),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)t[h].references++,t[h].updater(f);else{var p=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:u,updater:p,references:1})}i.push(u)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var l=r(e,o),c=0;c<a.length;c++){var d=n(a[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=l}}},128:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},51:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},12:t=>{t.exports=e},33:e=>{e.exports=t}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,exports:{}};return o[e](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var a={};n=n||[null,r({}),r([]),r(r)];for(var s=2&t&&e;"object"==typeof s&&!~n.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var s={};i.r(s),i.d(s,{FileDropErrorType:()=>ye,FileUploadContainer:()=>Et,FileUploadControl:()=>Im,UploadedFileItemStage:()=>we,UploadedFilesProvider:()=>as,isFileDropError:()=>xe});var l={};i.r(l),i.d(l,{CameraIcon:()=>sl,CancelIcon:()=>cl,CheckIcon:()=>rl,DeleteIcon:()=>dl,FolderIcon:()=>hl,ImagePlaceholderIcon:()=>ml,MirrorIcon:()=>fl,MoreIcon:()=>gl,MoveIcon:()=>ul,ResetIcon:()=>ll,RotateIcon:()=>pl,UploadIcon:()=>il});var c=i(591),d=i.n(c),u=i(740),h=i.n(u),f=i(128),p=i.n(f),m=i(855),g=i.n(m),v=i(51),b=i.n(v),y=i(656),w=i.n(y),x=i(376),E={};E.styleTagTransform=w(),E.setAttributes=g(),E.insert=p().bind(null,"head"),E.domAPI=h(),E.insertStyleElement=b(),d()(x.A,E),x.A&&x.A.locals&&x.A.locals;var S=i(85);function N(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=N(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function C(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=N(e))&&(r&&(r+=" "),r+=t);return r}const T=e=>{const t=R(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),M(n,t)||I(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},M=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?M(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find((({validator:e})=>e(a)))?.classGroupId},k=/^\[(.+)\]$/,I=e=>{if(k.test(e)){const t=k.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},R=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return j(Object.entries(e.classGroups),n).forEach((([e,n])=>{O(n,r,e,t)})),r},O=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return P(e)?void O(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{O(o,D(t,e),n,r)}))}else(""===e?t:D(t,e)).classGroupId=n}))},D=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},P=e=>e.isThemeGetter,j=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,L=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},A=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],a=t.length,i=e=>{const n=[];let i,s=0,l=0;for(let c=0;c<e.length;c++){let d=e[c];if(0===s){if(d===o&&(r||e.slice(c,c+a)===t)){n.push(e.slice(l,c)),l=c+a;continue}if("/"===d){i=c;continue}}"["===d?s++:"]"===d&&s--}const c=0===n.length?e:e.substring(l),d=c.startsWith("!");return{modifiers:n,hasImportantModifier:d,baseClassName:d?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},_=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},B=/\s+/;function H(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=F(e))&&(r&&(r+=" "),r+=t);return r}const F=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=F(e[r]))&&(n&&(n+=" "),n+=t);return n};function z(e,...t){let n,r,o,a=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:L(e.cacheSize),parseClassName:A(e),...T(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(B);let s="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{modifiers:l,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:u}=n(t);let h=Boolean(u),f=r(h?d.substring(0,u):d);if(!f){if(!h){s=t+(s.length>0?" "+s:s);continue}if(f=r(d),!f){s=t+(s.length>0?" "+s:s);continue}h=!1}const p=_(l).join(":"),m=c?p+"!":p,g=m+f;if(a.includes(g))continue;a.push(g);const v=o(f,h);for(let e=0;e<v.length;++e){const t=v[e];a.push(m+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,a),a}return function(){return a(H.apply(null,arguments))}}const U=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},G=/^\[(?:([a-z-]+):)?(.+)\]$/i,W=/^\d+\/\d+$/,Y=new Set(["px","full","screen"]),$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V=/\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$/,X=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,K=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,q=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>Q(e)||Y.has(e)||W.test(e),J=e=>he(e,"length",fe),Q=e=>Boolean(e)&&!Number.isNaN(Number(e)),ee=e=>he(e,"number",Q),te=e=>Boolean(e)&&Number.isInteger(Number(e)),ne=e=>e.endsWith("%")&&Q(e.slice(0,-1)),re=e=>G.test(e),oe=e=>$.test(e),ae=new Set(["length","size","percentage"]),ie=e=>he(e,ae,pe),se=e=>he(e,"position",pe),le=new Set(["image","url"]),ce=e=>he(e,le,ge),de=e=>he(e,"",me),ue=()=>!0,he=(e,t,n)=>{const r=G.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},fe=e=>V.test(e)&&!X.test(e),pe=()=>!1,me=e=>K.test(e),ge=e=>q.test(e),ve=z((Symbol.toStringTag,()=>{const e=U("colors"),t=U("spacing"),n=U("blur"),r=U("brightness"),o=U("borderColor"),a=U("borderRadius"),i=U("borderSpacing"),s=U("borderWidth"),l=U("contrast"),c=U("grayscale"),d=U("hueRotate"),u=U("invert"),h=U("gap"),f=U("gradientColorStops"),p=U("gradientColorStopPositions"),m=U("inset"),g=U("margin"),v=U("opacity"),b=U("padding"),y=U("saturate"),w=U("scale"),x=U("sepia"),E=U("skew"),S=U("space"),N=U("translate"),C=()=>["auto",re,t],T=()=>[re,t],M=()=>["",Z,J],k=()=>["auto",Q,re],I=()=>["","0",re],R=()=>[Q,re];return{cacheSize:500,separator:":",theme:{colors:[ue],spacing:[Z,J],blur:["none","",oe,re],brightness:R(),borderColor:[e],borderRadius:["none","","full",oe,re],borderSpacing:T(),borderWidth:M(),contrast:R(),grayscale:I(),hueRotate:R(),invert:I(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[ne,J],inset:C(),margin:C(),opacity:R(),padding:T(),saturate:R(),scale:R(),sepia:I(),skew:R(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[oe]}],"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","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",re]}],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",te,re]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",te,re]}],"grid-cols":[{"grid-cols":[ue]}],"col-start-end":[{col:["auto",{span:["full",te,re]},re]}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":[ue]}],"row-start-end":[{row:["auto",{span:[te,re]},re]}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal","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","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":["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","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[oe]},oe]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",oe,J]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ee]}],"font-family":[{font:[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",Q,ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Z,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"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:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Z,J]}],"underline-offset":[{"underline-offset":["auto",Z,re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],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",re]}],"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:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",se]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ie]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ce]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[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:["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-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[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:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Z,re]}],"outline-w":[{outline:[Z,J]}],"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":[Z,J]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",oe,de]}],"shadow-color":[{shadow:[ue]}],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","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",oe,re]}],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",re]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[te,re]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Z,J,ee]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-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-s","border-color-e","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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}));function be(...e){return ve(C(e))}var ye,we;function xe(e){return null!=e&&"object"==typeof e&&"error"in e&&null!=e.error&&"object"==typeof e.error&&"text"in e.error&&"string"==typeof e.error.text&&"type"in e.error&&Object.values(ye).includes(e.error.type)}!function(e){e.INVALID_FILE="INVALID_FILE",e.MAXSIZE="OVER_SIZE_LIMIT",e.MULTIPLE_NOT_ALLOWED="MULTIPLE_NOT_ALLOWED",e.MAX_FILES_NUMBER="MAX_FILES_NUMBER"}(ye||(ye={})),function(e){e.IDLE="IDLE",e.FINISHED="FINISHED",e.FAILED="FAILED",e.UPLOADING="UPLOADING",e.REMOVING="REMOVING"}(we||(we={}));let Ee,Se,Ne,Ce,Te=!0;"undefined"!=typeof process&&(({FORCE_COLOR:Ee,NODE_DISABLE_COLORS:Se,NO_COLOR:Ne,TERM:Ce}=process.env||{}),Te=process.stdout&&process.stdout.isTTY);const Me={enabled:!Se&&null==Ne&&"dumb"!==Ce&&(null!=Ee&&"0"!==Ee||Te),reset:Ie(0,0),bold:Ie(1,22),dim:Ie(2,22),italic:Ie(3,23),underline:Ie(4,24),inverse:Ie(7,27),hidden:Ie(8,28),strikethrough:Ie(9,29),black:Ie(30,39),red:Ie(31,39),green:Ie(32,39),yellow:Ie(33,39),blue:Ie(34,39),magenta:Ie(35,39),cyan:Ie(36,39),white:Ie(37,39),gray:Ie(90,39),grey:Ie(90,39),bgBlack:Ie(40,49),bgRed:Ie(41,49),bgGreen:Ie(42,49),bgYellow:Ie(43,49),bgBlue:Ie(44,49),bgMagenta:Ie(45,49),bgCyan:Ie(46,49),bgWhite:Ie(47,49)};function ke(e,t){let n,r=0,o="",a="";for(;r<e.length;r++)n=e[r],o+=n.open,a+=n.close,~t.indexOf(n.close)&&(t=t.replace(n.rgx,n.close+n.open));return o+t+a}function Ie(e,t){let n={open:`[${e}m`,close:`[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(t){return void 0!==this&&void 0!==this.has?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(n)),void 0===t?this:Me.enabled?ke(this.keys,t+""):t+""):void 0===t?function(e,t){let n={has:e,keys:t};return n.reset=Me.reset.bind(n),n.bold=Me.bold.bind(n),n.dim=Me.dim.bind(n),n.italic=Me.italic.bind(n),n.underline=Me.underline.bind(n),n.inverse=Me.inverse.bind(n),n.hidden=Me.hidden.bind(n),n.strikethrough=Me.strikethrough.bind(n),n.black=Me.black.bind(n),n.red=Me.red.bind(n),n.green=Me.green.bind(n),n.yellow=Me.yellow.bind(n),n.blue=Me.blue.bind(n),n.magenta=Me.magenta.bind(n),n.cyan=Me.cyan.bind(n),n.white=Me.white.bind(n),n.gray=Me.gray.bind(n),n.grey=Me.grey.bind(n),n.bgBlack=Me.bgBlack.bind(n),n.bgRed=Me.bgRed.bind(n),n.bgGreen=Me.bgGreen.bind(n),n.bgYellow=Me.bgYellow.bind(n),n.bgBlue=Me.bgBlue.bind(n),n.bgMagenta=Me.bgMagenta.bind(n),n.bgCyan=Me.bgCyan.bind(n),n.bgWhite=Me.bgWhite.bind(n),n}([e],[n]):Me.enabled?ke([n],t+""):t+""}}const Re=Me;function Oe(...e){const t=null==e?void 0:e.map((e=>function(e,t=!0){console.error(e);let n="Unbekannter Fehler aufgetreten.";if(e instanceof Error)if("object"==typeof e.message)try{n=JSON.stringify(e.message)}catch(t){n=e.message}else n=e.message;else if(e&&"object"==typeof e&&"message"in e)n=String(e.message);else if(e&&"object"==typeof e&&"errors"in e&&Array.isArray(e.errors)){const t=e.errors.reduce(((e,t)=>{var n;let r=(null==t?void 0:t.message)||"unspecific error";try{r+=" "+JSON.stringify(null!==(n=t.extensions)&&void 0!==n?n:{})}catch(e){}return e.push(r),e}),[]);n=t.join(", ")}else if(e&&"object"==typeof e)try{n=JSON.stringify(e)}catch(e){n="Unserializable object"}else Array.isArray(e)?n=e.toString():e&&"string"==typeof e&&(n=e);return t&&e.cause&&(n+="\n"+e.cause),t&&e.stack&&(n+="\n"+e.stack),n}(e)));console.error(Re.red("[CAUGHT ERROR]:"+t.join(": ")))}const De={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Pe(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const je={date:Pe({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Pe({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Pe({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Le={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ae(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const _e={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ae({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ae({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ae({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ae({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ae({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Be(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(i))return t}(s):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(i))return t}(s);let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(i.length)}}}const He={ordinalNumber:(Fe={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(Fe.matchPattern);if(!n)return null;const r=n[0],o=e.match(Fe.parsePattern);if(!o)return null;let a=Fe.valueCallback?Fe.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:Be({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Be({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Be({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Be({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Be({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Fe;const ze={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=De[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:je,formatRelative:(e,t,n,r)=>Le[e],localize:_e,match:He,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Ue={};function Ge(){return Ue}Math.pow(10,8);const We=6048e5,Ye=Symbol.for("constructDateFrom");function $e(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Ye in e?e[Ye](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ve(e,t){return $e(t||e,e)}function Xe(e){const t=Ve(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Ke(e,t){const n=Ve(e,t?.in);return n.setHours(0,0,0,0),n}function qe(e,t){const n=Ve(e,t?.in);return function(e,t,n){const[r,o]=function(e,...t){const n=$e.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}(n?.in,e,t),a=Ke(r),i=Ke(o),s=+a-Xe(a),l=+i-Xe(i);return Math.round((s-l)/864e5)}(n,function(e,t){const n=Ve(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n))+1}function Ze(e,t){const n=Ge(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Ve(e,t?.in),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Je(e,t){return Ze(e,{...t,weekStartsOn:1})}function Qe(e,t){const n=Ve(e,t?.in),r=n.getFullYear(),o=$e(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=Je(o),i=$e(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const s=Je(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function et(e,t){const n=Ve(e,t?.in),r=+Je(n)-+function(e,t){const n=Qe(e,t),r=$e(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Je(r)}(n);return Math.round(r/We)+1}function tt(e,t){const n=Ve(e,t?.in),r=n.getFullYear(),o=Ge(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=$e(t?.in||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=Ze(i,t),l=$e(t?.in||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=Ze(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function nt(e,t){const n=Ve(e,t?.in),r=+Ze(n,t)-+function(e,t){const n=Ge(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=tt(e,t),a=$e(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Ze(a,t)}(n,t);return Math.round(r/We)+1}function rt(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const ot={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return rt("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):rt(n+1,2)},d:(e,t)=>rt(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>rt(e.getHours()%12||12,t.length),H:(e,t)=>rt(e.getHours(),t.length),m:(e,t)=>rt(e.getMinutes(),t.length),s:(e,t)=>rt(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return rt(Math.trunc(r*Math.pow(10,n-3)),t.length)}},at={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return ot.y(e,t)},Y:function(e,t,n,r){const o=tt(e,r),a=o>0?o:1-o;return"YY"===t?rt(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):rt(a,t.length)},R:function(e,t){return rt(Qe(e),t.length)},u:function(e,t){return rt(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return rt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return rt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ot.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return rt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=nt(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):rt(o,t.length)},I:function(e,t,n){const r=et(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):rt(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):ot.d(e,t)},D:function(e,t,n){const r=qe(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):rt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return rt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return rt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return rt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return ot.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):ot.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):rt(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):rt(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ot.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ot.s(e,t)},S:function(e,t){return ot.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return st(r);case"XXXX":case"XX":return lt(r);default:return lt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return st(r);case"xxxx":case"xx":return lt(r);default:return lt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+it(r,":");default:return"GMT"+lt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+it(r,":");default:return"GMT"+lt(r,":")}},t:function(e,t,n){return rt(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return rt(+e,t.length)}};function it(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+rt(a,2)}function st(e,t){return e%60==0?(e>0?"-":"+")+rt(Math.abs(e)/60,2):lt(e,t)}function lt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+rt(Math.trunc(r/60),2)+t+rt(r%60,2)}const ct=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},dt=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ut={p:dt,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ct(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",ct(r,t)).replace("{{time}}",dt(o,t))}},ht=/^D+$/,ft=/^Y+$/,pt=["D","DD","YY","YYYY"];function mt(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+Ve(e)));var t}const gt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bt=/^'([^]*?)'?$/,yt=/''/g,wt=/[a-zA-Z]/;function xt(e){const t=e.match(bt);return t?t[1].replace(yt,"'"):e}const Et=({className:e,children:t})=>(0,S.jsx)("div",{className:be(e,"h-full w-full"),children:t});var St=i(12),Nt=i.t(St,2),Ct=i.n(St),Tt=i(33);const Mt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function kt(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function It(e){return"nodeType"in e}function Rt(e){var t,n;return e?kt(e)?e:It(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Ot(e){const{Document:t}=Rt(e);return e instanceof t}function Dt(e){return!kt(e)&&e instanceof Rt(e).HTMLElement}function Pt(e){return e instanceof Rt(e).SVGElement}function jt(e){return e?kt(e)?e.document:It(e)?Ot(e)?e:Dt(e)||Pt(e)?e.ownerDocument:document:document:document}const Lt=Mt?St.useLayoutEffect:St.useEffect;function At(e){const t=(0,St.useRef)(e);return Lt((()=>{t.current=e})),(0,St.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)}),[])}function _t(e,t){void 0===t&&(t=[e]);const n=(0,St.useRef)(e);return Lt((()=>{n.current!==e&&(n.current=e)}),t),n}function Bt(e,t){const n=(0,St.useRef)();return(0,St.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function Ht(e){const t=At(e),n=(0,St.useRef)(null),r=(0,St.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,r]}function Ft(e){const t=(0,St.useRef)();return(0,St.useEffect)((()=>{t.current=e}),[e]),t.current}let zt={};function Ut(e,t){return(0,St.useMemo)((()=>{if(t)return t;const n=null==zt[e]?0:zt[e]+1;return zt[e]=n,e+"-"+n}),[e,t])}function Gt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const Wt=Gt(1),Yt=Gt(-1);function $t(e){if(!e)return!1;const{KeyboardEvent:t}=Rt(e.target);return t&&e instanceof t}function Vt(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Rt(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Xt=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Xt.Translate.toString(e),Xt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Kt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function qt(e){return e.matches(Kt)?e:e.querySelector(Kt)}const Zt={display:"none"};function Jt(e){let{id:t,value:n}=e;return Ct().createElement("div",{id:t,style:Zt},n)}function Qt(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return Ct().createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const en=(0,St.createContext)(null),tn={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},nn={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function rn(e){let{announcements:t=nn,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=tn}=e;const{announce:a,announcement:i}=function(){const[e,t]=(0,St.useState)("");return{announce:(0,St.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),s=Ut("DndLiveRegion"),[l,c]=(0,St.useState)(!1);if((0,St.useEffect)((()=>{c(!0)}),[]),function(e){const t=(0,St.useContext)(en);(0,St.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,St.useMemo)((()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}})),[a,t])),!l)return null;const d=Ct().createElement(Ct().Fragment,null,Ct().createElement(Jt,{id:r,value:o.draggable}),Ct().createElement(Qt,{id:s,announcement:i}));return n?(0,Tt.createPortal)(d,n):d}var on;function an(){}function sn(e,t){return(0,St.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(on||(on={}));const ln=Object.freeze({x:0,y:0});function cn(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function dn(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function un(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function hn(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function fn(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function pn(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const mn=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=pn(t,t.left,t.top),a=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=cn(pn(r),o);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(dn)};function gn(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),i=o-r,s=a-n;if(r<o&&n<a){const n=t.width*t.height,r=e.width*e.height,o=i*s;return Number((o/(n+r-o)).toFixed(4))}return 0}const vn=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,a=n.get(r);if(a){const n=gn(a,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(un)};function bn(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ln}function yn(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const wn=yn(1);const xn={ignoreTransform:!1};function En(e,t){void 0===t&&(t=xn);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=Rt(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;const{scaleX:o,scaleY:a,x:i,y:s}=r,l=e.left-i-(1-o)*parseFloat(n),c=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),d=o?e.width/o:e.width,u=a?e.height/a:e.height;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l}}(n,t,r))}const{top:r,left:o,width:a,height:i,bottom:s,right:l}=n;return{top:r,left:o,width:a,height:i,bottom:s,right:l}}function Sn(e){return En(e,{ignoreTransform:!0})}function Nn(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(Ot(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Dt(o)||Pt(o))return n;if(n.includes(o))return n;const a=Rt(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=Rt(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,a)&&n.push(o),function(e,t){return void 0===t&&(t=Rt(e).getComputedStyle(e)),"fixed"===t.position}(o,a)?n:r(o.parentNode)}(e):n}function Cn(e){const[t]=Nn(e,1);return null!=t?t:null}function Tn(e){return Mt&&e?kt(e)?e:It(e)?Ot(e)||e===jt(e).scrollingElement?window:Dt(e)?e:null:null:null}function Mn(e){return kt(e)?e.scrollX:e.scrollLeft}function kn(e){return kt(e)?e.scrollY:e.scrollTop}function In(e){return{x:Mn(e),y:kn(e)}}var Rn;function On(e){return!(!Mt||!e)&&e===document.scrollingElement}function Dn(e){const t={x:0,y:0},n=On(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Rn||(Rn={}));const Pn={x:.2,y:.2};function jn(e,t,n,r,o){let{top:a,left:i,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===o&&(o=Pn);const{isTop:c,isBottom:d,isLeft:u,isRight:h}=Dn(e),f={x:0,y:0},p={x:0,y:0},m=t.height*o.y,g=t.width*o.x;return!c&&a<=t.top+m?(f.y=Rn.Backward,p.y=r*Math.abs((t.top+m-a)/m)):!d&&l>=t.bottom-m&&(f.y=Rn.Forward,p.y=r*Math.abs((t.bottom-m-l)/m)),!h&&s>=t.right-g?(f.x=Rn.Forward,p.x=r*Math.abs((t.right-g-s)/g)):!u&&i<=t.left+g&&(f.x=Rn.Backward,p.x=r*Math.abs((t.left+g-i)/g)),{direction:f,speed:p}}function Ln(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function An(e){return e.reduce(((e,t)=>Wt(e,In(t))),ln)}const _n=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+Mn(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+kn(t)),0)}]];class Bn{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=Nn(t),r=An(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of _n)for(const a of t)Object.defineProperty(this,a,{get:()=>{const t=o(n),i=r[e]-t;return this.rect[a]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Hn{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Fn(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var zn,Un;function Gn(e){e.preventDefault()}function Wn(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(zn||(zn={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(Un||(Un={}));const Yn={start:[Un.Space,Un.Enter],cancel:[Un.Esc],end:[Un.Space,Un.Enter,Un.Tab]},$n=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Un.Right:return{...n,x:n.x+25};case Un.Left:return{...n,x:n.x-25};case Un.Down:return{...n,y:n.y+25};case Un.Up:return{...n,y:n.y-25}}};class Vn{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Hn(jt(t)),this.windowListeners=new Hn(Rt(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(zn.Resize,this.handleCancel),this.windowListeners.add(zn.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(zn.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=En),!e)return;const{top:n,left:r,bottom:o,right:a}=t(e);Cn(e)&&(o<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(ln)}handleKeyDown(e){if($t(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=Yn,coordinateGetter:a=$n,scrollBehavior:i="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:ln;this.referenceCoordinates||(this.referenceCoordinates=c);const d=a(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=Yt(d,c),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:a,isRight:s,isLeft:l,isBottom:c,maxScroll:u,minScroll:h}=Dn(n),f=Ln(n),p={x:Math.min(o===Un.Right?f.right-f.width/2:f.right,Math.max(o===Un.Right?f.left:f.left+f.width/2,d.x)),y:Math.min(o===Un.Down?f.bottom-f.height/2:f.bottom,Math.max(o===Un.Down?f.top:f.top+f.height/2,d.y))},m=o===Un.Right&&!s||o===Un.Left&&!l,g=o===Un.Down&&!c||o===Un.Up&&!a;if(m&&p.x!==d.x){const e=n.scrollLeft+t.x,a=o===Un.Right&&e<=u.x||o===Un.Left&&e>=h.x;if(a&&!t.y)return void n.scrollTo({left:e,behavior:i});r.x=a?n.scrollLeft-e:o===Un.Right?n.scrollLeft-u.x:n.scrollLeft-h.x,r.x&&n.scrollBy({left:-r.x,behavior:i});break}if(g&&p.y!==d.y){const e=n.scrollTop+t.y,a=o===Un.Down&&e<=u.y||o===Un.Up&&e>=h.y;if(a&&!t.x)return void n.scrollTo({top:e,behavior:i});r.y=a?n.scrollTop-e:o===Un.Down?n.scrollTop-u.y:n.scrollTop-h.y,r.y&&n.scrollBy({top:-r.y,behavior:i});break}}this.handleMove(e,Wt(Yt(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Xn(e){return Boolean(e&&"distance"in e)}function Kn(e){return Boolean(e&&"delay"in e)}Vn.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Yn,onActivation:o}=t,{active:a}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const t=a.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class qn{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=Rt(e);return e instanceof t?e:jt(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:a}=o;this.props=e,this.events=t,this.document=jt(a),this.documentListeners=new Hn(this.document),this.listeners=new Hn(n),this.windowListeners=new Hn(Rt(a)),this.initialCoordinates=null!=(r=Vt(o))?r:ln,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(zn.Resize,this.handleCancel),this.windowListeners.add(zn.DragStart,Gn),this.windowListeners.add(zn.VisibilityChange,this.handleCancel),this.windowListeners.add(zn.ContextMenu,Gn),this.documentListeners.add(zn.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Kn(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(Xn(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(zn.Click,Wn,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(zn.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:i}}=o;if(!r)return;const s=null!=(t=Vt(e))?t:ln,l=Yt(r,s);if(!n&&i){if(Xn(i)){if(null!=i.tolerance&&Fn(l,i.tolerance))return this.handleCancel();if(Fn(l,i.distance))return this.handleStart()}return Kn(i)&&Fn(l,i.tolerance)?this.handleCancel():void this.handlePending(i,l)}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Un.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Zn={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Jn extends qn{constructor(e){const{event:t}=e,n=jt(t.target);super(e,Zn,n)}}Jn.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const Qn={move:{name:"mousemove"},end:{name:"mouseup"}};var er;!function(e){e[e.RightClick=2]="RightClick"}(er||(er={})),class extends qn{constructor(e){super(e,Qn,jt(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==er.RightClick&&(null==r||r({event:n}),!0)}}];const tr={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var nr,rr;(class extends qn{constructor(e){super(e,tr)}static setup(){return window.addEventListener(tr.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(tr.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(nr||(nr={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(rr||(rr={}));const or={x:{[Rn.Backward]:!1,[Rn.Forward]:!1},y:{[Rn.Backward]:!1,[Rn.Forward]:!1}};var ar,ir;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ar||(ar={})),function(e){e.Optimized="optimized"}(ir||(ir={}));const sr=new Map;function lr(e,t){return Bt((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function cr(e){let{callback:t,disabled:n}=e;const r=At(t),o=(0,St.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[n]);return(0,St.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function dr(e){return new Bn(En(e),e)}function ur(e,t,n){void 0===t&&(t=dr);const[r,o]=(0,St.useState)(null);function a(){o((r=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const a=t(e);return JSON.stringify(r)===JSON.stringify(a)?r:a}))}const i=function(e){let{callback:t,disabled:n}=e;const r=At(t),o=(0,St.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,n]);return(0,St.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=cr({callback:a});return Lt((()=>{a(),e?(null==s||s.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==i||i.disconnect())}),[e]),r}const hr=[];function fr(e,t){void 0===t&&(t=[]);const n=(0,St.useRef)(null);return(0,St.useEffect)((()=>{n.current=null}),t),(0,St.useEffect)((()=>{const t=e!==ln;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?Yt(e,n.current):ln}function pr(e){return(0,St.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const mr=[];const gr=[{sensor:Jn,options:{}},{sensor:Vn,options:{}}],vr={current:{}},br={draggable:{measure:Sn},droppable:{measure:Sn,strategy:ar.WhileDragging,frequency:ir.Optimized},dragOverlay:{measure:En}};class yr extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const wr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new yr,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:an},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:br,measureDroppableContainers:an,windowRect:null,measuringScheduled:!1},xr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:an,draggableNodes:new Map,over:null,measureDroppableContainers:an},Er=(0,St.createContext)(xr),Sr=(0,St.createContext)(wr);function Nr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new yr}}}function Cr(e,t){switch(t.type){case on.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case on.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case on.DragEnd:case on.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case on.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new yr(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case on.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const i=new yr(e.droppable.containers);return i.set(n,{...a,disabled:o}),{...e,droppable:{...e.droppable,containers:i}}}case on.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new yr(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Tr(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=(0,St.useContext)(Er),a=Ft(r),i=Ft(null==n?void 0:n.id);return(0,St.useEffect)((()=>{if(!t&&!r&&a&&null!=i){if(!$t(a))return;if(document.activeElement===a.target)return;const e=o.get(i);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=qt(e);if(t){t.focus();break}}}))}}),[r,t,o,i,a]),null}const Mr=(0,St.createContext)({...ln,scaleX:1,scaleY:1});var kr;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(kr||(kr={}));const Ir=(0,St.memo)((function(e){var t,n,r,o;let{id:a,accessibility:i,autoScroll:s=!0,children:l,sensors:c=gr,collisionDetection:d=vn,measuring:u,modifiers:h,...f}=e;const p=(0,St.useReducer)(Cr,void 0,Nr),[m,g]=p,[v,b]=function(){const[e]=(0,St.useState)((()=>new Set)),t=(0,St.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,St.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[y,w]=(0,St.useState)(kr.Uninitialized),x=y===kr.Initialized,{draggable:{active:E,nodes:S,translate:N},droppable:{containers:C}}=m,T=null!=E?S.get(E):null,M=(0,St.useRef)({initial:null,translated:null}),k=(0,St.useMemo)((()=>{var e;return null!=E?{id:E,data:null!=(e=null==T?void 0:T.data)?e:vr,rect:M}:null}),[E,T]),I=(0,St.useRef)(null),[R,O]=(0,St.useState)(null),[D,P]=(0,St.useState)(null),j=_t(f,Object.values(f)),L=Ut("DndDescribedBy",a),A=(0,St.useMemo)((()=>C.getEnabled()),[C]),_=(B=u,(0,St.useMemo)((()=>({draggable:{...br.draggable,...null==B?void 0:B.draggable},droppable:{...br.droppable,...null==B?void 0:B.droppable},dragOverlay:{...br.dragOverlay,...null==B?void 0:B.dragOverlay}})),[null==B?void 0:B.draggable,null==B?void 0:B.droppable,null==B?void 0:B.dragOverlay]));var B;const{droppableRects:H,measureDroppableContainers:F,measuringScheduled:z}=function(e,t){let{dragging:n,dependencies:r,config:o}=t;const[a,i]=(0,St.useState)(null),{frequency:s,measure:l,strategy:c}=o,d=(0,St.useRef)(e),u=function(){switch(c){case ar.Always:return!1;case ar.BeforeDragging:return n;default:return!n}}(),h=_t(u),f=(0,St.useCallback)((function(e){void 0===e&&(e=[]),h.current||i((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[h]),p=(0,St.useRef)(null),m=Bt((t=>{if(u&&!n)return sr;if(!t||t===sr||d.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new Bn(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,a,n,u,l]);return(0,St.useEffect)((()=>{d.current=e}),[e]),(0,St.useEffect)((()=>{u||f()}),[n,u]),(0,St.useEffect)((()=>{a&&a.length>0&&i(null)}),[JSON.stringify(a)]),(0,St.useEffect)((()=>{u||"number"!=typeof s||null!==p.current||(p.current=setTimeout((()=>{f(),p.current=null}),s))}),[s,u,f,...r]),{droppableRects:m,measureDroppableContainers:f,measuringScheduled:null!=a}}(A,{dragging:x,dependencies:[N.x,N.y],config:_.droppable}),U=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return Bt((e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(S,E),G=(0,St.useMemo)((()=>D?Vt(D):null),[D]),W=function(){const e=!1===(null==R?void 0:R.autoScrollEnabled),t="object"==typeof s?!1===s.enabled:!1===s,n=x&&!e&&!t;return"object"==typeof s?{...s,enabled:n}:{enabled:n}}(),Y=function(e,t){return lr(e,t)}(U,_.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const a=(0,St.useRef)(!1),{x:i,y:s}="boolean"==typeof o?{x:o,y:o}:o;Lt((()=>{if(!i&&!s||!t)return void(a.current=!1);if(a.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=bn(n(e),r);if(i||(o.x=0),s||(o.y=0),a.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=Cn(e);t&&t.scrollBy({top:o.y,left:o.x})}}),[t,i,s,r,n])}({activeNode:null!=E?S.get(E):null,config:W.layoutShiftCompensation,initialRect:Y,measure:_.draggable.measure});const $=ur(U,_.draggable.measure,Y),V=ur(U?U.parentElement:null),X=(0,St.useRef)({activatorEvent:null,active:null,activeNode:U,collisionRect:null,collisions:null,droppableRects:H,draggableNodes:S,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),K=C.getNodeFor(null==(t=X.current.over)?void 0:t.id),q=function(e){let{measure:t}=e;const[n,r]=(0,St.useState)(null),o=cr({callback:(0,St.useCallback)((e=>{for(const{target:n}of e)if(Dt(n)){r((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),a=(0,St.useCallback)((e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Dt(t)?t:e}(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),r(n?t(n):null)}),[t,o]),[i,s]=Ht(a);return(0,St.useMemo)((()=>({nodeRef:i,rect:n,setRef:s})),[n,i,s])}({measure:_.dragOverlay.measure}),Z=null!=(n=q.nodeRef.current)?n:U,J=x?null!=(r=q.rect)?r:$:null,Q=Boolean(q.nodeRef.current&&q.rect),ee=bn(te=Q?null:$,lr(te));var te;const ne=pr(Z?Rt(Z):null),re=function(e){const t=(0,St.useRef)(e),n=Bt((n=>e?n&&n!==hr&&e&&t.current&&e.parentNode===t.current.parentNode?n:Nn(e):hr),[e]);return(0,St.useEffect)((()=>{t.current=e}),[e]),n}(x?null!=K?K:U:null),oe=function(e,t){void 0===t&&(t=En);const[n]=e,r=pr(n?Rt(n):null),[o,a]=(0,St.useState)(mr);function i(){a((()=>e.length?e.map((e=>On(e)?r:new Bn(t(e),e))):mr))}const s=cr({callback:i});return Lt((()=>{null==s||s.disconnect(),i(),e.forEach((e=>null==s?void 0:s.observe(e)))}),[e]),o}(re),ae=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}(h,{transform:{x:N.x-ee.x,y:N.y-ee.y,scaleX:1,scaleY:1},activatorEvent:D,active:k,activeNodeRect:$,containerNodeRect:V,draggingNodeRect:J,over:X.current.over,overlayNodeRect:q.rect,scrollableAncestors:re,scrollableAncestorRects:oe,windowRect:ne}),ie=G?Wt(G,N):null,se=function(e){const[t,n]=(0,St.useState)(null),r=(0,St.useRef)(e),o=(0,St.useCallback)((e=>{const t=Tn(e.target);t&&n((e=>e?(e.set(t,In(t)),new Map(e)):null))}),[]);return(0,St.useEffect)((()=>{const t=r.current;if(e!==t){a(t);const i=e.map((e=>{const t=Tn(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,In(t)]):null})).filter((e=>null!=e));n(i.length?new Map(i):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach((e=>{const t=Tn(e);null==t||t.removeEventListener("scroll",o)}))}}),[o,e]),(0,St.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>Wt(e,t)),ln):An(e):ln),[e,t])}(re),le=fr(se),ce=fr(se,[$]),de=Wt(ae,le),ue=J?wn(J,ae):null,he=k&&ue?d({active:k,collisionRect:ue,droppableRects:H,droppableContainers:A,pointerCoordinates:ie}):null,fe=fn(he,"id"),[pe,me]=(0,St.useState)(null),ge=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Q?ae:Wt(ae,ce),null!=(o=null==pe?void 0:pe.rect)?o:null,$),ve=(0,St.useRef)(null),be=(0,St.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==I.current)return;const o=S.get(I.current);if(!o)return;const a=e.nativeEvent,i=new n({active:I.current,activeNode:o,event:a,options:r,context:X,onAbort(e){if(!S.get(e))return;const{onDragAbort:t}=j.current,n={id:e};null==t||t(n),v({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!S.get(e))return;const{onDragPending:o}=j.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(a),v({type:"onDragPending",event:a})},onStart(e){const t=I.current;if(null==t)return;const n=S.get(t);if(!n)return;const{onDragStart:r}=j.current,o={activatorEvent:a,active:{id:t,data:n.data,rect:M}};(0,Tt.unstable_batchedUpdates)((()=>{null==r||r(o),w(kr.Initializing),g({type:on.DragStart,initialCoordinates:e,active:t}),v({type:"onDragStart",event:o}),O(ve.current),P(a)}))},onMove(e){g({type:on.DragMove,coordinates:e})},onEnd:s(on.DragEnd),onCancel:s(on.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=X.current;let i=null;if(t&&o){const{cancelDrop:s}=j.current;i={activatorEvent:a,active:t,collisions:n,delta:o,over:r},e===on.DragEnd&&"function"==typeof s&&await Promise.resolve(s(i))&&(e=on.DragCancel)}I.current=null,(0,Tt.unstable_batchedUpdates)((()=>{g({type:e}),w(kr.Uninitialized),me(null),O(null),P(null),ve.current=null;const t=e===on.DragEnd?"onDragEnd":"onDragCancel";if(i){const e=j.current[t];null==e||e(i),v({type:t,event:i})}}))}}ve.current=i}),[S]),ye=(0,St.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,a=S.get(r);if(null!==I.current||!a||o.dndKit||o.defaultPrevented)return;const i={active:a};!0===e(n,t.options,i)&&(o.dndKit={capturedBy:t.sensor},I.current=r,be(n,t))}),[S,be]),we=function(e,t){return(0,St.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(c,ye);!function(e){(0,St.useEffect)((()=>{if(!Mt)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(c),Lt((()=>{$&&y===kr.Initializing&&w(kr.Initialized)}),[$,y]),(0,St.useEffect)((()=>{const{onDragMove:e}=j.current,{active:t,activatorEvent:n,collisions:r,over:o}=X.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:o};(0,Tt.unstable_batchedUpdates)((()=>{null==e||e(a),v({type:"onDragMove",event:a})}))}),[de.x,de.y]),(0,St.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=X.current;if(!e||null==I.current||!t||!o)return;const{onDragOver:a}=j.current,i=r.get(fe),s=i&&i.rect.current?{id:i.id,rect:i.rect.current,data:i.data,disabled:i.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:s};(0,Tt.unstable_batchedUpdates)((()=>{me(s),null==a||a(l),v({type:"onDragOver",event:l})}))}),[fe]),Lt((()=>{X.current={activatorEvent:D,active:k,activeNode:U,collisionRect:ue,collisions:he,droppableRects:H,draggableNodes:S,draggingNode:Z,draggingNodeRect:J,droppableContainers:C,over:pe,scrollableAncestors:re,scrollAdjustedTranslate:de},M.current={initial:J,translated:ue}}),[k,U,he,ue,S,Z,J,H,C,pe,re,de]),function(e){let{acceleration:t,activator:n=nr.Pointer,canScroll:r,draggingRect:o,enabled:a,interval:i=5,order:s=rr.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:d,delta:u,threshold:h}=e;const f=function(e){let{delta:t,disabled:n}=e;const r=Ft(t);return Bt((e=>{if(n||!r||!e)return or;const o=Math.sign(t.x-r.x),a=Math.sign(t.y-r.y);return{x:{[Rn.Backward]:e.x[Rn.Backward]||-1===o,[Rn.Forward]:e.x[Rn.Forward]||1===o},y:{[Rn.Backward]:e.y[Rn.Backward]||-1===a,[Rn.Forward]:e.y[Rn.Forward]||1===a}}}),[n,t,r])}({delta:u,disabled:!a}),[p,m]=function(){const e=(0,St.useRef)(null);return[(0,St.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,St.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),g=(0,St.useRef)({x:0,y:0}),v=(0,St.useRef)({x:0,y:0}),b=(0,St.useMemo)((()=>{switch(n){case nr.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case nr.DraggableRect:return o}}),[n,o,l]),y=(0,St.useRef)(null),w=(0,St.useCallback)((()=>{const e=y.current;if(!e)return;const t=g.current.x*v.current.x,n=g.current.y*v.current.y;e.scrollBy(t,n)}),[]),x=(0,St.useMemo)((()=>s===rr.TreeOrder?[...c].reverse():c),[s,c]);(0,St.useEffect)((()=>{if(a&&c.length&&b){for(const e of x){if(!1===(null==r?void 0:r(e)))continue;const n=c.indexOf(e),o=d[n];if(!o)continue;const{direction:a,speed:s}=jn(e,o,b,t,h);for(const e of["x","y"])f[e][a[e]]||(s[e]=0,a[e]=0);if(s.x>0||s.y>0)return m(),y.current=e,p(w,i),g.current=s,void(v.current=a)}g.current={x:0,y:0},v.current={x:0,y:0},m()}else m()}),[t,w,r,m,a,i,JSON.stringify(b),JSON.stringify(f),p,c,x,d,JSON.stringify(h)])}({...W,delta:N,draggingRect:ue,pointerCoordinates:ie,scrollableAncestors:re,scrollableAncestorRects:oe});const xe=(0,St.useMemo)((()=>({active:k,activeNode:U,activeNodeRect:$,activatorEvent:D,collisions:he,containerNodeRect:V,dragOverlay:q,draggableNodes:S,droppableContainers:C,droppableRects:H,over:pe,measureDroppableContainers:F,scrollableAncestors:re,scrollableAncestorRects:oe,measuringConfiguration:_,measuringScheduled:z,windowRect:ne})),[k,U,$,D,he,V,q,S,C,H,pe,F,re,oe,_,z,ne]),Ee=(0,St.useMemo)((()=>({activatorEvent:D,activators:we,active:k,activeNodeRect:$,ariaDescribedById:{draggable:L},dispatch:g,draggableNodes:S,over:pe,measureDroppableContainers:F})),[D,we,k,$,g,L,S,pe,F]);return Ct().createElement(en.Provider,{value:b},Ct().createElement(Er.Provider,{value:Ee},Ct().createElement(Sr.Provider,{value:xe},Ct().createElement(Mr.Provider,{value:ge},l)),Ct().createElement(Tr,{disabled:!1===(null==i?void 0:i.restoreFocus)})),Ct().createElement(rn,{...i,hiddenTextDescribedById:L}))})),Rr=(0,St.createContext)(null),Or="button";const Dr={timeout:25};function Pr(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function jr(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function Lr(e){return null!==e&&e>=0}const Ar=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const a=Pr(t,r,n),i=t[o],s=a[o];return s&&i?{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}:null},_r={scaleX:1,scaleY:1},Br=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:a,overIndex:i}=e;const s=null!=(t=a[n])?t:r;if(!s)return null;if(o===n){const e=a[i];return e?{x:0,y:n<i?e.top+e.height-(s.top+s.height):e.top-s.top,..._r}:null}const l=function(e,t,n){const r=e[t],o=e[t-1],a=e[t+1];return r?n<t?o?r.top-(o.top+o.height):a?a.top-(r.top+r.height):0:a?a.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}(a,o,n);return o>n&&o<=i?{x:0,y:-s.height-l,..._r}:o<n&&o>=i?{x:0,y:s.height+l,..._r}:{x:0,y:0,..._r}},Hr="Sortable",Fr=Ct().createContext({activeIndex:-1,containerId:Hr,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Ar,disabled:{draggable:!1,droppable:!1}});function zr(e){let{children:t,id:n,items:r,strategy:o=Ar,disabled:a=!1}=e;const{active:i,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:d}=(0,St.useContext)(Sr),u=Ut(Hr,n),h=Boolean(null!==s.rect),f=(0,St.useMemo)((()=>r.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[r]),p=null!=i,m=i?f.indexOf(i.id):-1,g=c?f.indexOf(c.id):-1,v=(0,St.useRef)(f),b=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(f,v.current),y=-1!==g&&-1===m||b,w=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(a);Lt((()=>{b&&p&&d(f)}),[b,f,p,d]),(0,St.useEffect)((()=>{v.current=f}),[f]);const x=(0,St.useMemo)((()=>({activeIndex:m,containerId:u,disabled:w,disableTransforms:y,items:f,overIndex:g,useDragOverlay:h,sortedRects:jr(f,l),strategy:o})),[m,u,w.draggable,w.droppable,y,f,g,l,h,o]);return Ct().createElement(Fr.Provider,{value:x},t)}const Ur=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Pr(n,r,o).indexOf(t)},Gr=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:a,newIndex:i,previousItems:s,previousContainerId:l,transition:c}=e;return!(!c||!r||s!==a&&o===i||!n&&(i===o||t!==l))},Wr={duration:200,easing:"ease"},Yr="transform",$r=Xt.Transition.toString({property:Yr,duration:0,easing:"linear"}),Vr={roleDescription:"sortable"};function Xr(e){let{animateLayoutChanges:t=Gr,attributes:n,disabled:r,data:o,getNewIndex:a=Ur,id:i,strategy:s,resizeObserverConfig:l,transition:c=Wr}=e;const{items:d,containerId:u,activeIndex:h,disabled:f,disableTransforms:p,sortedRects:m,overIndex:g,useDragOverlay:v,strategy:b}=(0,St.useContext)(Fr),y=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,f),w=d.indexOf(i),x=(0,St.useMemo)((()=>({sortable:{containerId:u,index:w,items:d},...o})),[u,o,w,d]),E=(0,St.useMemo)((()=>d.slice(d.indexOf(i))),[d,i]),{rect:S,node:N,isOver:C,setNodeRef:T}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const a=Ut("Droppable"),{active:i,dispatch:s,over:l,measureDroppableContainers:c}=(0,St.useContext)(Er),d=(0,St.useRef)({disabled:n}),u=(0,St.useRef)(!1),h=(0,St.useRef)(null),f=(0,St.useRef)(null),{disabled:p,updateMeasurementsFor:m,timeout:g}={...Dr,...o},v=_t(null!=m?m:r),b=cr({callback:(0,St.useCallback)((()=>{u.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout((()=>{c(Array.isArray(v.current)?v.current:[v.current]),f.current=null}),g)):u.current=!0}),[g]),disabled:p||!i}),y=(0,St.useCallback)(((e,t)=>{b&&(t&&(b.unobserve(t),u.current=!1),e&&b.observe(e))}),[b]),[w,x]=Ht(y),E=_t(t);return(0,St.useEffect)((()=>{b&&w.current&&(b.disconnect(),u.current=!1,b.observe(w.current))}),[w,b]),(0,St.useEffect)((()=>(s({type:on.RegisterDroppable,element:{id:r,key:a,disabled:n,node:w,rect:h,data:E}}),()=>s({type:on.UnregisterDroppable,key:a,id:r}))),[r]),(0,St.useEffect)((()=>{n!==d.current.disabled&&(s({type:on.SetDroppableDisabled,id:r,key:a,disabled:n}),d.current.disabled=n)}),[r,a,n,s]),{active:i,rect:h,isOver:(null==l?void 0:l.id)===r,node:w,over:l,setNodeRef:x}}({id:i,data:x,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...l}}),{active:M,activatorEvent:k,activeNodeRect:I,attributes:R,setNodeRef:O,listeners:D,isDragging:P,over:j,setActivatorNodeRef:L,transform:A}=function(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const a=Ut("Draggable"),{activators:i,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:d,draggableNodes:u,over:h}=(0,St.useContext)(Er),{role:f=Or,roleDescription:p="draggable",tabIndex:m=0}=null!=o?o:{},g=(null==l?void 0:l.id)===t,v=(0,St.useContext)(g?Mr:Rr),[b,y]=Ht(),[w,x]=Ht(),E=function(e,t){return(0,St.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(i,t),S=_t(n);return Lt((()=>(u.set(t,{id:t,key:a,node:b,activatorNode:w,data:S}),()=>{const e=u.get(t);e&&e.key===a&&u.delete(t)})),[u,t]),{active:l,activatorEvent:s,activeNodeRect:c,attributes:(0,St.useMemo)((()=>({role:f,tabIndex:m,"aria-disabled":r,"aria-pressed":!(!g||f!==Or)||void 0,"aria-roledescription":p,"aria-describedby":d.draggable})),[r,f,m,g,p,d.draggable]),isDragging:g,listeners:r?void 0:E,node:b,over:h,setNodeRef:y,setActivatorNodeRef:x,transform:v}}({id:i,data:x,attributes:{...Vr,...n},disabled:y.draggable}),_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,St.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}(T,O),B=Boolean(M),H=B&&!p&&Lr(h)&&Lr(g),F=!v&&P,z=F&&H?A:null,U=H?null!=z?z:(null!=s?s:b)({rects:m,activeNodeRect:I,activeIndex:h,overIndex:g,index:w}):null,G=Lr(h)&&Lr(g)?a({id:i,items:d,activeIndex:h,overIndex:g}):w,W=null==M?void 0:M.id,Y=(0,St.useRef)({activeId:W,items:d,newIndex:G,containerId:u}),$=d!==Y.current.items,V=t({active:M,containerId:u,isDragging:P,isSorting:B,id:i,index:w,items:d,newIndex:Y.current.newIndex,previousItems:Y.current.items,previousContainerId:Y.current.containerId,transition:c,wasDragging:null!=Y.current.activeId}),X=function(e){let{disabled:t,index:n,node:r,rect:o}=e;const[a,i]=(0,St.useState)(null),s=(0,St.useRef)(n);return Lt((()=>{if(!t&&n!==s.current&&r.current){const e=o.current;if(e){const t=En(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&i(n)}}n!==s.current&&(s.current=n)}),[t,n,r,o]),(0,St.useEffect)((()=>{a&&i(null)}),[a]),a}({disabled:!V,index:w,node:N,rect:S});return(0,St.useEffect)((()=>{B&&Y.current.newIndex!==G&&(Y.current.newIndex=G),u!==Y.current.containerId&&(Y.current.containerId=u),d!==Y.current.items&&(Y.current.items=d)}),[B,G,u,d]),(0,St.useEffect)((()=>{if(W===Y.current.activeId)return;if(null!=W&&null==Y.current.activeId)return void(Y.current.activeId=W);const e=setTimeout((()=>{Y.current.activeId=W}),50);return()=>clearTimeout(e)}),[W]),{active:M,activeIndex:h,attributes:R,data:x,rect:S,index:w,newIndex:G,items:d,isOver:C,isSorting:B,isDragging:P,listeners:D,node:N,overIndex:g,over:j,setNodeRef:_,setActivatorNodeRef:L,setDroppableNodeRef:T,setDraggableNodeRef:O,transform:null!=X?X:U,transition:X||$&&Y.current.newIndex===w?$r:F&&!$t(k)||!c?void 0:B||V?Xt.Transition.toString({...c,property:Yr}):void 0}}function Kr(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const qr=[Un.Down,Un.Right,Un.Up,Un.Left],Zr=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:a,over:i,scrollableAncestors:s}}=t;if(qr.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];a.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const a=o.get(n.id);if(a)switch(e.code){case Un.Down:r.top<a.top&&t.push(n);break;case Un.Up:r.top>a.top&&t.push(n);break;case Un.Left:r.left>a.left&&t.push(n);break;case Un.Right:r.left<a.left&&t.push(n)}}));const d=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=hn(t),a=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=hn(r),i=o.reduce(((e,t,r)=>e+cn(n[r],t)),0),s=Number((i/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:s}})}}return a.sort(dn)})({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let u=fn(d,"id");if(u===(null==i?void 0:i.id)&&d.length>1&&(u=d[1].id),null!=u){const e=a.get(n.id),t=a.get(u),i=t?o.get(t.id):null,d=null==t?void 0:t.node.current;if(d&&i&&e&&t){const n=Nn(d).some(((e,t)=>s[t]!==e)),o=Jr(e,t),a=(c=t,!(!Kr(l=e)||!Kr(c))&&!!Jr(l,c)&&l.data.current.sortable.index<c.data.current.sortable.index),u=n||!o?{x:0,y:0}:{x:a?r.width-i.width:0,y:a?r.height-i.height:0},h={x:i.left,y:i.top};return u.x&&u.y?h:Yt(h,u)}}}var l,c};function Jr(e,t){return!(!Kr(e)||!Kr(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var Qr=function(e,t){return Qr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Qr(e,t)};function eo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Qr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var to=function(){return to=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},to.apply(this,arguments)};function no(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 ro(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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 oo(e,t){var n=t&&t.cache?t.cache:mo,r=t&&t.serializer?t.serializer:co;return(t&&t.strategy?t.strategy:lo)(e,{cache:n,serializer:r})}function ao(e,t,n,r){var o,a=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),i=t.get(a);return void 0===i&&(i=e.call(this,r),t.set(a,i)),i}function io(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),a=t.get(o);return void 0===a&&(a=e.apply(this,r),t.set(o,a)),a}function so(e,t,n,r,o){return n.bind(t,e,r,o)}function lo(e,t){return so(e,this,1===e.length?ao:io,t.cache.create(),t.serializer)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var co=function(){return JSON.stringify(arguments)};function uo(){this.cache=Object.create(null)}uo.prototype.get=function(e){return this.cache[e]},uo.prototype.set=function(e,t){this.cache[e]=t};var ho,fo,po,mo={create:function(){return new uo}},go={variadic:function(e,t){return so(e,this,io,t.cache.create(),t.serializer)},monadic:function(e,t){return so(e,this,ao,t.cache.create(),t.serializer)}};function vo(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function bo(e){return e.type===fo.literal}function yo(e){return e.type===fo.argument}function wo(e){return e.type===fo.number}function xo(e){return e.type===fo.date}function Eo(e){return e.type===fo.time}function So(e){return e.type===fo.select}function No(e){return e.type===fo.plural}function Co(e){return e.type===fo.pound}function To(e){return e.type===fo.tag}function Mo(e){return!(!e||"object"!=typeof e||e.type!==po.number)}function ko(e){return!(!e||"object"!=typeof e||e.type!==po.dateTime)}oo((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ro([void 0],t,!1)))}),{strategy:go.variadic}),oo((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ro([void 0],t,!1)))}),{strategy:go.variadic}),oo((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ro([void 0],t,!1)))}),{strategy:go.variadic}),oo((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,ro([void 0],t,!1)))}),{strategy:go.variadic}),oo((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,ro([void 0],t,!1)))}),{strategy:go.variadic}),function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(ho||(ho={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(fo||(fo={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(po||(po={}));var Io=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ro=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Oo(e){var t={};return e.replace(Ro,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Do=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Po=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,jo=/^(@+)?(\+|#+)?[rs]?$/g,Lo=/(\*)(0+)|(#+)(0+)|(0+)/g,Ao=/^(0+)$/;function _o(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(jo,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function Bo(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ho(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ao.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Fo(e){return Bo(e)||{}}function zo(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=to(to(to({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return to(to({},e),Fo(t))}),{}));continue;case"engineering":t=to(to(to({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return to(to({},e),Fo(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Lo,(function(e,n,r,o,a,i){if(n)t.minimumIntegerDigits=r.length;else{if(o&&a)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Ao.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Po.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Po,(function(e,n,r,o,a,i){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:a&&i?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+i.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var a=o.options[0];"w"===a?t=to(to({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=to(to({},t),_o(a)))}else if(jo.test(o.stem))t=to(to({},t),_o(o.stem));else{var i=Bo(o.stem);i&&(t=to(to({},t),i));var s=Ho(o.stem);s&&(t=to(to({},t),s))}}return t}var Uo,Go={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Wo(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(Go[n||""]||Go[r||""]||Go["".concat(r,"-001")]||Go["001"])[0]}var Yo=new RegExp("^".concat(Io.source,"*")),$o=new RegExp("".concat(Io.source,"*$"));function Vo(e,t){return{start:e,end:t}}var Xo=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ko=!!String.fromCodePoint,qo=!!Object.fromEntries,Zo=!!String.prototype.codePointAt,Jo=!!String.prototype.trimStart,Qo=!!String.prototype.trimEnd,ea=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ta=!0;try{ta="a"===(null===(Uo=ca("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Uo?void 0:Uo[0])}catch(e){ta=!1}var na,ra=Xo?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},oa=Ko?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,a=0;o>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},aa=qo?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],a=o[0],i=o[1];t[a]=i}return t},ia=Zo?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},sa=Jo?function(e){return e.trimStart()}:function(e){return e.replace(Yo,"")},la=Qo?function(e){return e.trimEnd()}:function(e){return e.replace($o,"")};function ca(e,t){return new RegExp(e,t)}if(ta){var da=ca("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");na=function(e,t){var n;return da.lastIndex=t,null!==(n=da.exec(e)[1])&&void 0!==n?n:""}}else na=function(e,t){for(var n=[];;){var r=ia(e,t);if(void 0===r||pa(r)||ma(r))break;n.push(r),t+=r>=65536?2:1}return oa.apply(void 0,n)};var ua,ha=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((a=this.parseArgument(e,n)).err)return a;r.push(a.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(ho.UNMATCHED_CLOSING_TAG,Vo(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&fa(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a;r.push(a.val)}else{var a;if((a=this.parseLiteral(e,t)).err)return a;r.push(a.val)}}else{var i=this.clonePosition();this.bump(),r.push({type:fo.pound,location:Vo(i,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fo.literal,value:"<".concat(r,"/>"),location:Vo(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var a=o.val,i=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!fa(this.char()))return this.error(ho.INVALID_TAG,Vo(i,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(ho.UNMATCHED_CLOSING_TAG,Vo(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:fo.tag,value:r,children:a,location:Vo(n,this.clonePosition())},err:null}:this.error(ho.INVALID_TAG,Vo(i,this.clonePosition())))}return this.error(ho.UNCLOSED_TAG,Vo(n,this.clonePosition()))}return this.error(ho.INVALID_TAG,Vo(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}var s=Vo(n,this.clonePosition());return{val:{type:fo.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(fa(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return oa.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),oa(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ho.EXPECT_ARGUMENT_CLOSING_BRACE,Vo(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ho.EMPTY_ARGUMENT,Vo(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(ho.MALFORMED_ARGUMENT,Vo(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ho.EXPECT_ARGUMENT_CLOSING_BRACE,Vo(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fo.argument,value:r,location:Vo(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ho.EXPECT_ARGUMENT_CLOSING_BRACE,Vo(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(ho.MALFORMED_ARGUMENT,Vo(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=na(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Vo(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(ho.EXPECT_ARGUMENT_TYPE,Vo(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(f=la(v.val)).length)return this.error(ho.EXPECT_ARGUMENT_STYLE,Vo(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Vo(c,this.clonePosition())}}if((b=this.tryParseArgumentClose(r)).err)return b;var d=Vo(r,this.clonePosition());if(l&&ra(null==l?void 0:l.style,"::",0)){var u=sa(l.style.slice(2));if("number"===i)return(v=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?v:{val:{type:fo.number,value:n,location:d,style:v.val},err:null};if(0===u.length)return this.error(ho.EXPECT_DATE_TIME_SKELETON,d);var h=u;this.locale&&(h=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var a=0;r+1<e.length&&e.charAt(r+1)===o;)a++,r++;var i=1+(1&a),s=a<2?1:3+(a>>1),l=Wo(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;i-- >0;)n=l+n}else n+="J"===o?"H":o}return n}(u,this.locale));var f={type:po.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Oo(h):{}};return{val:{type:"date"===i?fo.date:fo.time,value:n,location:d,style:f},err:null}}return{val:{type:"number"===i?fo.number:"date"===i?fo.date:fo.time,value:n,location:d,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ho.EXPECT_SELECT_ARGUMENT_OPTIONS,Vo(p,to({},p)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==i&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(ho.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Vo(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(ho.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ho.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=v.val}var b,y=this.tryParsePluralOrSelectOptions(e,i,t,m);if(y.err)return y;if((b=this.tryParseArgumentClose(r)).err)return b;var w=Vo(r,this.clonePosition());return"select"===i?{val:{type:fo.select,value:n,options:aa(y.val),location:w},err:null}:{val:{type:fo.plural,value:n,options:aa(y.val),offset:g,pluralType:"plural"===i?"cardinal":"ordinal",location:w},err:null};default:return this.error(ho.INVALID_ARGUMENT_TYPE,Vo(a,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ho.EXPECT_ARGUMENT_CLOSING_BRACE,Vo(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ho.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Vo(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(Do).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],i=o.slice(1),s=0,l=i;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:i})}return t}(e)}catch(e){return this.error(ho.INVALID_NUMBER_SKELETON,t)}return{val:{type:po.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?zo(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,a=!1,i=[],s=new Set,l=r.value,c=r.location;;){if(0===l.length){var d=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(ho.EXPECT_PLURAL_ARGUMENT_SELECTOR,ho.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;c=Vo(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}if(s.has(l))return this.error("select"===t?ho.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ho.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ho.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ho.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Vo(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var p=this.tryParseArgumentClose(h);if(p.err)return p;i.push([l,{value:f.val,location:Vo(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===i.length?this.error("select"===t?ho.EXPECT_SELECT_ARGUMENT_SELECTOR:ho.EXPECT_PLURAL_ARGUMENT_SELECTOR,Vo(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(ho.MISSING_OTHER_CLAUSE,Vo(this.clonePosition(),this.clonePosition())):{val:i,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(i>=48&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}var s=Vo(r,this.clonePosition());return o?ea(a*=n)?{val:a,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ia(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(ra(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&pa(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function fa(e){return e>=97&&e<=122||e>=65&&e<=90}function pa(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ma(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ga(e){e.forEach((function(e){if(delete e.location,So(e)||No(e))for(var t in e.options)delete e.options[t].location,ga(e.options[t].value);else wo(e)&&Mo(e.style)||(xo(e)||Eo(e))&&ko(e.style)?delete e.style.location:To(e)&&ga(e.children)}))}function va(e,t){void 0===t&&(t={}),t=to({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ha(e,t).parse();if(n.err){var r=SyntaxError(ho[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||ga(n.val),n.val}!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ua||(ua={}));var ba,ya=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return eo(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),wa=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),ua.INVALID_VALUE,o)||this}return eo(t,e),t}(ya),xa=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),ua.INVALID_VALUE,r)||this}return eo(t,e),t}(ya),Ea=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),ua.MISSING_VALUE,n)||this}return eo(t,e),t}(ya);function Sa(e){return"function"==typeof e}function Na(e,t,n,r,o,a,i){if(1===e.length&&bo(e[0]))return[{type:ba.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var d=c[l];if(bo(d))s.push({type:ba.literal,value:d.value});else if(Co(d))"number"==typeof a&&s.push({type:ba.literal,value:n.getNumberFormat(t).format(a)});else{var u=d.value;if(!o||!(u in o))throw new Ea(u,i);var h=o[u];if(yo(d))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?ba.literal:ba.object,value:h});else if(xo(d)){var f="string"==typeof d.style?r.date[d.style]:ko(d.style)?d.style.parsedOptions:void 0;s.push({type:ba.literal,value:n.getDateTimeFormat(t,f).format(h)})}else if(Eo(d))f="string"==typeof d.style?r.time[d.style]:ko(d.style)?d.style.parsedOptions:r.time.medium,s.push({type:ba.literal,value:n.getDateTimeFormat(t,f).format(h)});else if(wo(d))(f="string"==typeof d.style?r.number[d.style]:Mo(d.style)?d.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),s.push({type:ba.literal,value:n.getNumberFormat(t,f).format(h)});else{if(To(d)){var p=d.children,m=d.value,g=o[m];if(!Sa(g))throw new xa(m,"function",i);var v=g(Na(p,t,n,r,o,a).map((function(e){return e.value})));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map((function(e){return{type:"string"==typeof e?ba.literal:ba.object,value:e}})))}if(So(d)){if(!(b=d.options[h]||d.options.other))throw new wa(d.value,h,Object.keys(d.options),i);s.push.apply(s,Na(b.value,t,n,r,o))}else if(No(d)){var b;if(!(b=d.options["=".concat(h)])){if(!Intl.PluralRules)throw new ya('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ua.MISSING_INTL_API,i);var y=n.getPluralRules(t,{type:d.pluralType}).select(h-(d.offset||0));b=d.options[y]||d.options.other}if(!b)throw new wa(d.value,h,Object.keys(d.options),i);s.push.apply(s,Na(b.value,t,n,r,o,h-(d.offset||0)))}}}}return(w=s).length<2?w:w.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===ba.literal&&t.type===ba.literal?n.value+=t.value:e.push(t),e}),[]);var w}function Ca(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(ba||(ba={}));var Ta,Ma=function(){function e(t,n,r,o){void 0===n&&(n=e.defaultLocale);var a,i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=i.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===ba.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Na(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=i.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{},l=(s.formatters,no(s,["formatters"]));this.ast=e.__parse(t,to(to({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((function(n,r){var o,a;return n[r]=(o=e[r],(a=t[r])?to(to(to({},o||{}),a||{}),Object.keys(o).reduce((function(e,t){return e[t]=to(to({},o[t]),a[t]||{}),e}),{})):o),n}),to({},e)):e}(e.formats,r),this.formatters=o&&o.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:oo((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ro([void 0],t,!1)))}),{cache:Ca(a.number),strategy:go.variadic}),getDateTimeFormat:oo((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ro([void 0],t,!1)))}),{cache:Ca(a.dateTime),strategy:go.variadic}),getPluralRules:oo((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ro([void 0],t,!1)))}),{cache:Ca(a.pluralRules),strategy:go.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=va,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(Ta||(Ta={}));var ka=function(e){function t(n,r,o){var a=this,i=o?o instanceof Error?o:new Error(String(o)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(i?"\n".concat(i.message,"\n").concat(i.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return eo(t,e),t}(Error),Ia=function(e){function t(t,n){return e.call(this,Ta.UNSUPPORTED_FORMATTER,t,n)||this}return eo(t,e),t}(ka),Ra=function(e){function t(t,n){return e.call(this,Ta.INVALID_CONFIG,t,n)||this}return eo(t,e),t}(ka),Oa=function(e){function t(t,n){return e.call(this,Ta.MISSING_DATA,t,n)||this}return eo(t,e),t}(ka),Da=function(e){function t(t,n,r){var o=e.call(this,Ta.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),r)||this;return o.locale=n,o}return eo(t,e),t}(ka),Pa=function(e){function t(t,n,r,o){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,o)||this;return a.descriptor=r,a.locale=n,a}return eo(t,e),t}(Da),ja=function(e){function t(t,n){var r=e.call(this,Ta.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return r.descriptor=t,r}return eo(t,e),t}(ka);function La(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var Aa={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function _a(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Ba(e,t,n,r){var o,a=e&&e[t];if(a&&(o=a[n]),o)return o;r(new Ia("No ".concat(t," format named: ").concat(n)))}function Ha(e){vo(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Fa=to(to({},Aa),{textComponent:St.Fragment});function za(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0;a<o;a++){var i=n[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}i(985);var Ua="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?St.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=St.createContext(null)),Ga=(Ua.Consumer,Ua.Provider),Wa=Ua;function Ya(){var e=St.useContext(Wa);return Ha(e),e}let $a=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};var Va=Array(12).fill(0),Xa=({visible:e,className:t})=>St.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},St.createElement("div",{className:"sonner-spinner"},Va.map(((e,t)=>St.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`}))))),Ka=St.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},St.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),qa=St.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},St.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Za=St.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},St.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Ja=St.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},St.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Qa=St.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},St.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),St.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ei=1,ti=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach((t=>t(e)))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:ei++,a=this.toasts.find((e=>e.id===o)),i=void 0===e.dismissible||e.dismissible;return a?this.toasts=this.toasts.map((t=>t.id===o?(this.publish({...t,...e,id:o,title:n}),{...t,...e,id:o,dismissible:i,title:n}):t)):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach((e=>{this.subscribers.forEach((t=>t({id:e.id,dismiss:!0})))})),this.subscribers.forEach((t=>t({id:e,dismiss:!0}))),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let r,o=e instanceof Promise?e:e(),a=void 0!==n,i=o.then((async e=>{if(r=["resolve",e],St.isValidElement(e))a=!1,this.create({id:n,type:"default",message:e});else if(ni(e)&&!e.ok){a=!1;let r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description;this.create({id:n,type:"error",message:r,description:o})}else if(void 0!==t.success){a=!1;let r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"success",message:r,description:o})}})).catch((async e=>{if(r=["reject",e],void 0!==t.error){a=!1;let r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"error",message:r,description:o})}})).finally((()=>{var e;a&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)})),s=()=>new Promise(((e,t)=>i.then((()=>"reject"===r[0]?t(r[1]):e(r[1]))).catch(t)));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||ei++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},ni=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,ri=Object.assign(((e,t)=>{let n=(null==t?void 0:t.id)||ei++;return ti.addToast({title:e,...t,id:n}),n}),{success:ti.success,info:ti.info,warning:ti.warning,error:ti.error,custom:ti.custom,message:ti.message,promise:ti.promise,dismiss:ti.dismiss,loading:ti.loading},{getHistory:()=>ti.toasts});function oi(e){return void 0!==e.label}!function(e,{insertAt:t}={}){if(!e||"undefined"==typeof document)return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');var ai=3,ii=14;function si(...e){return e.filter(Boolean).join(" ")}var li=e=>{var t,n,r,o,a,i,s,l,c,d,u;let{invert:h,toast:f,unstyled:p,interacting:m,setHeights:g,visibleToasts:v,heights:b,index:y,toasts:w,expanded:x,removeToast:E,defaultRichColors:S,closeButton:N,style:C,cancelButtonStyle:T,actionButtonStyle:M,className:k="",descriptionClassName:I="",duration:R,position:O,gap:D,loadingIcon:P,expandByDefault:j,classNames:L,icons:A,closeButtonAriaLabel:_="Close toast",pauseWhenPageIsHidden:B,cn:H}=e,[F,z]=St.useState(!1),[U,G]=St.useState(!1),[W,Y]=St.useState(!1),[$,V]=St.useState(!1),[X,K]=St.useState(!1),[q,Z]=St.useState(0),[J,Q]=St.useState(0),ee=St.useRef(f.duration||R||4e3),te=St.useRef(null),ne=St.useRef(null),re=0===y,oe=y+1<=v,ae=f.type,ie=!1!==f.dismissible,se=f.className||"",le=f.descriptionClassName||"",ce=St.useMemo((()=>b.findIndex((e=>e.toastId===f.id))||0),[b,f.id]),de=St.useMemo((()=>{var e;return null!=(e=f.closeButton)?e:N}),[f.closeButton,N]),ue=(St.useMemo((()=>f.duration||R||4e3),[f.duration,R]),St.useRef(0)),he=St.useRef(0),fe=St.useRef(0),pe=St.useRef(null),[me,ge]=O.split("-"),ve=St.useMemo((()=>b.reduce(((e,t,n)=>n>=ce?e:e+t.height),0)),[b,ce]),be=(()=>{let[e,t]=St.useState(document.hidden);return St.useEffect((()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)}),[]),e})(),ye=f.invert||h,we="loading"===ae;he.current=St.useMemo((()=>ce*D+ve),[ce,ve]),St.useEffect((()=>{z(!0)}),[]),St.useEffect((()=>{let e=ne.current;if(e){let t=e.getBoundingClientRect().height;return Q(t),g((e=>[{toastId:f.id,height:t,position:f.position},...e])),()=>g((e=>e.filter((e=>e.toastId!==f.id))))}}),[g,f.id]),St.useLayoutEffect((()=>{if(!F)return;let e=ne.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,Q(n),g((e=>e.find((e=>e.toastId===f.id))?e.map((e=>e.toastId===f.id?{...e,height:n}:e)):[{toastId:f.id,height:n,position:f.position},...e]))}),[F,f.title,f.description,g,f.id]);let xe=St.useCallback((()=>{G(!0),Z(he.current),g((e=>e.filter((e=>e.toastId!==f.id)))),setTimeout((()=>{E(f)}),200)}),[f,E,g,he]);return St.useEffect((()=>{if(f.promise&&"loading"===ae||f.duration===1/0||"loading"===f.type)return;let e;return x||m||B&&be?(()=>{if(fe.current<ue.current){let e=(new Date).getTime()-ue.current;ee.current=ee.current-e}fe.current=(new Date).getTime()})():ee.current!==1/0&&(ue.current=(new Date).getTime(),e=setTimeout((()=>{var e;null==(e=f.onAutoClose)||e.call(f,f),xe()}),ee.current)),()=>clearTimeout(e)}),[x,m,f,ae,B,be,xe]),St.useEffect((()=>{f.delete&&xe()}),[xe,f.delete]),St.createElement("li",{tabIndex:0,ref:ne,className:H(k,se,null==L?void 0:L.toast,null==(t=null==f?void 0:f.classNames)?void 0:t.toast,null==L?void 0:L.default,null==L?void 0:L[ae],null==(n=null==f?void 0:f.classNames)?void 0:n[ae]),"data-sonner-toast":"","data-rich-colors":null!=(r=f.richColors)?r:S,"data-styled":!(f.jsx||f.unstyled||p),"data-mounted":F,"data-promise":!!f.promise,"data-swiped":X,"data-removed":U,"data-visible":oe,"data-y-position":me,"data-x-position":ge,"data-index":y,"data-front":re,"data-swiping":W,"data-dismissible":ie,"data-type":ae,"data-invert":ye,"data-swipe-out":$,"data-expanded":!!(x||j&&F),style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${U?q:he.current}px`,"--initial-height":j?"auto":`${J}px`,...C,...f.style},onPointerDown:e=>{we||!ie||(te.current=new Date,Z(he.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(Y(!0),pe.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,r;if($||!ie)return;pe.current=null;let o=Number((null==(e=ne.current)?void 0:e.style.getPropertyValue("--swipe-amount").replace("px",""))||0),a=(new Date).getTime()-(null==(t=te.current)?void 0:t.getTime()),i=Math.abs(o)/a;if(Math.abs(o)>=20||i>.11)return Z(he.current),null==(n=f.onDismiss)||n.call(f,f),xe(),V(!0),void K(!1);null==(r=ne.current)||r.style.setProperty("--swipe-amount","0px"),Y(!1)},onPointerMove:e=>{var t,n,r;if(!pe.current||!ie)return;let o=e.clientY-pe.current.y,a=(null==(t=window.getSelection())?void 0:t.toString().length)>0;Number((null==(n=ne.current)?void 0:n.style.getPropertyValue("--swipe-amount").replace("px",""))||0)>0&&K(!0),!a&&(null==(r=ne.current)||r.style.setProperty("--swipe-amount",`${Math.max(0,o)}px`))}},de&&!f.jsx?St.createElement("button",{"aria-label":_,"data-disabled":we,"data-close-button":!0,onClick:we||!ie?()=>{}:()=>{var e;xe(),null==(e=f.onDismiss)||e.call(f,f)},className:H(null==L?void 0:L.closeButton,null==(o=null==f?void 0:f.classNames)?void 0:o.closeButton)},null!=(a=null==A?void 0:A.close)?a:Qa):null,f.jsx||St.isValidElement(f.title)?f.jsx?f.jsx:"function"==typeof f.title?f.title():f.title:St.createElement(St.Fragment,null,ae||f.icon||f.promise?St.createElement("div",{"data-icon":"",className:H(null==L?void 0:L.icon,null==(i=null==f?void 0:f.classNames)?void 0:i.icon)},f.promise||"loading"===f.type&&!f.icon?f.icon||(null!=A&&A.loading?St.createElement("div",{className:H(null==L?void 0:L.loader,null==(Ee=null==f?void 0:f.classNames)?void 0:Ee.loader,"sonner-loader"),"data-visible":"loading"===ae},A.loading):P?St.createElement("div",{className:H(null==L?void 0:L.loader,null==(Se=null==f?void 0:f.classNames)?void 0:Se.loader,"sonner-loader"),"data-visible":"loading"===ae},P):St.createElement(Xa,{className:H(null==L?void 0:L.loader,null==(Ne=null==f?void 0:f.classNames)?void 0:Ne.loader),visible:"loading"===ae})):null,"loading"!==f.type?f.icon||(null==A?void 0:A[ae])||(e=>{switch(e){case"success":return Ka;case"info":return Za;case"warning":return qa;case"error":return Ja;default:return null}})(ae):null):null,St.createElement("div",{"data-content":"",className:H(null==L?void 0:L.content,null==(s=null==f?void 0:f.classNames)?void 0:s.content)},St.createElement("div",{"data-title":"",className:H(null==L?void 0:L.title,null==(l=null==f?void 0:f.classNames)?void 0:l.title)},"function"==typeof f.title?f.title():f.title),f.description?St.createElement("div",{"data-description":"",className:H(I,le,null==L?void 0:L.description,null==(c=null==f?void 0:f.classNames)?void 0:c.description)},"function"==typeof f.description?f.description():f.description):null),St.isValidElement(f.cancel)?f.cancel:f.cancel&&oi(f.cancel)?St.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||T,onClick:e=>{var t,n;oi(f.cancel)&&ie&&(null==(n=(t=f.cancel).onClick)||n.call(t,e),xe())},className:H(null==L?void 0:L.cancelButton,null==(d=null==f?void 0:f.classNames)?void 0:d.cancelButton)},f.cancel.label):null,St.isValidElement(f.action)?f.action:f.action&&oi(f.action)?St.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||M,onClick:e=>{var t,n;oi(f.action)&&(null==(n=(t=f.action).onClick)||n.call(t,e),!e.defaultPrevented&&xe())},className:H(null==L?void 0:L.actionButton,null==(u=null==f?void 0:f.classNames)?void 0:u.actionButton)},f.action.label):null));var Ee,Se,Ne};function ci(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var di=(0,St.forwardRef)((function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:i,className:s,offset:l,theme:c="light",richColors:d,duration:u,style:h,visibleToasts:f=ai,toastOptions:p,dir:m=ci(),gap:g=ii,loadingIcon:v,icons:b,containerAriaLabel:y="Notifications",pauseWhenPageIsHidden:w,cn:x=si}=e,[E,S]=St.useState([]),N=St.useMemo((()=>Array.from(new Set([r].concat(E.filter((e=>e.position)).map((e=>e.position)))))),[E,r]),[C,T]=St.useState([]),[M,k]=St.useState(!1),[I,R]=St.useState(!1),[O,D]=St.useState("system"!==c?c:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),P=St.useRef(null),j=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=St.useRef(null),A=St.useRef(!1),_=St.useCallback((e=>{S((t=>{var n;return null!=(n=t.find((t=>t.id===e.id)))&&n.delete||ti.dismiss(e.id),t.filter((({id:t})=>t!==e.id))}))}),[]);return St.useEffect((()=>ti.subscribe((e=>{e.dismiss?S((t=>t.map((t=>t.id===e.id?{...t,delete:!0}:t)))):setTimeout((()=>{Tt.flushSync((()=>{S((t=>{let n=t.findIndex((t=>t.id===e.id));return-1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]}))}))}))}))),[]),St.useEffect((()=>{if("system"!==c)return void D(c);if("system"===c&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?D("dark"):D("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",(({matches:e})=>{D(e?"dark":"light")}))}catch(t){e.addListener((({matches:e})=>{try{D(e?"dark":"light")}catch(e){console.error(e)}}))}}),[c]),St.useEffect((()=>{E.length<=1&&k(!1)}),[E]),St.useEffect((()=>{let e=e=>{var t,n;o.every((t=>e[t]||e.code===t))&&(k(!0),null==(t=P.current)||t.focus()),"Escape"===e.code&&(document.activeElement===P.current||null!=(n=P.current)&&n.contains(document.activeElement))&&k(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[o]),St.useEffect((()=>{if(P.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,A.current=!1)}}),[P.current]),St.createElement("section",{"aria-label":`${y} ${j}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false"},N.map(((e,t)=>{var r;let[o,c]=e.split("-");return E.length?St.createElement("ol",{key:e,dir:"auto"===m?ci():m,tabIndex:-1,ref:P,className:s,"data-sonner-toaster":!0,"data-theme":O,"data-y-position":o,"data-lifted":M&&E.length>1&&!a,"data-x-position":c,style:{"--front-toast-height":`${(null==(r=C[0])?void 0:r.height)||0}px`,"--offset":"number"==typeof l?`${l}px`:l||"32px","--width":"356px","--gap":`${g}px`,...h},onBlur:e=>{A.current&&!e.currentTarget.contains(e.relatedTarget)&&(A.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||A.current||(A.current=!0,L.current=e.relatedTarget)},onMouseEnter:()=>k(!0),onMouseMove:()=>k(!0),onMouseLeave:()=>{I||k(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||R(!0)},onPointerUp:()=>R(!1)},E.filter((n=>!n.position&&0===t||n.position===e)).map(((t,r)=>{var o,s;return St.createElement(li,{key:t.id,icons:b,index:r,toast:t,defaultRichColors:d,duration:null!=(o=null==p?void 0:p.duration)?o:u,className:null==p?void 0:p.className,descriptionClassName:null==p?void 0:p.descriptionClassName,invert:n,visibleToasts:f,closeButton:null!=(s=null==p?void 0:p.closeButton)?s:i,interacting:I,position:e,style:null==p?void 0:p.style,unstyled:null==p?void 0:p.unstyled,classNames:null==p?void 0:p.classNames,cancelButtonStyle:null==p?void 0:p.cancelButtonStyle,actionButtonStyle:null==p?void 0:p.actionButtonStyle,removeToast:_,toasts:E.filter((e=>e.position==t.position)),heights:C.filter((e=>e.position==t.position)),setHeights:T,expandByDefault:a,gap:g,loadingIcon:v,expanded:M,pauseWhenPageIsHidden:w,cn:x})}))):null})))}));function ui(e){var t=Ya(),n=t.formatMessage,r=t.textComponent,o=void 0===r?St.Fragment:r,a=e.id,i=e.description,s=e.defaultMessage,l=e.values,c=e.children,d=e.tagName,u=void 0===d?o:d,h=n({id:a,description:i,defaultMessage:s},l,{ignoreTag:e.ignoreTag});return"function"==typeof c?c(Array.isArray(h)?h:[h]):u?St.createElement(u,null,St.Children.toArray(h)):St.createElement(St.Fragment,null,h)}ui.displayName="FormattedMessage";var hi=St.memo(ui,(function(e,t){var n=e.values,r=no(e,["values"]),o=t.values,a=no(t,["values"]);return za(o,n)&&za(r,a)}));hi.displayName="MemoizedFormattedMessage";const fi=hi,pi={".pdf":"application/pdf",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png",".doc":"application/msword",".dot":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".dotx":"application/vnd.openxmlformats-officedocument.wordprocessingml.template",".docm":"application/vnd.ms-word.document.macroEnabled.12",".dotm":"application/vnd.ms-word.template.macroEnabled.12",".xls":"application/vnd.ms-excel",".xlt":"application/vnd.ms-excel",".xla":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".xltx":"application/vnd.openxmlformats-officedocument.spreadsheetml.template",".xlsm":"application/vnd.ms-excel.sheet.macroEnabled.12",".xltm":"application/vnd.ms-excel.template.macroEnabled.12",".xlam":"application/vnd.ms-excel.addin.macroEnabled.12",".xlsb":"application/vnd.ms-excel.sheet.binary.macroEnabled.12",".ppt":"application/vnd.ms-powerpoint",".pot":"application/vnd.ms-powerpoint",".pps":"application/vnd.ms-powerpoint",".ppa":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".potx":"application/vnd.openxmlformats-officedocument.presentationml.template",".ppsx":"application/vnd.openxmlformats-officedocument.presentationml.slideshow",".ppam":"application/vnd.ms-powerpoint.addin.macroEnabled.12",".pptm":"application/vnd.ms-powerpoint.presentation.macroEnabled.12",".potm":"application/vnd.ms-powerpoint.template.macroEnabled.12",".ppsm":"application/vnd.ms-powerpoint.slideshow.macroEnabled.12"},mi=Object.keys(pi),gi=function(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];t.hasOwnProperty(r)?t[r].push(n):t[r]=[n]})),t}(pi),vi=Object.keys(gi);var bi;mi.concat(vi).join(","),function(e){e.IDLE="IDLE",e.LOADING="LOADING",e.PROCESSING="PROCESSING",e.ERROR="ERROR",e.READY="READY",e.PENDING="PENDING"}(bi||(bi={}));const yi=bi.IDLE;function wi(e,t){const[n,r]=(0,St.useState)(null!=e?e:yi),[o,a]=(0,St.useState)(t),[i,s]=(0,St.useState)(void 0),l=(0,St.useCallback)((e=>{r(e||yi),s(void 0),a(void 0)}),[]),c=(0,St.useCallback)(((e,t,n)=>{r(e),t&&s(t),n&&a(n)}),[]);return{smStatus:n,smStatusIs:function(...e){return e.some((e=>e===n))},smStatusIsnt:function(...e){return e.every((e=>e!==n))},smIsError:!!i,smError:i,smErrorString:"string"==typeof i?i:(null==i?void 0:i.message)?i.message:JSON.stringify(i),smValue:o,smGetStatus:()=>n,smSetStatus:c,smResetStatus:l,status:bi}}var xi=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))};const Ei=(0,St.createContext)(void 0),Si={mimeTypes:vi.filter((e=>e.startsWith("image"))),multiple:!0,maxFileSizeMb:10,resetOnFinish:!1,disableSorting:!1},Ni=e=>{const{children:t,config:n=Si,handlers:r,initFiles:o}=e,{onUpload:a,onFinish:i,onAddFileError:s,onDelete:l,preProcessFiles:c}=r,{mimeTypes:d=Si.mimeTypes,multiple:u=Si.multiple,maxFileSizeMb:h=Si.maxFileSizeMb,maxFiles:f,resetOnFinish:p=Si.resetOnFinish,disableSorting:m=Si.disableSorting}=n,[g,v]=(0,St.useState)(null!=o?o:[]),{smStatus:b,smSetStatus:y,smStatusIs:w,smStatusIsnt:x}=wi("IDLE"),E=Ya();function N(e){xe(e)?ri.error(e.error.text):ri.error((0,S.jsx)(fi,{id:"UploadedFilesManager.unknownError",values:{error:String(e)}}))}function C(e){let t=[],n=[];const r=null!=s?s:N;return!u&&e.length>1?(n.push({error:{type:ye.MULTIPLE_NOT_ALLOWED,text:E.formatMessage({id:"UploadedFilesManager.multipleError"})}}),r(n[0]),{validFiles:t,errors:n}):f&&(e.length>f||e.length+g.length>f)?(n.push({error:{text:E.formatMessage({id:"UploadedFilesManager.maxFilesNumberError"},{maxFiles:f}),type:ye.MAX_FILES_NUMBER}}),r(n[0]),{validFiles:t,errors:n}):(e.forEach((e=>{if(d.includes(e.type))if(e.size*Math.pow(10,-6)>h){const t={error:{text:E.formatMessage({id:"UploadedFilesManager.fileSizeError"},{fileName:e.name}),type:ye.MAXSIZE}};n.push(t),r(t)}else t.push(e);else{const t={error:{text:E.formatMessage({id:"UploadedFilesManager.invalidFileError"},{mimeTypes:d.toString(),fileName:e.name}),type:ye.INVALID_FILE}};n.push(t),r(t)}})),{validFiles:t,errors:n})}function T(e,t,n){return xi(this,void 0,void 0,(function*(){var r;const o=[...n];let a=null==t?void 0:t[e.type];if(void 0===a&&(a=null!==(r=null==t?void 0:t.other)&&void 0!==r?r:null),!a)return n;const i=yield a([e]);if(!i)return console.error(`Preprocessing failed for file ${e.name} of type ${e.type}.`),n;if(!n||!e.id||!i)return;const s=o.findIndex((t=>t.id===e.id));return o.splice(s,1,...i.map((e=>Object.assign(Object.assign({},e),{id:$a()})))),o}))}function M(e){return xi(this,void 0,void 0,(function*(){const{validFiles:t,errors:n}=C(e);if(n.length&&!t.length)return;let r=g.reduce(((e,t)=>Math.max(e,t.order)),0)+1;const o=yield Promise.all(t.map((e=>xi(this,void 0,void 0,(function*(){if(!(e instanceof File))throw new Error("Invalid file type");const t=yield function(e){return t=this,n=void 0,o=function*(){return new Promise(((t,n)=>{if("undefined"==typeof FileReader)return void n(new Error("FileReader API is not supported in this environment"));const r=new FileReader;r.onloadend=()=>{r.result?t(r.result):n(new Error("Failed to convert blob to base64"))},r.onerror=e=>n(e),r.readAsDataURL(e)}))},new((r=void 0)||(r=Promise))((function(e,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,s)}l((o=o.apply(t,n||[])).next())}));var t,n,r,o}(e);return{id:$a(),file:e,name:e.name,size:e.size,type:e.type,base64Uri:t,previewImg:{imgBase64Uri:e.type.includes("image")?t:""}}}))))),a=c?yield function(e){return xi(this,void 0,void 0,(function*(){let t=[...e];for(const n of e){if(!c)return;const e=yield T(n,c,t);t=null!=e?e:t}const{validFiles:n,errors:r}=C(t);if(!r.length||n.length)return n}))}(o):o;return a?a.map((e=>{const t=Object.assign(Object.assign({},e),{order:r,uploadStatus:{stage:we.IDLE,progress:0}});return r+=1,t})).sort(((e,t)=>e.order-t.order)):void 0}))}function k(e){return g.find((t=>t.id===e))}function I(e){return e.map(((e,t)=>Object.assign(Object.assign({},e),{order:t+1})))}function R(e,t){v((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),t):n))))}function O(e){return g.filter((t=>t.id!==e))}function D(e,t,n){var r;let o=null===(r=k(e))||void 0===r?void 0:r.uploadStatus.stage;t>=0&&t<=100&&(n?o=we.FAILED:100===t?o=we.FINISHED:o!==we.FINISHED&&(o=we.UPLOADING),R(e,{uploadStatus:{progress:t,error:n,stage:o}}))}function P(e){i&&i(e),p?j():y("FINISHED")}function j(){y("IDLE"),v([])}return(0,S.jsx)(Ei.Provider,{value:{files:g,addFiles:function(e){return xi(this,void 0,void 0,(function*(){const t=null!=s?s:N;try{y("PROCESSING");const t=yield M(e);t&&v((e=>[...e,...t]))}catch(e){t(e)}finally{y("IDLE")}}))},removeFile:O,updateFile:R,uploadAllFiles:function(){return xi(this,void 0,void 0,(function*(){if(!a)throw new Error("Provider has no onUpload function defined.");w("ERROR")?y("RETRY"):y("PROCESSING");try{const e=yield a(g.filter((e=>e.uploadStatus.stage!==we.FINISHED)),D),[t,n]=function(e){const t=[...g];let n=!0;return e.forEach((({fileId:e,success:r,error:o,metadata:a})=>{const i=t.find((t=>t.id===e));i&&(r&&(i.uploadStatus={progress:100,stage:we.FINISHED,error:void 0}),r||(i.uploadStatus={progress:100,stage:we.FAILED,error:o},n=!1),i.metadata=null!=a?a:{})})),[n,t]}(e);t?(y("IDLE"),P(n)):y("ERROR")}catch(e){console.error(e)}}))},deleteFile:function(e){return xi(this,void 0,void 0,(function*(){const t=k(e);if(!t)throw new Error(`File with ID ${e} not found.`);if(t.uploadStatus.stage!==we.FINISHED){const e=O(t.id);l&&l([t]),function(e){return!(!e.length||w("PROCESSING"))&&e.every((e=>e.uploadStatus.stage===we.FINISHED))}(e)&&(y("SUCCESS"),P(I(e))),e.length||y("IDLE"),v(I(e))}}))},deleteAllFiles:function(){return xi(this,void 0,void 0,(function*(){try{y("PROCESSING");const e=g.filter((e=>e.uploadStatus.stage===we.FINISHED));e.length&&l&&l(e),v([]),y("IDLE")}catch(e){console.error(e)}}))},updateFileStage:function(e,t){v((n=>n.map((n=>{if(n.id!==e)return n;const r=Object.assign({},n);return r.uploadStatus.stage=t,r}))))},getFile:k,smStatus:b,smStatusIs:w,smStatusIsnt:x,setFiles:v,resetControl:j,getValidationInfo:function(){return{types:d.map((e=>e.split("/")[1])),maxFileSizeMb:h}},disableSorting:m},children:t})};function Ci(){const e=Ct().useContext(Ei);if(void 0===e)throw new Error("useUploadFilesProvider must be used within a UploadFilesContext");return e}function Ti(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=to({timeZone:t},e[r]),n}),{})}function Mi(e,t){return Object.keys(to(to({},e),t)).reduce((function(n,r){return n[r]=to(to({},e[r]||{}),t[r]||{}),n}),{})}function ki(e,t){if(!t)return e;var n=Ma.formats;return to(to(to({},n),e),{date:Mi(Ti(n.date,t),Ti(e.date||{},t)),time:Mi(Ti(n.time,t),Ti(e.time||{},t))})}var Ii=function(e,t,n,r,o){var a=e.locale,i=e.formats,s=e.messages,l=e.defaultLocale,c=e.defaultFormats,d=e.fallbackOnEmptyString,u=e.onError,h=e.timeZone,f=e.defaultRichTextElements;void 0===n&&(n={id:""});var p=n.id,m=n.defaultMessage;vo(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(p),v=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(v)&&1===v.length&&v[0].type===fo.literal)return v[0].value;if(!r&&v&&"string"==typeof v&&!f)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=to(to({},f),r||{}),i=ki(i,h),c=ki(c,h),!v){if(!1===d&&""===v)return v;if((!m||a&&a.toLowerCase()!==l.toLowerCase())&&u(new ja(n,a)),m)try{return t.getMessageFormat(m,l,c,o).format(r)}catch(e){return u(new Pa('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),a,n,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(v,a,i,to({formatters:t},o||{})).format(r)}catch(e){u(new Pa('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),a,n,e))}if(m)try{return t.getMessageFormat(m,l,c,o).format(r)}catch(e){u(new Pa('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),a,n,e))}return"string"==typeof v?v:"string"==typeof m?m:g},Ri=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Oi(e,t,n){var r=e.locale,o=e.formats,a=e.onError;void 0===n&&(n={});var i=n.format,s=i&&Ba(o,"number",i,a)||{};return t(r,La(n,Ri,s))}function Di(e,t,n,r){void 0===r&&(r={});try{return Oi(e,t,r).format(n)}catch(t){e.onError(new Da("Error formatting number.",e.locale,t))}return String(n)}function Pi(e,t,n,r){void 0===r&&(r={});try{return Oi(e,t,r).formatToParts(n)}catch(t){e.onError(new Da("Error formatting number.",e.locale,t))}return[]}var ji=["numeric","style"];function Li(e,t,n,r,o){void 0===o&&(o={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new ya('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',ua.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale,o=e.formats,a=e.onError;void 0===n&&(n={});var i=n.format,s=!!i&&Ba(o,"relative",i,a)||{};return t(r,La(n,ji,s))}(e,t,o).format(n,r)}catch(t){e.onError(new Da("Error formatting relative time.",e.locale,t))}return String(n)}var Ai=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function _i(e,t,n,r){var o=e.locale,a=e.formats,i=e.onError,s=e.timeZone;void 0===r&&(r={});var l=r.format,c=to(to({},s&&{timeZone:s}),l&&Ba(a,t,l,i)),d=La(r,Ai,c);return"time"!==t||d.hour||d.minute||d.second||d.timeStyle||d.dateStyle||(d=to(to({},d),{hour:"numeric",minute:"numeric"})),n(o,d)}function Bi(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return _i(e,"date",t,i).format(s)}catch(t){e.onError(new Da("Error formatting date.",e.locale,t))}return String(s)}function Hi(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return _i(e,"time",t,i).format(s)}catch(t){e.onError(new Da("Error formatting time.",e.locale,t))}return String(s)}function Fi(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=n[2],s=void 0===i?{}:i,l=e.timeZone,c=e.locale,d=e.onError,u=La(s,Ai,l?{timeZone:l}:{});try{return t(c,u).formatRange(o,a)}catch(t){d(new Da("Error formatting date time range.",e.locale,t))}return String(o)}function zi(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return _i(e,"date",t,i).formatToParts(s)}catch(t){e.onError(new Da("Error formatting date.",e.locale,t))}return[]}function Ui(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return _i(e,"time",t,i).formatToParts(s)}catch(t){e.onError(new Da("Error formatting time.",e.locale,t))}return[]}var Gi=["type"];function Wi(e,t,n,r){var o=e.locale,a=e.onError;void 0===r&&(r={}),Intl.PluralRules||a(new ya('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ua.MISSING_INTL_API));var i=La(r,Gi);try{return t(o,i).select(n)}catch(e){a(new Da("Error formatting plural.",o,e))}return"other"}var Yi=["type","style"],$i=Date.now();function Vi(e,t,n,r){void 0===r&&(r={});var o=Xi(e,t,n,r).reduce((function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]);return 1===o.length?o[0]:0===o.length?"":o}function Xi(e,t,n,r){var o=e.locale,a=e.onError;void 0===r&&(r={}),Intl.ListFormat||a(new ya('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',ua.MISSING_INTL_API));var i=La(r,Yi);try{var s={},l=n.map((function(e,t){if("object"==typeof e){var n=function(e){return"".concat($i,"_").concat(e,"_").concat($i)}(t);return s[n]=e,n}return String(e)}));return t(o,i).formatToParts(l).map((function(e){return"literal"===e.type?e:to(to({},e),{value:s[e.value]||e.value})}))}catch(e){a(new Da("Error formatting list.",o,e))}return n}var Ki=["style","type","fallback","languageDisplay"];function qi(e,t,n,r){var o=e.locale,a=e.onError;Intl.DisplayNames||a(new ya('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',ua.MISSING_INTL_API));var i=La(r,Ki);try{return t(o,i).of(n)}catch(e){a(new Da("Error formatting display name.",o,e))}}function Zi(e,t){var n=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=oo((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ro([void 0],t,!1)))}),{cache:_a(e.dateTime),strategy:go.variadic}),a=oo((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ro([void 0],t,!1)))}),{cache:_a(e.number),strategy:go.variadic}),i=oo((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ro([void 0],t,!1)))}),{cache:_a(e.pluralRules),strategy:go.variadic});return{getDateTimeFormat:o,getNumberFormat:a,getMessageFormat:oo((function(e,t,n,r){return new Ma(e,t,n,to({formatters:{getNumberFormat:a,getDateTimeFormat:o,getPluralRules:i}},r||{}))}),{cache:_a(e.message),strategy:go.variadic}),getRelativeTimeFormat:oo((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,ro([void 0],e,!1)))}),{cache:_a(e.relativeTime),strategy:go.variadic}),getPluralRules:i,getListFormat:oo((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,ro([void 0],e,!1)))}),{cache:_a(e.list),strategy:go.variadic}),getDisplayNames:oo((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,ro([void 0],e,!1)))}),{cache:_a(e.displayNames),strategy:go.variadic})}}(t),r=to(to({},Aa),e),o=r.locale,a=r.defaultLocale,i=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&i?i(new Oa('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&i&&i(new Oa('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(i&&i(new Ra('"locale" was not configured, using "'.concat(a,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),function(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(r),to(to({},r),{formatters:n,formatNumber:Di.bind(null,r,n.getNumberFormat),formatNumberToParts:Pi.bind(null,r,n.getNumberFormat),formatRelativeTime:Li.bind(null,r,n.getRelativeTimeFormat),formatDate:Bi.bind(null,r,n.getDateTimeFormat),formatDateToParts:zi.bind(null,r,n.getDateTimeFormat),formatTime:Hi.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:Fi.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Ui.bind(null,r,n.getDateTimeFormat),formatPlural:Wi.bind(null,r,n.getPluralRules),formatMessage:Ii.bind(null,r,n),$t:Ii.bind(null,r,n),formatList:Vi.bind(null,r,n.getListFormat),formatListToParts:Xi.bind(null,r,n.getListFormat),formatDisplayName:qi.bind(null,r,n.getDisplayNames)})}function Ji(e){return e?Object.keys(e).reduce((function(t,n){var r,o=e[n];return t[n]=Sa(o)?(r=o,function(e){return r(St.Children.toArray(e))}):o,t}),{}):e}var Qi=function(e,t,n,r){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var i=Ji(r),s=Ii.apply(void 0,ro([e,t,n,i],o,!1));return Array.isArray(s)?St.Children.toArray(s):s},es=function(e,t){var n=e.defaultRichTextElements,r=no(e,["defaultRichTextElements"]),o=Ji(n),a=Zi(to(to(to({},Fa),r),{defaultRichTextElements:o}),t),i={locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:o};return to(to({},a),{formatMessage:Qi.bind(null,i,a.formatters),$t:Qi.bind(null,i,a.formatters)})};function ts(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var ns=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:es(ts(t.props),t.cache),prevConfig:ts(t.props)},t}return eo(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=ts(e);return za(n,o)?null:{intl:es(o,r),prevConfig:o}},t.prototype.render=function(){return Ha(this.state.intl),St.createElement(Ga,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Fa,t}(St.PureComponent);const rs=ns,os={de:JSON.parse('{"FileDropArea":{"text":"Hier klicken oder File ablegen","processingText":"Füge Seiten hinzu...","validFilesText":"Unterstützt werden {types} mit einer Größe bis zu {maxFileSizeMb} MB."},"FileListActions":{"successText":"Die Dateien wurden erfolgreich hochgeladen."},"FileUploadAllButton":{"accept":"Upload starten","retry":"Erneut versuchen"},"FileDeleteAllButton":{"reset":"Zurücksetzen"},"FileList":{"waitingText":"Warte auf Dateien..."},"UploadedFilesManager":{"multipleError":"Bitte fügen Sie die Dateien einzeln hinzu.","maxFilesNumberError":"Die Anzahl an maximal erlaubten Dateien ({maxFiles}) wurde überschritten.","invalidFileError":"Die Datei {fileName} kann nicht hochgeladen werden. Unterstützt werden PDF, JPG, PNG und Office-Formate.","fileSizeError":"Die Datei {fileName} ist zu groß.","unknownError":"Ein Fehler ist aufgetreten: {error}"},"FileLoaderFileSystem":{"text":"Durchsuchen"},"FileLoaderCamera":{"text":"Kamera","allowCameraText":"Falls Sie dazu aufgefordert werden, erlauben Sie bitte den Kamerazugriff.","cameraModalHeader":"Bild schießen","dropDownLabel":"Kameras","dropDownPlaceholder":"Bitte wählen Sie eine Kamera","mediaErrorText":"Etwas ist beim Laden der Kamera schiefgelaufen. Fehler des Browsers: {errorMediaString}","hintTitle":"Hinweis","errorHintTitle":"Fehler"}}'),en:JSON.parse('{"FileDropArea":{"text":"Drop your files here","processingText":"Processing files...","validFilesText":"Allowed files are {types} with a maximum size of {maxFileSizeMb} MB"},"FileListActions":{"successText":"Files successfully uploaded."},"FileUploadAllButton":{"accept":"Confirm Files","retry":"Retry"},"FileDeleteAllButton":{"reset":"Reset"},"FileList":{"waitingText":"Waiting for files..."},"UploadedFilesManager":{"multipleError":"Adding multiple files at once is not allowed.","maxFilesNumberError":"The number of maximum files ({maxFiles}) has been reached.","invalidFileError":"The file {fileName} is in a forbidden format. Allowed formats are {mimeTypes}.","fileSizeError":"The file {fileName} is too big.","unknownError":"An error occured: {error}"},"FileLoaderFileSystem":{"text":"Browse files"},"FileLoaderCamera":{"text":"Camera","allowCameraText":"If you get asked for camera access, please permit it.","cameraModalHeader":"Shoot picture","dropDownLabel":"Cameras","dropDownPlaceholder":"Please choose a camera","mediaErrorText":"Something went wrong while trying to load the camera. Error from the browser: {errorMediaString}","hintTitle":"Note","errorHintTitle":"Error"}}')},as=e=>{const{children:t,locale:n}=e;return(0,S.jsxs)(rs,{locale:null!=n?n:"en",messages:function e(t,n=""){return Object.keys(t).reduce(((r,o)=>{const a=t[o],i=n?`${n}.${o}`:o;return"string"==typeof a?r[i]=a:Object.assign(r,e(a,i)),r}),{})}(function(e){return e&&e in os?os[e]:os.en}(n)),children:[(0,S.jsx)(di,{expand:!0,visibleToasts:5,toastOptions:{duration:3500}}),(0,S.jsx)(Ni,Object.assign({},e,{children:t}))]})};function is(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return St.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function ss(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function ls(...e){return St.useCallback(ss(...e),e)}var cs=St.forwardRef(((e,t)=>{const{children:n,...r}=e,o=St.Children.toArray(n),a=o.find(hs);if(a){const e=a.props.children,n=o.map((t=>t===a?St.Children.count(e)>1?St.Children.only(null):St.isValidElement(e)?e.props.children:null:t));return(0,S.jsx)(ds,{...r,ref:t,children:St.isValidElement(e)?St.cloneElement(e,void 0,n):null})}return(0,S.jsx)(ds,{...r,ref:t,children:n})}));cs.displayName="Slot";var ds=St.forwardRef(((e,t)=>{const{children:n,...r}=e;if(St.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n);return St.cloneElement(n,{...fs(r,n.props),ref:t?ss(t,e):e})}return St.Children.count(n)>1?St.Children.only(null):null}));ds.displayName="SlotClone";var us=({children:e})=>(0,S.jsx)(S.Fragment,{children:e});function hs(e){return St.isValidElement(e)&&e.type===us}function fs(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}var ps=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=St.forwardRef(((e,n)=>{const{asChild:r,...o}=e,a=r?cs:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,S.jsx)(a,{...o,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{}),ms="Progress",[gs,vs]=function(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>St.createContext(e)));return function(n){const r=n?.[e]||t;return St.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=St.createContext(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,s=n?.[e][a]||o,l=St.useMemo((()=>i),Object.values(i));return(0,S.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const s=i?.[e][a]||o,l=St.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},is(r,...t)]}(ms),[bs,ys]=gs(ms),ws=St.forwardRef(((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=Ss,...i}=e;!o&&0!==o||Ts(o)||console.error(`Invalid prop \`max\` of value \`${o}\` supplied to \`Progress\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`);const s=Ts(o)?o:100;null===r||Ms(r,s)||console.error(`Invalid prop \`value\` of value \`${`${r}`}\` supplied to \`Progress\`. 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\`.`);const l=Ms(r,s)?r:null,c=Cs(l)?a(l,s):void 0;return(0,S.jsx)(bs,{scope:n,value:l,max:s,children:(0,S.jsx)(ps.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Cs(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":Ns(l,s),"data-value":l??void 0,"data-max":s,...i,ref:t})})}));ws.displayName=ms;var xs="ProgressIndicator",Es=St.forwardRef(((e,t)=>{const{__scopeProgress:n,...r}=e,o=ys(xs,n);return(0,S.jsx)(ps.div,{"data-state":Ns(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})}));function Ss(e,t){return`${Math.round(e/t*100)}%`}function Ns(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function Cs(e){return"number"==typeof e}function Ts(e){return Cs(e)&&!isNaN(e)&&e>0}function Ms(e,t){return Cs(e)&&!isNaN(e)&&e<=t&&e>=0}Es.displayName=xs;var ks=ws,Is=Es;const Rs=St.forwardRef(((e,t)=>{var{className:n,value:r}=e,o=function(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}(e,["className","value"]);return(0,S.jsx)(ks,Object.assign({ref:t,className:be("relative h-1 w-full overflow-hidden bg-primary/20")},o,{children:(0,S.jsx)(Is,{className:be("flex-1 w-full h-full transition-all bg-primary",n),style:{transform:`translateX(-${100-(r||0)}%)`}})}))}));Rs.displayName=ks.displayName;const Os="bits",Ds="bytes",Ps="jedec",js={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function Ls(e,{bits:t=!1,pad:n=!1,base:r=-1,round:o=2,locale:a="",localeOptions:i={},separator:s="",spacer:l=" ",symbols:c={},standard:d="",output:u="string",fullform:h=!1,fullforms:f=[],exponent:p=-1,roundingMethod:m="round",precision:g=0}={}){let v=p,b=Number(e),y=[],w=0,x="";"si"===d?(r=10,d=Ps):"iec"===d||d===Ps?r=2:2===r?d="iec":(r=10,d=Ps);const E=10===r?1e3:1024,S=!0===h,N=b<0,C=Math[m];if("bigint"!=typeof e&&isNaN(e))throw new TypeError("Invalid number");if("function"!=typeof C)throw new TypeError("Invalid rounding method");if(N&&(b=-b),(-1===v||isNaN(v))&&(v=Math.floor(Math.log(b)/Math.log(E)),v<0&&(v=0)),v>8&&(g>0&&(g+=8-v),v=8),"exponent"===u)return v;if(0===b)y[0]=0,x=y[1]=js.symbol[d][t?Os:Ds][v];else{w=b/(2===r?Math.pow(2,10*v):Math.pow(1e3,v)),t&&(w*=8,w>=E&&v<8&&(w/=E,v++));const e=Math.pow(10,v>0?o:0);y[0]=C(w*e)/e,y[0]===E&&v<8&&-1===p&&(y[0]=1,v++),x=y[1]=10===r&&1===v?t?"kbit":"kB":js.symbol[d][t?Os:Ds][v]}if(N&&(y[0]=-y[0]),g>0&&(y[0]=y[0].toPrecision(g)),y[1]=c[y[1]]||y[1],!0===a?y[0]=y[0].toLocaleString():a.length>0?y[0]=y[0].toLocaleString(a,i):s.length>0&&(y[0]=y[0].toString().replace(".",s)),n&&o>0){const e=y[0].toString(),t=s||(e.match(/(\D)/g)||[]).pop()||".",n=e.toString().split(t),r=n[1]||"",a=r.length,i=o-a;y[0]=`${n[0]}${t}${r.padEnd(a+i,"0")}`}return S&&(y[1]=f[v]?f[v]:js.fullform[d][v]+(t?"bit":"byte")+(1===y[0]?"":"s")),"array"===u?y:"object"===u?{value:y[0],symbol:y[1],exponent:v,unit:x}:y.join(l)}const As=(e,t)=>e===t?.tagName?.toUpperCase?.(),_s=e=>As("DIV",e)||As("SPAN",e),Bs=e=>As("IMG",e),Hs=e=>e.complete&&0!==e.naturalHeight,Fs=e=>As("SVG",e),zs=({height:e,offset:t,width:n})=>Math.min((window.innerWidth-2*t)/n,(window.innerHeight-2*t)/e),Us=({containerHeight:e,containerWidth:t,hasScalableSrc:n,offset:r,targetHeight:o,targetWidth:a})=>e&&t?!n&&o&&a?(({containerHeight:e,containerWidth:t,offset:n,targetHeight:r,targetWidth:o})=>{const a=zs({height:r,offset:n,width:o}),i=o>r?o/t:r/e;return a>1?i:a*i})({containerHeight:e,containerWidth:t,offset:r,targetHeight:o,targetWidth:a}):zs({height:e,offset:r,width:t}):1,Gs=/url(?:\(['"]?)(.*?)(?:['"]?\))/,Ws=e=>{if(e){if(Bs(e))return e.currentSrc;if(_s(e)){const t=window.getComputedStyle(e).backgroundImage;if(t)return Gs.exec(t)?.[1]}}},Ys=({position:e,relativeNum:t})=>{const n=parseFloat(e);return e.endsWith("%")?t*n/100:n},$s=/\.svg$/i,Vs=e=>{if(!e)return{};if(Fs(e)){const t=e.parentElement,n=e.getBoundingClientRect();if(t){const e=t.getBoundingClientRect();return{height:n.height,left:e.left-n.left,top:e.top-n.top,width:n.width}}return{height:n.height,left:n.left,width:n.width,top:n.top}}return{height:e.offsetHeight,left:e.offsetLeft,width:e.offsetWidth,top:e.offsetTop}},Xs=["img","svg",'[role="img"]',"[data-zoom]"].map((e=>`${e}:not([aria-hidden="true"])`)).join(","),Ks={overflow:"",width:""};function qs(e){return St.createElement(Zs,{...e})}class Zs extends St.Component{constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=St.createRef(),this.refDialog=St.createRef(),this.refModalContent=St.createRef(),this.refModalImg=St.createRef(),this.refWrap=St.createRef(),this.imgEl=null,this.isScaling=!1,this.prevBodyAttrs=Ks,this.styleModalImg={},this.handleModalStateChange=e=>{const{modalState:t}=this.state;"LOADING"!==e&&"LOADING"===t?(this.loadZoomImg(),window.addEventListener("resize",this.handleResize,{passive:!0}),window.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),window.addEventListener("touchmove",this.handleTouchMove,{passive:!0}),window.addEventListener("touchend",this.handleTouchEnd,{passive:!0}),window.addEventListener("touchcancel",this.handleTouchCancel,{passive:!0}),document.addEventListener("keydown",this.handleKeyDown,!0)):"LOADED"!==e&&"LOADED"===t?window.addEventListener("wheel",this.handleWheel,{passive:!0}):"UNLOADING"!==e&&"UNLOADING"===t?(this.ensureImgTransitionEnd(),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),document.removeEventListener("keydown",this.handleKeyDown,!0)):"UNLOADED"!==e&&"UNLOADED"===t&&(this.bodyScrollEnable(),window.removeEventListener("resize",this.handleResize),this.refModalImg.current?.removeEventListener?.("transitionend",this.handleImgTransitionEnd),this.refDialog.current?.close?.())},this.getDialogContainer=()=>{let e=document.querySelector("[data-rmiz-portal]");return null==e&&(e=document.createElement("div"),e.setAttribute("data-rmiz-portal",""),document.body.appendChild(e)),e},this.setId=()=>{const e=()=>Math.random().toString(16).slice(-4);this.setState({id:e()+e()+e()})},this.setAndTrackImg=()=>{const e=this.refContent.current;e&&(this.imgEl=e.querySelector(Xs),this.imgEl?(this.contentNotFoundChangeObserver?.disconnect?.(),this.imgEl.addEventListener("load",this.handleImgLoad),this.imgEl.addEventListener("click",this.handleZoom),this.state.loadedImgEl||this.handleImgLoad(),this.imgElResizeObserver=new ResizeObserver((e=>{const t=e[0];t?.target&&(this.imgEl=t.target,this.setState({styleGhost:Vs(this.imgEl)}))})),this.imgElResizeObserver.observe(this.imgEl),this.contentChangeObserver||(this.contentChangeObserver=new MutationObserver((()=>{this.setState({styleGhost:Vs(this.imgEl)})})),this.contentChangeObserver.observe(e,{attributes:!0,childList:!0,subtree:!0}))):this.contentNotFoundChangeObserver||(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(e,{childList:!0,subtree:!0})))},this.handleIfZoomChanged=e=>{const{isZoomed:t}=this.props;!e&&t?this.zoom():e&&!t&&this.unzoom()},this.handleImgLoad=()=>{const e=Ws(this.imgEl);if(!e)return;const t=new Image;Bs(this.imgEl)&&(t.sizes=this.imgEl.sizes,t.srcset=this.imgEl.srcset),t.src=e;const n=()=>{this.setState({loadedImgEl:t,styleGhost:Vs(this.imgEl)})};t.decode().then(n).catch((()=>{Hs(t)?n():t.onload=n}))},this.handleZoom=()=>{this.hasImage()&&this.props.onZoomChange?.(!0)},this.handleUnzoom=()=>{this.props.onZoomChange?.(!1)},this.handleBtnUnzoomClick=e=>{e.preventDefault(),e.stopPropagation(),this.handleUnzoom()},this.handleDialogCancel=e=>{e.preventDefault()},this.handleDialogClick=e=>{e.target!==this.refModalContent.current&&e.target!==this.refModalImg.current||(e.stopPropagation(),this.handleUnzoom())},this.handleKeyDown=e=>{"Escape"!==e.key&&27!==e.keyCode||(e.preventDefault(),e.stopPropagation(),this.handleUnzoom())},this.handleWheel=e=>{e.ctrlKey||(e.stopPropagation(),queueMicrotask((()=>{this.handleUnzoom()})))},this.handleTouchStart=e=>{e.touches.length>1?this.isScaling=!0:1===e.changedTouches.length&&e.changedTouches[0]&&(this.touchYStart=e.changedTouches[0].screenY)},this.handleTouchMove=e=>{const t=window.visualViewport?.scale??1;if(this.props.canSwipeToUnzoom&&!this.isScaling&&t<=1&&null!=this.touchYStart&&e.changedTouches[0]){this.touchYEnd=e.changedTouches[0].screenY;const t=Math.max(this.touchYStart,this.touchYEnd),n=Math.min(this.touchYStart,this.touchYEnd);Math.abs(t-n)>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom())}},this.handleTouchEnd=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>this.imgEl&&(this.state.loadedImgEl||Fs(this.imgEl))&&"none"!==window.getComputedStyle(this.imgEl).display,this.zoom=()=>{this.bodyScrollDisable(),this.refDialog.current?.showModal?.(),this.refModalImg.current?.addEventListener?.("transitionend",this.handleImgTransitionEnd),this.setState({modalState:"LOADING"})},this.unzoom=()=>{this.setState({modalState:"UNLOADING"})},this.handleImgTransitionEnd=()=>{clearTimeout(this.timeoutTransitionEnd),"LOADING"===this.state.modalState?this.setState({modalState:"LOADED"}):"UNLOADING"===this.state.modalState&&this.setState({shouldRefresh:!1,modalState:"UNLOADED"})},this.ensureImgTransitionEnd=()=>{if(this.refModalImg.current){const e=window.getComputedStyle(this.refModalImg.current).transitionDuration,t=parseFloat(e);if(t){const n=t*(e.endsWith("ms")?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,n)}}},this.bodyScrollDisable=()=>{this.prevBodyAttrs={overflow:document.body.style.overflow,width:document.body.style.width};const e=document.body.clientWidth;document.body.style.overflow="hidden",document.body.style.width=`${e}px`},this.bodyScrollEnable=()=>{document.body.style.width=this.prevBodyAttrs.width,document.body.style.overflow=this.prevBodyAttrs.overflow,this.prevBodyAttrs=Ks},this.loadZoomImg=()=>{const{props:{zoomImg:e}}=this,t=e?.src;if(t){const n=new Image;n.sizes=e?.sizes??"",n.srcset=e?.srcSet??"",n.src=t;const r=()=>{this.setState({isZoomImgLoaded:!0})};n.decode().then(r).catch((()=>{Hs(n)?r():n.onload=r}))}},this.UNSAFE_handleSvg=()=>{const{imgEl:e,refModalImg:t,styleModalImg:n}=this;if(Fs(e)){const r=e.cloneNode(!0);(e=>{const t="-zoom",n=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],r=new Map;if(e.hasAttribute("id")){const n=e.id,o=n+t;r.set(n,o),e.id=o}e.querySelectorAll("[id]").forEach((e=>{const n=e.id,o=n+t;r.set(n,o),e.id=o})),r.forEach(((t,r)=>{const o=`url(#${r})`,a=`url(#${t})`,i=n.map((e=>`[${e}="${o}"]`)).join(", ");e.querySelectorAll(i).forEach((e=>{n.forEach((t=>{e.getAttribute(t)===o&&e.setAttribute(t,a)}))}))})),e.querySelectorAll("style").forEach((e=>{r.forEach(((t,n)=>{e.textContent&&(e.textContent=e.textContent.replaceAll(`#${n}`,`#${t}`))}))}))})(r),r.style.width=`${n.width||0}px`,r.style.height=`${n.height||0}px`,r.addEventListener("click",this.handleUnzoom),t.current?.firstChild?.remove?.(),t.current?.appendChild?.(r)}}}render(){const{handleBtnUnzoomClick:e,handleDialogCancel:t,handleDialogClick:n,handleUnzoom:r,handleZoom:o,imgEl:a,props:{a11yNameButtonUnzoom:i,a11yNameButtonZoom:s,children:l,classDialog:c,IconUnzoom:d,IconZoom:u,isZoomed:h,wrapElement:f,ZoomContent:p,zoomImg:m,zoomMargin:g},refContent:v,refDialog:b,refModalContent:y,refModalImg:w,refWrap:x,state:{id:E,isZoomImgLoaded:S,loadedImgEl:N,modalState:C,shouldRefresh:T,styleGhost:M}}=this,k=`rmiz-modal-${E}`,I=`rmiz-modal-img-${E}`,R=_s(a),O=Bs(a),D=Fs(a),P=(e=>{if(e)return Bs(e)?e.alt??void 0:e.getAttribute("aria-label")??void 0})(a),j=Ws(a),L=O?a.sizes:void 0,A=O?a.srcset:void 0,_=!!m?.src,B=this.hasImage(),H=P?`${s}: ${P}`:s,F="LOADING"===C||"LOADED"===C,z=B?"found":"not-found",U="UNLOADED"===C||"UNLOADING"===C?"hidden":"visible",G={visibility:"UNLOADED"===C?"visible":"hidden"};this.styleModalImg=B?(({hasZoomImg:e,imgSrc:t,isSvg:n,isZoomed:r,loadedImgEl:o,offset:a,shouldRefresh:i,targetEl:s})=>{const l=n||"data:image/svg+xml"===t?.slice?.(0,18)||e||!(!t||!$s.test(t)),c=s.getBoundingClientRect(),d=window.getComputedStyle(s),u=null!=o&&_s(s),h=null!=o&&!u,f=(({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:r,hasScalableSrc:o,offset:a,targetHeight:i,targetWidth:s})=>{const l=Us({containerHeight:e,containerWidth:r,hasScalableSrc:o,offset:a,targetHeight:i,targetWidth:s});return{top:n,left:t,width:r*l,height:e*l,transform:`translate(0,0) scale(${1/l})`}})({containerHeight:c.height,containerLeft:c.left,containerTop:c.top,containerWidth:c.width,hasScalableSrc:l,offset:a,targetHeight:o?.naturalHeight||c.height,targetWidth:o?.naturalWidth||c.width}),p=h?(({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:r,hasScalableSrc:o,objectFit:a,objectPosition:i,offset:s,targetHeight:l,targetWidth:c})=>{if("scale-down"===a&&(a=c<=r&&l<=e?"none":"contain"),"cover"===a||"contain"===a){const d=r/c,u=e/l,h="cover"===a?Math.max(d,u):Math.min(d,u),[f="50%",p="50%"]=i.split(" "),m=Ys({position:f,relativeNum:r-c*h}),g=Ys({position:p,relativeNum:e-l*h}),v=Us({containerHeight:l*h,containerWidth:c*h,hasScalableSrc:o,offset:s,targetHeight:l,targetWidth:c});return{top:n+g,left:t+m,width:c*h*v,height:l*h*v,transform:`translate(0,0) scale(${1/v})`}}if("none"===a){const[a="50%",d="50%"]=i.split(" "),u=Ys({position:a,relativeNum:r-c}),h=Ys({position:d,relativeNum:e-l}),f=Us({containerHeight:l,containerWidth:c,hasScalableSrc:o,offset:s,targetHeight:l,targetWidth:c});return{top:n+h,left:t+u,width:c*f,height:l*f,transform:`translate(0,0) scale(${1/f})`}}if("fill"===a){const t=r/c,n=e/l,a=Math.max(t,n),i=Us({containerHeight:l*a,containerWidth:c*a,hasScalableSrc:o,offset:s,targetHeight:l,targetWidth:c});return{width:r*i,height:e*i,transform:`translate(0,0) scale(${1/i})`}}return{}})({containerHeight:c.height,containerLeft:c.left,containerTop:c.top,containerWidth:c.width,hasScalableSrc:l,objectFit:d.objectFit,objectPosition:d.objectPosition,offset:a,targetHeight:o?.naturalHeight||c.height,targetWidth:o?.naturalWidth||c.width}):void 0,m=u?(({backgroundPosition:e,backgroundSize:t,containerHeight:n,containerLeft:r,containerTop:o,containerWidth:a,hasScalableSrc:i,offset:s,targetHeight:l,targetWidth:c})=>{if("cover"===t||"contain"===t){const d=a/c,u=n/l,h="cover"===t?Math.max(d,u):Math.min(d,u),[f="50%",p="50%"]=e.split(" "),m=Ys({position:f,relativeNum:a-c*h}),g=Ys({position:p,relativeNum:n-l*h}),v=Us({containerHeight:l*h,containerWidth:c*h,hasScalableSrc:i,offset:s,targetHeight:l,targetWidth:c});return{top:o+g,left:r+m,width:c*h*v,height:l*h*v,transform:`translate(0,0) scale(${1/v})`}}if("auto"===t){const[t="50%",d="50%"]=e.split(" "),u=Ys({position:t,relativeNum:a-c}),h=Ys({position:d,relativeNum:n-l}),f=Us({containerHeight:l,containerWidth:c,hasScalableSrc:i,offset:s,targetHeight:l,targetWidth:c});return{top:o+h,left:r+u,width:c*f,height:l*f,transform:`translate(0,0) scale(${1/f})`}}{const[d="50%",u="50%"]=t.split(" "),h=Ys({position:d,relativeNum:a})/c,f=Ys({position:u,relativeNum:n})/l,p=Math.min(h,f),[m="50%",g="50%"]=e.split(" "),v=Ys({position:m,relativeNum:a-c*p}),b=Ys({position:g,relativeNum:n-l*p}),y=Us({containerHeight:l*p,containerWidth:c*p,hasScalableSrc:i,offset:s,targetHeight:l,targetWidth:c});return{top:o+b,left:r+v,width:c*p*y,height:l*p*y,transform:`translate(0,0) scale(${1/y})`}}})({backgroundPosition:d.backgroundPosition,backgroundSize:d.backgroundSize,containerHeight:c.height,containerLeft:c.left,containerTop:c.top,containerWidth:c.width,hasScalableSrc:l,offset:a,targetHeight:o?.naturalHeight||c.height,targetWidth:o?.naturalWidth||c.width}):void 0,g=Object.assign({},f,p,m);if(r){const e=window.innerWidth/2,t=window.innerHeight/2,n=e-(parseFloat(String(g.left||0))+parseFloat(String(g.width||0))/2),r=t-(parseFloat(String(g.top||0))+parseFloat(String(g.height||0))/2);i&&(g.transitionDuration="0.01ms"),g.transform=`translate(${n}px,${r}px) scale(1)`}return g})({hasZoomImg:_,imgSrc:j,isSvg:D,isZoomed:h&&F,loadedImgEl:N,offset:g,shouldRefresh:T,targetEl:a}):{};let W=null;if(B){const t=O||R?St.createElement("img",{alt:P,sizes:L,src:j,srcSet:A,...S&&"LOADED"===C?m:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height||void 0,id:I,ref:w,style:this.styleModalImg,width:this.styleModalImg.width||void 0}):D?St.createElement("div",{"data-rmiz-modal-img":!0,ref:w,style:this.styleModalImg}):null,n=St.createElement("button",{"aria-label":i,"data-rmiz-btn-unzoom":"",onClick:e,type:"button"},St.createElement(d,null));W=p?St.createElement(p,{buttonUnzoom:n,modalState:C,img:t,onUnzoom:r}):St.createElement(St.Fragment,null,t,n)}return St.createElement(f,{"aria-owns":k,"data-rmiz":"",ref:x},St.createElement(f,{"data-rmiz-content":z,ref:v,style:G},l),B&&St.createElement(f,{"data-rmiz-ghost":"",style:M},St.createElement("button",{"aria-label":H,"data-rmiz-btn-zoom":"",onClick:o,type:"button"},St.createElement(u,null))),B&&Tt.createPortal(St.createElement("dialog",{"aria-labelledby":I,"aria-modal":"true",className:c,"data-rmiz-modal":"",id:k,onClick:n,onClose:r,onCancel:t,ref:b,role:"dialog"},St.createElement("div",{"data-rmiz-modal-overlay":U}),St.createElement("div",{"data-rmiz-modal-content":"",ref:y},W)),this.getDialogContainer()))}componentDidMount(){this.setId(),this.setAndTrackImg(),this.handleImgLoad(),this.UNSAFE_handleSvg()}componentWillUnmount(){"UNLOADED"!==this.state.modalState&&this.bodyScrollEnable(),this.contentChangeObserver?.disconnect?.(),this.contentNotFoundChangeObserver?.disconnect?.(),this.imgElResizeObserver?.disconnect?.(),this.imgEl?.removeEventListener?.("load",this.handleImgLoad),this.imgEl?.removeEventListener?.("click",this.handleZoom),this.refModalImg.current?.removeEventListener?.("transitionend",this.handleImgTransitionEnd),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),window.removeEventListener("resize",this.handleResize),document.removeEventListener("keydown",this.handleKeyDown,!0)}componentDidUpdate(e,t){this.handleModalStateChange(t.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(e.isZoomed)}}function Js(e){const[t,n]=St.useState(!1);return St.createElement(qs,{...e,isZoomed:t,onZoomChange:n})}Zs.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return St.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-unzoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},St.createElement("path",{d:"M 14.144531 1.148438 L 9 6.292969 L 9 3 L 8 3 L 8 8 L 13 8 L 13 7 L 9.707031 7 L 14.855469 1.851563 Z M 8 8 L 3 8 L 3 9 L 6.292969 9 L 1.148438 14.144531 L 1.851563 14.855469 L 7 9.707031 L 7 13 L 8 13 Z"}))},IconZoom:function(){return St.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-zoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},St.createElement("path",{d:"M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"}))},swipeToUnzoomThreshold:10,wrapElement:"div",zoomMargin:0};var Qs=i(393),el={};el.styleTagTransform=w(),el.setAttributes=g(),el.insert=p().bind(null,"head"),el.domAPI=h(),el.insertStyleElement=b(),d()(Qs.A,el),Qs.A&&Qs.A.locals&&Qs.A.locals;var tl={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const nl=(e,t,n,r)=>{const o=(0,St.forwardRef)((({color:n="currentColor",size:o=24,stroke:a=2,title:i,className:s,children:l,...c},d)=>(0,St.createElement)("svg",{ref:d,...tl[e],width:o,height:o,className:["tabler-icon",`tabler-icon-${t}`,s].join(" "),..."filled"===e?{fill:n}:{strokeWidth:a,stroke:n},...c},[i&&(0,St.createElement)("title",{key:"svg-title"},i),...r.map((([e,t])=>(0,St.createElement)(e,t))),...Array.isArray(l)?l:[l]])));return o.displayName=`${n}`,o};var rl=nl("outline","check","IconCheck",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);const ol=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,al=C;var il=nl("outline","upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]),sl=nl("outline","camera","IconCamera",[["path",{d:"M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2",key:"svg-0"}],["path",{d:"M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]]),ll=nl("outline","refresh","IconRefresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]]),cl=nl("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]),dl=nl("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]),ul=nl("outline","arrows-move","IconArrowsMove",[["path",{d:"M18 9l3 3l-3 3",key:"svg-0"}],["path",{d:"M15 12h6",key:"svg-1"}],["path",{d:"M6 9l-3 3l3 3",key:"svg-2"}],["path",{d:"M3 12h6",key:"svg-3"}],["path",{d:"M9 18l3 3l3 -3",key:"svg-4"}],["path",{d:"M12 15v6",key:"svg-5"}],["path",{d:"M15 6l-3 -3l-3 3",key:"svg-6"}],["path",{d:"M12 3v6",key:"svg-7"}]]),hl=nl("outline","folder","IconFolder",[["path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2",key:"svg-0"}]]),fl=nl("outline","flip-vertical","IconFlipVertical",[["path",{d:"M12 3l0 18",key:"svg-0"}],["path",{d:"M16 7l0 10l5 0l-5 -10",key:"svg-1"}],["path",{d:"M8 7l0 10l-5 0l5 -10",key:"svg-2"}]]),pl=nl("outline","viewport-wide","IconViewportWide",[["path",{d:"M10 12h-7l3 -3",key:"svg-0"}],["path",{d:"M6 15l-3 -3",key:"svg-1"}],["path",{d:"M14 12h7l-3 -3",key:"svg-2"}],["path",{d:"M18 15l3 -3",key:"svg-3"}],["path",{d:"M3 6v-1a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v1",key:"svg-4"}],["path",{d:"M3 18v1a2 2 0 0 0 2 2h14a2 2 0 0 0 2 -2v-1",key:"svg-5"}]]),ml=nl("outline","file","IconFile",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",key:"svg-1"}]]),gl=nl("outline","dots-vertical","IconDotsVertical",[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]]);const vl=(bl="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-base font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",yl={variants:{variant:{default:"hover:bg-primary/10 hover:text-primary border",success:"shadow bg-green-500/90 hover:bg-green-500/20 text-neutral-50 hover:text-green-500",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var t;if(null==(null==yl?void 0:yl.variants))return al(bl,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:n,defaultVariants:r}=yl,o=Object.keys(n).map((t=>{const o=null==e?void 0:e[t],a=null==r?void 0:r[t];if(null===o)return null;const i=ol(o)||ol(a);return n[t][i]})),a=e&&Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),i=null==yl||null===(t=yl.compoundVariants)||void 0===t?void 0:t.reduce(((e,t)=>{let{class:n,className:o,...i}=t;return Object.entries(i).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...r,...a}[t]):{...r,...a}[t]===n}))?[...e,n,o]:e}),[]);return al(bl,o,i,null==e?void 0:e.class,null==e?void 0:e.className)});var bl,yl;const wl=St.forwardRef(((e,t)=>{var{className:n,variant:r,size:o,asChild:a=!1,startContent:i,endContent:s,isIconOnly:c=!1,icon:d,iconSize:u,isLoading:h,loadingText:f,children:p}=e,m=function(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}(e,["className","variant","size","asChild","startContent","endContent","isIconOnly","icon","iconSize","isLoading","loadingText","children"]);const g=a?cs:"button",v=d&&!h?l[d]:null;return(0,S.jsxs)(g,Object.assign({className:be(vl({variant:r,size:o,className:n}),c&&"justify-center p-0 w-9 h-9"),ref:t},m,{children:[h?(0,S.jsx)("span",{className:"animate-spin",children:"Loading..."}):(0,S.jsxs)(S.Fragment,{children:[i||v&&(0,S.jsx)(v,{size:u}),!c&&p,s]}),h&&f&&(0,S.jsx)("span",{className:"ml-2",children:f})]}))}));wl.displayName="Button";const xl=()=>{const{uploadAllFiles:e,files:t,smStatusIs:n}=Ci(),r=Ya();return(0,S.jsx)(wl,{variant:"default",size:"sm",className:"flex-grow max-w-2xl bg-primary/10 text-primary hover:bg-primary/20",disabled:!t.length||n("PROCESSING"),endContent:(0,S.jsx)(rl,{size:"20px"}),onClick:e,children:n("ERROR")?r.formatMessage({id:"FileUploadAllButton.retry"}):r.formatMessage({id:"FileUploadAllButton.accept"})})},El=()=>{const{files:e,deleteAllFiles:t,smStatusIs:n}=Ci(),r=Ya();return(0,S.jsxs)(wl,{variant:"default",color:"default",size:"sm",endContent:(0,S.jsx)(ll,{size:"18px"}),disabled:!e.length||n("PROCESSING"),onClick:t,children:[r.formatMessage({id:"FileDeleteAllButton.reset"})," "]})},Sl=({id:e,stage:t})=>{const{deleteFile:n}=Ci();return(0,S.jsxs)("div",{className:"flex gap-2 items-center p-2",children:[(!t||t===we.IDLE||t===we.FAILED)&&(0,S.jsx)(wl,{isIconOnly:!0,icon:"DeleteIcon",variant:"ghost",size:"sm",className:"text-gray-400 data-[hover=true]:bg-gray-200",onClick:()=>n(e)}),t===we.FINISHED&&(0,S.jsx)("div",{className:"p-2",children:(0,S.jsx)(rl,{className:"text-primary"})})]})},Nl=Ct().memo((({progress:e,variant:t})=>(0,S.jsxs)("div",{className:"w-full",children:[!t&&(0,S.jsx)(Rs,{value:e,"aria-label":"progress bar"}),"finished"===t&&(0,S.jsx)(Rs,{value:e,className:"rounded-r-lg rounded-l-lg bg-primary"}),"failed"===t&&(0,S.jsx)(Rs,{value:e,className:"bg-red-500 rounded-r-lg rounded-l-lg"})]}))),Cl=Ct().memo((({size:e,name:t,previewImgSrc:n,id:r,uploadStatus:o,order:a,count:i,disabled:s,disableSorting:l})=>{var c;const{attributes:d,listeners:u,setNodeRef:h,transform:f}=Xr({id:r,disabled:s||l}),p={transform:Xt.Translate.toString(f),width:"100%"};return o.stage===we.FAILED&&ri.error(`Failed to upload file ${t}. Reason: ${null===(c=o.error)||void 0===c?void 0:c.text}`),(0,S.jsx)("div",Object.assign({ref:h,style:p},d,{children:(0,S.jsxs)("div",{className:"flex flex-col rounded border duration-150 transition-transform-colors-opacity",children:[(0,S.jsxs)("div",{className:"flex gap-4 items-center h-full",children:[!l&&a&&(0,S.jsxs)("span",{className:"pl-3 text-xs text-gray-500 dark:text-gray-300",children:[a,"/",i]}),n?(0,S.jsx)(Js,{children:(0,S.jsx)("div",{className:"relative p-2 w-16 h-24 bg-gray-200/65 xs:h-20 xs:w-14",children:(0,S.jsx)("img",{src:n,alt:"Preview of File",className:"object-contain w-full h-full rounded-lg"})})}):(0,S.jsx)("div",{className:"relative p-2 w-16 h-24 bg-gray-200/65 xs:h-20 xs:w-14",children:(0,S.jsx)(ml,{className:"w-full h-full text-primary/50"})}),(0,S.jsx)("div",{className:"flex flex-1 gap-2 items-center min-w-0",children:(0,S.jsxs)("div",{className:"flex flex-col gap-2 justify-center min-w-0",children:[(0,S.jsx)("h3",{className:"overflow-hidden max-w-full text-xs font-semibold whitespace-nowrap text-ellipsis xs:text-sm",children:t}),e&&(0,S.jsx)("span",{className:"text-xs text-gray-500 dark:text-gray-300",children:Ls(e,{standard:"jedec",round:1})})]})}),(0,S.jsx)(Sl,{id:r,stage:o.stage}),o.stage===we.IDLE&&!l&&(0,S.jsx)("div",Object.assign({className:"flex items-center self-stretch p-3 bg-gray-200/65 cursor-grab active:cursor-grabbing"},u,{children:(0,S.jsx)(ul,{className:"w-5 h-5"})}))]}),o.stage===we.UPLOADING&&(0,S.jsx)("div",{className:"pt-0",children:(0,S.jsx)(Nl,{progress:o.progress})}),o.stage===we.FINISHED&&(0,S.jsx)("div",{className:"pt-0",children:(0,S.jsx)(Nl,{progress:100,variant:"finished"})}),o.stage===we.FAILED&&(0,S.jsx)("div",{className:"pt-0",children:(0,S.jsx)(Nl,{progress:100,variant:"failed"})})]})}))}),((e,t)=>{var n,r,o,a;return e.id===t.id&&(null===(n=e.uploadStatus)||void 0===n?void 0:n.progress)===(null===(r=t.uploadStatus)||void 0===r?void 0:r.progress)&&(null===(o=e.uploadStatus)||void 0===o?void 0:o.stage)===(null===(a=t.uploadStatus)||void 0===a?void 0:a.stage)&&e.disabled===t.disabled&&e.order===t.order}));var Tl=function(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};const Ml=St.forwardRef(((e,t)=>{var{className:n}=e,r=Tl(e,["className"]);return(0,S.jsx)("div",Object.assign({ref:t,className:be("rounded-xl border bg-card text-card-foreground shadow",n)},r))}));Ml.displayName="Card";const kl=St.forwardRef(((e,t)=>{var{className:n}=e,r=Tl(e,["className"]);return(0,S.jsx)("div",Object.assign({ref:t,className:be("flex flex-col space-y-1.5 p-6",n)},r))}));kl.displayName="CardHeader";const Il=St.forwardRef(((e,t)=>{var{className:n}=e,r=Tl(e,["className"]);return(0,S.jsx)("h3",Object.assign({ref:t,className:be("font-semibold leading-none tracking-tight",n)},r))}));Il.displayName="CardTitle";const Rl=St.forwardRef(((e,t)=>{var{className:n}=e,r=Tl(e,["className"]);return(0,S.jsx)("p",Object.assign({ref:t,className:be("text-sm text-muted-foreground",n)},r))}));Rl.displayName="CardDescription";const Ol=St.forwardRef(((e,t)=>{var{className:n}=e,r=Tl(e,["className"]);return(0,S.jsx)("div",Object.assign({ref:t,className:be(n)},r))}));Ol.displayName="CardContent";const Dl=St.forwardRef(((e,t)=>{var{className:n}=e,r=Tl(e,["className"]);return(0,S.jsx)("div",Object.assign({ref:t,className:be("flex items-center",n)},r))}));Dl.displayName="CardFooter";const Pl=({onDragEnd:e})=>{const{files:t,smStatusIsnt:n,disableSorting:r}=Ci(),o=!!t.length,a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,St.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}(sn(Jn,{}),sn(Vn,{coordinateGetter:Zr})),i=(0,St.useMemo)((()=>t.map((e=>e.id))),[t]),s=(0,St.useCallback)((t=>{const{active:n,over:r}=t;if(!r||n.id===r.id)return;const o=i.findIndex((e=>e===n.id)),a=i.findIndex((e=>e===r.id));null==e||e({source:{index:o},destination:{index:a}})}),[i,e]);return o?r?(0,S.jsx)(Ml,{className:"p-2",children:(0,S.jsx)(Ol,{children:(0,S.jsx)("div",{className:"flex overflow-y-auto overflow-x-hidden flex-col gap-2 max-h-72 scrollbar-thin scrollbar-thumb-gray-300 scrollbar-track-transparent",children:t.map((e=>{var n;return(0,S.jsx)("div",{className:"flex flex-col rounded border duration-150 transition-transform-colors-opacity",children:(0,S.jsx)(Cl,{name:e.name,size:e.size,id:e.id,uploadStatus:e.uploadStatus,previewImgSrc:null===(n=e.previewImg)||void 0===n?void 0:n.imgBase64Uri,count:t.length,disabled:!0,disableSorting:r})},e.id)}))})})}):(0,S.jsx)(Ir,{sensors:a,collisionDetection:mn,onDragEnd:s,autoScroll:{acceleration:1,threshold:{x:0,y:.2},interval:5},children:(0,S.jsx)(Ml,{className:"p-2",children:(0,S.jsx)(Ol,{children:(0,S.jsx)(zr,{items:i,strategy:Br,children:(0,S.jsx)("div",{className:"flex overflow-y-auto overflow-x-hidden flex-col gap-2 max-h-72 scrollbar-thin scrollbar-thumb-gray-300 scrollbar-track-transparent",children:t.map((e=>{var o;return(0,S.jsx)(Cl,{name:e.name,size:e.size,id:e.id,uploadStatus:e.uploadStatus,previewImgSrc:null===(o=e.previewImg)||void 0===o?void 0:o.imgBase64Uri,order:e.order,count:t.length,disabled:n("IDLE")||e.uploadStatus.stage===we.FINISHED,disableSorting:r},e.id)}))})})})})}):null},jl=()=>{const{smStatusIsnt:e,smStatusIs:t}=Ci();return(0,S.jsxs)("div",{className:"flex justify-center items-center w-full",children:[(0,S.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[e("PROCESSING")&&(0,S.jsx)(El,{}),(t("IDLE")||t("ERROR"))&&(0,S.jsx)(xl,{})]}),t("FINISHED")&&(0,S.jsx)("span",{className:"self-end text-xs text-primary text-nowrap",children:(0,S.jsx)(fi,{id:"FileListActions.successText"})})]})},Ll=({children:e,className:t})=>(0,S.jsx)("div",{className:be("flex flex-col flex-1 gap-2",t),children:e}),Al=e=>{const{disableCamera:t,disableFileSystem:n,isMinimal:r}=Object.assign(Object.assign({},{disableCamera:!1,disableFileSystem:!1,isMinimal:!1}),e);return(0,S.jsxs)(S.Fragment,{children:[!r&&(0,S.jsxs)("div",{className:"flex flex-col gap-2",children:[!n&&(0,S.jsx)(Ap,{className:"text-sm md:justify-start"}),!t&&(0,S.jsx)(Lp,{className:"text-sm md:justify-start"})]}),r&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:"flex gap-2 sm:hidden",children:[!n&&(0,S.jsx)(Ap,{onlyIcon:!0,className:"text-xs"}),!t&&(0,S.jsx)(Lp,{onlyIcon:!0,className:"text-xs"})]}),(0,S.jsxs)("div",{className:"hidden gap-2 sm:flex",children:[!n&&(0,S.jsx)(Ap,{className:"text-xs"}),!t&&(0,S.jsx)(Lp,{className:"text-xs"})]})]})]})};function _l(){return!(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)}!function(){const e=navigator;"undefined"!=typeof window&&(void 0===e.mediaDevices&&(e.mediaDevices={}),void 0===e.mediaDevices.getUserMedia&&(e.mediaDevices.getUserMedia=function(t){const n=e.getUserMedia||e.webkitGetUserMedia||e.mozGetUserMedia||e.msGetUserMedia;return n?new Promise((function(r,o){n.call(e,t,r,o)})):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}))}();class Bl extends Ct().Component{constructor(e){super(e),this.canvas=null,this.ctx=null,this.requestUserMediaId=0,this.unmounted=!1,this.requestedUserMedia=!1,this.stream=null,this.video=null,this.state={hasUserMedia:!1}}componentDidMount(){const{state:e,props:t}=this;this.unmounted=!1,_l()?(e.hasUserMedia||this.requestedUserMedia||this.requestUserMedia(),t.children&&"function"!=typeof t.children&&console.warn("children must be a function")):t.onUserMediaError("getUserMedia not supported")}componentDidUpdate(e){const{props:t}=this;if(!_l())return void t.onUserMediaError("getUserMedia not supported");const n=JSON.stringify(e.audioConstraints)!==JSON.stringify(t.audioConstraints),r=JSON.stringify(e.videoConstraints)!==JSON.stringify(t.videoConstraints),o=e.minScreenshotWidth!==t.minScreenshotWidth,a=e.minScreenshotHeight!==t.minScreenshotHeight;(r||o||a)&&(this.canvas=null,this.ctx=null),(n||r)&&(this.stopAndCleanup(),this.requestUserMedia())}componentWillUnmount(){const{props:e}=this;this.unmounted=!0,this.stopAndCleanup()}static stopMediaStream(e){const t=e;t&&(t.getTracks().forEach((e=>{e.stop(),e.enabled=!1,null==t||t.removeTrack(e)})),t.stop&&t.stop())}stopAndCleanup(){const{state:e}=this;e.hasUserMedia&&(Bl.stopMediaStream(this.stream),e.src&&window.URL.revokeObjectURL(e.src))}getScreenshot(e){const{state:t,props:n}=this;if(!t.hasUserMedia)return null;const r=this.getCanvas(e);return r&&r.toDataURL(n.screenshotFormat,n.screenshotQuality)}getCanvas(e){const{state:t,props:n}=this;if(!this.video)return null;if(!t.hasUserMedia||!this.video.videoHeight)return null;if(!this.ctx){let t=this.video.videoWidth,r=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){const e=t/r;t=n.minScreenshotWidth||this.video.clientWidth,r=t/e,n.minScreenshotHeight&&r<n.minScreenshotHeight&&(r=n.minScreenshotHeight,t=r*e)}this.canvas=document.createElement("canvas"),this.canvas.width=(null==e?void 0:e.width)||t,this.canvas.height=(null==e?void 0:e.height)||r,this.ctx=this.canvas.getContext("2d")}const{ctx:r,canvas:o}=this;return r&&o&&(o.width=(null==e?void 0:e.width)||o.width,o.height=(null==e?void 0:e.height)||o.height,n.mirrored&&(r.translate(o.width,0),r.scale(-1,1)),r.imageSmoothingEnabled=n.imageSmoothing,r.drawImage(this.video,0,0,(null==e?void 0:e.width)||o.width,(null==e?void 0:e.height)||o.height),n.mirrored&&(r.scale(-1,1),r.translate(-o.width,0))),o}requestUserMedia(){const{props:e}=this;this.requestedUserMedia=!0;const t=(t,n)=>{const r={video:void 0===n||n};e.audio&&(r.audio=void 0===t||t),this.requestUserMediaId++;const o=this.requestUserMediaId;this.stream||navigator.mediaDevices.getUserMedia(r).then((e=>{this.unmounted||o!==this.requestUserMediaId?Bl.stopMediaStream(e):this.handleUserMedia(null,e)})).catch((e=>{this.handleUserMedia(e)})).finally((()=>{this.requestedUserMedia=!1}))};if("mediaDevices"in navigator)t(e.audioConstraints,e.videoConstraints);else{const n=e=>({optional:[{sourceId:e}]}),r=e=>{const{deviceId:t}=e;return"string"==typeof t?t:Array.isArray(t)&&t.length>0?t[0]:"object"==typeof t&&t.ideal?t.ideal:null};MediaStreamTrack.getSources((o=>{let a=null,i=null;o.forEach((e=>{"audio"===e.kind?a=e.id:"video"===e.kind&&(i=e.id)}));const s=r(e.audioConstraints);s&&(a=s);const l=r(e.videoConstraints);l&&(i=l),t(n(a),n(i))}))}}handleUserMedia(e,t){const{props:n}=this;if(e||!t)return this.setState({hasUserMedia:!1}),void n.onUserMediaError(e);this.stream=t;try{this.video&&(this.video.srcObject=t),this.setState({hasUserMedia:!0})}catch(e){this.setState({hasUserMedia:!0,src:window.URL.createObjectURL(t)})}n.onUserMedia(t)}render(){const{state:e,props:t}=this,{audio:n,forceScreenshotSourceSize:r,onUserMedia:o,onUserMediaError:a,screenshotFormat:i,screenshotQuality:s,minScreenshotWidth:l,minScreenshotHeight:c,audioConstraints:d,videoConstraints:u,imageSmoothing:h,mirrored:f,style:p={},children:m}=t,g=function(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}(t,["audio","forceScreenshotSourceSize","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),v=f?Object.assign(Object.assign({},p),{transform:`${p.transform||""} scaleX(-1)`}):p,b={getScreenshot:this.getScreenshot.bind(this)};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("video",Object.assign({autoPlay:!0,src:e.src,muted:!n,playsInline:!0,ref:e=>{this.video=e},style:v},g)),m&&m(b)]})}}Bl.defaultProps={audio:!1,forceScreenshotSourceSize:!1,imageSmoothing:!0,mirrored:!1,onUserMedia:()=>{},onUserMediaError:()=>{},screenshotFormat:"image/jpeg",screenshotQuality:.9};const Hl=Bl;var Fl=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))};const zl={outputImageUriBase64:!0,outputImageData:!1,targetWidth:1190,targetHeight:1684,screenshotFormat:"image/jpeg",screenshotQuality:.9,imageSmoothing:!0,mirrored:!1,videoConstraints:{width:{min:576,ideal:720,max:1080},height:{ideal:1280,max:1920},aspectRatio:16/9},onCapture:()=>{},onUserMediaError:()=>{},onToggleDevice:()=>{}};function Ul(e){const{outputImageUriBase64:t,outputImageData:n,targetWidth:r,targetHeight:o,screenshotFormat:a,screenshotQuality:i,imageSmoothing:s,mirrored:l,onCapture:c,onUserMediaError:d}=Object.assign(Object.assign({},zl),e),u=Object.assign(Object.assign({},zl.videoConstraints),e.videoConstraints),{smStatus:h,smSetStatus:f,smError:p,smErrorString:m,status:{LOADING:g,READY:v,ERROR:b}}=wi("LOADING"),y=(0,St.useRef)(null),w=(()=>{const e="undefined"==typeof navigator?"SSR":navigator.userAgent,[t,n]=(0,St.useState)({isMobile:void 0,isDesktop:void 0,isAndroid:void 0,isIos:void 0,isSSR:void 0});return(0,St.useEffect)((()=>{e&&n((e=>{const t=Boolean(e.match(/Android/i)),n=Boolean(e.match(/iPhone|iPad|iPod/i)),r=Boolean(e.match(/Opera Mini/i)),o=Boolean(e.match(/IEMobile/i)),a=Boolean(e.match(/SSR/i)),i=t||n||r||o;return{isMobile:i,isDesktop:!i&&!a,isAndroid:t,isIos:n,isSSR:a}})(e))}),[e]),t})(),[x,E]=(0,St.useState)(u.aspectRatio),[N,C]=(0,St.useState)(null),[T,M]=(0,St.useState)(l),[k,I]=(0,St.useState)();let{width:R,height:O}=u;function D(){return Fl(this,void 0,void 0,(function*(){try{return(yield navigator.mediaDevices.enumerateDevices()).filter((e=>"videoinput"===e.kind))}catch(e){Oe(e)}}))}w.isAndroid&&(R=u.height,O=u.width),(0,St.useEffect)((()=>{(()=>{Fl(this,void 0,void 0,(function*(){var e,t;const n=yield D();return I(null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0),null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0}))})()}),[]);const P=e=>{f(v)};function j(e){f(b,e),Oe(e),d(e)}return{WebcamComponent:(0,St.useCallback)((()=>(0,S.jsx)(Hl,{id:"webcam",ref:y,className:"w-full h-full",minScreenshotWidth:r,minScreenshotHeight:o,audio:!1,screenshotFormat:a,screenshotQuality:i,imageSmoothing:s,mirrored:T,videoConstraints:Object.assign(Object.assign({},u),{width:R,height:O,aspectRatio:x,deviceId:N}),onUserMedia:P,onUserMediaError:j})),[N,T,x]),userMediaStatus:h,userMediaError:p,userMediaErrorString:m,getDevices:D,deviceCount:k,selectedDeviceId:N,setSelectedDeviceId:C,doCaptureImage:function(){var e;let s=null===(e=y.current)||void 0===e?void 0:e.getCanvas();if(!s)return;const l=1/Math.max(s.width/r,s.height/o),{canvas:d,context:u}=function(e,t=1,n=!0){const{width:r,height:o}=e,a=document.createElement("canvas");a.width=r*t,a.height=o*t;const i=a.getContext("2d");return i.imageSmoothingEnabled=n,i.drawImage(e,0,0,a.width,a.height),{canvas:a,context:i}}(s,l,!0),h={imageUriBase64:void 0,imageData:void 0};t&&(h.imageUriBase64=d.toDataURL(a,i)),n&&(h.imageData=u.getImageData(0,0,d.width,d.height)),c(h)},doRotateDevice:function(){E(1/x)},doMirrorDevice:function(){M(!T)},doNextDevice:function(){return Fl(this,void 0,void 0,(function*(){const e=yield D();if(!e)return void f(b,new Error("Problem beim Suchen der Kamera(s)."));const t=e.findIndex((e=>e.deviceId===N));let n=0;e.length>1&&(n=-1===t?1:(t+1)%e.length),f(g),C(e[n].deviceId),f(v)}))}}}function Gl(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Wl(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>St.createContext(e)));return function(n){const r=n?.[e]||t;return St.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=St.createContext(r),a=n.length;n=[...n,r];const i=t=>{const{scope:n,children:r,...i}=t,s=n?.[e]?.[a]||o,l=St.useMemo((()=>i),Object.values(i));return(0,S.jsx)(s.Provider,{value:l,children:r})};return i.displayName=t+"Provider",[i,function(n,i){const s=i?.[e]?.[a]||o,l=St.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Yl(r,...t)]}function Yl(...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 St.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var $l=Boolean(globalThis?.document)?St.useLayoutEffect:()=>{},Vl=Nt["useId".toString()]||(()=>{}),Xl=0;function Kl(e){const[t,n]=St.useState(Vl());return $l((()=>{e||n((e=>e??String(Xl++)))}),[e]),e||(t?`radix-${t}`:"")}function ql(e){const t=St.useRef(e);return St.useEffect((()=>{t.current=e})),St.useMemo((()=>(...e)=>t.current?.(...e)),[])}function Zl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=function({defaultProp:e,onChange:t}){const n=St.useState(e),[r]=n,o=St.useRef(r),a=ql(t);return St.useEffect((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,i=a?e:r,s=ql(n);return[i,St.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[a,e,o,s])]}var Jl,Ql="dismissableLayer.update",ec=St.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tc=St.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,c=St.useContext(ec),[d,u]=St.useState(null),h=d?.ownerDocument??globalThis?.document,[,f]=St.useState({}),p=ls(t,(e=>u(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),b=d?m.indexOf(d):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,w=b>=v,x=function(e,t=globalThis?.document){const n=ql(e),r=St.useRef(!1),o=St.useRef((()=>{}));return St.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){rc("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));w&&!n&&(o?.(e),i?.(e),e.defaultPrevented||s?.())}),h),E=function(e,t=globalThis?.document){const n=ql(e),r=St.useRef(!1);return St.useEffect((()=>{const e=e=>{e.target&&!r.current&&rc("dismissableLayer.focusOutside",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;[...c.branches].some((e=>e.contains(t)))||(a?.(e),i?.(e),e.defaultPrevented||s?.())}),h);return function(e,t=globalThis?.document){const n=ql(e);St.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=>{b===c.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),h),St.useEffect((()=>{if(d)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(Jl=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),nc(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Jl)}}),[d,h,n,c]),St.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),nc())}),[d,c]),St.useEffect((()=>{const e=()=>f({});return document.addEventListener(Ql,e),()=>document.removeEventListener(Ql,e)}),[]),(0,S.jsx)(ps.div,{...l,ref:p,style:{pointerEvents:y?w?"auto":"none":void 0,...e.style},onFocusCapture:Gl(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Gl(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Gl(e.onPointerDownCapture,x.onPointerDownCapture)})}));function nc(){const e=new CustomEvent(Ql);document.dispatchEvent(e)}function rc(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&Tt.flushSync((()=>e.dispatchEvent(t)))}(o,a):o.dispatchEvent(a)}tc.displayName="DismissableLayer",St.forwardRef(((e,t)=>{const n=St.useContext(ec),r=St.useRef(null),o=ls(t,r);return St.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,S.jsx)(ps.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var oc="focusScope.autoFocusOnMount",ac="focusScope.autoFocusOnUnmount",ic={bubbles:!1,cancelable:!0},sc=St.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=St.useState(null),c=ql(o),d=ql(a),u=St.useRef(null),h=ls(t,(e=>l(e))),f=St.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;St.useEffect((()=>{if(r){let e=function(e){if(f.paused||!s)return;const t=e.target;s.contains(t)?u.current=t:uc(u.current,{select:!0})},t=function(e){if(f.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||uc(u.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&uc(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,f.paused]),St.useEffect((()=>{if(s){hc.add(f);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(oc,ic);s.addEventListener(oc,c),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(uc(r,{select:t}),document.activeElement!==n)return}(lc(s).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&uc(s))}return()=>{s.removeEventListener(oc,c),setTimeout((()=>{const t=new CustomEvent(ac,ic);s.addEventListener(ac,d),s.dispatchEvent(t),t.defaultPrevented||uc(e??document.body,{select:!0}),s.removeEventListener(ac,d),hc.remove(f)}),0)}}}),[s,c,d,f]);const p=St.useCallback((e=>{if(!n&&!r)return;if(f.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=lc(e);return[cc(t,e),cc(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&uc(a,{select:!0})):(e.preventDefault(),n&&uc(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,f.paused]);return(0,S.jsx)(ps.div,{tabIndex:-1,...i,ref:h,onKeyDown:p})}));function lc(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 cc(e,t){for(const n of e)if(!dc(n,{upTo:t}))return n}function dc(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 uc(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()}}sc.displayName="FocusScope";var hc=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=fc(e,t),e.unshift(t)},remove(t){e=fc(e,t),e[0]?.resume()}}}();function fc(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var pc=St.forwardRef(((e,t)=>{const{container:n,...r}=e,[o,a]=St.useState(!1);$l((()=>a(!0)),[]);const i=n||o&&globalThis?.document?.body;return i?Tt.createPortal((0,S.jsx)(ps.div,{...r,ref:t}),i):null}));pc.displayName="Portal";var mc=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=St.useState(),r=St.useRef({}),o=St.useRef(e),a=St.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return St.useReducer(((e,n)=>t[e][n]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return St.useEffect((()=>{const e=gc(r.current);a.current="mounted"===s?e:"none"}),[s]),$l((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=gc(t);l(e?"MOUNT":"none"===i||"none"===t?.display?"UNMOUNT":n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,l]),$l((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=a=>{const i=gc(r.current).includes(a.animationName);if(a.target===t&&i&&(l("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(a.current=gc(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:St.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):St.Children.only(n),a=ls(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(o));return"function"==typeof n||r.isPresent?St.cloneElement(o,{ref:a}):null};function gc(e){return e?.animationName||"none"}mc.displayName="Presence";var vc=0;function bc(){St.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yc()),document.body.insertAdjacentElement("beforeend",e[1]??yc()),vc++,()=>{1===vc&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),vc--}}),[])}function yc(){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 wc="right-scroll-bar-position",xc="width-before-scroll-bar";function Ec(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Sc="undefined"!=typeof window?St.useLayoutEffect:St.useEffect,Nc=new WeakMap;function Cc(e){return e}var Tc=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Cc);var n=[],r=!1;return{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 a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=to({async:!0,ssr:!1},e),t}(),Mc=function(){},kc=St.forwardRef((function(e,t){var n=St.useRef(null),r=St.useState({onScrollCapture:Mc,onWheelCapture:Mc,onTouchMoveCapture:Mc}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,u=e.shards,h=e.sideCar,f=e.noIsolation,p=e.inert,m=e.allowPinchZoom,g=e.as,v=void 0===g?"div":g,b=e.gapMode,y=no(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=h,x=function(e,t){var n,r,o,a=(n=t||null,r=function(t){return e.forEach((function(e){return Ec(e,t)}))},(o=(0,St.useState)((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 Sc((function(){var t=Nc.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach((function(e){r.has(e)||Ec(e,null)})),r.forEach((function(e){n.has(e)||Ec(e,o)}))}Nc.set(a,e)}),[e]),a}([n,t]),E=to(to({},y),o);return St.createElement(St.Fragment,null,d&&St.createElement(w,{sideCar:Tc,removeScrollBar:c,shards:u,noIsolation:f,inert:p,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:b}),i?St.cloneElement(St.Children.only(s),to(to({},E),{ref:x})):St.createElement(v,to({},E,{className:l,ref:x}),s))}));kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},kc.classNames={fullWidth:xc,zeroRight:wc};var Ic=function(e){var t=e.sideCar,n=no(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return St.createElement(r,to({},n))};Ic.isSideCarExport=!0;var Rc=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i.nc;return t&&e.setAttribute("nonce",t),e}())&&(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)}}},Oc=function(){var e,t=(e=Rc(),function(t,n){St.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}},Dc={left:0,top:0,right:0,gap:0},Pc=function(e){return parseInt(e||"",10)||0},jc=Oc(),Lc="data-scroll-locked",Ac=function(e,t,n,r){var o=e.left,a=e.top,i=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(Lc,"] {\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(a,"px;\n padding-right: ").concat(i,"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(wc," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(xc," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(wc," .").concat(wc," {\n right: 0 ").concat(r,";\n }\n \n .").concat(xc," .").concat(xc," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Lc,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},_c=function(){var e=parseInt(document.body.getAttribute(Lc)||"0",10);return isFinite(e)?e:0},Bc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;St.useEffect((function(){return document.body.setAttribute(Lc,(_c()+1).toString()),function(){var e=_c()-1;e<=0?document.body.removeAttribute(Lc):document.body.setAttribute(Lc,e.toString())}}),[]);var a=St.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Dc;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[Pc(n),Pc(r),Pc(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])}}(o)}),[o]);return St.createElement(jc,{styles:Ac(a,!t,o,n?"":"!important")})},Hc=!1;if("undefined"!=typeof window)try{var Fc=Object.defineProperty({},"passive",{get:function(){return Hc=!0,!0}});window.addEventListener("test",Fc,Fc),window.removeEventListener("test",Fc,Fc)}catch(e){Hc=!1}var zc=!!Hc&&{passive:!1},Uc=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])},Gc=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Wc(e,r)){var o=Yc(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Wc=function(e,t){return"v"===e?function(e){return Uc(e,"overflowY")}(t):function(e){return Uc(e,"overflowX")}(t)},Yc=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)},$c=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vc=function(e){return[e.deltaX,e.deltaY]},Xc=function(e){return e&&"current"in e?e.current:e},Kc=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},qc=0,Zc=[];function Jc(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Qc=(ed=function(e){var t=St.useRef([]),n=St.useRef([0,0]),r=St.useRef(),o=St.useState(qc++)[0],a=St.useState(Oc)[0],i=St.useRef(e);St.useEffect((function(){i.current=e}),[e]),St.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=ro([e.lockRef.current],(e.shards||[]).map(Xc),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=St.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=$c(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],c="deltaY"in e?e.deltaY:s[1]-a[1],d=e.target,u=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var h=Gc(u,d);if(!h)return!0;if(h?o=u:(o="v"===u?"h":"v",h=Gc(u,d)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var f=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,c=a>0,d=0,u=0;do{var h=Yc(e,i),f=h[0],p=h[1]-h[2]-o*f;(f||p)&&Wc(e,i)&&(d+=p,u+=f),i=i instanceof ShadowRoot?i.host:i.parentNode}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&(Math.abs(d)<1||!1)||!c&&(Math.abs(u)<1||!1))&&(l=!0),l}(f,t,e,"h"===f?l:c)}),[]),l=St.useCallback((function(e){var n=e;if(Zc.length&&Zc[Zc.length-1]===a){var r="deltaY"in n?Vc(n):$c(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(i.current.shards||[]).map(Xc).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=St.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:Jc(r)};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),d=St.useCallback((function(e){n.current=$c(e),r.current=void 0}),[]),u=St.useCallback((function(t){c(t.type,Vc(t),t.target,s(t,e.lockRef.current))}),[]),h=St.useCallback((function(t){c(t.type,$c(t),t.target,s(t,e.lockRef.current))}),[]);St.useEffect((function(){return Zc.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:h}),document.addEventListener("wheel",l,zc),document.addEventListener("touchmove",l,zc),document.addEventListener("touchstart",d,zc),function(){Zc=Zc.filter((function(e){return e!==a})),document.removeEventListener("wheel",l,zc),document.removeEventListener("touchmove",l,zc),document.removeEventListener("touchstart",d,zc)}}),[]);var f=e.removeScrollBar,p=e.inert;return St.createElement(St.Fragment,null,p?St.createElement(a,{styles:Kc(o)}):null,f?St.createElement(Bc,{gapMode:e.gapMode}):null)},Tc.useMedium(ed),Ic);var ed,td=St.forwardRef((function(e,t){return St.createElement(kc,to({},e,{ref:t,sideCar:Qc}))}));td.classNames=kc.classNames;const nd=td;var rd=new WeakMap,od=new WeakMap,ad={},id=0,sd=function(e){return e&&(e.host||sd(e.parentNode))},ld=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||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]"))),function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=sd(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]);ad[n]||(ad[n]=new WeakMap);var a=ad[n],i=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))d(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(rd.get(e)||0)+1,c=(a.get(e)||0)+1;rd.set(e,l),a.set(e,c),i.push(e),1===l&&o&&od.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 d(t),s.clear(),id++,function(){i.forEach((function(e){var t=rd.get(e)-1,o=a.get(e)-1;rd.set(e,t),a.set(e,o),t||(od.has(e)||e.removeAttribute(r),od.delete(e)),o||e.removeAttribute(n)})),--id||(rd=new WeakMap,rd=new WeakMap,od=new WeakMap,ad={})}}(r,o,n,"aria-hidden")):function(){return null}},cd="Dialog",[dd,ud]=Wl(cd),[hd,fd]=dd(cd),pd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=St.useRef(null),l=St.useRef(null),[c=!1,d]=Zl({prop:r,defaultProp:o,onChange:a});return(0,S.jsx)(hd,{scope:t,triggerRef:s,contentRef:l,contentId:Kl(),titleId:Kl(),descriptionId:Kl(),open:c,onOpenChange:d,onOpenToggle:St.useCallback((()=>d((e=>!e))),[d]),modal:i,children:n})};pd.displayName=cd;var md="DialogTrigger",gd=St.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=fd(md,n),a=ls(t,o.triggerRef);return(0,S.jsx)(ps.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ld(o.open),...r,ref:a,onClick:Gl(e.onClick,o.onOpenToggle)})}));gd.displayName=md;var vd="DialogPortal",[bd,yd]=dd(vd,{forceMount:void 0}),wd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=fd(vd,t);return(0,S.jsx)(bd,{scope:t,forceMount:n,children:St.Children.map(r,(e=>(0,S.jsx)(mc,{present:n||a.open,children:(0,S.jsx)(pc,{asChild:!0,container:o,children:e})})))})};wd.displayName=vd;var xd="DialogOverlay",Ed=St.forwardRef(((e,t)=>{const n=yd(xd,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=fd(xd,e.__scopeDialog);return a.modal?(0,S.jsx)(mc,{present:r||a.open,children:(0,S.jsx)(Sd,{...o,ref:t})}):null}));Ed.displayName=xd;var Sd=St.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=fd(xd,n);return(0,S.jsx)(nd,{as:cs,allowPinchZoom:!0,shards:[o.contentRef],children:(0,S.jsx)(ps.div,{"data-state":Ld(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),Nd="DialogContent",Cd=St.forwardRef(((e,t)=>{const n=yd(Nd,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=fd(Nd,e.__scopeDialog);return(0,S.jsx)(mc,{present:r||a.open,children:a.modal?(0,S.jsx)(Td,{...o,ref:t}):(0,S.jsx)(Md,{...o,ref:t})})}));Cd.displayName=Nd;var Td=St.forwardRef(((e,t)=>{const n=fd(Nd,e.__scopeDialog),r=St.useRef(null),o=ls(t,n.contentRef,r);return St.useEffect((()=>{const e=r.current;if(e)return ld(e)}),[]),(0,S.jsx)(kd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Gl(e.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:Gl(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Gl(e.onFocusOutside,(e=>e.preventDefault()))})})),Md=St.forwardRef(((e,t)=>{const n=fd(Nd,e.__scopeDialog),r=St.useRef(!1),o=St.useRef(!1);return(0,S.jsx)(kd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),kd=St.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=fd(Nd,n),l=St.useRef(null),c=ls(t,l);return bc(),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(sc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,S.jsx)(tc,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Ld(s.open),...i,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Hd,{titleId:s.titleId}),(0,S.jsx)(Fd,{contentRef:l,descriptionId:s.descriptionId})]})]})})),Id="DialogTitle",Rd=St.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=fd(Id,n);return(0,S.jsx)(ps.h2,{id:o.titleId,...r,ref:t})}));Rd.displayName=Id;var Od="DialogDescription",Dd=St.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=fd(Od,n);return(0,S.jsx)(ps.p,{id:o.descriptionId,...r,ref:t})}));Dd.displayName=Od;var Pd="DialogClose",jd=St.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=fd(Pd,n);return(0,S.jsx)(ps.button,{type:"button",...r,ref:t,onClick:Gl(e.onClick,(()=>o.onOpenChange(!1)))})}));function Ld(e){return e?"open":"closed"}jd.displayName=Pd;var Ad="DialogTitleWarning",[_d,Bd]=function(e,t){const n=St.createContext(t),r=e=>{const{children:t,...r}=e,o=St.useMemo((()=>r),Object.values(r));return(0,S.jsx)(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=St.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(Ad,{contentName:Nd,titleName:Id,docsSlug:"dialog"}),Hd=({titleId:e})=>{const t=Bd(Ad),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return St.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},Fd=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bd("DialogDescriptionWarning").contentName}}.`;return St.useEffect((()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},zd=Ed,Ud=Cd,Gd=Rd,Wd=Dd,Yd=jd,$d=function(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};const Vd=pd,Xd=gd,Kd=wd,qd=St.forwardRef(((e,t)=>{var{className:n}=e,r=$d(e,["className"]);return(0,S.jsx)(zd,Object.assign({ref:t,className:be("fixed inset-0 z-50 bg-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},r))}));qd.displayName=zd.displayName;const Zd=St.forwardRef(((e,t)=>{var{className:n,children:r}=e,o=$d(e,["className","children"]);return(0,S.jsxs)(Kd,{children:[(0,S.jsx)(qd,{}),(0,S.jsxs)(Ud,Object.assign({ref:t,className:be("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 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%] sm:rounded-lg",n)},o,{children:[r,(0,S.jsxs)(Yd,{className:"absolute right-4 top-4 rounded-sm opacity-70 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:[(0,S.jsx)(cl,{className:"w-4 h-4"}),(0,S.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})}));Zd.displayName=Ud.displayName;const Jd=e=>{var{className:t}=e,n=$d(e,["className"]);return(0,S.jsx)("div",Object.assign({className:be("flex flex-col space-y-1.5 text-center sm:text-left",t)},n))};Jd.displayName="DialogHeader";const Qd=e=>{var{className:t}=e,n=$d(e,["className"]);return(0,S.jsx)("div",Object.assign({className:be("w-full",t)},n))};Qd.displayName="DialogFooter";const eu=St.forwardRef(((e,t)=>{var{className:n}=e,r=$d(e,["className"]);return(0,S.jsx)(Gd,Object.assign({ref:t,className:be("text-lg font-semibold leading-none tracking-tight",n)},r))}));eu.displayName=Gd.displayName;const tu=St.forwardRef(((e,t)=>{var{className:n}=e,r=$d(e,["className"]);return(0,S.jsx)(Wd,Object.assign({ref:t,className:be("text-sm text-muted-foreground",n)},r))}));function nu(e,[t,n]){return Math.min(n,Math.max(t,e))}function ru(...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 St.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}tu.displayName=Wd.displayName;var ou=St.createContext(void 0);const au=["top","right","bottom","left"],iu=Math.min,su=Math.max,lu=Math.round,cu=Math.floor,du=e=>({x:e,y:e}),uu={left:"right",right:"left",bottom:"top",top:"bottom"},hu={start:"end",end:"start"};function fu(e,t,n){return su(e,iu(t,n))}function pu(e,t){return"function"==typeof e?e(t):e}function mu(e){return e.split("-")[0]}function gu(e){return e.split("-")[1]}function vu(e){return"x"===e?"y":"x"}function bu(e){return"y"===e?"height":"width"}function yu(e){return["top","bottom"].includes(mu(e))?"y":"x"}function wu(e){return vu(yu(e))}function xu(e){return e.replace(/start|end/g,(e=>hu[e]))}function Eu(e){return e.replace(/left|right|bottom|top/g,(e=>uu[e]))}function Su(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 Nu(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 Cu(e,t,n){let{reference:r,floating:o}=e;const a=yu(t),i=wu(t),s=bu(i),l=mu(t),c="y"===a,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:u};break;case"left":f={x:r.x-o.width,y:u};break;default:f={x:r.x,y:r.y}}switch(gu(t)){case"start":f[i]-=h*(n&&c?-1:1);break;case"end":f[i]+=h*(n&&c?-1:1)}return f}async function Tu(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:f=0}=pu(t,e),p=Su(f),m=s[h?"floating"===u?"reference":"floating":u],g=Nu(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),v="floating"===u?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},w=Nu(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-w.top+p.top)/y.y,bottom:(w.bottom-g.bottom+p.bottom)/y.y,left:(g.left-w.left+p.left)/y.x,right:(w.right-g.right+p.right)/y.x}}function Mu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ku(e){return au.some((t=>e[t]>=0))}function Iu(){return"undefined"!=typeof window}function Ru(e){return Pu(e)?(e.nodeName||"").toLowerCase():"#document"}function Ou(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Du(e){var t;return null==(t=(Pu(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Pu(e){return!!Iu()&&(e instanceof Node||e instanceof Ou(e).Node)}function ju(e){return!!Iu()&&(e instanceof Element||e instanceof Ou(e).Element)}function Lu(e){return!!Iu()&&(e instanceof HTMLElement||e instanceof Ou(e).HTMLElement)}function Au(e){return!(!Iu()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ou(e).ShadowRoot)}function _u(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Gu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Bu(e){return["table","td","th"].includes(Ru(e))}function Hu(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Fu(e){const t=zu(),n=ju(e)?Gu(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 zu(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Uu(e){return["html","body","#document"].includes(Ru(e))}function Gu(e){return Ou(e).getComputedStyle(e)}function Wu(e){return ju(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yu(e){if("html"===Ru(e))return e;const t=e.assignedSlot||e.parentNode||Au(e)&&e.host||Du(e);return Au(t)?t.host:t}function $u(e){const t=Yu(e);return Uu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lu(t)&&_u(t)?t:$u(t)}function Vu(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=$u(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Ou(o);if(a){const e=Xu(i);return t.concat(i,i.visualViewport||[],_u(o)?o:[],e&&n?Vu(e):[])}return t.concat(o,Vu(o,[],n))}function Xu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ku(e){const t=Gu(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Lu(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=lu(n)!==a||lu(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function qu(e){return ju(e)?e:e.contextElement}function Zu(e){const t=qu(e);if(!Lu(t))return du(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ku(t);let i=(a?lu(n.width):n.width)/r,s=(a?lu(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Ju=du(0);function Qu(e){const t=Ou(e);return zu()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ju}function eh(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=qu(e);let i=du(1);t&&(r?ju(r)&&(i=Zu(r)):i=Zu(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ou(e))&&t}(a,n,r)?Qu(a):du(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(a){const e=Ou(a),t=r&&ju(r)?Ou(r):r;let n=e,o=Xu(n);for(;o&&r&&t!==n;){const e=Zu(o),t=o.getBoundingClientRect(),r=Gu(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=a,c+=i,n=Ou(o),o=Xu(n)}}return Nu({width:d,height:u,x:l,y:c})}function th(e,t){const n=Wu(e).scrollLeft;return t?t.left+n:eh(Du(e)).left+n}function nh(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:th(e,r)),y:r.top+t.scrollTop}}function rh(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ou(e),r=Du(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=zu();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Du(e),n=Wu(e),r=e.ownerDocument.body,o=su(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=su(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+th(e);const s=-n.scrollTop;return"rtl"===Gu(r).direction&&(i+=su(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(Du(e));else if(ju(t))r=function(e,t){const n=eh(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Lu(e)?Zu(e):du(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=Qu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Nu(r)}function oh(e,t){const n=Yu(e);return!(n===t||!ju(n)||Uu(n))&&("fixed"===Gu(n).position||oh(n,t))}function ah(e,t,n){const r=Lu(t),o=Du(t),a="fixed"===n,i=eh(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=du(0);if(r||!r&&!a)if(("body"!==Ru(t)||_u(o))&&(s=Wu(t)),r){const e=eh(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=th(o));const c=!o||r||a?du(0):nh(o,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function ih(e){return"static"===Gu(e).position}function sh(e,t){if(!Lu(e)||"fixed"===Gu(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Du(e)===n&&(n=n.ownerDocument.body),n}function lh(e,t){const n=Ou(e);if(Hu(e))return n;if(!Lu(e)){let t=Yu(e);for(;t&&!Uu(t);){if(ju(t)&&!ih(t))return t;t=Yu(t)}return n}let r=sh(e,t);for(;r&&Bu(r)&&ih(r);)r=sh(r,t);return r&&Uu(r)&&ih(r)&&!Fu(r)?n:r||function(e){let t=Yu(e);for(;Lu(t)&&!Uu(t);){if(Fu(t))return t;if(Hu(t))return null;t=Yu(t)}return null}(e)||n}const ch={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=Du(r),s=!!t&&Hu(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=du(1);const d=du(0),u=Lu(r);if((u||!u&&!a)&&(("body"!==Ru(r)||_u(i))&&(l=Wu(r)),Lu(r))){const e=eh(r);c=Zu(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const h=!i||u||a?du(0):nh(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:Du,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?Hu(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Vu(e,[],!1).filter((e=>ju(e)&&"body"!==Ru(e))),o=null;const a="fixed"===Gu(e).position;let i=a?Yu(e):e;for(;ju(i)&&!Uu(i);){const t=Gu(i),n=Fu(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||_u(i)&&!n&&oh(e,i))?r=r.filter((e=>e!==i)):o=t,i=Yu(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=rh(t,n,o);return e.top=su(r.top,e.top),e.right=iu(r.right,e.right),e.bottom=iu(r.bottom,e.bottom),e.left=su(r.left,e.left),e}),rh(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:lh,getElementRects:async function(e){const t=this.getOffsetParent||lh,n=this.getDimensions,r=await n(e.floating);return{reference:ah(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}=Ku(e);return{width:t,height:n}},getScale:Zu,isElement:ju,isRTL:function(e){return"rtl"===Gu(e).direction}};const dh=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=mu(n),s=gu(n),l="y"===yu(n),c=["left","top"].includes(i)?-1:1,d=a&&l?-1:1,u=pu(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof p&&(f="end"===s?-1*p:p),l?{x:f*d,y:h*c}:{x:h*c,y:f*d}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},uh=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=pu(e,t),c={x:n,y:r},d=await Tu(t,l),u=yu(mu(o)),h=vu(u);let f=c[h],p=c[u];if(a){const e="y"===h?"bottom":"right";f=fu(f+d["y"===h?"top":"left"],f,f-d[e])}if(i){const e="y"===u?"bottom":"right";p=fu(p+d["y"===u?"top":"left"],p,p-d[e])}const m=s.fn({...t,[h]:f,[u]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:a,[u]:i}}}}}},hh=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=pu(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const v=mu(o),b=yu(s),y=mu(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(y||!m?[Eu(s)]:function(e){const t=Eu(e);return[xu(e),t,xu(t)]}(s)),E="none"!==p;!h&&E&&x.push(...function(e,t,n,r){const o=gu(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(mu(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(xu)))),a}(s,m,p,w));const S=[s,...x],N=await Tu(t,g),C=[];let T=(null==(r=a.flip)?void 0:r.overflows)||[];if(d&&C.push(N[v]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=gu(e),o=wu(e),a=bu(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Eu(i)),[i,Eu(i)]}(o,i,w);C.push(N[e[0]],N[e[1]])}if(T=[...T,{placement:o,overflows:C}],!C.every((e=>e<=0))){var M,k;const e=((null==(M=a.flip)?void 0:M.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(k=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(f){case"bestFit":{var I;const e=null==(I=T.filter((e=>{if(E){const t=yu(e.placement);return t===b||"y"===t}return!0})).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:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},fh=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=pu(e,t),d=await Tu(t,c),u=mu(o),h=gu(o),f="y"===yu(o),{width:p,height:m}=a.floating;let g,v;"top"===u||"bottom"===u?(g=u,v=h===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=u,g="end"===h?"top":"bottom");const b=m-d.top-d.bottom,y=p-d.left-d.right,w=iu(m-d[g],b),x=iu(p-d[v],y),E=!t.middlewareData.shift;let S=w,N=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(N=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=b),E&&!h){const e=su(d.left,0),t=su(d.right,0),n=su(d.top,0),r=su(d.bottom,0);f?N=p-2*(0!==e||0!==t?e+t:su(d.left,d.right)):S=m-2*(0!==n||0!==r?n+r:su(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:S});const C=await i.getDimensions(s.floating);return p!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}},ph=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=pu(e,t);switch(r){case"referenceHidden":{const e=Mu(await Tu(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ku(e)}}}case"escaped":{const e=Mu(await Tu(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ku(e)}}}default:return{}}}}},mh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=pu(e,t)||{};if(null==c)return{};const u=Su(d),h={x:n,y:r},f=wu(o),p=bu(f),m=await i.getDimensions(c),g="y"===f,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=a.reference[p]+a.reference[f]-h[f]-a.floating[p],x=h[f]-a.reference[f],E=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let S=E?E[y]:0;S&&await(null==i.isElement?void 0:i.isElement(E))||(S=s.floating[y]||a.floating[p]);const N=w/2-x/2,C=S/2-m[p]/2-1,T=iu(u[v],C),M=iu(u[b],C),k=T,I=S-m[p]-M,R=S/2-m[p]/2+N,O=fu(k,R,I),D=!l.arrow&&null!=gu(o)&&R!==O&&a.reference[p]/2-(R<k?T:M)-m[p]/2<0,P=D?R<k?R-k:R-I:0;return{[f]:h[f]+P,data:{[f]:O,centerOffset:R-O-P,...D&&{alignmentOffset:P}},reset:D}}}),gh=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=pu(e,t),d={x:n,y:r},u=yu(o),h=vu(u);let f=d[h],p=d[u];const m=pu(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===h?"height":"width",t=a.reference[h]-a.floating[e]+g.mainAxis,n=a.reference[h]+a.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var v,b;const e="y"===h?"width":"height",t=["top","left"].includes(mu(o)),n=a.reference[u]-a.floating[e]+(t&&(null==(v=i.offset)?void 0:v[u])||0)+(t?0:g.crossAxis),r=a.reference[u]+a.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[u])||0)-(t?g.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[h]:f,[u]:p}}}},vh=(e,t,n)=>{const r=new Map,o={platform:ch,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Cu(c,r,l),h=r,f={},p=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:g,y:v,data:b,reset:y}=await m({x:d,y:u,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=v?v:u,f={...f,[a]:{...f[a],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:d,y:u}=Cu(c,h,l))),n=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:f}})(e,t,{...o,platform:a})};var bh="undefined"!=typeof document?St.useLayoutEffect:St.useEffect;function yh(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(!yh(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||yh(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function wh(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xh(e,t){const n=wh(e);return Math.round(t*n)/n}function Eh(e){const t=St.useRef(e);return bh((()=>{t.current=e})),t}const Sh=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?mh({element:n.current,padding:r}).fn(t):{}:n?mh({element:n,padding:r}).fn(t):{};var o}}),Nh=(e,t)=>({...dh(e),options:[e,t]}),Ch=(e,t)=>({...uh(e),options:[e,t]}),Th=(e,t)=>({...gh(e),options:[e,t]}),Mh=(e,t)=>({...hh(e),options:[e,t]}),kh=(e,t)=>({...fh(e),options:[e,t]}),Ih=(e,t)=>({...ph(e),options:[e,t]}),Rh=(e,t)=>({...Sh(e),options:[e,t]});var Oh=St.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return(0,S.jsx)(ps.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,S.jsx)("polygon",{points:"0,0 30,0 15,10"})})}));Oh.displayName="Arrow";var Dh=Oh;function Ph(...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 St.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var jh="Popper",[Lh,Ah]=function(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>St.createContext(e)));return function(n){const r=n?.[e]||t;return St.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=St.createContext(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,s=n?.[e][a]||o,l=St.useMemo((()=>i),Object.values(i));return(0,S.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const s=i?.[e][a]||o,l=St.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Ph(r,...t)]}(jh),[_h,Bh]=Lh(jh),Hh=e=>{const{__scopePopper:t,children:n}=e,[r,o]=St.useState(null);return(0,S.jsx)(_h,{scope:t,anchor:r,onAnchorChange:o,children:n})};Hh.displayName=jh;var Fh="PopperAnchor",zh=St.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Bh(Fh,n),i=St.useRef(null),s=ls(t,i);return St.useEffect((()=>{a.onAnchorChange(r?.current||i.current)})),r?null:(0,S.jsx)(ps.div,{...o,ref:s})}));zh.displayName=Fh;var Uh="PopperContent",[Gh,Wh]=Lh(Uh),Yh=St.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:p,...m}=e,g=Bh(Uh,n),[v,b]=St.useState(null),y=ls(t,(e=>b(e))),[w,x]=St.useState(null),E=function(e){const[t,n]=St.useState(void 0);return $l((()=>{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,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(w),N=E?.width??0,C=E?.height??0,T=r+("center"!==a?"-"+a:""),M="number"==typeof d?d:{top:0,right:0,bottom:0,left:0,...d},k=Array.isArray(c)?c:[c],I=k.length>0,R={padding:M,boundary:k.filter(Kh),altBoundary:I},{refs:O,floatingStyles:D,placement:P,isPositioned:j,middlewareData:L}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[d,u]=St.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=St.useState(r);yh(h,r)||f(r);const[p,m]=St.useState(null),[g,v]=St.useState(null),b=St.useCallback((e=>{e!==E.current&&(E.current=e,m(e))}),[]),y=St.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),w=a||p,x=i||g,E=St.useRef(null),S=St.useRef(null),N=St.useRef(d),C=null!=l,T=Eh(l),M=Eh(o),k=Eh(c),I=St.useCallback((()=>{if(!E.current||!S.current)return;const e={placement:t,strategy:n,middleware:h};M.current&&(e.platform=M.current),vh(E.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==k.current};R.current&&!yh(N.current,t)&&(N.current=t,Tt.flushSync((()=>{u(t)})))}))}),[h,t,n,M,k]);bh((()=>{!1===c&&N.current.isPositioned&&(N.current.isPositioned=!1,u((e=>({...e,isPositioned:!1}))))}),[c]);const R=St.useRef(!1);bh((()=>(R.current=!0,()=>{R.current=!1})),[]),bh((()=>{if(w&&(E.current=w),x&&(S.current=x),w&&x){if(T.current)return T.current(w,x,I);I()}}),[w,x,I,T,C]);const O=St.useMemo((()=>({reference:E,floating:S,setReference:b,setFloating:y})),[b,y]),D=St.useMemo((()=>({reference:w,floating:x})),[w,x]),P=St.useMemo((()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=xh(D.floating,d.x),r=xh(D.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...wh(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,D.floating,d.x,d.y]);return St.useMemo((()=>({...d,update:I,refs:O,elements:D,floatingStyles:P})),[d,I,O,D,P])}({strategy:"fixed",placement:T,whileElementsMounted:(...e)=>function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=qu(e),d=o||a?[...c?Vu(c):[],...Vu(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const u=c&&s?function(e,t){let n,r=null;const o=Du(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:c,top:d,width:u,height:h}=e.getBoundingClientRect();if(s||t(),!u||!h)return;const f={rootMargin:-cu(d)+"px "+-cu(o.clientWidth-(c+u))+"px "+-cu(o.clientHeight-(d+h))+"px "+-cu(c)+"px",threshold:su(0,iu(1,l))||1};let p=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}p=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),a}(c,n):null;let h,f=-1,p=null;i&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let m=l?eh(e):null;return l&&function t(){const r=eh(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(h)}}(...e,{animationFrame:"always"===f}),elements:{reference:g.anchor},middleware:[Nh({mainAxis:o+C,alignmentAxis:i}),l&&Ch({mainAxis:!0,crossAxis:!1,limiter:"partial"===u?Th():void 0,...R}),l&&Mh({...R}),kh({...R,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),w&&Rh({element:w,padding:s}),qh({arrowWidth:N,arrowHeight:C}),h&&Ih({strategy:"referenceHidden",...R})]}),[A,_]=Zh(P),B=ql(p);$l((()=>{j&&B?.()}),[j,B]);const H=L.arrow?.x,F=L.arrow?.y,z=0!==L.arrow?.centerOffset,[U,G]=St.useState();return $l((()=>{v&&G(window.getComputedStyle(v).zIndex)}),[v]),(0,S.jsx)("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:j?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,S.jsx)(Gh,{scope:n,placedSide:A,onArrowChange:x,arrowX:H,arrowY:F,shouldHideArrow:z,children:(0,S.jsx)(ps.div,{"data-side":A,"data-align":_,...m,ref:y,style:{...m.style,animation:j?void 0:"none"}})})})}));Yh.displayName=Uh;var $h="PopperArrow",Vh={top:"bottom",right:"left",bottom:"top",left:"right"},Xh=St.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=Wh($h,n),a=Vh[o.placedSide];return(0,S.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,S.jsx)(Dh,{...r,ref:t,style:{...r.style,display:"block"}})})}));function Kh(e){return null!==e}Xh.displayName=$h;var qh=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=Zh(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(o.arrow?.x??0)+i/2,h=(o.arrow?.y??0)+s/2;let f="",p="";return"bottom"===l?(f=a?d:`${u}px`,p=-s+"px"):"top"===l?(f=a?d:`${u}px`,p=`${r.floating.height+s}px`):"right"===l?(f=-s+"px",p=a?d:`${h}px`):"left"===l&&(f=`${r.floating.width+s}px`,p=a?d:`${h}px`),{data:{x:f,y:p}}}});function Zh(e){const[t,n="center"]=e.split("-");return[t,n]}var Jh=Hh,Qh=zh,ef=Yh,tf=Xh,nf=St.forwardRef(((e,t)=>(0,S.jsx)(ps.span,{...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}})));nf.displayName="VisuallyHidden";var rf=nf,of=[" ","Enter","ArrowUp","ArrowDown"],af=[" ","Enter"],sf="Select",[lf,cf,df]=function(e){const t=e+"CollectionProvider",[n,r]=function(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>St.createContext(e)));return function(n){const r=n?.[e]||t;return St.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=St.createContext(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,s=n?.[e][a]||o,l=St.useMemo((()=>i),Object.values(i));return(0,S.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const s=i?.[e][a]||o,l=St.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},ru(r,...t)]}(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=St.useRef(null),a=St.useRef(new Map).current;return(0,S.jsx)(o,{scope:t,itemMap:a,collectionRef:r,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=St.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=ls(t,a(s,n).collectionRef);return(0,S.jsx)(cs,{ref:o,children:r})}));l.displayName=s;const c=e+"CollectionItemSlot",d="data-radix-collection-item",u=St.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,i=St.useRef(null),s=ls(t,i),l=a(c,n);return St.useEffect((()=>(l.itemMap.set(i,{ref:i,...o}),()=>{l.itemMap.delete(i)}))),(0,S.jsx)(cs,{[d]:"",ref:s,children:r})}));return u.displayName=c,[{Provider:i,Slot:l,ItemSlot:u},function(t){const n=a(e+"CollectionConsumer",t);return St.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}(sf),[uf,hf]=Wl(sf,[df,Ah]),ff=Ah(),[pf,mf]=uf(sf),[gf,vf]=uf(sf),bf=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:c,name:d,autoComplete:u,disabled:h,required:f,form:p}=e,m=ff(t),[g,v]=St.useState(null),[b,y]=St.useState(null),[w,x]=St.useState(!1),E=function(e){const t=St.useContext(ou);return e||t||"ltr"}(c),[N=!1,C]=Zl({prop:r,defaultProp:o,onChange:a}),[T,M]=Zl({prop:i,defaultProp:s,onChange:l}),k=St.useRef(null),I=!g||p||!!g.closest("form"),[R,O]=St.useState(new Set),D=Array.from(R).map((e=>e.props.value)).join(";");return(0,S.jsx)(Jh,{...m,children:(0,S.jsxs)(pf,{required:f,scope:t,trigger:g,onTriggerChange:v,valueNode:b,onValueNodeChange:y,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:Kl(),value:T,onValueChange:M,open:N,onOpenChange:C,dir:E,triggerPointerDownPosRef:k,disabled:h,children:[(0,S.jsx)(lf.Provider,{scope:t,children:(0,S.jsx)(gf,{scope:e.__scopeSelect,onNativeOptionAdd:St.useCallback((e=>{O((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:St.useCallback((e=>{O((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),children:n})}),I?(0,S.jsxs)(op,{"aria-hidden":!0,required:f,tabIndex:-1,name:d,autoComplete:u,value:T,onChange:e=>M(e.target.value),disabled:h,form:p,children:[void 0===T?(0,S.jsx)("option",{value:""}):null,Array.from(R)]},D):null]})})};bf.displayName=sf;var yf="SelectTrigger",wf=St.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=ff(n),i=mf(yf,n),s=i.disabled||r,l=ls(t,i.onTriggerChange),c=cf(n),d=St.useRef("touch"),[u,h,f]=ap((e=>{const t=c().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=ip(t,e,n);void 0!==r&&i.onValueChange(r.value)})),p=e=>{s||(i.onOpenChange(!0),f()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,S.jsx)(Qh,{asChild:!0,...a,children:(0,S.jsx)(ps.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":rp(i.value)?"":void 0,...o,ref:l,onClick:Gl(o.onClick,(e=>{e.currentTarget.focus(),"mouse"!==d.current&&p(e)})),onPointerDown:Gl(o.onPointerDown,(e=>{d.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(p(e),e.preventDefault())})),onKeyDown:Gl(o.onKeyDown,(e=>{const t=""!==u.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),t&&" "===e.key||of.includes(e.key)&&(p(),e.preventDefault())}))})})}));wf.displayName=yf;var xf="SelectValue",Ef=St.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=mf(xf,n),{onValueNodeHasChildrenChange:c}=l,d=void 0!==a,u=ls(t,l.onValueNodeChange);return $l((()=>{c(d)}),[c,d]),(0,S.jsx)(ps.span,{...s,ref:u,style:{pointerEvents:"none"},children:rp(l.value)?(0,S.jsx)(S.Fragment,{children:i}):a})}));Ef.displayName=xf;var Sf=St.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return(0,S.jsx)(ps.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})}));Sf.displayName="SelectIcon";var Nf=e=>(0,S.jsx)(pc,{asChild:!0,...e});Nf.displayName="SelectPortal";var Cf="SelectContent",Tf=St.forwardRef(((e,t)=>{const n=mf(Cf,e.__scopeSelect),[r,o]=St.useState();if($l((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?Tt.createPortal((0,S.jsx)(kf,{scope:e.__scopeSelect,children:(0,S.jsx)(lf.Slot,{scope:e.__scopeSelect,children:(0,S.jsx)("div",{children:e.children})})}),t):null}return(0,S.jsx)(Rf,{...e,ref:t})}));Tf.displayName=Cf;var Mf=10,[kf,If]=uf(Cf),Rf=St.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:d,arrowPadding:u,collisionBoundary:h,collisionPadding:f,sticky:p,hideWhenDetached:m,avoidCollisions:g,...v}=e,b=mf(Cf,n),[y,w]=St.useState(null),[x,E]=St.useState(null),N=ls(t,(e=>w(e))),[C,T]=St.useState(null),[M,k]=St.useState(null),I=cf(n),[R,O]=St.useState(!1),D=St.useRef(!1);St.useEffect((()=>{if(y)return ld(y)}),[y]),bc();const P=St.useCallback((e=>{const[t,...n]=I().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&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==o)return}}),[I,x]),j=St.useCallback((()=>P([C,y])),[P,C,y]);St.useEffect((()=>{R&&j()}),[R,j]);const{onOpenChange:L,triggerPointerDownPosRef:A}=b;St.useEffect((()=>{if(y){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(A.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(A.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():y.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),A.current=null};return null!==A.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[y,L,A]),St.useEffect((()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[L]);const[_,B]=ap((e=>{const t=I().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=ip(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),H=St.useCallback(((e,t,n)=>{const r=!D.current&&!n;(void 0!==b.value&&b.value===t||r)&&(T(e),r&&(D.current=!0))}),[b.value]),F=St.useCallback((()=>y?.focus()),[y]),z=St.useCallback(((e,t,n)=>{const r=!D.current&&!n;(void 0!==b.value&&b.value===t||r)&&k(e)}),[b.value]),U="popper"===r?Df:Of,G=U===Df?{side:s,sideOffset:l,align:c,alignOffset:d,arrowPadding:u,collisionBoundary:h,collisionPadding:f,sticky:p,hideWhenDetached:m,avoidCollisions:g}:{};return(0,S.jsx)(kf,{scope:n,content:y,viewport:x,onViewportChange:E,itemRefCallback:H,selectedItem:C,onItemLeave:F,itemTextRefCallback:z,focusSelectedItem:j,selectedItemText:M,position:r,isPositioned:R,searchRef:_,children:(0,S.jsx)(nd,{as:cs,allowPinchZoom:!0,children:(0,S.jsx)(sc,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Gl(o,(e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()})),children:(0,S.jsx)(tc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:(0,S.jsx)(U,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...v,...G,onPlaced:()=>O(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Gl(v.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||B(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().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((()=>P(t))),e.preventDefault()}}))})})})})})}));Rf.displayName="SelectContentImpl";var Of=St.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=mf(Cf,n),i=If(Cf,n),[s,l]=St.useState(null),[c,d]=St.useState(null),u=ls(t,(e=>d(e))),h=cf(n),f=St.useRef(!1),p=St.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:v,focusSelectedItem:b}=i,y=St.useCallback((()=>{if(a.trigger&&a.valueNode&&s&&c&&m&&g&&v){const e=a.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==a.dir){const r=o.left-t.left,a=n.left-r,i=e.left-a,l=e.width+i,c=Math.max(l,t.width),d=window.innerWidth-Mf,u=nu(a,[Mf,Math.max(Mf,d-c)]);s.style.minWidth=l+"px",s.style.left=u+"px"}else{const r=t.right-o.right,a=window.innerWidth-n.right-r,i=window.innerWidth-e.right-a,l=e.width+i,c=Math.max(l,t.width),d=window.innerWidth-Mf,u=nu(a,[Mf,Math.max(Mf,d-c)]);s.style.minWidth=l+"px",s.style.right=u+"px"}const i=h(),l=window.innerHeight-2*Mf,d=m.scrollHeight,u=window.getComputedStyle(c),p=parseInt(u.borderTopWidth,10),b=parseInt(u.paddingTop,10),y=parseInt(u.borderBottomWidth,10),w=p+b+d+parseInt(u.paddingBottom,10)+y,x=Math.min(5*g.offsetHeight,w),E=window.getComputedStyle(m),S=parseInt(E.paddingTop,10),N=parseInt(E.paddingBottom,10),C=e.top+e.height/2-Mf,T=l-C,M=g.offsetHeight/2,k=p+b+(g.offsetTop+M),I=w-k;if(k<=C){const e=i.length>0&&g===i[i.length-1].ref.current;s.style.bottom="0px";const t=c.clientHeight-m.offsetTop-m.offsetHeight,n=k+Math.max(T,M+(e?N:0)+t+y);s.style.height=n+"px"}else{const e=i.length>0&&g===i[0].ref.current;s.style.top="0px";const t=Math.max(C,p+m.offsetTop+(e?S:0)+M)+I;s.style.height=t+"px",m.scrollTop=k-C+m.offsetTop}s.style.margin=`${Mf}px 0`,s.style.minHeight=x+"px",s.style.maxHeight=l+"px",r?.(),requestAnimationFrame((()=>f.current=!0))}}),[h,a.trigger,a.valueNode,s,c,m,g,v,a.dir,r]);$l((()=>y()),[y]);const[w,x]=St.useState();$l((()=>{c&&x(window.getComputedStyle(c).zIndex)}),[c]);const E=St.useCallback((e=>{e&&!0===p.current&&(y(),b?.(),p.current=!1)}),[y,b]);return(0,S.jsx)(Pf,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:f,onScrollButtonChange:E,children:(0,S.jsx)("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:(0,S.jsx)(ps.div,{...o,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})}));Of.displayName="SelectItemAlignedPosition";var Df=St.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Mf,...a}=e,i=ff(n);return(0,S.jsx)(ef,{...i,...a,ref:t,align:r,collisionPadding:o,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)"}})}));Df.displayName="SelectPopperPosition";var[Pf,jf]=uf(Cf,{}),Lf="SelectViewport",Af=St.forwardRef(((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=If(Lf,n),i=jf(Lf,n),s=ls(t,a.onViewportChange),l=St.useRef(0);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,S.jsx)(lf.Slot,{scope:n,children:(0,S.jsx)(ps.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Gl(o.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(r?.current&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Mf,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop}))})})]})}));Af.displayName=Lf;var _f="SelectGroup",[Bf,Hf]=uf(_f);St.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,o=Kl();return(0,S.jsx)(Bf,{scope:n,id:o,children:(0,S.jsx)(ps.div,{role:"group","aria-labelledby":o,...r,ref:t})})})).displayName=_f;var Ff="SelectLabel",zf=St.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,o=Hf(Ff,n);return(0,S.jsx)(ps.div,{id:o.id,...r,ref:t})}));zf.displayName=Ff;var Uf="SelectItem",[Gf,Wf]=uf(Uf),Yf=St.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=mf(Uf,n),l=If(Uf,n),c=s.value===r,[d,u]=St.useState(a??""),[h,f]=St.useState(!1),p=ls(t,(e=>l.itemRefCallback?.(e,r,o))),m=Kl(),g=St.useRef("touch"),v=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)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(0,S.jsx)(Gf,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:St.useCallback((e=>{u((t=>t||(e?.textContent??"").trim()))}),[]),children:(0,S.jsx)(lf.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:(0,S.jsx)(ps.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:p,onFocus:Gl(i.onFocus,(()=>f(!0))),onBlur:Gl(i.onBlur,(()=>f(!1))),onClick:Gl(i.onClick,(()=>{"mouse"!==g.current&&v()})),onPointerUp:Gl(i.onPointerUp,(()=>{"mouse"===g.current&&v()})),onPointerDown:Gl(i.onPointerDown,(e=>{g.current=e.pointerType})),onPointerMove:Gl(i.onPointerMove,(e=>{g.current=e.pointerType,o?l.onItemLeave?.():"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:Gl(i.onPointerLeave,(e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()})),onKeyDown:Gl(i.onKeyDown,(e=>{""!==l.searchRef?.current&&" "===e.key||(af.includes(e.key)&&v()," "===e.key&&e.preventDefault())}))})})})}));Yf.displayName=Uf;var $f="SelectItemText",Vf=St.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=mf($f,n),s=If($f,n),l=Wf($f,n),c=vf($f,n),[d,u]=St.useState(null),h=ls(t,(e=>u(e)),l.onItemTextChange,(e=>s.itemTextRefCallback?.(e,l.value,l.disabled))),f=d?.textContent,p=St.useMemo((()=>(0,S.jsx)("option",{value:l.value,disabled:l.disabled,children:f},l.value)),[l.disabled,l.value,f]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return $l((()=>(m(p),()=>g(p))),[m,g,p]),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(ps.span,{id:l.textId,...a,ref:h}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Tt.createPortal(a.children,i.valueNode):null]})}));Vf.displayName=$f;var Xf="SelectItemIndicator",Kf=St.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return Wf(Xf,n).isSelected?(0,S.jsx)(ps.span,{"aria-hidden":!0,...r,ref:t}):null}));Kf.displayName=Xf;var qf="SelectScrollUpButton",Zf=St.forwardRef(((e,t)=>{const n=If(qf,e.__scopeSelect),r=jf(qf,e.__scopeSelect),[o,a]=St.useState(!1),i=ls(t,r.onScrollButtonChange);return $l((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?(0,S.jsx)(ep,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}));Zf.displayName=qf;var Jf="SelectScrollDownButton",Qf=St.forwardRef(((e,t)=>{const n=If(Jf,e.__scopeSelect),r=jf(Jf,e.__scopeSelect),[o,a]=St.useState(!1),i=ls(t,r.onScrollButtonChange);return $l((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?(0,S.jsx)(ep,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}));Qf.displayName=Jf;var ep=St.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=If("SelectScrollButton",n),i=St.useRef(null),s=cf(n),l=St.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return St.useEffect((()=>()=>l()),[l]),$l((()=>{const e=s().find((e=>e.ref.current===document.activeElement));e?.ref.current?.scrollIntoView({block:"nearest"})}),[s]),(0,S.jsx)(ps.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Gl(o.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:Gl(o.onPointerMove,(()=>{a.onItemLeave?.(),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:Gl(o.onPointerLeave,(()=>{l()}))})})),tp=St.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return(0,S.jsx)(ps.div,{"aria-hidden":!0,...r,ref:t})}));tp.displayName="SelectSeparator";var np="SelectArrow";function rp(e){return""===e||void 0===e}St.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,o=ff(n),a=mf(np,n),i=If(np,n);return a.open&&"popper"===i.position?(0,S.jsx)(tf,{...o,...r,ref:t}):null})).displayName=np;var op=St.forwardRef(((e,t)=>{const{value:n,...r}=e,o=St.useRef(null),a=ls(t,o),i=function(e){const t=St.useRef({value:e,previous:e});return St.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n);return St.useEffect((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),(0,S.jsx)(nf,{asChild:!0,children:(0,S.jsx)("select",{...r,ref:a,defaultValue:n})})}));function ap(e){const t=ql(e),n=St.useRef(""),r=St.useRef(0),o=St.useCallback((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),a=St.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return St.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,o,a]}function ip(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 a=(i=e,s=Math.max(o,0),i.map(((e,t)=>i[(s+t)%i.length])));var i,s;1===r.length&&(a=a.filter((e=>e!==n)));const l=a.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}op.displayName="BubbleSelect";var sp=bf,lp=wf,cp=Ef,dp=Sf,up=Nf,hp=Tf,fp=Af,pp=zf,mp=Yf,gp=Vf,vp=Kf,bp=Zf,yp=Qf,wp=tp,xp=nl("outline","arrows-sort","IconArrowsSort",[["path",{d:"M3 9l4 -4l4 4m-4 -4v14",key:"svg-0"}],["path",{d:"M21 15l-4 4l-4 -4m4 4v-14",key:"svg-1"}]]),Ep=nl("outline","arrow-up","IconArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]]),Sp=nl("outline","arrow-down","IconArrowDown",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]]),Np=function(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};const Cp=sp,Tp=cp,Mp=St.forwardRef(((e,t)=>{var{className:n,children:r}=e,o=Np(e,["className","children"]);return(0,S.jsxs)(lp,Object.assign({ref:t,className:be("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-white px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n)},o,{children:[r,(0,S.jsx)(dp,{asChild:!0,children:(0,S.jsx)(xp,{className:"w-4 h-4 opacity-50"})})]}))}));Mp.displayName=lp.displayName;const kp=St.forwardRef(((e,t)=>{var{className:n}=e,r=Np(e,["className"]);return(0,S.jsx)(bp,Object.assign({ref:t,className:be("flex cursor-default items-center justify-center py-1",n)},r,{children:(0,S.jsx)(Ep,{})}))}));kp.displayName=bp.displayName;const Ip=St.forwardRef(((e,t)=>{var{className:n}=e,r=Np(e,["className"]);return(0,S.jsx)(yp,Object.assign({ref:t,className:be("flex cursor-default items-center justify-center py-1",n)},r,{children:(0,S.jsx)(Sp,{})}))}));Ip.displayName=yp.displayName;const Rp=St.forwardRef(((e,t)=>{var{className:n,children:r,position:o="popper"}=e,a=Np(e,["className","children","position"]);return(0,S.jsx)(up,{children:(0,S.jsxs)(hp,Object.assign({ref:t,className:be("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-white 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","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},a,{children:[(0,S.jsx)(kp,{}),(0,S.jsx)(fp,{className:be("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,S.jsx)(Ip,{})]}))})}));Rp.displayName=hp.displayName;const Op=St.forwardRef(((e,t)=>{var{className:n}=e,r=Np(e,["className"]);return(0,S.jsx)(pp,Object.assign({ref:t,className:be("px-2 py-1.5 text-sm font-semibold",n)},r))}));Op.displayName=pp.displayName;const Dp=St.forwardRef(((e,t)=>{var{className:n,children:r}=e,o=Np(e,["className","children"]);return(0,S.jsxs)(mp,Object.assign({ref:t,className:be("relative flex w-full select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-neutral-200 cursor-pointer data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},o,{children:[(0,S.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,S.jsx)(vp,{children:(0,S.jsx)(rl,{className:"w-4 h-4"})})}),(0,S.jsx)(gp,{children:r})]}))}));Dp.displayName=mp.displayName;const Pp=St.forwardRef(((e,t)=>{var{className:n}=e,r=Np(e,["className"]);return(0,S.jsx)(wp,Object.assign({ref:t,className:be("-mx-1 my-1 h-px bg-muted",n)},r))}));Pp.displayName=wp.displayName;var jp=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))};const Lp=e=>{const t=Ya(),{onlyIcon:n,className:r}=Object.assign(Object.assign({},{onlyIcon:!1}),e),{addFiles:o}=Ci(),[a,i]=(0,St.useState)([]),[s,l]=(0,St.useState)(!1),{WebcamComponent:c,doCaptureImage:d,doRotateDevice:u,doMirrorDevice:h,userMediaStatus:f,setSelectedDeviceId:p,selectedDeviceId:m,getDevices:g}=Ul({outputImageUriBase64:!0,outputImageData:!1,onCapture:function(e){return jp(this,arguments,void 0,(function*({imageUriBase64:e}){if(!e)return;const t=yield function(e,t){return jp(this,void 0,void 0,(function*(){const n=yield fetch(e),r=yield n.blob();return new File([r],t,{type:"image/png"})}))}(e,`Snapshot_ ${function(e,t,n){const r=Ge(),o=n?.locale??r.locale??ze,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Ve(e,n?.in);if(!mt(s))throw new RangeError("Invalid time value");let l=t.match(vt).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,ut[t])(e,o.formatLong):e})).join("").match(gt).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:xt(e)};if(at[t])return{isToken:!0,value:e};if(t.match(wt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return l.map((r=>{if(!r.isToken)return r.value;const a=r.value;return(!n?.useAdditionalWeekYearTokens&&function(e){return ft.test(e)}(a)||!n?.useAdditionalDayOfYearTokens&&function(e){return ht.test(e)}(a))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),pt.includes(e))throw new RangeError(r)}(a,t,String(e)),(0,at[a[0]])(s,a,o.localize,c)})).join("")}(new Date,"yyMMddHHmmss")}.png`);o([t]),l(!1)}))}});return(0,St.useEffect)((()=>{jp(void 0,void 0,void 0,(function*(){const e=yield g();if(!e)return;const t=e.map(((e,t)=>({value:e.deviceId,label:e.label||`Camera ${t+1}`})));i(t),t.length>0&&p(t[0].value)}))}),[f]),(0,S.jsx)(S.Fragment,{children:(0,S.jsxs)(Vd,{open:s,onOpenChange:l,children:[(0,S.jsx)(Xd,{asChild:!0,children:(0,S.jsx)(wl,{className:be(`${!n&&"justify-start"} rounded-lg text-default-500 hover:text-primary hover:bg-primary/10 md:justify-center`,r),startContent:(0,S.jsx)(sl,{className:"flex-shrink-0 pointer-events-none"}),variant:"link",isIconOnly:n,children:!n&&(0,S.jsx)(fi,{id:"FileLoaderCamera.text"})})}),(0,S.jsxs)(Zd,{children:[(0,S.jsx)(Jd,{children:(0,S.jsx)(eu,{children:(0,S.jsx)(fi,{id:"FileLoaderCamera.cameraModalHeader"})})}),"READY"===f&&(0,S.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[a.length>0&&m&&(0,S.jsxs)(Cp,{value:m,onValueChange:function(e){p(e)},children:[(0,S.jsx)(Mp,{className:"w-full",children:(0,S.jsx)(Tp,{placeholder:t.formatMessage({id:"FileLoaderCamera.dropDownPlaceholder"})})}),(0,S.jsx)(Rp,{children:a.map((e=>(0,S.jsx)(Dp,{value:e.value,children:e.label},e.value)))})]}),(0,S.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,S.jsx)(wl,{onClick:u,isIconOnly:!0,className:"p-2 bg-gray-100 rounded-lg text-slate-900 sm:p-3",icon:"RotateIcon"}),(0,S.jsx)(wl,{onClick:h,isIconOnly:!0,className:"p-2 bg-gray-100 rounded-lg text-slate-900 sm:p-3",icon:"MirrorIcon"})]})]}),"ERROR"===f&&(0,S.jsx)("div",{className:"grid place-items-center w-full h-full",children:"Error"}),(0,S.jsxs)("div",{className:"p-0",children:["LOADING"===f&&(0,S.jsx)("div",{className:"grid place-items-center w-full h-full",children:"Loading..."}),(0,S.jsx)(c,{})]}),(0,S.jsx)(Qd,{className:"flex w-full",children:(0,S.jsx)(wl,{onClick:d,isIconOnly:!0,disabled:"LOADING"===f,className:"flex-1 p-6 text-gray-300 rounded-lg bg-slate-950",icon:"CameraIcon"})})]})]})})},Ap=e=>{const{onlyIcon:t,className:n}=Object.assign(Object.assign({},{onlyIcon:!1}),e),{addFiles:r}=Ci(),o=(0,St.useRef)(null);return(0,S.jsxs)(wl,{className:be(`${!t&&"justify-start"} rounded-lg text-default-500 hover:text-primary hover:bg-primary/10 md:justify-center`,n),onClick:()=>{var e;null===(e=o.current)||void 0===e||e.click()},startContent:(0,S.jsx)(hl,{className:"flex-shrink-0 pointer-events-none"}),isIconOnly:t,variant:"link",children:[!t&&(0,S.jsx)(fi,{id:"FileLoaderFileSystem.text"}),(0,S.jsx)("input",{ref:o,type:"file",className:"hidden",onChange:e=>{if(e.preventDefault(),e.stopPropagation(),e.target.files&&e.target.files.length>0){const t=Array.from(e.target.files);r(t),e.target.value=""}},multiple:!0})]})};var _p={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function Bp(e){var t=function(e){if("number"==typeof e)return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return _p[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}(e);return"".concat(t.value).concat(t.unit)}var Hp=function(){return Hp=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},Hp.apply(this,arguments)},Fp=function(){var e="react-spinners-".concat("ClipLoader","-").concat("clip");if("undefined"==typeof window||!window.document)return e;var t=document.createElement("style");document.head.appendChild(t);var n=t.sheet,r="\n @keyframes ".concat(e," {\n ").concat("0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}","\n }\n ");return n&&n.insertRule(r,0),e}();const zp=function(e){var t=e.loading,n=void 0===t||t,r=e.color,o=void 0===r?"#000000":r,a=e.speedMultiplier,i=void 0===a?1:a,s=e.cssOverride,l=void 0===s?{}:s,c=e.size,d=void 0===c?35:c,u=function(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}(e,["loading","color","speedMultiplier","cssOverride","size"]),h=Hp({background:"transparent !important",width:Bp(d),height:Bp(d),borderRadius:"100%",border:"2px solid",borderTopColor:o,borderBottomColor:"transparent",borderLeftColor:o,borderRightColor:o,display:"inline-block",animation:"".concat(Fp," ").concat(.75/i,"s 0s infinite linear"),animationFillMode:"both"},l);return n?St.createElement("span",Hp({style:h},u)):null};var[Up,Gp]=Wl("Tooltip",[Ah]),Wp=Ah(),Yp="TooltipProvider",$p=700,Vp="tooltip.open",[Xp,Kp]=Up(Yp),qp=e=>{const{__scopeTooltip:t,delayDuration:n=$p,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=St.useState(!0),l=St.useRef(!1),c=St.useRef(0);return St.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),(0,S.jsx)(Xp,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:St.useCallback((()=>{window.clearTimeout(c.current),s(!1)}),[]),onClose:St.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:l,onPointerInTransitChange:St.useCallback((e=>{l.current=e}),[]),disableHoverableContent:o,children:a})};qp.displayName=Yp;var Zp="Tooltip",[Jp,Qp]=Up(Zp),em=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,l=Kp(Zp,e.__scopeTooltip),c=Wp(t),[d,u]=St.useState(null),h=Kl(),f=St.useRef(0),p=i??l.disableHoverableContent,m=s??l.delayDuration,g=St.useRef(!1),[v=!1,b]=Zl({prop:r,defaultProp:o,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(Vp))):l.onClose(),a?.(e)}}),y=St.useMemo((()=>v?g.current?"delayed-open":"instant-open":"closed"),[v]),w=St.useCallback((()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,b(!0)}),[b]),x=St.useCallback((()=>{window.clearTimeout(f.current),f.current=0,b(!1)}),[b]),E=St.useCallback((()=>{window.clearTimeout(f.current),f.current=window.setTimeout((()=>{g.current=!0,b(!0),f.current=0}),m)}),[m,b]);return St.useEffect((()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)}),[]),(0,S.jsx)(Jh,{...c,children:(0,S.jsx)(Jp,{scope:t,contentId:h,open:v,stateAttribute:y,trigger:d,onTriggerChange:u,onTriggerEnter:St.useCallback((()=>{l.isOpenDelayed?E():w()}),[l.isOpenDelayed,E,w]),onTriggerLeave:St.useCallback((()=>{p?x():(window.clearTimeout(f.current),f.current=0)}),[x,p]),onOpen:w,onClose:x,disableHoverableContent:p,children:n})})};em.displayName=Zp;var tm="TooltipTrigger",nm=St.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Qp(tm,n),a=Kp(tm,n),i=Wp(n),s=ls(t,St.useRef(null),o.onTriggerChange),l=St.useRef(!1),c=St.useRef(!1),d=St.useCallback((()=>l.current=!1),[]);return St.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),(0,S.jsx)(Qh,{asChild:!0,...i,children:(0,S.jsx)(ps.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:s,onPointerMove:Gl(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||a.isPointerInTransitRef.current||(o.onTriggerEnter(),c.current=!0))})),onPointerLeave:Gl(e.onPointerLeave,(()=>{o.onTriggerLeave(),c.current=!1})),onPointerDown:Gl(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:Gl(e.onFocus,(()=>{l.current||o.onOpen()})),onBlur:Gl(e.onBlur,o.onClose),onClick:Gl(e.onClick,o.onClose)})})}));nm.displayName=tm;var rm="TooltipPortal",[om,am]=Up(rm,{forceMount:void 0}),im=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=Qp(rm,t);return(0,S.jsx)(om,{scope:t,forceMount:n,children:(0,S.jsx)(mc,{present:n||a.open,children:(0,S.jsx)(pc,{asChild:!0,container:o,children:r})})})};im.displayName=rm;var sm="TooltipContent",lm=St.forwardRef(((e,t)=>{const n=am(sm,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=Qp(sm,e.__scopeTooltip);return(0,S.jsx)(mc,{present:r||i.open,children:i.disableHoverableContent?(0,S.jsx)(hm,{side:o,...a,ref:t}):(0,S.jsx)(cm,{side:o,...a,ref:t})})})),cm=St.forwardRef(((e,t)=>{const n=Qp(sm,e.__scopeTooltip),r=Kp(sm,e.__scopeTooltip),o=St.useRef(null),a=ls(t,o),[i,s]=St.useState(null),{trigger:l,onClose:c}=n,d=o.current,{onPointerInTransitChange:u}=r,h=St.useCallback((()=>{s(null),u(!1)}),[u]),f=St.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);s(a),u(!0)}),[u]);return St.useEffect((()=>()=>h()),[h]),St.useEffect((()=>{if(l&&d){const e=e=>f(e,d),t=e=>f(e,l);return l.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[l,d,f,h]),St.useEffect((()=>{if(i){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e].x,s=t[e].y,l=t[a].x,c=t[a].y;s>r!=c>r&&n<(l-i)*(r-s)/(c-s)+i&&(o=!o)}return o}(n,i);r?h():o&&(h(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,d,i,c,h]),(0,S.jsx)(hm,{...e,ref:a})})),[dm,um]=Up(Zp,{isInside:!1}),hm=St.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,l=Qp(sm,n),c=Wp(n),{onClose:d}=l;return St.useEffect((()=>(document.addEventListener(Vp,d),()=>document.removeEventListener(Vp,d))),[d]),St.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;t?.contains(l.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,d]),(0,S.jsx)(tc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,S.jsxs)(ef,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,S.jsx)(us,{children:r}),(0,S.jsx)(dm,{scope:n,isInside:!0,children:(0,S.jsx)(rf,{id:l.contentId,role:"tooltip",children:o||r})})]})})}));lm.displayName=sm;var fm="TooltipArrow";St.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wp(n);return um(fm,n).isInside?null:(0,S.jsx)(tf,{...o,...r,ref:t})})).displayName=fm;var pm=im,mm=lm;const gm=qp,vm=em,bm=nm,ym=St.forwardRef(((e,t)=>{var{className:n,sideOffset:r=4}=e,o=function(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}(e,["className","sideOffset"]);return(0,S.jsx)(pm,{children:(0,S.jsx)(mm,Object.assign({ref:t,sideOffset:r,className:be("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",n)},o))})}));ym.displayName=mm.displayName;const wm=e=>{const{children:t,isMinimal:n}=Object.assign(Object.assign({},{isMinimal:!1}),e),{addFiles:r,getValidationInfo:o,smStatusIs:a}=Ci(),i=(0,St.useRef)(null),{types:s,maxFileSizeMb:l}=o(),c=e=>{return t=void 0,n=void 0,a=function*(){if(e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&e.dataTransfer.files[0]){const t=Array.from(e.dataTransfer.files);r(t)}},new((o=void 0)||(o=Promise))((function(e,r){function i(e){try{l(a.next(e))}catch(e){r(e)}}function s(e){try{l(a.throw(e))}catch(e){r(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,s)}l((a=a.apply(t,n||[])).next())}));var t,n,o,a},d=e=>{if(e.preventDefault(),e.stopPropagation(),e.target.files&&e.target.files.length>0){const t=Array.from(e.target.files);r(t),e.target.value=""}},u=e=>{e.preventDefault(),e.stopPropagation()},h=()=>{var e;null===(e=i.current)||void 0===e||e.click()};return(0,S.jsxs)(S.Fragment,{children:[!n&&(0,S.jsxs)("div",{className:"flex flex-col p-4 px-4 w-full rounded-3xl border border-gray-400 border-dashed duration-75 cursor-pointer transition-transform-colors-opacity hover:bg-primary/10 hover:text-primary",onClick:h,onDrop:c,onDragEnter:u,onDragLeave:u,onDragOver:u,children:[(0,S.jsx)("input",{type:"file",ref:i,className:"hidden",onChange:d,disabled:a("PROCESSING")}),(0,S.jsxs)("div",{className:"grid gap-5 place-items-center p-3 text-sm text-center",children:[(0,S.jsx)("div",{className:"p-3 rounded-full",children:(0,S.jsx)(il,{size:25})}),(a("IDLE")||a("PROCESSING"))&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("p",{children:(0,S.jsx)(fi,{id:"FileDropArea.text"})}),(0,S.jsx)("p",{className:"text-xs text-gray-400",children:(0,S.jsx)(fi,{id:"FileDropArea.validFilesText",values:{maxFileSizeMb:l,types:s.map((e=>e.toUpperCase())).join(", ")}})})]})]})]}),n&&(0,S.jsx)(gm,{children:(0,S.jsxs)(vm,{children:[(0,S.jsx)(bm,{asChild:!0,children:(0,S.jsxs)("div",{className:"grid flex-1 place-items-center px-4 duration-75 cursor-pointer bg-primary/10 transition-transform-colors-opacity hover:text-primary",onClick:h,onDrop:c,onDragEnter:u,onDragLeave:u,onDragOver:u,children:[(0,S.jsx)("input",{type:"file",ref:i,className:"hidden",onChange:d,disabled:a("PROCESSING")}),(0,S.jsxs)("div",{className:"p-3",children:[a("IDLE")&&(0,S.jsx)(il,{size:20}),a("PROCESSING")&&(0,S.jsx)((()=>(0,S.jsxs)("div",{className:"flex gap-2 items-center text-default-500",children:[(0,S.jsx)(fi,{id:"FileDropArea.processingText"}),(0,S.jsx)(zp,{size:16})]})),{})]})]})}),(0,S.jsx)(ym,{children:(0,S.jsx)("span",{className:"text-xs max-w-20 text-wrap",children:(0,S.jsx)(fi,{id:"FileDropArea.text"})})})]})})]})};var xm="horizontal",Em=["horizontal","vertical"],Sm=St.forwardRef(((e,t)=>{const{decorative:n,orientation:r=xm,...o}=e,a=function(e){return Em.includes(e)}(r)?r:xm,i=n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"};return(0,S.jsx)(ps.div,{"data-orientation":a,...i,...o,ref:t})}));Sm.displayName="Separator";var Nm=Sm;const Cm=St.forwardRef(((e,t)=>{var{className:n,orientation:r="horizontal",decorative:o=!0}=e,a=function(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}(e,["className","orientation","decorative"]);return(0,S.jsx)(Nm,Object.assign({ref:t,decorative:o,orientation:r,className:be("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",n)},a))}));Cm.displayName=Nm.displayName;const Tm=({children:e,disableCamera:t,disableFileSystem:n,className:r})=>(0,S.jsxs)("div",{className:be("flex flex-col max-w-2xl rounded-lg border bg-background",r),children:[(0,S.jsxs)("div",{className:"flex justify-between items-center",children:[(0,S.jsx)(wm,{isMinimal:!0}),(0,S.jsx)(Cm,{orientation:"vertical"}),(0,S.jsx)("div",{className:"mx-2 md:flex-1",children:(0,S.jsx)(Al,{disableCamera:t,disableFileSystem:n,isMinimal:!0})})]}),e&&(0,S.jsx)(Cm,{}),(0,S.jsx)("div",{children:e})]});var Mm=nl("outline","loader-2","IconLoader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]]);const km=({children:e,disableCamera:t,disableFileSystem:n,className:r,disabled:o})=>(0,S.jsxs)("div",{className:"relative",children:[(0,S.jsx)(Ml,{className:be("p-4 w-full",r),children:(0,S.jsxs)(Ol,{className:"space-y-2 w-full",children:[(0,S.jsx)(wm,{}),(0,S.jsx)(Al,{disableCamera:t,disableFileSystem:n}),e]})}),o&&(0,S.jsx)("div",{className:"flex absolute inset-0 justify-center items-center w-full h-full bg-opacity-80 backdrop-blur-sm cursor-default",children:(0,S.jsx)(Mm,{className:"w-8 h-8 animate-spin text-primary"})})]}),Im=({className:e,children:t,disableCamera:n,disableFileSystem:r,size:o="auto"})=>{const{files:a,setFiles:i,smStatusIs:s}=Ci(),l=!!a.length;return(0,S.jsxs)("div",{className:be("grid grid-rows-[auto,1fr] gap-6 p-4 w-full h-full ",e),children:[(0,S.jsxs)("div",{className:be("transition-all duration-300 ease-in-out origin-top",{"opacity-0 scale-y-0 h-0":!(s("IDLE")||s("PROCESSING")),"opacity-100 scale-y-100":s("IDLE")||s("PROCESSING")}),children:[(0,S.jsx)(Tm,{disableCamera:n,disabled:s("PROCESSING"),disableFileSystem:r,className:be({flex:"sm"===o,hidden:"lg"===o,"flex xsh:hidden":"auto"===o,"blur-sm":s("PROCESSING")}),children:t}),(0,S.jsx)(km,{disableCamera:n,disableFileSystem:r,disabled:s("PROCESSING"),className:be({flex:"lg"===o,hidden:"sm"===o,"hidden xsh:flex":"auto"===o}),children:t})]}),(0,S.jsx)("div",{className:be("min-h-0 transition-all duration-300 ease-in-out",{"opacity-0":!l,"opacity-100":l}),children:l&&(0,S.jsxs)(Ll,{children:[(0,S.jsx)(jl,{}),(0,S.jsx)(Pl,{onDragEnd:function(e){const{source:t,destination:n}=e;n&&t.index!==n.index&&i((e=>Pr(e,t.index,n.index).map(((e,t)=>Object.assign(Object.assign({},e),{order:t+1})))))}})]})})]})};return s})()));