From 3f72cf4da2e5e881657b9fbce4a68a540d1c9cbd Mon Sep 17 00:00:00 2001 From: mrmihi Date: Mon, 6 Nov 2023 04:48:12 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20mrmihi/d?= =?UTF-8?q?ashboard@6d1e38346f6b651936d1bbae3cc073791a6886f9=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 21 +++++++ assets/index-15d354f1.css | 1 + assets/index-ec208f48.js | 114 ++++++++++++++++++++++++++++++++++++++ index.html | 15 +++++ vite.svg | 1 + 5 files changed, 152 insertions(+) create mode 100644 404.html create mode 100644 assets/index-15d354f1.css create mode 100644 assets/index-ec208f48.js create mode 100644 index.html create mode 100644 vite.svg diff --git a/404.html b/404.html new file mode 100644 index 0000000..4f20a8a --- /dev/null +++ b/404.html @@ -0,0 +1,21 @@ + + + + + + + Dashboard + + + + + +
+ + + diff --git a/assets/index-15d354f1.css b/assets/index-15d354f1.css new file mode 100644 index 0000000..bad242c --- /dev/null +++ b/assets/index-15d354f1.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{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,-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";font-feature-settings:normal;font-variation-settings:normal}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-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;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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}.dark{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%}*{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: }::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: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-1{left:.25rem}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-1{right:.25rem}.right-4{right:1rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-50{z-index:50}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-px{margin-top:1px}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[20px\]{height:20px}.h-\[24px\]{height:24px}.h-\[300px\]{height:300px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[300px\]{max-height:300px}.min-h-\[80px\]{min-height:80px}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-9{width:2.25rem}.w-\[110px\]{width:110px}.w-\[160px\]{width:160px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[230px\]{width:230px}.w-\[400px\]{width:400px}.w-\[44px\]{width:44px}.w-full{width:100%}.min-w-\[12rem\]{min-width:12rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.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))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[1fr_110px\]{grid-template-columns:1fr 110px}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r-4{border-right-width:4px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-input{border-color:hsl(var(--input))}.border-muted{border-color:hsl(var(--muted))}.border-primary{border-color:hsl(var(--primary))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:hsl(var(--accent))}.bg-background{background-color:hsl(var(--background))}.bg-border{background-color:hsl(var(--border))}.bg-popover{background-color:hsl(var(--popover))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/80{background-color:#fffc}.fill-current{fill:currentColor}.fill-sky-400{fill:#38bdf8}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.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-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-12{padding-bottom:3rem}.pb-3{padding-bottom:.75rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[0\.8rem\]{font-size:.8rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-current{color:currentColor}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-primary{color:hsl(var(--primary))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.text-slate-950{--tw-text-opacity: 1;color:rgb(2 6 23 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.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)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 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-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--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(0px + 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)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.ring-offset-white{--tw-ring-offset-color: #fff}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}@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))}}.duration-200{animation-duration:.2s}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-slate-500::-moz-placeholder{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.placeholder\:text-slate-500::placeholder{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-red-500\/90:hover{background-color:#ef4444e6}.hover\:bg-slate-100:hover{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.hover\:bg-slate-100\/50:hover{background-color:#f1f5f980}.hover\:bg-slate-100\/80:hover{background-color:#f1f5f9cc}.hover\:bg-slate-900:hover{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.hover\:bg-slate-900\/90:hover{background-color:#0f172ae6}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-slate-50:hover{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.hover\:text-slate-900:hover{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-slate-100:focus{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.focus\:bg-slate-900:focus{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.focus\:text-slate-50:focus{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.focus\:text-slate-900:focus{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--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\:ring-slate-950:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(2 6 23 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.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-slate-950:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(2 6 23 / var(--tw-ring-opacity))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.aria-selected\:bg-slate-100[aria-selected=true]{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.aria-selected\:text-slate-900[aria-selected=true]{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=active\]\:bg-white[data-state=active]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-slate-100[data-state=open],.data-\[state\=selected\]\:bg-slate-100[data-state=selected]{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-slate-950[data-state=active]{--tw-text-opacity: 1;color:rgb(2 6 23 / var(--tw-text-opacity))}.data-\[state\=open\]\:text-slate-500[data-state=open]{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.data-\[state\=open\]\:text-slate-900[data-state=open]{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 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\=open\]\:animate-in[data-state=open]{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}.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\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-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}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.peer[data-state=checked]~.peer-data-\[state\=checked\]\:border-primary{border-color:hsl(var(--primary))}:is(.dark .dark\:border-slate-800){--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity))}:is(.dark .dark\:bg-red-900){--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-slate-50){--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-slate-800){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-slate-950){--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-slate-950\/80){background-color:#020617cc}:is(.dark .dark\:text-slate-400){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}:is(.dark .dark\:text-slate-50){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}:is(.dark .dark\:text-slate-900){--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}:is(.dark .dark\:ring-offset-slate-950){--tw-ring-offset-color: #020617}:is(.dark .dark\:placeholder\:text-slate-400)::-moz-placeholder{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}:is(.dark .dark\:placeholder\:text-slate-400)::placeholder{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:bg-red-900\/90:hover){background-color:#7f1d1de6}:is(.dark .dark\:hover\:bg-slate-50:hover){--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-slate-50\/90:hover){background-color:#f8fafce6}:is(.dark .dark\:hover\:bg-slate-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-slate-800\/50:hover){background-color:#1e293b80}:is(.dark .dark\:hover\:bg-slate-800\/80:hover){background-color:#1e293bcc}:is(.dark .dark\:hover\:text-slate-50:hover){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-slate-900:hover){--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:bg-slate-50:focus){--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}:is(.dark .dark\:focus\:bg-slate-800:focus){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\:focus\:text-slate-50:focus){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:text-slate-900:focus){--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:ring-slate-300:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(203 213 225 / var(--tw-ring-opacity))}:is(.dark .dark\:focus-visible\:ring-slate-300:focus-visible){--tw-ring-opacity: 1;--tw-ring-color: rgb(203 213 225 / var(--tw-ring-opacity))}:is(.dark .dark\:aria-selected\:bg-slate-800[aria-selected=true]){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\:aria-selected\:text-slate-50[aria-selected=true]){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}:is(.dark .dark\:data-\[state\=active\]\:bg-slate-950[data-state=active]){--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity))}:is(.dark .dark\:data-\[state\=open\]\:bg-slate-800[data-state=open]){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\:data-\[state\=selected\]\:bg-slate-800[data-state=selected]){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\:data-\[state\=active\]\:text-slate-50[data-state=active]){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}:is(.dark .dark\:data-\[state\=open\]\:text-slate-400[data-state=open]){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}:is(.dark .dark\:data-\[state\=open\]\:text-slate-50[data-state=open]){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:block{display:block}.md\:grid{display:grid}.md\:hidden{display:none}.md\:w-full{width:100%}}@media (min-width: 1024px){.lg\:col-span-1{grid-column:span 1 / span 1}.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:col-span-4{grid-column:span 4 / span 4}.lg\:block{display:block}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:px-4{padding-left:1rem;padding-right:1rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1280px){.xl\:col-span-1{grid-column:span 1 / span 1}.xl\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\:has\(\[aria-selected\]\)\]\:bg-slate-100:has([aria-selected]){--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}:is(.dark .dark\:\[\&\:has\(\[aria-selected\]\)\]\:bg-slate-800:has([aria-selected])){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}.\[\&\:has\(\[data-state\=checked\]\)\]\:border-primary:has([data-state=checked]){border-color:hsl(var(--primary))}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>div\]\:w-full>div{width:100%}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-slate-500 [cmdk-group-heading]{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}:is(.dark .dark\:\[\&_\[cmdk-group-heading\]\]\:text-slate-400 [cmdk-group-heading]){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/assets/index-ec208f48.js b/assets/index-ec208f48.js new file mode 100644 index 0000000..3b6874d --- /dev/null +++ b/assets/index-ec208f48.js @@ -0,0 +1,114 @@ +function _1(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 l of o)if(l.type==="childList")for(const a of l.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Yc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ip={exports:{}},Ha={},Dp={exports:{}},Q={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var cl=Symbol.for("react.element"),N1=Symbol.for("react.portal"),T1=Symbol.for("react.fragment"),M1=Symbol.for("react.strict_mode"),O1=Symbol.for("react.profiler"),j1=Symbol.for("react.provider"),A1=Symbol.for("react.context"),I1=Symbol.for("react.forward_ref"),D1=Symbol.for("react.suspense"),L1=Symbol.for("react.memo"),F1=Symbol.for("react.lazy"),Sd=Symbol.iterator;function z1(e){return e===null||typeof e!="object"?null:(e=Sd&&e[Sd]||e["@@iterator"],typeof e=="function"?e:null)}var Lp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fp=Object.assign,zp={};function eo(e,t,n){this.props=e,this.context=t,this.refs=zp,this.updater=n||Lp}eo.prototype.isReactComponent={};eo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};eo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Up(){}Up.prototype=eo.prototype;function Xc(e,t,n){this.props=e,this.context=t,this.refs=zp,this.updater=n||Lp}var Qc=Xc.prototype=new Up;Qc.constructor=Xc;Fp(Qc,eo.prototype);Qc.isPureReactComponent=!0;var kd=Array.isArray,Bp=Object.prototype.hasOwnProperty,Zc={current:null},Vp={key:!0,ref:!0,__self:!0,__source:!0};function Wp(e,t,n){var r,o={},l=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(l=""+t.key),t)Bp.call(t,r)&&!Vp.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,j=T[A];if(0>>1;Ao(ve,_))ieo(B,ve)?(T[A]=B,T[ie]=_,A=ie):(T[A]=ve,T[q]=_,A=q);else if(ieo(B,_))T[A]=B,T[ie]=_,A=ie;else break e}}return C}function o(T,C){var _=T.sortIndex-C.sortIndex;return _!==0?_:T.id-C.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var c=[],u=[],p=1,f=null,m=3,y=!1,x=!1,g=!1,$=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(T){for(var C=n(u);C!==null;){if(C.callback===null)r(u);else if(C.startTime<=T)r(u),C.sortIndex=C.expirationTime,t(c,C);else break;C=n(u)}}function b(T){if(g=!1,w(T),!x)if(n(c)!==null)x=!0,V(E);else{var C=n(u);C!==null&&G(b,C.startTime-T)}}function E(T,C){x=!1,g&&(g=!1,v(R),R=-1),y=!0;var _=m;try{for(w(C),f=n(c);f!==null&&(!(f.expirationTime>C)||T&&!z());){var A=f.callback;if(typeof A=="function"){f.callback=null,m=f.priorityLevel;var j=A(f.expirationTime<=C);C=e.unstable_now(),typeof j=="function"?f.callback=j:f===n(c)&&r(c),w(C)}else r(c);f=n(c)}if(f!==null)var W=!0;else{var q=n(u);q!==null&&G(b,q.startTime-C),W=!1}return W}finally{f=null,m=_,y=!1}}var k=!1,S=null,R=-1,N=5,O=-1;function z(){return!(e.unstable_now()-OT||125A?(T.sortIndex=_,t(u,T),n(c)===null&&T===n(u)&&(g?(v(R),R=-1):g=!0,G(b,_-A))):(T.sortIndex=j,t(c,T),x||y||(x=!0,V(E))),T},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(T){var C=m;return function(){var _=m;m=C;try{return T.apply(this,arguments)}finally{m=_}}}})(Yp);Gp.exports=Yp;var Z1=Gp.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Xp=i,it=Z1;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xs=Object.prototype.hasOwnProperty,q1=/^[: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]*$/,Rd={},_d={};function J1(e){return xs.call(_d,e)?!0:xs.call(Rd,e)?!1:q1.test(e)?_d[e]=!0:(Rd[e]=!0,!1)}function ey(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 ty(e,t,n,r){if(t===null||typeof t>"u"||ey(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 Le(e,t,n,r,o,l,a){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=l,this.removeEmptyString=a}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new Le(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){Re[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var eu=/[\-:]([a-z])/g;function tu(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(eu,tu);Re[t]=new Le(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(eu,tu);Re[t]=new Le(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(eu,tu);Re[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function nu(e,t,n,r){var o=Re.hasOwnProperty(t)?Re[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==l[s]){var c=` +`+o[a].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=s);break}}}finally{Oi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Co(e):""}function ny(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=ji(e.type,!1),e;case 11:return e=ji(e.type.render,!1),e;case 1:return e=ji(e.type,!0),e;default:return""}}function Es(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 $r:return"Fragment";case wr:return"Portal";case ws:return"Profiler";case ru:return"StrictMode";case $s:return"Suspense";case bs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qp:return(e.displayName||"Context")+".Consumer";case Zp:return(e._context.displayName||"Context")+".Provider";case ou:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lu:return t=e.displayName||null,t!==null?t:Es(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return Es(e(t))}catch{}}return null}function ry(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 Es(t);case 8:return t===ru?"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 Rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function em(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oy(e){var t=em(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,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,l.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cl(e){e._valueTracker||(e._valueTracker=oy(e))}function tm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=em(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ma(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 Cs(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Td(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rn(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 nm(e,t){t=t.checked,t!=null&&nu(e,"checked",t,!1)}function Ss(e,t){nm(e,t);var n=Rn(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")?ks(e,t.type,n):t.hasOwnProperty("defaultValue")&&ks(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Md(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 ks(e,t,n){(t!=="number"||ma(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var So=Array.isArray;function Mr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Sl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ro={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},ly=["Webkit","ms","Moz","O"];Object.keys(Ro).forEach(function(e){ly.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ro[t]=Ro[e]})});function am(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ro.hasOwnProperty(e)&&Ro[e]?(""+t).trim():t+"px"}function im(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=am(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ay=he({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(ay[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Ns(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 Ts=null;function au(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ms=null,Or=null,jr=null;function Ad(e){if(e=fl(e)){if(typeof Ms!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Qa(t),Ms(e.stateNode,e.type,t))}}function sm(e){Or?jr?jr.push(e):jr=[e]:Or=e}function cm(){if(Or){var e=Or,t=jr;if(jr=Or=null,Ad(e),t)for(e=0;e>>=0,e===0?32:31-(gy(e)/yy|0)|0}var kl=64,Pl=4194304;function ko(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 ya(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=ko(s):(l&=a,l!==0&&(r=ko(l)))}else a=n&~o,a!==0?r=ko(a):l!==0&&(r=ko(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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 ul(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=n}function by(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=No),Wd=String.fromCharCode(32),Hd=!1;function _m(e,t){switch(e){case"keyup":return Qy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var br=!1;function qy(e,t){switch(e){case"compositionend":return Nm(t);case"keypress":return t.which!==32?null:(Hd=!0,Wd);case"textInput":return e=t.data,e===Wd&&Hd?null:e;default:return null}}function Jy(e,t){if(br)return e==="compositionend"||!mu&&_m(e,t)?(e=Pm(),ea=du=mn=null,br=!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=Xd(n)}}function jm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Am(){for(var e=window,t=ma();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ma(e.document)}return t}function hu(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 sx(e){var t=Am(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jm(n.ownerDocument.documentElement,n)){if(r!==null&&hu(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,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=Qd(n,l);var a=Qd(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,Er=null,Ls=null,Mo=null,Fs=!1;function Zd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fs||Er==null||Er!==ma(r)||(r=Er,"selectionStart"in r&&hu(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&&Ko(Mo,r)||(Mo=r,r=$a(Ls,"onSelect"),0kr||(e.current=Hs[kr],Hs[kr]=null,kr--)}function se(e,t){kr++,Hs[kr]=e.current,e.current=t}var _n={},Oe=An(_n),We=An(!1),Qn=_n;function Wr(e,t){var n=e.type.contextTypes;if(!n)return _n;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function He(e){return e=e.childContextTypes,e!=null}function Ea(){de(We),de(Oe)}function of(e,t,n){if(Oe.current!==_n)throw Error(M(168));se(Oe,t),se(We,n)}function Wm(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(M(108,ry(e)||"Unknown",o));return he({},n,r)}function Ca(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_n,Qn=Oe.current,se(Oe,e),se(We,We.current),!0}function lf(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Wm(e,t,Qn),r.__reactInternalMemoizedMergedChildContext=e,de(We),de(Oe),se(Oe,e)):de(We),se(We,n)}var Bt=null,Za=!1,Yi=!1;function Hm(e){Bt===null?Bt=[e]:Bt.push(e)}function wx(e){Za=!0,Hm(e)}function In(){if(!Yi&&Bt!==null){Yi=!0;var e=0,t=te;try{var n=Bt;for(te=1;e>=a,o-=a,Vt=1<<32-kt(t)+o|n<R?(N=S,S=null):N=S.sibling;var O=m(v,S,w[R],b);if(O===null){S===null&&(S=N);break}e&&S&&O.alternate===null&&t(v,S),h=l(O,h,R),k===null?E=O:k.sibling=O,k=O,S=N}if(R===w.length)return n(v,S),fe&&Ln(v,R),E;if(S===null){for(;RR?(N=S,S=null):N=S.sibling;var z=m(v,S,O.value,b);if(z===null){S===null&&(S=N);break}e&&S&&z.alternate===null&&t(v,S),h=l(z,h,R),k===null?E=z:k.sibling=z,k=z,S=N}if(O.done)return n(v,S),fe&&Ln(v,R),E;if(S===null){for(;!O.done;R++,O=w.next())O=f(v,O.value,b),O!==null&&(h=l(O,h,R),k===null?E=O:k.sibling=O,k=O);return fe&&Ln(v,R),E}for(S=r(v,S);!O.done;R++,O=w.next())O=y(S,v,R,O.value,b),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?R:O.key),h=l(O,h,R),k===null?E=O:k.sibling=O,k=O);return e&&S.forEach(function(D){return t(v,D)}),fe&&Ln(v,R),E}function $(v,h,w,b){if(typeof w=="object"&&w!==null&&w.type===$r&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case El:e:{for(var E=w.key,k=h;k!==null;){if(k.key===E){if(E=w.type,E===$r){if(k.tag===7){n(v,k.sibling),h=o(k,w.props.children),h.return=v,v=h;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===un&&pf(E)===k.type){n(v,k.sibling),h=o(k,w.props),h.ref=yo(v,k,w),h.return=v,v=h;break e}n(v,k);break}else t(v,k);k=k.sibling}w.type===$r?(h=Gn(w.props.children,v.mode,b,w.key),h.return=v,v=h):(b=sa(w.type,w.key,w.props,null,v.mode,b),b.ref=yo(v,h,w),b.return=v,v=b)}return a(v);case wr:e:{for(k=w.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===w.containerInfo&&h.stateNode.implementation===w.implementation){n(v,h.sibling),h=o(h,w.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=ns(w,v.mode,b),h.return=v,v=h}return a(v);case un:return k=w._init,$(v,h,k(w._payload),b)}if(So(w))return x(v,h,w,b);if(po(w))return g(v,h,w,b);jl(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,h!==null&&h.tag===6?(n(v,h.sibling),h=o(h,w),h.return=v,v=h):(n(v,h),h=ts(w,v.mode,b),h.return=v,v=h),a(v)):n(v,h)}return $}var Kr=Jm(!0),eh=Jm(!1),pl={},jt=An(pl),Qo=An(pl),Zo=An(pl);function Wn(e){if(e===pl)throw Error(M(174));return e}function Cu(e,t){switch(se(Zo,t),se(Qo,e),se(jt,pl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Rs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Rs(t,e)}de(jt),se(jt,t)}function Gr(){de(jt),de(Qo),de(Zo)}function th(e){Wn(Zo.current);var t=Wn(jt.current),n=Rs(t,e.type);t!==n&&(se(Qo,e),se(jt,n))}function Su(e){Qo.current===e&&(de(jt),de(Qo))}var pe=An(0);function Na(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xi=[];function ku(){for(var e=0;en?n:4,e(!0);var r=Qi.transition;Qi.transition={};try{e(!1),t()}finally{te=n,Qi.transition=r}}function gh(){return vt().memoizedState}function Cx(e,t,n){var r=En(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yh(e))xh(t,n);else if(n=Xm(e,t,n,r),n!==null){var o=Ie();Pt(n,e,r,o),wh(n,t,r)}}function Sx(e,t,n){var r=En(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yh(e))xh(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var a=t.lastRenderedState,s=l(a,n);if(o.hasEagerState=!0,o.eagerState=s,_t(s,a)){var c=t.interleaved;c===null?(o.next=o,bu(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=Xm(e,t,o,r),n!==null&&(o=Ie(),Pt(n,e,r,o),wh(n,t,r))}}function yh(e){var t=e.alternate;return e===me||t!==null&&t===me}function xh(e,t){Oo=Ta=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,su(e,n)}}var Ma={readContext:ht,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useInsertionEffect:_e,useLayoutEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useMutableSource:_e,useSyncExternalStore:_e,useId:_e,unstable_isNewReconciler:!1},kx={readContext:ht,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:hf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oa(4194308,4,fh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return oa(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();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=Cx.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:mf,useDebugValue:Tu,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=mf(!1),t=e[0];return e=Ex.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,o=Tt();if(fe){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Se===null)throw Error(M(349));qn&30||oh(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,hf(ah.bind(null,r,l,e),[e]),r.flags|=2048,el(9,lh.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Se.identifierPrefix;if(fe){var n=Wt,r=Vt;n=(r&~(1<<32-kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Mt]=t,e[Xo]=r,_h(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ns(n,r),n){case"dialog":ue("cancel",e),ue("close",e),o=r;break;case"iframe":case"object":case"embed":ue("load",e),o=r;break;case"video":case"audio":for(o=0;oXr&&(t.flags|=128,r=!0,xo(l,!1),t.lanes=4194304)}else{if(!r)if(e=Na(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xo(l,!0),l.tail===null&&l.tailMode==="hidden"&&!a.alternate&&!fe)return Ne(t),null}else 2*ye()-l.renderingStartTime>Xr&&n!==1073741824&&(t.flags|=128,r=!0,xo(l,!1),t.lanes=4194304);l.isBackwards?(a.sibling=t.child,t.child=a):(n=l.last,n!==null?n.sibling=a:t.child=a,l.last=a)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ye(),t.sibling=null,n=pe.current,se(pe,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return Du(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qe&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function jx(e,t){switch(gu(t),t.tag){case 1:return He(t.type)&&Ea(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),de(We),de(Oe),ku(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Su(t),null;case 13:if(de(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));Hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(pe),null;case 4:return Gr(),null;case 10:return $u(t.type._context),null;case 22:case 23:return Du(),null;case 24:return null;default:return null}}var Il=!1,Te=!1,Ax=typeof WeakSet=="function"?WeakSet:Set,L=null;function Nr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function rc(e,t,n){try{n()}catch(r){ge(e,t,r)}}var Cf=!1;function Ix(e,t){if(zs=xa,e=Am(),hu(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,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var a=0,s=-1,c=-1,u=0,p=0,f=e,m=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==l||r!==0&&f.nodeType!==3||(c=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)m=f,f=y;for(;;){if(f===e)break t;if(m===n&&++u===o&&(s=a),m===l&&++p===r&&(c=a),(y=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=y}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Us={focusedElem:e,selectionRange:n},xa=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,$=x.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Et(t.type,g),$);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(b){ge(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return x=Cf,Cf=!1,x}function jo(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 l=o.destroy;o.destroy=void 0,l!==void 0&&rc(t,n,l)}o=o.next}while(o!==r)}}function ei(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 oc(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 Mh(e){var t=e.alternate;t!==null&&(e.alternate=null,Mh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[Xo],delete t[Ws],delete t[yx],delete t[xx])),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 Oh(e){return e.tag===5||e.tag===3||e.tag===4}function Sf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oh(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 lc(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=ba));else if(r!==4&&(e=e.child,e!==null))for(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}function ac(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(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}var ke=null,Ct=!1;function ln(e,t,n){for(n=n.child;n!==null;)jh(e,t,n),n=n.sibling}function jh(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Ka,n)}catch{}switch(n.tag){case 5:Te||Nr(n,t);case 6:var r=ke,o=Ct;ke=null,ln(e,t,n),ke=r,Ct=o,ke!==null&&(Ct?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(Ct?(e=ke,n=n.stateNode,e.nodeType===8?Gi(e.parentNode,n):e.nodeType===1&&Gi(e,n),Wo(e)):Gi(ke,n.stateNode));break;case 4:r=ke,o=Ct,ke=n.stateNode.containerInfo,Ct=!0,ln(e,t,n),ke=r,Ct=o;break;case 0:case 11:case 14:case 15:if(!Te&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,a=l.destroy;l=l.tag,a!==void 0&&(l&2||l&4)&&rc(n,t,a),o=o.next}while(o!==r)}ln(e,t,n);break;case 1:if(!Te&&(Nr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ge(n,t,s)}ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,ln(e,t,n),Te=r):ln(e,t,n);break;default:ln(e,t,n)}}function kf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ax),t.forEach(function(r){var o=Hx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function $t(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~l}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*Lx(r/1960))-r,10e?16:e,hn===null)var r=!1;else{if(e=hn,hn=null,Aa=0,J&6)throw Error(M(331));var o=J;for(J|=4,L=e.current;L!==null;){var l=L,a=l.child;if(L.flags&16){var s=l.deletions;if(s!==null){for(var c=0;cye()-Au?Kn(e,0):ju|=n),Ke(e,t)}function Bh(e,t){t===0&&(e.mode&1?(t=Pl,Pl<<=1,!(Pl&130023424)&&(Pl=4194304)):t=1);var n=Ie();e=Xt(e,t),e!==null&&(ul(e,t,n),Ke(e,n))}function Wx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bh(e,n)}function Hx(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(M(314))}r!==null&&r.delete(t),Bh(e,n)}var Vh;Vh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||We.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,Mx(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,fe&&t.flags&1048576&&Km(t,ka,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;la(e,t),e=t.pendingProps;var o=Wr(t,Oe.current);Ir(t,n),o=Ru(null,t,r,e,o,n);var l=_u();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,He(r)?(l=!0,Ca(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Eu(t),o.updater=qa,t.stateNode=o,o._reactInternals=t,Qs(t,r,e,n),t=Js(null,t,r,!0,l,n)):(t.tag=0,fe&&l&&vu(t),Ae(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(la(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Gx(r),e=Et(r,e),o){case 0:t=qs(null,t,r,e,n);break e;case 1:t=$f(null,t,r,e,n);break e;case 11:t=xf(null,t,r,e,n);break e;case 14:t=wf(null,t,r,Et(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Et(r,o),qs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Et(r,o),$f(e,t,r,o,n);case 3:e:{if(kh(t),e===null)throw Error(M(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Qm(e,t),_a(t,r,null,n);var a=t.memoizedState;if(r=a.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=Yr(Error(M(423)),t),t=bf(e,t,r,n,o);break e}else if(r!==o){o=Yr(Error(M(424)),t),t=bf(e,t,r,n,o);break e}else for(et=wn(t.stateNode.containerInfo.firstChild),ot=t,fe=!0,St=null,n=eh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hr(),r===o){t=Qt(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return th(t),e===null&&Gs(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,a=o.children,Bs(r,o)?a=null:l!==null&&Bs(r,l)&&(t.flags|=32),Sh(e,t),Ae(e,t,a,n),t.child;case 6:return e===null&&Gs(t),null;case 13:return Ph(e,t,n);case 4:return Cu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kr(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Et(r,o),xf(e,t,r,o,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,a=o.value,se(Pa,r._currentValue),r._currentValue=a,l!==null)if(_t(l.value,a)){if(l.children===o.children&&!We.current){t=Qt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){a=l.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(l.tag===1){c=Ht(-1,n&-n),c.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?c.next=c:(c.next=p.next,p.next=c),u.pending=c}}l.lanes|=n,c=l.alternate,c!==null&&(c.lanes|=n),Ys(l.return,n,t),s.lanes|=n;break}c=c.next}}else if(l.tag===10)a=l.type===t.type?null:l.child;else if(l.tag===18){if(a=l.return,a===null)throw Error(M(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ys(a,n,t),a=l.sibling}else a=l.child;if(a!==null)a.return=l;else for(a=l;a!==null;){if(a===t){a=null;break}if(l=a.sibling,l!==null){l.return=a.return,a=l;break}a=a.return}l=a}Ae(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ir(t,n),o=ht(o),r=r(o),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,o=Et(r,t.pendingProps),o=Et(r.type,o),wf(e,t,r,o,n);case 15:return Eh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Et(r,o),la(e,t),t.tag=1,He(r)?(e=!0,Ca(t)):e=!1,Ir(t,n),qm(t,r,o),Qs(t,r,o,n),Js(null,t,r,!0,e,n);case 19:return Rh(e,t,n);case 22:return Ch(e,t,n)}throw Error(M(156,t.tag))};function Wh(e,t){return vm(e,t)}function Kx(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 pt(e,t,n,r){return new Kx(e,t,n,r)}function Fu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gx(e){if(typeof e=="function")return Fu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ou)return 11;if(e===lu)return 14}return 2}function Cn(e,t){var n=e.alternate;return n===null?(n=pt(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 sa(e,t,n,r,o,l){var a=2;if(r=e,typeof e=="function")Fu(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case $r:return Gn(n.children,o,l,t);case ru:a=8,o|=8;break;case ws:return e=pt(12,n,t,o|2),e.elementType=ws,e.lanes=l,e;case $s:return e=pt(13,n,t,o),e.elementType=$s,e.lanes=l,e;case bs:return e=pt(19,n,t,o),e.elementType=bs,e.lanes=l,e;case Jp:return ni(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zp:a=10;break e;case qp:a=9;break e;case ou:a=11;break e;case lu:a=14;break e;case un:a=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=pt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function Gn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function ni(e,t,n,r){return e=pt(22,e,r,t),e.elementType=Jp,e.lanes=n,e.stateNode={isHidden:!1},e}function ts(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function ns(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yx(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=Ii(0),this.expirationTimes=Ii(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ii(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zu(e,t,n,r,o,l,a,s,c){return e=new Yx(e,t,n,s,c),t===1?(t=1,l===!0&&(t|=8)):t=0,l=pt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Eu(l),e}function Xx(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yh)}catch(e){console.error(e)}}Yh(),Kp.exports=st;var nn=Kp.exports;const Xh=Yc(nn);var jf=nn;ys.createRoot=jf.createRoot,ys.hydrateRoot=jf.hydrateRoot;/** + * @remix-run/router v1.11.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function La(){return La=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Wu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tw(){return Math.random().toString(36).substr(2,8)}function If(e,t){return{usr:e.state,key:e.key,idx:t}}function dc(e,t,n,r){return n===void 0&&(n=null),La({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ii(t):t,{state:n,key:t&&t.key||r||tw()})}function Qh(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ii(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function nw(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:l=!1}=r,a=o.history,s=vn.Pop,c=null,u=p();u==null&&(u=0,a.replaceState(La({},a.state,{idx:u}),""));function p(){return(a.state||{idx:null}).idx}function f(){s=vn.Pop;let $=p(),v=$==null?null:$-u;u=$,c&&c({action:s,location:g.location,delta:v})}function m($,v){s=vn.Push;let h=dc(g.location,$,v);n&&n(h,$),u=p()+1;let w=If(h,u),b=g.createHref(h);try{a.pushState(w,"",b)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(b)}l&&c&&c({action:s,location:g.location,delta:1})}function y($,v){s=vn.Replace;let h=dc(g.location,$,v);n&&n(h,$),u=p();let w=If(h,u),b=g.createHref(h);a.replaceState(w,"",b),l&&c&&c({action:s,location:g.location,delta:0})}function x($){let v=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof $=="string"?$:Qh($);return Ge(v,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,v)}let g={get action(){return s},get location(){return e(o,a)},listen($){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Af,f),c=$,()=>{o.removeEventListener(Af,f),c=null}},createHref($){return t(o,$)},createURL:x,encodeLocation($){let v=x($);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:y,go($){return a.go($)}};return g}var Df;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Df||(Df={}));function rw(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ii(t):t,o=Jh(r.pathname||"/",n);if(o==null)return null;let l=Zh(e);ow(l);let a=null;for(let s=0;a==null&&s{let c={relativePath:s===void 0?l.path||"":s,caseSensitive:l.caseSensitive===!0,childrenIndex:a,route:l};c.relativePath.startsWith("/")&&(Ge(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Lr([r,c.relativePath]),p=n.concat(c);l.children&&l.children.length>0&&(Ge(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Zh(l.children,t,p,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:dw(u,l.index),routesMeta:p})};return e.forEach((l,a)=>{var s;if(l.path===""||!((s=l.path)!=null&&s.includes("?")))o(l,a);else for(let c of qh(l.path))o(l,a,c)}),t}function qh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let a=qh(r.join("/")),s=[];return s.push(...a.map(c=>c===""?l:[l,c].join("/"))),o&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function ow(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const lw=/^:\w+$/,aw=3,iw=2,sw=1,cw=10,uw=-2,Lf=e=>e==="*";function dw(e,t){let n=e.split("/"),r=n.length;return n.some(Lf)&&(r+=uw),t&&(r+=iw),n.filter(o=>!Lf(o)).reduce((o,l)=>o+(lw.test(l)?aw:l===""?sw:cw),r)}function fw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function pw(e,t){let{routesMeta:n}=e,r={},o="/",l=[];for(let a=0;a{let{paramName:m,isOptional:y}=p;if(m==="*"){let g=s[f]||"";a=l.slice(0,l.length-g.length).replace(/(.)\/+$/,"$1")}const x=s[f];return y&&!x?u[m]=void 0:u[m]=gw(x||"",m),u},{}),pathname:l,pathnameBase:a,pattern:e}}function hw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Wu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(a,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function vw(e){try{return decodeURI(e)}catch(t){return Wu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function gw(e,t){try{return decodeURIComponent(e)}catch(n){return Wu(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Jh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Lr=e=>e.join("/").replace(/\/\/+/g,"/"),yw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function xw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ev=["post","put","patch","delete"];new Set(ev);const ww=["get",...ev];new Set(ww);/** + * React Router v6.18.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},g,{params:Object.assign({},a,g.params),pathname:Lr([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:Lr([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n);return t&&x?i.createElement(si.Provider,{value:{location:fc({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:vn.Pop}},x):x}function Sw(){let e=Ow(),t=xw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},l=null;return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:o},n):null,l)}const kw=i.createElement(Sw,null);class Pw extends i.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?i.createElement(ci.Provider,{value:this.props.routeContext},i.createElement(nv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Rw(e){let{routeContext:t,match:n,children:r}=e,o=i.useContext($w);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(ci.Provider,{value:t},r)}function _w(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let l=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=l.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id]));s>=0||Ge(!1),l=l.slice(0,Math.min(l.length,s+1))}return l.reduceRight((s,c,u)=>{let p=c.route.id?a==null?void 0:a[c.route.id]:null,f=null;n&&(f=c.route.errorElement||kw);let m=t.concat(l.slice(0,u+1)),y=()=>{let x;return p?x=f:c.route.Component?x=i.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=s,i.createElement(Rw,{match:c,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:x})};return n&&(c.route.ErrorBoundary||c.route.errorElement||u===0)?i.createElement(Pw,{location:n.location,revalidation:n.revalidation,component:f,error:p,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}var pc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(pc||{});function Nw(e){let t=i.useContext(bw);return t||Ge(!1),t}function Tw(e){let t=i.useContext(ci);return t||Ge(!1),t}function Mw(e){let t=Tw(),n=t.matches[t.matches.length-1];return n.route.id||Ge(!1),n.route.id}function Ow(){var e;let t=i.useContext(nv),n=Nw(pc.UseRouteError),r=Mw(pc.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function ov(e){Ge(!1)}function jw(e){let{basename:t="/",children:n=null,location:r,navigationType:o=vn.Pop,navigator:l,static:a=!1}=e;Hu()&&Ge(!1);let s=t.replace(/^\/*/,"/"),c=i.useMemo(()=>({basename:s,navigator:l,static:a}),[s,l,a]);typeof r=="string"&&(r=ii(r));let{pathname:u="/",search:p="",hash:f="",state:m=null,key:y="default"}=r,x=i.useMemo(()=>{let g=Jh(u,s);return g==null?null:{location:{pathname:g,search:p,hash:f,state:m,key:y},navigationType:o}},[s,u,p,f,m,y,o]);return x==null?null:i.createElement(tv.Provider,{value:c},i.createElement(si.Provider,{children:n,value:x}))}function Aw(e){let{children:t,location:n}=e;return Ew(mc(t),n)}new Promise(()=>{});function mc(e,t){t===void 0&&(t=[]);let n=[];return i.Children.forEach(e,(r,o)=>{if(!i.isValidElement(r))return;let l=[...t,o];if(r.type===i.Fragment){n.push.apply(n,mc(r.props.children,l));return}r.type!==ov&&Ge(!1),!r.props.index||!r.props.children||Ge(!1);let a={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=mc(r.props.children,l)),n.push(a)}),n}/** + * React Router DOM v6.18.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const Iw="startTransition",Ff=Jc[Iw];function Dw(e){let{basename:t,children:n,future:r,window:o}=e,l=i.useRef();l.current==null&&(l.current=ew({window:o,v5Compat:!0}));let a=l.current,[s,c]=i.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},p=i.useCallback(f=>{u&&Ff?Ff(()=>c(f)):c(f)},[c,u]);return i.useLayoutEffect(()=>a.listen(p),[a,p]),i.createElement(jw,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}var zf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zf||(zf={}));var Uf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Uf||(Uf={}));function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>Lw(n,t))}function Z(...e){return i.useCallback(ui(...e),e)}const Zt=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),l=o.find(zw);if(l){const a=l.props.children,s=o.map(c=>c===l?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:c);return i.createElement(hc,P({},r,{ref:t}),i.isValidElement(a)?i.cloneElement(a,void 0,s):null)}return i.createElement(hc,P({},r,{ref:t}),n)});Zt.displayName="Slot";const hc=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...Uw(r,n.props),ref:t?ui(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});hc.displayName="SlotClone";const Fw=({children:e})=>i.createElement(i.Fragment,null,e);function zw(e){return i.isValidElement(e)&&e.type===Fw}function Uw(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...s)=>{l(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function lv(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,Vf=av,iv=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Vf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,a=Object.keys(o).map(u=>{const p=n==null?void 0:n[u],f=l==null?void 0:l[u];if(p===null)return null;const m=Bf(p)||Bf(f);return o[u][m]}),s=n&&Object.entries(n).reduce((u,p)=>{let[f,m]=p;return m===void 0||(u[f]=m),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,p)=>{let{class:f,className:m,...y}=p;return Object.entries(y).every(x=>{let[g,$]=x;return Array.isArray($)?$.includes({...l,...s}[g]):{...l,...s}[g]===$})?[...u,f,m]:u},[]);return Vf(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};function Bw(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(a){var s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set:function(a,s){n.has(a)?n.set(a,s):o(a,s)}}}var uv="!";function Xw(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(a){for(var s=[],c=0,u=0,p,f=0;fu?p-u:void 0;return{modifiers:s,hasImportantModifier:x,baseClassName:g,maybePostfixModifierPosition:$}}}function Qw(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Zw(e){return{cache:Yw(e.cacheSize),splitModifiers:Xw(e),...Vw(e)}}var qw=/\s+/;function Jw(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,l=new Set;return e.trim().split(qw).map(function(a){var s=n(a),c=s.modifiers,u=s.hasImportantModifier,p=s.baseClassName,f=s.maybePostfixModifierPosition,m=r(f?p.substring(0,f):p),y=!!f;if(!m){if(!f)return{isTailwindClass:!1,originalClassName:a};if(m=r(p),!m)return{isTailwindClass:!1,originalClassName:a};y=!1}var x=Qw(c).join(":"),g=u?x+uv:x;return{isTailwindClass:!0,modifierId:g,classGroupId:m,originalClassName:a,hasPostfixModifier:y}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,c=a.classGroupId,u=a.hasPostfixModifier,p=s+c;return l.has(p)?!1:(l.add(p),o(c,u).forEach(function(f){return l.add(s+f)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function e$(){for(var e=arguments.length,t=new Array(e),n=0;n{const a=r?Zt:"button";return d.jsx(a,{className:F(v$({variant:t,size:n,className:e})),ref:l,...o})});lt.displayName="Button";const g$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],K=g$.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:l,...a}=r,s=l?Zt:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(s,P({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pv(e,t){e&&nn.flushSync(()=>e.dispatchEvent(t))}const Ye=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{};function y$(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const je=e=>{const{present:t,children:n}=e,r=x$(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),l=Z(r.ref,o.ref);return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:l}):null};je.displayName="Presence";function x$(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),l=i.useRef("none"),a=e?"mounted":"unmounted",[s,c]=y$(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=zl(r.current);l.current=s==="mounted"?u:"none"},[s]),Ye(()=>{const u=r.current,p=o.current;if(p!==e){const m=l.current,y=zl(u);e?c("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(p&&m!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ye(()=>{if(t){const u=f=>{const y=zl(r.current).includes(f.animationName);f.target===t&&y&&nn.flushSync(()=>c("ANIMATION_END"))},p=f=>{f.target===t&&(l.current=zl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function zl(e){return(e==null?void 0:e.animationName)||"none"}function Fe(e,t=[]){let n=[];function r(l,a){const s=i.createContext(a),c=n.length;n=[...n,a];function u(f){const{scope:m,children:y,...x}=f,g=(m==null?void 0:m[e][c])||s,$=i.useMemo(()=>x,Object.values(x));return i.createElement(g.Provider,{value:$},y)}function p(f,m){const y=(m==null?void 0:m[e][c])||s,x=i.useContext(y);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${l}\``)}return u.displayName=l+"Provider",[u,p]}const o=()=>{const l=n.map(a=>i.createContext(a));return function(s){const c=(s==null?void 0:s[e])||l;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,w$(o,...t)]}function w$(...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(l){const a=r.reduce((s,{useScope:c,scopeName:u})=>{const f=c(l)[`__scope${u}`];return{...s,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function be(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}const $$=i.createContext(void 0);function ro(e){const t=i.useContext($$);return e||t||"ltr"}function yc(e,[t,n]){return Math.min(n,Math.max(t,e))}function I(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 b$(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const mv="ScrollArea",[hv,kS]=Fe(mv),[E$,yt]=hv(mv),C$=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:l=600,...a}=e,[s,c]=i.useState(null),[u,p]=i.useState(null),[f,m]=i.useState(null),[y,x]=i.useState(null),[g,$]=i.useState(null),[v,h]=i.useState(0),[w,b]=i.useState(0),[E,k]=i.useState(!1),[S,R]=i.useState(!1),N=Z(t,z=>c(z)),O=ro(o);return i.createElement(E$,{scope:n,type:r,dir:O,scrollHideDelay:l,scrollArea:s,viewport:u,onViewportChange:p,content:f,onContentChange:m,scrollbarX:y,onScrollbarXChange:x,scrollbarXEnabled:E,onScrollbarXEnabledChange:k,scrollbarY:g,onScrollbarYChange:$,scrollbarYEnabled:S,onScrollbarYEnabledChange:R,onCornerWidthChange:h,onCornerHeightChange:b},i.createElement(K.div,P({dir:O},a,{ref:N,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})))}),S$="ScrollAreaViewport",k$=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...o}=e,l=yt(S$,n),a=i.useRef(null),s=Z(t,a,l.onViewportChange);return i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),i.createElement(K.div,P({"data-radix-scroll-area-viewport":""},o,{ref:s,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style}}),i.createElement("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),rn="ScrollAreaScrollbar",vv=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=yt(rn,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:a}=o,s=e.orientation==="horizontal";return i.useEffect(()=>(s?l(!0):a(!0),()=>{s?l(!1):a(!1)}),[s,l,a]),o.type==="hover"?i.createElement(P$,P({},r,{ref:t,forceMount:n})):o.type==="scroll"?i.createElement(R$,P({},r,{ref:t,forceMount:n})):o.type==="auto"?i.createElement(gv,P({},r,{ref:t,forceMount:n})):o.type==="always"?i.createElement(Gu,P({},r,{ref:t})):null}),P$=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=yt(rn,e.__scopeScrollArea),[l,a]=i.useState(!1);return i.useEffect(()=>{const s=o.scrollArea;let c=0;if(s){const u=()=>{window.clearTimeout(c),a(!0)},p=()=>{c=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",p),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",p)}}},[o.scrollArea,o.scrollHideDelay]),i.createElement(je,{present:n||l},i.createElement(gv,P({"data-state":l?"visible":"hidden"},r,{ref:t})))}),R$=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=yt(rn,e.__scopeScrollArea),l=e.orientation==="horizontal",a=fi(()=>c("SCROLL_END"),100),[s,c]=b$("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return i.useEffect(()=>{if(s==="idle"){const u=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,o.scrollHideDelay,c]),i.useEffect(()=>{const u=o.viewport,p=l?"scrollLeft":"scrollTop";if(u){let f=u[p];const m=()=>{const y=u[p];f!==y&&(c("SCROLL"),a()),f=y};return u.addEventListener("scroll",m),()=>u.removeEventListener("scroll",m)}},[o.viewport,l,c,a]),i.createElement(je,{present:n||s!=="hidden"},i.createElement(Gu,P({"data-state":s==="hidden"?"hidden":"visible"},r,{ref:t,onPointerEnter:I(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:I(e.onPointerLeave,()=>c("POINTER_LEAVE"))})))}),gv=i.forwardRef((e,t)=>{const n=yt(rn,e.__scopeScrollArea),{forceMount:r,...o}=e,[l,a]=i.useState(!1),s=e.orientation==="horizontal",c=fi(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,o=yt(rn,e.__scopeScrollArea),l=i.useRef(null),a=i.useRef(0),[s,c]=i.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=$v(s.viewport,s.content),p={...r,sizes:s,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:m=>l.current=m,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:m=>a.current=m};function f(m,y){return I$(m,a.current,s,y)}return n==="horizontal"?i.createElement(_$,P({},p,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const m=o.viewport.scrollLeft,y=Gf(m,s,o.dir);l.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=f(m,o.dir))}})):n==="vertical"?i.createElement(N$,P({},p,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const m=o.viewport.scrollTop,y=Gf(m,s);l.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=f(m))}})):null}),_$=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,l=yt(rn,e.__scopeScrollArea),[a,s]=i.useState(),c=i.useRef(null),u=Z(t,c,l.onScrollbarXChange);return i.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),i.createElement(xv,P({"data-orientation":"horizontal"},o,{ref:u,sizes:n,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":di(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,f)=>{if(l.viewport){const m=l.viewport.scrollLeft+p.deltaX;e.onWheelScroll(m),Ev(m,f)&&p.preventDefault()}},onResize:()=>{c.current&&l.viewport&&a&&r({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Fa(a.paddingLeft),paddingEnd:Fa(a.paddingRight)}})}}))}),N$=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,l=yt(rn,e.__scopeScrollArea),[a,s]=i.useState(),c=i.useRef(null),u=Z(t,c,l.onScrollbarYChange);return i.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),i.createElement(xv,P({"data-orientation":"vertical"},o,{ref:u,sizes:n,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":di(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,f)=>{if(l.viewport){const m=l.viewport.scrollTop+p.deltaY;e.onWheelScroll(m),Ev(m,f)&&p.preventDefault()}},onResize:()=>{c.current&&l.viewport&&a&&r({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Fa(a.paddingTop),paddingEnd:Fa(a.paddingBottom)}})}}))}),[T$,yv]=hv(rn),xv=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:l,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:p,onResize:f,...m}=e,y=yt(rn,n),[x,g]=i.useState(null),$=Z(t,N=>g(N)),v=i.useRef(null),h=i.useRef(""),w=y.viewport,b=r.content-r.viewport,E=be(p),k=be(c),S=fi(f,10);function R(N){if(v.current){const O=N.clientX-v.current.left,z=N.clientY-v.current.top;u({x:O,y:z})}}return i.useEffect(()=>{const N=O=>{const z=O.target;(x==null?void 0:x.contains(z))&&E(O,b)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[w,x,b,E]),i.useEffect(k,[r,k]),Qr(x,S),Qr(y.content,S),i.createElement(T$,{scope:n,scrollbar:x,hasThumb:o,onThumbChange:be(l),onThumbPointerUp:be(a),onThumbPositionChange:k,onThumbPointerDown:be(s)},i.createElement(K.div,P({},m,{ref:$,style:{position:"absolute",...m.style},onPointerDown:I(e.onPointerDown,N=>{N.button===0&&(N.target.setPointerCapture(N.pointerId),v.current=x.getBoundingClientRect(),h.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),R(N))}),onPointerMove:I(e.onPointerMove,R),onPointerUp:I(e.onPointerUp,N=>{const O=N.target;O.hasPointerCapture(N.pointerId)&&O.releasePointerCapture(N.pointerId),document.body.style.webkitUserSelect=h.current,y.viewport&&(y.viewport.style.scrollBehavior=""),v.current=null})})))}),xc="ScrollAreaThumb",M$=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=yv(xc,e.__scopeScrollArea);return i.createElement(je,{present:n||o.hasThumb},i.createElement(O$,P({ref:t},r)))}),O$=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,l=yt(xc,n),a=yv(xc,n),{onThumbPositionChange:s}=a,c=Z(t,f=>a.onThumbChange(f)),u=i.useRef(),p=fi(()=>{u.current&&(u.current(),u.current=void 0)},100);return i.useEffect(()=>{const f=l.viewport;if(f){const m=()=>{if(p(),!u.current){const y=D$(f,s);u.current=y,s()}};return s(),f.addEventListener("scroll",m),()=>f.removeEventListener("scroll",m)}},[l.viewport,p,s]),i.createElement(K.div,P({"data-state":a.hasThumb?"visible":"hidden"},o,{ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:I(e.onPointerDownCapture,f=>{const y=f.target.getBoundingClientRect(),x=f.clientX-y.left,g=f.clientY-y.top;a.onThumbPointerDown({x,y:g})}),onPointerUp:I(e.onPointerUp,a.onThumbPointerUp)}))}),wv="ScrollAreaCorner",j$=i.forwardRef((e,t)=>{const n=yt(wv,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?i.createElement(A$,P({},e,{ref:t})):null}),A$=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=yt(wv,n),[l,a]=i.useState(0),[s,c]=i.useState(0),u=!!(l&&s);return Qr(o.scrollbarX,()=>{var p;const f=((p=o.scrollbarX)===null||p===void 0?void 0:p.offsetHeight)||0;o.onCornerHeightChange(f),c(f)}),Qr(o.scrollbarY,()=>{var p;const f=((p=o.scrollbarY)===null||p===void 0?void 0:p.offsetWidth)||0;o.onCornerWidthChange(f),a(f)}),u?i.createElement(K.div,P({},r,{ref:t,style:{width:l,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function Fa(e){return e?parseInt(e,10):0}function $v(e,t){const n=e/t;return isNaN(n)?0:n}function di(e){const t=$v(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function I$(e,t,n,r="ltr"){const o=di(n),l=o/2,a=t||l,s=o-a,c=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,p=n.content-n.viewport,f=r==="ltr"?[0,p]:[p*-1,0];return bv([c,u],f)(e)}function Gf(e,t,n="ltr"){const r=di(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-o,a=t.content-t.viewport,s=l-r,c=n==="ltr"?[0,a]:[a*-1,0],u=yc(e,c);return bv([0,a],[0,s])(u)}function bv(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 Ev(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const l={left:e.scrollLeft,top:e.scrollTop},a=n.left!==l.left,s=n.top!==l.top;(a||s)&&t(),n=l,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function fi(e,t){const n=be(e),r=i.useRef(0);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),i.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Qr(e,t){const n=be(t);Ye(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}const Cv=C$,L$=k$,F$=j$,z$=i.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Cv,{ref:r,className:F("relative overflow-hidden",e),...n,children:[d.jsx(L$,{className:"h-full w-full rounded-[inherit]",children:t}),d.jsx(Sv,{}),d.jsx(F$,{})]}));z$.displayName=Cv.displayName;const Sv=i.forwardRef(({className:e,orientation:t="vertical",...n},r)=>d.jsx(vv,{ref:r,orientation:t,className:F("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...n,children:d.jsx(M$,{className:F("relative rounded-full bg-slate-200 dark:bg-slate-800",t==="vertical"&&"flex-1")})}));Sv.displayName=vv.displayName;const Be=i.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:F("rounded-lg border border-slate-200 bg-white text-slate-950 shadow-sm dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",e),...t}));Be.displayName="Card";const tt=i.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:F("flex flex-col space-y-1.5 p-6",e),...t}));tt.displayName="CardHeader";const nt=i.forwardRef(({className:e,...t},n)=>d.jsx("h3",{ref:n,className:F("text-2xl font-semibold leading-none tracking-tight",e),...t}));nt.displayName="CardTitle";const rt=i.forwardRef(({className:e,...t},n)=>d.jsx("p",{ref:n,className:F("text-sm text-slate-500 dark:text-slate-400",e),...t}));rt.displayName="CardDescription";const Ve=i.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:F("p-6 pt-0",e),...t}));Ve.displayName="CardContent";const ml=i.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:F("flex items-center p-6 pt-0",e),...t}));ml.displayName="CardFooter";const wc="horizontal",U$=["horizontal","vertical"],kv=i.forwardRef((e,t)=>{const{decorative:n,orientation:r=wc,...o}=e,l=Pv(r)?r:wc,s=n?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return i.createElement(K.div,P({"data-orientation":l},s,o,{ref:t}))});kv.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!Pv(r)?new Error(B$(o,n)):null}};function B$(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of: + - horizontal + - vertical + +Defaulting to \`${wc}\`.`}function Pv(e){return U$.includes(e)}const Rv=kv,Yu=i.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>d.jsx(Rv,{ref:o,decorative:n,orientation:t,className:F("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Yu.displayName=Rv.displayName;function V$({className:e,playlists:t}){return d.jsx("div",{className:F("pb-12 border-r-4",e),children:d.jsxs("div",{className:"space-y-4 py-4 px-2",children:[d.jsx("div",{className:"px-3 py-2",children:d.jsxs("h2",{className:"mb-2 px-4 text-lg font-semibold tracking-tight",children:[d.jsxs("svg",{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"mr-2 h-4 w-4",children:[d.jsx("circle",{cx:"12",cy:"12",r:"10"}),d.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),"Modules"]})}),d.jsxs(Be,{children:[d.jsx(tt,{className:"grid grid-cols-[1fr_110px] items-start gap-4 space-y-0",children:d.jsxs("div",{className:"space-y-1",children:[d.jsx(nt,{children:"AF"}),d.jsx(rt,{children:"Application Frameworks"})]})}),d.jsx(Ve,{children:d.jsxs("div",{className:"flex space-x-4 text-sm text-muted-foreground",children:[d.jsx("div",{className:"flex items-center"}),d.jsx("div",{className:"flex items-center"}),d.jsx("div",{})]})})]}),d.jsxs(Be,{children:[d.jsx(tt,{className:"grid grid-cols-[1fr_110px] items-start gap-4 space-y-0",children:d.jsxs("div",{className:"space-y-1",children:[d.jsx(nt,{children:"DS"}),d.jsx(rt,{children:"Distributed Systems"})]})}),d.jsx(Ve,{children:d.jsxs("div",{className:"flex space-x-4 text-sm text-muted-foreground",children:[d.jsx("div",{className:"flex items-center"}),d.jsx("div",{className:"flex items-center"}),d.jsx("div",{})]})})]}),d.jsxs(Be,{children:[d.jsx(tt,{className:"grid grid-cols-[1fr_110px] items-start gap-4 space-y-0",children:d.jsxs("div",{className:"space-y-1",children:[d.jsx(nt,{children:"SPQMA"}),d.jsx(rt,{children:"Software Quality Management"})]})}),d.jsx(Ve,{children:d.jsxs("div",{className:"flex space-x-4 text-sm text-muted-foreground",children:[d.jsx("div",{className:"flex items-center"}),d.jsx("div",{className:"flex items-center"}),d.jsx("div",{})]})})]}),d.jsxs(Be,{children:[d.jsx(tt,{className:"grid grid-cols-[1fr_110px] items-start gap-4 space-y-0",children:d.jsxs("div",{className:"space-y-1",children:[d.jsx(nt,{children:"SA"}),d.jsx(rt,{children:"Software Architecture"})]})}),d.jsx(Ve,{children:d.jsxs("div",{className:"flex space-x-4 text-sm text-muted-foreground",children:[d.jsx("div",{className:"flex items-center"}),d.jsx("div",{className:"flex items-center"}),d.jsx("div",{})]})})]})]})})}function pi(e){const t=e+"CollectionProvider",[n,r]=Fe(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=y=>{const{scope:x,children:g}=y,$=ut.useRef(null),v=ut.useRef(new Map).current;return ut.createElement(o,{scope:x,itemMap:v,collectionRef:$},g)},s=e+"CollectionSlot",c=ut.forwardRef((y,x)=>{const{scope:g,children:$}=y,v=l(s,g),h=Z(x,v.collectionRef);return ut.createElement(Zt,{ref:h},$)}),u=e+"CollectionItemSlot",p="data-radix-collection-item",f=ut.forwardRef((y,x)=>{const{scope:g,children:$,...v}=y,h=ut.useRef(null),w=Z(x,h),b=l(u,g);return ut.useEffect(()=>(b.itemMap.set(h,{ref:h,...v}),()=>void b.itemMap.delete(h))),ut.createElement(Zt,{[p]:"",ref:w},$)});function m(y){const x=l(e+"CollectionConsumer",y);return ut.useCallback(()=>{const $=x.collectionRef.current;if(!$)return[];const v=Array.from($.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((b,E)=>v.indexOf(b.ref.current)-v.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:c,ItemSlot:f},m,r]}const W$=Jc["useId".toString()]||(()=>{});let H$=0;function Kt(e){const[t,n]=i.useState(W$());return Ye(()=>{e||n(r=>r??String(H$++))},[e]),e||(t?`radix-${t}`:"")}function K$(e,t=globalThis==null?void 0:globalThis.document){const n=be(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const $c="dismissableLayer.update",G$="dismissableLayer.pointerDownOutside",Y$="dismissableLayer.focusOutside";let Yf;const X$=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mi=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...u}=e,p=i.useContext(X$),[f,m]=i.useState(null),y=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,x]=i.useState({}),g=Z(t,R=>m(R)),$=Array.from(p.layers),[v]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),h=$.indexOf(v),w=f?$.indexOf(f):-1,b=p.layersWithOutsidePointerEventsDisabled.size>0,E=w>=h,k=Q$(R=>{const N=R.target,O=[...p.branches].some(z=>z.contains(N));!E||O||(l==null||l(R),s==null||s(R),R.defaultPrevented||c==null||c())},y),S=Z$(R=>{const N=R.target;[...p.branches].some(z=>z.contains(N))||(a==null||a(R),s==null||s(R),R.defaultPrevented||c==null||c())},y);return K$(R=>{w===p.layers.size-1&&(o==null||o(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},y),i.useEffect(()=>{if(f)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Yf=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(f)),p.layers.add(f),Xf(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=Yf)}},[f,y,r,p]),i.useEffect(()=>()=>{f&&(p.layers.delete(f),p.layersWithOutsidePointerEventsDisabled.delete(f),Xf())},[f,p]),i.useEffect(()=>{const R=()=>x({});return document.addEventListener($c,R),()=>document.removeEventListener($c,R)},[]),i.createElement(K.div,P({},u,{ref:g,style:{pointerEvents:b?E?"auto":"none":void 0,...e.style},onFocusCapture:I(e.onFocusCapture,S.onFocusCapture),onBlurCapture:I(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,k.onPointerDownCapture)}))});function Q$(e,t=globalThis==null?void 0:globalThis.document){const n=be(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const l=s=>{if(s.target&&!r.current){let p=function(){_v(G$,n,u,{discrete:!0})};var c=p;const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Z$(e,t=globalThis==null?void 0:globalThis.document){const n=be(e),r=i.useRef(!1);return i.useEffect(()=>{const o=l=>{l.target&&!r.current&&_v(Y$,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Xf(){const e=new CustomEvent($c);document.dispatchEvent(e)}function _v(e,t,n,{discrete:r}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?pv(o,l):o.dispatchEvent(l)}let rs=0;function hi(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Qf()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Qf()),rs++,()=>{rs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),rs--}},[])}function Qf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const os="focusScope.autoFocusOnMount",ls="focusScope.autoFocusOnUnmount",Zf={bubbles:!1,cancelable:!0},vi=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...a}=e,[s,c]=i.useState(null),u=be(o),p=be(l),f=i.useRef(null),m=Z(t,g=>c(g)),y=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let h=function(k){if(y.paused||!s)return;const S=k.target;s.contains(S)?f.current=S:sn(f.current,{select:!0})},w=function(k){if(y.paused||!s)return;const S=k.relatedTarget;S!==null&&(s.contains(S)||sn(f.current,{select:!0}))},b=function(k){if(document.activeElement===document.body)for(const R of k)R.removedNodes.length>0&&sn(s)};var g=h,$=w,v=b;document.addEventListener("focusin",h),document.addEventListener("focusout",w);const E=new MutationObserver(b);return s&&E.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w),E.disconnect()}}},[r,s,y.paused]),i.useEffect(()=>{if(s){Jf.add(y);const g=document.activeElement;if(!s.contains(g)){const v=new CustomEvent(os,Zf);s.addEventListener(os,u),s.dispatchEvent(v),v.defaultPrevented||(q$(rb(Nv(s)),{select:!0}),document.activeElement===g&&sn(s))}return()=>{s.removeEventListener(os,u),setTimeout(()=>{const v=new CustomEvent(ls,Zf);s.addEventListener(ls,p),s.dispatchEvent(v),v.defaultPrevented||sn(g??document.body,{select:!0}),s.removeEventListener(ls,p),Jf.remove(y)},0)}}},[s,u,p,y]);const x=i.useCallback(g=>{if(!n&&!r||y.paused)return;const $=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if($&&v){const h=g.currentTarget,[w,b]=J$(h);w&&b?!g.shiftKey&&v===b?(g.preventDefault(),n&&sn(w,{select:!0})):g.shiftKey&&v===w&&(g.preventDefault(),n&&sn(b,{select:!0})):v===h&&g.preventDefault()}},[n,r,y.paused]);return i.createElement(K.div,P({tabIndex:-1},a,{ref:m,onKeyDown:x}))});function q$(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(sn(r,{select:t}),document.activeElement!==n)return}function J$(e){const t=Nv(e),n=qf(t,e),r=qf(t.reverse(),e);return[n,r]}function Nv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function qf(e,t){for(const n of e)if(!eb(n,{upTo:t}))return n}function eb(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function tb(e){return e instanceof HTMLInputElement&&"select"in e}function sn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tb(e)&&t&&e.select()}}const Jf=nb();function nb(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ep(e,t),e.unshift(t)},remove(t){var n;e=ep(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function ep(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rb(e){return e.filter(t=>t.tagName!=="A")}const ob=["top","right","bottom","left"],Nn=Math.min,Je=Math.max,za=Math.round,Ul=Math.floor,Tn=e=>({x:e,y:e}),lb={left:"right",right:"left",bottom:"top",top:"bottom"},ab={start:"end",end:"start"};function bc(e,t,n){return Je(e,Nn(t,n))}function qt(e,t){return typeof e=="function"?e(t):e}function Jt(e){return e.split("-")[0]}function oo(e){return e.split("-")[1]}function Xu(e){return e==="x"?"y":"x"}function Qu(e){return e==="y"?"height":"width"}function lo(e){return["top","bottom"].includes(Jt(e))?"y":"x"}function Zu(e){return Xu(lo(e))}function ib(e,t,n){n===void 0&&(n=!1);const r=oo(e),o=Zu(e),l=Qu(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(a=Ua(a)),[a,Ua(a)]}function sb(e){const t=Ua(e);return[Ec(e),t,Ec(t)]}function Ec(e){return e.replace(/start|end/g,t=>ab[t])}function cb(e,t,n){const r=["left","right"],o=["right","left"],l=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?l:a;default:return[]}}function ub(e,t,n,r){const o=oo(e);let l=cb(Jt(e),n==="start",r);return o&&(l=l.map(a=>a+"-"+o),t&&(l=l.concat(l.map(Ec)))),l}function Ua(e){return e.replace(/left|right|bottom|top/g,t=>lb[t])}function db(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tv(e){return typeof e!="number"?db(e):{top:e,right:e,bottom:e,left:e}}function Ba(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function tp(e,t,n){let{reference:r,floating:o}=e;const l=lo(t),a=Zu(t),s=Qu(a),c=Jt(t),u=l==="y",p=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let y;switch(c){case"top":y={x:p,y:r.y-o.height};break;case"bottom":y={x:p,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:f};break;case"left":y={x:r.x-o.width,y:f};break;default:y={x:r.x,y:r.y}}switch(oo(t)){case"start":y[a]-=m*(n&&u?-1:1);break;case"end":y[a]+=m*(n&&u?-1:1);break}return y}const fb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:a}=n,s=l.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:f}=tp(u,r,c),m=r,y={},x=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:l,platform:a,elements:s,middlewareData:c}=t,{element:u,padding:p=0}=qt(e,t)||{};if(u==null)return{};const f=Tv(p),m={x:n,y:r},y=Zu(o),x=Qu(y),g=await a.getDimensions(u),$=y==="y",v=$?"top":"left",h=$?"bottom":"right",w=$?"clientHeight":"clientWidth",b=l.reference[x]+l.reference[y]-m[y]-l.floating[x],E=m[y]-l.reference[y],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let S=k?k[w]:0;(!S||!await(a.isElement==null?void 0:a.isElement(k)))&&(S=s.floating[w]||l.floating[x]);const R=b/2-E/2,N=S/2-g[x]/2-1,O=Nn(f[v],N),z=Nn(f[h],N),D=O,Y=S-g[x]-z,U=S/2-g[x]/2+R,H=bc(D,U,Y),V=!c.arrow&&oo(o)!=null&&U!=H&&l.reference[x]/2-(UD<=0)){var N,O;const D=(((N=l.flip)==null?void 0:N.index)||0)+1,Y=E[D];if(Y)return{data:{index:D,overflows:R},reset:{placement:Y}};let U=(O=R.filter(H=>H.overflows[0]<=0).sort((H,V)=>H.overflows[1]-V.overflows[1])[0])==null?void 0:O.placement;if(!U)switch(y){case"bestFit":{var z;const H=(z=R.map(V=>[V.placement,V.overflows.filter(G=>G>0).reduce((G,T)=>G+T,0)]).sort((V,G)=>V[1]-G[1])[0])==null?void 0:z[0];H&&(U=H);break}case"initialPlacement":U=s;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function rp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function op(e){return ob.some(t=>e[t]>=0)}const mb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=qt(e,t);switch(r){case"referenceHidden":{const l=await nl(t,{...o,elementContext:"reference"}),a=rp(l,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:op(a)}}}case"escaped":{const l=await nl(t,{...o,altBoundary:!0}),a=rp(l,n.floating);return{data:{escapedOffsets:a,escaped:op(a)}}}default:return{}}}}};async function hb(e,t){const{placement:n,platform:r,elements:o}=e,l=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Jt(n),s=oo(n),c=lo(n)==="y",u=["left","top"].includes(a)?-1:1,p=l&&c?-1:1,f=qt(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof x=="number"&&(y=s==="end"?x*-1:x),c?{x:y*p,y:m*u}:{x:m*u,y:y*p}}const vb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await hb(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},gb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:$=>{let{x:v,y:h}=$;return{x:v,y:h}}},...c}=qt(e,t),u={x:n,y:r},p=await nl(t,c),f=lo(Jt(o)),m=Xu(f);let y=u[m],x=u[f];if(l){const $=m==="y"?"top":"left",v=m==="y"?"bottom":"right",h=y+p[$],w=y-p[v];y=bc(h,y,w)}if(a){const $=f==="y"?"top":"left",v=f==="y"?"bottom":"right",h=x+p[$],w=x-p[v];x=bc(h,x,w)}const g=s.fn({...t,[m]:y,[f]:x});return{...g,data:{x:g.x-n,y:g.y-r}}}}},yb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:l,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=qt(e,t),p={x:n,y:r},f=lo(o),m=Xu(f);let y=p[m],x=p[f];const g=qt(s,t),$=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const w=m==="y"?"height":"width",b=l.reference[m]-l.floating[w]+$.mainAxis,E=l.reference[m]+l.reference[w]-$.mainAxis;yE&&(y=E)}if(u){var v,h;const w=m==="y"?"width":"height",b=["top","left"].includes(Jt(o)),E=l.reference[f]-l.floating[w]+(b&&((v=a.offset)==null?void 0:v[f])||0)+(b?0:$.crossAxis),k=l.reference[f]+l.reference[w]+(b?0:((h=a.offset)==null?void 0:h[f])||0)-(b?$.crossAxis:0);xk&&(x=k)}return{[m]:y,[f]:x}}}},xb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:l}=t,{apply:a=()=>{},...s}=qt(e,t),c=await nl(t,s),u=Jt(n),p=oo(n),f=lo(n)==="y",{width:m,height:y}=r.floating;let x,g;u==="top"||u==="bottom"?(x=u,g=p===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(g=u,x=p==="end"?"top":"bottom");const $=y-c[x],v=m-c[g],h=!t.middlewareData.shift;let w=$,b=v;if(f){const k=m-c.left-c.right;b=p||h?Nn(v,k):k}else{const k=y-c.top-c.bottom;w=p||h?Nn($,k):k}if(h&&!p){const k=Je(c.left,0),S=Je(c.right,0),R=Je(c.top,0),N=Je(c.bottom,0);f?b=m-2*(k!==0||S!==0?k+S:Je(c.left,c.right)):w=y-2*(R!==0||N!==0?R+N:Je(c.top,c.bottom))}await a({...t,availableWidth:b,availableHeight:w});const E=await o.getDimensions(l.floating);return m!==E.width||y!==E.height?{reset:{rects:!0}}:{}}}};function Mn(e){return Mv(e)?(e.nodeName||"").toLowerCase():"#document"}function at(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function on(e){var t;return(t=(Mv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mv(e){return e instanceof Node||e instanceof at(e).Node}function en(e){return e instanceof Element||e instanceof at(e).Element}function At(e){return e instanceof HTMLElement||e instanceof at(e).HTMLElement}function lp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof at(e).ShadowRoot}function hl(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function wb(e){return["table","td","th"].includes(Mn(e))}function qu(e){const t=Ju(),n=gt(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 $b(e){let t=Zr(e);for(;At(t)&&!gi(t);){if(qu(t))return t;t=Zr(t)}return null}function Ju(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gi(e){return["html","body","#document"].includes(Mn(e))}function gt(e){return at(e).getComputedStyle(e)}function yi(e){return en(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Zr(e){if(Mn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||lp(e)&&e.host||on(e);return lp(t)?t.host:t}function Ov(e){const t=Zr(e);return gi(t)?e.ownerDocument?e.ownerDocument.body:e.body:At(t)&&hl(t)?t:Ov(t)}function rl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ov(e),l=o===((r=e.ownerDocument)==null?void 0:r.body),a=at(o);return l?t.concat(a,a.visualViewport||[],hl(o)?o:[],a.frameElement&&n?rl(a.frameElement):[]):t.concat(o,rl(o,[],n))}function jv(e){const t=gt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=At(e),l=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=za(n)!==l||za(r)!==a;return s&&(n=l,r=a),{width:n,height:r,$:s}}function ed(e){return en(e)?e:e.contextElement}function Fr(e){const t=ed(e);if(!At(t))return Tn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:l}=jv(t);let a=(l?za(n.width):n.width)/r,s=(l?za(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const bb=Tn(0);function Av(e){const t=at(e);return!Ju()||!t.visualViewport?bb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Eb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==at(e)?!1:t}function tr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=ed(e);let a=Tn(1);t&&(r?en(r)&&(a=Fr(r)):a=Fr(e));const s=Eb(l,n,r)?Av(l):Tn(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,p=o.width/a.x,f=o.height/a.y;if(l){const m=at(l),y=r&&en(r)?at(r):r;let x=m.frameElement;for(;x&&r&&y!==m;){const g=Fr(x),$=x.getBoundingClientRect(),v=gt(x),h=$.left+(x.clientLeft+parseFloat(v.paddingLeft))*g.x,w=$.top+(x.clientTop+parseFloat(v.paddingTop))*g.y;c*=g.x,u*=g.y,p*=g.x,f*=g.y,c+=h,u+=w,x=at(x).frameElement}}return Ba({width:p,height:f,x:c,y:u})}function Cb(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=At(n),l=on(n);if(n===l)return t;let a={scrollLeft:0,scrollTop:0},s=Tn(1);const c=Tn(0);if((o||!o&&r!=="fixed")&&((Mn(n)!=="body"||hl(l))&&(a=yi(n)),At(n))){const u=tr(n);s=Fr(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+c.x,y:t.y*s.y-a.scrollTop*s.y+c.y}}function Sb(e){return Array.from(e.getClientRects())}function Iv(e){return tr(on(e)).left+yi(e).scrollLeft}function kb(e){const t=on(e),n=yi(e),r=e.ownerDocument.body,o=Je(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Je(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Iv(e);const s=-n.scrollTop;return gt(r).direction==="rtl"&&(a+=Je(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:a,y:s}}function Pb(e,t){const n=at(e),r=on(e),o=n.visualViewport;let l=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){l=o.width,a=o.height;const u=Ju();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:l,height:a,x:s,y:c}}function Rb(e,t){const n=tr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,l=At(e)?Fr(e):Tn(1),a=e.clientWidth*l.x,s=e.clientHeight*l.y,c=o*l.x,u=r*l.y;return{width:a,height:s,x:c,y:u}}function ap(e,t,n){let r;if(t==="viewport")r=Pb(e,n);else if(t==="document")r=kb(on(e));else if(en(t))r=Rb(t,n);else{const o=Av(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ba(r)}function Dv(e,t){const n=Zr(e);return n===t||!en(n)||gi(n)?!1:gt(n).position==="fixed"||Dv(n,t)}function _b(e,t){const n=t.get(e);if(n)return n;let r=rl(e,[],!1).filter(s=>en(s)&&Mn(s)!=="body"),o=null;const l=gt(e).position==="fixed";let a=l?Zr(e):e;for(;en(a)&&!gi(a);){const s=gt(a),c=qu(a);!c&&s.position==="fixed"&&(o=null),(l?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||hl(a)&&!c&&Dv(e,a))?r=r.filter(p=>p!==a):o=s,a=Zr(a)}return t.set(e,r),r}function Nb(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?_b(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((u,p)=>{const f=ap(t,p,o);return u.top=Je(f.top,u.top),u.right=Nn(f.right,u.right),u.bottom=Nn(f.bottom,u.bottom),u.left=Je(f.left,u.left),u},ap(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Tb(e){return jv(e)}function Mb(e,t,n){const r=At(t),o=on(t),l=n==="fixed",a=tr(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const c=Tn(0);if(r||!r&&!l)if((Mn(t)!=="body"||hl(o))&&(s=yi(t)),r){const u=tr(t,!0,l,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else o&&(c.x=Iv(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function ip(e,t){return!At(e)||gt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Lv(e,t){const n=at(e);if(!At(e))return n;let r=ip(e,t);for(;r&&wb(r)&>(r).position==="static";)r=ip(r,t);return r&&(Mn(r)==="html"||Mn(r)==="body"&>(r).position==="static"&&!qu(r))?n:r||$b(e)||n}const Ob=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Lv,l=this.getDimensions;return{reference:Mb(t,await o(n),r),floating:{x:0,y:0,...await l(n)}}};function jb(e){return gt(e).direction==="rtl"}const Ab={convertOffsetParentRelativeRectToViewportRelativeRect:Cb,getDocumentElement:on,getClippingRect:Nb,getOffsetParent:Lv,getElementRects:Ob,getClientRects:Sb,getDimensions:Tb,getScale:Fr,isElement:en,isRTL:jb};function Ib(e,t){let n=null,r;const o=on(e);function l(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),l();const{left:u,top:p,width:f,height:m}=e.getBoundingClientRect();if(s||t(),!f||!m)return;const y=Ul(p),x=Ul(o.clientWidth-(u+f)),g=Ul(o.clientHeight-(p+m)),$=Ul(u),h={rootMargin:-y+"px "+-x+"px "+-g+"px "+-$+"px",threshold:Je(0,Nn(1,c))||1};let w=!0;function b(E){const k=E[0].intersectionRatio;if(k!==c){if(!w)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(b,{...h,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,h)}n.observe(e)}return a(!0),l}function Db(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=ed(e),p=o||l?[...u?rl(u):[],...rl(t)]:[];p.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),l&&v.addEventListener("resize",n)});const f=u&&s?Ib(u,n):null;let m=-1,y=null;a&&(y=new ResizeObserver(v=>{let[h]=v;h&&h.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{y&&y.observe(t)})),n()}),u&&!c&&y.observe(u),y.observe(t));let x,g=c?tr(e):null;c&&$();function $(){const v=tr(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,x=requestAnimationFrame($)}return n(),()=>{p.forEach(v=>{o&&v.removeEventListener("scroll",n),l&&v.removeEventListener("resize",n)}),f&&f(),y&&y.disconnect(),y=null,c&&cancelAnimationFrame(x)}}const Lb=(e,t,n)=>{const r=new Map,o={platform:Ab,...n},l={...o.platform,_c:r};return fb(e,t,{...o,platform:l})},Fb=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?np({element:r.current,padding:o}).fn(n):{}:r?np({element:r,padding:o}).fn(n):{}}}};var ca=typeof document<"u"?i.useLayoutEffect:i.useEffect;function Va(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(!Va(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 l=o[r];if(!(l==="_owner"&&e.$$typeof)&&!Va(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function Fv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sp(e,t){const n=Fv(e);return Math.round(t*n)/n}function cp(e){const t=i.useRef(e);return ca(()=>{t.current=e}),t}function zb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[p,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,y]=i.useState(r);Va(m,r)||y(r);const[x,g]=i.useState(null),[$,v]=i.useState(null),h=i.useCallback(V=>{V!=k.current&&(k.current=V,g(V))},[g]),w=i.useCallback(V=>{V!==S.current&&(S.current=V,v(V))},[v]),b=l||x,E=a||$,k=i.useRef(null),S=i.useRef(null),R=i.useRef(p),N=cp(c),O=cp(o),z=i.useCallback(()=>{if(!k.current||!S.current)return;const V={placement:t,strategy:n,middleware:m};O.current&&(V.platform=O.current),Lb(k.current,S.current,V).then(G=>{const T={...G,isPositioned:!0};D.current&&!Va(R.current,T)&&(R.current=T,nn.flushSync(()=>{f(T)}))})},[m,t,n,O]);ca(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[u]);const D=i.useRef(!1);ca(()=>(D.current=!0,()=>{D.current=!1}),[]),ca(()=>{if(b&&(k.current=b),E&&(S.current=E),b&&E){if(N.current)return N.current(b,E,z);z()}},[b,E,z,N]);const Y=i.useMemo(()=>({reference:k,floating:S,setReference:h,setFloating:w}),[h,w]),U=i.useMemo(()=>({reference:b,floating:E}),[b,E]),H=i.useMemo(()=>{const V={position:n,left:0,top:0};if(!U.floating)return V;const G=sp(U.floating,p.x),T=sp(U.floating,p.y);return s?{...V,transform:"translate("+G+"px, "+T+"px)",...Fv(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:T}},[n,s,U.floating,p.x,p.y]);return i.useMemo(()=>({...p,update:z,refs:Y,elements:U,floatingStyles:H}),[p,z,Y,U,H])}function td(e){const[t,n]=i.useState(void 0);return Ye(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let a,s;if("borderBoxSize"in l){const c=l.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const zv="Popper",[Uv,ao]=Fe(zv),[Ub,Bv]=Uv(zv),Bb=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return i.createElement(Ub,{scope:t,anchor:r,onAnchorChange:o},n)},Vb="PopperAnchor",Wb=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,l=Bv(Vb,n),a=i.useRef(null),s=Z(t,a);return i.useEffect(()=>{l.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:i.createElement(K.div,P({},o,{ref:s}))}),Vv="PopperContent",[Hb,PS]=Uv(Vv),Kb=i.forwardRef((e,t)=>{var n,r,o,l,a,s,c,u;const{__scopePopper:p,side:f="bottom",sideOffset:m=0,align:y="center",alignOffset:x=0,arrowPadding:g=0,avoidCollisions:$=!0,collisionBoundary:v=[],collisionPadding:h=0,sticky:w="partial",hideWhenDetached:b=!1,updatePositionStrategy:E="optimized",onPlaced:k,...S}=e,R=Bv(Vv,p),[N,O]=i.useState(null),z=Z(t,Dt=>O(Dt)),[D,Y]=i.useState(null),U=td(D),H=(n=U==null?void 0:U.width)!==null&&n!==void 0?n:0,V=(r=U==null?void 0:U.height)!==null&&r!==void 0?r:0,G=f+(y!=="center"?"-"+y:""),T=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},C=Array.isArray(v)?v:[v],_=C.length>0,A={padding:T,boundary:C.filter(Gb),altBoundary:_},{refs:j,floatingStyles:W,placement:q,isPositioned:ve,middlewareData:ie}=zb({strategy:"fixed",placement:G,whileElementsMounted:(...Dt)=>Db(...Dt,{animationFrame:E==="always"}),elements:{reference:R.anchor},middleware:[vb({mainAxis:m+V,alignmentAxis:x}),$&&gb({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?yb():void 0,...A}),$&&pb({...A}),xb({...A,apply:({elements:Dt,rects:dr,availableWidth:fo,availableHeight:k1})=>{const{width:P1,height:R1}=dr.reference,$l=Dt.floating.style;$l.setProperty("--radix-popper-available-width",`${fo}px`),$l.setProperty("--radix-popper-available-height",`${k1}px`),$l.setProperty("--radix-popper-anchor-width",`${P1}px`),$l.setProperty("--radix-popper-anchor-height",`${R1}px`)}}),D&&Fb({element:D,padding:g}),Yb({arrowWidth:H,arrowHeight:V}),b&&mb({strategy:"referenceHidden",...A})]}),[B,ne]=Wv(q),re=be(k);Ye(()=>{ve&&(re==null||re())},[ve,re]);const oe=(o=ie.arrow)===null||o===void 0?void 0:o.x,le=(l=ie.arrow)===null||l===void 0?void 0:l.y,ae=((a=ie.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Qe,Ze]=i.useState();return Ye(()=>{N&&Ze(window.getComputedStyle(N).zIndex)},[N]),i.createElement("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:ve?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Qe,"--radix-popper-transform-origin":[(s=ie.transformOrigin)===null||s===void 0?void 0:s.x,(c=ie.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},i.createElement(Hb,{scope:p,placedSide:B,onArrowChange:Y,arrowX:oe,arrowY:le,shouldHideArrow:ae},i.createElement(K.div,P({"data-side":B,"data-align":ne},S,{ref:z,style:{...S.style,animation:ve?void 0:"none",opacity:(u=ie.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function Gb(e){return e!==null}const Yb=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,l,a;const{placement:s,rects:c,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=f?0:e.arrowWidth,y=f?0:e.arrowHeight,[x,g]=Wv(s),$={start:"0%",center:"50%",end:"100%"}[g],v=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,h=((l=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&l!==void 0?l:0)+y/2;let w="",b="";return x==="bottom"?(w=f?$:`${v}px`,b=`${-y}px`):x==="top"?(w=f?$:`${v}px`,b=`${c.floating.height+y}px`):x==="right"?(w=`${-y}px`,b=f?$:`${h}px`):x==="left"&&(w=`${c.floating.width+y}px`,b=f?$:`${h}px`),{data:{x:w,y:b}}}});function Wv(e){const[t,n="center"]=e.split("-");return[t,n]}const nd=Bb,rd=Wb,od=Kb,xi=i.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Xh.createPortal(i.createElement(K.div,P({},o,{ref:t})),r):null});function On({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Xb({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:r,s=be(n),c=i.useCallback(u=>{if(l){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else o(u)},[l,e,o,s]);return[a,c]}function Xb({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),l=be(t);return i.useEffect(()=>{o.current!==r&&(l(r),o.current=r)},[r,o,l]),n}const as="rovingFocusGroup.onEntryFocus",Qb={bubbles:!1,cancelable:!0},ld="RovingFocusGroup",[Cc,Hv,Zb]=pi(ld),[qb,Dn]=Fe(ld,[Zb]),[Jb,e2]=qb(ld),t2=i.forwardRef((e,t)=>i.createElement(Cc.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(Cc.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(n2,P({},e,{ref:t}))))),n2=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:l,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,...p}=e,f=i.useRef(null),m=Z(t,f),y=ro(l),[x=null,g]=On({prop:a,defaultProp:s,onChange:c}),[$,v]=i.useState(!1),h=be(u),w=Hv(n),b=i.useRef(!1),[E,k]=i.useState(0);return i.useEffect(()=>{const S=f.current;if(S)return S.addEventListener(as,h),()=>S.removeEventListener(as,h)},[h]),i.createElement(Jb,{scope:n,orientation:r,dir:y,loop:o,currentTabStopId:x,onItemFocus:i.useCallback(S=>g(S),[g]),onItemShiftTab:i.useCallback(()=>v(!0),[]),onFocusableItemAdd:i.useCallback(()=>k(S=>S+1),[]),onFocusableItemRemove:i.useCallback(()=>k(S=>S-1),[])},i.createElement(K.div,P({tabIndex:$||E===0?-1:0,"data-orientation":r},p,{ref:m,style:{outline:"none",...e.style},onMouseDown:I(e.onMouseDown,()=>{b.current=!0}),onFocus:I(e.onFocus,S=>{const R=!b.current;if(S.target===S.currentTarget&&R&&!$){const N=new CustomEvent(as,Qb);if(S.currentTarget.dispatchEvent(N),!N.defaultPrevented){const O=w().filter(H=>H.focusable),z=O.find(H=>H.active),D=O.find(H=>H.id===x),U=[z,D,...O].filter(Boolean).map(H=>H.ref.current);Kv(U)}}b.current=!1}),onBlur:I(e.onBlur,()=>v(!1))})))}),r2="RovingFocusGroupItem",o2=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:l,...a}=e,s=Kt(),c=l||s,u=e2(r2,n),p=u.currentTabStopId===c,f=Hv(n),{onFocusableItemAdd:m,onFocusableItemRemove:y}=u;return i.useEffect(()=>{if(r)return m(),()=>y()},[r,m,y]),i.createElement(Cc.ItemSlot,{scope:n,id:c,focusable:r,active:o},i.createElement(K.span,P({tabIndex:p?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:I(e.onMouseDown,x=>{r?u.onItemFocus(c):x.preventDefault()}),onFocus:I(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:I(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){u.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const g=i2(x,u.orientation,u.dir);if(g!==void 0){x.preventDefault();let v=f().filter(h=>h.focusable).map(h=>h.ref.current);if(g==="last")v.reverse();else if(g==="prev"||g==="next"){g==="prev"&&v.reverse();const h=v.indexOf(x.currentTarget);v=u.loop?s2(v,h+1):v.slice(h+1)}setTimeout(()=>Kv(v))}})})))}),l2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function a2(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function i2(e,t,n){const r=a2(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return l2[r]}function Kv(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function s2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const wi=t2,$i=o2;var c2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pr=new WeakMap,Bl=new WeakMap,Vl={},is=0,Gv=function(e){return e&&(e.host||Gv(e.parentNode))},u2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Gv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},d2=function(e,t,n,r){var o=u2(t,Array.isArray(e)?e:[e]);Vl[n]||(Vl[n]=new WeakMap);var l=Vl[n],a=[],s=new Set,c=new Set(o),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};o.forEach(u);var p=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(m){if(s.has(m))p(m);else{var y=m.getAttribute(r),x=y!==null&&y!=="false",g=(pr.get(m)||0)+1,$=(l.get(m)||0)+1;pr.set(m,g),l.set(m,$),a.push(m),g===1&&x&&Bl.set(m,!0),$===1&&m.setAttribute(n,"true"),x||m.setAttribute(r,"true")}})};return p(t),s.clear(),is++,function(){a.forEach(function(f){var m=pr.get(f)-1,y=l.get(f)-1;pr.set(f,m),l.set(f,y),m||(Bl.has(f)||f.removeAttribute(r),Bl.delete(f)),y||f.removeAttribute(n)}),is--,is||(pr=new WeakMap,pr=new WeakMap,Bl=new WeakMap,Vl={})}},vl=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||c2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),d2(r,o,n,"aria-hidden")):function(){return null}},Me=function(){return Me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return C2;var t=S2(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},P2=id(),R2=function(e,t,n,r){var o=e.left,l=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(f2,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(s,"px ").concat(r,`; + } + body { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(l,`px; + padding-right: `).concat(a,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(s,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Do,` { + right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Lo,` { + margin-right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Do," .").concat(Do,` { + right: 0 `).concat(r,`; + } + + .`).concat(Lo," .").concat(Lo,` { + margin-right: 0 `).concat(r,`; + } + + body { + `).concat(p2,": ").concat(s,`px; + } +`)},e0=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,l=i.useMemo(function(){return k2(o)},[o]);return i.createElement(P2,{styles:R2(l,!t,o,n?"":"!important")})},Sc=!1;if(typeof window<"u")try{var Wl=Object.defineProperty({},"passive",{get:function(){return Sc=!0,!0}});window.addEventListener("test",Wl,Wl),window.removeEventListener("test",Wl,Wl)}catch{Sc=!1}var mr=Sc?{passive:!1}:!1,_2=function(e){return e.tagName==="TEXTAREA"},t0=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_2(e)&&n[t]==="visible")},N2=function(e){return t0(e,"overflowY")},T2=function(e){return t0(e,"overflowX")},dp=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=n0(e,n);if(r){var o=r0(e,n),l=o[1],a=o[2];if(l>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},M2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},O2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},n0=function(e,t){return e==="v"?N2(t):T2(t)},r0=function(e,t){return e==="v"?M2(t):O2(t)},j2=function(e,t){return e==="h"&&t==="rtl"?-1:1},A2=function(e,t,n,r,o){var l=j2(e,window.getComputedStyle(t).direction),a=l*r,s=n.target,c=t.contains(s),u=!1,p=a>0,f=0,m=0;do{var y=r0(e,s),x=y[0],g=y[1],$=y[2],v=g-$-l*x;(x||v)&&n0(e,s)&&(f+=v,m+=x),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(p&&(o&&f===0||!o&&a>f)||!p&&(o&&m===0||!o&&-a>m))&&(u=!0),u},Hl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fp=function(e){return[e.deltaX,e.deltaY]},pp=function(e){return e&&"current"in e?e.current:e},I2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},D2=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},L2=0,hr=[];function F2(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(L2++)[0],l=i.useState(function(){return id()})[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Yv([e.lockRef.current],(e.shards||[]).map(pp),!0).filter(Boolean);return g.forEach(function($){return $.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function($){return $.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(g,$){if("touches"in g&&g.touches.length===2)return!a.current.allowPinchZoom;var v=Hl(g),h=n.current,w="deltaX"in g?g.deltaX:h[0]-v[0],b="deltaY"in g?g.deltaY:h[1]-v[1],E,k=g.target,S=Math.abs(w)>Math.abs(b)?"h":"v";if("touches"in g&&S==="h"&&k.type==="range")return!1;var R=dp(S,k);if(!R)return!0;if(R?E=S:(E=S==="v"?"h":"v",R=dp(S,k)),!R)return!1;if(!r.current&&"changedTouches"in g&&(w||b)&&(r.current=E),!E)return!0;var N=r.current||E;return A2(N,$,g,N==="h"?w:b,!0)},[]),c=i.useCallback(function(g){var $=g;if(!(!hr.length||hr[hr.length-1]!==l)){var v="deltaY"in $?fp($):Hl($),h=t.current.filter(function(E){return E.name===$.type&&E.target===$.target&&I2(E.delta,v)})[0];if(h&&h.should){$.cancelable&&$.preventDefault();return}if(!h){var w=(a.current.shards||[]).map(pp).filter(Boolean).filter(function(E){return E.contains($.target)}),b=w.length>0?s($,w[0]):!a.current.noIsolation;b&&$.cancelable&&$.preventDefault()}}},[]),u=i.useCallback(function(g,$,v,h){var w={name:g,delta:$,target:v,should:h};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(b){return b!==w})},1)},[]),p=i.useCallback(function(g){n.current=Hl(g),r.current=void 0},[]),f=i.useCallback(function(g){u(g.type,fp(g),g.target,s(g,e.lockRef.current))},[]),m=i.useCallback(function(g){u(g.type,Hl(g),g.target,s(g,e.lockRef.current))},[]);i.useEffect(function(){return hr.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,mr),document.addEventListener("touchmove",c,mr),document.addEventListener("touchstart",p,mr),function(){hr=hr.filter(function(g){return g!==l}),document.removeEventListener("wheel",c,mr),document.removeEventListener("touchmove",c,mr),document.removeEventListener("touchstart",p,mr)}},[]);var y=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(l,{styles:D2(o)}):null,y?i.createElement(e0,{gapMode:"margin"}):null)}const z2=qv(Jv,F2);var o0=i.forwardRef(function(e,t){return i.createElement(bi,Me({},e,{ref:t,sideCar:z2}))});o0.classNames=bi.classNames;const Ei=o0,kc=["Enter"," "],U2=["ArrowDown","PageUp","Home"],l0=["ArrowUp","PageDown","End"],B2=[...U2,...l0],V2={ltr:[...kc,"ArrowRight"],rtl:[...kc,"ArrowLeft"]},W2={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ci="Menu",[ol,H2,K2]=pi(Ci),[ar,sd]=Fe(Ci,[K2,ao,Dn]),cd=ao(),a0=Dn(),[G2,ir]=ar(Ci),[Y2,gl]=ar(Ci),X2=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:l,modal:a=!0}=e,s=cd(t),[c,u]=i.useState(null),p=i.useRef(!1),f=be(l),m=ro(o);return i.useEffect(()=>{const y=()=>{p.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>p.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),i.createElement(nd,s,i.createElement(G2,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:u},i.createElement(Y2,{scope:t,onClose:i.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:m,modal:a},r)))},i0=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=cd(n);return i.createElement(rd,P({},o,r,{ref:t}))}),s0="MenuPortal",[Q2,c0]=ar(s0,{forceMount:void 0}),Z2=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,l=ir(s0,t);return i.createElement(Q2,{scope:t,forceMount:n},i.createElement(je,{present:n||l.open},i.createElement(xi,{asChild:!0,container:o},r)))},Rt="MenuContent",[q2,ud]=ar(Rt),J2=i.forwardRef((e,t)=>{const n=c0(Rt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,l=ir(Rt,e.__scopeMenu),a=gl(Rt,e.__scopeMenu);return i.createElement(ol.Provider,{scope:e.__scopeMenu},i.createElement(je,{present:r||l.open},i.createElement(ol.Slot,{scope:e.__scopeMenu},a.modal?i.createElement(e5,P({},o,{ref:t})):i.createElement(t5,P({},o,{ref:t})))))}),e5=i.forwardRef((e,t)=>{const n=ir(Rt,e.__scopeMenu),r=i.useRef(null),o=Z(t,r);return i.useEffect(()=>{const l=r.current;if(l)return vl(l)},[]),i.createElement(dd,P({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:I(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),t5=i.forwardRef((e,t)=>{const n=ir(Rt,e.__scopeMenu);return i.createElement(dd,P({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),dd=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:m,onDismiss:y,disableOutsideScroll:x,...g}=e,$=ir(Rt,n),v=gl(Rt,n),h=cd(n),w=a0(n),b=H2(n),[E,k]=i.useState(null),S=i.useRef(null),R=Z(t,S,$.onContentChange),N=i.useRef(0),O=i.useRef(""),z=i.useRef(0),D=i.useRef(null),Y=i.useRef("right"),U=i.useRef(0),H=x?Ei:i.Fragment,V=x?{as:Zt,allowPinchZoom:!0}:void 0,G=C=>{var _,A;const j=O.current+C,W=b().filter(re=>!re.disabled),q=document.activeElement,ve=(_=W.find(re=>re.ref.current===q))===null||_===void 0?void 0:_.textValue,ie=W.map(re=>re.textValue),B=g5(ie,j,ve),ne=(A=W.find(re=>re.textValue===B))===null||A===void 0?void 0:A.ref.current;(function re(oe){O.current=oe,window.clearTimeout(N.current),oe!==""&&(N.current=window.setTimeout(()=>re(""),1e3))})(j),ne&&setTimeout(()=>ne.focus())};i.useEffect(()=>()=>window.clearTimeout(N.current),[]),hi();const T=i.useCallback(C=>{var _,A;return Y.current===((_=D.current)===null||_===void 0?void 0:_.side)&&x5(C,(A=D.current)===null||A===void 0?void 0:A.area)},[]);return i.createElement(q2,{scope:n,searchRef:O,onItemEnter:i.useCallback(C=>{T(C)&&C.preventDefault()},[T]),onItemLeave:i.useCallback(C=>{var _;T(C)||((_=S.current)===null||_===void 0||_.focus(),k(null))},[T]),onTriggerLeave:i.useCallback(C=>{T(C)&&C.preventDefault()},[T]),pointerGraceTimerRef:z,onPointerGraceIntentChange:i.useCallback(C=>{D.current=C},[])},i.createElement(H,V,i.createElement(vi,{asChild:!0,trapped:o,onMountAutoFocus:I(l,C=>{var _;C.preventDefault(),(_=S.current)===null||_===void 0||_.focus()}),onUnmountAutoFocus:a},i.createElement(mi,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:m,onDismiss:y},i.createElement(wi,P({asChild:!0},w,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:k,onEntryFocus:I(c,C=>{v.isUsingKeyboardRef.current||C.preventDefault()})}),i.createElement(od,P({role:"menu","aria-orientation":"vertical","data-state":m0($.open),"data-radix-menu-content":"",dir:v.dir},h,g,{ref:R,style:{outline:"none",...g.style},onKeyDown:I(g.onKeyDown,C=>{const A=C.target.closest("[data-radix-menu-content]")===C.currentTarget,j=C.ctrlKey||C.altKey||C.metaKey,W=C.key.length===1;A&&(C.key==="Tab"&&C.preventDefault(),!j&&W&&G(C.key));const q=S.current;if(C.target!==q||!B2.includes(C.key))return;C.preventDefault();const ie=b().filter(B=>!B.disabled).map(B=>B.ref.current);l0.includes(C.key)&&ie.reverse(),h5(ie)}),onBlur:I(e.onBlur,C=>{C.currentTarget.contains(C.target)||(window.clearTimeout(N.current),O.current="")}),onPointerMove:I(e.onPointerMove,ll(C=>{const _=C.target,A=U.current!==C.clientX;if(C.currentTarget.contains(_)&&A){const j=C.clientX>U.current?"right":"left";Y.current=j,U.current=C.clientX}}))})))))))}),n5=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(K.div,P({},r,{ref:t}))}),Pc="MenuItem",mp="menu.itemSelect",fd=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,l=i.useRef(null),a=gl(Pc,e.__scopeMenu),s=ud(Pc,e.__scopeMenu),c=Z(t,l),u=i.useRef(!1),p=()=>{const f=l.current;if(!n&&f){const m=new CustomEvent(mp,{bubbles:!0,cancelable:!0});f.addEventListener(mp,y=>r==null?void 0:r(y),{once:!0}),pv(f,m),m.defaultPrevented?u.current=!1:a.onClose()}};return i.createElement(u0,P({},o,{ref:c,disabled:n,onClick:I(e.onClick,p),onPointerDown:f=>{var m;(m=e.onPointerDown)===null||m===void 0||m.call(e,f),u.current=!0},onPointerUp:I(e.onPointerUp,f=>{var m;u.current||(m=f.currentTarget)===null||m===void 0||m.click()}),onKeyDown:I(e.onKeyDown,f=>{const m=s.searchRef.current!=="";n||m&&f.key===" "||kc.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),u0=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...l}=e,a=ud(Pc,n),s=a0(n),c=i.useRef(null),u=Z(t,c),[p,f]=i.useState(!1),[m,y]=i.useState("");return i.useEffect(()=>{const x=c.current;if(x){var g;y(((g=x.textContent)!==null&&g!==void 0?g:"").trim())}},[l.children]),i.createElement(ol.ItemSlot,{scope:n,disabled:r,textValue:o??m},i.createElement($i,P({asChild:!0},s,{focusable:!r}),i.createElement(K.div,P({role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},l,{ref:u,onPointerMove:I(e.onPointerMove,ll(x=>{r?a.onItemLeave(x):(a.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus())})),onPointerLeave:I(e.onPointerLeave,ll(x=>a.onItemLeave(x))),onFocus:I(e.onFocus,()=>f(!0)),onBlur:I(e.onBlur,()=>f(!1))}))))}),r5=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.createElement(f0,{scope:e.__scopeMenu,checked:n},i.createElement(fd,P({role:"menuitemcheckbox","aria-checked":Wa(n)?"mixed":n},o,{ref:t,"data-state":pd(n),onSelect:I(o.onSelect,()=>r==null?void 0:r(Wa(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),o5="MenuRadioGroup",[RS,l5]=ar(o5,{value:void 0,onValueChange:()=>{}}),a5="MenuRadioItem",i5=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=l5(a5,e.__scopeMenu),l=n===o.value;return i.createElement(f0,{scope:e.__scopeMenu,checked:l},i.createElement(fd,P({role:"menuitemradio","aria-checked":l},r,{ref:t,"data-state":pd(l),onSelect:I(r.onSelect,()=>{var a;return(a=o.onValueChange)===null||a===void 0?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})))}),d0="MenuItemIndicator",[f0,s5]=ar(d0,{checked:!1}),c5=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,l=s5(d0,n);return i.createElement(je,{present:r||Wa(l.checked)||l.checked===!0},i.createElement(K.span,P({},o,{ref:t,"data-state":pd(l.checked)})))}),u5=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(K.div,P({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),d5="MenuSub",[_S,p0]=ar(d5),Kl="MenuSubTrigger",f5=i.forwardRef((e,t)=>{const n=ir(Kl,e.__scopeMenu),r=gl(Kl,e.__scopeMenu),o=p0(Kl,e.__scopeMenu),l=ud(Kl,e.__scopeMenu),a=i.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=l,u={__scopeMenu:e.__scopeMenu},p=i.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return i.useEffect(()=>p,[p]),i.useEffect(()=>{const f=s.current;return()=>{window.clearTimeout(f),c(null)}},[s,c]),i.createElement(i0,P({asChild:!0},u),i.createElement(u0,P({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":m0(n.open)},e,{ref:ui(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)===null||m===void 0||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:I(e.onPointerMove,ll(f=>{l.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(l.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:I(e.onPointerLeave,ll(f=>{var m;p();const y=(m=n.content)===null||m===void 0?void 0:m.getBoundingClientRect();if(y){var x;const g=(x=n.content)===null||x===void 0?void 0:x.dataset.side,$=g==="right",v=$?-5:5,h=y[$?"left":"right"],w=y[$?"right":"left"];l.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:h,y:y.top},{x:w,y:y.top},{x:w,y:y.bottom},{x:h,y:y.bottom}],side:g}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(f),f.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:I(e.onKeyDown,f=>{const m=l.searchRef.current!=="";if(!(e.disabled||m&&f.key===" ")&&V2[r.dir].includes(f.key)){var y;n.onOpenChange(!0),(y=n.content)===null||y===void 0||y.focus(),f.preventDefault()}})})))}),p5="MenuSubContent",m5=i.forwardRef((e,t)=>{const n=c0(Rt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,l=ir(Rt,e.__scopeMenu),a=gl(Rt,e.__scopeMenu),s=p0(p5,e.__scopeMenu),c=i.useRef(null),u=Z(t,c);return i.createElement(ol.Provider,{scope:e.__scopeMenu},i.createElement(je,{present:r||l.open},i.createElement(ol.Slot,{scope:e.__scopeMenu},i.createElement(dd,P({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var f;a.isUsingKeyboardRef.current&&((f=c.current)===null||f===void 0||f.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:I(e.onFocusOutside,p=>{p.target!==s.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:I(e.onEscapeKeyDown,p=>{a.onClose(),p.preventDefault()}),onKeyDown:I(e.onKeyDown,p=>{const f=p.currentTarget.contains(p.target),m=W2[a.dir].includes(p.key);if(f&&m){var y;l.onOpenChange(!1),(y=s.trigger)===null||y===void 0||y.focus(),p.preventDefault()}})})))))});function m0(e){return e?"open":"closed"}function Wa(e){return e==="indeterminate"}function pd(e){return Wa(e)?"indeterminate":e?"checked":"unchecked"}function h5(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function v5(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function g5(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let a=v5(e,Math.max(l,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function y5(e,t){const{x:n,y:r}=e;let o=!1;for(let l=0,a=t.length-1;lr!=p>r&&n<(u-s)*(r-c)/(p-c)+s&&(o=!o)}return o}function x5(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return y5(n,t)}function ll(e){return t=>t.pointerType==="mouse"?e(t):void 0}const h0=X2,v0=i0,g0=Z2,y0=J2,x0=n5,w0=fd,$0=r5,b0=i5,E0=c5,C0=u5,S0=f5,k0=m5,md="Menubar",[Rc,w5,$5]=pi(md),[P0,NS]=Fe(md,[$5,Dn]),xt=sd(),R0=Dn(),[b5,hd]=P0(md),E5=i.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:l,loop:a=!0,dir:s,...c}=e,u=ro(s),p=R0(n),[f="",m]=On({prop:r,onChange:o,defaultProp:l}),[y,x]=i.useState(null);return i.createElement(b5,{scope:n,value:f,onMenuOpen:i.useCallback(g=>{m(g),x(g)},[m]),onMenuClose:i.useCallback(()=>m(""),[m]),onMenuToggle:i.useCallback(g=>{m($=>$?"":g),x(g)},[m]),dir:u,loop:a},i.createElement(Rc.Provider,{scope:n},i.createElement(Rc.Slot,{scope:n},i.createElement(wi,P({asChild:!0},p,{orientation:"horizontal",loop:a,dir:u,currentTabStopId:y,onCurrentTabStopIdChange:x}),i.createElement(K.div,P({role:"menubar"},c,{ref:t}))))))}),_0="MenubarMenu",[C5,N0]=P0(_0),S5=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=Kt(),l=n||o||"LEGACY_REACT_AUTO_VALUE",a=hd(_0,t),s=xt(t),c=i.useRef(null),u=i.useRef(!1),p=a.value===l;return i.useEffect(()=>{p||(u.current=!1)},[p]),i.createElement(C5,{scope:t,value:l,triggerId:Kt(),triggerRef:c,contentId:Kt(),wasKeyboardTriggerOpenRef:u},i.createElement(h0,P({},s,{open:p,onOpenChange:f=>{f||a.onMenuClose()},modal:!1,dir:a.dir},r)))},hp="MenubarTrigger",k5=i.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,l=R0(n),a=xt(n),s=hd(hp,n),c=N0(hp,n),u=i.useRef(null),p=Z(t,u,c.triggerRef),[f,m]=i.useState(!1),y=s.value===c.value;return i.createElement(Rc.ItemSlot,{scope:n,value:c.value,disabled:r},i.createElement($i,P({asChild:!0},l,{focusable:!r,tabStopId:c.value}),i.createElement(v0,P({asChild:!0},a),i.createElement(K.button,P({type:"button",role:"menuitem",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":y,"aria-controls":y?c.contentId:void 0,"data-highlighted":f?"":void 0,"data-state":y?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:p,onPointerDown:I(e.onPointerDown,x=>{!r&&x.button===0&&x.ctrlKey===!1&&(s.onMenuOpen(c.value),y||x.preventDefault())}),onPointerEnter:I(e.onPointerEnter,()=>{if(!!s.value&&!y){var g;s.onMenuOpen(c.value),(g=u.current)===null||g===void 0||g.focus()}}),onKeyDown:I(e.onKeyDown,x=>{r||(["Enter"," "].includes(x.key)&&s.onMenuToggle(c.value),x.key==="ArrowDown"&&s.onMenuOpen(c.value),["Enter"," ","ArrowDown"].includes(x.key)&&(c.wasKeyboardTriggerOpenRef.current=!0,x.preventDefault()))}),onFocus:I(e.onFocus,()=>m(!0)),onBlur:I(e.onBlur,()=>m(!1))})))))}),P5=e=>{const{__scopeMenubar:t,...n}=e,r=xt(t);return i.createElement(g0,P({},r,n))},vp="MenubarContent",R5=i.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,l=xt(n),a=hd(vp,n),s=N0(vp,n),c=w5(n),u=i.useRef(!1);return i.createElement(y0,P({id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":""},l,o,{ref:t,align:r,onCloseAutoFocus:I(e.onCloseAutoFocus,p=>{if(!!!a.value&&!u.current){var m;(m=s.triggerRef.current)===null||m===void 0||m.focus()}u.current=!1,p.preventDefault()}),onFocusOutside:I(e.onFocusOutside,p=>{const f=p.target;c().some(y=>{var x;return(x=y.ref.current)===null||x===void 0?void 0:x.contains(f)})&&p.preventDefault()}),onInteractOutside:I(e.onInteractOutside,()=>{u.current=!0}),onEntryFocus:p=>{s.wasKeyboardTriggerOpenRef.current||p.preventDefault()},onKeyDown:I(e.onKeyDown,p=>{if(["ArrowRight","ArrowLeft"].includes(p.key)){const f=p.target,m=f.hasAttribute("data-radix-menubar-subtrigger"),y=f.closest("[data-radix-menubar-content]")!==p.currentTarget,g=(a.dir==="rtl"?"ArrowRight":"ArrowLeft")===p.key;if(!g&&m||y&&g)return;let h=c().filter(E=>!E.disabled).map(E=>E.value);g&&h.reverse();const w=h.indexOf(s.value);h=a.loop?D5(h,w+1):h.slice(w+1);const[b]=h;b&&a.onMenuOpen(b)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}),_5=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return i.createElement(x0,P({},o,r,{ref:t}))}),N5=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return i.createElement(w0,P({},o,r,{ref:t}))}),T5=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return i.createElement($0,P({},o,r,{ref:t}))}),M5=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return i.createElement(b0,P({},o,r,{ref:t}))}),O5=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return i.createElement(E0,P({},o,r,{ref:t}))}),j5=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return i.createElement(C0,P({},o,r,{ref:t}))}),A5=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return i.createElement(S0,P({"data-radix-menubar-subtrigger":""},o,r,{ref:t}))}),I5=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return i.createElement(k0,P({},o,{"data-radix-menubar-content":""},r,{ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))});function D5(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const T0=E5,L5=S5,M0=k5,F5=P5,O0=R5,j0=_5,A0=N5,I0=T5,D0=M5,L0=O5,F0=j5,z0=A5,U0=I5;var z5={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"};const U5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),io=(e,t)=>{const n=i.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:a,children:s,...c},u)=>i.createElement("svg",{ref:u,...z5,width:o,height:o,stroke:r,strokeWidth:a?Number(l)*24/Number(o):l,className:`lucide lucide-${U5(e)}`,...c},[...t.map(([p,f])=>i.createElement(p,f)),...(Array.isArray(s)?s:[s])||[]]));return n.displayName=`${e}`,n},vd=io("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),B5=io("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),B0=io("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),gd=io("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),V5=io("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),W5=io("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),gp=L5,V0=i.forwardRef(({className:e,...t},n)=>d.jsx(T0,{ref:n,className:F("flex h-10 items-center space-x-1 rounded-md border border-slate-200 bg-white p-1 dark:border-slate-800 dark:bg-slate-950",e),...t}));V0.displayName=T0.displayName;const _c=i.forwardRef(({className:e,...t},n)=>d.jsx(M0,{ref:n,className:F("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-slate-100 focus:text-slate-900 data-[state=open]:bg-slate-100 data-[state=open]:text-slate-900 dark:focus:bg-slate-800 dark:focus:text-slate-50 dark:data-[state=open]:bg-slate-800 dark:data-[state=open]:text-slate-50",e),...t}));_c.displayName=M0.displayName;const H5=i.forwardRef(({className:e,inset:t,children:n,...r},o)=>d.jsxs(z0,{ref:o,className:F("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-slate-100 focus:text-slate-900 data-[state=open]:bg-slate-100 data-[state=open]:text-slate-900 dark:focus:bg-slate-800 dark:focus:text-slate-50 dark:data-[state=open]:bg-slate-800 dark:data-[state=open]:text-slate-50",t&&"pl-8",e),...r,children:[n,d.jsx(B0,{className:"ml-auto h-4 w-4"})]}));H5.displayName=z0.displayName;const K5=i.forwardRef(({className:e,...t},n)=>d.jsx(U0,{ref:n,className:F("z-50 min-w-[8rem] overflow-hidden rounded-md border border-slate-200 bg-white p-1 text-slate-950 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",e),...t}));K5.displayName=U0.displayName;const Nc=i.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...o},l)=>d.jsx(F5,{children:d.jsx(O0,{ref:l,align:t,alignOffset:n,sideOffset:r,className:F("z-50 min-w-[12rem] overflow-hidden rounded-md border border-slate-200 bg-white p-1 text-slate-950 shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",e),...o})}));Nc.displayName=O0.displayName;const zn=i.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(A0,{ref:r,className:F("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50",t&&"pl-8",e),...n}));zn.displayName=A0.displayName;const G5=i.forwardRef(({className:e,children:t,checked:n,...r},o)=>d.jsxs(I0,{ref:o,className:F("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50",e),checked:n,...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(L0,{children:d.jsx(vd,{className:"h-4 w-4"})})}),t]}));G5.displayName=I0.displayName;const Y5=i.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(D0,{ref:r,className:F("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50",e),...n,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(L0,{children:d.jsx(gd,{className:"h-2 w-2 fill-current"})})}),t]}));Y5.displayName=D0.displayName;const W0=i.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(j0,{ref:r,className:F("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));W0.displayName=j0.displayName;const ua=i.forwardRef(({className:e,...t},n)=>d.jsx(F0,{ref:n,className:F("-mx-1 my-1 h-px bg-slate-100 dark:bg-slate-800",e),...t}));ua.displayName=F0.displayName;const yr=({className:e,...t})=>d.jsx("span",{className:F("ml-auto text-xs tracking-widest text-slate-500 dark:text-slate-400",e),...t});yr.displayname="MenubarShortcut";function X5(){return d.jsxs(V0,{className:"rounded-none border-b border-none px-2 lg:px-4",children:[d.jsxs(gp,{children:[d.jsx(_c,{className:"font-bold",children:" Y3S2"}),d.jsxs(Nc,{children:[d.jsx(zn,{children:"About Y3S2"}),d.jsx(ua,{}),d.jsxs(zn,{children:["Preferences... ",d.jsx(yr,{children:"⌘,"})]}),d.jsx(ua,{}),d.jsxs(zn,{children:["Hide Y3S2... ",d.jsx(yr,{children:"⌘H"})]}),d.jsxs(zn,{children:["Hide Others... ",d.jsx(yr,{children:"⇧⌘H"})]}),d.jsx(yr,{}),d.jsxs(zn,{children:["Quit ",d.jsx(yr,{children:"⌘Q"})]})]})]}),d.jsxs(gp,{children:[d.jsx(_c,{className:"hidden md:block",children:"Account"}),d.jsxs(Nc,{forceMount:!0,children:[d.jsx(W0,{inset:!0,children:"Profile"}),d.jsx(ua,{}),d.jsx(zn,{inset:!0,children:"Log Out"})]})]})]})}const H0="Tabs",[Q5,TS]=Fe(H0,[Dn]),K0=Dn(),[MS,yd]=Q5(H0),Z5="TabsList",q5=i.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,l=yd(Z5,n),a=K0(n);return i.createElement(wi,P({asChild:!0},a,{orientation:l.orientation,dir:l.dir,loop:r}),i.createElement(K.div,P({role:"tablist","aria-orientation":l.orientation},o,{ref:t})))}),J5="TabsTrigger",eE=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...l}=e,a=yd(J5,n),s=K0(n),c=G0(a.baseId,r),u=Y0(a.baseId,r),p=r===a.value;return i.createElement($i,P({asChild:!0},s,{focusable:!o,active:p}),i.createElement(K.button,P({type:"button",role:"tab","aria-selected":p,"aria-controls":u,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c},l,{ref:t,onMouseDown:I(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?a.onValueChange(r):f.preventDefault()}),onKeyDown:I(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&a.onValueChange(r)}),onFocus:I(e.onFocus,()=>{const f=a.activationMode!=="manual";!p&&!o&&f&&a.onValueChange(r)})})))}),tE="TabsContent",nE=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:l,...a}=e,s=yd(tE,n),c=G0(s.baseId,r),u=Y0(s.baseId,r),p=r===s.value,f=i.useRef(p);return i.useEffect(()=>{const m=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(m)},[]),i.createElement(je,{present:o||p},({present:m})=>i.createElement(K.div,P({"data-state":p?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!m,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),m&&l))});function G0(e,t){return`${e}-trigger-${t}`}function Y0(e,t){return`${e}-content-${t}`}const X0=q5,Q0=eE,Z0=nE,rE=i.forwardRef(({className:e,...t},n)=>d.jsx(X0,{ref:n,className:F("inline-flex h-10 items-center justify-center rounded-md bg-slate-100 p-1 text-slate-500 dark:bg-slate-800 dark:text-slate-400",e),...t}));rE.displayName=X0.displayName;const oE=i.forwardRef(({className:e,...t},n)=>d.jsx(Q0,{ref:n,className:F("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-slate-950 data-[state=active]:shadow-sm dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300 dark:data-[state=active]:bg-slate-950 dark:data-[state=active]:text-slate-50",e),...t}));oE.displayName=Q0.displayName;const lE=i.forwardRef(({className:e,...t},n)=>d.jsx(Z0,{ref:n,className:F("mt-2 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300",e),...t}));lE.displayName=Z0.displayName;const aE=i.forwardRef((e,t)=>i.createElement(K.label,P({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),q0=aE,iE=iv("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),$e=i.forwardRef(({className:e,...t},n)=>d.jsx(q0,{ref:n,className:F(iE(),e),...t}));$e.displayName=q0.displayName;function xd(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const J0="Switch",[sE,OS]=Fe(J0),[cE,uE]=sE(J0),dE=i.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:l,required:a,disabled:s,value:c="on",onCheckedChange:u,...p}=e,[f,m]=i.useState(null),y=Z(t,h=>m(h)),x=i.useRef(!1),g=f?!!f.closest("form"):!0,[$=!1,v]=On({prop:o,defaultProp:l,onChange:u});return i.createElement(cE,{scope:n,checked:$,disabled:s},i.createElement(K.button,P({type:"button",role:"switch","aria-checked":$,"aria-required":a,"data-state":eg($),"data-disabled":s?"":void 0,disabled:s,value:c},p,{ref:y,onClick:I(e.onClick,h=>{v(w=>!w),g&&(x.current=h.isPropagationStopped(),x.current||h.stopPropagation())})})),g&&i.createElement(mE,{control:f,bubbles:!x.current,name:r,value:c,checked:$,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),fE="SwitchThumb",pE=i.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=uE(fE,n);return i.createElement(K.span,P({"data-state":eg(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))}),mE=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,l=i.useRef(null),a=xd(n),s=td(t);return i.useEffect(()=>{const c=l.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==n&&f){const m=new Event("click",{bubbles:r});f.call(c,n),c.dispatchEvent(m)}},[a,n,r]),i.createElement("input",P({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:l,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function eg(e){return e?"checked":"unchecked"}const tg=dE,hE=pE,da=i.forwardRef(({className:e,...t},n)=>d.jsx(tg,{className:F("peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:d.jsx(hE,{className:F("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));da.displayName=tg.displayName;function vE(){return d.jsxs(Be,{children:[d.jsxs(tt,{children:[d.jsx(nt,{children:"Cookie Settings"}),d.jsx(rt,{children:"Manage your cookie settings here."})]}),d.jsxs(Ve,{className:"grid gap-6",children:[d.jsxs("div",{className:"flex items-center justify-between space-x-2",children:[d.jsxs($e,{htmlFor:"necessary",className:"flex flex-col space-y-1",children:[d.jsx("span",{children:"Strictly Necessary"}),d.jsx("span",{className:"font-normal leading-snug text-muted-foreground",children:"These cookies are essential in order to use the website and use its features."})]}),d.jsx(da,{id:"necessary",defaultChecked:!0})]}),d.jsxs("div",{className:"flex items-center justify-between space-x-2",children:[d.jsxs($e,{htmlFor:"functional",className:"flex flex-col space-y-1",children:[d.jsx("span",{children:"Functional Cookies"}),d.jsx("span",{className:"font-normal leading-snug text-muted-foreground",children:"These cookies allow the website to provide personalized functionality."})]}),d.jsx(da,{id:"functional"})]}),d.jsxs("div",{className:"flex items-center justify-between space-x-2",children:[d.jsxs($e,{htmlFor:"performance",className:"flex flex-col space-y-1",children:[d.jsx("span",{children:"Performance Cookies"}),d.jsx("span",{className:"font-normal leading-snug text-muted-foreground",children:"These cookies help to improve the performance of the website."})]}),d.jsx(da,{id:"performance"})]})]}),d.jsx(ml,{children:d.jsx(lt,{variant:"outline",className:"w-full",children:"Save preferences"})})]})}const Sn=i.forwardRef(({className:e,type:t,...n},r)=>d.jsx("input",{type:t,className:F("flex h-10 w-full rounded-md border border-slate-200 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-slate-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-800 dark:bg-slate-950 dark:ring-offset-slate-950 dark:placeholder:text-slate-400 dark:focus-visible:ring-slate-300",e),ref:r,...n}));Sn.displayName="Input";function gE(){return d.jsxs(Be,{children:[d.jsxs(tt,{className:"space-y-1",children:[d.jsx(nt,{className:"text-2xl",children:"Create an account"}),d.jsx(rt,{children:"Enter your email below to create your account"})]}),d.jsxs(Ve,{className:"grid gap-4",children:[d.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[d.jsx(lt,{variant:"outline",children:"Github"}),d.jsx(lt,{variant:"outline",children:"Google"})]}),d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"absolute inset-0 flex items-center",children:d.jsx("span",{className:"w-full border-t"})}),d.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:d.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with"})})]}),d.jsxs("div",{className:"grid gap-2",children:[d.jsx($e,{htmlFor:"email",children:"Email"}),d.jsx(Sn,{id:"email",type:"email",placeholder:"m@example.com"})]}),d.jsxs("div",{className:"grid gap-2",children:[d.jsx($e,{htmlFor:"password",children:"Password"}),d.jsx(Sn,{id:"password",type:"password"})]})]}),d.jsx(ml,{children:d.jsx(lt,{className:"w-full",children:"Create account"})})]})}function yE(){return d.jsx(Be,{children:d.jsx(Ve,{className:"pt-6",children:d.jsx("div",{className:"space-y-2",children:d.jsx($e,{htmlFor:"date",className:"shrink-0",children:"Pick a date"})})})})}function sr(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,l;for(l=0;l=0)&&(n[o]=e[o]);return n}var xE=["color"],wE=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=sr(e,xE);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M8.60124 1.25086C8.60124 1.75459 8.26278 2.17927 7.80087 2.30989C10.1459 2.4647 12 4.41582 12 6.79999V10.25C12 11.0563 12.0329 11.7074 12.7236 12.0528C12.931 12.1565 13.0399 12.3892 12.9866 12.6149C12.9333 12.8406 12.7319 13 12.5 13H8.16144C8.36904 13.1832 8.49997 13.4513 8.49997 13.75C8.49997 14.3023 8.05226 14.75 7.49997 14.75C6.94769 14.75 6.49997 14.3023 6.49997 13.75C6.49997 13.4513 6.63091 13.1832 6.83851 13H2.49999C2.2681 13 2.06664 12.8406 2.01336 12.6149C1.96009 12.3892 2.06897 12.1565 2.27638 12.0528C2.96708 11.7074 2.99999 11.0563 2.99999 10.25V6.79999C2.99999 4.41537 4.85481 2.46396 7.20042 2.3098C6.73867 2.17908 6.40036 1.75448 6.40036 1.25086C6.40036 0.643104 6.89304 0.150421 7.5008 0.150421C8.10855 0.150421 8.60124 0.643104 8.60124 1.25086ZM7.49999 3.29999C5.56699 3.29999 3.99999 4.86699 3.99999 6.79999V10.25L4.00002 10.3009C4.0005 10.7463 4.00121 11.4084 3.69929 12H11.3007C10.9988 11.4084 10.9995 10.7463 11 10.3009L11 10.25V6.79999C11 4.86699 9.43299 3.29999 7.49999 3.29999Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),$E=["color"],Tc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=sr(e,$E);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),bE=["color"],EE=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=sr(e,bE);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M0.877075 7.49991C0.877075 3.84222 3.84222 0.877075 7.49991 0.877075C11.1576 0.877075 14.1227 3.84222 14.1227 7.49991C14.1227 11.1576 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1576 0.877075 7.49991ZM7.49991 1.82708C4.36689 1.82708 1.82708 4.36689 1.82708 7.49991C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49991C13.1727 4.36689 10.6329 1.82708 7.49991 1.82708Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),CE=["color"],SE=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=sr(e,CE);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),kE=["color"],PE=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=sr(e,kE);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),RE=["color"],_E=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=sr(e,RE);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),NE=["color"],yp=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=sr(e,NE);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M6.97942 1.25171L6.9585 1.30199L5.58662 4.60039C5.54342 4.70426 5.44573 4.77523 5.3336 4.78422L1.7727 5.0697L1.71841 5.07405L1.38687 5.10063L1.08608 5.12475C0.820085 5.14607 0.712228 5.47802 0.914889 5.65162L1.14406 5.84793L1.39666 6.06431L1.43802 6.09974L4.15105 8.42374C4.23648 8.49692 4.2738 8.61176 4.24769 8.72118L3.41882 12.196L3.40618 12.249L3.32901 12.5725L3.25899 12.866C3.19708 13.1256 3.47945 13.3308 3.70718 13.1917L3.9647 13.0344L4.24854 12.861L4.29502 12.8326L7.34365 10.9705C7.43965 10.9119 7.5604 10.9119 7.6564 10.9705L10.705 12.8326L10.7515 12.861L11.0354 13.0344L11.2929 13.1917C11.5206 13.3308 11.803 13.1256 11.7411 12.866L11.671 12.5725L11.5939 12.249L11.5812 12.196L10.7524 8.72118C10.7263 8.61176 10.7636 8.49692 10.849 8.42374L13.562 6.09974L13.6034 6.06431L13.856 5.84793L14.0852 5.65162C14.2878 5.47802 14.18 5.14607 13.914 5.12475L13.6132 5.10063L13.2816 5.07405L13.2274 5.0697L9.66645 4.78422C9.55432 4.77523 9.45663 4.70426 9.41343 4.60039L8.04155 1.30199L8.02064 1.25171L7.89291 0.944609L7.77702 0.665992C7.67454 0.419604 7.32551 0.419604 7.22303 0.665992L7.10715 0.944609L6.97942 1.25171ZM7.50003 2.60397L6.50994 4.98442C6.32273 5.43453 5.89944 5.74207 5.41351 5.78103L2.84361 5.98705L4.8016 7.66428C5.17183 7.98142 5.33351 8.47903 5.2204 8.95321L4.62221 11.461L6.8224 10.1171C7.23842 9.86302 7.76164 9.86302 8.17766 10.1171L10.3778 11.461L9.77965 8.95321C9.66654 8.47903 9.82822 7.98142 10.1984 7.66428L12.1564 5.98705L9.58654 5.78103C9.10061 5.74207 8.67732 5.43453 8.49011 4.98442L7.50003 2.60397Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const ng="DropdownMenu",[TE,jS]=Fe(ng,[sd]),wt=sd(),[ME,rg]=TE(ng),OE=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:l,onOpenChange:a,modal:s=!0}=e,c=wt(t),u=i.useRef(null),[p=!1,f]=On({prop:o,defaultProp:l,onChange:a});return i.createElement(ME,{scope:t,triggerId:Kt(),triggerRef:u,contentId:Kt(),open:p,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),modal:s},i.createElement(h0,P({},c,{open:p,onOpenChange:f,dir:r,modal:s}),n))},jE="DropdownMenuTrigger",AE=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,l=rg(jE,n),a=wt(n);return i.createElement(v0,P({asChild:!0},a),i.createElement(K.button,P({type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:ui(t,l.triggerRef),onPointerDown:I(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(l.onOpenToggle(),l.open||s.preventDefault())}),onKeyDown:I(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&l.onOpenToggle(),s.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),IE=e=>{const{__scopeDropdownMenu:t,...n}=e,r=wt(t);return i.createElement(g0,P({},r,n))},DE="DropdownMenuContent",LE=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rg(DE,n),l=wt(n),a=i.useRef(!1);return i.createElement(y0,P({id:o.contentId,"aria-labelledby":o.triggerId},l,r,{ref:t,onCloseAutoFocus:I(e.onCloseAutoFocus,s=>{var c;a.current||(c=o.triggerRef.current)===null||c===void 0||c.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:I(e.onInteractOutside,s=>{const c=s.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,p=c.button===2||u;(!o.modal||p)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),FE=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=wt(n);return i.createElement(x0,P({},o,r,{ref:t}))}),zE=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=wt(n);return i.createElement(w0,P({},o,r,{ref:t}))}),UE=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=wt(n);return i.createElement($0,P({},o,r,{ref:t}))}),BE=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=wt(n);return i.createElement(b0,P({},o,r,{ref:t}))}),VE=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=wt(n);return i.createElement(E0,P({},o,r,{ref:t}))}),WE=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=wt(n);return i.createElement(C0,P({},o,r,{ref:t}))}),HE=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=wt(n);return i.createElement(S0,P({},o,r,{ref:t}))}),KE=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=wt(n);return i.createElement(k0,P({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),GE=OE,YE=AE,XE=IE,og=LE,lg=FE,ag=zE,ig=UE,sg=BE,cg=VE,ug=WE,dg=HE,fg=KE,QE=GE,ZE=YE,qE=i.forwardRef(({className:e,inset:t,children:n,...r},o)=>d.jsxs(dg,{ref:o,className:F("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-slate-100 data-[state=open]:bg-slate-100 dark:focus:bg-slate-800 dark:data-[state=open]:bg-slate-800",t&&"pl-8",e),...r,children:[n,d.jsx(B0,{className:"ml-auto h-4 w-4"})]}));qE.displayName=dg.displayName;const JE=i.forwardRef(({className:e,...t},n)=>d.jsx(fg,{ref:n,className:F("z-50 min-w-[8rem] overflow-hidden rounded-md border border-slate-200 bg-white p-1 text-slate-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",e),...t}));JE.displayName=fg.displayName;const pg=i.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(XE,{children:d.jsx(og,{ref:r,sideOffset:t,className:F("z-50 min-w-[8rem] overflow-hidden rounded-md border border-slate-200 bg-white p-1 text-slate-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",e),...n})}));pg.displayName=og.displayName;const mg=i.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(ag,{ref:r,className:F("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50",t&&"pl-8",e),...n}));mg.displayName=ag.displayName;const fa=i.forwardRef(({className:e,children:t,checked:n,...r},o)=>d.jsxs(ig,{ref:o,className:F("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50",e),checked:n,...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(cg,{children:d.jsx(vd,{className:"h-4 w-4"})})}),t]}));fa.displayName=ig.displayName;const eC=i.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(sg,{ref:r,className:F("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50",e),...n,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(cg,{children:d.jsx(gd,{className:"h-2 w-2 fill-current"})})}),t]}));eC.displayName=sg.displayName;const hg=i.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(lg,{ref:r,className:F("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));hg.displayName=lg.displayName;const Mc=i.forwardRef(({className:e,...t},n)=>d.jsx(ug,{ref:n,className:F("-mx-1 my-1 h-px bg-slate-100 dark:bg-slate-800",e),...t}));Mc.displayName=ug.displayName;function tC(){return d.jsxs(Be,{children:[d.jsxs(tt,{className:"grid grid-cols-[1fr_110px] items-start gap-4 space-y-0",children:[d.jsxs("div",{className:"space-y-1",children:[d.jsx(nt,{children:"shadcn/ui"}),d.jsx(rt,{children:"Beautifully designed components built with Radix UI and Tailwind CSS."})]}),d.jsxs("div",{className:"flex items-center space-x-1 rounded-md bg-secondary text-secondary-foreground",children:[d.jsxs(lt,{variant:"secondary",className:"px-3 shadow-none",children:[d.jsx(yp,{className:"mr-2 h-4 w-4"}),"Star"]}),d.jsx(Yu,{orientation:"vertical",className:"h-[20px]"}),d.jsxs(QE,{children:[d.jsx(ZE,{asChild:!0,children:d.jsx(lt,{variant:"secondary",className:"px-2 shadow-none",children:d.jsx(Tc,{className:"h-4 w-4 text-secondary-foreground"})})}),d.jsxs(pg,{align:"end",alignOffset:-5,className:"w-[200px]",forceMount:!0,children:[d.jsx(hg,{children:"Suggested Lists"}),d.jsx(Mc,{}),d.jsx(fa,{checked:!0,children:"Future Ideas"}),d.jsx(fa,{children:"My Stack"}),d.jsx(fa,{children:"Inspiration"}),d.jsx(Mc,{}),d.jsxs(mg,{children:[d.jsx(_E,{className:"mr-2 h-4 w-4"})," Create List"]})]})]})]})]}),d.jsx(Ve,{children:d.jsxs("div",{className:"flex space-x-4 text-sm text-muted-foreground",children:[d.jsxs("div",{className:"flex items-center",children:[d.jsx(EE,{className:"mr-1 h-3 w-3 fill-sky-400 text-sky-400"}),"TypeScript"]}),d.jsxs("div",{className:"flex items-center",children:[d.jsx(yp,{className:"mr-1 h-3 w-3"}),"20k"]}),d.jsx("div",{children:"Updated April 2023"})]})})]})}function nC(){return d.jsxs(Be,{children:[d.jsxs(tt,{className:"pb-3",children:[d.jsx(nt,{children:"Notifications"}),d.jsx(rt,{children:"Choose what you want to be notified about."})]}),d.jsxs(Ve,{className:"grid gap-1",children:[d.jsxs("div",{className:"-mx-2 flex items-start space-x-4 rounded-md p-2 transition-all hover:bg-accent hover:text-accent-foreground",children:[d.jsx(wE,{className:"mt-px h-5 w-5"}),d.jsxs("div",{className:"space-y-1",children:[d.jsx("p",{className:"text-sm font-medium leading-none",children:"Everything"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Email digest, mentions & all activity."})]})]}),d.jsxs("div",{className:"-mx-2 flex items-start space-x-4 rounded-md bg-accent p-2 text-accent-foreground transition-all",children:[d.jsx(PE,{className:"mt-px h-5 w-5"}),d.jsxs("div",{className:"space-y-1",children:[d.jsx("p",{className:"text-sm font-medium leading-none",children:"Available"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Only mentions and comments."})]})]}),d.jsxs("div",{className:"-mx-2 flex items-start space-x-4 rounded-md p-2 transition-all hover:bg-accent hover:text-accent-foreground",children:[d.jsx(SE,{className:"mt-px h-5 w-5"}),d.jsxs("div",{className:"space-y-1",children:[d.jsx("p",{className:"text-sm font-medium leading-none",children:"Ignoring"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Turn off all notifications."})]})]})]})]})}const vg="Radio",[rC,gg]=Fe(vg),[oC,lC]=rC(vg),aC=i.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:l,disabled:a,value:s="on",onCheck:c,...u}=e,[p,f]=i.useState(null),m=Z(t,g=>f(g)),y=i.useRef(!1),x=p?!!p.closest("form"):!0;return i.createElement(oC,{scope:n,checked:o,disabled:a},i.createElement(K.button,P({type:"button",role:"radio","aria-checked":o,"data-state":yg(o),"data-disabled":a?"":void 0,disabled:a,value:s},u,{ref:m,onClick:I(e.onClick,g=>{o||c==null||c(),x&&(y.current=g.isPropagationStopped(),y.current||g.stopPropagation())})})),x&&i.createElement(cC,{control:p,bubbles:!y.current,name:r,value:s,checked:o,required:l,disabled:a,style:{transform:"translateX(-100%)"}}))}),iC="RadioIndicator",sC=i.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,l=lC(iC,n);return i.createElement(je,{present:r||l.checked},i.createElement(K.span,P({"data-state":yg(l.checked),"data-disabled":l.disabled?"":void 0},o,{ref:t})))}),cC=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,l=i.useRef(null),a=xd(n),s=td(t);return i.useEffect(()=>{const c=l.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==n&&f){const m=new Event("click",{bubbles:r});f.call(c,n),c.dispatchEvent(m)}},[a,n,r]),i.createElement("input",P({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:l,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function yg(e){return e?"checked":"unchecked"}const uC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],xg="RadioGroup",[dC,AS]=Fe(xg,[Dn,gg]),wg=Dn(),$g=gg(),[fC,pC]=dC(xg),mC=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:l,required:a=!1,disabled:s=!1,orientation:c,dir:u,loop:p=!0,onValueChange:f,...m}=e,y=wg(n),x=ro(u),[g,$]=On({prop:l,defaultProp:o,onChange:f});return i.createElement(fC,{scope:n,name:r,required:a,disabled:s,value:g,onValueChange:$},i.createElement(wi,P({asChild:!0},y,{orientation:c,dir:x,loop:p}),i.createElement(K.div,P({role:"radiogroup","aria-required":a,"aria-orientation":c,"data-disabled":s?"":void 0,dir:x},m,{ref:t}))))}),hC="RadioGroupItem",vC=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,l=pC(hC,n),a=l.disabled||r,s=wg(n),c=$g(n),u=i.useRef(null),p=Z(t,u),f=l.value===o.value,m=i.useRef(!1);return i.useEffect(()=>{const y=g=>{uC.includes(g.key)&&(m.current=!0)},x=()=>m.current=!1;return document.addEventListener("keydown",y),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",y),document.removeEventListener("keyup",x)}},[]),i.createElement($i,P({asChild:!0},s,{focusable:!a,active:f}),i.createElement(aC,P({disabled:a,required:l.required,checked:f},c,o,{name:l.name,ref:p,onCheck:()=>l.onValueChange(o.value),onKeyDown:I(y=>{y.key==="Enter"&&y.preventDefault()}),onFocus:I(o.onFocus,()=>{var y;m.current&&((y=u.current)===null||y===void 0||y.click())})})))}),gC=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=$g(n);return i.createElement(sC,P({},o,r,{ref:t}))}),bg=mC,Eg=vC,yC=gC,Cg=i.forwardRef(({className:e,...t},n)=>d.jsx(bg,{className:F("grid gap-2",e),...t,ref:n}));Cg.displayName=bg.displayName;const pa=i.forwardRef(({className:e,children:t,...n},r)=>d.jsx(Eg,{ref:r,className:F("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:d.jsx(yC,{className:"flex items-center justify-center",children:d.jsx(gd,{className:"h-2.5 w-2.5 fill-current text-current"})})}));pa.displayName=Eg.displayName;const xC=i.forwardRef((e,t)=>i.createElement(K.span,P({},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}}))),wC=[" ","Enter","ArrowUp","ArrowDown"],$C=[" ","Enter"],Si="Select",[ki,wd,bC]=pi(Si),[so,IS]=Fe(Si,[bC,ao]),$d=ao(),[EC,cr]=so(Si),[CC,SC]=so(Si),kC=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:l,value:a,defaultValue:s,onValueChange:c,dir:u,name:p,autoComplete:f,disabled:m,required:y}=e,x=$d(t),[g,$]=i.useState(null),[v,h]=i.useState(null),[w,b]=i.useState(!1),E=ro(u),[k=!1,S]=On({prop:r,defaultProp:o,onChange:l}),[R,N]=On({prop:a,defaultProp:s,onChange:c}),O=i.useRef(null),z=g?!!g.closest("form"):!0,[D,Y]=i.useState(new Set),U=Array.from(D).map(H=>H.props.value).join(";");return i.createElement(nd,x,i.createElement(EC,{required:y,scope:t,trigger:g,onTriggerChange:$,valueNode:v,onValueNodeChange:h,valueNodeHasChildren:w,onValueNodeHasChildrenChange:b,contentId:Kt(),value:R,onValueChange:N,open:k,onOpenChange:S,dir:E,triggerPointerDownPosRef:O,disabled:m},i.createElement(ki.Provider,{scope:t},i.createElement(CC,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(H=>{Y(V=>new Set(V).add(H))},[]),onNativeOptionRemove:i.useCallback(H=>{Y(V=>{const G=new Set(V);return G.delete(H),G})},[])},n)),z?i.createElement(Rg,{key:U,"aria-hidden":!0,required:y,tabIndex:-1,name:p,autoComplete:f,value:R,onChange:H=>N(H.target.value),disabled:m},R===void 0?i.createElement("option",{value:""}):null,Array.from(D)):null))},PC="SelectTrigger",RC=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,l=$d(n),a=cr(PC,n),s=a.disabled||r,c=Z(t,a.onTriggerChange),u=wd(n),[p,f,m]=_g(x=>{const g=u().filter(h=>!h.disabled),$=g.find(h=>h.value===a.value),v=Ng(g,x,$);v!==void 0&&a.onValueChange(v.value)}),y=()=>{s||(a.onOpenChange(!0),m())};return i.createElement(rd,P({asChild:!0},l),i.createElement(K.button,P({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Pg(a.value)?"":void 0},o,{ref:c,onClick:I(o.onClick,x=>{x.currentTarget.focus()}),onPointerDown:I(o.onPointerDown,x=>{const g=x.target;g.hasPointerCapture(x.pointerId)&&g.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&(y(),a.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)},x.preventDefault())}),onKeyDown:I(o.onKeyDown,x=>{const g=p.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&f(x.key),!(g&&x.key===" ")&&wC.includes(x.key)&&(y(),x.preventDefault())})})))}),_C="SelectValue",NC=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:l,placeholder:a="",...s}=e,c=cr(_C,n),{onValueNodeHasChildrenChange:u}=c,p=l!==void 0,f=Z(t,c.onValueNodeChange);return Ye(()=>{u(p)},[u,p]),i.createElement(K.span,P({},s,{ref:f,style:{pointerEvents:"none"}}),Pg(c.value)?i.createElement(i.Fragment,null,a):l)}),TC=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.createElement(K.span,P({"aria-hidden":!0},o,{ref:t}),r||"▼")}),MC=e=>i.createElement(xi,P({asChild:!0},e)),qr="SelectContent",OC=i.forwardRef((e,t)=>{const n=cr(qr,e.__scopeSelect),[r,o]=i.useState();if(Ye(()=>{o(new DocumentFragment)},[]),!n.open){const l=r;return l?nn.createPortal(i.createElement(Sg,{scope:e.__scopeSelect},i.createElement(ki.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),l):null}return i.createElement(jC,P({},e,{ref:t}))}),Ut=10,[Sg,Pi]=so(qr),jC=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:a,side:s,sideOffset:c,align:u,alignOffset:p,arrowPadding:f,collisionBoundary:m,collisionPadding:y,sticky:x,hideWhenDetached:g,avoidCollisions:$,...v}=e,h=cr(qr,n),[w,b]=i.useState(null),[E,k]=i.useState(null),S=Z(t,B=>b(B)),[R,N]=i.useState(null),[O,z]=i.useState(null),D=wd(n),[Y,U]=i.useState(!1),H=i.useRef(!1);i.useEffect(()=>{if(w)return vl(w)},[w]),hi();const V=i.useCallback(B=>{const[ne,...re]=D().map(ae=>ae.ref.current),[oe]=re.slice(-1),le=document.activeElement;for(const ae of B)if(ae===le||(ae==null||ae.scrollIntoView({block:"nearest"}),ae===ne&&E&&(E.scrollTop=0),ae===oe&&E&&(E.scrollTop=E.scrollHeight),ae==null||ae.focus(),document.activeElement!==le))return},[D,E]),G=i.useCallback(()=>V([R,w]),[V,R,w]);i.useEffect(()=>{Y&&G()},[Y,G]);const{onOpenChange:T,triggerPointerDownPosRef:C}=h;i.useEffect(()=>{if(w){let B={x:0,y:0};const ne=oe=>{var le,ae,Qe,Ze;B={x:Math.abs(Math.round(oe.pageX)-((le=(ae=C.current)===null||ae===void 0?void 0:ae.x)!==null&&le!==void 0?le:0)),y:Math.abs(Math.round(oe.pageY)-((Qe=(Ze=C.current)===null||Ze===void 0?void 0:Ze.y)!==null&&Qe!==void 0?Qe:0))}},re=oe=>{B.x<=10&&B.y<=10?oe.preventDefault():w.contains(oe.target)||T(!1),document.removeEventListener("pointermove",ne),C.current=null};return C.current!==null&&(document.addEventListener("pointermove",ne),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ne),document.removeEventListener("pointerup",re,{capture:!0})}}},[w,T,C]),i.useEffect(()=>{const B=()=>T(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[T]);const[_,A]=_g(B=>{const ne=D().filter(le=>!le.disabled),re=ne.find(le=>le.ref.current===document.activeElement),oe=Ng(ne,B,re);oe&&setTimeout(()=>oe.ref.current.focus())}),j=i.useCallback((B,ne,re)=>{const oe=!H.current&&!re;(h.value!==void 0&&h.value===ne||oe)&&(N(B),oe&&(H.current=!0))},[h.value]),W=i.useCallback(()=>w==null?void 0:w.focus(),[w]),q=i.useCallback((B,ne,re)=>{const oe=!H.current&&!re;(h.value!==void 0&&h.value===ne||oe)&&z(B)},[h.value]),ve=r==="popper"?xp:AC,ie=ve===xp?{side:s,sideOffset:c,align:u,alignOffset:p,arrowPadding:f,collisionBoundary:m,collisionPadding:y,sticky:x,hideWhenDetached:g,avoidCollisions:$}:{};return i.createElement(Sg,{scope:n,content:w,viewport:E,onViewportChange:k,itemRefCallback:j,selectedItem:R,onItemLeave:W,itemTextRefCallback:q,focusSelectedItem:G,selectedItemText:O,position:r,isPositioned:Y,searchRef:_},i.createElement(Ei,{as:Zt,allowPinchZoom:!0},i.createElement(vi,{asChild:!0,trapped:h.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:I(o,B=>{var ne;(ne=h.trigger)===null||ne===void 0||ne.focus({preventScroll:!0}),B.preventDefault()})},i.createElement(mi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>h.onOpenChange(!1)},i.createElement(ve,P({role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:B=>B.preventDefault()},v,ie,{onPlaced:()=>U(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:I(v.onKeyDown,B=>{const ne=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!ne&&B.key.length===1&&A(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let oe=D().filter(le=>!le.disabled).map(le=>le.ref.current);if(["ArrowUp","End"].includes(B.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const le=B.target,ae=oe.indexOf(le);oe=oe.slice(ae+1)}setTimeout(()=>V(oe)),B.preventDefault()}})}))))))}),AC=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,l=cr(qr,n),a=Pi(qr,n),[s,c]=i.useState(null),[u,p]=i.useState(null),f=Z(t,S=>p(S)),m=wd(n),y=i.useRef(!1),x=i.useRef(!0),{viewport:g,selectedItem:$,selectedItemText:v,focusSelectedItem:h}=a,w=i.useCallback(()=>{if(l.trigger&&l.valueNode&&s&&u&&g&&$&&v){const S=l.trigger.getBoundingClientRect(),R=u.getBoundingClientRect(),N=l.valueNode.getBoundingClientRect(),O=v.getBoundingClientRect();if(l.dir!=="rtl"){const le=O.left-R.left,ae=N.left-le,Qe=S.left-ae,Ze=S.width+Qe,Dt=Math.max(Ze,R.width),dr=window.innerWidth-Ut,fo=yc(ae,[Ut,dr-Dt]);s.style.minWidth=Ze+"px",s.style.left=fo+"px"}else{const le=R.right-O.right,ae=window.innerWidth-N.right-le,Qe=window.innerWidth-S.right-ae,Ze=S.width+Qe,Dt=Math.max(Ze,R.width),dr=window.innerWidth-Ut,fo=yc(ae,[Ut,dr-Dt]);s.style.minWidth=Ze+"px",s.style.right=fo+"px"}const z=m(),D=window.innerHeight-Ut*2,Y=g.scrollHeight,U=window.getComputedStyle(u),H=parseInt(U.borderTopWidth,10),V=parseInt(U.paddingTop,10),G=parseInt(U.borderBottomWidth,10),T=parseInt(U.paddingBottom,10),C=H+V+Y+T+G,_=Math.min($.offsetHeight*5,C),A=window.getComputedStyle(g),j=parseInt(A.paddingTop,10),W=parseInt(A.paddingBottom,10),q=S.top+S.height/2-Ut,ve=D-q,ie=$.offsetHeight/2,B=$.offsetTop+ie,ne=H+V+B,re=C-ne;if(ne<=q){const le=$===z[z.length-1].ref.current;s.style.bottom="0px";const ae=u.clientHeight-g.offsetTop-g.offsetHeight,Qe=Math.max(ve,ie+(le?W:0)+ae+G),Ze=ne+Qe;s.style.height=Ze+"px"}else{const le=$===z[0].ref.current;s.style.top="0px";const Qe=Math.max(q,H+g.offsetTop+(le?j:0)+ie)+re;s.style.height=Qe+"px",g.scrollTop=ne-q+g.offsetTop}s.style.margin=`${Ut}px 0`,s.style.minHeight=_+"px",s.style.maxHeight=D+"px",r==null||r(),requestAnimationFrame(()=>y.current=!0)}},[m,l.trigger,l.valueNode,s,u,g,$,v,l.dir,r]);Ye(()=>w(),[w]);const[b,E]=i.useState();Ye(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const k=i.useCallback(S=>{S&&x.current===!0&&(w(),h==null||h(),x.current=!1)},[w,h]);return i.createElement(IC,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:y,onScrollButtonChange:k},i.createElement("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b}},i.createElement(K.div,P({},o,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),xp=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ut,...l}=e,a=$d(n);return i.createElement(od,P({},a,l,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[IC,DC]=so(qr,{}),wp="SelectViewport",LC=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Pi(wp,n),l=DC(wp,n),a=Z(t,o.onViewportChange),s=i.useRef(0);return i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),i.createElement(ki.Slot,{scope:n},i.createElement(K.div,P({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:I(r.onScroll,c=>{const u=c.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:f}=l;if(f!=null&&f.current&&p){const m=Math.abs(s.current-u.scrollTop);if(m>0){const y=window.innerHeight-Ut*2,x=parseFloat(p.style.minHeight),g=parseFloat(p.style.height),$=Math.max(x,g);if($0?w:0,p.style.justifyContent="flex-end")}}}s.current=u.scrollTop})}))))}),FC="SelectGroup",[DS,zC]=so(FC),UC="SelectLabel",BC=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=zC(UC,n);return i.createElement(K.div,P({id:o.id},r,{ref:t}))}),Oc="SelectItem",[VC,kg]=so(Oc),WC=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:l,...a}=e,s=cr(Oc,n),c=Pi(Oc,n),u=s.value===r,[p,f]=i.useState(l??""),[m,y]=i.useState(!1),x=Z(t,v=>{var h;return(h=c.itemRefCallback)===null||h===void 0?void 0:h.call(c,v,r,o)}),g=Kt(),$=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.createElement(VC,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:i.useCallback(v=>{f(h=>{var w;return h||((w=v==null?void 0:v.textContent)!==null&&w!==void 0?w:"").trim()})},[])},i.createElement(ki.ItemSlot,{scope:n,value:r,disabled:o,textValue:p},i.createElement(K.div,P({role:"option","aria-labelledby":g,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:x,onFocus:I(a.onFocus,()=>y(!0)),onBlur:I(a.onBlur,()=>y(!1)),onPointerUp:I(a.onPointerUp,$),onPointerMove:I(a.onPointerMove,v=>{if(o){var h;(h=c.onItemLeave)===null||h===void 0||h.call(c)}else v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:I(a.onPointerLeave,v=>{if(v.currentTarget===document.activeElement){var h;(h=c.onItemLeave)===null||h===void 0||h.call(c)}}),onKeyDown:I(a.onKeyDown,v=>{var h;((h=c.searchRef)===null||h===void 0?void 0:h.current)!==""&&v.key===" "||($C.includes(v.key)&&$(),v.key===" "&&v.preventDefault())})}))))}),Gl="SelectItemText",HC=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...l}=e,a=cr(Gl,n),s=Pi(Gl,n),c=kg(Gl,n),u=SC(Gl,n),[p,f]=i.useState(null),m=Z(t,v=>f(v),c.onItemTextChange,v=>{var h;return(h=s.itemTextRefCallback)===null||h===void 0?void 0:h.call(s,v,c.value,c.disabled)}),y=p==null?void 0:p.textContent,x=i.useMemo(()=>i.createElement("option",{key:c.value,value:c.value,disabled:c.disabled},y),[c.disabled,c.value,y]),{onNativeOptionAdd:g,onNativeOptionRemove:$}=u;return Ye(()=>(g(x),()=>$(x)),[g,$,x]),i.createElement(i.Fragment,null,i.createElement(K.span,P({id:c.textId},l,{ref:m})),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?nn.createPortal(l.children,a.valueNode):null)}),KC="SelectItemIndicator",GC=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return kg(KC,n).isSelected?i.createElement(K.span,P({"aria-hidden":!0},r,{ref:t})):null}),YC=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.createElement(K.div,P({"aria-hidden":!0},r,{ref:t}))});function Pg(e){return e===""||e===void 0}const Rg=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),l=Z(t,o),a=xd(n);return i.useEffect(()=>{const s=o.current,c=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==n&&p){const f=new Event("change",{bubbles:!0});p.call(s,n),s.dispatchEvent(f)}},[a,n]),i.createElement(xC,{asChild:!0},i.createElement("select",P({},r,{ref:l,defaultValue:n})))});Rg.displayName="BubbleSelect";function _g(e){const t=be(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(a=>{const s=n.current+a;t(s),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),l=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,l]}function Ng(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let a=XC(e,Math.max(l,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function XC(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const QC=kC,Tg=RC,ZC=NC,qC=TC,JC=MC,Mg=OC,e7=LC,Og=BC,jg=WC,t7=HC,n7=GC,Ag=YC,Yn=QC,Xn=ZC,kn=i.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Tg,{ref:r,className:F("flex h-10 w-full items-center justify-between rounded-md border border-slate-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-slate-500 focus:outline-none focus:ring-2 focus:ring-slate-950 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-800 dark:bg-slate-950 dark:ring-offset-slate-950 dark:placeholder:text-slate-400 dark:focus:ring-slate-300",e),...n,children:[t,d.jsx(qC,{asChild:!0,children:d.jsx(B5,{className:"h-4 w-4 opacity-50"})})]}));kn.displayName=Tg.displayName;const Pn=i.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>d.jsx(JC,{children:d.jsx(Mg,{ref:o,className:F("relative z-50 min-w-[8rem] overflow-hidden rounded-md border border-slate-200 bg-white text-slate-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:d.jsx(e7,{className:F("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));Pn.displayName=Mg.displayName;const r7=i.forwardRef(({className:e,...t},n)=>d.jsx(Og,{ref:n,className:F("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));r7.displayName=Og.displayName;const ee=i.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(jg,{ref:r,className:F("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50",e),...n,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(n7,{children:d.jsx(vd,{className:"h-4 w-4"})})}),d.jsx(t7,{children:t})]}));ee.displayName=jg.displayName;const o7=i.forwardRef(({className:e,...t},n)=>d.jsx(Ag,{ref:n,className:F("-mx-1 my-1 h-px bg-slate-100 dark:bg-slate-800",e),...t}));o7.displayName=Ag.displayName;function l7(){return d.jsxs(Be,{children:[d.jsxs(tt,{children:[d.jsx(nt,{children:"Payment Method"}),d.jsx(rt,{children:"Add a new payment method to your account."})]}),d.jsxs(Ve,{className:"grid gap-6",children:[d.jsxs(Cg,{defaultValue:"card",className:"grid grid-cols-3 gap-4",children:[d.jsxs("div",{children:[d.jsx(pa,{value:"card",id:"card",className:"peer sr-only"}),d.jsxs($e,{htmlFor:"card",className:"flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary",children:[d.jsxs("svg",{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"mb-3 h-6 w-6",children:[d.jsx("rect",{width:"20",height:"14",x:"2",y:"5",rx:"2"}),d.jsx("path",{d:"M2 10h20"})]}),"Card"]})]}),d.jsxs("div",{children:[d.jsx(pa,{value:"paypal",id:"paypal",className:"peer sr-only"}),d.jsx($e,{htmlFor:"paypal",className:"flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary",children:"Paypal"})]}),d.jsxs("div",{children:[d.jsx(pa,{value:"apple",id:"apple",className:"peer sr-only"}),d.jsx($e,{htmlFor:"apple",className:"flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary",children:"Apple"})]})]}),d.jsxs("div",{className:"grid gap-2",children:[d.jsx($e,{htmlFor:"name",children:"Name"}),d.jsx(Sn,{id:"name",placeholder:"First Last"})]}),d.jsxs("div",{className:"grid gap-2",children:[d.jsx($e,{htmlFor:"number",children:"Card number"}),d.jsx(Sn,{id:"number",placeholder:""})]}),d.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[d.jsxs("div",{className:"grid gap-2",children:[d.jsx($e,{htmlFor:"month",children:"Expires"}),d.jsxs(Yn,{children:[d.jsx(kn,{id:"month",children:d.jsx(Xn,{placeholder:"Month"})}),d.jsxs(Pn,{children:[d.jsx(ee,{value:"1",children:"January"}),d.jsx(ee,{value:"2",children:"February"}),d.jsx(ee,{value:"3",children:"March"}),d.jsx(ee,{value:"4",children:"April"}),d.jsx(ee,{value:"5",children:"May"}),d.jsx(ee,{value:"6",children:"June"}),d.jsx(ee,{value:"7",children:"July"}),d.jsx(ee,{value:"8",children:"August"}),d.jsx(ee,{value:"9",children:"September"}),d.jsx(ee,{value:"10",children:"October"}),d.jsx(ee,{value:"11",children:"November"}),d.jsx(ee,{value:"12",children:"December"})]})]})]}),d.jsxs("div",{className:"grid gap-2",children:[d.jsx($e,{htmlFor:"year",children:"Year"}),d.jsxs(Yn,{children:[d.jsx(kn,{id:"year",children:d.jsx(Xn,{placeholder:"Year"})}),d.jsx(Pn,{children:Array.from({length:10},(e,t)=>d.jsx(ee,{value:`${new Date().getFullYear()+t}`,children:new Date().getFullYear()+t},t))})]})]}),d.jsxs("div",{className:"grid gap-2",children:[d.jsx($e,{htmlFor:"cvc",children:"CVC"}),d.jsx(Sn,{id:"cvc",placeholder:"CVC"})]})]})]}),d.jsx(ml,{children:d.jsx(lt,{className:"w-full",children:"Continue"})})]})}const Ig=i.forwardRef(({className:e,...t},n)=>d.jsx("textarea",{className:F("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Ig.displayName="Textarea";function a7(){return d.jsxs(Be,{children:[d.jsxs(tt,{children:[d.jsx(nt,{children:"Report an issue"}),d.jsx(rt,{children:"What area are you having problems with?"})]}),d.jsxs(Ve,{className:"grid gap-6",children:[d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{className:"grid gap-2",children:[d.jsx($e,{htmlFor:"area",children:"Area"}),d.jsxs(Yn,{defaultValue:"billing",children:[d.jsx(kn,{id:"area",children:d.jsx(Xn,{placeholder:"Select"})}),d.jsxs(Pn,{children:[d.jsx(ee,{value:"team",children:"Team"}),d.jsx(ee,{value:"billing",children:"Billing"}),d.jsx(ee,{value:"account",children:"Account"}),d.jsx(ee,{value:"deployments",children:"Deployments"}),d.jsx(ee,{value:"support",children:"Support"})]})]})]}),d.jsxs("div",{className:"grid gap-2",children:[d.jsx($e,{htmlFor:"security-level",children:"Security Level"}),d.jsxs(Yn,{defaultValue:"2",children:[d.jsx(kn,{id:"security-level",className:"line-clamp-1 w-[160px] truncate",children:d.jsx(Xn,{placeholder:"Select level"})}),d.jsxs(Pn,{children:[d.jsx(ee,{value:"1",children:"Severity 1 (Highest)"}),d.jsx(ee,{value:"2",children:"Severity 2"}),d.jsx(ee,{value:"3",children:"Severity 3"}),d.jsx(ee,{value:"4",children:"Severity 4 (Lowest)"})]})]})]})]}),d.jsxs("div",{className:"grid gap-2",children:[d.jsx($e,{htmlFor:"subject",children:"Subject"}),d.jsx(Sn,{id:"subject",placeholder:"I need help with..."})]}),d.jsxs("div",{className:"grid gap-2",children:[d.jsx($e,{htmlFor:"description",children:"Description"}),d.jsx(Ig,{id:"description",placeholder:"Please include all information relevant to your issue."})]})]}),d.jsxs(ml,{className:"justify-between space-x-2",children:[d.jsx(lt,{variant:"ghost",children:"Cancel"}),d.jsx(lt,{children:"Submit"})]})]})}const Dg="Avatar",[i7,LS]=Fe(Dg),[s7,Lg]=i7(Dg),c7=i.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,l]=i.useState("idle");return i.createElement(s7,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:l},i.createElement(K.span,P({},r,{ref:t})))}),u7="AvatarImage",d7=i.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...l}=e,a=Lg(u7,n),s=m7(r),c=be(u=>{o(u),a.onImageLoadingStatusChange(u)});return Ye(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?i.createElement(K.img,P({},l,{ref:t,src:r})):null}),f7="AvatarFallback",p7=i.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,l=Lg(f7,n),[a,s]=i.useState(r===void 0);return i.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(c)}},[r]),a&&l.imageLoadingStatus!=="loaded"?i.createElement(K.span,P({},o,{ref:t})):null});function m7(e){const[t,n]=i.useState("idle");return Ye(()=>{if(!e){n("error");return}let r=!0;const o=new window.Image,l=a=>()=>{r&&n(a)};return n("loading"),o.onload=l("loaded"),o.onerror=l("error"),o.src=e,()=>{r=!1}},[e]),t}const Fg=c7,zg=d7,Ug=p7,zr=i.forwardRef(({className:e,...t},n)=>d.jsx(Fg,{ref:n,className:F("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));zr.displayName=Fg.displayName;const Bg=i.forwardRef(({className:e,...t},n)=>d.jsx(zg,{ref:n,className:F("aspect-square h-full w-full",e),...t}));Bg.displayName=zg.displayName;const Ur=i.forwardRef(({className:e,...t},n)=>d.jsx(Ug,{ref:n,className:F("flex h-full w-full items-center justify-center rounded-full bg-slate-100 dark:bg-slate-800",e),...t}));Ur.displayName=Ug.displayName;function h7(){return d.jsxs(Be,{children:[d.jsxs(tt,{children:[d.jsx(nt,{children:"Share this document"}),d.jsx(rt,{children:"Anyone with the link can view this document."})]}),d.jsxs(Ve,{children:[d.jsxs("div",{className:"flex space-x-2",children:[d.jsx(Sn,{value:"https://example.com/link/to/document",readOnly:!0}),d.jsx(lt,{variant:"secondary",className:"shrink-0",children:"Copy Link"})]}),d.jsx(Yu,{className:"my-4"}),d.jsxs("div",{className:"space-y-4",children:[d.jsx("h4",{className:"text-sm font-medium",children:"People with access"}),d.jsxs("div",{className:"grid gap-6",children:[d.jsxs("div",{className:"flex items-center justify-between space-x-4",children:[d.jsxs("div",{className:"flex items-center space-x-4",children:[d.jsx(zr,{children:d.jsx(Ur,{children:"OM"})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium leading-none",children:"Olivia Martin"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"m@example.com"})]})]}),d.jsxs(Yn,{defaultValue:"edit",children:[d.jsx(kn,{className:"ml-auto w-[110px]",children:d.jsx(Xn,{placeholder:"Select"})}),d.jsxs(Pn,{children:[d.jsx(ee,{value:"edit",children:"Can edit"}),d.jsx(ee,{value:"view",children:"Can view"})]})]})]}),d.jsxs("div",{className:"flex items-center justify-between space-x-4",children:[d.jsxs("div",{className:"flex items-center space-x-4",children:[d.jsx(zr,{children:d.jsx(Ur,{children:"IN"})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium leading-none",children:"Isabella Nguyen"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"b@example.com"})]})]}),d.jsxs(Yn,{defaultValue:"view",children:[d.jsx(kn,{className:"ml-auto w-[110px]",children:d.jsx(Xn,{placeholder:"Select"})}),d.jsxs(Pn,{children:[d.jsx(ee,{value:"edit",children:"Can edit"}),d.jsx(ee,{value:"view",children:"Can view"})]})]})]}),d.jsxs("div",{className:"flex items-center justify-between space-x-4",children:[d.jsxs("div",{className:"flex items-center space-x-4",children:[d.jsx(zr,{children:d.jsx(Ur,{children:"SD"})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium leading-none",children:"Sofia Davis"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"p@example.com"})]})]}),d.jsxs(Yn,{defaultValue:"view",children:[d.jsx(kn,{className:"ml-auto w-[110px]",children:d.jsx(Xn,{placeholder:"Select"})}),d.jsxs(Pn,{children:[d.jsx(ee,{value:"edit",children:"Can edit"}),d.jsx(ee,{value:"view",children:"Can view"})]})]})]})]})]})]})]})}function Br(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 v7(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Vg(...e){return t=>e.forEach(n=>v7(n,t))}function yl(...e){return i.useCallback(Vg(...e),e)}function g7(e,t=[]){let n=[];function r(l,a){const s=i.createContext(a),c=n.length;n=[...n,a];function u(f){const{scope:m,children:y,...x}=f,g=(m==null?void 0:m[e][c])||s,$=i.useMemo(()=>x,Object.values(x));return i.createElement(g.Provider,{value:$},y)}function p(f,m){const y=(m==null?void 0:m[e][c])||s,x=i.useContext(y);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${l}\``)}return u.displayName=l+"Provider",[u,p]}const o=()=>{const l=n.map(a=>i.createContext(a));return function(s){const c=(s==null?void 0:s[e])||l;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,y7(o,...t)]}function y7(...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(l){const a=r.reduce((s,{useScope:c,scopeName:u})=>{const f=c(l)[`__scope${u}`];return{...s,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const jc=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},x7=Jc["useId".toString()]||(()=>{});let w7=0;function us(e){const[t,n]=i.useState(x7());return jc(()=>{e||n(r=>r??String(w7++))},[e]),e||(t?`radix-${t}`:"")}function nr(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function $7({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=b7({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:r,s=nr(n),c=i.useCallback(u=>{if(l){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else o(u)},[l,e,o,s]);return[a,c]}function b7({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),l=nr(t);return i.useEffect(()=>{o.current!==r&&(l(r),o.current=r)},[r,o,l]),n}const bd=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),l=o.find(C7);if(l){const a=l.props.children,s=o.map(c=>c===l?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:c);return i.createElement(Ac,P({},r,{ref:t}),i.isValidElement(a)?i.cloneElement(a,void 0,s):null)}return i.createElement(Ac,P({},r,{ref:t}),n)});bd.displayName="Slot";const Ac=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...S7(r,n.props),ref:Vg(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});Ac.displayName="SlotClone";const E7=({children:e})=>i.createElement(i.Fragment,null,e);function C7(e){return i.isValidElement(e)&&e.type===E7}function S7(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?n[r]=(...s)=>{l==null||l(...s),o==null||o(...s)}:r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}const k7=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Ri=k7.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:l,...a}=r,s=l?bd:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(s,P({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function P7(e,t){e&&nn.flushSync(()=>e.dispatchEvent(t))}function R7(e){const t=nr(e);i.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}const Ic="dismissableLayer.update",_7="dismissableLayer.pointerDownOutside",N7="dismissableLayer.focusOutside";let $p;const T7=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),M7=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:a,onDismiss:s,...c}=e,u=i.useContext(T7),[p,f]=i.useState(null),[,m]=i.useState({}),y=yl(t,k=>f(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),$=x.indexOf(g),v=p?x.indexOf(p):-1,h=u.layersWithOutsidePointerEventsDisabled.size>0,w=v>=$,b=O7(k=>{const S=k.target,R=[...u.branches].some(N=>N.contains(S));!w||R||(o==null||o(k),a==null||a(k),k.defaultPrevented||s==null||s())}),E=j7(k=>{const S=k.target;[...u.branches].some(N=>N.contains(S))||(l==null||l(k),a==null||a(k),k.defaultPrevented||s==null||s())});return R7(k=>{v===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&s&&(k.preventDefault(),s()))}),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&($p=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),bp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=$p)}},[p,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),bp())},[p,u]),i.useEffect(()=>{const k=()=>m({});return document.addEventListener(Ic,k),()=>document.removeEventListener(Ic,k)},[]),i.createElement(Ri.div,P({},c,{ref:y,style:{pointerEvents:h?w?"auto":"none":void 0,...e.style},onFocusCapture:Br(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Br(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Br(e.onPointerDownCapture,b.onPointerDownCapture)}))});function O7(e){const t=nr(e),n=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const o=a=>{if(a.target&&!n.current){let u=function(){Wg(_7,t,c,{discrete:!0})};var s=u;const c={originalEvent:a};a.pointerType==="touch"?(document.removeEventListener("click",r.current),r.current=u,document.addEventListener("click",r.current,{once:!0})):u()}n.current=!1},l=window.setTimeout(()=>{document.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),document.removeEventListener("pointerdown",o),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}function j7(e){const t=nr(e),n=i.useRef(!1);return i.useEffect(()=>{const r=o=>{o.target&&!n.current&&Wg(N7,t,{originalEvent:o},{discrete:!1})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function bp(){const e=new CustomEvent(Ic);document.dispatchEvent(e)}function Wg(e,t,n,{discrete:r}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?P7(o,l):o.dispatchEvent(l)}const ds="focusScope.autoFocusOnMount",fs="focusScope.autoFocusOnUnmount",Ep={bubbles:!1,cancelable:!0},A7=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...a}=e,[s,c]=i.useState(null),u=nr(o),p=nr(l),f=i.useRef(null),m=yl(t,g=>c(g)),y=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let v=function(w){if(y.paused||!s)return;const b=w.target;s.contains(b)?f.current=b:Un(f.current,{select:!0})},h=function(w){y.paused||!s||s.contains(w.relatedTarget)||Un(f.current,{select:!0})};var g=v,$=h;return document.addEventListener("focusin",v),document.addEventListener("focusout",h),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",h)}}},[r,s,y.paused]),i.useEffect(()=>{if(s){Sp.add(y);const g=document.activeElement;if(!s.contains(g)){const v=new CustomEvent(ds,Ep);s.addEventListener(ds,u),s.dispatchEvent(v),v.defaultPrevented||(I7(U7(Hg(s)),{select:!0}),document.activeElement===g&&Un(s))}return()=>{s.removeEventListener(ds,u),setTimeout(()=>{const v=new CustomEvent(fs,Ep);s.addEventListener(fs,p),s.dispatchEvent(v),v.defaultPrevented||Un(g??document.body,{select:!0}),s.removeEventListener(fs,p),Sp.remove(y)},0)}}},[s,u,p,y]);const x=i.useCallback(g=>{if(!n&&!r||y.paused)return;const $=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if($&&v){const h=g.currentTarget,[w,b]=D7(h);w&&b?!g.shiftKey&&v===b?(g.preventDefault(),n&&Un(w,{select:!0})):g.shiftKey&&v===w&&(g.preventDefault(),n&&Un(b,{select:!0})):v===h&&g.preventDefault()}},[n,r,y.paused]);return i.createElement(Ri.div,P({tabIndex:-1},a,{ref:m,onKeyDown:x}))});function I7(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Un(r,{select:t}),document.activeElement!==n)return}function D7(e){const t=Hg(e),n=Cp(t,e),r=Cp(t.reverse(),e);return[n,r]}function Hg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Cp(e,t){for(const n of e)if(!L7(n,{upTo:t}))return n}function L7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function F7(e){return e instanceof HTMLInputElement&&"select"in e}function Un(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&F7(e)&&t&&e.select()}}const Sp=z7();function z7(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=kp(e,t),e.unshift(t)},remove(t){var n;e=kp(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function kp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function U7(e){return e.filter(t=>t.tagName!=="A")}const B7=i.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Xh.createPortal(i.createElement(Ri.div,P({},o,{ref:t})),r):null});function V7(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _i=e=>{const{present:t,children:n}=e,r=W7(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),l=yl(r.ref,o.ref);return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:l}):null};_i.displayName="Presence";function W7(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),l=i.useRef("none"),a=e?"mounted":"unmounted",[s,c]=V7(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Yl(r.current);l.current=s==="mounted"?u:"none"},[s]),jc(()=>{const u=r.current,p=o.current;if(p!==e){const m=l.current,y=Yl(u);e?c("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(p&&m!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),jc(()=>{if(t){const u=f=>{const y=Yl(r.current).includes(f.animationName);f.target===t&&y&&nn.flushSync(()=>c("ANIMATION_END"))},p=f=>{f.target===t&&(l.current=Yl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Yl(e){return(e==null?void 0:e.animationName)||"none"}let ps=0;function H7(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Pp()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Pp()),ps++,()=>{ps===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),ps--}},[])}function Pp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Kg=Qv(),ms=function(){},Ni=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:ms,onWheelCapture:ms,onTouchMoveCapture:ms}),o=r[0],l=r[1],a=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,p=e.enabled,f=e.shards,m=e.sideCar,y=e.noIsolation,x=e.inert,g=e.allowPinchZoom,$=e.as,v=$===void 0?"div":$,h=ad(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,b=Xv([n,t]),E=Me(Me({},h),o);return i.createElement(i.Fragment,null,p&&i.createElement(w,{sideCar:Kg,removeScrollBar:u,shards:f,noIsolation:y,inert:x,setCallbacks:l,allowPinchZoom:!!g,lockRef:n}),a?i.cloneElement(i.Children.only(s),Me(Me({},E),{ref:b})):i.createElement(v,Me({},E,{className:c,ref:b}),s))});Ni.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ni.classNames={fullWidth:Lo,zeroRight:Do};var Dc=!1;if(typeof window<"u")try{var Xl=Object.defineProperty({},"passive",{get:function(){return Dc=!0,!0}});window.addEventListener("test",Xl,Xl),window.removeEventListener("test",Xl,Xl)}catch{Dc=!1}var vr=Dc?{passive:!1}:!1,K7=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},G7=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},Rp=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Gg(e,n);if(r){var o=Yg(e,n),l=o[1],a=o[2];if(l>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Y7=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},X7=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Gg=function(e,t){return e==="v"?K7(t):G7(t)},Yg=function(e,t){return e==="v"?Y7(t):X7(t)},Q7=function(e,t){return e==="h"&&t==="rtl"?-1:1},Z7=function(e,t,n,r,o){var l=Q7(e,window.getComputedStyle(t).direction),a=l*r,s=n.target,c=t.contains(s),u=!1,p=a>0,f=0,m=0;do{var y=Yg(e,s),x=y[0],g=y[1],$=y[2],v=g-$-l*x;(x||v)&&Gg(e,s)&&(f+=v,m+=x),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(p&&(o&&f===0||!o&&a>f)||!p&&(o&&m===0||!o&&-a>m))&&(u=!0),u},Ql=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_p=function(e){return[e.deltaX,e.deltaY]},Np=function(e){return e&&"current"in e?e.current:e},q7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},J7=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},e6=0,gr=[];function t6(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(e6++)[0],l=i.useState(function(){return id()})[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Yv([e.lockRef.current],(e.shards||[]).map(Np),!0).filter(Boolean);return g.forEach(function($){return $.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function($){return $.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(g,$){if("touches"in g&&g.touches.length===2)return!a.current.allowPinchZoom;var v=Ql(g),h=n.current,w="deltaX"in g?g.deltaX:h[0]-v[0],b="deltaY"in g?g.deltaY:h[1]-v[1],E,k=g.target,S=Math.abs(w)>Math.abs(b)?"h":"v";if("touches"in g&&S==="h"&&k.type==="range")return!1;var R=Rp(S,k);if(!R)return!0;if(R?E=S:(E=S==="v"?"h":"v",R=Rp(S,k)),!R)return!1;if(!r.current&&"changedTouches"in g&&(w||b)&&(r.current=E),!E)return!0;var N=r.current||E;return Z7(N,$,g,N==="h"?w:b,!0)},[]),c=i.useCallback(function(g){var $=g;if(!(!gr.length||gr[gr.length-1]!==l)){var v="deltaY"in $?_p($):Ql($),h=t.current.filter(function(E){return E.name===$.type&&E.target===$.target&&q7(E.delta,v)})[0];if(h&&h.should){$.preventDefault();return}if(!h){var w=(a.current.shards||[]).map(Np).filter(Boolean).filter(function(E){return E.contains($.target)}),b=w.length>0?s($,w[0]):!a.current.noIsolation;b&&$.preventDefault()}}},[]),u=i.useCallback(function(g,$,v,h){var w={name:g,delta:$,target:v,should:h};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(b){return b!==w})},1)},[]),p=i.useCallback(function(g){n.current=Ql(g),r.current=void 0},[]),f=i.useCallback(function(g){u(g.type,_p(g),g.target,s(g,e.lockRef.current))},[]),m=i.useCallback(function(g){u(g.type,Ql(g),g.target,s(g,e.lockRef.current))},[]);i.useEffect(function(){return gr.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,vr),document.addEventListener("touchmove",c,vr),document.addEventListener("touchstart",p,vr),function(){gr=gr.filter(function(g){return g!==l}),document.removeEventListener("wheel",c,vr),document.removeEventListener("touchmove",c,vr),document.removeEventListener("touchstart",p,vr)}},[]);var y=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(l,{styles:J7(o)}):null,y?i.createElement(e0,{gapMode:"margin"}):null)}const n6=qv(Kg,t6);var Xg=i.forwardRef(function(e,t){return i.createElement(Ni,Me({},e,{ref:t,sideCar:n6}))});Xg.classNames=Ni.classNames;const r6=Xg,Qg="Dialog",[Zg,FS]=g7(Qg),[o6,ur]=Zg(Qg),l6=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:l,modal:a=!0}=e,s=i.useRef(null),c=i.useRef(null),[u=!1,p]=$7({prop:r,defaultProp:o,onChange:l});return i.createElement(o6,{scope:t,triggerRef:s,contentRef:c,contentId:us(),titleId:us(),descriptionId:us(),open:u,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(f=>!f),[p]),modal:a},n)},qg="DialogPortal",[a6,Jg]=Zg(qg,{forceMount:void 0}),i6=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,l=ur(qg,t);return i.createElement(a6,{scope:t,forceMount:n},i.Children.map(r,a=>i.createElement(_i,{present:n||l.open},i.createElement(B7,{asChild:!0,container:o},a))))},Lc="DialogOverlay",s6=i.forwardRef((e,t)=>{const n=Jg(Lc,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=ur(Lc,e.__scopeDialog);return l.modal?i.createElement(_i,{present:r||l.open},i.createElement(c6,P({},o,{ref:t}))):null}),c6=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ur(Lc,n);return i.createElement(r6,{as:bd,allowPinchZoom:!0,shards:[o.contentRef]},i.createElement(Ri.div,P({"data-state":t1(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),al="DialogContent",u6=i.forwardRef((e,t)=>{const n=Jg(al,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=ur(al,e.__scopeDialog);return i.createElement(_i,{present:r||l.open},l.modal?i.createElement(d6,P({},o,{ref:t})):i.createElement(f6,P({},o,{ref:t})))}),d6=i.forwardRef((e,t)=>{const n=ur(al,e.__scopeDialog),r=i.useRef(null),o=yl(t,n.contentRef,r);return i.useEffect(()=>{const l=r.current;if(l)return vl(l)},[]),i.createElement(e1,P({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Br(e.onCloseAutoFocus,l=>{var a;l.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:Br(e.onPointerDownOutside,l=>{const a=l.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&l.preventDefault()}),onFocusOutside:Br(e.onFocusOutside,l=>l.preventDefault())}))}),f6=i.forwardRef((e,t)=>{const n=ur(al,e.__scopeDialog),r=i.useRef(!1);return i.createElement(e1,P({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l;if((l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,o),!o.defaultPrevented){var a;r.current||(a=n.triggerRef.current)===null||a===void 0||a.focus(),o.preventDefault()}r.current=!1},onInteractOutside:o=>{var l,a;(l=e.onInteractOutside)===null||l===void 0||l.call(e,o),o.defaultPrevented||(r.current=!0);const s=o.target;((a=n.triggerRef.current)===null||a===void 0?void 0:a.contains(s))&&o.preventDefault()}}))}),e1=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,...a}=e,s=ur(al,n),c=i.useRef(null),u=yl(t,c);return H7(),i.createElement(i.Fragment,null,i.createElement(A7,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l},i.createElement(M7,P({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":t1(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function t1(e){return e?"open":"closed"}const p6=l6,m6=i6,h6=s6,v6=u6;var Tp=1,g6=.9,y6=.3,hs=.1,x6=0,vs=.999,w6=.9999,$6=.99,Mp=/[\\\/\-_+.# \t"@\[\(\{&]/,b6=/[\\\/\-_+.# \t"@\[\(\{&]/g;function Fc(e,t,n,r,o,l){if(l===t.length)return o===e.length?Tp:$6;for(var a=r.charAt(l),s=n.indexOf(a,o),c=0,u,p,f;s>=0;)u=Fc(e,t,n,r,s+1,l+1),u>c&&(s===o?u*=Tp:Mp.test(e.charAt(s-1))?(u*=g6,f=e.slice(o,s-1).match(b6),f&&o>0&&(u*=Math.pow(vs,f.length))):Mp.test(e.slice(o,s-1))?(u*=x6,o>0&&(u*=Math.pow(vs,s-o))):(u*=y6,o>0&&(u*=Math.pow(vs,s-o))),e.charAt(s)!==t.charAt(l)&&(u*=w6)),uu&&(u=p*hs)),u>c&&(c=u),s=n.indexOf(a,s+1);return c}function E6(e,t){return Fc(e,t,e.toLowerCase(),t.toLowerCase(),0,0)}var C6=E6;const S6=Yc(C6);var k6='[cmdk-list-sizer=""]',Eo='[cmdk-group=""]',gs='[cmdk-group-items=""]',P6='[cmdk-group-heading=""]',n1='[cmdk-item=""]',Op=`${n1}:not([aria-disabled="true"])`,zc="cmdk-item-select",cn="data-value",R6=(e,t)=>S6(e,t),r1=i.createContext(void 0),xl=()=>i.useContext(r1),o1=i.createContext(void 0),Ed=()=>i.useContext(o1),l1=i.createContext(void 0),a1=i.forwardRef((e,t)=>{let n=i.useRef(null),r=xr(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=xr(()=>new Set),l=xr(()=>new Map),a=xr(()=>new Map),s=xr(()=>new Set),c=i1(e),{label:u,children:p,value:f,onValueChange:m,filter:y,shouldFilter:x,...g}=e,$=i.useId(),v=i.useId(),h=i.useId(),w=F6();co(()=>{if(f!==void 0){let C=f.trim().toLowerCase();r.current.value=C,w(6,O),b.emit()}},[f]);let b=i.useMemo(()=>({subscribe:C=>(s.current.add(C),()=>s.current.delete(C)),snapshot:()=>r.current,setState:(C,_,A)=>{var j,W,q;if(!Object.is(r.current[C],_)){if(r.current[C]=_,C==="search")N(),S(),w(1,R);else if(C==="value")if(((j=c.current)==null?void 0:j.value)!==void 0){(q=(W=c.current).onValueChange)==null||q.call(W,_);return}else A||w(5,O);b.emit()}},emit:()=>{s.current.forEach(C=>C())}}),[]),E=i.useMemo(()=>({value:(C,_)=>{_!==a.current.get(C)&&(a.current.set(C,_),r.current.filtered.items.set(C,k(_)),w(2,()=>{S(),b.emit()}))},item:(C,_)=>(o.current.add(C),_&&(l.current.has(_)?l.current.get(_).add(C):l.current.set(_,new Set([C]))),w(3,()=>{N(),S(),r.current.value||R(),b.emit()}),()=>{a.current.delete(C),o.current.delete(C),r.current.filtered.items.delete(C),w(4,()=>{N(),R(),b.emit()})}),group:C=>(l.current.has(C)||l.current.set(C,new Set),()=>{a.current.delete(C),l.current.delete(C)}),filter:()=>c.current.shouldFilter,label:u||e["aria-label"],listId:$,inputId:h,labelId:v}),[]);function k(C){var _;let A=((_=c.current)==null?void 0:_.filter)??R6;return C?A(C,r.current.search):0}function S(){if(!n.current||!r.current.search||c.current.shouldFilter===!1)return;let C=r.current.filtered.items,_=[];r.current.filtered.groups.forEach(j=>{let W=l.current.get(j),q=0;W.forEach(ve=>{let ie=C.get(ve);q=Math.max(ie,q)}),_.push([j,q])});let A=n.current.querySelector(k6);D().sort((j,W)=>{let q=j.getAttribute(cn),ve=W.getAttribute(cn);return(C.get(ve)??0)-(C.get(q)??0)}).forEach(j=>{let W=j.closest(gs);W?W.appendChild(j.parentElement===W?j:j.closest(`${gs} > *`)):A.appendChild(j.parentElement===A?j:j.closest(`${gs} > *`))}),_.sort((j,W)=>W[1]-j[1]).forEach(j=>{let W=n.current.querySelector(`${Eo}[${cn}="${j[0]}"]`);W==null||W.parentElement.appendChild(W)})}function R(){let C=D().find(A=>!A.ariaDisabled),_=C==null?void 0:C.getAttribute(cn);b.setState("value",_||void 0)}function N(){if(!r.current.search||c.current.shouldFilter===!1){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let C=0;for(let _ of o.current){let A=a.current.get(_),j=k(A);r.current.filtered.items.set(_,j),j>0&&C++}for(let[_,A]of l.current)for(let j of A)if(r.current.filtered.items.get(j)>0){r.current.filtered.groups.add(_);break}r.current.filtered.count=C}function O(){var C,_,A;let j=z();j&&(((C=j.parentElement)==null?void 0:C.firstChild)===j&&((A=(_=j.closest(Eo))==null?void 0:_.querySelector(P6))==null||A.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function z(){return n.current.querySelector(`${n1}[aria-selected="true"]`)}function D(){return Array.from(n.current.querySelectorAll(Op))}function Y(C){let _=D()[C];_&&b.setState("value",_.getAttribute(cn))}function U(C){var _;let A=z(),j=D(),W=j.findIndex(ve=>ve===A),q=j[W+C];(_=c.current)!=null&&_.loop&&(q=W+C<0?j[j.length-1]:W+C===j.length?j[0]:j[W+C]),q&&b.setState("value",q.getAttribute(cn))}function H(C){let _=z(),A=_==null?void 0:_.closest(Eo),j;for(;A&&!j;)A=C>0?D6(A,Eo):L6(A,Eo),j=A==null?void 0:A.querySelector(Op);j?b.setState("value",j.getAttribute(cn)):U(C)}let V=()=>Y(D().length-1),G=C=>{C.preventDefault(),C.metaKey?V():C.altKey?H(1):U(1)},T=C=>{C.preventDefault(),C.metaKey?Y(0):C.altKey?H(-1):U(-1)};return i.createElement("div",{ref:wl([n,t]),...g,"cmdk-root":"",onKeyDown:C=>{var _;if((_=g.onKeyDown)==null||_.call(g,C),!C.defaultPrevented)switch(C.key){case"n":case"j":{C.ctrlKey&&G(C);break}case"ArrowDown":{G(C);break}case"p":case"k":{C.ctrlKey&&T(C);break}case"ArrowUp":{T(C);break}case"Home":{C.preventDefault(),Y(0);break}case"End":{C.preventDefault(),V();break}case"Enter":{C.preventDefault();let A=z();if(A){let j=new Event(zc);A.dispatchEvent(j)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:z6},u),i.createElement(o1.Provider,{value:b},i.createElement(r1.Provider,{value:E},p)))}),_6=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(l1),l=xl(),a=i1(e);co(()=>l.item(n,o),[]);let s=s1(n,r,[e.value,e.children,r]),c=Ed(),u=Jr(v=>v.value&&v.value===s.current),p=Jr(v=>l.filter()===!1?!0:v.search?v.filtered.items.get(n)>0:!0);i.useEffect(()=>{let v=r.current;if(!(!v||e.disabled))return v.addEventListener(zc,f),()=>v.removeEventListener(zc,f)},[p,e.onSelect,e.disabled]);function f(){var v,h;(h=(v=a.current).onSelect)==null||h.call(v,s.current)}function m(){c.setState("value",s.current,!0)}if(!p)return null;let{disabled:y,value:x,onSelect:g,...$}=e;return i.createElement("div",{ref:wl([r,t]),...$,"cmdk-item":"",role:"option","aria-disabled":y||void 0,"aria-selected":u||void 0,"data-selected":u||void 0,onPointerMove:y?void 0:m,onClick:y?void 0:f},e.children)}),N6=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,l=i.useId(),a=i.useRef(null),s=i.useRef(null),c=i.useId(),u=xl(),p=Jr(m=>u.filter()===!1?!0:m.search?m.filtered.groups.has(l):!0);co(()=>u.group(l),[]),s1(l,a,[e.value,e.heading,s]);let f=i.createElement(l1.Provider,{value:l},r);return i.createElement("div",{ref:wl([a,t]),...o,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},n&&i.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},f))}),T6=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),l=Jr(a=>!a.search);return!n&&!l?null:i.createElement("div",{ref:wl([o,t]),...r,"cmdk-separator":"",role:"separator"})}),M6=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,l=Ed(),a=Jr(c=>c.search),s=xl();return i.useEffect(()=>{e.value!=null&&l.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,id:s.inputId,type:"text",value:o?e.value:a,onChange:c=>{o||l.setState("search",c.target.value),n==null||n(c.target.value)}})}),O6=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),l=i.useRef(null),a=xl();return i.useEffect(()=>{if(l.current&&o.current){let s=l.current,c=o.current,u,p=new ResizeObserver(()=>{u=requestAnimationFrame(()=>{let f=s.getBoundingClientRect().height;c.style.setProperty("--cmdk-list-height",f.toFixed(1)+"px")})});return p.observe(s),()=>{cancelAnimationFrame(u),p.unobserve(s)}}},[]),i.createElement("div",{ref:wl([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:a.listId,"aria-labelledby":a.inputId},i.createElement("div",{ref:l,"cmdk-list-sizer":""},n))}),j6=i.forwardRef((e,t)=>{let{open:n,onOpenChange:r,container:o,...l}=e;return i.createElement(p6,{open:n,onOpenChange:r},i.createElement(m6,{container:o},i.createElement(h6,{"cmdk-overlay":""}),i.createElement(v6,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(a1,{ref:t,...l}))))}),A6=i.forwardRef((e,t)=>{let n=i.useRef(!0),r=Jr(o=>o.filtered.count===0);return i.useEffect(()=>{n.current=!1},[]),n.current||!r?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),I6=i.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))}),Xe=Object.assign(a1,{List:O6,Item:_6,Input:M6,Group:N6,Separator:T6,Dialog:j6,Empty:A6,Loading:I6});function D6(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function L6(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function i1(e){let t=i.useRef(e);return co(()=>{t.current=e}),t}var co=typeof window>"u"?i.useEffect:i.useLayoutEffect;function xr(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function wl(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function Jr(e){let t=Ed(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function s1(e,t,n){let r=i.useRef(),o=xl();return co(()=>{var l;let a=(()=>{var s;for(let c of n){if(typeof c=="string")return c.trim().toLowerCase();if(typeof c=="object"&&"current"in c&&c.current)return(s=c.current.textContent)==null?void 0:s.trim().toLowerCase()}})();o.value(e,a),(l=t.current)==null||l.setAttribute(cn,a),r.current=a}),r}var F6=()=>{let[e,t]=i.useState(),n=xr(()=>new Map);return co(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}},z6={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const c1="Dialog",[u1,zS]=Fe(c1),[US,It]=u1(c1),d1="DialogPortal",[U6,f1]=u1(d1,{forceMount:void 0}),B6=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,l=It(d1,t);return i.createElement(U6,{scope:t,forceMount:n},i.Children.map(r,a=>i.createElement(je,{present:n||l.open},i.createElement(xi,{asChild:!0,container:o},a))))},Uc="DialogOverlay",V6=i.forwardRef((e,t)=>{const n=f1(Uc,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=It(Uc,e.__scopeDialog);return l.modal?i.createElement(je,{present:r||l.open},i.createElement(W6,P({},o,{ref:t}))):null}),W6=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(Uc,n);return i.createElement(Ei,{as:Zt,allowPinchZoom:!0,shards:[o.contentRef]},i.createElement(K.div,P({"data-state":m1(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),il="DialogContent",H6=i.forwardRef((e,t)=>{const n=f1(il,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=It(il,e.__scopeDialog);return i.createElement(je,{present:r||l.open},l.modal?i.createElement(K6,P({},o,{ref:t})):i.createElement(G6,P({},o,{ref:t})))}),K6=i.forwardRef((e,t)=>{const n=It(il,e.__scopeDialog),r=i.useRef(null),o=Z(t,n.contentRef,r);return i.useEffect(()=>{const l=r.current;if(l)return vl(l)},[]),i.createElement(p1,P({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:I(e.onCloseAutoFocus,l=>{var a;l.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:I(e.onPointerDownOutside,l=>{const a=l.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&l.preventDefault()}),onFocusOutside:I(e.onFocusOutside,l=>l.preventDefault())}))}),G6=i.forwardRef((e,t)=>{const n=It(il,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return i.createElement(p1,P({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,l),!l.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),l.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:l=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,l),l.defaultPrevented||(r.current=!0,l.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=l.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(c))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&o.current&&l.preventDefault()}}))}),p1=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,...a}=e,s=It(il,n),c=i.useRef(null),u=Z(t,c);return hi(),i.createElement(i.Fragment,null,i.createElement(vi,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l},i.createElement(mi,P({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":m1(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),Y6="DialogTitle",X6=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(Y6,n);return i.createElement(K.h2,P({id:o.titleId},r,{ref:t}))}),Q6="DialogDescription",Z6=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(Q6,n);return i.createElement(K.p,P({id:o.descriptionId},r,{ref:t}))}),q6="DialogClose",J6=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(q6,n);return i.createElement(K.button,P({type:"button"},r,{ref:t,onClick:I(e.onClick,()=>o.onOpenChange(!1))}))});function m1(e){return e?"open":"closed"}const eS=B6,h1=V6,v1=H6,g1=X6,y1=Z6,tS=J6,nS=eS,x1=i.forwardRef(({className:e,...t},n)=>d.jsx(h1,{ref:n,className:F("fixed inset-0 z-50 bg-white/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 dark:bg-slate-950/80",e),...t}));x1.displayName=h1.displayName;const rS=i.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(nS,{children:[d.jsx(x1,{}),d.jsxs(v1,{ref:r,className:F("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-slate-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full dark:border-slate-800 dark:bg-slate-950",e),...n,children:[t,d.jsxs(tS,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-slate-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-slate-100 data-[state=open]:text-slate-500 dark:ring-offset-slate-950 dark:focus:ring-slate-300 dark:data-[state=open]:bg-slate-800 dark:data-[state=open]:text-slate-400",children:[d.jsx(W5,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));rS.displayName=v1.displayName;const oS=i.forwardRef(({className:e,...t},n)=>d.jsx(g1,{ref:n,className:F("text-lg font-semibold leading-none tracking-tight",e),...t}));oS.displayName=g1.displayName;const lS=i.forwardRef(({className:e,...t},n)=>d.jsx(y1,{ref:n,className:F("text-sm text-slate-500 dark:text-slate-400",e),...t}));lS.displayName=y1.displayName;const Bc=i.forwardRef(({className:e,...t},n)=>d.jsx(Xe,{ref:n,className:F("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-slate-950 dark:bg-slate-950 dark:text-slate-50",e),...t}));Bc.displayName=Xe.displayName;const Vc=i.forwardRef(({className:e,...t},n)=>d.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[d.jsx(V5,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),d.jsx(Xe.Input,{ref:n,className:F("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-slate-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-slate-400",e),...t})]}));Vc.displayName=Xe.Input.displayName;const Wc=i.forwardRef(({className:e,...t},n)=>d.jsx(Xe.List,{ref:n,className:F("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Wc.displayName=Xe.List.displayName;const Hc=i.forwardRef((e,t)=>d.jsx(Xe.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Hc.displayName=Xe.Empty.displayName;const Kc=i.forwardRef(({className:e,...t},n)=>d.jsx(Xe.Group,{ref:n,className:F("overflow-hidden p-1 text-slate-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-slate-500 dark:text-slate-50 dark:[&_[cmdk-group-heading]]:text-slate-400",e),...t}));Kc.displayName=Xe.Group.displayName;const aS=i.forwardRef(({className:e,...t},n)=>d.jsx(Xe.Separator,{ref:n,className:F("-mx-1 h-px bg-slate-200 dark:bg-slate-800",e),...t}));aS.displayName=Xe.Separator.displayName;const Ft=i.forwardRef(({className:e,...t},n)=>d.jsx(Xe.Item,{ref:n,className:F("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-slate-100 aria-selected:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:aria-selected:bg-slate-800 dark:aria-selected:text-slate-50",e),...t}));Ft.displayName=Xe.Item.displayName;const w1="Popover",[$1,BS]=Fe(w1,[ao]),Cd=ao(),[iS,uo]=$1(w1),sS=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:l,modal:a=!1}=e,s=Cd(t),c=i.useRef(null),[u,p]=i.useState(!1),[f=!1,m]=On({prop:r,defaultProp:o,onChange:l});return i.createElement(nd,s,i.createElement(iS,{scope:t,contentId:Kt(),triggerRef:c,open:f,onOpenChange:m,onOpenToggle:i.useCallback(()=>m(y=>!y),[m]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>p(!0),[]),onCustomAnchorRemove:i.useCallback(()=>p(!1),[]),modal:a},n))},cS="PopoverTrigger",uS=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=uo(cS,n),l=Cd(n),a=Z(t,o.triggerRef),s=i.createElement(K.button,P({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":C1(o.open)},r,{ref:a,onClick:I(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:i.createElement(rd,P({asChild:!0},l),s)}),b1="PopoverPortal",[dS,fS]=$1(b1,{forceMount:void 0}),pS=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,l=uo(b1,t);return i.createElement(dS,{scope:t,forceMount:n},i.createElement(je,{present:n||l.open},i.createElement(xi,{asChild:!0,container:o},r)))},sl="PopoverContent",mS=i.forwardRef((e,t)=>{const n=fS(sl,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,l=uo(sl,e.__scopePopover);return i.createElement(je,{present:r||l.open},l.modal?i.createElement(hS,P({},o,{ref:t})):i.createElement(vS,P({},o,{ref:t})))}),hS=i.forwardRef((e,t)=>{const n=uo(sl,e.__scopePopover),r=i.useRef(null),o=Z(t,r),l=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return vl(a)},[]),i.createElement(Ei,{as:Zt,allowPinchZoom:!0},i.createElement(E1,P({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:I(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),l.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:I(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,u=s.button===2||c;l.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:I(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),vS=i.forwardRef((e,t)=>{const n=uo(sl,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return i.createElement(E1,P({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,l),!l.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),l.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:l=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,l),l.defaultPrevented||(r.current=!0,l.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=l.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(c))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&o.current&&l.preventDefault()}}))}),E1=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:p,...f}=e,m=uo(sl,n),y=Cd(n);return hi(),i.createElement(vi,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l},i.createElement(mi,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1)},i.createElement(od,P({"data-state":C1(m.open),role:"dialog",id:m.contentId},y,f,{ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function C1(e){return e?"open":"closed"}const gS=sS,yS=uS,xS=pS,S1=mS,jp=gS,Ap=yS,Gc=i.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>d.jsx(xS,{children:d.jsx(S1,{ref:o,align:t,sideOffset:n,className:F("z-50 w-72 rounded-md border border-slate-200 bg-white p-4 text-slate-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",e),...r})}));Gc.displayName=S1.displayName;function wS(){return d.jsxs(Be,{children:[d.jsxs(tt,{children:[d.jsx(nt,{children:"Team Members"}),d.jsx(rt,{children:"Invite your team members to collaborate."})]}),d.jsxs(Ve,{className:"grid gap-6",children:[d.jsxs("div",{className:"flex items-center justify-between space-x-4",children:[d.jsxs("div",{className:"flex items-center space-x-4",children:[d.jsx(zr,{children:d.jsx(Ur,{children:"OM"})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium leading-none",children:"Sofia Davis"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"m@example.com"})]})]}),d.jsxs(jp,{children:[d.jsx(Ap,{asChild:!0,children:d.jsxs(lt,{variant:"outline",className:"ml-auto",children:["Owner"," ",d.jsx(Tc,{className:"ml-2 h-4 w-4 text-muted-foreground"})]})}),d.jsx(Gc,{className:"p-0",align:"end",children:d.jsxs(Bc,{children:[d.jsx(Vc,{placeholder:"Select new role..."}),d.jsxs(Wc,{children:[d.jsx(Hc,{children:"No roles found."}),d.jsxs(Kc,{children:[d.jsxs(Ft,{className:"teamaspace-y-1 flex flex-col items-start px-4 py-2",children:[d.jsx("p",{children:"Viewer"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Can view and comment."})]}),d.jsxs(Ft,{className:"teamaspace-y-1 flex flex-col items-start px-4 py-2",children:[d.jsx("p",{children:"Developer"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Can view, comment and edit."})]}),d.jsxs(Ft,{className:"teamaspace-y-1 flex flex-col items-start px-4 py-2",children:[d.jsx("p",{children:"Billing"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Can view, comment and manage billing."})]}),d.jsxs(Ft,{className:"teamaspace-y-1 flex flex-col items-start px-4 py-2",children:[d.jsx("p",{children:"Owner"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Admin-level access to all resources."})]})]})]})]})})]})]}),d.jsxs("div",{className:"flex items-center justify-between space-x-4",children:[d.jsxs("div",{className:"flex items-center space-x-4",children:[d.jsxs(zr,{children:[d.jsx(Bg,{src:"/avatars/02.png"}),d.jsx(Ur,{children:"JL"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium leading-none",children:"Jackson Lee"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"p@example.com"})]})]}),d.jsxs(jp,{children:[d.jsx(Ap,{asChild:!0,children:d.jsxs(lt,{variant:"outline",className:"ml-auto",children:["Member"," ",d.jsx(Tc,{className:"ml-2 h-4 w-4 text-muted-foreground"})]})}),d.jsx(Gc,{className:"p-0",align:"end",children:d.jsxs(Bc,{children:[d.jsx(Vc,{placeholder:"Select new role..."}),d.jsxs(Wc,{children:[d.jsx(Hc,{children:"No roles found."}),d.jsxs(Kc,{className:"p-1.5",children:[d.jsxs(Ft,{className:"teamaspace-y-1 flex flex-col items-start px-4 py-2",children:[d.jsx("p",{children:"Viewer"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Can view and comment."})]}),d.jsxs(Ft,{className:"teamaspace-y-1 flex flex-col items-start px-4 py-2",children:[d.jsx("p",{children:"Developer"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Can view, comment and edit."})]}),d.jsxs(Ft,{className:"teamaspace-y-1 flex flex-col items-start px-4 py-2",children:[d.jsx("p",{children:"Billing"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Can view, comment and manage billing."})]}),d.jsxs(Ft,{className:"teamaspace-y-1 flex flex-col items-start px-4 py-2",children:[d.jsx("p",{children:"Owner"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Admin-level access to all resources."})]})]})]})]})})]})]})]})]})}function Lt({className:e,...t}){return d.jsx("div",{className:F("flex items-center justify-center [&>div]:w-full",e),...t})}function $S(){return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"md:hidden"}),d.jsxs("div",{className:"hidden items-start justify-center gap-6 rounded-lg p-8 md:grid lg:grid-cols-2 xl:grid-cols-3",children:[d.jsxs("div",{className:"col-span-2 grid items-start gap-6 lg:col-span-1",children:[d.jsx(Lt,{children:d.jsx(gE,{})}),d.jsx(Lt,{children:d.jsx(l7,{})})]}),d.jsxs("div",{className:"col-span-2 grid items-start gap-6 lg:col-span-1",children:[d.jsx(Lt,{children:d.jsx(wS,{})}),d.jsx(Lt,{children:d.jsx(h7,{})}),d.jsx(Lt,{children:d.jsx(yE,{})}),d.jsx(Lt,{children:d.jsx(nC,{})})]}),d.jsxs("div",{className:"col-span-2 grid items-start gap-6 lg:col-span-2 lg:grid-cols-2 xl:col-span-1 xl:grid-cols-1",children:[d.jsx(Lt,{children:d.jsx(a7,{})}),d.jsx(Lt,{children:d.jsx(tC,{})}),d.jsx(Lt,{children:d.jsx(vE,{})})]})]})]})}const bS=()=>d.jsx(d.Fragment,{children:d.jsxs("div",{className:"hidden md:block",children:[d.jsx(X5,{}),d.jsx("div",{className:"border-t",children:d.jsx("div",{className:"bg-background",children:d.jsxs("div",{className:"grid lg:grid-cols-5",children:[d.jsx(V$,{className:"hidden lg:block"}),d.jsx("div",{className:"col-span-3 lg:col-span-4",children:d.jsx("div",{className:"h-full px-4 py-6 lg:px-8",children:d.jsx($S,{})})})]})})})]})}),ES=()=>{const e=rv();return d.jsx(Aw,{location:e,children:d.jsx(ov,{path:"*",element:d.jsx(bS,{})})})};function CS(){return d.jsx(d.Fragment,{children:d.jsx(ES,{})})}const SS=()=>{let e="/";const t=window.location.pathname.match(/preview\/pr-\d+/);return t&&(e+=t[0]),d.jsx(ut.StrictMode,{children:d.jsx(Dw,{basename:e,children:d.jsx(CS,{})})})};ys.createRoot(document.getElementById("root")).render(d.jsx(SS,{})); diff --git a/index.html b/index.html new file mode 100644 index 0000000..162262d --- /dev/null +++ b/index.html @@ -0,0 +1,15 @@ + + + + + + + Dashboard + + + + +
+ + + diff --git a/vite.svg b/vite.svg new file mode 100644 index 0000000..503f2c8 --- /dev/null +++ b/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file