diff --git a/assets/index-DJ04P8kP.css b/assets/index-DJ04P8kP.css new file mode 100644 index 0000000..1e8d1cc --- /dev/null +++ b/assets/index-DJ04P8kP.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-12{max-height:3rem}.max-h-full{max-height:100%}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-20{width:5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.max-w-12{max-width:3rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.grow{flex-grow:1}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.content-center{align-content:center}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.place-self-center{place-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.bg-background{background-color:hsl(var(--background))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-center{text-align:center}.text-right{text-align:right}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-tight{letter-spacing:-.025em}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-100{opacity:1}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);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))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);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))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.dark\:border-gray-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:bg-gray-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(3 7 18 / var(--tw-bg-opacity))}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-gray-50:is(.dark *){--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.lg\:px-8{padding-left:2rem;padding-right:2rem}} diff --git a/assets/index-Witpia2U.css b/assets/index-Witpia2U.css deleted file mode 100644 index dd9c711..0000000 --- a/assets/index-Witpia2U.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-12{max-height:3rem}.max-h-full{max-height:100%}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-20{width:5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.max-w-12{max-width:3rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.grow{flex-grow:1}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.content-center{align-content:center}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.place-self-center{place-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.bg-background{background-color:hsl(var(--background))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-center{text-align:center}.text-right{text-align:right}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-tight{letter-spacing:-.025em}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);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))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);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))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.dark\:border-gray-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:bg-gray-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(3 7 18 / var(--tw-bg-opacity))}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-gray-50:is(.dark *){--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.lg\:px-8{padding-left:2rem;padding-right:2rem}} diff --git a/assets/index-DXznYJjM.js b/assets/index-wAlCZQwq.js similarity index 55% rename from assets/index-DXznYJjM.js rename to assets/index-wAlCZQwq.js index 4f2aa18..b891a9c 100644 --- a/assets/index-DXznYJjM.js +++ b/assets/index-wAlCZQwq.js @@ -1,4 +1,4 @@ -function ch(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Ad(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Od={exports:{}},dl={},$d={exports:{}},ee={};/** +function fh(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Ld(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Od={exports:{}},ml={},$d={exports:{}},ee={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function ch(e,t){for(var n=0;n>>1,z=b[L];if(0>>1;Lo(G,$))Xo(we,G)?(b[L]=we,b[X]=$,L=X):(b[L]=G,b[W]=$,L=W);else if(Xo(we,$))b[L]=we,b[X]=$,L=X;else break e}}return _}function o(b,_){var $=b.sortIndex-_.sortIndex;return $!==0?$:b.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],f=1,c=null,p=3,v=!1,y=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(b){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=b)r(u),_.sortIndex=_.expirationTime,t(a,_);else break;_=n(u)}}function S(b){if(w=!1,g(b),!y)if(n(a)!==null)y=!0,U(C);else{var _=n(u);_!==null&&j(S,_.startTime-b)}}function C(b,_){y=!1,w&&(w=!1,m(A),A=-1),v=!0;var $=p;try{for(g(_),c=n(a);c!==null&&(!(c.expirationTime>_)||b&&!Y());){var L=c.callback;if(typeof L=="function"){c.callback=null,p=c.priorityLevel;var z=L(c.expirationTime<=_);_=e.unstable_now(),typeof z=="function"?c.callback=z:c===n(a)&&r(a),g(_)}else r(a);c=n(a)}if(c!==null)var J=!0;else{var W=n(u);W!==null&&j(S,W.startTime-_),J=!1}return J}finally{c=null,p=$,v=!1}}var T=!1,N=null,A=-1,V=5,D=-1;function Y(){return!(e.unstable_now()-Db||125L?(b.sortIndex=$,t(u,b),n(a)===null&&b===n(u)&&(w?(m(A),A=-1):w=!0,j(S,$-L))):(b.sortIndex=z,t(a,b),y||v||(y=!0,U(C))),b},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(b){var _=p;return function(){var $=p;p=_;try{return b.apply(this,arguments)}finally{p=$}}}})(Wd);Vd.exports=Wd;var $h=Vd.exports;/** + */(function(e){function t(b,_){var O=b.length;b.push(_);e:for(;0>>1,z=b[$];if(0>>1;$o(G,O))Xo(we,G)?(b[$]=we,b[X]=O,$=X):(b[$]=G,b[W]=O,$=W);else if(Xo(we,O))b[$]=we,b[X]=O,$=X;else break e}}return _}function o(b,_){var O=b.sortIndex-_.sortIndex;return O!==0?O:b.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],f=1,c=null,p=3,v=!1,y=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(b){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=b)r(u),_.sortIndex=_.expirationTime,t(a,_);else break;_=n(u)}}function S(b){if(w=!1,g(b),!y)if(n(a)!==null)y=!0,U(C);else{var _=n(u);_!==null&&j(S,_.startTime-b)}}function C(b,_){y=!1,w&&(w=!1,h(A),A=-1),v=!0;var O=p;try{for(g(_),c=n(a);c!==null&&(!(c.expirationTime>_)||b&&!Y());){var $=c.callback;if(typeof $=="function"){c.callback=null,p=c.priorityLevel;var z=$(c.expirationTime<=_);_=e.unstable_now(),typeof z=="function"?c.callback=z:c===n(a)&&r(a),g(_)}else r(a);c=n(a)}if(c!==null)var J=!0;else{var W=n(u);W!==null&&j(S,W.startTime-_),J=!1}return J}finally{c=null,p=O,v=!1}}var T=!1,N=null,A=-1,V=5,D=-1;function Y(){return!(e.unstable_now()-Db||125$?(b.sortIndex=O,t(u,b),n(a)===null&&b===n(u)&&(w?(h(A),A=-1):w=!0,j(S,O-$))):(b.sortIndex=z,t(a,b),y||v||(y=!0,U(C))),b},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(b){var _=p;return function(){var O=p;p=_;try{return b.apply(this,arguments)}finally{p=O}}}})(Yd);Wd.exports=Yd;var Mh=Wd.exports;/** * @license React * react-dom.production.min.js * @@ -30,17 +30,42 @@ function ch(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xs=Object.prototype.hasOwnProperty,Mh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,qu={},ec={};function Dh(e){return xs.call(ec,e)?!0:xs.call(qu,e)?!1:Mh.test(e)?ec[e]=!0:(qu[e]=!0,!1)}function zh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ih(e,t,n,r){if(t===null||typeof t>"u"||zh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fe(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var _e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_e[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_e[t]=new Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_e[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_e[e]=new Fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_e[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_e[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_e[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_e[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_e[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var $a=/[\-:]([a-z])/g;function La(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($a,La);_e[t]=new Fe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace($a,La);_e[t]=new Fe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($a,La);_e[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_e[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});_e.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_e[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ma(e,t,n,r){var o=_e.hasOwnProperty(t)?_e[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xs=Object.prototype.hasOwnProperty,zh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,qu={},ec={};function Ih(e){return xs.call(ec,e)?!0:xs.call(qu,e)?!1:zh.test(e)?ec[e]=!0:(qu[e]=!0,!1)}function jh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Fh(e,t,n,r){if(t===null||typeof t>"u"||jh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fe(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var _e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_e[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_e[t]=new Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_e[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_e[e]=new Fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_e[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_e[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_e[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_e[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_e[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Oa=/[\-:]([a-z])/g;function $a(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Oa,$a);_e[t]=new Fe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Oa,$a);_e[t]=new Fe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Oa,$a);_e[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_e[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});_e.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_e[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ma(e,t,n,r){var o=_e.hasOwnProperty(t)?_e[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var a=` -`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Fl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?io(e):""}function jh(e){switch(e.tag){case 5:return io(e.type);case 16:return io("Lazy");case 13:return io("Suspense");case 19:return io("SuspenseList");case 0:case 2:case 15:return e=Bl(e.type,!1),e;case 11:return e=Bl(e.type.render,!1),e;case 1:return e=Bl(e.type,!0),e;default:return""}}function ks(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case cr:return"Fragment";case ur:return"Portal";case Ss:return"Profiler";case Da:return"StrictMode";case Es:return"Suspense";case Cs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gd:return(e.displayName||"Context")+".Consumer";case Kd:return(e._context.displayName||"Context")+".Provider";case za:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ia:return t=e.displayName||null,t!==null?t:ks(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return ks(e(t))}catch{}}return null}function Fh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ks(t);case 8:return t===Da?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bh(e){var t=Xd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jo(e){e._valueTracker||(e._valueTracker=Bh(e))}function Zd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ns(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jd(e,t){t=t.checked,t!=null&&Ma(e,"checked",t,!1)}function bs(e,t){Jd(e,t);var n=_n(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ts(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ts(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ts(e,t,n){(t!=="number"||zi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var lo=Array.isArray;function Er(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=qo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var uo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Uh=["Webkit","ms","Moz","O"];Object.keys(uo).forEach(function(e){Uh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uo[t]=uo[e]})});function nf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||uo.hasOwnProperty(e)&&uo[e]?(""+t).trim():t+"px"}function rf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=nf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Hh=pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _s(e,t){if(t){if(Hh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function As(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Os=null;function ja(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $s=null,Cr=null,kr=null;function lc(e){if(e=Uo(e)){if(typeof $s!="function")throw Error(O(280));var t=e.stateNode;t&&(t=gl(t),$s(e.stateNode,e.type,t))}}function of(e){Cr?kr?kr.push(e):kr=[e]:Cr=e}function lf(){if(Cr){var e=Cr,t=kr;if(kr=Cr=null,lc(e),t)for(e=0;e>>=0,e===0?32:31-(eg(e)/tg|0)|0}var ei=64,ti=4194304;function so(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Bi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=so(s):(i&=l,i!==0&&(r=so(i)))}else l=n&~o,l!==0?r=so(l):i!==0&&(r=so(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Fo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function ig(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=fo),hc=" ",gc=!1;function bf(e,t){switch(e){case"keyup":return $g.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dr=!1;function Mg(e,t){switch(e){case"compositionend":return Tf(t);case"keypress":return t.which!==32?null:(gc=!0,hc);case"textInput":return e=t.data,e===hc&&gc?null:e;default:return null}}function Dg(e,t){if(dr)return e==="compositionend"||!Ka&&bf(e,t)?(e=kf(),Ci=Va=xn=null,dr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xc(n)}}function Af(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Af(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Of(){for(var e=window,t=zi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zi(e.document)}return t}function Ga(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Wg(e){var t=Of(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Af(n.ownerDocument.documentElement,n)){if(r!==null&&Ga(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Sc(n,i);var l=Sc(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fr=null,js=null,mo=null,Fs=!1;function Ec(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fs||fr==null||fr!==zi(r)||(r=fr,"selectionStart"in r&&Ga(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),mo&&bo(mo,r)||(mo=r,r=Vi(js,"onSelect"),0hr||(e.current=Ys[hr],Ys[hr]=null,hr--)}function ie(e,t){hr++,Ys[hr]=e.current,e.current=t}var An={},Le=zn(An),We=zn(!1),Gn=An;function _r(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ye(e){return e=e.childContextTypes,e!=null}function Yi(){ae(We),ae(Le)}function Rc(e,t,n){if(Le.current!==An)throw Error(O(168));ie(Le,t),ie(We,n)}function Bf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(O(108,Fh(e)||"Unknown",o));return pe({},n,r)}function Ki(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,Gn=Le.current,ie(Le,e),ie(We,We.current),!0}function _c(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Bf(e,t,Gn),r.__reactInternalMemoizedMergedChildContext=e,ae(We),ae(Le),ie(Le,e)):ae(We),ie(We,n)}var Gt=null,vl=!1,ts=!1;function Uf(e){Gt===null?Gt=[e]:Gt.push(e)}function r0(e){vl=!0,Uf(e)}function In(){if(!ts&&Gt!==null){ts=!0;var e=0,t=re;try{var n=Gt;for(re=1;e>=l,o-=l,Xt=1<<32-Tt(t)+o|n<A?(V=N,N=null):V=N.sibling;var D=p(m,N,g[A],S);if(D===null){N===null&&(N=V);break}e&&N&&D.alternate===null&&t(m,N),d=i(D,d,A),T===null?C=D:T.sibling=D,T=D,N=V}if(A===g.length)return n(m,N),ue&&jn(m,A),C;if(N===null){for(;AA?(V=N,N=null):V=N.sibling;var Y=p(m,N,D.value,S);if(Y===null){N===null&&(N=V);break}e&&N&&Y.alternate===null&&t(m,N),d=i(Y,d,A),T===null?C=Y:T.sibling=Y,T=Y,N=V}if(D.done)return n(m,N),ue&&jn(m,A),C;if(N===null){for(;!D.done;A++,D=g.next())D=c(m,D.value,S),D!==null&&(d=i(D,d,A),T===null?C=D:T.sibling=D,T=D);return ue&&jn(m,A),C}for(N=r(m,N);!D.done;A++,D=g.next())D=v(N,m,A,D.value,S),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?A:D.key),d=i(D,d,A),T===null?C=D:T.sibling=D,T=D);return e&&N.forEach(function(H){return t(m,H)}),ue&&jn(m,A),C}function E(m,d,g,S){if(typeof g=="object"&&g!==null&&g.type===cr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Zo:e:{for(var C=g.key,T=d;T!==null;){if(T.key===C){if(C=g.type,C===cr){if(T.tag===7){n(m,T.sibling),d=o(T,g.props.children),d.return=m,m=d;break e}}else if(T.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===gn&&$c(C)===T.type){n(m,T.sibling),d=o(T,g.props),d.ref=Zr(m,T,g),d.return=m,m=d;break e}n(m,T);break}else t(m,T);T=T.sibling}g.type===cr?(d=Kn(g.props.children,m.mode,S,g.key),d.return=m,m=d):(S=Ai(g.type,g.key,g.props,null,m.mode,S),S.ref=Zr(m,d,g),S.return=m,m=S)}return l(m);case ur:e:{for(T=g.key;d!==null;){if(d.key===T)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(m,d.sibling),d=o(d,g.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=us(g,m.mode,S),d.return=m,m=d}return l(m);case gn:return T=g._init,E(m,d,T(g._payload),S)}if(lo(g))return y(m,d,g,S);if(Yr(g))return w(m,d,g,S);ai(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(m,d.sibling),d=o(d,g),d.return=m,m=d):(n(m,d),d=as(g,m.mode,S),d.return=m,m=d),l(m)):n(m,d)}return E}var Or=Yf(!0),Kf=Yf(!1),Xi=zn(null),Zi=null,yr=null,Ja=null;function qa(){Ja=yr=Zi=null}function eu(e){var t=Xi.current;ae(Xi),e._currentValue=t}function Qs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function br(e,t){Zi=e,Ja=yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ve=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(Ja!==e)if(e={context:e,memoizedValue:t,next:null},yr===null){if(Zi===null)throw Error(O(308));yr=e,Zi.dependencies={lanes:0,firstContext:e}}else yr=yr.next=e;return t}var Hn=null;function tu(e){Hn===null?Hn=[e]:Hn.push(e)}function Gf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,tu(t)):(n.next=o.next,o.next=n),t.interleaved=n,tn(e,r)}function tn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vn=!1;function nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,tn(e,n)}return o=r.interleaved,o===null?(t.next=t,tu(r)):(t.next=o.next,o.next=t),r.interleaved=t,tn(e,n)}function Ni(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ba(e,n)}}function Lc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ji(e,t,n,r){var o=e.updateQueue;vn=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(i!==null){var c=o.baseState;l=0,f=u=a=null,s=i;do{var p=s.lane,v=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,w=s;switch(p=t,v=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){c=y.call(v,c,p);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,p=typeof y=="function"?y.call(v,c,p):y,p==null)break e;c=pe({},c,p);break e;case 2:vn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=v,a=c):f=f.next=v,l|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(f===null&&(a=c),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Zn|=l,e.lanes=l,e.memoizedState=c}}function Mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=rs.transition;rs.transition={};try{e(!1),t()}finally{re=n,rs.transition=r}}function fp(){return vt().memoizedState}function s0(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},pp(e))mp(t,n);else if(n=Gf(e,t,n,r),n!==null){var o=ze();Pt(n,e,r,o),hp(n,t,r)}}function a0(e,t,n){var r=Pn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(pp(e))mp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Rt(s,l)){var a=t.interleaved;a===null?(o.next=o,tu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Gf(e,t,o,r),n!==null&&(o=ze(),Pt(n,e,r,o),hp(n,t,r))}}function pp(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function mp(e,t){ho=el=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ba(e,n)}}var tl={readContext:gt,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},u0={readContext:gt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:zc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ti(4194308,4,sp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ti(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ti(4,2,e,t)},useMemo:function(e,t){var n=Lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=s0.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:Dc,useDebugValue:cu,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=Dc(!1),t=e[0];return e=l0.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,o=Lt();if(ue){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ne===null)throw Error(O(349));Xn&30||qf(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,zc(tp.bind(null,r,i,e),[e]),r.flags|=2048,Lo(9,ep.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Lt(),t=Ne.identifierPrefix;if(ue){var n=Zt,r=Xt;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Oo++,0")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?co(e):""}function Bh(e){switch(e.tag){case 5:return co(e.type);case 16:return co("Lazy");case 13:return co("Suspense");case 19:return co("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function ks(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fr:return"Fragment";case dr:return"Portal";case Ss:return"Profiler";case Da:return"StrictMode";case Es:return"Suspense";case Cs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qd:return(e.displayName||"Context")+".Consumer";case Gd:return(e._context.displayName||"Context")+".Provider";case za:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ia:return t=e.displayName||null,t!==null?t:ks(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return ks(e(t))}catch{}}return null}function Uh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ks(t);case 8:return t===Da?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hh(e){var t=Zd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ri(e){e._valueTracker||(e._valueTracker=Hh(e))}function Jd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ns(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qd(e,t){t=t.checked,t!=null&&Ma(e,"checked",t,!1)}function bs(e,t){qd(e,t);var n=_n(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ts(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ts(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ts(e,t,n){(t!=="number"||Fi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fo=Array.isArray;function kr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=oi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function No(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ho={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vh=["Webkit","ms","Moz","O"];Object.keys(ho).forEach(function(e){Vh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ho[t]=ho[e]})});function rf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ho.hasOwnProperty(e)&&ho[e]?(""+t).trim():t+"px"}function of(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=rf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Wh=pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _s(e,t){if(t){if(Wh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function As(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ls=null;function ja(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Os=null,Nr=null,br=null;function lc(e){if(e=Ko(e)){if(typeof Os!="function")throw Error(L(280));var t=e.stateNode;t&&(t=wl(t),Os(e.stateNode,e.type,t))}}function lf(e){Nr?br?br.push(e):br=[e]:Nr=e}function sf(){if(Nr){var e=Nr,t=br;if(br=Nr=null,lc(e),t)for(e=0;e>>=0,e===0?32:31-(ng(e)/rg|0)|0}var ii=64,li=4194304;function po(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=po(s):(i&=l,i!==0&&(r=po(i)))}else l=n&~o,l!==0?r=po(l):i!==0&&(r=po(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Wo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function sg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=vo),hc=" ",gc=!1;function Tf(e,t){switch(e){case"keyup":return Mg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pr=!1;function zg(e,t){switch(e){case"compositionend":return Pf(t);case"keypress":return t.which!==32?null:(gc=!0,hc);case"textInput":return e=t.data,e===hc&&gc?null:e;default:return null}}function Ig(e,t){if(pr)return e==="compositionend"||!Ka&&Tf(e,t)?(e=Nf(),Pi=Va=xn=null,pr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xc(n)}}function Lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Of(){for(var e=window,t=Fi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fi(e.document)}return t}function Ga(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Kg(e){var t=Of(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lf(n.ownerDocument.documentElement,n)){if(r!==null&&Ga(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Sc(n,i);var l=Sc(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,mr=null,js=null,wo=null,Fs=!1;function Ec(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fs||mr==null||mr!==Fi(r)||(r=mr,"selectionStart"in r&&Ga(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wo&&Ao(wo,r)||(wo=r,r=Ki(js,"onSelect"),0vr||(e.current=Ys[vr],Ys[vr]=null,vr--)}function ie(e,t){vr++,Ys[vr]=e.current,e.current=t}var An={},$e=zn(An),We=zn(!1),Gn=An;function Lr(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ye(e){return e=e.childContextTypes,e!=null}function Qi(){ae(We),ae($e)}function Rc(e,t,n){if($e.current!==An)throw Error(L(168));ie($e,t),ie(We,n)}function Uf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(L(108,Uh(e)||"Unknown",o));return pe({},n,r)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,Gn=$e.current,ie($e,e),ie(We,We.current),!0}function _c(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Uf(e,t,Gn),r.__reactInternalMemoizedMergedChildContext=e,ae(We),ae($e),ie($e,e)):ae(We),ie(We,n)}var Gt=null,xl=!1,os=!1;function Hf(e){Gt===null?Gt=[e]:Gt.push(e)}function i0(e){xl=!0,Hf(e)}function In(){if(!os&&Gt!==null){os=!0;var e=0,t=re;try{var n=Gt;for(re=1;e>=l,o-=l,Xt=1<<32-Tt(t)+o|n<A?(V=N,N=null):V=N.sibling;var D=p(h,N,g[A],S);if(D===null){N===null&&(N=V);break}e&&N&&D.alternate===null&&t(h,N),d=i(D,d,A),T===null?C=D:T.sibling=D,T=D,N=V}if(A===g.length)return n(h,N),ue&&jn(h,A),C;if(N===null){for(;AA?(V=N,N=null):V=N.sibling;var Y=p(h,N,D.value,S);if(Y===null){N===null&&(N=V);break}e&&N&&Y.alternate===null&&t(h,N),d=i(Y,d,A),T===null?C=Y:T.sibling=Y,T=Y,N=V}if(D.done)return n(h,N),ue&&jn(h,A),C;if(N===null){for(;!D.done;A++,D=g.next())D=c(h,D.value,S),D!==null&&(d=i(D,d,A),T===null?C=D:T.sibling=D,T=D);return ue&&jn(h,A),C}for(N=r(h,N);!D.done;A++,D=g.next())D=v(N,h,A,D.value,S),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?A:D.key),d=i(D,d,A),T===null?C=D:T.sibling=D,T=D);return e&&N.forEach(function(H){return t(h,H)}),ue&&jn(h,A),C}function E(h,d,g,S){if(typeof g=="object"&&g!==null&&g.type===fr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case ni:e:{for(var C=g.key,T=d;T!==null;){if(T.key===C){if(C=g.type,C===fr){if(T.tag===7){n(h,T.sibling),d=o(T,g.props.children),d.return=h,h=d;break e}}else if(T.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===gn&&Oc(C)===T.type){n(h,T.sibling),d=o(T,g.props),d.ref=qr(h,T,g),d.return=h,h=d;break e}n(h,T);break}else t(h,T);T=T.sibling}g.type===fr?(d=Kn(g.props.children,h.mode,S,g.key),d.return=h,h=d):(S=Di(g.type,g.key,g.props,null,h.mode,S),S.ref=qr(h,d,g),S.return=h,h=S)}return l(h);case dr:e:{for(T=g.key;d!==null;){if(d.key===T)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(h,d.sibling),d=o(d,g.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=fs(g,h.mode,S),d.return=h,h=d}return l(h);case gn:return T=g._init,E(h,d,T(g._payload),S)}if(fo(g))return y(h,d,g,S);if(Gr(g))return w(h,d,g,S);pi(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(h,d.sibling),d=o(d,g),d.return=h,h=d):(n(h,d),d=ds(g,h.mode,S),d.return=h,h=d),l(h)):n(h,d)}return E}var $r=Kf(!0),Gf=Kf(!1),qi=zn(null),el=null,xr=null,Ja=null;function qa(){Ja=xr=el=null}function eu(e){var t=qi.current;ae(qi),e._currentValue=t}function Qs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Pr(e,t){el=e,Ja=xr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ve=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(Ja!==e)if(e={context:e,memoizedValue:t,next:null},xr===null){if(el===null)throw Error(L(308));xr=e,el.dependencies={lanes:0,firstContext:e}}else xr=xr.next=e;return t}var Hn=null;function tu(e){Hn===null?Hn=[e]:Hn.push(e)}function Qf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,tu(t)):(n.next=o.next,o.next=n),t.interleaved=n,tn(e,r)}function tn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vn=!1;function nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,tn(e,n)}return o=r.interleaved,o===null?(t.next=t,tu(r)):(t.next=o.next,o.next=t),r.interleaved=t,tn(e,n)}function _i(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ba(e,n)}}function $c(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tl(e,t,n,r){var o=e.updateQueue;vn=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(i!==null){var c=o.baseState;l=0,f=u=a=null,s=i;do{var p=s.lane,v=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,w=s;switch(p=t,v=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){c=y.call(v,c,p);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,p=typeof y=="function"?y.call(v,c,p):y,p==null)break e;c=pe({},c,p);break e;case 2:vn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=v,a=c):f=f.next=v,l|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(f===null&&(a=c),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Zn|=l,e.lanes=l,e.memoizedState=c}}function Mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ls.transition;ls.transition={};try{e(!1),t()}finally{re=n,ls.transition=r}}function pp(){return vt().memoizedState}function u0(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mp(e))hp(t,n);else if(n=Qf(e,t,n,r),n!==null){var o=ze();Pt(n,e,r,o),gp(n,t,r)}}function c0(e,t,n){var r=Pn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mp(e))hp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Rt(s,l)){var a=t.interleaved;a===null?(o.next=o,tu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Qf(e,t,o,r),n!==null&&(o=ze(),Pt(n,e,r,o),gp(n,t,r))}}function mp(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function hp(e,t){xo=rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ba(e,n)}}var ol={readContext:gt,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},d0={readContext:gt,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:zc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Li(4194308,4,ap.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){return Li(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=u0.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:Dc,useDebugValue:cu,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=Dc(!1),t=e[0];return e=a0.bind(null,e[1]),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,o=$t();if(ue){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Ne===null)throw Error(L(349));Xn&30||ep(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,zc(np.bind(null,r,i,e),[e]),r.flags|=2048,jo(9,tp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=$t(),t=Ne.identifierPrefix;if(ue){var n=Zt,r=Xt;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=zo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Mt]=t,e[Ro]=r,Np(e,t,!1,!1),t.stateNode=e;e:{switch(l=As(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;oMr&&(t.flags|=128,r=!0,Jr(i,!1),t.lanes=4194304)}else{if(!r)if(e=qi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Jr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ue)return Oe(t),null}else 2*ye()-i.renderingStartTime>Mr&&n!==1073741824&&(t.flags|=128,r=!0,Jr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ye(),t.sibling=null,n=de.current,ie(de,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return gu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function v0(e,t){switch(Xa(t),t.tag){case 1:return Ye(t.type)&&Yi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $r(),ae(We),ae(Le),iu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ou(t),null;case 13:if(ae(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(de),null;case 4:return $r(),null;case 10:return eu(t.type._context),null;case 22:case 23:return gu(),null;case 24:return null;default:return null}}var ci=!1,$e=!1,y0=typeof WeakSet=="function"?WeakSet:Set,B=null;function wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function oa(e,t,n){try{n()}catch(r){me(e,t,r)}}var Gc=!1;function w0(e,t){if(Bs=Ui,e=Of(),Ga(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,f=0,c=e,p=null;t:for(;;){for(var v;c!==n||o!==0&&c.nodeType!==3||(s=l+o),c!==i||r!==0&&c.nodeType!==3||(a=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(v=c.firstChild)!==null;)p=c,c=v;for(;;){if(c===e)break t;if(p===n&&++u===o&&(s=l),p===i&&++f===r&&(a=l),(v=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=v}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Us={focusedElem:e,selectionRange:n},Ui=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,E=y.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:kt(t.type,w),E);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(S){me(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return y=Gc,Gc=!1,y}function go(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&oa(t,n,i)}o=o.next}while(o!==r)}}function xl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ia(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Pp(e){var t=e.alternate;t!==null&&(e.alternate=null,Pp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[Ro],delete t[Ws],delete t[t0],delete t[n0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rp(e){return e.tag===5||e.tag===3||e.tag===4}function Qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function la(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Wi));else if(r!==4&&(e=e.child,e!==null))for(la(e,t,n),e=e.sibling;e!==null;)la(e,t,n),e=e.sibling}function sa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sa(e,t,n),e=e.sibling;e!==null;)sa(e,t,n),e=e.sibling}var Pe=null,Nt=!1;function pn(e,t,n){for(n=n.child;n!==null;)_p(e,t,n),n=n.sibling}function _p(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(fl,n)}catch{}switch(n.tag){case 5:$e||wr(n,t);case 6:var r=Pe,o=Nt;Pe=null,pn(e,t,n),Pe=r,Nt=o,Pe!==null&&(Nt?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(Nt?(e=Pe,n=n.stateNode,e.nodeType===8?es(e.parentNode,n):e.nodeType===1&&es(e,n),ko(e)):es(Pe,n.stateNode));break;case 4:r=Pe,o=Nt,Pe=n.stateNode.containerInfo,Nt=!0,pn(e,t,n),Pe=r,Nt=o;break;case 0:case 11:case 14:case 15:if(!$e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&oa(n,t,l),o=o.next}while(o!==r)}pn(e,t,n);break;case 1:if(!$e&&(wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){me(n,t,s)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?($e=(r=$e)||n.memoizedState!==null,pn(e,t,n),$e=r):pn(e,t,n);break;default:pn(e,t,n)}}function Xc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new y0),t.forEach(function(r){var o=P0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function St(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*S0(r/1960))-r,10e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,ol=0,te&6)throw Error(O(331));var o=te;for(te|=4,B=e.current;B!==null;){var i=B,l=i.child;if(B.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aye()-mu?Yn(e,0):pu|=n),Ke(e,t)}function Ip(e,t){t===0&&(e.mode&1?(t=ti,ti<<=1,!(ti&130023424)&&(ti=4194304)):t=1);var n=ze();e=tn(e,t),e!==null&&(Fo(e,t,n),Ke(e,n))}function T0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ip(e,n)}function P0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),Ip(e,n)}var jp;jp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||We.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,h0(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,ue&&t.flags&1048576&&Hf(t,Qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Pi(e,t),e=t.pendingProps;var o=_r(t,Le.current);br(t,n),o=su(null,t,r,e,o,n);var i=au();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ye(r)?(i=!0,Ki(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nu(t),o.updater=wl,t.stateNode=o,o._reactInternals=t,Zs(t,r,e,n),t=ea(null,t,r,!0,i,n)):(t.tag=0,ue&&i&&Qa(t),De(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Pi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=_0(r),e=kt(r,e),o){case 0:t=qs(null,t,r,e,n);break e;case 1:t=Wc(null,t,r,e,n);break e;case 11:t=Hc(null,t,r,e,n);break e;case 14:t=Vc(null,t,r,kt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),qs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),Wc(e,t,r,o,n);case 3:e:{if(Ep(t),e===null)throw Error(O(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Qf(e,t),Ji(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Lr(Error(O(423)),t),t=Yc(e,t,r,n,o);break e}else if(r!==o){o=Lr(Error(O(424)),t),t=Yc(e,t,r,n,o);break e}else for(et=Nn(t.stateNode.containerInfo.firstChild),tt=t,ue=!0,bt=null,n=Kf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ar(),r===o){t=nn(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return Xf(t),e===null&&Gs(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Hs(r,o)?l=null:i!==null&&Hs(r,i)&&(t.flags|=32),Sp(e,t),De(e,t,l,n),t.child;case 6:return e===null&&Gs(t),null;case 13:return Cp(e,t,n);case 4:return ru(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Or(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),Hc(e,t,r,o,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ie(Xi,r._currentValue),r._currentValue=l,i!==null)if(Rt(i.value,l)){if(i.children===o.children&&!We.current){t=nn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Jt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Qs(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(O(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Qs(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}De(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,br(t,n),o=gt(o),r=r(o),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,o=kt(r,t.pendingProps),o=kt(r.type,o),Vc(e,t,r,o,n);case 15:return wp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),Pi(e,t),t.tag=1,Ye(r)?(e=!0,Ki(t)):e=!1,br(t,n),gp(t,r,o),Zs(t,r,o,n),ea(null,t,r,!0,e,n);case 19:return kp(e,t,n);case 22:return xp(e,t,n)}throw Error(O(156,t.tag))};function Fp(e,t){return pf(e,t)}function R0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,n,r){return new R0(e,t,n,r)}function yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _0(e){if(typeof e=="function")return yu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===za)return 11;if(e===Ia)return 14}return 2}function Rn(e,t){var n=e.alternate;return n===null?(n=mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ai(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")yu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case cr:return Kn(n.children,o,i,t);case Da:l=8,o|=8;break;case Ss:return e=mt(12,n,t,o|2),e.elementType=Ss,e.lanes=i,e;case Es:return e=mt(13,n,t,o),e.elementType=Es,e.lanes=i,e;case Cs:return e=mt(19,n,t,o),e.elementType=Cs,e.lanes=i,e;case Qd:return El(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kd:l=10;break e;case Gd:l=9;break e;case za:l=11;break e;case Ia:l=14;break e;case gn:l=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=mt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Kn(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=mt(22,e,r,t),e.elementType=Qd,e.lanes=n,e.stateNode={isHidden:!1},e}function as(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function us(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function A0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wu(e,t,n,r,o,i,l,s,a){return e=new A0(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nu(i),e}function O0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vp)}catch(e){console.error(e)}}Vp(),Hd.exports=it;var Vo=Hd.exports;const z0=Ad(Vo);var od=Vo;ws.createRoot=od.createRoot,ws.hydrateRoot=od.hydrateRoot;function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>I0(n,t))}function On(...e){return h.useCallback(Wp(...e),e)}const Do=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(F0);if(i){const l=i.props.children,s=o.map(a=>a===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:a);return h.createElement(fa,Ge({},r,{ref:t}),h.isValidElement(l)?h.cloneElement(l,void 0,s):null)}return h.createElement(fa,Ge({},r,{ref:t}),n)});Do.displayName="Slot";const fa=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...B0(r,n.props),ref:t?Wp(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});fa.displayName="SlotClone";const j0=({children:e})=>h.createElement(h.Fragment,null,e);function F0(e){return h.isValidElement(e)&&e.type===j0}function B0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Yp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,ld=U0,H0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ld(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],c=i==null?void 0:i[u];if(f===null)return null;const p=id(f)||id(c);return o[u][p]}),s=n&&Object.entries(n).reduce((u,f)=>{let[c,p]=f;return p===void 0||(u[c]=p),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:p,...v}=f;return Object.entries(v).every(y=>{let[w,E]=y;return Array.isArray(E)?E.includes({...i,...s}[w]):{...i,...s}[w]===E})?[...u,c,p]:u},[]);return ld(e,l,a,n==null?void 0:n.class,n==null?void 0:n.className)};function Kp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts(i)))==null?void 0:l.classGroupId}const sd=/^\[(.+)\]$/;function Y0(e){if(sd.test(e)){const t=sd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function K0(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Q0(Object.entries(e.classGroups),n).forEach(([i,l])=>{pa(l,r,i,t)}),r}function pa(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ad(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(G0(o)){pa(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{pa(l,ad(t,i),n,r)})})}function ad(e,t){let n=e;return t.split(Cu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function G0(e){return e.isThemeGetter}function Q0(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,s])=>[t+l,s])):i);return[n,o]}):e}function X0(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,l){n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}}const Qp="!";function Z0(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(l){const s=[];let a=0,u=0,f;for(let w=0;wu?f-u:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:y}}}function J0(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function q0(e){return{cache:X0(e.cacheSize),splitModifiers:Z0(e),...W0(e)}}const ev=/\s+/;function tv(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(ev).map(l=>{const{modifiers:s,hasImportantModifier:a,baseClassName:u,maybePostfixModifierPosition:f}=n(l);let c=r(f?u.substring(0,f):u),p=!!f;if(!c){if(!f)return{isTailwindClass:!1,originalClassName:l};if(c=r(u),!c)return{isTailwindClass:!1,originalClassName:l};p=!1}const v=J0(s).join(":");return{isTailwindClass:!0,modifierId:a?v+Qp:v,classGroupId:c,originalClassName:l,hasPostfixModifier:p}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:s,classGroupId:a,hasPostfixModifier:u}=l,f=s+a;return i.has(f)?!1:(i.add(f),o(a,u).forEach(c=>i.add(s+c)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function nv(){let e=0,t,n,r="";for(;ec(f),e());return n=q0(u),r=n.cache.get,o=n.cache.set,i=s,s(a)}function s(a){const u=r(a);if(u)return u;const f=tv(a,n);return o(a,f),f}return function(){return i(nv.apply(null,arguments))}}function le(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Zp=/^\[(?:([a-z-]+):)?(.+)\]$/i,ov=/^\d+\/\d+$/,iv=new Set(["px","full","screen"]),lv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sv=/\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$/,av=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Yt(e){return Wn(e)||iv.has(e)||ov.test(e)}function mn(e){return Br(e,"length",yv)}function Wn(e){return!!e&&!Number.isNaN(Number(e))}function pi(e){return Br(e,"number",Wn)}function eo(e){return!!e&&Number.isInteger(Number(e))}function dv(e){return e.endsWith("%")&&Wn(e.slice(0,-1))}function Z(e){return Zp.test(e)}function hn(e){return lv.test(e)}const fv=new Set(["length","size","percentage"]);function pv(e){return Br(e,fv,Jp)}function mv(e){return Br(e,"position",Jp)}const hv=new Set(["image","url"]);function gv(e){return Br(e,hv,xv)}function vv(e){return Br(e,"",wv)}function to(){return!0}function Br(e,t,n){const r=Zp.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function yv(e){return sv.test(e)&&!av.test(e)}function Jp(){return!1}function wv(e){return uv.test(e)}function xv(e){return cv.test(e)}function Sv(){const e=le("colors"),t=le("spacing"),n=le("blur"),r=le("brightness"),o=le("borderColor"),i=le("borderRadius"),l=le("borderSpacing"),s=le("borderWidth"),a=le("contrast"),u=le("grayscale"),f=le("hueRotate"),c=le("invert"),p=le("gap"),v=le("gradientColorStops"),y=le("gradientColorStopPositions"),w=le("inset"),E=le("margin"),m=le("opacity"),d=le("padding"),g=le("saturate"),S=le("scale"),C=le("sepia"),T=le("skew"),N=le("space"),A=le("translate"),V=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",Z,t],H=()=>[Z,t],Q=()=>["",Yt,mn],P=()=>["auto",Wn,Z],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],b=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",Z],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[Wn,pi],z=()=>[Wn,Z];return{cacheSize:500,separator:":",theme:{colors:[to],spacing:[Yt,mn],blur:["none","",hn,Z],brightness:L(),borderColor:[e],borderRadius:["none","","full",hn,Z],borderSpacing:H(),borderWidth:Q(),contrast:L(),grayscale:_(),hueRotate:z(),invert:_(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[dv,mn],inset:Y(),margin:Y(),opacity:L(),padding:H(),saturate:L(),scale:L(),sepia:_(),skew:z(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[hn]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:[...R(),Z]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",eo,Z]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",eo,Z]}],"grid-cols":[{"grid-cols":[to]}],"col-start-end":[{col:["auto",{span:["full",eo,Z]},Z]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[to]}],"row-start-end":[{row:["auto",{span:[eo,Z]},Z]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...b()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...b(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...b(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[d]}],px:[{px:[d]}],py:[{py:[d]}],ps:[{ps:[d]}],pe:[{pe:[d]}],pt:[{pt:[d]}],pr:[{pr:[d]}],pb:[{pb:[d]}],pl:[{pl:[d]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,t]}],"min-w":[{"min-w":[Z,t,"min","max","fit"]}],"max-w":[{"max-w":[Z,t,"none","full","min","max","fit","prose",{screen:[hn]},hn]}],h:[{h:[Z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",hn,mn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pi]}],"font-family":[{font:[to]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",Wn,pi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Yt,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Yt,mn]}],"underline-offset":[{"underline-offset":["auto",Yt,Z]}],"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:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],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",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),mv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gv]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...U(),"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":[m]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[Yt,Z]}],"outline-w":[{outline:[Yt,mn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Yt,mn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",hn,vv]}],"shadow-color":[{shadow:[to]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...j(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":j()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",hn,Z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[c]}],saturate:[{saturate:[g]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[eo,Z]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],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",Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Yt,mn,pi]}],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-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"]}}}const Ev=rv(Sv);function ku(...e){return Ev(V0(e))}const Cv=H0("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Oi=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?Do:"button";return k.jsx(l,{className:ku(Cv({variant:t,size:n,className:e})),ref:i,...o})});Oi.displayName="Button";var{entries:qp,setPrototypeOf:ud,isFrozen:kv,getPrototypeOf:Nv,getOwnPropertyDescriptor:bv}=Object,{freeze:Ie,seal:yt,create:em}=Object,{apply:ma,construct:ha}=typeof Reflect<"u"&&Reflect;Ie||(Ie=function(e){return e});yt||(yt=function(e){return e});ma||(ma=function(e,t,n){return e.apply(t,n)});ha||(ha=function(e,t){return new e(...t)});var mi=ot(Array.prototype.forEach),cd=ot(Array.prototype.pop),no=ot(Array.prototype.push),$i=ot(String.prototype.toLowerCase),cs=ot(String.prototype.toString),dd=ot(String.prototype.match),ro=ot(String.prototype.replace),Tv=ot(String.prototype.indexOf),Pv=ot(String.prototype.trim),Et=ot(Object.prototype.hasOwnProperty),Ze=ot(RegExp.prototype.test),oo=Rv(TypeError);function ot(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:$i;ud&&ud(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){let i=n(o);i!==o&&(kv(t)||(t[r]=i),o=i)}e[o]=!0}return e}function _v(e){for(let t=0;t/gm),Mv=yt(/\${[\w\W]*}/gm),Dv=yt(/^data-[\-\w.\u00B7-\uFFFF]/),zv=yt(/^aria-[\-\w]+$/),tm=yt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Iv=yt(/^(?:\w+script|data):/i),jv=yt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nm=yt(/^html$/i),Fv=yt(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i),gd=Object.freeze({__proto__:null,MUSTACHE_EXPR:$v,ERB_EXPR:Lv,TMPLIT_EXPR:Mv,DATA_ATTR:Dv,ARIA_ATTR:zv,IS_ALLOWED_URI:tm,IS_SCRIPT_OR_DATA:Iv,ATTR_WHITESPACE:jv,DOCTYPE_NAME:nm,CUSTOM_ELEMENT:Fv}),Bv=function(){return typeof window>"u"?null:window},Uv=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function rm(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bv(),t=x=>rm(x);if(t.version="3.0.10",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e,r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:s,Element:a,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:p,trustedTypes:v}=e,y=a.prototype,w=hi(y,"cloneNode"),E=hi(y,"nextSibling"),m=hi(y,"childNodes"),d=hi(y,"parentNode");if(typeof l=="function"){let x=n.createElement("template");x.content&&x.content.ownerDocument&&(n=x.content.ownerDocument)}let g,S="",{implementation:C,createNodeIterator:T,createDocumentFragment:N,getElementsByTagName:A}=n,{importNode:V}=r,D={};t.isSupported=typeof qp=="function"&&typeof d=="function"&&C&&C.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Y,ERB_EXPR:H,TMPLIT_EXPR:Q,DATA_ATTR:P,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:b}=gd,{IS_ALLOWED_URI:_}=gd,$=null,L=q({},[...fd,...ds,...fs,...ps,...pd]),z=null,J=q({},[...md,...ms,...hd,...gi]),W=Object.seal(em(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,X=null,we=!0,Me=!0,wt=!1,Be=!0,st=!1,be=!1,xt=!1,an=!1,he=!1,Qe=!1,un=!1,nr=!0,at=!1,Ml="user-content-",rr=!0,Ft=!1,Xe={},Bt=null,Ut=q({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Vr=null,Qo=q({},["audio","video","img","source","image","track"]),or=null,Wr=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ir="http://www.w3.org/1998/Math/MathML",cn="http://www.w3.org/2000/svg",Ce="http://www.w3.org/1999/xhtml",dn=Ce,lr=!1,K=null,ge=q({},[ir,cn,Ce],cs),oe=null,ut=["application/xhtml+xml","text/html"],ct="text/html",ce=null,fn=null,ih=n.createElement("form"),Du=function(x){return x instanceof RegExp||x instanceof Function},Dl=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(fn&&fn===x)){if((!x||typeof x!="object")&&(x={}),x=Bn(x),oe=ut.indexOf(x.PARSER_MEDIA_TYPE)===-1?ct:x.PARSER_MEDIA_TYPE,ce=oe==="application/xhtml+xml"?cs:$i,$=Et(x,"ALLOWED_TAGS")?q({},x.ALLOWED_TAGS,ce):L,z=Et(x,"ALLOWED_ATTR")?q({},x.ALLOWED_ATTR,ce):J,K=Et(x,"ALLOWED_NAMESPACES")?q({},x.ALLOWED_NAMESPACES,cs):ge,or=Et(x,"ADD_URI_SAFE_ATTR")?q(Bn(Wr),x.ADD_URI_SAFE_ATTR,ce):Wr,Vr=Et(x,"ADD_DATA_URI_TAGS")?q(Bn(Qo),x.ADD_DATA_URI_TAGS,ce):Qo,Bt=Et(x,"FORBID_CONTENTS")?q({},x.FORBID_CONTENTS,ce):Ut,G=Et(x,"FORBID_TAGS")?q({},x.FORBID_TAGS,ce):{},X=Et(x,"FORBID_ATTR")?q({},x.FORBID_ATTR,ce):{},Xe=Et(x,"USE_PROFILES")?x.USE_PROFILES:!1,we=x.ALLOW_ARIA_ATTR!==!1,Me=x.ALLOW_DATA_ATTR!==!1,wt=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,st=x.SAFE_FOR_TEMPLATES||!1,be=x.WHOLE_DOCUMENT||!1,he=x.RETURN_DOM||!1,Qe=x.RETURN_DOM_FRAGMENT||!1,un=x.RETURN_TRUSTED_TYPE||!1,an=x.FORCE_BODY||!1,nr=x.SANITIZE_DOM!==!1,at=x.SANITIZE_NAMED_PROPS||!1,rr=x.KEEP_CONTENT!==!1,Ft=x.IN_PLACE||!1,_=x.ALLOWED_URI_REGEXP||tm,dn=x.NAMESPACE||Ce,W=x.CUSTOM_ELEMENT_HANDLING||{},x.CUSTOM_ELEMENT_HANDLING&&Du(x.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=x.CUSTOM_ELEMENT_HANDLING.tagNameCheck),x.CUSTOM_ELEMENT_HANDLING&&Du(x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),st&&(Me=!1),Qe&&(he=!0),Xe&&($=q({},pd),z=[],Xe.html===!0&&(q($,fd),q(z,md)),Xe.svg===!0&&(q($,ds),q(z,ms),q(z,gi)),Xe.svgFilters===!0&&(q($,fs),q(z,ms),q(z,gi)),Xe.mathMl===!0&&(q($,ps),q(z,hd),q(z,gi))),x.ADD_TAGS&&($===L&&($=Bn($)),q($,x.ADD_TAGS,ce)),x.ADD_ATTR&&(z===J&&(z=Bn(z)),q(z,x.ADD_ATTR,ce)),x.ADD_URI_SAFE_ATTR&&q(or,x.ADD_URI_SAFE_ATTR,ce),x.FORBID_CONTENTS&&(Bt===Ut&&(Bt=Bn(Bt)),q(Bt,x.FORBID_CONTENTS,ce)),rr&&($["#text"]=!0),be&&q($,["html","head","body"]),$.table&&(q($,["tbody"]),delete G.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw oo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw oo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=x.TRUSTED_TYPES_POLICY,S=g.createHTML("")}else g===void 0&&(g=Uv(v,o)),g!==null&&typeof S=="string"&&(S=g.createHTML(""));Ie&&Ie(x),fn=x}},zu=q({},["mi","mo","mn","ms","mtext"]),Iu=q({},["foreignobject","desc","title","annotation-xml"]),lh=q({},["title","style","font","a","script"]),ju=q({},[...ds,...fs,...Av]),Fu=q({},[...ps,...Ov]),sh=function(x){let F=d(x);(!F||!F.tagName)&&(F={namespaceURI:dn,tagName:"template"});let I=$i(x.tagName),ne=$i(F.tagName);return K[x.namespaceURI]?x.namespaceURI===cn?F.namespaceURI===Ce?I==="svg":F.namespaceURI===ir?I==="svg"&&(ne==="annotation-xml"||zu[ne]):!!ju[I]:x.namespaceURI===ir?F.namespaceURI===Ce?I==="math":F.namespaceURI===cn?I==="math"&&Iu[ne]:!!Fu[I]:x.namespaceURI===Ce?F.namespaceURI===cn&&!Iu[ne]||F.namespaceURI===ir&&!zu[ne]?!1:!Fu[I]&&(lh[I]||!ju[I]):!!(oe==="application/xhtml+xml"&&K[x.namespaceURI]):!1},sr=function(x){no(t.removed,{element:x});try{x.parentNode.removeChild(x)}catch{x.remove()}},zl=function(x,F){try{no(t.removed,{attribute:F.getAttributeNode(x),from:F})}catch{no(t.removed,{attribute:null,from:F})}if(F.removeAttribute(x),x==="is"&&!z[x])if(he||Qe)try{sr(F)}catch{}else try{F.setAttribute(x,"")}catch{}},Bu=function(x){let F=null,I=null;if(an)x=""+x;else{let ve=dd(x,/^[\r\n\t ]+/);I=ve&&ve[0]}oe==="application/xhtml+xml"&&dn===Ce&&(x=''+x+"");let ne=g?g.createHTML(x):x;if(dn===Ce)try{F=new p().parseFromString(ne,oe)}catch{}if(!F||!F.documentElement){F=C.createDocument(dn,"template",null);try{F.documentElement.innerHTML=lr?S:ne}catch{}}let Te=F.body||F.documentElement;return x&&I&&Te.insertBefore(n.createTextNode(I),Te.childNodes[0]||null),dn===Ce?A.call(F,be?"html":"body")[0]:be?F.documentElement:Te},Uu=function(x){return T.call(x.ownerDocument||x,x,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION,null)},ah=function(x){return x instanceof c&&(typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||!(x.attributes instanceof f)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function")},Hu=function(x){return typeof s=="function"&&x instanceof s},Ht=function(x,F,I){D[x]&&mi(D[x],ne=>{ne.call(t,F,I,fn)})},Vu=function(x){let F=null;if(Ht("beforeSanitizeElements",x,null),ah(x))return sr(x),!0;let I=ce(x.nodeName);if(Ht("uponSanitizeElement",x,{tagName:I,allowedTags:$}),x.hasChildNodes()&&!Hu(x.firstElementChild)&&Ze(/<[/\w]/g,x.innerHTML)&&Ze(/<[/\w]/g,x.textContent))return sr(x),!0;if(!$[I]||G[I]){if(!G[I]&&Yu(I)&&(W.tagNameCheck instanceof RegExp&&Ze(W.tagNameCheck,I)||W.tagNameCheck instanceof Function&&W.tagNameCheck(I)))return!1;if(rr&&!Bt[I]){let ne=d(x)||x.parentNode,Te=m(x)||x.childNodes;if(Te&&ne){let ve=Te.length;for(let Vt=ve-1;Vt>=0;--Vt)ne.insertBefore(w(Te[Vt],!0),E(x))}}return sr(x),!0}return x instanceof a&&!sh(x)||(I==="noscript"||I==="noembed"||I==="noframes")&&Ze(/<\/no(script|embed|frames)/i,x.innerHTML)?(sr(x),!0):(st&&x.nodeType===3&&(F=x.textContent,mi([Y,H,Q],ne=>{F=ro(F,ne," ")}),x.textContent!==F&&(no(t.removed,{element:x.cloneNode()}),x.textContent=F)),Ht("afterSanitizeElements",x,null),!1)},Wu=function(x,F,I){if(nr&&(F==="id"||F==="name")&&(I in n||I in ih))return!1;if(!(Me&&!X[F]&&Ze(P,F))&&!(we&&Ze(R,F))){if(!z[F]||X[F]){if(!(Yu(x)&&(W.tagNameCheck instanceof RegExp&&Ze(W.tagNameCheck,x)||W.tagNameCheck instanceof Function&&W.tagNameCheck(x))&&(W.attributeNameCheck instanceof RegExp&&Ze(W.attributeNameCheck,F)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(F))||F==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&Ze(W.tagNameCheck,I)||W.tagNameCheck instanceof Function&&W.tagNameCheck(I))))return!1}else if(!or[F]&&!Ze(_,ro(I,j,""))&&!((F==="src"||F==="xlink:href"||F==="href")&&x!=="script"&&Tv(I,"data:")===0&&Vr[x])&&!(wt&&!Ze(U,ro(I,j,"")))&&I)return!1}return!0},Yu=function(x){return x!=="annotation-xml"&&dd(x,b)},Ku=function(x){Ht("beforeSanitizeAttributes",x,null);let{attributes:F}=x;if(!F)return;let I={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z},ne=F.length;for(;ne--;){let Te=F[ne],{name:ve,namespaceURI:Vt,value:Wt}=Te,Ot=ce(ve),Ue=ve==="value"?Wt:Pv(Wt);if(I.attrName=Ot,I.attrValue=Ue,I.keepAttr=!0,I.forceKeepAttr=void 0,Ht("uponSanitizeAttribute",x,I),Ue=I.attrValue,I.forceKeepAttr||(zl(ve,x),!I.keepAttr))continue;if(!Be&&Ze(/\/>/i,Ue)){zl(ve,x);continue}st&&mi([Y,H,Q],Qu=>{Ue=ro(Ue,Qu," ")});let Gu=ce(x.nodeName);if(Wu(Gu,Ot,Ue)){if(at&&(Ot==="id"||Ot==="name")&&(zl(ve,x),Ue=Ml+Ue),g&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!Vt)switch(v.getAttributeType(Gu,Ot)){case"TrustedHTML":{Ue=g.createHTML(Ue);break}case"TrustedScriptURL":{Ue=g.createScriptURL(Ue);break}}try{Vt?x.setAttributeNS(Vt,ve,Ue):x.setAttribute(ve,Ue),cd(t.removed)}catch{}}}Ht("afterSanitizeAttributes",x,null)},uh=function x(F){let I=null,ne=Uu(F);for(Ht("beforeSanitizeShadowDOM",F,null);I=ne.nextNode();)Ht("uponSanitizeShadowNode",I,null),!Vu(I)&&(I.content instanceof i&&x(I.content),Ku(I));Ht("afterSanitizeShadowDOM",F,null)};return t.sanitize=function(x){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,ne=null,Te=null,ve=null;if(lr=!x,lr&&(x=""),typeof x!="string"&&!Hu(x))if(typeof x.toString=="function"){if(x=x.toString(),typeof x!="string")throw oo("dirty is not a string, aborting")}else throw oo("toString is not a function");if(!t.isSupported)return x;if(xt||Dl(F),t.removed=[],typeof x=="string"&&(Ft=!1),Ft){if(x.nodeName){let Ot=ce(x.nodeName);if(!$[Ot]||G[Ot])throw oo("root node is forbidden and cannot be sanitized in-place")}}else if(x instanceof s)I=Bu(""),ne=I.ownerDocument.importNode(x,!0),ne.nodeType===1&&ne.nodeName==="BODY"||ne.nodeName==="HTML"?I=ne:I.appendChild(ne);else{if(!he&&!st&&!be&&x.indexOf("<")===-1)return g&&un?g.createHTML(x):x;if(I=Bu(x),!I)return he?null:un?S:""}I&&an&&sr(I.firstChild);let Vt=Uu(Ft?x:I);for(;Te=Vt.nextNode();)Vu(Te)||(Te.content instanceof i&&uh(Te.content),Ku(Te));if(Ft)return x;if(he){if(Qe)for(ve=N.call(I.ownerDocument);I.firstChild;)ve.appendChild(I.firstChild);else ve=I;return(z.shadowroot||z.shadowrootmode)&&(ve=V.call(r,ve,!0)),ve}let Wt=be?I.outerHTML:I.innerHTML;return be&&$["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&Ze(nm,I.ownerDocument.doctype.name)&&(Wt=" -`+Wt),st&&mi([Y,H,Q],Ot=>{Wt=ro(Wt,Ot," ")}),g&&un?g.createHTML(Wt):Wt},t.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dl(x),xt=!0},t.clearConfig=function(){fn=null,xt=!1},t.isValidAttribute=function(x,F,I){fn||Dl({});let ne=ce(x),Te=ce(F);return Wu(ne,Te,I)},t.addHook=function(x,F){typeof F=="function"&&(D[x]=D[x]||[],no(D[x],F))},t.removeHook=function(x){if(D[x])return cd(D[x])},t.removeHooks=function(x){D[x]&&(D[x]=[])},t.removeAllHooks=function(){D={}},t}var Hv=rm(),Vv=e=>{switch(e){case"success":return Kv;case"info":return Qv;case"warning":return Gv;case"error":return Xv;default:return null}},Wv=Array(12).fill(0),Yv=({visible:e})=>M.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},M.createElement("div",{className:"sonner-spinner"},Wv.map((t,n)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Kv=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),Gv=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.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"})),Qv=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),Xv=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),Zv=()=>{let[e,t]=M.useState(!1);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ga=1,Jv=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=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ga++,i=this.toasts.find(s=>s.id===o),l=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...e,id:o,title:n}),{...s,...e,id:o,dismissible:l,title:n}):s):this.addToast({title:n,...r,dismissible:l,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.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;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(i=>{if(i&&typeof i.ok=="boolean"&&!i.ok){o=!1;let l=typeof t.error=="function"?t.error(`HTTP error! status: ${i.status}`):t.error,s=typeof t.description=="function"?t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:l,description:s})}else if(t.success!==void 0){o=!1;let l=typeof t.success=="function"?t.success(i):t.success,s=typeof t.description=="function"?t.description(i):t.description;this.create({id:n,type:"success",message:l,description:s})}}).catch(i=>{if(t.error!==void 0){o=!1;let l=typeof t.error=="function"?t.error(i):t.error,s=typeof t.description=="function"?t.description(i):t.description;this.create({id:n,type:"error",message:l,description:s})}}).finally(()=>{var i;o&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||ga++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Ct=new Jv,qv=(e,t)=>{let n=(t==null?void 0:t.id)||ga++;return Ct.addToast({title:e,...t,id:n}),n},ey=qv,dt=Object.assign(ey,{success:Ct.success,info:Ct.info,warning:Ct.warning,error:Ct.error,custom:Ct.custom,message:Ct.message,promise:Ct.promise,dismiss:Ct.dismiss,loading:Ct.loading});function ty(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}ty(`: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}: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;background:var(--gray1);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}: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-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] [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%)} -`);function vi(e){return e.label!==void 0&&typeof e.onClick=="function"}var ny=3,ry="32px",oy=4e3,iy=356,ly=14,sy=20,ay=200;function uy(...e){return e.filter(Boolean).join(" ")}var cy=e=>{var t,n,r,o,i,l,s;let{invert:a,toast:u,unstyled:f,interacting:c,setHeights:p,visibleToasts:v,heights:y,index:w,toasts:E,expanded:m,removeToast:d,closeButton:g,style:S,cancelButtonStyle:C,actionButtonStyle:T,className:N="",descriptionClassName:A="",duration:V,position:D,gap:Y,loadingIcon:H,expandByDefault:Q,classNames:P,icons:R,closeButtonAriaLabel:U="Close toast",pauseWhenPageIsHidden:j,cn:b}=e,[_,$]=M.useState(!1),[L,z]=M.useState(!1),[J,W]=M.useState(!1),[G,X]=M.useState(!1),[we,Me]=M.useState(0),[wt,Be]=M.useState(0),st=M.useRef(null),be=M.useRef(null),xt=w===0,an=w+1<=v,he=u.type,Qe=u.dismissible!==!1,un=u.className||"",nr=u.descriptionClassName||"",at=M.useMemo(()=>y.findIndex(K=>K.toastId===u.id)||0,[y,u.id]),Ml=M.useMemo(()=>{var K;return(K=u.closeButton)!=null?K:g},[u.closeButton,g]),rr=M.useMemo(()=>u.duration||V||oy,[u.duration,V]),Ft=M.useRef(0),Xe=M.useRef(0),Bt=M.useRef(0),Ut=M.useRef(null),[Vr,Qo]=D.split("-"),or=M.useMemo(()=>y.reduce((K,ge,oe)=>oe>=at?K:K+ge.height,0),[y,at]),Wr=Zv(),ir=u.invert||a,cn=he==="loading";Xe.current=M.useMemo(()=>at*Y+or,[at,or]),M.useEffect(()=>{$(!0)},[]),M.useLayoutEffect(()=>{if(!_)return;let K=be.current,ge=K.style.height;K.style.height="auto";let oe=K.getBoundingClientRect().height;K.style.height=ge,Be(oe),p(ut=>ut.find(ct=>ct.toastId===u.id)?ut.map(ct=>ct.toastId===u.id?{...ct,height:oe}:ct):[{toastId:u.id,height:oe,position:u.position},...ut])},[_,u.title,u.description,p,u.id]);let Ce=M.useCallback(()=>{z(!0),Me(Xe.current),p(K=>K.filter(ge=>ge.toastId!==u.id)),setTimeout(()=>{d(u)},ay)},[u,d,p,Xe]);M.useEffect(()=>{if(u.promise&&he==="loading"||u.duration===1/0||u.type==="loading")return;let K,ge=rr;return m||c||j&&Wr?(()=>{if(Bt.current{var oe;(oe=u.onAutoClose)==null||oe.call(u,u),Ce()},ge)),()=>clearTimeout(K)},[m,c,Q,u,rr,Ce,u.promise,he,j,Wr]),M.useEffect(()=>{let K=be.current;if(K){let ge=K.getBoundingClientRect().height;return Be(ge),p(oe=>[{toastId:u.id,height:ge,position:u.position},...oe]),()=>p(oe=>oe.filter(ut=>ut.toastId!==u.id))}},[p,u.id]),M.useEffect(()=>{u.delete&&Ce()},[Ce,u.delete]);function dn(){return R!=null&&R.loading?M.createElement("div",{className:"sonner-loader","data-visible":he==="loading"},R.loading):H?M.createElement("div",{className:"sonner-loader","data-visible":he==="loading"},H):M.createElement(Yv,{visible:he==="loading"})}function lr(K){return{__html:Hv.sanitize(K)}}return M.createElement("li",{"aria-live":u.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:be,className:b(N,un,P==null?void 0:P.toast,(t=u==null?void 0:u.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[he],(n=u==null?void 0:u.classNames)==null?void 0:n[he]),"data-sonner-toast":"","data-styled":!(u.jsx||u.unstyled||f),"data-mounted":_,"data-promise":!!u.promise,"data-removed":L,"data-visible":an,"data-y-position":Vr,"data-x-position":Qo,"data-index":w,"data-front":xt,"data-swiping":J,"data-dismissible":Qe,"data-type":he,"data-invert":ir,"data-swipe-out":G,"data-expanded":!!(m||Q&&_),style:{"--index":w,"--toasts-before":w,"--z-index":E.length-w,"--offset":`${L?we:Xe.current}px`,"--initial-height":Q?"auto":`${wt}px`,...S,...u.style},onPointerDown:K=>{cn||!Qe||(st.current=new Date,Me(Xe.current),K.target.setPointerCapture(K.pointerId),K.target.tagName!=="BUTTON"&&(W(!0),Ut.current={x:K.clientX,y:K.clientY}))},onPointerUp:()=>{var K,ge,oe,ut;if(G||!Qe)return;Ut.current=null;let ct=Number(((K=be.current)==null?void 0:K.style.getPropertyValue("--swipe-amount").replace("px",""))||0),ce=new Date().getTime()-((ge=st.current)==null?void 0:ge.getTime()),fn=Math.abs(ct)/ce;if(Math.abs(ct)>=sy||fn>.11){Me(Xe.current),(oe=u.onDismiss)==null||oe.call(u,u),Ce(),X(!0);return}(ut=be.current)==null||ut.style.setProperty("--swipe-amount","0px"),W(!1)},onPointerMove:K=>{var ge;if(!Ut.current||!Qe)return;let oe=K.clientY-Ut.current.y,ut=K.clientX-Ut.current.x,ct=(Vr==="top"?Math.min:Math.max)(0,oe),ce=K.pointerType==="touch"?10:2;Math.abs(ct)>ce?(ge=be.current)==null||ge.style.setProperty("--swipe-amount",`${oe}px`):Math.abs(ut)>ce&&(Ut.current=null)}},Ml&&!u.jsx?M.createElement("button",{"aria-label":U,"data-disabled":cn,"data-close-button":!0,onClick:cn||!Qe?()=>{}:()=>{var K;Ce(),(K=u.onDismiss)==null||K.call(u,u)},className:b(P==null?void 0:P.closeButton,(r=u==null?void 0:u.classNames)==null?void 0:r.closeButton)},M.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"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,u.jsx||M.isValidElement(u.title)?u.jsx||u.title:M.createElement(M.Fragment,null,he||u.icon||u.promise?M.createElement("div",{"data-icon":"",className:b(P==null?void 0:P.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||dn():null,u.type!=="loading"?u.icon||(R==null?void 0:R[he])||Vv(he):null):null,M.createElement("div",{"data-content":"",className:b(P==null?void 0:P.content)},M.createElement("div",{"data-title":"",className:b(P==null?void 0:P.title,(o=u==null?void 0:u.classNames)==null?void 0:o.title),dangerouslySetInnerHTML:lr(u.title)}),u.description?M.createElement("div",{"data-description":"",className:b(A,nr,P==null?void 0:P.description,(i=u==null?void 0:u.classNames)==null?void 0:i.description),dangerouslySetInnerHTML:lr(u.description)}):null),M.isValidElement(u.cancel)?u.cancel:u.cancel&&vi(u.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||C,onClick:K=>{vi(u.cancel)&&Qe&&(Ce(),u.cancel.onClick(K))},className:b(P==null?void 0:P.cancelButton,(l=u==null?void 0:u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,M.isValidElement(u.action)?u.action:u.action&&vi(u.action)?M.createElement("button",{"data-button":"",style:u.actionButtonStyle||T,onClick:K=>{vi(u.action)&&(u.action.onClick(K),!K.defaultPrevented&&Ce())},className:b(P==null?void 0:P.actionButton,(s=u==null?void 0:u.classNames)==null?void 0:s.actionButton)},u.action.label):null))};function vd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var om=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:l,offset:s,theme:a="light",richColors:u,duration:f,style:c,visibleToasts:p=ny,toastOptions:v,dir:y=vd(),gap:w=ly,loadingIcon:E,icons:m,containerAriaLabel:d="Notifications",pauseWhenPageIsHidden:g,cn:S=uy}=e,[C,T]=M.useState([]),N=M.useMemo(()=>Array.from(new Set([n].concat(C.filter(L=>L.position).map(L=>L.position)))),[C,n]),[A,V]=M.useState([]),[D,Y]=M.useState(!1),[H,Q]=M.useState(!1),[P,R]=M.useState(a!=="system"?a:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=M.useRef(null),j=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=M.useRef(null),_=M.useRef(!1),$=M.useCallback(L=>T(z=>z.filter(({id:J})=>J!==L.id)),[]);return M.useEffect(()=>Ct.subscribe(L=>{if(L.dismiss){T(z=>z.map(J=>J.id===L.id?{...J,delete:!0}:J));return}setTimeout(()=>{z0.flushSync(()=>{T(z=>{let J=z.findIndex(W=>W.id===L.id);return J!==-1?[...z.slice(0,J),{...z[J],...L},...z.slice(J+1)]:[L,...z]})})})}),[]),M.useEffect(()=>{if(a!=="system"){R(a);return}a==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?R("dark"):R("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:L})=>{R(L?"dark":"light")})},[a]),M.useEffect(()=>{C.length<=1&&Y(!1)},[C]),M.useEffect(()=>{let L=z=>{var J,W;r.every(G=>z[G]||z.code===G)&&(Y(!0),(J=U.current)==null||J.focus()),z.code==="Escape"&&(document.activeElement===U.current||(W=U.current)!=null&&W.contains(document.activeElement))&&Y(!1)};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[r]),M.useEffect(()=>{if(U.current)return()=>{b.current&&(b.current.focus({preventScroll:!0}),b.current=null,_.current=!1)}},[U.current]),C.length?M.createElement("section",{"aria-label":`${d} ${j}`,tabIndex:-1},N.map((L,z)=>{var J;let[W,G]=L.split("-");return M.createElement("ol",{key:L,dir:y==="auto"?vd():y,tabIndex:-1,ref:U,className:l,"data-sonner-toaster":!0,"data-theme":P,"data-rich-colors":u,"data-y-position":W,"data-x-position":G,style:{"--front-toast-height":`${((J=A[0])==null?void 0:J.height)||0}px`,"--offset":typeof s=="number"?`${s}px`:s||ry,"--width":`${iy}px`,"--gap":`${w}px`,...c},onBlur:X=>{_.current&&!X.currentTarget.contains(X.relatedTarget)&&(_.current=!1,b.current&&(b.current.focus({preventScroll:!0}),b.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||_.current||(_.current=!0,b.current=X.relatedTarget)},onMouseEnter:()=>Y(!0),onMouseMove:()=>Y(!0),onMouseLeave:()=>{H||Y(!1)},onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||Q(!0)},onPointerUp:()=>Q(!1)},C.filter(X=>!X.position&&z===0||X.position===L).map((X,we)=>{var Me,wt;return M.createElement(cy,{key:X.id,icons:m,index:we,toast:X,duration:(Me=v==null?void 0:v.duration)!=null?Me:f,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:t,visibleToasts:p,closeButton:(wt=v==null?void 0:v.closeButton)!=null?wt:i,interacting:H,position:L,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:$,toasts:C.filter(Be=>Be.position==X.position),heights:A.filter(Be=>Be.position==X.position),setHeights:V,expandByDefault:o,gap:w,loadingIcon:E,expanded:D,pauseWhenPageIsHidden:g,cn:S})}))})):null};/*! Bundled license information: +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Js(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var m0=typeof WeakMap=="function"?WeakMap:Map;function yp(e,t,n){n=Jt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ll||(ll=!0,aa=r),Js(e,t)},n}function wp(e,t,n){n=Jt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Js(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Js(e,t),typeof r!="function"&&(Tn===null?Tn=new Set([this]):Tn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Fc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new m0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=P0.bind(null,e,t,n),t.then(e,e))}function Bc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Uc(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Jt(-1,1),t.tag=2,bn(n,t,1))),n.lanes|=1),e)}var h0=ln.ReactCurrentOwner,Ve=!1;function De(e,t,n,r){t.child=e===null?Gf(t,null,n,r):$r(t,e.child,n,r)}function Hc(e,t,n,r,o){n=n.render;var i=t.ref;return Pr(t,o),r=su(e,t,n,r,i,o),n=au(),e!==null&&!Ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,nn(e,t,o)):(ue&&n&&Qa(t),t.flags|=1,De(e,t,r,o),t.child)}function Vc(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!yu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,xp(e,t,i,r,o)):(e=Di(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ao,n(l,r)&&e.ref===t.ref)return nn(e,t,o)}return t.flags|=1,e=Rn(i,r),e.ref=t.ref,e.return=t,t.child=e}function xp(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Ao(i,r)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ve=!0);else return t.lanes=e.lanes,nn(e,t,o)}return qs(e,t,n,r,o)}function Sp(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ie(Er,Je),Je|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ie(Er,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ie(Er,Je),Je|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ie(Er,Je),Je|=r;return De(e,t,o,n),t.child}function Ep(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qs(e,t,n,r,o){var i=Ye(n)?Gn:$e.current;return i=Lr(t,i),Pr(t,o),n=su(e,t,n,r,i,o),r=au(),e!==null&&!Ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,nn(e,t,o)):(ue&&r&&Qa(t),t.flags|=1,De(e,t,n,o),t.child)}function Wc(e,t,n,r,o){if(Ye(n)){var i=!0;Xi(t)}else i=!1;if(Pr(t,o),t.stateNode===null)Oi(e,t),vp(t,n,r),Zs(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=gt(u):(u=Ye(n)?Gn:$e.current,u=Lr(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";c||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&jc(t,l,r,u),vn=!1;var p=t.memoizedState;l.state=p,tl(t,r,l,o),a=t.memoizedState,s!==r||p!==a||We.current||vn?(typeof f=="function"&&(Xs(t,n,f,r),a=t.memoizedState),(s=vn||Ic(t,n,s,r,p,a,u))?(c||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Xf(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:kt(t.type,s),l.props=u,c=t.pendingProps,p=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=gt(a):(a=Ye(n)?Gn:$e.current,a=Lr(t,a));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==c||p!==a)&&jc(t,l,r,a),vn=!1,p=t.memoizedState,l.state=p,tl(t,r,l,o);var y=t.memoizedState;s!==c||p!==y||We.current||vn?(typeof v=="function"&&(Xs(t,n,v,r),y=t.memoizedState),(u=vn||Ic(t,n,u,r,p,y,a)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,y,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,y,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),l.props=r,l.state=y,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ea(e,t,n,r,i,o)}function ea(e,t,n,r,o,i){Ep(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&_c(t,n,!1),nn(e,t,i);r=t.stateNode,h0.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=$r(t,e.child,null,i),t.child=$r(t,null,s,i)):De(e,t,s,i),t.memoizedState=r.state,o&&_c(t,n,!0),t.child}function Cp(e){var t=e.stateNode;t.pendingContext?Rc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Rc(e,t.context,!1),ru(e,t.containerInfo)}function Yc(e,t,n,r,o){return Or(),Za(o),t.flags|=256,De(e,t,n,r),t.child}var ta={dehydrated:null,treeContext:null,retryLane:0};function na(e){return{baseLanes:e,cachePool:null,transitions:null}}function kp(e,t,n){var r=t.pendingProps,o=de.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ie(de,o&1),e===null)return Gs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Nl(l,r,0,null),e=Kn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=na(n),t.memoizedState=ta,e):du(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return g0(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Rn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Rn(s,i):(i=Kn(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?na(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=ta,r}return i=e.child,e=i.sibling,r=Rn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function du(e,t){return t=Nl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function mi(e,t,n,r){return r!==null&&Za(r),$r(t,e.child,null,n),e=du(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function g0(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=us(Error(L(422))),mi(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Nl({mode:"visible",children:r.children},o,0,null),i=Kn(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&$r(t,e.child,null,l),t.child.memoizedState=na(l),t.memoizedState=ta,i);if(!(t.mode&1))return mi(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(L(419)),r=us(i,r,void 0),mi(e,t,l,r)}if(s=(l&e.childLanes)!==0,Ve||s){if(r=Ne,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,tn(e,o),Pt(r,e,o,-1))}return vu(),r=us(Error(L(421))),mi(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=R0.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,et=Nn(o.nextSibling),tt=t,ue=!0,bt=null,e!==null&&(ft[pt++]=Xt,ft[pt++]=Zt,ft[pt++]=Qn,Xt=e.id,Zt=e.overflow,Qn=t),t=du(t,r.children),t.flags|=4096,t)}function Kc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qs(e.return,t,n)}function cs(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Np(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(De(e,t,r.children,n),r=de.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kc(e,n,t);else if(e.tag===19)Kc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ie(de,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&nl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),cs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&nl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}cs(t,!0,n,null,i);break;case"together":cs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function nn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=Rn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Rn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function v0(e,t,n){switch(t.tag){case 3:Cp(t),Or();break;case 5:Zf(t);break;case 1:Ye(t.type)&&Xi(t);break;case 4:ru(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ie(qi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ie(de,de.current&1),t.flags|=128,null):n&t.child.childLanes?kp(e,t,n):(ie(de,de.current&1),e=nn(e,t,n),e!==null?e.sibling:null);ie(de,de.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Np(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ie(de,de.current),r)break;return null;case 22:case 23:return t.lanes=0,Sp(e,t,n)}return nn(e,t,n)}var bp,ra,Tp,Pp;bp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ra=function(){};Tp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Vn(It.current);var i=null;switch(n){case"input":o=Ns(e,o),r=Ns(e,r),i=[];break;case"select":o=pe({},o,{value:void 0}),r=pe({},r,{value:void 0}),i=[];break;case"textarea":o=Ps(e,o),r=Ps(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gi)}_s(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ko.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ko.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&se("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Pp=function(e,t,n,r){n!==r&&(t.flags|=4)};function eo(e,t){if(!ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function y0(e,t,n){var r=t.pendingProps;switch(Xa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Ye(t.type)&&Qi(),Le(t),null;case 3:return r=t.stateNode,Mr(),ae(We),ae($e),iu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(fi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,bt!==null&&(da(bt),bt=null))),ra(e,t),Le(t),null;case 5:ou(t);var o=Vn(Do.current);if(n=t.type,e!==null&&t.stateNode!=null)Tp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return Le(t),null}if(e=Vn(It.current),fi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Mt]=t,r[$o]=i,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Mt]=t,e[$o]=r,bp(e,t,!1,!1),t.stateNode=e;e:{switch(l=As(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;ozr&&(t.flags|=128,r=!0,eo(i,!1),t.lanes=4194304)}else{if(!r)if(e=nl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),eo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ue)return Le(t),null}else 2*ye()-i.renderingStartTime>zr&&n!==1073741824&&(t.flags|=128,r=!0,eo(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ye(),t.sibling=null,n=de.current,ie(de,r?n&1|2:n&1),t):(Le(t),null);case 22:case 23:return gu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function w0(e,t){switch(Xa(t),t.tag){case 1:return Ye(t.type)&&Qi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mr(),ae(We),ae($e),iu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ou(t),null;case 13:if(ae(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(de),null;case 4:return Mr(),null;case 10:return eu(t.type._context),null;case 22:case 23:return gu(),null;case 24:return null;default:return null}}var hi=!1,Oe=!1,x0=typeof WeakSet=="function"?WeakSet:Set,B=null;function Sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function oa(e,t,n){try{n()}catch(r){me(e,t,r)}}var Gc=!1;function S0(e,t){if(Bs=Wi,e=Of(),Ga(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,f=0,c=e,p=null;t:for(;;){for(var v;c!==n||o!==0&&c.nodeType!==3||(s=l+o),c!==i||r!==0&&c.nodeType!==3||(a=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(v=c.firstChild)!==null;)p=c,c=v;for(;;){if(c===e)break t;if(p===n&&++u===o&&(s=l),p===i&&++f===r&&(a=l),(v=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=v}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Us={focusedElem:e,selectionRange:n},Wi=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,E=y.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?w:kt(t.type,w),E);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(S){me(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return y=Gc,Gc=!1,y}function So(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&oa(t,n,i)}o=o.next}while(o!==r)}}function Cl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ia(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rp(e){var t=e.alternate;t!==null&&(e.alternate=null,Rp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[$o],delete t[Ws],delete t[r0],delete t[o0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _p(e){return e.tag===5||e.tag===3||e.tag===4}function Qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_p(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function la(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gi));else if(r!==4&&(e=e.child,e!==null))for(la(e,t,n),e=e.sibling;e!==null;)la(e,t,n),e=e.sibling}function sa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sa(e,t,n),e=e.sibling;e!==null;)sa(e,t,n),e=e.sibling}var Pe=null,Nt=!1;function pn(e,t,n){for(n=n.child;n!==null;)Ap(e,t,n),n=n.sibling}function Ap(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(hl,n)}catch{}switch(n.tag){case 5:Oe||Sr(n,t);case 6:var r=Pe,o=Nt;Pe=null,pn(e,t,n),Pe=r,Nt=o,Pe!==null&&(Nt?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(Nt?(e=Pe,n=n.stateNode,e.nodeType===8?rs(e.parentNode,n):e.nodeType===1&&rs(e,n),Ro(e)):rs(Pe,n.stateNode));break;case 4:r=Pe,o=Nt,Pe=n.stateNode.containerInfo,Nt=!0,pn(e,t,n),Pe=r,Nt=o;break;case 0:case 11:case 14:case 15:if(!Oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&oa(n,t,l),o=o.next}while(o!==r)}pn(e,t,n);break;case 1:if(!Oe&&(Sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){me(n,t,s)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,pn(e,t,n),Oe=r):pn(e,t,n);break;default:pn(e,t,n)}}function Xc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new x0),t.forEach(function(r){var o=_0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function St(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*C0(r/1960))-r,10e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,sl=0,te&6)throw Error(L(331));var o=te;for(te|=4,B=e.current;B!==null;){var i=B,l=i.child;if(B.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aye()-mu?Yn(e,0):pu|=n),Ke(e,t)}function jp(e,t){t===0&&(e.mode&1?(t=li,li<<=1,!(li&130023424)&&(li=4194304)):t=1);var n=ze();e=tn(e,t),e!==null&&(Wo(e,t,n),Ke(e,n))}function R0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jp(e,n)}function _0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),jp(e,n)}var Fp;Fp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||We.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,v0(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,ue&&t.flags&1048576&&Vf(t,Ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oi(e,t),e=t.pendingProps;var o=Lr(t,$e.current);Pr(t,n),o=su(null,t,r,e,o,n);var i=au();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ye(r)?(i=!0,Xi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nu(t),o.updater=El,t.stateNode=o,o._reactInternals=t,Zs(t,r,e,n),t=ea(null,t,r,!0,i,n)):(t.tag=0,ue&&i&&Qa(t),De(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=L0(r),e=kt(r,e),o){case 0:t=qs(null,t,r,e,n);break e;case 1:t=Wc(null,t,r,e,n);break e;case 11:t=Hc(null,t,r,e,n);break e;case 14:t=Vc(null,t,r,kt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),qs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),Wc(e,t,r,o,n);case 3:e:{if(Cp(t),e===null)throw Error(L(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Xf(e,t),tl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Dr(Error(L(423)),t),t=Yc(e,t,r,n,o);break e}else if(r!==o){o=Dr(Error(L(424)),t),t=Yc(e,t,r,n,o);break e}else for(et=Nn(t.stateNode.containerInfo.firstChild),tt=t,ue=!0,bt=null,n=Gf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Or(),r===o){t=nn(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return Zf(t),e===null&&Gs(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Hs(r,o)?l=null:i!==null&&Hs(r,i)&&(t.flags|=32),Ep(e,t),De(e,t,l,n),t.child;case 6:return e===null&&Gs(t),null;case 13:return kp(e,t,n);case 4:return ru(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$r(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),Hc(e,t,r,o,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ie(qi,r._currentValue),r._currentValue=l,i!==null)if(Rt(i.value,l)){if(i.children===o.children&&!We.current){t=nn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Jt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Qs(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(L(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Qs(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}De(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Pr(t,n),o=gt(o),r=r(o),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,o=kt(r,t.pendingProps),o=kt(r.type,o),Vc(e,t,r,o,n);case 15:return xp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),Oi(e,t),t.tag=1,Ye(r)?(e=!0,Xi(t)):e=!1,Pr(t,n),vp(t,r,o),Zs(t,r,o,n),ea(null,t,r,!0,e,n);case 19:return Np(e,t,n);case 22:return Sp(e,t,n)}throw Error(L(156,t.tag))};function Bp(e,t){return mf(e,t)}function A0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,n,r){return new A0(e,t,n,r)}function yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L0(e){if(typeof e=="function")return yu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===za)return 11;if(e===Ia)return 14}return 2}function Rn(e,t){var n=e.alternate;return n===null?(n=mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Di(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")yu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case fr:return Kn(n.children,o,i,t);case Da:l=8,o|=8;break;case Ss:return e=mt(12,n,t,o|2),e.elementType=Ss,e.lanes=i,e;case Es:return e=mt(13,n,t,o),e.elementType=Es,e.lanes=i,e;case Cs:return e=mt(19,n,t,o),e.elementType=Cs,e.lanes=i,e;case Xd:return Nl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gd:l=10;break e;case Qd:l=9;break e;case za:l=11;break e;case Ia:l=14;break e;case gn:l=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=mt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Kn(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function Nl(e,t,n,r){return e=mt(22,e,r,t),e.elementType=Xd,e.lanes=n,e.stateNode={isHidden:!1},e}function ds(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function fs(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function O0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yl(0),this.expirationTimes=Yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wu(e,t,n,r,o,i,l,s,a){return e=new O0(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nu(i),e}function $0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wp)}catch(e){console.error(e)}}Wp(),Vd.exports=it;var Qo=Vd.exports;const j0=Ld(Qo);var od=Qo;ws.createRoot=od.createRoot,ws.hydrateRoot=od.hydrateRoot;function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>F0(n,t))}function Ln(...e){return m.useCallback(Yp(...e),e)}const Bo=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(U0);if(i){const l=i.props.children,s=o.map(a=>a===i?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:a);return m.createElement(fa,Ge({},r,{ref:t}),m.isValidElement(l)?m.cloneElement(l,void 0,s):null)}return m.createElement(fa,Ge({},r,{ref:t}),n)});Bo.displayName="Slot";const fa=m.forwardRef((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{...H0(r,n.props),ref:t?Yp(t,n.ref):n.ref}):m.Children.count(n)>1?m.Children.only(null):null});fa.displayName="SlotClone";const B0=({children:e})=>m.createElement(m.Fragment,null,e);function U0(e){return m.isValidElement(e)&&e.type===B0}function H0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Kp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,ld=V0,W0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ld(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],c=i==null?void 0:i[u];if(f===null)return null;const p=id(f)||id(c);return o[u][p]}),s=n&&Object.entries(n).reduce((u,f)=>{let[c,p]=f;return p===void 0||(u[c]=p),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:p,...v}=f;return Object.entries(v).every(y=>{let[w,E]=y;return Array.isArray(E)?E.includes({...i,...s}[w]):{...i,...s}[w]===E})?[...u,c,p]:u},[]);return ld(e,l,a,n==null?void 0:n.class,n==null?void 0:n.className)};function Gp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts(i)))==null?void 0:l.classGroupId}const sd=/^\[(.+)\]$/;function G0(e){if(sd.test(e)){const t=sd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Q0(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Z0(Object.entries(e.classGroups),n).forEach(([i,l])=>{pa(l,r,i,t)}),r}function pa(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ad(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(X0(o)){pa(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{pa(l,ad(t,i),n,r)})})}function ad(e,t){let n=e;return t.split(Cu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function X0(e){return e.isThemeGetter}function Z0(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,s])=>[t+l,s])):i);return[n,o]}):e}function J0(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,l){n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}}const Xp="!";function q0(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(l){const s=[];let a=0,u=0,f;for(let w=0;wu?f-u:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:y}}}function ev(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function tv(e){return{cache:J0(e.cacheSize),splitModifiers:q0(e),...K0(e)}}const nv=/\s+/;function rv(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(nv).map(l=>{const{modifiers:s,hasImportantModifier:a,baseClassName:u,maybePostfixModifierPosition:f}=n(l);let c=r(f?u.substring(0,f):u),p=!!f;if(!c){if(!f)return{isTailwindClass:!1,originalClassName:l};if(c=r(u),!c)return{isTailwindClass:!1,originalClassName:l};p=!1}const v=ev(s).join(":");return{isTailwindClass:!0,modifierId:a?v+Xp:v,classGroupId:c,originalClassName:l,hasPostfixModifier:p}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:s,classGroupId:a,hasPostfixModifier:u}=l,f=s+a;return i.has(f)?!1:(i.add(f),o(a,u).forEach(c=>i.add(s+c)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function ov(){let e=0,t,n,r="";for(;ec(f),e());return n=tv(u),r=n.cache.get,o=n.cache.set,i=s,s(a)}function s(a){const u=r(a);if(u)return u;const f=rv(a,n);return o(a,f),f}return function(){return i(ov.apply(null,arguments))}}function le(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Jp=/^\[(?:([a-z-]+):)?(.+)\]$/i,lv=/^\d+\/\d+$/,sv=new Set(["px","full","screen"]),av=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uv=/\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$/,cv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,dv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Yt(e){return Wn(e)||sv.has(e)||lv.test(e)}function mn(e){return Hr(e,"length",xv)}function Wn(e){return!!e&&!Number.isNaN(Number(e))}function yi(e){return Hr(e,"number",Wn)}function no(e){return!!e&&Number.isInteger(Number(e))}function pv(e){return e.endsWith("%")&&Wn(e.slice(0,-1))}function Z(e){return Jp.test(e)}function hn(e){return av.test(e)}const mv=new Set(["length","size","percentage"]);function hv(e){return Hr(e,mv,qp)}function gv(e){return Hr(e,"position",qp)}const vv=new Set(["image","url"]);function yv(e){return Hr(e,vv,Ev)}function wv(e){return Hr(e,"",Sv)}function ro(){return!0}function Hr(e,t,n){const r=Jp.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function xv(e){return uv.test(e)&&!cv.test(e)}function qp(){return!1}function Sv(e){return dv.test(e)}function Ev(e){return fv.test(e)}function Cv(){const e=le("colors"),t=le("spacing"),n=le("blur"),r=le("brightness"),o=le("borderColor"),i=le("borderRadius"),l=le("borderSpacing"),s=le("borderWidth"),a=le("contrast"),u=le("grayscale"),f=le("hueRotate"),c=le("invert"),p=le("gap"),v=le("gradientColorStops"),y=le("gradientColorStopPositions"),w=le("inset"),E=le("margin"),h=le("opacity"),d=le("padding"),g=le("saturate"),S=le("scale"),C=le("sepia"),T=le("skew"),N=le("space"),A=le("translate"),V=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",Z,t],H=()=>[Z,t],Q=()=>["",Yt,mn],P=()=>["auto",Wn,Z],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],b=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",Z],O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Wn,yi],z=()=>[Wn,Z];return{cacheSize:500,separator:":",theme:{colors:[ro],spacing:[Yt,mn],blur:["none","",hn,Z],brightness:$(),borderColor:[e],borderRadius:["none","","full",hn,Z],borderSpacing:H(),borderWidth:Q(),contrast:$(),grayscale:_(),hueRotate:z(),invert:_(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[pv,mn],inset:Y(),margin:Y(),opacity:$(),padding:H(),saturate:$(),scale:$(),sepia:_(),skew:z(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[hn]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:[...R(),Z]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",no,Z]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",no,Z]}],"grid-cols":[{"grid-cols":[ro]}],"col-start-end":[{col:["auto",{span:["full",no,Z]},Z]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[ro]}],"row-start-end":[{row:["auto",{span:[no,Z]},Z]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...b()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...b(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...b(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[d]}],px:[{px:[d]}],py:[{py:[d]}],ps:[{ps:[d]}],pe:[{pe:[d]}],pt:[{pt:[d]}],pr:[{pr:[d]}],pb:[{pb:[d]}],pl:[{pl:[d]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,t]}],"min-w":[{"min-w":[Z,t,"min","max","fit"]}],"max-w":[{"max-w":[Z,t,"none","full","min","max","fit","prose",{screen:[hn]},hn]}],h:[{h:[Z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",hn,mn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yi]}],"font-family":[{font:[ro]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",Wn,yi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Yt,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Yt,mn]}],"underline-offset":[{"underline-offset":["auto",Yt,Z]}],"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:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],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",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),gv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",hv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yv]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...U(),"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":[h]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[Yt,Z]}],"outline-w":[{outline:[Yt,mn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[Yt,mn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",hn,wv]}],"shadow-color":[{shadow:[ro]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...j(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":j()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",hn,Z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[c]}],saturate:[{saturate:[g]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[no,Z]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],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",Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Yt,mn,yi]}],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-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"]}}}const kv=iv(Cv);function ku(...e){return kv(Y0(e))}const Nv=W0("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ur=m.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?Bo:"button";return k.jsx(l,{className:ku(Nv({variant:t,size:n,className:e})),ref:i,...o})});ur.displayName="Button";var{entries:em,setPrototypeOf:ud,isFrozen:bv,getPrototypeOf:Tv,getOwnPropertyDescriptor:Pv}=Object,{freeze:Ie,seal:yt,create:tm}=Object,{apply:ma,construct:ha}=typeof Reflect<"u"&&Reflect;Ie||(Ie=function(e){return e});yt||(yt=function(e){return e});ma||(ma=function(e,t,n){return e.apply(t,n)});ha||(ha=function(e,t){return new e(...t)});var wi=ot(Array.prototype.forEach),cd=ot(Array.prototype.pop),oo=ot(Array.prototype.push),zi=ot(String.prototype.toLowerCase),ps=ot(String.prototype.toString),dd=ot(String.prototype.match),io=ot(String.prototype.replace),Rv=ot(String.prototype.indexOf),_v=ot(String.prototype.trim),Et=ot(Object.prototype.hasOwnProperty),Ze=ot(RegExp.prototype.test),lo=Av(TypeError);function ot(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:zi;ud&&ud(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){let i=n(o);i!==o&&(bv(t)||(t[r]=i),o=i)}e[o]=!0}return e}function Lv(e){for(let t=0;t/gm),zv=yt(/\${[\w\W]*}/gm),Iv=yt(/^data-[\-\w.\u00B7-\uFFFF]/),jv=yt(/^aria-[\-\w]+$/),nm=yt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fv=yt(/^(?:\w+script|data):/i),Bv=yt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rm=yt(/^html$/i),Uv=yt(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i),gd=Object.freeze({__proto__:null,MUSTACHE_EXPR:Mv,ERB_EXPR:Dv,TMPLIT_EXPR:zv,DATA_ATTR:Iv,ARIA_ATTR:jv,IS_ALLOWED_URI:nm,IS_SCRIPT_OR_DATA:Fv,ATTR_WHITESPACE:Bv,DOCTYPE_NAME:rm,CUSTOM_ELEMENT:Uv}),Hv=function(){return typeof window>"u"?null:window},Vv=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function om(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hv(),t=x=>om(x);if(t.version="3.0.10",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e,r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:s,Element:a,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:p,trustedTypes:v}=e,y=a.prototype,w=xi(y,"cloneNode"),E=xi(y,"nextSibling"),h=xi(y,"childNodes"),d=xi(y,"parentNode");if(typeof l=="function"){let x=n.createElement("template");x.content&&x.content.ownerDocument&&(n=x.content.ownerDocument)}let g,S="",{implementation:C,createNodeIterator:T,createDocumentFragment:N,getElementsByTagName:A}=n,{importNode:V}=r,D={};t.isSupported=typeof em=="function"&&typeof d=="function"&&C&&C.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Y,ERB_EXPR:H,TMPLIT_EXPR:Q,DATA_ATTR:P,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:b}=gd,{IS_ALLOWED_URI:_}=gd,O=null,$=q({},[...fd,...ms,...hs,...gs,...pd]),z=null,J=q({},[...md,...vs,...hd,...Si]),W=Object.seal(tm(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,X=null,we=!0,Me=!0,wt=!1,Be=!0,st=!1,be=!1,xt=!1,an=!1,he=!1,Qe=!1,un=!1,nr=!0,at=!1,Il="user-content-",rr=!0,Ft=!1,Xe={},Bt=null,Ut=q({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Yr=null,ei=q({},["audio","video","img","source","image","track"]),or=null,Kr=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ir="http://www.w3.org/1998/Math/MathML",cn="http://www.w3.org/2000/svg",Ce="http://www.w3.org/1999/xhtml",dn=Ce,lr=!1,K=null,ge=q({},[ir,cn,Ce],ps),oe=null,ut=["application/xhtml+xml","text/html"],ct="text/html",ce=null,fn=null,sh=n.createElement("form"),Du=function(x){return x instanceof RegExp||x instanceof Function},jl=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(fn&&fn===x)){if((!x||typeof x!="object")&&(x={}),x=Bn(x),oe=ut.indexOf(x.PARSER_MEDIA_TYPE)===-1?ct:x.PARSER_MEDIA_TYPE,ce=oe==="application/xhtml+xml"?ps:zi,O=Et(x,"ALLOWED_TAGS")?q({},x.ALLOWED_TAGS,ce):$,z=Et(x,"ALLOWED_ATTR")?q({},x.ALLOWED_ATTR,ce):J,K=Et(x,"ALLOWED_NAMESPACES")?q({},x.ALLOWED_NAMESPACES,ps):ge,or=Et(x,"ADD_URI_SAFE_ATTR")?q(Bn(Kr),x.ADD_URI_SAFE_ATTR,ce):Kr,Yr=Et(x,"ADD_DATA_URI_TAGS")?q(Bn(ei),x.ADD_DATA_URI_TAGS,ce):ei,Bt=Et(x,"FORBID_CONTENTS")?q({},x.FORBID_CONTENTS,ce):Ut,G=Et(x,"FORBID_TAGS")?q({},x.FORBID_TAGS,ce):{},X=Et(x,"FORBID_ATTR")?q({},x.FORBID_ATTR,ce):{},Xe=Et(x,"USE_PROFILES")?x.USE_PROFILES:!1,we=x.ALLOW_ARIA_ATTR!==!1,Me=x.ALLOW_DATA_ATTR!==!1,wt=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,st=x.SAFE_FOR_TEMPLATES||!1,be=x.WHOLE_DOCUMENT||!1,he=x.RETURN_DOM||!1,Qe=x.RETURN_DOM_FRAGMENT||!1,un=x.RETURN_TRUSTED_TYPE||!1,an=x.FORCE_BODY||!1,nr=x.SANITIZE_DOM!==!1,at=x.SANITIZE_NAMED_PROPS||!1,rr=x.KEEP_CONTENT!==!1,Ft=x.IN_PLACE||!1,_=x.ALLOWED_URI_REGEXP||nm,dn=x.NAMESPACE||Ce,W=x.CUSTOM_ELEMENT_HANDLING||{},x.CUSTOM_ELEMENT_HANDLING&&Du(x.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=x.CUSTOM_ELEMENT_HANDLING.tagNameCheck),x.CUSTOM_ELEMENT_HANDLING&&Du(x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),st&&(Me=!1),Qe&&(he=!0),Xe&&(O=q({},pd),z=[],Xe.html===!0&&(q(O,fd),q(z,md)),Xe.svg===!0&&(q(O,ms),q(z,vs),q(z,Si)),Xe.svgFilters===!0&&(q(O,hs),q(z,vs),q(z,Si)),Xe.mathMl===!0&&(q(O,gs),q(z,hd),q(z,Si))),x.ADD_TAGS&&(O===$&&(O=Bn(O)),q(O,x.ADD_TAGS,ce)),x.ADD_ATTR&&(z===J&&(z=Bn(z)),q(z,x.ADD_ATTR,ce)),x.ADD_URI_SAFE_ATTR&&q(or,x.ADD_URI_SAFE_ATTR,ce),x.FORBID_CONTENTS&&(Bt===Ut&&(Bt=Bn(Bt)),q(Bt,x.FORBID_CONTENTS,ce)),rr&&(O["#text"]=!0),be&&q(O,["html","head","body"]),O.table&&(q(O,["tbody"]),delete G.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw lo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw lo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=x.TRUSTED_TYPES_POLICY,S=g.createHTML("")}else g===void 0&&(g=Vv(v,o)),g!==null&&typeof S=="string"&&(S=g.createHTML(""));Ie&&Ie(x),fn=x}},zu=q({},["mi","mo","mn","ms","mtext"]),Iu=q({},["foreignobject","desc","title","annotation-xml"]),ah=q({},["title","style","font","a","script"]),ju=q({},[...ms,...hs,...Ov]),Fu=q({},[...gs,...$v]),uh=function(x){let F=d(x);(!F||!F.tagName)&&(F={namespaceURI:dn,tagName:"template"});let I=zi(x.tagName),ne=zi(F.tagName);return K[x.namespaceURI]?x.namespaceURI===cn?F.namespaceURI===Ce?I==="svg":F.namespaceURI===ir?I==="svg"&&(ne==="annotation-xml"||zu[ne]):!!ju[I]:x.namespaceURI===ir?F.namespaceURI===Ce?I==="math":F.namespaceURI===cn?I==="math"&&Iu[ne]:!!Fu[I]:x.namespaceURI===Ce?F.namespaceURI===cn&&!Iu[ne]||F.namespaceURI===ir&&!zu[ne]?!1:!Fu[I]&&(ah[I]||!ju[I]):!!(oe==="application/xhtml+xml"&&K[x.namespaceURI]):!1},sr=function(x){oo(t.removed,{element:x});try{x.parentNode.removeChild(x)}catch{x.remove()}},Fl=function(x,F){try{oo(t.removed,{attribute:F.getAttributeNode(x),from:F})}catch{oo(t.removed,{attribute:null,from:F})}if(F.removeAttribute(x),x==="is"&&!z[x])if(he||Qe)try{sr(F)}catch{}else try{F.setAttribute(x,"")}catch{}},Bu=function(x){let F=null,I=null;if(an)x=""+x;else{let ve=dd(x,/^[\r\n\t ]+/);I=ve&&ve[0]}oe==="application/xhtml+xml"&&dn===Ce&&(x=''+x+"");let ne=g?g.createHTML(x):x;if(dn===Ce)try{F=new p().parseFromString(ne,oe)}catch{}if(!F||!F.documentElement){F=C.createDocument(dn,"template",null);try{F.documentElement.innerHTML=lr?S:ne}catch{}}let Te=F.body||F.documentElement;return x&&I&&Te.insertBefore(n.createTextNode(I),Te.childNodes[0]||null),dn===Ce?A.call(F,be?"html":"body")[0]:be?F.documentElement:Te},Uu=function(x){return T.call(x.ownerDocument||x,x,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION,null)},ch=function(x){return x instanceof c&&(typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||!(x.attributes instanceof f)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function")},Hu=function(x){return typeof s=="function"&&x instanceof s},Ht=function(x,F,I){D[x]&&wi(D[x],ne=>{ne.call(t,F,I,fn)})},Vu=function(x){let F=null;if(Ht("beforeSanitizeElements",x,null),ch(x))return sr(x),!0;let I=ce(x.nodeName);if(Ht("uponSanitizeElement",x,{tagName:I,allowedTags:O}),x.hasChildNodes()&&!Hu(x.firstElementChild)&&Ze(/<[/\w]/g,x.innerHTML)&&Ze(/<[/\w]/g,x.textContent))return sr(x),!0;if(!O[I]||G[I]){if(!G[I]&&Yu(I)&&(W.tagNameCheck instanceof RegExp&&Ze(W.tagNameCheck,I)||W.tagNameCheck instanceof Function&&W.tagNameCheck(I)))return!1;if(rr&&!Bt[I]){let ne=d(x)||x.parentNode,Te=h(x)||x.childNodes;if(Te&&ne){let ve=Te.length;for(let Vt=ve-1;Vt>=0;--Vt)ne.insertBefore(w(Te[Vt],!0),E(x))}}return sr(x),!0}return x instanceof a&&!uh(x)||(I==="noscript"||I==="noembed"||I==="noframes")&&Ze(/<\/no(script|embed|frames)/i,x.innerHTML)?(sr(x),!0):(st&&x.nodeType===3&&(F=x.textContent,wi([Y,H,Q],ne=>{F=io(F,ne," ")}),x.textContent!==F&&(oo(t.removed,{element:x.cloneNode()}),x.textContent=F)),Ht("afterSanitizeElements",x,null),!1)},Wu=function(x,F,I){if(nr&&(F==="id"||F==="name")&&(I in n||I in sh))return!1;if(!(Me&&!X[F]&&Ze(P,F))&&!(we&&Ze(R,F))){if(!z[F]||X[F]){if(!(Yu(x)&&(W.tagNameCheck instanceof RegExp&&Ze(W.tagNameCheck,x)||W.tagNameCheck instanceof Function&&W.tagNameCheck(x))&&(W.attributeNameCheck instanceof RegExp&&Ze(W.attributeNameCheck,F)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(F))||F==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&Ze(W.tagNameCheck,I)||W.tagNameCheck instanceof Function&&W.tagNameCheck(I))))return!1}else if(!or[F]&&!Ze(_,io(I,j,""))&&!((F==="src"||F==="xlink:href"||F==="href")&&x!=="script"&&Rv(I,"data:")===0&&Yr[x])&&!(wt&&!Ze(U,io(I,j,"")))&&I)return!1}return!0},Yu=function(x){return x!=="annotation-xml"&&dd(x,b)},Ku=function(x){Ht("beforeSanitizeAttributes",x,null);let{attributes:F}=x;if(!F)return;let I={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z},ne=F.length;for(;ne--;){let Te=F[ne],{name:ve,namespaceURI:Vt,value:Wt}=Te,Lt=ce(ve),Ue=ve==="value"?Wt:_v(Wt);if(I.attrName=Lt,I.attrValue=Ue,I.keepAttr=!0,I.forceKeepAttr=void 0,Ht("uponSanitizeAttribute",x,I),Ue=I.attrValue,I.forceKeepAttr||(Fl(ve,x),!I.keepAttr))continue;if(!Be&&Ze(/\/>/i,Ue)){Fl(ve,x);continue}st&&wi([Y,H,Q],Qu=>{Ue=io(Ue,Qu," ")});let Gu=ce(x.nodeName);if(Wu(Gu,Lt,Ue)){if(at&&(Lt==="id"||Lt==="name")&&(Fl(ve,x),Ue=Il+Ue),g&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!Vt)switch(v.getAttributeType(Gu,Lt)){case"TrustedHTML":{Ue=g.createHTML(Ue);break}case"TrustedScriptURL":{Ue=g.createScriptURL(Ue);break}}try{Vt?x.setAttributeNS(Vt,ve,Ue):x.setAttribute(ve,Ue),cd(t.removed)}catch{}}}Ht("afterSanitizeAttributes",x,null)},dh=function x(F){let I=null,ne=Uu(F);for(Ht("beforeSanitizeShadowDOM",F,null);I=ne.nextNode();)Ht("uponSanitizeShadowNode",I,null),!Vu(I)&&(I.content instanceof i&&x(I.content),Ku(I));Ht("afterSanitizeShadowDOM",F,null)};return t.sanitize=function(x){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,ne=null,Te=null,ve=null;if(lr=!x,lr&&(x=""),typeof x!="string"&&!Hu(x))if(typeof x.toString=="function"){if(x=x.toString(),typeof x!="string")throw lo("dirty is not a string, aborting")}else throw lo("toString is not a function");if(!t.isSupported)return x;if(xt||jl(F),t.removed=[],typeof x=="string"&&(Ft=!1),Ft){if(x.nodeName){let Lt=ce(x.nodeName);if(!O[Lt]||G[Lt])throw lo("root node is forbidden and cannot be sanitized in-place")}}else if(x instanceof s)I=Bu(""),ne=I.ownerDocument.importNode(x,!0),ne.nodeType===1&&ne.nodeName==="BODY"||ne.nodeName==="HTML"?I=ne:I.appendChild(ne);else{if(!he&&!st&&!be&&x.indexOf("<")===-1)return g&&un?g.createHTML(x):x;if(I=Bu(x),!I)return he?null:un?S:""}I&&an&&sr(I.firstChild);let Vt=Uu(Ft?x:I);for(;Te=Vt.nextNode();)Vu(Te)||(Te.content instanceof i&&dh(Te.content),Ku(Te));if(Ft)return x;if(he){if(Qe)for(ve=N.call(I.ownerDocument);I.firstChild;)ve.appendChild(I.firstChild);else ve=I;return(z.shadowroot||z.shadowrootmode)&&(ve=V.call(r,ve,!0)),ve}let Wt=be?I.outerHTML:I.innerHTML;return be&&O["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&Ze(rm,I.ownerDocument.doctype.name)&&(Wt=" +`+Wt),st&&wi([Y,H,Q],Lt=>{Wt=io(Wt,Lt," ")}),g&&un?g.createHTML(Wt):Wt},t.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};jl(x),xt=!0},t.clearConfig=function(){fn=null,xt=!1},t.isValidAttribute=function(x,F,I){fn||jl({});let ne=ce(x),Te=ce(F);return Wu(ne,Te,I)},t.addHook=function(x,F){typeof F=="function"&&(D[x]=D[x]||[],oo(D[x],F))},t.removeHook=function(x){if(D[x])return cd(D[x])},t.removeHooks=function(x){D[x]&&(D[x]=[])},t.removeAllHooks=function(){D={}},t}var Wv=om(),Yv=e=>{switch(e){case"success":return Qv;case"info":return Zv;case"warning":return Xv;case"error":return Jv;default:return null}},Kv=Array(12).fill(0),Gv=({visible:e})=>M.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},M.createElement("div",{className:"sonner-spinner"},Kv.map((t,n)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Qv=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),Xv=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.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"})),Zv=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),Jv=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),qv=()=>{let[e,t]=M.useState(!1);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ga=1,ey=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=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ga++,i=this.toasts.find(s=>s.id===o),l=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...e,id:o,title:n}),{...s,...e,id:o,dismissible:l,title:n}):s):this.addToast({title:n,...r,dismissible:l,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.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;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(i=>{if(i&&typeof i.ok=="boolean"&&!i.ok){o=!1;let l=typeof t.error=="function"?t.error(`HTTP error! status: ${i.status}`):t.error,s=typeof t.description=="function"?t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:l,description:s})}else if(t.success!==void 0){o=!1;let l=typeof t.success=="function"?t.success(i):t.success,s=typeof t.description=="function"?t.description(i):t.description;this.create({id:n,type:"success",message:l,description:s})}}).catch(i=>{if(t.error!==void 0){o=!1;let l=typeof t.error=="function"?t.error(i):t.error,s=typeof t.description=="function"?t.description(i):t.description;this.create({id:n,type:"error",message:l,description:s})}}).finally(()=>{var i;o&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||ga++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Ct=new ey,ty=(e,t)=>{let n=(t==null?void 0:t.id)||ga++;return Ct.addToast({title:e,...t,id:n}),n},ny=ty,dt=Object.assign(ny,{success:Ct.success,info:Ct.info,warning:Ct.warning,error:Ct.error,custom:Ct.custom,message:Ct.message,promise:Ct.promise,dismiss:Ct.dismiss,loading:Ct.loading});function ry(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}ry(`: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}: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;background:var(--gray1);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}: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-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] [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%)} +`);function Ei(e){return e.label!==void 0&&typeof e.onClick=="function"}var oy=3,iy="32px",ly=4e3,sy=356,ay=14,uy=20,cy=200;function dy(...e){return e.filter(Boolean).join(" ")}var fy=e=>{var t,n,r,o,i,l,s;let{invert:a,toast:u,unstyled:f,interacting:c,setHeights:p,visibleToasts:v,heights:y,index:w,toasts:E,expanded:h,removeToast:d,closeButton:g,style:S,cancelButtonStyle:C,actionButtonStyle:T,className:N="",descriptionClassName:A="",duration:V,position:D,gap:Y,loadingIcon:H,expandByDefault:Q,classNames:P,icons:R,closeButtonAriaLabel:U="Close toast",pauseWhenPageIsHidden:j,cn:b}=e,[_,O]=M.useState(!1),[$,z]=M.useState(!1),[J,W]=M.useState(!1),[G,X]=M.useState(!1),[we,Me]=M.useState(0),[wt,Be]=M.useState(0),st=M.useRef(null),be=M.useRef(null),xt=w===0,an=w+1<=v,he=u.type,Qe=u.dismissible!==!1,un=u.className||"",nr=u.descriptionClassName||"",at=M.useMemo(()=>y.findIndex(K=>K.toastId===u.id)||0,[y,u.id]),Il=M.useMemo(()=>{var K;return(K=u.closeButton)!=null?K:g},[u.closeButton,g]),rr=M.useMemo(()=>u.duration||V||ly,[u.duration,V]),Ft=M.useRef(0),Xe=M.useRef(0),Bt=M.useRef(0),Ut=M.useRef(null),[Yr,ei]=D.split("-"),or=M.useMemo(()=>y.reduce((K,ge,oe)=>oe>=at?K:K+ge.height,0),[y,at]),Kr=qv(),ir=u.invert||a,cn=he==="loading";Xe.current=M.useMemo(()=>at*Y+or,[at,or]),M.useEffect(()=>{O(!0)},[]),M.useLayoutEffect(()=>{if(!_)return;let K=be.current,ge=K.style.height;K.style.height="auto";let oe=K.getBoundingClientRect().height;K.style.height=ge,Be(oe),p(ut=>ut.find(ct=>ct.toastId===u.id)?ut.map(ct=>ct.toastId===u.id?{...ct,height:oe}:ct):[{toastId:u.id,height:oe,position:u.position},...ut])},[_,u.title,u.description,p,u.id]);let Ce=M.useCallback(()=>{z(!0),Me(Xe.current),p(K=>K.filter(ge=>ge.toastId!==u.id)),setTimeout(()=>{d(u)},cy)},[u,d,p,Xe]);M.useEffect(()=>{if(u.promise&&he==="loading"||u.duration===1/0||u.type==="loading")return;let K,ge=rr;return h||c||j&&Kr?(()=>{if(Bt.current{var oe;(oe=u.onAutoClose)==null||oe.call(u,u),Ce()},ge)),()=>clearTimeout(K)},[h,c,Q,u,rr,Ce,u.promise,he,j,Kr]),M.useEffect(()=>{let K=be.current;if(K){let ge=K.getBoundingClientRect().height;return Be(ge),p(oe=>[{toastId:u.id,height:ge,position:u.position},...oe]),()=>p(oe=>oe.filter(ut=>ut.toastId!==u.id))}},[p,u.id]),M.useEffect(()=>{u.delete&&Ce()},[Ce,u.delete]);function dn(){return R!=null&&R.loading?M.createElement("div",{className:"sonner-loader","data-visible":he==="loading"},R.loading):H?M.createElement("div",{className:"sonner-loader","data-visible":he==="loading"},H):M.createElement(Gv,{visible:he==="loading"})}function lr(K){return{__html:Wv.sanitize(K)}}return M.createElement("li",{"aria-live":u.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:be,className:b(N,un,P==null?void 0:P.toast,(t=u==null?void 0:u.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[he],(n=u==null?void 0:u.classNames)==null?void 0:n[he]),"data-sonner-toast":"","data-styled":!(u.jsx||u.unstyled||f),"data-mounted":_,"data-promise":!!u.promise,"data-removed":$,"data-visible":an,"data-y-position":Yr,"data-x-position":ei,"data-index":w,"data-front":xt,"data-swiping":J,"data-dismissible":Qe,"data-type":he,"data-invert":ir,"data-swipe-out":G,"data-expanded":!!(h||Q&&_),style:{"--index":w,"--toasts-before":w,"--z-index":E.length-w,"--offset":`${$?we:Xe.current}px`,"--initial-height":Q?"auto":`${wt}px`,...S,...u.style},onPointerDown:K=>{cn||!Qe||(st.current=new Date,Me(Xe.current),K.target.setPointerCapture(K.pointerId),K.target.tagName!=="BUTTON"&&(W(!0),Ut.current={x:K.clientX,y:K.clientY}))},onPointerUp:()=>{var K,ge,oe,ut;if(G||!Qe)return;Ut.current=null;let ct=Number(((K=be.current)==null?void 0:K.style.getPropertyValue("--swipe-amount").replace("px",""))||0),ce=new Date().getTime()-((ge=st.current)==null?void 0:ge.getTime()),fn=Math.abs(ct)/ce;if(Math.abs(ct)>=uy||fn>.11){Me(Xe.current),(oe=u.onDismiss)==null||oe.call(u,u),Ce(),X(!0);return}(ut=be.current)==null||ut.style.setProperty("--swipe-amount","0px"),W(!1)},onPointerMove:K=>{var ge;if(!Ut.current||!Qe)return;let oe=K.clientY-Ut.current.y,ut=K.clientX-Ut.current.x,ct=(Yr==="top"?Math.min:Math.max)(0,oe),ce=K.pointerType==="touch"?10:2;Math.abs(ct)>ce?(ge=be.current)==null||ge.style.setProperty("--swipe-amount",`${oe}px`):Math.abs(ut)>ce&&(Ut.current=null)}},Il&&!u.jsx?M.createElement("button",{"aria-label":U,"data-disabled":cn,"data-close-button":!0,onClick:cn||!Qe?()=>{}:()=>{var K;Ce(),(K=u.onDismiss)==null||K.call(u,u)},className:b(P==null?void 0:P.closeButton,(r=u==null?void 0:u.classNames)==null?void 0:r.closeButton)},M.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"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,u.jsx||M.isValidElement(u.title)?u.jsx||u.title:M.createElement(M.Fragment,null,he||u.icon||u.promise?M.createElement("div",{"data-icon":"",className:b(P==null?void 0:P.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||dn():null,u.type!=="loading"?u.icon||(R==null?void 0:R[he])||Yv(he):null):null,M.createElement("div",{"data-content":"",className:b(P==null?void 0:P.content)},M.createElement("div",{"data-title":"",className:b(P==null?void 0:P.title,(o=u==null?void 0:u.classNames)==null?void 0:o.title),dangerouslySetInnerHTML:lr(u.title)}),u.description?M.createElement("div",{"data-description":"",className:b(A,nr,P==null?void 0:P.description,(i=u==null?void 0:u.classNames)==null?void 0:i.description),dangerouslySetInnerHTML:lr(u.description)}):null),M.isValidElement(u.cancel)?u.cancel:u.cancel&&Ei(u.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||C,onClick:K=>{Ei(u.cancel)&&Qe&&(Ce(),u.cancel.onClick(K))},className:b(P==null?void 0:P.cancelButton,(l=u==null?void 0:u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,M.isValidElement(u.action)?u.action:u.action&&Ei(u.action)?M.createElement("button",{"data-button":"",style:u.actionButtonStyle||T,onClick:K=>{Ei(u.action)&&(u.action.onClick(K),!K.defaultPrevented&&Ce())},className:b(P==null?void 0:P.actionButton,(s=u==null?void 0:u.classNames)==null?void 0:s.actionButton)},u.action.label):null))};function vd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var im=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:l,offset:s,theme:a="light",richColors:u,duration:f,style:c,visibleToasts:p=oy,toastOptions:v,dir:y=vd(),gap:w=ay,loadingIcon:E,icons:h,containerAriaLabel:d="Notifications",pauseWhenPageIsHidden:g,cn:S=dy}=e,[C,T]=M.useState([]),N=M.useMemo(()=>Array.from(new Set([n].concat(C.filter($=>$.position).map($=>$.position)))),[C,n]),[A,V]=M.useState([]),[D,Y]=M.useState(!1),[H,Q]=M.useState(!1),[P,R]=M.useState(a!=="system"?a:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=M.useRef(null),j=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=M.useRef(null),_=M.useRef(!1),O=M.useCallback($=>T(z=>z.filter(({id:J})=>J!==$.id)),[]);return M.useEffect(()=>Ct.subscribe($=>{if($.dismiss){T(z=>z.map(J=>J.id===$.id?{...J,delete:!0}:J));return}setTimeout(()=>{j0.flushSync(()=>{T(z=>{let J=z.findIndex(W=>W.id===$.id);return J!==-1?[...z.slice(0,J),{...z[J],...$},...z.slice(J+1)]:[$,...z]})})})}),[]),M.useEffect(()=>{if(a!=="system"){R(a);return}a==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?R("dark"):R("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:$})=>{R($?"dark":"light")})},[a]),M.useEffect(()=>{C.length<=1&&Y(!1)},[C]),M.useEffect(()=>{let $=z=>{var J,W;r.every(G=>z[G]||z.code===G)&&(Y(!0),(J=U.current)==null||J.focus()),z.code==="Escape"&&(document.activeElement===U.current||(W=U.current)!=null&&W.contains(document.activeElement))&&Y(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[r]),M.useEffect(()=>{if(U.current)return()=>{b.current&&(b.current.focus({preventScroll:!0}),b.current=null,_.current=!1)}},[U.current]),C.length?M.createElement("section",{"aria-label":`${d} ${j}`,tabIndex:-1},N.map(($,z)=>{var J;let[W,G]=$.split("-");return M.createElement("ol",{key:$,dir:y==="auto"?vd():y,tabIndex:-1,ref:U,className:l,"data-sonner-toaster":!0,"data-theme":P,"data-rich-colors":u,"data-y-position":W,"data-x-position":G,style:{"--front-toast-height":`${((J=A[0])==null?void 0:J.height)||0}px`,"--offset":typeof s=="number"?`${s}px`:s||iy,"--width":`${sy}px`,"--gap":`${w}px`,...c},onBlur:X=>{_.current&&!X.currentTarget.contains(X.relatedTarget)&&(_.current=!1,b.current&&(b.current.focus({preventScroll:!0}),b.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||_.current||(_.current=!0,b.current=X.relatedTarget)},onMouseEnter:()=>Y(!0),onMouseMove:()=>Y(!0),onMouseLeave:()=>{H||Y(!1)},onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||Q(!0)},onPointerUp:()=>Q(!1)},C.filter(X=>!X.position&&z===0||X.position===$).map((X,we)=>{var Me,wt;return M.createElement(fy,{key:X.id,icons:h,index:we,toast:X,duration:(Me=v==null?void 0:v.duration)!=null?Me:f,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:t,visibleToasts:p,closeButton:(wt=v==null?void 0:v.closeButton)!=null?wt:i,interacting:H,position:$,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:O,toasts:C.filter(Be=>Be.position==X.position),heights:A.filter(Be=>Be.position==X.position),setHeights:V,expandByDefault:o,gap:w,loadingIcon:E,expanded:D,pauseWhenPageIsHidden:g,cn:S})}))})):null};/*! Bundled license information: dompurify/dist/purify.es.mjs: (*! @license DOMPurify 3.0.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.10/LICENSE *) -*/function dy({image:e,setImage:t,setImageUploaded:n,imageUploaded:r}){const o=h.useRef(null),[i,l]=h.useState([]);h.useEffect(()=>{const y=localStorage.getItem("uploadedImage");y&&(t(y),p(y))},[]);const s=y=>{const w=y.target.files[0],E=new FileReader;E.onloadend=()=>{const m=E.result;t(m),localStorage.setItem("uploadedImage",m),p(m)},E.readAsDataURL(w),n(!0),dt.success("Image uploaded successfully",{action:{text:"Close",onClick:()=>{dt.dismiss()}}})},a=y=>{y.preventDefault()},u=y=>{if(y.preventDefault(),!y.dataTransfer.files[0].type.includes("image")){dt.error("File type not supported",{action:{label:"Close",onClick:()=>{dt.dismiss()}}});return}const w=y.dataTransfer.files[0],E=new FileReader;E.onloadend=()=>{const m=E.result;t(m),localStorage.setItem("uploadedImage",m),p(m)},E.readAsDataURL(w),n(!0)},f=()=>{o.current.click()},c=()=>{t(null),l([]),localStorage.removeItem("uploadedImage")};h.useEffect(()=>{c()},[e]);const p=async y=>{try{const w=new Image;w.src=y,w.onload=()=>{const E=document.createElement("canvas");E.width=w.width,E.height=w.height;const m=E.getContext("2d");m.drawImage(w,0,0);const d=m.getImageData(0,0,E.width,E.height),g={};for(let C=0;CT.count-C.count).slice(0,12).map(([C,{r:T,g:N,b:A}])=>({hex:C,r:T,g:N,b:A}));l(S)}}catch(w){console.error("Error extracting colors:",w)}},v=(y,w,E)=>"#"+((1<<24)+(y<<16)+(w<<8)+E).toString(16).slice(1);return k.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-gray-100 dark:bg-gray-900",children:[k.jsx(om,{}),k.jsxs("div",{className:"max-w-4xl w-full p-4",children:[k.jsx("div",{className:"w-full aspect-video bg-gray-200 dark:bg-gray-800 rounded-lg overflow-hidden flex items-center justify-center cursor-pointer",onDragOver:a,onDrop:u,onClick:f,style:{border:r?"none":"3px dashed #ccc"},children:e?k.jsx("img",{src:e,alt:"Uploaded Image",className:"w-full h-full object-contain"}):k.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-lg",children:"Click or Drop an Image to upload it"})}),k.jsx("input",{type:"file",accept:"image/jpeg,image/jpg,image/png,image/webp",ref:o,onChange:s,className:"hidden",limit:"1"})]})]})}function im(e,[t,n]){return Math.min(n,Math.max(t,e))}function Sr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function lm(e,t=[]){let n=[];function r(i,l){const s=h.createContext(l),a=n.length;n=[...n,l];function u(c){const{scope:p,children:v,...y}=c,w=(p==null?void 0:p[e][a])||s,E=h.useMemo(()=>y,Object.values(y));return h.createElement(w.Provider,{value:E},v)}function f(c,p){const v=(p==null?void 0:p[e][a])||s,y=h.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(l=>h.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,fy(o,...t)]}function fy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function sm(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function py({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=my({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=sm(n),a=h.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else o(u)},[i,e,o,s]);return[l,a]}function my({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=sm(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const hy=h.createContext(void 0);function gy(e){const t=h.useContext(hy);return e||t||"ltr"}function vy(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const yy=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{};function wy(e){const[t,n]=h.useState(void 0);return yy(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const xy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Tl=xy.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Do:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(s,Ge({},l,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Sy(e){const t=e+"CollectionProvider",[n,r]=lm(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=v=>{const{scope:y,children:w}=v,E=M.useRef(null),m=M.useRef(new Map).current;return M.createElement(o,{scope:y,itemMap:m,collectionRef:E},w)},s=e+"CollectionSlot",a=M.forwardRef((v,y)=>{const{scope:w,children:E}=v,m=i(s,w),d=On(y,m.collectionRef);return M.createElement(Do,{ref:d},E)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",c=M.forwardRef((v,y)=>{const{scope:w,children:E,...m}=v,d=M.useRef(null),g=On(y,d),S=i(u,w);return M.useEffect(()=>(S.itemMap.set(d,{ref:d,...m}),()=>void S.itemMap.delete(d))),M.createElement(Do,{[f]:"",ref:g},E)});function p(v){const y=i(e+"CollectionConsumer",v);return M.useCallback(()=>{const E=y.collectionRef.current;if(!E)return[];const m=Array.from(E.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((S,C)=>m.indexOf(S.ref.current)-m.indexOf(C.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:l,Slot:a,ItemSlot:c},p,r]}const am=["PageUp","PageDown"],um=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],cm={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Wo="Slider",[va,Ey,Cy]=Sy(Wo),[dm,Cx]=lm(Wo,[Cy]),[ky,Pl]=dm(Wo),Ny=h.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:l="horizontal",disabled:s=!1,minStepsBetweenThumbs:a=0,defaultValue:u=[r],value:f,onValueChange:c=()=>{},onValueCommit:p=()=>{},inverted:v=!1,...y}=e,[w,E]=h.useState(null),m=On(t,P=>E(P)),d=h.useRef(new Set),g=h.useRef(0),S=l==="horizontal",C=w?!!w.closest("form"):!0,T=S?by:Ty,[N=[],A]=py({prop:f,defaultProp:u,onChange:P=>{var R;(R=[...d.current][g.current])===null||R===void 0||R.focus(),c(P)}}),V=h.useRef(N);function D(P){const R=Dy(N,P);Q(P,R)}function Y(P){Q(P,g.current)}function H(){const P=V.current[g.current];N[g.current]!==P&&p(N)}function Q(P,R,{commit:U}={commit:!1}){const j=Fy(i),b=By(Math.round((P-r)/i)*i+r,j),_=im(b,[r,o]);A(($=[])=>{const L=Ly($,_,R);if(jy(L,a*i)){g.current=L.indexOf(_);const z=String(L)!==String($);return z&&U&&p(L),z?L:$}else return $})}return h.createElement(ky,{scope:e.__scopeSlider,disabled:s,min:r,max:o,valueIndexToChangeRef:g,thumbs:d.current,values:N,orientation:l},h.createElement(va.Provider,{scope:e.__scopeSlider},h.createElement(va.Slot,{scope:e.__scopeSlider},h.createElement(T,Ge({"aria-disabled":s,"data-disabled":s?"":void 0},y,{ref:m,onPointerDown:Sr(y.onPointerDown,()=>{s||(V.current=N)}),min:r,max:o,inverted:v,onSlideStart:s?void 0:D,onSlideMove:s?void 0:Y,onSlideEnd:s?void 0:H,onHomeKeyDown:()=>!s&&Q(r,0,{commit:!0}),onEndKeyDown:()=>!s&&Q(o,N.length-1,{commit:!0}),onStepKeyDown:({event:P,direction:R})=>{if(!s){const b=am.includes(P.key)||P.shiftKey&&um.includes(P.key)?10:1,_=g.current,$=N[_],L=i*b*R;Q($+L,_,{commit:!0})}}})))),C&&N.map((P,R)=>h.createElement($y,{key:R,name:n?n+(N.length>1?"[]":""):void 0,value:P})))}),[fm,pm]=dm(Wo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),by=h.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:l,onSlideMove:s,onSlideEnd:a,onStepKeyDown:u,...f}=e,[c,p]=h.useState(null),v=On(t,g=>p(g)),y=h.useRef(),w=gy(o),E=w==="ltr",m=E&&!i||!E&&i;function d(g){const S=y.current||c.getBoundingClientRect(),C=[0,S.width],N=Nu(C,m?[n,r]:[r,n]);return y.current=S,N(g-S.left)}return h.createElement(fm,{scope:e.__scopeSlider,startEdge:m?"left":"right",endEdge:m?"right":"left",direction:m?1:-1,size:"width"},h.createElement(mm,Ge({dir:w,"data-orientation":"horizontal"},f,{ref:v,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:g=>{const S=d(g.clientX);l==null||l(S)},onSlideMove:g=>{const S=d(g.clientX);s==null||s(S)},onSlideEnd:()=>{y.current=void 0,a==null||a()},onStepKeyDown:g=>{const C=cm[m?"from-left":"from-right"].includes(g.key);u==null||u({event:g,direction:C?-1:1})}})))}),Ty=h.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:l,onSlideEnd:s,onStepKeyDown:a,...u}=e,f=h.useRef(null),c=On(t,f),p=h.useRef(),v=!o;function y(w){const E=p.current||f.current.getBoundingClientRect(),m=[0,E.height],g=Nu(m,v?[r,n]:[n,r]);return p.current=E,g(w-E.top)}return h.createElement(fm,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1},h.createElement(mm,Ge({"data-orientation":"vertical"},u,{ref:c,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:w=>{const E=y(w.clientY);i==null||i(E)},onSlideMove:w=>{const E=y(w.clientY);l==null||l(E)},onSlideEnd:()=>{p.current=void 0,s==null||s()},onStepKeyDown:w=>{const m=cm[v?"from-bottom":"from-top"].includes(w.key);a==null||a({event:w,direction:m?-1:1})}})))}),mm=h.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:l,onEndKeyDown:s,onStepKeyDown:a,...u}=e,f=Pl(Wo,n);return h.createElement(Tl.span,Ge({},u,{ref:t,onKeyDown:Sr(e.onKeyDown,c=>{c.key==="Home"?(l(c),c.preventDefault()):c.key==="End"?(s(c),c.preventDefault()):am.concat(um).includes(c.key)&&(a(c),c.preventDefault())}),onPointerDown:Sr(e.onPointerDown,c=>{const p=c.target;p.setPointerCapture(c.pointerId),c.preventDefault(),f.thumbs.has(p)?p.focus():r(c)}),onPointerMove:Sr(e.onPointerMove,c=>{c.target.hasPointerCapture(c.pointerId)&&o(c)}),onPointerUp:Sr(e.onPointerUp,c=>{const p=c.target;p.hasPointerCapture(c.pointerId)&&(p.releasePointerCapture(c.pointerId),i(c))})}))}),Py="SliderTrack",Ry=h.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Pl(Py,n);return h.createElement(Tl.span,Ge({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))}),yd="SliderRange",_y=h.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Pl(yd,n),i=pm(yd,n),l=h.useRef(null),s=On(t,l),a=o.values.length,u=o.values.map(p=>hm(p,o.min,o.max)),f=a>1?Math.min(...u):0,c=100-Math.max(...u);return h.createElement(Tl.span,Ge({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:s,style:{...e.style,[i.startEdge]:f+"%",[i.endEdge]:c+"%"}}))}),wd="SliderThumb",Ay=h.forwardRef((e,t)=>{const n=Ey(e.__scopeSlider),[r,o]=h.useState(null),i=On(t,s=>o(s)),l=h.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return h.createElement(Oy,Ge({},e,{ref:i,index:l}))}),Oy=h.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,i=Pl(wd,n),l=pm(wd,n),[s,a]=h.useState(null),u=On(t,E=>a(E)),f=wy(s),c=i.values[r],p=c===void 0?0:hm(c,i.min,i.max),v=My(r,i.values.length),y=f==null?void 0:f[l.size],w=y?zy(y,p,l.direction):0;return h.useEffect(()=>{if(s)return i.thumbs.add(s),()=>{i.thumbs.delete(s)}},[s,i.thumbs]),h.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${p}% + ${w}px)`}},h.createElement(va.ItemSlot,{scope:e.__scopeSlider},h.createElement(Tl.span,Ge({role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":i.min,"aria-valuenow":c,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0},o,{ref:u,style:c===void 0?{display:"none"}:e.style,onFocus:Sr(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})}))))}),$y=e=>{const{value:t,...n}=e,r=h.useRef(null),o=vy(t);return h.useEffect(()=>{const i=r.current,l=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&a){const u=new Event("input",{bubbles:!0});a.call(i,t),i.dispatchEvent(u)}},[o,t]),h.createElement("input",Ge({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function Ly(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function hm(e,t,n){const i=100/(n-t)*(e-t);return im(i,[0,100])}function My(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Dy(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function zy(e,t,n){const r=e/2,i=Nu([0,50],[0,r]);return(r-i(t)*n)*n}function Iy(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function jy(e,t){if(t>0){const n=Iy(e);return Math.min(...n)>=t}return!0}function Nu(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Fy(e){return(String(e).split(".")[1]||"").length}function By(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const gm=Ny,Uy=Ry,Hy=_y,Vy=Ay,Li=h.forwardRef(({className:e,...t},n)=>k.jsxs(gm,{ref:n,className:ku("relative flex w-full touch-none select-none items-center",e),...t,children:[k.jsx(Uy,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:k.jsx(Hy,{className:"absolute h-full bg-primary"})}),k.jsx(Vy,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Li.displayName=gm.displayName;function Qt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Wy(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function vm(...e){return t=>e.forEach(n=>Wy(n,t))}function Yo(...e){return h.useCallback(vm(...e),e)}function Yy(e,t=[]){let n=[];function r(i,l){const s=h.createContext(l),a=n.length;n=[...n,l];function u(c){const{scope:p,children:v,...y}=c,w=(p==null?void 0:p[e][a])||s,E=h.useMemo(()=>y,Object.values(y));return k.jsx(w.Provider,{value:E,children:v})}function f(c,p){const v=(p==null?void 0:p[e][a])||s,y=h.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(l=>h.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,Ky(o,...t)]}function Ky(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var ym=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(Gy);if(i){const l=i.props.children,s=o.map(a=>a===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:a);return k.jsx(ya,{...r,ref:t,children:h.isValidElement(l)?h.cloneElement(l,void 0,s):null})}return k.jsx(ya,{...r,ref:t,children:n})});ym.displayName="Slot";var ya=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=Xy(n);return h.cloneElement(n,{...Qy(r,n.props),ref:t?vm(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});ya.displayName="SlotClone";var wm=({children:e})=>k.jsx(k.Fragment,{children:e});function Gy(e){return h.isValidElement(e)&&e.type===wm}function Qy(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Xy(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],bu=Zy.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?ym:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Jy(e,t){e&&Vo.flushSync(()=>e.dispatchEvent(t))}function Ko(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qy(e,t=globalThis==null?void 0:globalThis.document){const n=Ko(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var e1="DismissableLayer",wa="dismissableLayer.update",t1="dismissableLayer.pointerDownOutside",n1="dismissableLayer.focusOutside",xd,xm=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sm=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...a}=e,u=h.useContext(xm),[f,c]=h.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=h.useState({}),y=Yo(t,N=>c(N)),w=Array.from(u.layers),[E]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=w.indexOf(E),d=f?w.indexOf(f):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,S=d>=m,C=i1(N=>{const A=N.target,V=[...u.branches].some(D=>D.contains(A));!S||V||(o==null||o(N),l==null||l(N),N.defaultPrevented||s==null||s())},p),T=l1(N=>{const A=N.target;[...u.branches].some(D=>D.contains(A))||(i==null||i(N),l==null||l(N),N.defaultPrevented||s==null||s())},p);return qy(N=>{d===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},p),h.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Sd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=xd)}},[f,p,n,u]),h.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Sd())},[f,u]),h.useEffect(()=>{const N=()=>v({});return document.addEventListener(wa,N),()=>document.removeEventListener(wa,N)},[]),k.jsx(bu.div,{...a,ref:y,style:{pointerEvents:g?S?"auto":"none":void 0,...e.style},onFocusCapture:Qt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Qt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Qt(e.onPointerDownCapture,C.onPointerDownCapture)})});Sm.displayName=e1;var r1="DismissableLayerBranch",o1=h.forwardRef((e,t)=>{const n=h.useContext(xm),r=h.useRef(null),o=Yo(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),k.jsx(bu.div,{...e,ref:o})});o1.displayName=r1;function i1(e,t=globalThis==null?void 0:globalThis.document){const n=Ko(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let a=function(){Em(t1,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function l1(e,t=globalThis==null?void 0:globalThis.document){const n=Ko(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Em(n1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sd(){const e=new CustomEvent(wa);document.dispatchEvent(e)}function Em(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Jy(o,i):o.dispatchEvent(i)}var xa=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},s1=bh.useId||(()=>{}),a1=0;function u1(e){const[t,n]=h.useState(s1());return xa(()=>{n(r=>r??String(a1++))},[e]),t?`radix-${t}`:""}const c1=["top","right","bottom","left"],Dt=Math.min,qe=Math.max,sl=Math.round,yi=Math.floor,$n=e=>({x:e,y:e}),d1={left:"right",right:"left",bottom:"top",top:"bottom"},f1={start:"end",end:"start"};function Sa(e,t,n){return qe(e,Dt(t,n))}function rn(e,t){return typeof e=="function"?e(t):e}function on(e){return e.split("-")[0]}function Ur(e){return e.split("-")[1]}function Tu(e){return e==="x"?"y":"x"}function Pu(e){return e==="y"?"height":"width"}function Ln(e){return["top","bottom"].includes(on(e))?"y":"x"}function Ru(e){return Tu(Ln(e))}function p1(e,t,n){n===void 0&&(n=!1);const r=Ur(e),o=Ru(e),i=Pu(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=al(l)),[l,al(l)]}function m1(e){const t=al(e);return[Ea(e),t,Ea(t)]}function Ea(e){return e.replace(/start|end/g,t=>f1[t])}function h1(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function g1(e,t,n,r){const o=Ur(e);let i=h1(on(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Ea)))),i}function al(e){return e.replace(/left|right|bottom|top/g,t=>d1[t])}function v1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cm(e){return typeof e!="number"?v1(e):{top:e,right:e,bottom:e,left:e}}function ul(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 Ed(e,t,n){let{reference:r,floating:o}=e;const i=Ln(t),l=Ru(t),s=Pu(l),a=on(t),u=i==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let v;switch(a){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:c};break;case"left":v={x:r.x-o.width,y:c};break;default:v={x:r.x,y:r.y}}switch(Ur(t)){case"start":v[l]-=p*(n&&u?-1:1);break;case"end":v[l]+=p*(n&&u?-1:1);break}return v}const y1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=Ed(u,r,a),p=r,v={},y=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:f=0}=rn(e,t)||{};if(u==null)return{};const c=Cm(f),p={x:n,y:r},v=Ru(o),y=Pu(v),w=await l.getDimensions(u),E=v==="y",m=E?"top":"left",d=E?"bottom":"right",g=E?"clientHeight":"clientWidth",S=i.reference[y]+i.reference[v]-p[v]-i.floating[y],C=p[v]-i.reference[v],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let N=T?T[g]:0;(!N||!await(l.isElement==null?void 0:l.isElement(T)))&&(N=s.floating[g]||i.floating[y]);const A=S/2-C/2,V=N/2-w[y]/2-1,D=Dt(c[m],V),Y=Dt(c[d],V),H=D,Q=N-w[y]-Y,P=N/2-w[y]/2+A,R=Sa(H,P,Q),U=!a.arrow&&Ur(o)!=null&&P!==R&&i.reference[y]/2-(PP<=0)){var Y,H;const P=(((Y=i.flip)==null?void 0:Y.index)||0)+1,R=N[P];if(R)return{data:{index:P,overflows:D},reset:{placement:R}};let U=(H=D.filter(j=>j.overflows[0]<=0).sort((j,b)=>j.overflows[1]-b.overflows[1])[0])==null?void 0:H.placement;if(!U)switch(v){case"bestFit":{var Q;const j=(Q=D.filter(b=>{if(T){const _=Ln(b.placement);return _===d||_==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(_=>_>0).reduce((_,$)=>_+$,0)]).sort((b,_)=>b[1]-_[1])[0])==null?void 0:Q[0];j&&(U=j);break}case"initialPlacement":U=s;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function Cd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kd(e){return c1.some(t=>e[t]>=0)}const S1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=rn(e,t);switch(r){case"referenceHidden":{const i=await zo(t,{...o,elementContext:"reference"}),l=Cd(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:kd(l)}}}case"escaped":{const i=await zo(t,{...o,altBoundary:!0}),l=Cd(i,n.floating);return{data:{escapedOffsets:l,escaped:kd(l)}}}default:return{}}}}};async function E1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=on(n),s=Ur(n),a=Ln(n)==="y",u=["left","top"].includes(l)?-1:1,f=i&&a?-1:1,c=rn(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:y}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof y=="number"&&(v=s==="end"?y*-1:y),a?{x:v*f,y:p*u}:{x:p*u,y:v*f}}const C1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,a=await E1(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},k1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:E=>{let{x:m,y:d}=E;return{x:m,y:d}}},...a}=rn(e,t),u={x:n,y:r},f=await zo(t,a),c=Ln(on(o)),p=Tu(c);let v=u[p],y=u[c];if(i){const E=p==="y"?"top":"left",m=p==="y"?"bottom":"right",d=v+f[E],g=v-f[m];v=Sa(d,v,g)}if(l){const E=c==="y"?"top":"left",m=c==="y"?"bottom":"right",d=y+f[E],g=y-f[m];y=Sa(d,y,g)}const w=s.fn({...t,[p]:v,[c]:y});return{...w,data:{x:w.x-n,y:w.y-r}}}}},N1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=rn(e,t),f={x:n,y:r},c=Ln(o),p=Tu(c);let v=f[p],y=f[c];const w=rn(s,t),E=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(a){const g=p==="y"?"height":"width",S=i.reference[p]-i.floating[g]+E.mainAxis,C=i.reference[p]+i.reference[g]-E.mainAxis;vC&&(v=C)}if(u){var m,d;const g=p==="y"?"width":"height",S=["top","left"].includes(on(o)),C=i.reference[c]-i.floating[g]+(S&&((m=l.offset)==null?void 0:m[c])||0)+(S?0:E.crossAxis),T=i.reference[c]+i.reference[g]+(S?0:((d=l.offset)==null?void 0:d[c])||0)-(S?E.crossAxis:0);yT&&(y=T)}return{[p]:v,[c]:y}}}},b1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...s}=rn(e,t),a=await zo(t,s),u=on(n),f=Ur(n),c=Ln(n)==="y",{width:p,height:v}=r.floating;let y,w;u==="top"||u==="bottom"?(y=u,w=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(w=u,y=f==="end"?"top":"bottom");const E=v-a.top-a.bottom,m=p-a.left-a.right,d=Dt(v-a[y],E),g=Dt(p-a[w],m),S=!t.middlewareData.shift;let C=d,T=g;if(c?T=f||S?Dt(g,m):m:C=f||S?Dt(d,E):E,S&&!f){const A=qe(a.left,0),V=qe(a.right,0),D=qe(a.top,0),Y=qe(a.bottom,0);c?T=p-2*(A!==0||V!==0?A+V:qe(a.left,a.right)):C=v-2*(D!==0||Y!==0?D+Y:qe(a.top,a.bottom))}await l({...t,availableWidth:T,availableHeight:C});const N=await o.getDimensions(i.floating);return p!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function Hr(e){return km(e)?(e.nodeName||"").toLowerCase():"#document"}function nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sn(e){var t;return(t=(km(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function km(e){return e instanceof Node||e instanceof nt(e).Node}function _t(e){return e instanceof Element||e instanceof nt(e).Element}function jt(e){return e instanceof HTMLElement||e instanceof nt(e).HTMLElement}function Nd(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof nt(e).ShadowRoot}function Go(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=At(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function T1(e){return["table","td","th"].includes(Hr(e))}function Rl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function _u(e){const t=Au(),n=_t(e)?At(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function P1(e){let t=Mn(e);for(;jt(t)&&!Dr(t);){if(_u(t))return t;if(Rl(t))return null;t=Mn(t)}return null}function Au(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Dr(e){return["html","body","#document"].includes(Hr(e))}function At(e){return nt(e).getComputedStyle(e)}function _l(e){return _t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mn(e){if(Hr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nd(e)&&e.host||sn(e);return Nd(t)?t.host:t}function Nm(e){const t=Mn(e);return Dr(t)?e.ownerDocument?e.ownerDocument.body:e.body:jt(t)&&Go(t)?t:Nm(t)}function Io(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Nm(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=nt(o);return i?t.concat(l,l.visualViewport||[],Go(o)?o:[],l.frameElement&&n?Io(l.frameElement):[]):t.concat(o,Io(o,[],n))}function bm(e){const t=At(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=jt(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=sl(n)!==i||sl(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Ou(e){return _t(e)?e:e.contextElement}function Pr(e){const t=Ou(e);if(!jt(t))return $n(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=bm(t);let l=(i?sl(n.width):n.width)/r,s=(i?sl(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const R1=$n(0);function Tm(e){const t=nt(e);return!Au()||!t.visualViewport?R1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==nt(e)?!1:t}function qn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ou(e);let l=$n(1);t&&(r?_t(r)&&(l=Pr(r)):l=Pr(e));const s=_1(i,n,r)?Tm(i):$n(0);let a=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,f=o.width/l.x,c=o.height/l.y;if(i){const p=nt(i),v=r&&_t(r)?nt(r):r;let y=p,w=y.frameElement;for(;w&&r&&v!==y;){const E=Pr(w),m=w.getBoundingClientRect(),d=At(w),g=m.left+(w.clientLeft+parseFloat(d.paddingLeft))*E.x,S=m.top+(w.clientTop+parseFloat(d.paddingTop))*E.y;a*=E.x,u*=E.y,f*=E.x,c*=E.y,a+=g,u+=S,y=nt(w),w=y.frameElement}}return ul({width:f,height:c,x:a,y:u})}function A1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=sn(r),s=t?Rl(t.floating):!1;if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=$n(1);const f=$n(0),c=jt(r);if((c||!c&&!i)&&((Hr(r)!=="body"||Go(l))&&(a=_l(r)),jt(r))){const p=qn(r);u=Pr(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+f.x,y:n.y*u.y-a.scrollTop*u.y+f.y}}function O1(e){return Array.from(e.getClientRects())}function Pm(e){return qn(sn(e)).left+_l(e).scrollLeft}function $1(e){const t=sn(e),n=_l(e),r=e.ownerDocument.body,o=qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Pm(e);const s=-n.scrollTop;return At(r).direction==="rtl"&&(l+=qe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function L1(e,t){const n=nt(e),r=sn(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const u=Au();(!u||u&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}function M1(e,t){const n=qn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=jt(e)?Pr(e):$n(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:l,height:s,x:a,y:u}}function bd(e,t,n){let r;if(t==="viewport")r=L1(e,n);else if(t==="document")r=$1(sn(e));else if(_t(t))r=M1(t,n);else{const o=Tm(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return ul(r)}function Rm(e,t){const n=Mn(e);return n===t||!_t(n)||Dr(n)?!1:At(n).position==="fixed"||Rm(n,t)}function D1(e,t){const n=t.get(e);if(n)return n;let r=Io(e,[],!1).filter(s=>_t(s)&&Hr(s)!=="body"),o=null;const i=At(e).position==="fixed";let l=i?Mn(e):e;for(;_t(l)&&!Dr(l);){const s=At(l),a=_u(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Go(l)&&!a&&Rm(e,l))?r=r.filter(f=>f!==l):o=s,l=Mn(l)}return t.set(e,r),r}function z1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?Rl(t)?[]:D1(t,this._c):[].concat(n),r],s=l[0],a=l.reduce((u,f)=>{const c=bd(t,f,o);return u.top=qe(c.top,u.top),u.right=Dt(c.right,u.right),u.bottom=Dt(c.bottom,u.bottom),u.left=qe(c.left,u.left),u},bd(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function I1(e){const{width:t,height:n}=bm(e);return{width:t,height:n}}function j1(e,t,n){const r=jt(t),o=sn(t),i=n==="fixed",l=qn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=$n(0);if(r||!r&&!i)if((Hr(t)!=="body"||Go(o))&&(s=_l(t)),r){const c=qn(t,!0,i,t);a.x=c.x+t.clientLeft,a.y=c.y+t.clientTop}else o&&(a.x=Pm(o));const u=l.left+s.scrollLeft-a.x,f=l.top+s.scrollTop-a.y;return{x:u,y:f,width:l.width,height:l.height}}function hs(e){return At(e).position==="static"}function Td(e,t){return!jt(e)||At(e).position==="fixed"?null:t?t(e):e.offsetParent}function _m(e,t){const n=nt(e);if(Rl(e))return n;if(!jt(e)){let o=Mn(e);for(;o&&!Dr(o);){if(_t(o)&&!hs(o))return o;o=Mn(o)}return n}let r=Td(e,t);for(;r&&T1(r)&&hs(r);)r=Td(r,t);return r&&Dr(r)&&hs(r)&&!_u(r)?n:r||P1(e)||n}const F1=async function(e){const t=this.getOffsetParent||_m,n=this.getDimensions,r=await n(e.floating);return{reference:j1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function B1(e){return At(e).direction==="rtl"}const U1={convertOffsetParentRelativeRectToViewportRelativeRect:A1,getDocumentElement:sn,getClippingRect:z1,getOffsetParent:_m,getElementRects:F1,getClientRects:O1,getDimensions:I1,getScale:Pr,isElement:_t,isRTL:B1};function H1(e,t){let n=null,r;const o=sn(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const{left:u,top:f,width:c,height:p}=e.getBoundingClientRect();if(s||t(),!c||!p)return;const v=yi(f),y=yi(o.clientWidth-(u+c)),w=yi(o.clientHeight-(f+p)),E=yi(u),d={rootMargin:-v+"px "+-y+"px "+-w+"px "+-E+"px",threshold:qe(0,Dt(1,a))||1};let g=!0;function S(C){const T=C[0].intersectionRatio;if(T!==a){if(!g)return l();T?l(!1,T):r=setTimeout(()=>{l(!1,1e-7)},1e3)}g=!1}try{n=new IntersectionObserver(S,{...d,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,d)}n.observe(e)}return l(!0),i}function V1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Ou(e),f=o||i?[...u?Io(u):[],...Io(t)]:[];f.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const c=u&&s?H1(u,n):null;let p=-1,v=null;l&&(v=new ResizeObserver(m=>{let[d]=m;d&&d.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var g;(g=v)==null||g.observe(t)})),n()}),u&&!a&&v.observe(u),v.observe(t));let y,w=a?qn(e):null;a&&E();function E(){const m=qn(e);w&&(m.x!==w.x||m.y!==w.y||m.width!==w.width||m.height!==w.height)&&n(),w=m,y=requestAnimationFrame(E)}return n(),()=>{var m;f.forEach(d=>{o&&d.removeEventListener("scroll",n),i&&d.removeEventListener("resize",n)}),c==null||c(),(m=v)==null||m.disconnect(),v=null,a&&cancelAnimationFrame(y)}}const W1=C1,Y1=k1,K1=x1,G1=b1,Q1=S1,Pd=w1,X1=N1,Z1=(e,t,n)=>{const r=new Map,o={platform:U1,...n},i={...o.platform,_c:r};return y1(e,t,{...o,platform:i})};var Mi=typeof document<"u"?h.useLayoutEffect:h.useEffect;function cl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!cl(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;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!cl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Am(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rd(e,t){const n=Am(e);return Math.round(t*n)/n}function _d(e){const t=h.useRef(e);return Mi(()=>{t.current=e}),t}function J1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[f,c]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=h.useState(r);cl(p,r)||v(r);const[y,w]=h.useState(null),[E,m]=h.useState(null),d=h.useCallback(j=>{j!==T.current&&(T.current=j,w(j))},[]),g=h.useCallback(j=>{j!==N.current&&(N.current=j,m(j))},[]),S=i||y,C=l||E,T=h.useRef(null),N=h.useRef(null),A=h.useRef(f),V=a!=null,D=_d(a),Y=_d(o),H=h.useCallback(()=>{if(!T.current||!N.current)return;const j={placement:t,strategy:n,middleware:p};Y.current&&(j.platform=Y.current),Z1(T.current,N.current,j).then(b=>{const _={...b,isPositioned:!0};Q.current&&!cl(A.current,_)&&(A.current=_,Vo.flushSync(()=>{c(_)}))})},[p,t,n,Y]);Mi(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,c(j=>({...j,isPositioned:!1})))},[u]);const Q=h.useRef(!1);Mi(()=>(Q.current=!0,()=>{Q.current=!1}),[]),Mi(()=>{if(S&&(T.current=S),C&&(N.current=C),S&&C){if(D.current)return D.current(S,C,H);H()}},[S,C,H,D,V]);const P=h.useMemo(()=>({reference:T,floating:N,setReference:d,setFloating:g}),[d,g]),R=h.useMemo(()=>({reference:S,floating:C}),[S,C]),U=h.useMemo(()=>{const j={position:n,left:0,top:0};if(!R.floating)return j;const b=Rd(R.floating,f.x),_=Rd(R.floating,f.y);return s?{...j,transform:"translate("+b+"px, "+_+"px)",...Am(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:b,top:_}},[n,s,R.floating,f.x,f.y]);return h.useMemo(()=>({...f,update:H,refs:P,elements:R,floatingStyles:U}),[f,H,P,R,U])}const q1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Pd({element:r.current,padding:o}).fn(n):{}:r?Pd({element:r,padding:o}).fn(n):{}}}},ew=(e,t)=>({...W1(e),options:[e,t]}),tw=(e,t)=>({...Y1(e),options:[e,t]}),nw=(e,t)=>({...X1(e),options:[e,t]}),rw=(e,t)=>({...K1(e),options:[e,t]}),ow=(e,t)=>({...G1(e),options:[e,t]}),iw=(e,t)=>({...Q1(e),options:[e,t]}),lw=(e,t)=>({...q1(e),options:[e,t]});function sw(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function aw(...e){return t=>e.forEach(n=>sw(n,t))}var Om=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(cw);if(i){const l=i.props.children,s=o.map(a=>a===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:a);return k.jsx(Ca,{...r,ref:t,children:h.isValidElement(l)?h.cloneElement(l,void 0,s):null})}return k.jsx(Ca,{...r,ref:t,children:n})});Om.displayName="Slot";var Ca=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=fw(n);return h.cloneElement(n,{...dw(r,n.props),ref:t?aw(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});Ca.displayName="SlotClone";var uw=({children:e})=>k.jsx(k.Fragment,{children:e});function cw(e){return h.isValidElement(e)&&e.type===uw}function dw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function fw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var pw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],mw=pw.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Om:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hw="Arrow",$m=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return k.jsx(mw.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:k.jsx("polygon",{points:"0,0 30,0 15,10"})})});$m.displayName=hw;var gw=$m;function vw(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Lm(...e){return t=>e.forEach(n=>vw(n,t))}function Mm(...e){return h.useCallback(Lm(...e),e)}function yw(e,t=[]){let n=[];function r(i,l){const s=h.createContext(l),a=n.length;n=[...n,l];function u(c){const{scope:p,children:v,...y}=c,w=(p==null?void 0:p[e][a])||s,E=h.useMemo(()=>y,Object.values(y));return k.jsx(w.Provider,{value:E,children:v})}function f(c,p){const v=(p==null?void 0:p[e][a])||s,y=h.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(l=>h.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,ww(o,...t)]}function ww(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Dm=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(Sw);if(i){const l=i.props.children,s=o.map(a=>a===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:a);return k.jsx(ka,{...r,ref:t,children:h.isValidElement(l)?h.cloneElement(l,void 0,s):null})}return k.jsx(ka,{...r,ref:t,children:n})});Dm.displayName="Slot";var ka=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=Cw(n);return h.cloneElement(n,{...Ew(r,n.props),ref:t?Lm(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});ka.displayName="SlotClone";var xw=({children:e})=>k.jsx(k.Fragment,{children:e});function Sw(e){return h.isValidElement(e)&&e.type===xw}function Ew(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Cw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var kw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],zm=kw.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Dm:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Nw(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Na=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{};function bw(e){const[t,n]=h.useState(void 0);return Na(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var $u="Popper",[Im,jm]=yw($u),[Tw,Fm]=Im($u),Bm=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return k.jsx(Tw,{scope:t,anchor:r,onAnchorChange:o,children:n})};Bm.displayName=$u;var Um="PopperAnchor",Hm=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Fm(Um,n),l=h.useRef(null),s=Mm(t,l);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:k.jsx(zm.div,{...o,ref:s})});Hm.displayName=Um;var Lu="PopperContent",[Pw,Rw]=Im(Lu),Vm=h.forwardRef((e,t)=>{var we,Me,wt,Be,st,be;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:y,...w}=e,E=Fm(Lu,n),[m,d]=h.useState(null),g=Mm(t,xt=>d(xt)),[S,C]=h.useState(null),T=bw(S),N=(T==null?void 0:T.width)??0,A=(T==null?void 0:T.height)??0,V=r+(i!=="center"?"-"+i:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Y=Array.isArray(u)?u:[u],H=Y.length>0,Q={padding:D,boundary:Y.filter(Aw),altBoundary:H},{refs:P,floatingStyles:R,placement:U,isPositioned:j,middlewareData:b}=J1({strategy:"fixed",placement:V,whileElementsMounted:(...xt)=>V1(...xt,{animationFrame:v==="always"}),elements:{reference:E.anchor},middleware:[ew({mainAxis:o+A,alignmentAxis:l}),a&&tw({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?nw():void 0,...Q}),a&&rw({...Q}),ow({...Q,apply:({elements:xt,rects:an,availableWidth:he,availableHeight:Qe})=>{const{width:un,height:nr}=an.reference,at=xt.floating.style;at.setProperty("--radix-popper-available-width",`${he}px`),at.setProperty("--radix-popper-available-height",`${Qe}px`),at.setProperty("--radix-popper-anchor-width",`${un}px`),at.setProperty("--radix-popper-anchor-height",`${nr}px`)}}),S&&lw({element:S,padding:s}),Ow({arrowWidth:N,arrowHeight:A}),p&&iw({strategy:"referenceHidden",...Q})]}),[_,$]=Km(U),L=Nw(y);Na(()=>{j&&(L==null||L())},[j,L]);const z=(we=b.arrow)==null?void 0:we.x,J=(Me=b.arrow)==null?void 0:Me.y,W=((wt=b.arrow)==null?void 0:wt.centerOffset)!==0,[G,X]=h.useState();return Na(()=>{m&&X(window.getComputedStyle(m).zIndex)},[m]),k.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:j?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[(Be=b.transformOrigin)==null?void 0:Be.x,(st=b.transformOrigin)==null?void 0:st.y].join(" "),...((be=b.hide)==null?void 0:be.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:k.jsx(Pw,{scope:n,placedSide:_,onArrowChange:C,arrowX:z,arrowY:J,shouldHideArrow:W,children:k.jsx(zm.div,{"data-side":_,"data-align":$,...w,ref:g,style:{...w.style,animation:j?void 0:"none"}})})})});Vm.displayName=Lu;var Wm="PopperArrow",_w={top:"bottom",right:"left",bottom:"top",left:"right"},Ym=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Rw(Wm,r),l=_w[i.placedSide];return k.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:k.jsx(gw,{...o,ref:n,style:{...o.style,display:"block"}})})});Ym.displayName=Wm;function Aw(e){return e!==null}var Ow=e=>({name:"transformOrigin",options:e,fn(t){var E,m,d;const{placement:n,rects:r,middlewareData:o}=t,l=((E=o.arrow)==null?void 0:E.centerOffset)!==0,s=l?0:e.arrowWidth,a=l?0:e.arrowHeight,[u,f]=Km(n),c={start:"0%",center:"50%",end:"100%"}[f],p=(((m=o.arrow)==null?void 0:m.x)??0)+s/2,v=(((d=o.arrow)==null?void 0:d.y)??0)+a/2;let y="",w="";return u==="bottom"?(y=l?c:`${p}px`,w=`${-a}px`):u==="top"?(y=l?c:`${p}px`,w=`${r.floating.height+a}px`):u==="right"?(y=`${-a}px`,w=l?c:`${v}px`):u==="left"&&(y=`${r.floating.width+a}px`,w=l?c:`${v}px`),{data:{x:y,y:w}}}});function Km(e){const[t,n="center"]=e.split("-");return[t,n]}var $w=Bm,Lw=Hm,Mw=Vm,Dw=Ym;function zw(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Gm=e=>{const{present:t,children:n}=e,r=Iw(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=Yo(r.ref,jw(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};Gm.displayName="Presence";function Iw(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),l=e?"mounted":"unmounted",[s,a]=zw(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=wi(r.current);i.current=s==="mounted"?u:"none"},[s]),xa(()=>{const u=r.current,f=o.current;if(f!==e){const p=i.current,v=wi(u);e?a("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(f&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),xa(()=>{if(t){const u=c=>{const v=wi(r.current).includes(c.animationName);c.target===t&&v&&Vo.flushSync(()=>a("ANIMATION_END"))},f=c=>{c.target===t&&(i.current=wi(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function wi(e){return(e==null?void 0:e.animationName)||"none"}function jw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Fw({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Bw({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=Ko(n),a=h.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else o(u)},[i,e,o,s]);return[l,a]}function Bw({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=Ko(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function Uw(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Hw(...e){return t=>e.forEach(n=>Uw(n,t))}var Qm=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(Ww);if(i){const l=i.props.children,s=o.map(a=>a===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:a);return k.jsx(ba,{...r,ref:t,children:h.isValidElement(l)?h.cloneElement(l,void 0,s):null})}return k.jsx(ba,{...r,ref:t,children:n})});Qm.displayName="Slot";var ba=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=Kw(n);return h.cloneElement(n,{...Yw(r,n.props),ref:t?Hw(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});ba.displayName="SlotClone";var Vw=({children:e})=>k.jsx(k.Fragment,{children:e});function Ww(e){return h.isValidElement(e)&&e.type===Vw}function Yw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Kw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Gw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Qw=Gw.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Qm:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Xw="VisuallyHidden",Xm=h.forwardRef((e,t)=>k.jsx(Qw.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}}));Xm.displayName=Xw;var Zw=Xm,[Al,kx]=Yy("Tooltip",[jm]),Ol=jm(),Zm="TooltipProvider",Jw=700,Ta="tooltip.open",[qw,Mu]=Al(Zm),Jm=e=>{const{__scopeTooltip:t,delayDuration:n=Jw,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[l,s]=h.useState(!0),a=h.useRef(!1),u=h.useRef(0);return h.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),k.jsx(qw,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:h.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:h.useCallback(f=>{a.current=f},[]),disableHoverableContent:o,children:i})};Jm.displayName=Zm;var $l="Tooltip",[ex,Ll]=Al($l),qm=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:s}=e,a=Mu($l,e.__scopeTooltip),u=Ol(t),[f,c]=h.useState(null),p=u1(),v=h.useRef(0),y=l??a.disableHoverableContent,w=s??a.delayDuration,E=h.useRef(!1),[m=!1,d]=Fw({prop:r,defaultProp:o,onChange:N=>{N?(a.onOpen(),document.dispatchEvent(new CustomEvent(Ta))):a.onClose(),i==null||i(N)}}),g=h.useMemo(()=>m?E.current?"delayed-open":"instant-open":"closed",[m]),S=h.useCallback(()=>{window.clearTimeout(v.current),E.current=!1,d(!0)},[d]),C=h.useCallback(()=>{window.clearTimeout(v.current),d(!1)},[d]),T=h.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{E.current=!0,d(!0)},w)},[w,d]);return h.useEffect(()=>()=>window.clearTimeout(v.current),[]),k.jsx($w,{...u,children:k.jsx(ex,{scope:t,contentId:p,open:m,stateAttribute:g,trigger:f,onTriggerChange:c,onTriggerEnter:h.useCallback(()=>{a.isOpenDelayed?T():S()},[a.isOpenDelayed,T,S]),onTriggerLeave:h.useCallback(()=>{y?C():window.clearTimeout(v.current)},[C,y]),onOpen:S,onClose:C,disableHoverableContent:y,children:n})})};qm.displayName=$l;var Pa="TooltipTrigger",eh=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ll(Pa,n),i=Mu(Pa,n),l=Ol(n),s=h.useRef(null),a=Yo(t,s,o.onTriggerChange),u=h.useRef(!1),f=h.useRef(!1),c=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),k.jsx(Lw,{asChild:!0,...l,children:k.jsx(bu.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:Qt(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Qt(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Qt(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Qt(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Qt(e.onBlur,o.onClose),onClick:Qt(e.onClick,o.onClose)})})});eh.displayName=Pa;var tx="TooltipPortal",[Nx,nx]=Al(tx,{forceMount:void 0}),zr="TooltipContent",th=h.forwardRef((e,t)=>{const n=nx(zr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=Ll(zr,e.__scopeTooltip);return k.jsx(Gm,{present:r||l.open,children:l.disableHoverableContent?k.jsx(nh,{side:o,...i,ref:t}):k.jsx(rx,{side:o,...i,ref:t})})}),rx=h.forwardRef((e,t)=>{const n=Ll(zr,e.__scopeTooltip),r=Mu(zr,e.__scopeTooltip),o=h.useRef(null),i=Yo(t,o),[l,s]=h.useState(null),{trigger:a,onClose:u}=n,f=o.current,{onPointerInTransitChange:c}=r,p=h.useCallback(()=>{s(null),c(!1)},[c]),v=h.useCallback((y,w)=>{const E=y.currentTarget,m={x:y.clientX,y:y.clientY},d=sx(m,E.getBoundingClientRect()),g=ax(m,d),S=ux(w.getBoundingClientRect()),C=dx([...g,...S]);s(C),c(!0)},[c]);return h.useEffect(()=>()=>p(),[p]),h.useEffect(()=>{if(a&&f){const y=E=>v(E,f),w=E=>v(E,a);return a.addEventListener("pointerleave",y),f.addEventListener("pointerleave",w),()=>{a.removeEventListener("pointerleave",y),f.removeEventListener("pointerleave",w)}}},[a,f,v,p]),h.useEffect(()=>{if(l){const y=w=>{const E=w.target,m={x:w.clientX,y:w.clientY},d=(a==null?void 0:a.contains(E))||(f==null?void 0:f.contains(E)),g=!cx(m,l);d?p():g&&(p(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[a,f,l,u,p]),k.jsx(nh,{...e,ref:i})}),[ox,ix]=Al($l,{isInside:!1}),nh=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...s}=e,a=Ll(zr,n),u=Ol(n),{onClose:f}=a;return h.useEffect(()=>(document.addEventListener(Ta,f),()=>document.removeEventListener(Ta,f)),[f]),h.useEffect(()=>{if(a.trigger){const c=p=>{const v=p.target;v!=null&&v.contains(a.trigger)&&f()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[a.trigger,f]),k.jsx(Sm,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c=>c.preventDefault(),onDismiss:f,children:k.jsxs(Mw,{"data-state":a.stateAttribute,...u,...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:[k.jsx(wm,{children:r}),k.jsx(ox,{scope:n,isInside:!0,children:k.jsx(Zw,{id:a.contentId,role:"tooltip",children:o||r})})]})})});th.displayName=zr;var rh="TooltipArrow",lx=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ol(n);return ix(rh,n).isInside?null:k.jsx(Dw,{...o,...r,ref:t})});lx.displayName=rh;function sx(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ax(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});break}return r}function ux(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}]}function cx(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;ir!=f>r&&n<(u-s)*(r-a)/(f-a)+s&&(o=!o)}return o}function dx(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),fx(t)}function fx(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var px=Jm,mx=qm,hx=eh,oh=th;const gs=px,vs=mx,ys=hx,Di=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>k.jsx(oh,{ref:r,sideOffset:t,className:ku("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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",e),...n}));Di.displayName=oh.displayName;function gx(){const[e,t]=h.useState(null),[n,r]=h.useState(!1),[o,i]=h.useState(0),[l,s]=h.useState(100),[a,u]=h.useState(100),[f,c]=h.useState(255),[p,v]=h.useState(0),[y,w]=h.useState(0),[E,m]=h.useState("#FF0000"),d=(P,R,U)=>`#${((1<<24)+(P<<16)+(R<<8)+U).toString(16).slice(1)}`;h.useEffect(()=>{localStorage.removeItem("uploadedImage")},[]),h.useEffect(()=>{const P=localStorage.getItem("uploadedImage");P&&(t(P),g(P))},[n]);const g=P=>{const R=new Image;R.src=P,R.onload=()=>{const U=document.createElement("canvas"),j=U.getContext("2d");U.width=R.width,U.height=R.height,j.drawImage(R,0,0,R.width,R.height);const _=j.getImageData(0,0,R.width,R.height).data,$=[];for(let G=0;G<_.length;G+=4){const X=_[G],we=_[G+1],Me=_[G+2];if(_[G+3]>0){const Be=d(X,we,Me);$.push(Be)}}const L={};$.forEach(G=>{G in L?L[G]+=1:L[G]=1});const J=Object.keys(L).sort((G,X)=>L[X]-L[G])[0],W=T(J);N(W.r,W.g,W.b)}},S=P=>{const R=P.target,U=document.createElement("canvas"),j=U.getContext("2d");U.width=R.width,U.height=R.height,j.drawImage(R,0,0,R.width,R.height);const b=R.getBoundingClientRect(),_=R.width/b.width,$=R.height/b.height,L=(P.clientX-b.left)*_,z=(P.clientY-b.top)*$,J=j.getImageData(L,z,1,1).data,[W,G,X]=J;c(W),v(G),w(X),m(d(W,G,X));const we=N(W,G,X);i(we.h),s(we.s),u(we.l),dt.success("Color picked from image",{action:{label:"Close",onClick:()=>dt.dismiss()}})},C=(P,R,U)=>{P/=360,R/=100,U/=100;let j,b,_;if(R===0)j=b=_=U;else{const $=(J,W,G)=>(G<0&&(G+=1),G>1&&(G-=1),G<.16666666666666666?J+(W-J)*6*G:G<.5?W:G<.6666666666666666?J+(W-J)*(.6666666666666666-G)*6:J),L=U<.5?U*(1+R):U+R-U*R,z=2*U-L;j=$(z,L,P+1/3),b=$(z,L,P),_=$(z,L,P-1/3)}return{r:Math.round(j*255),g:Math.round(b*255),b:Math.round(_*255)}},T=P=>{const R=P.replace(/#/,"").match(/.{1,2}/g);return{r:parseInt(R[0],16),g:parseInt(R[1],16),b:parseInt(R[2],16)}},N=(P,R,U)=>{P/=255,R/=255,U/=255;const j=Math.max(P,R,U),b=Math.min(P,R,U);let _,$,L=(j+b)/2;if(j===b)_=$=0;else{const z=j-b;switch($=L>.5?z/(2-j-b):z/(j+b),j){case P:_=(R-U)/z+(Rdt.dismiss()}})}function V(){navigator.clipboard.writeText(E),dt.success("Copied HEX value to clipboard",{action:{label:"Close",onClick:()=>dt.dismiss()}})}function D(){navigator.clipboard.writeText(`${o}°, ${l}%, ${a}%`),dt.success("Copied HSL value to clipboard",{action:{label:"Close",onClick:()=>dt.dismiss()}})}const Y=P=>{i(P);const R=C(P,l,a);c(R.r),v(R.g),w(R.b),m(d(R.r,R.g,R.b))},H=P=>{s(P);const R=C(o,P,a);c(R.r),v(R.g),w(R.b),m(d(R.r,R.g,R.b))},Q=P=>{u(P);const R=C(o,l,P);c(R.r),v(R.g),w(R.b),m(d(R.r,R.g,R.b))};return n?k.jsxs("div",{className:"flex flex-col items-center justify-center p-4 h-screen bg-gray-100 dark:bg-gray-950 ",children:[k.jsx(om,{}),k.jsx("div",{className:"max-w-3xl w-full bg-white dark:bg-gray-900 rounded-lg shadow-lg overflow-hidden",style:{minHeight:"300px",minWidth:"700px"},children:k.jsxs("div",{className:"grid grid-cols-2 gap-6 p-6",children:[k.jsxs("div",{className:"relative flex justify-center items-center h-full",children:[k.jsx("img",{alt:"Uploaded Image",className:"w-full h-full object-cover rounded-lg",height:500,src:"/placeholder.svg",style:{aspectRatio:"500/500",objectFit:"cover"},width:500}),k.jsx("div",{className:"absolute inset-0 flex items-center justify-center border-black",style:{userSelect:"none",overflow:"hidden",scrollbarWidth:"none"},children:k.jsx("div",{className:"max-w-full max-h-full relative bg-black dark:bg-white rounded-lg border-black shadow-lg object-cover content-center overflow-auto",style:{aspectRatio:"500/500",objectFit:"cover",scrollbarWidth:"none"},children:e!==null?k.jsx("img",{src:e,onClick:S,alt:"Uploaded Image",className:"object-contain place-self-center"}):k.jsx(vx,{className:"w-6 h-6 text-gray-500 dark:text-gray-400"})})})]}),k.jsxs("div",{className:"flex flex-col gap-6",children:[k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("div",{className:"w-16 h-16 rounded-full border-4 border-gray-200 dark:border-gray-800 flex items-center justify-center",children:k.jsx("div",{className:"w-10 h-10 rounded-full border",style:{backgroundColor:d(f,p,y)}})}),k.jsxs("div",{className:"flex-1 grid gap-1",children:[k.jsx("div",{className:"w-20 text-sm font-medium text-gray-500 dark:text-gray-400",children:"HEX"}),k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("div",{className:"text-lg font-semibold text-gray-900 dark:text-gray-50",children:E}),k.jsx(gs,{children:k.jsxs(vs,{children:[k.jsx(ys,{children:k.jsx(Oi,{variant:"ghost",onClick:V,className:"max-h-12 max-w-12",children:k.jsx(yx,{className:"w-4 h-4 text-gray-500 dark:text-gray-400"})})}),k.jsx(Di,{children:k.jsx("span",{className:"text-sm text-muted-foreground",children:"Copy HEX"})})]})})]})]})]}),k.jsxs("div",{className:"grid gap-4",children:[k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Hue"}),k.jsx(Li,{className:"flex-1",value:[o],max:360,step:1,onValueChange:P=>Y(P)}),k.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[o,"°"]})]}),k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Saturation"}),k.jsx(Li,{className:"flex-1",value:[l],max:100,step:1,onValueChange:P=>H(P)}),k.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[l,"%"]})]}),k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Lightness"}),k.jsx(Li,{className:"flex-1",value:[a],max:100,step:1,onValueChange:P=>Q(P)}),k.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[a,"%"]})]})]}),k.jsxs("div",{className:"grid gap-2",children:[k.jsxs("div",{className:"flex items-center gap-4 group",children:[k.jsx(gs,{children:k.jsxs(vs,{children:[k.jsx(ys,{children:k.jsx(Oi,{variant:"ghost",onClick:A,className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"RGB"})}),k.jsx(Di,{children:k.jsx("span",{className:"text-sm text-muted-foreground",children:"Copy RGB"})})]})}),k.jsxs("div",{className:"flex-1 text-lg font-semibold text-gray-900 dark:text-gray-50",children:[f,", ",p,", ",y]})]}),k.jsxs("div",{className:"flex items-center gap-4 group",children:[k.jsx(gs,{children:k.jsxs(vs,{children:[k.jsx(ys,{children:k.jsx(Oi,{variant:"ghost",onClick:D,className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"HSL"})}),k.jsx(Di,{children:k.jsx("span",{className:"text-sm text-muted-foreground",children:"Copy HSL"})})]})}),k.jsxs("div",{className:"flex-1 text-lg font-semibold text-gray-900 dark:text-gray-50",children:[o,"°, ",l,"%, ",a,"%"]})]})]})]})]})})]}):k.jsx(dy,{setImage:t,setImageUploaded:r,image:e,imageUploaded:n})}function vx(e){return k.jsxs("svg",{...e,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",children:[k.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),k.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function yx(e){return k.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 115.77 122.88",style:{enableBackground:"new 0 0 115.77 122.88"},xmlSpace:"preserve",children:[k.jsx("style",{type:"text/css",children:".st0{fill-rule:evenodd;clip-rule:evenodd;}"}),k.jsx("g",{children:k.jsx("path",{className:"st0",d:"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.57,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z"})})]})}function wx(){return k.jsx("div",{className:"flex min-h-[100dvh] flex-col items-center justify-center bg-background px-4 py-12 sm:px-6 lg:px-8",children:k.jsxs("div",{className:"mx-auto max-w-md text-center",children:[k.jsx(xx,{className:"mx-auto h-12 w-12 text-primary"}),k.jsx("h1",{className:"mt-4 text-3xl font-bold tracking-tight text-foreground sm:text-4xl",children:"Sorry, this website is only available for desktop"}),k.jsx("p",{className:"mt-4 text-muted-foreground",children:"We apologize for the inconvenience, but our website is currently optimized for desktop devices only. Please try accessing this site from a computer or laptop."})]})})}function xx(e){return k.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"blue",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}),k.jsx("path",{d:"M12 18h.01"})]})}const Sx=()=>{const e=window.navigator.userAgent.toLowerCase(),t=/mobile|android|iphone|ipad|tablet|touch|samsung|fridge/i.test(e),n=window.innerWidth<=1024;return!t&&!n};function Ex(){const[e,t]=M.useState(null);return M.useEffect(()=>{t(Sx())},[]),e===!0?k.jsx(gx,{}):k.jsx(wx,{})}ws.createRoot(document.getElementById("root")).render(k.jsx(M.StrictMode,{children:k.jsx(Ex,{})})); +*/function py({image:e,setImage:t,setImageUploaded:n,imageUploaded:r}){const o=m.useRef(null),[i,l]=m.useState([]);m.useEffect(()=>{const y=localStorage.getItem("uploadedImage");y&&(t(y),p(y))},[]);const s=y=>{const w=y.target.files[0],E=new FileReader;E.onloadend=()=>{const h=E.result;t(h),localStorage.setItem("uploadedImage",h),p(h)},E.readAsDataURL(w),n(!0),dt.success("Image uploaded successfully",{action:{text:"Close",onClick:()=>{dt.dismiss()}}})},a=y=>{y.preventDefault()},u=y=>{if(y.preventDefault(),!y.dataTransfer.files[0].type.includes("image")){dt.error("File type not supported",{action:{label:"Close",onClick:()=>{dt.dismiss()}}});return}const w=y.dataTransfer.files[0],E=new FileReader;E.onloadend=()=>{const h=E.result;t(h),localStorage.setItem("uploadedImage",h),p(h)},E.readAsDataURL(w),n(!0)},f=()=>{o.current.click()},c=()=>{t(null),l([]),localStorage.removeItem("uploadedImage")};m.useEffect(()=>{c()},[e]);const p=async y=>{try{const w=new Image;w.src=y,w.onload=()=>{const E=document.createElement("canvas");E.width=w.width,E.height=w.height;const h=E.getContext("2d");h.drawImage(w,0,0);const d=h.getImageData(0,0,E.width,E.height),g={};for(let C=0;CT.count-C.count).slice(0,12).map(([C,{r:T,g:N,b:A}])=>({hex:C,r:T,g:N,b:A}));l(S)}}catch(w){console.error("Error extracting colors:",w)}},v=(y,w,E)=>"#"+((1<<24)+(y<<16)+(w<<8)+E).toString(16).slice(1);return k.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-gray-100 dark:bg-gray-900",children:[k.jsx(im,{}),k.jsxs("div",{className:"max-w-4xl w-full p-4",children:[k.jsx("div",{className:"w-full aspect-video bg-gray-200 dark:bg-gray-800 rounded-lg overflow-hidden flex items-center justify-center cursor-pointer",onDragOver:a,onDrop:u,onClick:f,style:{border:r?"none":"3px dashed #ccc"},children:e?k.jsx("img",{src:e,alt:"Uploaded Image",className:"w-full h-full object-contain"}):k.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-lg",children:"Click or Drop an Image to upload it"})}),k.jsx("input",{type:"file",accept:"image/jpeg,image/jpg,image/png,image/webp",ref:o,onChange:s,className:"hidden",limit:"1"})]})]})}function lm(e,[t,n]){return Math.min(n,Math.max(t,e))}function Cr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function sm(e,t=[]){let n=[];function r(i,l){const s=m.createContext(l),a=n.length;n=[...n,l];function u(c){const{scope:p,children:v,...y}=c,w=(p==null?void 0:p[e][a])||s,E=m.useMemo(()=>y,Object.values(y));return m.createElement(w.Provider,{value:E},v)}function f(c,p){const v=(p==null?void 0:p[e][a])||s,y=m.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(l=>m.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,my(o,...t)]}function my(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function am(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function hy({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=gy({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=am(n),a=m.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else o(u)},[i,e,o,s]);return[l,a]}function gy({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=am(t);return m.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const vy=m.createContext(void 0);function yy(e){const t=m.useContext(vy);return e||t||"ltr"}function wy(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const xy=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function Sy(e){const[t,n]=m.useState(void 0);return xy(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Ey=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],_l=Ey.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Bo:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(s,Ge({},l,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Cy(e){const t=e+"CollectionProvider",[n,r]=sm(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=v=>{const{scope:y,children:w}=v,E=M.useRef(null),h=M.useRef(new Map).current;return M.createElement(o,{scope:y,itemMap:h,collectionRef:E},w)},s=e+"CollectionSlot",a=M.forwardRef((v,y)=>{const{scope:w,children:E}=v,h=i(s,w),d=Ln(y,h.collectionRef);return M.createElement(Bo,{ref:d},E)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",c=M.forwardRef((v,y)=>{const{scope:w,children:E,...h}=v,d=M.useRef(null),g=Ln(y,d),S=i(u,w);return M.useEffect(()=>(S.itemMap.set(d,{ref:d,...h}),()=>void S.itemMap.delete(d))),M.createElement(Bo,{[f]:"",ref:g},E)});function p(v){const y=i(e+"CollectionConsumer",v);return M.useCallback(()=>{const E=y.collectionRef.current;if(!E)return[];const h=Array.from(E.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((S,C)=>h.indexOf(S.ref.current)-h.indexOf(C.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:l,Slot:a,ItemSlot:c},p,r]}const um=["PageUp","PageDown"],cm=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dm={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Xo="Slider",[va,ky,Ny]=Cy(Xo),[fm,Rx]=sm(Xo,[Ny]),[by,Al]=fm(Xo),Ty=m.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:l="horizontal",disabled:s=!1,minStepsBetweenThumbs:a=0,defaultValue:u=[r],value:f,onValueChange:c=()=>{},onValueCommit:p=()=>{},inverted:v=!1,...y}=e,[w,E]=m.useState(null),h=Ln(t,P=>E(P)),d=m.useRef(new Set),g=m.useRef(0),S=l==="horizontal",C=w?!!w.closest("form"):!0,T=S?Py:Ry,[N=[],A]=hy({prop:f,defaultProp:u,onChange:P=>{var R;(R=[...d.current][g.current])===null||R===void 0||R.focus(),c(P)}}),V=m.useRef(N);function D(P){const R=Iy(N,P);Q(P,R)}function Y(P){Q(P,g.current)}function H(){const P=V.current[g.current];N[g.current]!==P&&p(N)}function Q(P,R,{commit:U}={commit:!1}){const j=Uy(i),b=Hy(Math.round((P-r)/i)*i+r,j),_=lm(b,[r,o]);A((O=[])=>{const $=Dy(O,_,R);if(By($,a*i)){g.current=$.indexOf(_);const z=String($)!==String(O);return z&&U&&p($),z?$:O}else return O})}return m.createElement(by,{scope:e.__scopeSlider,disabled:s,min:r,max:o,valueIndexToChangeRef:g,thumbs:d.current,values:N,orientation:l},m.createElement(va.Provider,{scope:e.__scopeSlider},m.createElement(va.Slot,{scope:e.__scopeSlider},m.createElement(T,Ge({"aria-disabled":s,"data-disabled":s?"":void 0},y,{ref:h,onPointerDown:Cr(y.onPointerDown,()=>{s||(V.current=N)}),min:r,max:o,inverted:v,onSlideStart:s?void 0:D,onSlideMove:s?void 0:Y,onSlideEnd:s?void 0:H,onHomeKeyDown:()=>!s&&Q(r,0,{commit:!0}),onEndKeyDown:()=>!s&&Q(o,N.length-1,{commit:!0}),onStepKeyDown:({event:P,direction:R})=>{if(!s){const b=um.includes(P.key)||P.shiftKey&&cm.includes(P.key)?10:1,_=g.current,O=N[_],$=i*b*R;Q(O+$,_,{commit:!0})}}})))),C&&N.map((P,R)=>m.createElement(My,{key:R,name:n?n+(N.length>1?"[]":""):void 0,value:P})))}),[pm,mm]=fm(Xo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Py=m.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:l,onSlideMove:s,onSlideEnd:a,onStepKeyDown:u,...f}=e,[c,p]=m.useState(null),v=Ln(t,g=>p(g)),y=m.useRef(),w=yy(o),E=w==="ltr",h=E&&!i||!E&&i;function d(g){const S=y.current||c.getBoundingClientRect(),C=[0,S.width],N=Nu(C,h?[n,r]:[r,n]);return y.current=S,N(g-S.left)}return m.createElement(pm,{scope:e.__scopeSlider,startEdge:h?"left":"right",endEdge:h?"right":"left",direction:h?1:-1,size:"width"},m.createElement(hm,Ge({dir:w,"data-orientation":"horizontal"},f,{ref:v,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:g=>{const S=d(g.clientX);l==null||l(S)},onSlideMove:g=>{const S=d(g.clientX);s==null||s(S)},onSlideEnd:()=>{y.current=void 0,a==null||a()},onStepKeyDown:g=>{const C=dm[h?"from-left":"from-right"].includes(g.key);u==null||u({event:g,direction:C?-1:1})}})))}),Ry=m.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:l,onSlideEnd:s,onStepKeyDown:a,...u}=e,f=m.useRef(null),c=Ln(t,f),p=m.useRef(),v=!o;function y(w){const E=p.current||f.current.getBoundingClientRect(),h=[0,E.height],g=Nu(h,v?[r,n]:[n,r]);return p.current=E,g(w-E.top)}return m.createElement(pm,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1},m.createElement(hm,Ge({"data-orientation":"vertical"},u,{ref:c,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:w=>{const E=y(w.clientY);i==null||i(E)},onSlideMove:w=>{const E=y(w.clientY);l==null||l(E)},onSlideEnd:()=>{p.current=void 0,s==null||s()},onStepKeyDown:w=>{const h=dm[v?"from-bottom":"from-top"].includes(w.key);a==null||a({event:w,direction:h?-1:1})}})))}),hm=m.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:l,onEndKeyDown:s,onStepKeyDown:a,...u}=e,f=Al(Xo,n);return m.createElement(_l.span,Ge({},u,{ref:t,onKeyDown:Cr(e.onKeyDown,c=>{c.key==="Home"?(l(c),c.preventDefault()):c.key==="End"?(s(c),c.preventDefault()):um.concat(cm).includes(c.key)&&(a(c),c.preventDefault())}),onPointerDown:Cr(e.onPointerDown,c=>{const p=c.target;p.setPointerCapture(c.pointerId),c.preventDefault(),f.thumbs.has(p)?p.focus():r(c)}),onPointerMove:Cr(e.onPointerMove,c=>{c.target.hasPointerCapture(c.pointerId)&&o(c)}),onPointerUp:Cr(e.onPointerUp,c=>{const p=c.target;p.hasPointerCapture(c.pointerId)&&(p.releasePointerCapture(c.pointerId),i(c))})}))}),_y="SliderTrack",Ay=m.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Al(_y,n);return m.createElement(_l.span,Ge({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))}),yd="SliderRange",Ly=m.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Al(yd,n),i=mm(yd,n),l=m.useRef(null),s=Ln(t,l),a=o.values.length,u=o.values.map(p=>gm(p,o.min,o.max)),f=a>1?Math.min(...u):0,c=100-Math.max(...u);return m.createElement(_l.span,Ge({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:s,style:{...e.style,[i.startEdge]:f+"%",[i.endEdge]:c+"%"}}))}),wd="SliderThumb",Oy=m.forwardRef((e,t)=>{const n=ky(e.__scopeSlider),[r,o]=m.useState(null),i=Ln(t,s=>o(s)),l=m.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return m.createElement($y,Ge({},e,{ref:i,index:l}))}),$y=m.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,i=Al(wd,n),l=mm(wd,n),[s,a]=m.useState(null),u=Ln(t,E=>a(E)),f=Sy(s),c=i.values[r],p=c===void 0?0:gm(c,i.min,i.max),v=zy(r,i.values.length),y=f==null?void 0:f[l.size],w=y?jy(y,p,l.direction):0;return m.useEffect(()=>{if(s)return i.thumbs.add(s),()=>{i.thumbs.delete(s)}},[s,i.thumbs]),m.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${p}% + ${w}px)`}},m.createElement(va.ItemSlot,{scope:e.__scopeSlider},m.createElement(_l.span,Ge({role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":i.min,"aria-valuenow":c,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0},o,{ref:u,style:c===void 0?{display:"none"}:e.style,onFocus:Cr(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})}))))}),My=e=>{const{value:t,...n}=e,r=m.useRef(null),o=wy(t);return m.useEffect(()=>{const i=r.current,l=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&a){const u=new Event("input",{bubbles:!0});a.call(i,t),i.dispatchEvent(u)}},[o,t]),m.createElement("input",Ge({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function Dy(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function gm(e,t,n){const i=100/(n-t)*(e-t);return lm(i,[0,100])}function zy(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Iy(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function jy(e,t,n){const r=e/2,i=Nu([0,50],[0,r]);return(r-i(t)*n)*n}function Fy(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function By(e,t){if(t>0){const n=Fy(e);return Math.min(...n)>=t}return!0}function Nu(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Uy(e){return(String(e).split(".")[1]||"").length}function Hy(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const vm=Ty,Vy=Ay,Wy=Ly,Yy=Oy,Ii=m.forwardRef(({className:e,...t},n)=>k.jsxs(vm,{ref:n,className:ku("relative flex w-full touch-none select-none items-center",e),...t,children:[k.jsx(Vy,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:k.jsx(Wy,{className:"absolute h-full bg-primary"})}),k.jsx(Yy,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Ii.displayName=vm.displayName;function Qt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ky(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ym(...e){return t=>e.forEach(n=>Ky(n,t))}function Zo(...e){return m.useCallback(ym(...e),e)}function Gy(e,t=[]){let n=[];function r(i,l){const s=m.createContext(l),a=n.length;n=[...n,l];function u(c){const{scope:p,children:v,...y}=c,w=(p==null?void 0:p[e][a])||s,E=m.useMemo(()=>y,Object.values(y));return k.jsx(w.Provider,{value:E,children:v})}function f(c,p){const v=(p==null?void 0:p[e][a])||s,y=m.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(l=>m.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,Qy(o,...t)]}function Qy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var wm=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(Xy);if(i){const l=i.props.children,s=o.map(a=>a===i?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:a);return k.jsx(ya,{...r,ref:t,children:m.isValidElement(l)?m.cloneElement(l,void 0,s):null})}return k.jsx(ya,{...r,ref:t,children:n})});wm.displayName="Slot";var ya=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const o=Jy(n);return m.cloneElement(n,{...Zy(r,n.props),ref:t?ym(t,o):o})}return m.Children.count(n)>1?m.Children.only(null):null});ya.displayName="SlotClone";var xm=({children:e})=>k.jsx(k.Fragment,{children:e});function Xy(e){return m.isValidElement(e)&&e.type===xm}function Zy(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Jy(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],bu=qy.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?wm:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function e1(e,t){e&&Qo.flushSync(()=>e.dispatchEvent(t))}function Jo(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function t1(e,t=globalThis==null?void 0:globalThis.document){const n=Jo(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var n1="DismissableLayer",wa="dismissableLayer.update",r1="dismissableLayer.pointerDownOutside",o1="dismissableLayer.focusOutside",xd,Sm=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Em=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...a}=e,u=m.useContext(Sm),[f,c]=m.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=m.useState({}),y=Zo(t,N=>c(N)),w=Array.from(u.layers),[E]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=w.indexOf(E),d=f?w.indexOf(f):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,S=d>=h,C=s1(N=>{const A=N.target,V=[...u.branches].some(D=>D.contains(A));!S||V||(o==null||o(N),l==null||l(N),N.defaultPrevented||s==null||s())},p),T=a1(N=>{const A=N.target;[...u.branches].some(D=>D.contains(A))||(i==null||i(N),l==null||l(N),N.defaultPrevented||s==null||s())},p);return t1(N=>{d===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},p),m.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Sd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=xd)}},[f,p,n,u]),m.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Sd())},[f,u]),m.useEffect(()=>{const N=()=>v({});return document.addEventListener(wa,N),()=>document.removeEventListener(wa,N)},[]),k.jsx(bu.div,{...a,ref:y,style:{pointerEvents:g?S?"auto":"none":void 0,...e.style},onFocusCapture:Qt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Qt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Qt(e.onPointerDownCapture,C.onPointerDownCapture)})});Em.displayName=n1;var i1="DismissableLayerBranch",l1=m.forwardRef((e,t)=>{const n=m.useContext(Sm),r=m.useRef(null),o=Zo(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),k.jsx(bu.div,{...e,ref:o})});l1.displayName=i1;function s1(e,t=globalThis==null?void 0:globalThis.document){const n=Jo(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let a=function(){Cm(r1,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function a1(e,t=globalThis==null?void 0:globalThis.document){const n=Jo(e),r=m.useRef(!1);return m.useEffect(()=>{const o=i=>{i.target&&!r.current&&Cm(o1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sd(){const e=new CustomEvent(wa);document.dispatchEvent(e)}function Cm(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?e1(o,i):o.dispatchEvent(i)}var xa=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},u1=Ph.useId||(()=>{}),c1=0;function d1(e){const[t,n]=m.useState(u1());return xa(()=>{n(r=>r??String(c1++))},[e]),t?`radix-${t}`:""}const f1=["top","right","bottom","left"],Dt=Math.min,qe=Math.max,cl=Math.round,Ci=Math.floor,On=e=>({x:e,y:e}),p1={left:"right",right:"left",bottom:"top",top:"bottom"},m1={start:"end",end:"start"};function Sa(e,t,n){return qe(e,Dt(t,n))}function rn(e,t){return typeof e=="function"?e(t):e}function on(e){return e.split("-")[0]}function Vr(e){return e.split("-")[1]}function Tu(e){return e==="x"?"y":"x"}function Pu(e){return e==="y"?"height":"width"}function $n(e){return["top","bottom"].includes(on(e))?"y":"x"}function Ru(e){return Tu($n(e))}function h1(e,t,n){n===void 0&&(n=!1);const r=Vr(e),o=Ru(e),i=Pu(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=dl(l)),[l,dl(l)]}function g1(e){const t=dl(e);return[Ea(e),t,Ea(t)]}function Ea(e){return e.replace(/start|end/g,t=>m1[t])}function v1(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function y1(e,t,n,r){const o=Vr(e);let i=v1(on(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Ea)))),i}function dl(e){return e.replace(/left|right|bottom|top/g,t=>p1[t])}function w1(e){return{top:0,right:0,bottom:0,left:0,...e}}function km(e){return typeof e!="number"?w1(e):{top:e,right:e,bottom:e,left:e}}function fl(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 Ed(e,t,n){let{reference:r,floating:o}=e;const i=$n(t),l=Ru(t),s=Pu(l),a=on(t),u=i==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let v;switch(a){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:c};break;case"left":v={x:r.x-o.width,y:c};break;default:v={x:r.x,y:r.y}}switch(Vr(t)){case"start":v[l]-=p*(n&&u?-1:1);break;case"end":v[l]+=p*(n&&u?-1:1);break}return v}const x1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=Ed(u,r,a),p=r,v={},y=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:f=0}=rn(e,t)||{};if(u==null)return{};const c=km(f),p={x:n,y:r},v=Ru(o),y=Pu(v),w=await l.getDimensions(u),E=v==="y",h=E?"top":"left",d=E?"bottom":"right",g=E?"clientHeight":"clientWidth",S=i.reference[y]+i.reference[v]-p[v]-i.floating[y],C=p[v]-i.reference[v],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let N=T?T[g]:0;(!N||!await(l.isElement==null?void 0:l.isElement(T)))&&(N=s.floating[g]||i.floating[y]);const A=S/2-C/2,V=N/2-w[y]/2-1,D=Dt(c[h],V),Y=Dt(c[d],V),H=D,Q=N-w[y]-Y,P=N/2-w[y]/2+A,R=Sa(H,P,Q),U=!a.arrow&&Vr(o)!=null&&P!==R&&i.reference[y]/2-(PP<=0)){var Y,H;const P=(((Y=i.flip)==null?void 0:Y.index)||0)+1,R=N[P];if(R)return{data:{index:P,overflows:D},reset:{placement:R}};let U=(H=D.filter(j=>j.overflows[0]<=0).sort((j,b)=>j.overflows[1]-b.overflows[1])[0])==null?void 0:H.placement;if(!U)switch(v){case"bestFit":{var Q;const j=(Q=D.filter(b=>{if(T){const _=$n(b.placement);return _===d||_==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(_=>_>0).reduce((_,O)=>_+O,0)]).sort((b,_)=>b[1]-_[1])[0])==null?void 0:Q[0];j&&(U=j);break}case"initialPlacement":U=s;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function Cd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kd(e){return f1.some(t=>e[t]>=0)}const C1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=rn(e,t);switch(r){case"referenceHidden":{const i=await Uo(t,{...o,elementContext:"reference"}),l=Cd(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:kd(l)}}}case"escaped":{const i=await Uo(t,{...o,altBoundary:!0}),l=Cd(i,n.floating);return{data:{escapedOffsets:l,escaped:kd(l)}}}default:return{}}}}};async function k1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=on(n),s=Vr(n),a=$n(n)==="y",u=["left","top"].includes(l)?-1:1,f=i&&a?-1:1,c=rn(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:y}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof y=="number"&&(v=s==="end"?y*-1:y),a?{x:v*f,y:p*u}:{x:p*u,y:v*f}}const N1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,a=await k1(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},b1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:E=>{let{x:h,y:d}=E;return{x:h,y:d}}},...a}=rn(e,t),u={x:n,y:r},f=await Uo(t,a),c=$n(on(o)),p=Tu(c);let v=u[p],y=u[c];if(i){const E=p==="y"?"top":"left",h=p==="y"?"bottom":"right",d=v+f[E],g=v-f[h];v=Sa(d,v,g)}if(l){const E=c==="y"?"top":"left",h=c==="y"?"bottom":"right",d=y+f[E],g=y-f[h];y=Sa(d,y,g)}const w=s.fn({...t,[p]:v,[c]:y});return{...w,data:{x:w.x-n,y:w.y-r}}}}},T1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=rn(e,t),f={x:n,y:r},c=$n(o),p=Tu(c);let v=f[p],y=f[c];const w=rn(s,t),E=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(a){const g=p==="y"?"height":"width",S=i.reference[p]-i.floating[g]+E.mainAxis,C=i.reference[p]+i.reference[g]-E.mainAxis;vC&&(v=C)}if(u){var h,d;const g=p==="y"?"width":"height",S=["top","left"].includes(on(o)),C=i.reference[c]-i.floating[g]+(S&&((h=l.offset)==null?void 0:h[c])||0)+(S?0:E.crossAxis),T=i.reference[c]+i.reference[g]+(S?0:((d=l.offset)==null?void 0:d[c])||0)-(S?E.crossAxis:0);yT&&(y=T)}return{[p]:v,[c]:y}}}},P1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...s}=rn(e,t),a=await Uo(t,s),u=on(n),f=Vr(n),c=$n(n)==="y",{width:p,height:v}=r.floating;let y,w;u==="top"||u==="bottom"?(y=u,w=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(w=u,y=f==="end"?"top":"bottom");const E=v-a.top-a.bottom,h=p-a.left-a.right,d=Dt(v-a[y],E),g=Dt(p-a[w],h),S=!t.middlewareData.shift;let C=d,T=g;if(c?T=f||S?Dt(g,h):h:C=f||S?Dt(d,E):E,S&&!f){const A=qe(a.left,0),V=qe(a.right,0),D=qe(a.top,0),Y=qe(a.bottom,0);c?T=p-2*(A!==0||V!==0?A+V:qe(a.left,a.right)):C=v-2*(D!==0||Y!==0?D+Y:qe(a.top,a.bottom))}await l({...t,availableWidth:T,availableHeight:C});const N=await o.getDimensions(i.floating);return p!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function Wr(e){return Nm(e)?(e.nodeName||"").toLowerCase():"#document"}function nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sn(e){var t;return(t=(Nm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Nm(e){return e instanceof Node||e instanceof nt(e).Node}function _t(e){return e instanceof Element||e instanceof nt(e).Element}function jt(e){return e instanceof HTMLElement||e instanceof nt(e).HTMLElement}function Nd(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof nt(e).ShadowRoot}function qo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=At(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function R1(e){return["table","td","th"].includes(Wr(e))}function Ll(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function _u(e){const t=Au(),n=_t(e)?At(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function _1(e){let t=Mn(e);for(;jt(t)&&!Ir(t);){if(_u(t))return t;if(Ll(t))return null;t=Mn(t)}return null}function Au(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ir(e){return["html","body","#document"].includes(Wr(e))}function At(e){return nt(e).getComputedStyle(e)}function Ol(e){return _t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mn(e){if(Wr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nd(e)&&e.host||sn(e);return Nd(t)?t.host:t}function bm(e){const t=Mn(e);return Ir(t)?e.ownerDocument?e.ownerDocument.body:e.body:jt(t)&&qo(t)?t:bm(t)}function Ho(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=bm(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=nt(o);return i?t.concat(l,l.visualViewport||[],qo(o)?o:[],l.frameElement&&n?Ho(l.frameElement):[]):t.concat(o,Ho(o,[],n))}function Tm(e){const t=At(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=jt(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=cl(n)!==i||cl(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Lu(e){return _t(e)?e:e.contextElement}function _r(e){const t=Lu(e);if(!jt(t))return On(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tm(t);let l=(i?cl(n.width):n.width)/r,s=(i?cl(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const A1=On(0);function Pm(e){const t=nt(e);return!Au()||!t.visualViewport?A1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function L1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==nt(e)?!1:t}function qn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Lu(e);let l=On(1);t&&(r?_t(r)&&(l=_r(r)):l=_r(e));const s=L1(i,n,r)?Pm(i):On(0);let a=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,f=o.width/l.x,c=o.height/l.y;if(i){const p=nt(i),v=r&&_t(r)?nt(r):r;let y=p,w=y.frameElement;for(;w&&r&&v!==y;){const E=_r(w),h=w.getBoundingClientRect(),d=At(w),g=h.left+(w.clientLeft+parseFloat(d.paddingLeft))*E.x,S=h.top+(w.clientTop+parseFloat(d.paddingTop))*E.y;a*=E.x,u*=E.y,f*=E.x,c*=E.y,a+=g,u+=S,y=nt(w),w=y.frameElement}}return fl({width:f,height:c,x:a,y:u})}function O1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=sn(r),s=t?Ll(t.floating):!1;if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=On(1);const f=On(0),c=jt(r);if((c||!c&&!i)&&((Wr(r)!=="body"||qo(l))&&(a=Ol(r)),jt(r))){const p=qn(r);u=_r(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+f.x,y:n.y*u.y-a.scrollTop*u.y+f.y}}function $1(e){return Array.from(e.getClientRects())}function Rm(e){return qn(sn(e)).left+Ol(e).scrollLeft}function M1(e){const t=sn(e),n=Ol(e),r=e.ownerDocument.body,o=qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Rm(e);const s=-n.scrollTop;return At(r).direction==="rtl"&&(l+=qe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function D1(e,t){const n=nt(e),r=sn(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const u=Au();(!u||u&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}function z1(e,t){const n=qn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=jt(e)?_r(e):On(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:l,height:s,x:a,y:u}}function bd(e,t,n){let r;if(t==="viewport")r=D1(e,n);else if(t==="document")r=M1(sn(e));else if(_t(t))r=z1(t,n);else{const o=Pm(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return fl(r)}function _m(e,t){const n=Mn(e);return n===t||!_t(n)||Ir(n)?!1:At(n).position==="fixed"||_m(n,t)}function I1(e,t){const n=t.get(e);if(n)return n;let r=Ho(e,[],!1).filter(s=>_t(s)&&Wr(s)!=="body"),o=null;const i=At(e).position==="fixed";let l=i?Mn(e):e;for(;_t(l)&&!Ir(l);){const s=At(l),a=_u(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||qo(l)&&!a&&_m(e,l))?r=r.filter(f=>f!==l):o=s,l=Mn(l)}return t.set(e,r),r}function j1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?Ll(t)?[]:I1(t,this._c):[].concat(n),r],s=l[0],a=l.reduce((u,f)=>{const c=bd(t,f,o);return u.top=qe(c.top,u.top),u.right=Dt(c.right,u.right),u.bottom=Dt(c.bottom,u.bottom),u.left=qe(c.left,u.left),u},bd(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function F1(e){const{width:t,height:n}=Tm(e);return{width:t,height:n}}function B1(e,t,n){const r=jt(t),o=sn(t),i=n==="fixed",l=qn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=On(0);if(r||!r&&!i)if((Wr(t)!=="body"||qo(o))&&(s=Ol(t)),r){const c=qn(t,!0,i,t);a.x=c.x+t.clientLeft,a.y=c.y+t.clientTop}else o&&(a.x=Rm(o));const u=l.left+s.scrollLeft-a.x,f=l.top+s.scrollTop-a.y;return{x:u,y:f,width:l.width,height:l.height}}function ys(e){return At(e).position==="static"}function Td(e,t){return!jt(e)||At(e).position==="fixed"?null:t?t(e):e.offsetParent}function Am(e,t){const n=nt(e);if(Ll(e))return n;if(!jt(e)){let o=Mn(e);for(;o&&!Ir(o);){if(_t(o)&&!ys(o))return o;o=Mn(o)}return n}let r=Td(e,t);for(;r&&R1(r)&&ys(r);)r=Td(r,t);return r&&Ir(r)&&ys(r)&&!_u(r)?n:r||_1(e)||n}const U1=async function(e){const t=this.getOffsetParent||Am,n=this.getDimensions,r=await n(e.floating);return{reference:B1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function H1(e){return At(e).direction==="rtl"}const V1={convertOffsetParentRelativeRectToViewportRelativeRect:O1,getDocumentElement:sn,getClippingRect:j1,getOffsetParent:Am,getElementRects:U1,getClientRects:$1,getDimensions:F1,getScale:_r,isElement:_t,isRTL:H1};function W1(e,t){let n=null,r;const o=sn(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const{left:u,top:f,width:c,height:p}=e.getBoundingClientRect();if(s||t(),!c||!p)return;const v=Ci(f),y=Ci(o.clientWidth-(u+c)),w=Ci(o.clientHeight-(f+p)),E=Ci(u),d={rootMargin:-v+"px "+-y+"px "+-w+"px "+-E+"px",threshold:qe(0,Dt(1,a))||1};let g=!0;function S(C){const T=C[0].intersectionRatio;if(T!==a){if(!g)return l();T?l(!1,T):r=setTimeout(()=>{l(!1,1e-7)},1e3)}g=!1}try{n=new IntersectionObserver(S,{...d,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,d)}n.observe(e)}return l(!0),i}function Y1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Lu(e),f=o||i?[...u?Ho(u):[],...Ho(t)]:[];f.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n)});const c=u&&s?W1(u,n):null;let p=-1,v=null;l&&(v=new ResizeObserver(h=>{let[d]=h;d&&d.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var g;(g=v)==null||g.observe(t)})),n()}),u&&!a&&v.observe(u),v.observe(t));let y,w=a?qn(e):null;a&&E();function E(){const h=qn(e);w&&(h.x!==w.x||h.y!==w.y||h.width!==w.width||h.height!==w.height)&&n(),w=h,y=requestAnimationFrame(E)}return n(),()=>{var h;f.forEach(d=>{o&&d.removeEventListener("scroll",n),i&&d.removeEventListener("resize",n)}),c==null||c(),(h=v)==null||h.disconnect(),v=null,a&&cancelAnimationFrame(y)}}const K1=N1,G1=b1,Q1=E1,X1=P1,Z1=C1,Pd=S1,J1=T1,q1=(e,t,n)=>{const r=new Map,o={platform:V1,...n},i={...o.platform,_c:r};return x1(e,t,{...o,platform:i})};var ji=typeof document<"u"?m.useLayoutEffect:m.useEffect;function pl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!pl(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;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!pl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Lm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rd(e,t){const n=Lm(e);return Math.round(t*n)/n}function _d(e){const t=m.useRef(e);return ji(()=>{t.current=e}),t}function ew(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[f,c]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=m.useState(r);pl(p,r)||v(r);const[y,w]=m.useState(null),[E,h]=m.useState(null),d=m.useCallback(j=>{j!==T.current&&(T.current=j,w(j))},[]),g=m.useCallback(j=>{j!==N.current&&(N.current=j,h(j))},[]),S=i||y,C=l||E,T=m.useRef(null),N=m.useRef(null),A=m.useRef(f),V=a!=null,D=_d(a),Y=_d(o),H=m.useCallback(()=>{if(!T.current||!N.current)return;const j={placement:t,strategy:n,middleware:p};Y.current&&(j.platform=Y.current),q1(T.current,N.current,j).then(b=>{const _={...b,isPositioned:!0};Q.current&&!pl(A.current,_)&&(A.current=_,Qo.flushSync(()=>{c(_)}))})},[p,t,n,Y]);ji(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,c(j=>({...j,isPositioned:!1})))},[u]);const Q=m.useRef(!1);ji(()=>(Q.current=!0,()=>{Q.current=!1}),[]),ji(()=>{if(S&&(T.current=S),C&&(N.current=C),S&&C){if(D.current)return D.current(S,C,H);H()}},[S,C,H,D,V]);const P=m.useMemo(()=>({reference:T,floating:N,setReference:d,setFloating:g}),[d,g]),R=m.useMemo(()=>({reference:S,floating:C}),[S,C]),U=m.useMemo(()=>{const j={position:n,left:0,top:0};if(!R.floating)return j;const b=Rd(R.floating,f.x),_=Rd(R.floating,f.y);return s?{...j,transform:"translate("+b+"px, "+_+"px)",...Lm(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:b,top:_}},[n,s,R.floating,f.x,f.y]);return m.useMemo(()=>({...f,update:H,refs:P,elements:R,floatingStyles:U}),[f,H,P,R,U])}const tw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Pd({element:r.current,padding:o}).fn(n):{}:r?Pd({element:r,padding:o}).fn(n):{}}}},nw=(e,t)=>({...K1(e),options:[e,t]}),rw=(e,t)=>({...G1(e),options:[e,t]}),ow=(e,t)=>({...J1(e),options:[e,t]}),iw=(e,t)=>({...Q1(e),options:[e,t]}),lw=(e,t)=>({...X1(e),options:[e,t]}),sw=(e,t)=>({...Z1(e),options:[e,t]}),aw=(e,t)=>({...tw(e),options:[e,t]});function uw(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function cw(...e){return t=>e.forEach(n=>uw(n,t))}var Om=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(fw);if(i){const l=i.props.children,s=o.map(a=>a===i?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:a);return k.jsx(Ca,{...r,ref:t,children:m.isValidElement(l)?m.cloneElement(l,void 0,s):null})}return k.jsx(Ca,{...r,ref:t,children:n})});Om.displayName="Slot";var Ca=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const o=mw(n);return m.cloneElement(n,{...pw(r,n.props),ref:t?cw(t,o):o})}return m.Children.count(n)>1?m.Children.only(null):null});Ca.displayName="SlotClone";var dw=({children:e})=>k.jsx(k.Fragment,{children:e});function fw(e){return m.isValidElement(e)&&e.type===dw}function pw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function mw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],gw=hw.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Om:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),vw="Arrow",$m=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return k.jsx(gw.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:k.jsx("polygon",{points:"0,0 30,0 15,10"})})});$m.displayName=vw;var yw=$m;function ww(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Mm(...e){return t=>e.forEach(n=>ww(n,t))}function Dm(...e){return m.useCallback(Mm(...e),e)}function xw(e,t=[]){let n=[];function r(i,l){const s=m.createContext(l),a=n.length;n=[...n,l];function u(c){const{scope:p,children:v,...y}=c,w=(p==null?void 0:p[e][a])||s,E=m.useMemo(()=>y,Object.values(y));return k.jsx(w.Provider,{value:E,children:v})}function f(c,p){const v=(p==null?void 0:p[e][a])||s,y=m.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(l=>m.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,Sw(o,...t)]}function Sw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var zm=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(Cw);if(i){const l=i.props.children,s=o.map(a=>a===i?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:a);return k.jsx(ka,{...r,ref:t,children:m.isValidElement(l)?m.cloneElement(l,void 0,s):null})}return k.jsx(ka,{...r,ref:t,children:n})});zm.displayName="Slot";var ka=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const o=Nw(n);return m.cloneElement(n,{...kw(r,n.props),ref:t?Mm(t,o):o})}return m.Children.count(n)>1?m.Children.only(null):null});ka.displayName="SlotClone";var Ew=({children:e})=>k.jsx(k.Fragment,{children:e});function Cw(e){return m.isValidElement(e)&&e.type===Ew}function kw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Nw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Im=bw.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?zm:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Tw(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Na=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function Pw(e){const[t,n]=m.useState(void 0);return Na(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ou="Popper",[jm,Fm]=xw(Ou),[Rw,Bm]=jm(Ou),Um=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return k.jsx(Rw,{scope:t,anchor:r,onAnchorChange:o,children:n})};Um.displayName=Ou;var Hm="PopperAnchor",Vm=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Bm(Hm,n),l=m.useRef(null),s=Dm(t,l);return m.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:k.jsx(Im.div,{...o,ref:s})});Vm.displayName=Hm;var $u="PopperContent",[_w,Aw]=jm($u),Wm=m.forwardRef((e,t)=>{var we,Me,wt,Be,st,be;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:y,...w}=e,E=Bm($u,n),[h,d]=m.useState(null),g=Dm(t,xt=>d(xt)),[S,C]=m.useState(null),T=Pw(S),N=(T==null?void 0:T.width)??0,A=(T==null?void 0:T.height)??0,V=r+(i!=="center"?"-"+i:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Y=Array.isArray(u)?u:[u],H=Y.length>0,Q={padding:D,boundary:Y.filter(Ow),altBoundary:H},{refs:P,floatingStyles:R,placement:U,isPositioned:j,middlewareData:b}=ew({strategy:"fixed",placement:V,whileElementsMounted:(...xt)=>Y1(...xt,{animationFrame:v==="always"}),elements:{reference:E.anchor},middleware:[nw({mainAxis:o+A,alignmentAxis:l}),a&&rw({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?ow():void 0,...Q}),a&&iw({...Q}),lw({...Q,apply:({elements:xt,rects:an,availableWidth:he,availableHeight:Qe})=>{const{width:un,height:nr}=an.reference,at=xt.floating.style;at.setProperty("--radix-popper-available-width",`${he}px`),at.setProperty("--radix-popper-available-height",`${Qe}px`),at.setProperty("--radix-popper-anchor-width",`${un}px`),at.setProperty("--radix-popper-anchor-height",`${nr}px`)}}),S&&aw({element:S,padding:s}),$w({arrowWidth:N,arrowHeight:A}),p&&sw({strategy:"referenceHidden",...Q})]}),[_,O]=Gm(U),$=Tw(y);Na(()=>{j&&($==null||$())},[j,$]);const z=(we=b.arrow)==null?void 0:we.x,J=(Me=b.arrow)==null?void 0:Me.y,W=((wt=b.arrow)==null?void 0:wt.centerOffset)!==0,[G,X]=m.useState();return Na(()=>{h&&X(window.getComputedStyle(h).zIndex)},[h]),k.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:j?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[(Be=b.transformOrigin)==null?void 0:Be.x,(st=b.transformOrigin)==null?void 0:st.y].join(" "),...((be=b.hide)==null?void 0:be.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:k.jsx(_w,{scope:n,placedSide:_,onArrowChange:C,arrowX:z,arrowY:J,shouldHideArrow:W,children:k.jsx(Im.div,{"data-side":_,"data-align":O,...w,ref:g,style:{...w.style,animation:j?void 0:"none"}})})})});Wm.displayName=$u;var Ym="PopperArrow",Lw={top:"bottom",right:"left",bottom:"top",left:"right"},Km=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Aw(Ym,r),l=Lw[i.placedSide];return k.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:k.jsx(yw,{...o,ref:n,style:{...o.style,display:"block"}})})});Km.displayName=Ym;function Ow(e){return e!==null}var $w=e=>({name:"transformOrigin",options:e,fn(t){var E,h,d;const{placement:n,rects:r,middlewareData:o}=t,l=((E=o.arrow)==null?void 0:E.centerOffset)!==0,s=l?0:e.arrowWidth,a=l?0:e.arrowHeight,[u,f]=Gm(n),c={start:"0%",center:"50%",end:"100%"}[f],p=(((h=o.arrow)==null?void 0:h.x)??0)+s/2,v=(((d=o.arrow)==null?void 0:d.y)??0)+a/2;let y="",w="";return u==="bottom"?(y=l?c:`${p}px`,w=`${-a}px`):u==="top"?(y=l?c:`${p}px`,w=`${r.floating.height+a}px`):u==="right"?(y=`${-a}px`,w=l?c:`${v}px`):u==="left"&&(y=`${r.floating.width+a}px`,w=l?c:`${v}px`),{data:{x:y,y:w}}}});function Gm(e){const[t,n="center"]=e.split("-");return[t,n]}var Mw=Um,Dw=Vm,zw=Wm,Iw=Km;function jw(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var Qm=e=>{const{present:t,children:n}=e,r=Fw(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=Zo(r.ref,Bw(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:i}):null};Qm.displayName="Presence";function Fw(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),l=e?"mounted":"unmounted",[s,a]=jw(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=ki(r.current);i.current=s==="mounted"?u:"none"},[s]),xa(()=>{const u=r.current,f=o.current;if(f!==e){const p=i.current,v=ki(u);e?a("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(f&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),xa(()=>{if(t){const u=c=>{const v=ki(r.current).includes(c.animationName);c.target===t&&v&&Qo.flushSync(()=>a("ANIMATION_END"))},f=c=>{c.target===t&&(i.current=ki(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:m.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ki(e){return(e==null?void 0:e.animationName)||"none"}function Bw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Uw({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Hw({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=Jo(n),a=m.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else o(u)},[i,e,o,s]);return[l,a]}function Hw({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=Jo(t);return m.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function Vw(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ww(...e){return t=>e.forEach(n=>Vw(n,t))}var Xm=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(Kw);if(i){const l=i.props.children,s=o.map(a=>a===i?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:a);return k.jsx(ba,{...r,ref:t,children:m.isValidElement(l)?m.cloneElement(l,void 0,s):null})}return k.jsx(ba,{...r,ref:t,children:n})});Xm.displayName="Slot";var ba=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const o=Qw(n);return m.cloneElement(n,{...Gw(r,n.props),ref:t?Ww(t,o):o})}return m.Children.count(n)>1?m.Children.only(null):null});ba.displayName="SlotClone";var Yw=({children:e})=>k.jsx(k.Fragment,{children:e});function Kw(e){return m.isValidElement(e)&&e.type===Yw}function Gw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Qw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Zw=Xw.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Xm:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Jw="VisuallyHidden",Zm=m.forwardRef((e,t)=>k.jsx(Zw.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}}));Zm.displayName=Jw;var qw=Zm,[$l,_x]=Gy("Tooltip",[Fm]),Ml=Fm(),Jm="TooltipProvider",ex=700,Ta="tooltip.open",[tx,Mu]=$l(Jm),qm=e=>{const{__scopeTooltip:t,delayDuration:n=ex,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[l,s]=m.useState(!0),a=m.useRef(!1),u=m.useRef(0);return m.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),k.jsx(tx,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:m.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(f=>{a.current=f},[]),disableHoverableContent:o,children:i})};qm.displayName=Jm;var Dl="Tooltip",[nx,zl]=$l(Dl),eh=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:s}=e,a=Mu(Dl,e.__scopeTooltip),u=Ml(t),[f,c]=m.useState(null),p=d1(),v=m.useRef(0),y=l??a.disableHoverableContent,w=s??a.delayDuration,E=m.useRef(!1),[h=!1,d]=Uw({prop:r,defaultProp:o,onChange:N=>{N?(a.onOpen(),document.dispatchEvent(new CustomEvent(Ta))):a.onClose(),i==null||i(N)}}),g=m.useMemo(()=>h?E.current?"delayed-open":"instant-open":"closed",[h]),S=m.useCallback(()=>{window.clearTimeout(v.current),E.current=!1,d(!0)},[d]),C=m.useCallback(()=>{window.clearTimeout(v.current),d(!1)},[d]),T=m.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{E.current=!0,d(!0)},w)},[w,d]);return m.useEffect(()=>()=>window.clearTimeout(v.current),[]),k.jsx(Mw,{...u,children:k.jsx(nx,{scope:t,contentId:p,open:h,stateAttribute:g,trigger:f,onTriggerChange:c,onTriggerEnter:m.useCallback(()=>{a.isOpenDelayed?T():S()},[a.isOpenDelayed,T,S]),onTriggerLeave:m.useCallback(()=>{y?C():window.clearTimeout(v.current)},[C,y]),onOpen:S,onClose:C,disableHoverableContent:y,children:n})})};eh.displayName=Dl;var Pa="TooltipTrigger",th=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=zl(Pa,n),i=Mu(Pa,n),l=Ml(n),s=m.useRef(null),a=Zo(t,s,o.onTriggerChange),u=m.useRef(!1),f=m.useRef(!1),c=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),k.jsx(Dw,{asChild:!0,...l,children:k.jsx(bu.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:Qt(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Qt(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Qt(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Qt(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Qt(e.onBlur,o.onClose),onClick:Qt(e.onClick,o.onClose)})})});th.displayName=Pa;var rx="TooltipPortal",[Ax,ox]=$l(rx,{forceMount:void 0}),jr="TooltipContent",nh=m.forwardRef((e,t)=>{const n=ox(jr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=zl(jr,e.__scopeTooltip);return k.jsx(Qm,{present:r||l.open,children:l.disableHoverableContent?k.jsx(rh,{side:o,...i,ref:t}):k.jsx(ix,{side:o,...i,ref:t})})}),ix=m.forwardRef((e,t)=>{const n=zl(jr,e.__scopeTooltip),r=Mu(jr,e.__scopeTooltip),o=m.useRef(null),i=Zo(t,o),[l,s]=m.useState(null),{trigger:a,onClose:u}=n,f=o.current,{onPointerInTransitChange:c}=r,p=m.useCallback(()=>{s(null),c(!1)},[c]),v=m.useCallback((y,w)=>{const E=y.currentTarget,h={x:y.clientX,y:y.clientY},d=ux(h,E.getBoundingClientRect()),g=cx(h,d),S=dx(w.getBoundingClientRect()),C=px([...g,...S]);s(C),c(!0)},[c]);return m.useEffect(()=>()=>p(),[p]),m.useEffect(()=>{if(a&&f){const y=E=>v(E,f),w=E=>v(E,a);return a.addEventListener("pointerleave",y),f.addEventListener("pointerleave",w),()=>{a.removeEventListener("pointerleave",y),f.removeEventListener("pointerleave",w)}}},[a,f,v,p]),m.useEffect(()=>{if(l){const y=w=>{const E=w.target,h={x:w.clientX,y:w.clientY},d=(a==null?void 0:a.contains(E))||(f==null?void 0:f.contains(E)),g=!fx(h,l);d?p():g&&(p(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[a,f,l,u,p]),k.jsx(rh,{...e,ref:i})}),[lx,sx]=$l(Dl,{isInside:!1}),rh=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...s}=e,a=zl(jr,n),u=Ml(n),{onClose:f}=a;return m.useEffect(()=>(document.addEventListener(Ta,f),()=>document.removeEventListener(Ta,f)),[f]),m.useEffect(()=>{if(a.trigger){const c=p=>{const v=p.target;v!=null&&v.contains(a.trigger)&&f()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[a.trigger,f]),k.jsx(Em,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c=>c.preventDefault(),onDismiss:f,children:k.jsxs(zw,{"data-state":a.stateAttribute,...u,...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:[k.jsx(xm,{children:r}),k.jsx(lx,{scope:n,isInside:!0,children:k.jsx(qw,{id:a.contentId,role:"tooltip",children:o||r})})]})})});nh.displayName=jr;var oh="TooltipArrow",ax=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ml(n);return sx(oh,n).isInside?null:k.jsx(Iw,{...o,...r,ref:t})});ax.displayName=oh;function ux(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function cx(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});break}return r}function dx(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}]}function fx(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;ir!=f>r&&n<(u-s)*(r-a)/(f-a)+s&&(o=!o)}return o}function px(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),mx(t)}function mx(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var hx=qm,gx=eh,vx=th,ih=nh;const so=hx,ao=gx,uo=vx,cr=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>k.jsx(ih,{ref:r,sideOffset:t,className:ku("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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",e),...n}));cr.displayName=ih.displayName;/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lh=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var wx={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"};/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xx=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...s},a)=>m.createElement("svg",{ref:a,...wx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:lh("lucide",o),...s},[...l.map(([u,f])=>m.createElement(u,f)),...Array.isArray(i)?i:[i]]));/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Sx=(e,t)=>{const n=m.forwardRef(({className:r,...o},i)=>m.createElement(xx,{ref:i,iconNode:t,className:lh(`lucide-${yx(e)}`,r),...o}));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ad=Sx("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);function Ex(){const[e,t]=m.useState(null),[n,r]=m.useState(!1),[o,i]=m.useState(0),[l,s]=m.useState(100),[a,u]=m.useState(100),[f,c]=m.useState(255),[p,v]=m.useState(0),[y,w]=m.useState(0),[E,h]=m.useState("#FF0000"),d=(P,R,U)=>`#${((1<<24)+(P<<16)+(R<<8)+U).toString(16).slice(1)}`;m.useEffect(()=>{localStorage.removeItem("uploadedImage")},[]),m.useEffect(()=>{const P=localStorage.getItem("uploadedImage");P&&(t(P),g(P))},[n]);const g=P=>{const R=new Image;R.src=P,R.onload=()=>{const U=document.createElement("canvas"),j=U.getContext("2d");U.width=R.width,U.height=R.height,j.drawImage(R,0,0,R.width,R.height);const _=j.getImageData(0,0,R.width,R.height).data,O=[];for(let G=0;G<_.length;G+=4){const X=_[G],we=_[G+1],Me=_[G+2];if(_[G+3]>0){const Be=d(X,we,Me);O.push(Be)}}const $={};O.forEach(G=>{G in $?$[G]+=1:$[G]=1});const J=Object.keys($).sort((G,X)=>$[X]-$[G])[0],W=T(J);N(W.r,W.g,W.b)}},S=P=>{const R=P.target,U=document.createElement("canvas"),j=U.getContext("2d");U.width=R.width,U.height=R.height,j.drawImage(R,0,0,R.width,R.height);const b=R.getBoundingClientRect(),_=R.width/b.width,O=R.height/b.height,$=(P.clientX-b.left)*_,z=(P.clientY-b.top)*O,J=j.getImageData($,z,1,1).data,[W,G,X]=J;c(W),v(G),w(X),h(d(W,G,X));const we=N(W,G,X);i(we.h),s(we.s),u(we.l),dt.success("Color picked from image",{action:{label:"Close",onClick:()=>dt.dismiss()}})},C=(P,R,U)=>{P/=360,R/=100,U/=100;let j,b,_;if(R===0)j=b=_=U;else{const O=(J,W,G)=>(G<0&&(G+=1),G>1&&(G-=1),G<.16666666666666666?J+(W-J)*6*G:G<.5?W:G<.6666666666666666?J+(W-J)*(.6666666666666666-G)*6:J),$=U<.5?U*(1+R):U+R-U*R,z=2*U-$;j=O(z,$,P+1/3),b=O(z,$,P),_=O(z,$,P-1/3)}return{r:Math.round(j*255),g:Math.round(b*255),b:Math.round(_*255)}},T=P=>{const R=P.replace(/#/,"").match(/.{1,2}/g);return{r:parseInt(R[0],16),g:parseInt(R[1],16),b:parseInt(R[2],16)}},N=(P,R,U)=>{P/=255,R/=255,U/=255;const j=Math.max(P,R,U),b=Math.min(P,R,U);let _,O,$=(j+b)/2;if(j===b)_=O=0;else{const z=j-b;switch(O=$>.5?z/(2-j-b):z/(j+b),j){case P:_=(R-U)/z+(Rdt.dismiss()}})}function V(){navigator.clipboard.writeText(E),dt.success("Copied HEX value to clipboard",{action:{label:"Close",onClick:()=>dt.dismiss()}})}function D(){navigator.clipboard.writeText(`${o}°, ${l}%, ${a}%`),dt.success("Copied HSL value to clipboard",{action:{label:"Close",onClick:()=>dt.dismiss()}})}const Y=P=>{i(P);const R=C(P,l,a);c(R.r),v(R.g),w(R.b),h(d(R.r,R.g,R.b))},H=P=>{s(P);const R=C(o,P,a);c(R.r),v(R.g),w(R.b),h(d(R.r,R.g,R.b))},Q=P=>{u(P);const R=C(o,l,P);c(R.r),v(R.g),w(R.b),h(d(R.r,R.g,R.b))};return n?k.jsxs("div",{className:"flex flex-col items-center justify-center p-4 h-screen bg-gray-100 dark:bg-gray-950 ",children:[k.jsx(im,{}),k.jsx("div",{className:"max-w-3xl w-full bg-white dark:bg-gray-900 rounded-lg shadow-lg overflow-hidden",style:{minHeight:"300px",minWidth:"700px"},children:k.jsxs("div",{className:"grid grid-cols-2 gap-6 p-6",children:[k.jsxs("div",{className:"relative flex justify-center items-center h-full",children:[k.jsx("img",{alt:"Uploaded Image",className:"w-full h-full object-cover rounded-lg",height:500,src:"/placeholder.svg",style:{aspectRatio:"500/500",objectFit:"cover"},width:500}),k.jsx("div",{className:"absolute inset-0 flex items-center justify-center border-black",style:{userSelect:"none",overflow:"hidden",scrollbarWidth:"none"},children:k.jsx("div",{className:"max-w-full max-h-full relative bg-black dark:bg-white rounded-lg border-black shadow-lg object-cover content-center overflow-auto",style:{aspectRatio:"500/500",objectFit:"cover",scrollbarWidth:"none"},children:e!==null?k.jsx("img",{src:e,onClick:S,alt:"Uploaded Image",className:"object-contain place-self-center"}):k.jsx(Cx,{className:"w-6 h-6 text-gray-500 dark:text-gray-400"})})})]}),k.jsxs("div",{className:"flex flex-col gap-6",children:[k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("div",{className:"w-16 h-16 rounded-full border-4 border-gray-200 dark:border-gray-800 flex items-center justify-center",children:k.jsx("div",{className:"w-10 h-10 rounded-full border",style:{backgroundColor:d(f,p,y)}})}),k.jsxs("div",{className:"flex-1 grid gap-1",children:[k.jsx("div",{className:"w-20 text-sm font-medium text-gray-500 dark:text-gray-400",children:"HEX"}),k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("div",{className:"text-lg font-semibold text-gray-900 dark:text-gray-50",children:E}),k.jsx(so,{children:k.jsxs(ao,{children:[k.jsx(uo,{children:k.jsx(ur,{variant:"ghost",onClick:V,className:"max-h-12 max-w-12",children:k.jsx(kx,{className:"w-4 h-4 text-gray-500 dark:text-gray-400"})})}),k.jsx(cr,{children:k.jsx("span",{className:"text-sm text-muted-foreground",children:"Copy HEX"})})]})})]})]})]}),k.jsxs("div",{className:"grid gap-4",children:[k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Hue"}),k.jsx(Ii,{className:"flex-1",value:[o],max:360,step:1,onValueChange:P=>Y(P)}),k.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[o,"°"]})]}),k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Saturation"}),k.jsx(Ii,{className:"flex-1",value:[l],max:100,step:1,onValueChange:P=>H(P)}),k.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[l,"%"]})]}),k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Lightness"}),k.jsx(Ii,{className:"flex-1",value:[a],max:100,step:1,onValueChange:P=>Q(P)}),k.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[a,"%"]})]})]}),k.jsxs("div",{className:"grid gap-2",children:[k.jsxs("div",{className:"flex items-center gap-4 group",children:[k.jsx(so,{children:k.jsxs(ao,{children:[k.jsx(uo,{children:k.jsx(ur,{variant:"ghost",onClick:A,className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"RGB"})}),k.jsx(cr,{children:k.jsx("span",{className:"text-sm text-muted-foreground",children:"Copy RGB"})})]})}),k.jsxs("div",{className:"flex-1 text-lg font-semibold text-gray-900 dark:text-gray-50",children:[f,", ",p,", ",y]}),k.jsx(so,{children:k.jsxs(ao,{children:[k.jsx(uo,{children:k.jsx(ur,{variant:"outline",size:"icon",className:"h-8 w-8 text-right opacity-100 group-hover:opacity-100",children:k.jsx(Ad,{className:"w-4 h-4"})})}),k.jsx(cr,{children:k.jsx("span",{className:"text-sm text-muted-foreground",children:"Switch to RGB"})})]})})]}),k.jsxs("div",{className:"flex items-center gap-4 group",children:[k.jsx(so,{children:k.jsxs(ao,{children:[k.jsx(uo,{children:k.jsx(ur,{variant:"ghost",onClick:D,className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"HSL"})}),k.jsx(cr,{children:k.jsx("span",{className:"text-sm text-muted-foreground",children:"Copy HSL"})})]})}),k.jsxs("div",{className:"flex-1 text-lg font-semibold text-gray-900 dark:text-gray-50",children:[o,"°, ",l,"%, ",a,"%"]}),k.jsx(so,{children:k.jsxs(ao,{children:[k.jsx(uo,{children:k.jsx(ur,{variant:"outline",size:"icon",className:"h-8 w-8 text-right opacity-100 group-hover:opacity-100",children:k.jsx(Ad,{className:"w-4 h-4"})})}),k.jsx(cr,{children:k.jsx("span",{className:"text-sm text-muted-foreground",children:"Switch to HSL"})})]})})]})]})]})]})})]}):k.jsx(py,{setImage:t,setImageUploaded:r,image:e,imageUploaded:n})}function Cx(e){return k.jsxs("svg",{...e,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",children:[k.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),k.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function kx(e){return k.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 115.77 122.88",style:{enableBackground:"new 0 0 115.77 122.88"},xmlSpace:"preserve",children:[k.jsx("style",{type:"text/css",children:".st0{fill-rule:evenodd;clip-rule:evenodd;}"}),k.jsx("g",{children:k.jsx("path",{className:"st0",d:"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.57,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z"})})]})}function Nx(){return k.jsx("div",{className:"flex min-h-[100dvh] flex-col items-center justify-center bg-background px-4 py-12 sm:px-6 lg:px-8",children:k.jsxs("div",{className:"mx-auto max-w-md text-center",children:[k.jsx(bx,{className:"mx-auto h-12 w-12 text-primary"}),k.jsx("h1",{className:"mt-4 text-3xl font-bold tracking-tight text-foreground sm:text-4xl",children:"Sorry, this website is only available for desktop"}),k.jsx("p",{className:"mt-4 text-muted-foreground",children:"We apologize for the inconvenience, but our website is currently optimized for desktop devices only. Please try accessing this site from a computer or laptop."})]})})}function bx(e){return k.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"blue",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}),k.jsx("path",{d:"M12 18h.01"})]})}const Tx=()=>{const e=window.navigator.userAgent.toLowerCase(),t=/mobile|android|iphone|ipad|tablet|touch|samsung|fridge/i.test(e),n=window.innerWidth<=1024;return!t&&!n};function Px(){const[e,t]=M.useState(null);return M.useEffect(()=>{t(Tx())},[]),e===!0?k.jsx(Ex,{}):k.jsx(Nx,{})}ws.createRoot(document.getElementById("root")).render(k.jsx(M.StrictMode,{children:k.jsx(Px,{})})); diff --git a/index.html b/index.html index f640e9b..56a2a21 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,8 @@ Tint Tracker - - + +