diff --git a/.env b/.env new file mode 100644 index 0000000..baecb64 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +REACT_APP_CLIENT_ID=742104294908-maet14jq2ohqpl0uu0ma4qpllc30t0k5.apps.googleusercontent.com \ No newline at end of file diff --git a/dist/assets/index-CAuUAc4S.css b/dist/assets/index-CAuUAc4S.css new file mode 100644 index 0000000..ca68537 --- /dev/null +++ b/dist/assets/index-CAuUAc4S.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--radius: .5rem;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.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-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-2{right:.5rem}.top-0{top:0}.top-2{top:.5rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-24{margin-top:6rem;margin-bottom:6rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-8{margin-top:2rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-6{width:1.5rem;height:1.5rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.max-h-screen{max-height:100vh}.min-h-screen{min-height:100vh}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-9{width:2.25rem}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.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}.max-w-max{max-width:-moz-max-content;max-width:max-content}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.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))}.rotate-45{--tw-rotate: 45deg;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))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.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}.list-none{list-style-type:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-4{gap:1rem}.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-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * 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-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-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-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.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-sm{border-radius:calc(var(--radius) - 4px)}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-\[\#1D283A\]{--tw-border-opacity: 1;border-color:rgb(29 40 58 / var(--tw-border-opacity))}.border-destructive{border-color:hsl(var(--destructive))}.border-input{border-color:hsl(var(--input))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[\#000000\]{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-\[\#030711\]{--tw-bg-opacity: 1;background-color:rgb(3 7 17 / var(--tw-bg-opacity))}.bg-\[\#1D283A\]{--tw-bg-opacity: 1;background-color:rgb(29 40 58 / var(--tw-bg-opacity))}.bg-\[\#333437\]{--tw-bg-opacity: 1;background-color:rgb(51 52 55 / var(--tw-bg-opacity))}.bg-\[black\]{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:#000c}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.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-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fill-current{fill:currentColor}.fill-white{fill:#fff}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-28{padding-left:7rem;padding-right:7rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.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-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-2\.5{padding-left:.625rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-\[\#7F8EA3\]{--tw-text-opacity: 1;color:rgb(127 142 163 / var(--tw-text-opacity))}.text-\[\#FFFFFF\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground) / .5)}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-90{opacity:.9}.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-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-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}.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}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:brightness-50:hover{--tw-brightness: brightness(.5);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:opacity-100:focus{opacity:1}.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-ring:focus{--tw-ring-color: hsl(var(--ring))}.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-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted) / .4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive) / .3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color: hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.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-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--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-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);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-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);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-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.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-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{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-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{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-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.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-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.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%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;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))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.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\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){.md\:absolute{position:absolute}.md\:mt-0{margin-top:0}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-\[400px\]{height:400px}.md\:w-20{width:5rem}.md\:w-\[720px\]{width:720px}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:max-w-\[420px\]{max-width:420px}.md\:justify-center{justify-content:center}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:px-28{padding-left:7rem;padding-right:7rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-base{font-size:1rem;line-height:1.5rem}}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1} diff --git a/dist/assets/index-DVkOYyJz.js b/dist/assets/index-DVkOYyJz.js deleted file mode 100644 index e699da4..0000000 --- a/dist/assets/index-DVkOYyJz.js +++ /dev/null @@ -1,187 +0,0 @@ -function UC(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 s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function yv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xv={exports:{}},Jl={},wv={exports:{}},fe={};/** - * @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 Hi=Symbol.for("react.element"),BC=Symbol.for("react.portal"),WC=Symbol.for("react.fragment"),HC=Symbol.for("react.strict_mode"),KC=Symbol.for("react.profiler"),ZC=Symbol.for("react.provider"),GC=Symbol.for("react.context"),YC=Symbol.for("react.forward_ref"),XC=Symbol.for("react.suspense"),qC=Symbol.for("react.memo"),QC=Symbol.for("react.lazy"),Hh=Symbol.iterator;function JC(e){return e===null||typeof e!="object"?null:(e=Hh&&e[Hh]||e["@@iterator"],typeof e=="function"?e:null)}var Sv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bv=Object.assign,_v={};function ds(e,t,n){this.props=e,this.context=t,this.refs=_v,this.updater=n||Sv}ds.prototype.isReactComponent={};ds.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")};ds.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cv(){}Cv.prototype=ds.prototype;function Ff(e,t,n){this.props=e,this.context=t,this.refs=_v,this.updater=n||Sv}var $f=Ff.prototype=new Cv;$f.constructor=Ff;bv($f,ds.prototype);$f.isPureReactComponent=!0;var Kh=Array.isArray,Ev=Object.prototype.hasOwnProperty,zf={current:null},Nv={key:!0,ref:!0,__self:!0,__source:!0};function kv(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Ev.call(t,r)&&!Nv.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,pe=M[te];if(0>>1;teo(ut,U))Teo(J,ut)?(M[te]=J,M[Te]=U,te=Te):(M[te]=ut,M[Ie]=U,te=Ie);else if(Teo(J,U))M[te]=J,M[Te]=U,te=Te;else break e}}return j}function o(M,j){var U=M.sortIndex-j.sortIndex;return U!==0?U:M.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],u=1,p=null,h=3,x=!1,v=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=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(M){for(var j=n(c);j!==null;){if(j.callback===null)r(c);else if(j.startTime<=M)r(c),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(c)}}function _(M){if(g=!1,w(M),!v)if(n(l)!==null)v=!0,Q(b);else{var j=n(c);j!==null&&oe(_,j.startTime-M)}}function b(M,j){v=!1,g&&(g=!1,y(k),k=-1),x=!0;var U=h;try{for(w(j),p=n(l);p!==null&&(!(p.expirationTime>j)||M&&!q());){var te=p.callback;if(typeof te=="function"){p.callback=null,h=p.priorityLevel;var pe=te(p.expirationTime<=j);j=e.unstable_now(),typeof pe=="function"?p.callback=pe:p===n(l)&&r(l),w(j)}else r(l);p=n(l)}if(p!==null)var nt=!0;else{var Ie=n(c);Ie!==null&&oe(_,Ie.startTime-j),nt=!1}return nt}finally{p=null,h=U,x=!1}}var N=!1,E=null,k=-1,A=5,O=-1;function q(){return!(e.unstable_now()-OM||125te?(M.sortIndex=U,t(c,M),n(l)===null&&M===n(c)&&(g?(y(k),k=-1):g=!0,oe(_,U-te))):(M.sortIndex=pe,t(l,M),v||x||(v=!0,Q(b))),M},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(M){var j=h;return function(){var U=h;h=j;try{return M.apply(this,arguments)}finally{h=U}}}})(jv);Mv.exports=jv;var uE=Mv.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 dE=f,Lt=uE;function D(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"),Ku=Object.prototype.hasOwnProperty,fE=/^[: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]*$/,Gh={},Yh={};function pE(e){return Ku.call(Yh,e)?!0:Ku.call(Gh,e)?!1:fE.test(e)?Yh[e]=!0:(Gh[e]=!0,!1)}function hE(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 mE(e,t,n,r){if(t===null||typeof t>"u"||hE(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 vt(e,t,n,r,o,s,i){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=s,this.removeEmptyString=i}var tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tt[e]=new vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tt[t]=new vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[e]=new vt(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){tt[e]=new vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uf=/[\-:]([a-z])/g;function Bf(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(Uf,Bf);tt[t]=new vt(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(Uf,Bf);tt[t]=new vt(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(Uf,Bf);tt[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tt[e]=new vt(e,1,!1,e.toLowerCase(),null,!1,!1)});tt.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tt[e]=new vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wf(e,t,n,r){var o=tt.hasOwnProperty(t)?tt[t]:null;(o!==null?o.type!==0:r||!(2a||o[i]!==s[a]){var l=` -`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Jc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ls(e):""}function gE(e){switch(e.tag){case 5:return Ls(e.type);case 16:return Ls("Lazy");case 13:return Ls("Suspense");case 19:return Ls("SuspenseList");case 0:case 2:case 15:return e=eu(e.type,!1),e;case 11:return e=eu(e.type.render,!1),e;case 1:return e=eu(e.type,!0),e;default:return""}}function Xu(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 Ro:return"Fragment";case ko:return"Portal";case Zu:return"Profiler";case Hf:return"StrictMode";case Gu:return"Suspense";case Yu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dv:return(e.displayName||"Context")+".Consumer";case Iv:return(e._context.displayName||"Context")+".Provider";case Kf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zf:return t=e.displayName||null,t!==null?t:Xu(e.type)||"Memo";case sr:t=e._payload,e=e._init;try{return Xu(e(t))}catch{}}return null}function vE(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 Xu(t);case 8:return t===Hf?"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 _r(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yE(e){var t=Fv(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ca(e){e._valueTracker||(e._valueTracker=yE(e))}function $v(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ja(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 qu(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_r(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 zv(e,t){t=t.checked,t!=null&&Wf(e,"checked",t,!1)}function Qu(e,t){zv(e,t);var n=_r(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")?Ju(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ju(e,t.type,_r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qh(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 Ju(e,t,n){(t!=="number"||Ja(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fs=Array.isArray;function Vo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ua.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ii(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ks={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},xE=["Webkit","ms","Moz","O"];Object.keys(Ks).forEach(function(e){xE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ks[t]=Ks[e]})});function Wv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ks.hasOwnProperty(e)&&Ks[e]?(""+t).trim():t+"px"}function Hv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Wv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var wE=$e({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 nd(e,t){if(t){if(wE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function rd(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 od=null;function Gf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sd=null,Uo=null,Bo=null;function tm(e){if(e=Gi(e)){if(typeof sd!="function")throw Error(D(280));var t=e.stateNode;t&&(t=oc(t),sd(e.stateNode,e.type,t))}}function Kv(e){Uo?Bo?Bo.push(e):Bo=[e]:Uo=e}function Zv(){if(Uo){var e=Uo,t=Bo;if(Bo=Uo=null,tm(e),t)for(e=0;e>>=0,e===0?32:31-(AE(e)/ME|0)|0}var da=64,fa=4194304;function $s(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 rl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=$s(a):(s&=i,s!==0&&(r=$s(s)))}else i=n&~o,i!==0?r=$s(i):s!==0&&(r=$s(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&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 Ki(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-on(t),e[t]=n}function DE(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=Gs),um=" ",dm=!1;function py(e,t){switch(e){case"keyup":return uN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var To=!1;function fN(e,t){switch(e){case"compositionend":return hy(t);case"keypress":return t.which!==32?null:(dm=!0,um);case"textInput":return e=t.data,e===um&&dm?null:e;default:return null}}function pN(e,t){if(To)return e==="compositionend"||!np&&py(e,t)?(e=dy(),$a=Jf=dr=null,To=!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=mm(n)}}function yy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xy(){for(var e=window,t=Ja();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ja(e.document)}return t}function rp(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 bN(e){var t=xy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yy(n.ownerDocument.documentElement,n)){if(r!==null&&rp(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,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=gm(n,s);var i=gm(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,Po=null,dd=null,Xs=null,fd=!1;function vm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fd||Po==null||Po!==Ja(r)||(r=Po,"selectionStart"in r&&rp(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}),Xs&&fi(Xs,r)||(Xs=r,r=il(dd,"onSelect"),0jo||(e.current=yd[jo],yd[jo]=null,jo--)}function ke(e,t){jo++,yd[jo]=e.current,e.current=t}var Cr={},lt=Ir(Cr),Ct=Ir(!1),Xr=Cr;function Jo(e,t){var n=e.type.contextTypes;if(!n)return Cr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Et(e){return e=e.childContextTypes,e!=null}function ll(){Me(Ct),Me(lt)}function Cm(e,t,n){if(lt.current!==Cr)throw Error(D(168));ke(lt,t),ke(Ct,n)}function Ry(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(D(108,vE(e)||"Unknown",o));return $e({},n,r)}function cl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cr,Xr=lt.current,ke(lt,e),ke(Ct,Ct.current),!0}function Em(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Ry(e,t,Xr),r.__reactInternalMemoizedMergedChildContext=e,Me(Ct),Me(lt),ke(lt,e)):Me(Ct),ke(Ct,n)}var On=null,sc=!1,hu=!1;function Ty(e){On===null?On=[e]:On.push(e)}function ON(e){sc=!0,Ty(e)}function Dr(){if(!hu&&On!==null){hu=!0;var e=0,t=Ne;try{var n=On;for(Ne=1;e>=i,o-=i,In=1<<32-on(t)+o|n<k?(A=E,E=null):A=E.sibling;var O=h(y,E,w[k],_);if(O===null){E===null&&(E=A);break}e&&E&&O.alternate===null&&t(y,E),m=s(O,m,k),N===null?b=O:N.sibling=O,N=O,E=A}if(k===w.length)return n(y,E),je&&zr(y,k),b;if(E===null){for(;kk?(A=E,E=null):A=E.sibling;var q=h(y,E,O.value,_);if(q===null){E===null&&(E=A);break}e&&E&&q.alternate===null&&t(y,E),m=s(q,m,k),N===null?b=q:N.sibling=q,N=q,E=A}if(O.done)return n(y,E),je&&zr(y,k),b;if(E===null){for(;!O.done;k++,O=w.next())O=p(y,O.value,_),O!==null&&(m=s(O,m,k),N===null?b=O:N.sibling=O,N=O);return je&&zr(y,k),b}for(E=r(y,E);!O.done;k++,O=w.next())O=x(E,y,k,O.value,_),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?k:O.key),m=s(O,m,k),N===null?b=O:N.sibling=O,N=O);return e&&E.forEach(function(I){return t(y,I)}),je&&zr(y,k),b}function S(y,m,w,_){if(typeof w=="object"&&w!==null&&w.type===Ro&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case la:e:{for(var b=w.key,N=m;N!==null;){if(N.key===b){if(b=w.type,b===Ro){if(N.tag===7){n(y,N.sibling),m=o(N,w.props.children),m.return=y,y=m;break e}}else if(N.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===sr&&Rm(b)===N.type){n(y,N.sibling),m=o(N,w.props),m.ref=Ps(y,N,w),m.return=y,y=m;break e}n(y,N);break}else t(y,N);N=N.sibling}w.type===Ro?(m=Zr(w.props.children,y.mode,_,w.key),m.return=y,y=m):(_=Za(w.type,w.key,w.props,null,y.mode,_),_.ref=Ps(y,m,w),_.return=y,y=_)}return i(y);case ko:e:{for(N=w.key;m!==null;){if(m.key===N)if(m.tag===4&&m.stateNode.containerInfo===w.containerInfo&&m.stateNode.implementation===w.implementation){n(y,m.sibling),m=o(m,w.children||[]),m.return=y,y=m;break e}else{n(y,m);break}else t(y,m);m=m.sibling}m=bu(w,y.mode,_),m.return=y,y=m}return i(y);case sr:return N=w._init,S(y,m,N(w._payload),_)}if(Fs(w))return v(y,m,w,_);if(Es(w))return g(y,m,w,_);xa(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,m!==null&&m.tag===6?(n(y,m.sibling),m=o(m,w),m.return=y,y=m):(n(y,m),m=Su(w,y.mode,_),m.return=y,y=m),i(y)):n(y,m)}return S}var ts=jy(!0),Oy=jy(!1),fl=Ir(null),pl=null,Do=null,ap=null;function lp(){ap=Do=pl=null}function cp(e){var t=fl.current;Me(fl),e._currentValue=t}function Sd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ho(e,t){pl=e,ap=Do=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_t=!0),e.firstContext=null)}function Gt(e){var t=e._currentValue;if(ap!==e)if(e={context:e,memoizedValue:t,next:null},Do===null){if(pl===null)throw Error(D(308));Do=e,pl.dependencies={lanes:0,firstContext:e}}else Do=Do.next=e;return t}var Br=null;function up(e){Br===null?Br=[e]:Br.push(e)}function Iy(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,up(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vn(e,r)}function Vn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ir=!1;function dp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ge&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vn(e,n)}return o=r.interleaved,o===null?(t.next=t,up(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vn(e,n)}function Va(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xf(e,n)}}function Tm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hl(e,t,n,r){var o=e.updateQueue;ir=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?s=c:i.next=c,i=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==i&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(s!==null){var p=o.baseState;i=0,u=c=l=null,a=s;do{var h=a.lane,x=a.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,g=a;switch(h=t,x=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){p=v.call(x,p,h);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,h=typeof v=="function"?v.call(x,p,h):v,h==null)break e;p=$e({},p,h);break e;case 2:ir=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else x={eventTime:x,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=x,l=p):u=u.next=x,i|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(u===null&&(l=p),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Jr|=i,e.lanes=i,e.memoizedState=p}}function Pm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=gu.transition;gu.transition={};try{e(!1),t()}finally{Ne=n,gu.transition=r}}function Jy(){return Yt().memoizedState}function FN(e,t,n){var r=wr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ex(e))tx(t,n);else if(n=Iy(e,t,n,r),n!==null){var o=pt();sn(n,e,r,o),nx(n,t,r)}}function $N(e,t,n){var r=wr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ex(e))tx(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,un(a,i)){var l=t.interleaved;l===null?(o.next=o,up(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Iy(e,t,o,r),n!==null&&(o=pt(),sn(n,e,r,o),nx(n,t,r))}}function ex(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function tx(e,t){qs=gl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xf(e,n)}}var vl={readContext:Gt,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},zN={readContext:Gt,useCallback:function(e,t){return vn().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:Mm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,Gy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=vn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vn();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=FN.bind(null,Fe,e),[r.memoizedState,e]},useRef:function(e){var t=vn();return e={current:e},t.memoizedState=e},useState:Am,useDebugValue:xp,useDeferredValue:function(e){return vn().memoizedState=e},useTransition:function(){var e=Am(!1),t=e[0];return e=LN.bind(null,e[1]),vn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fe,o=vn();if(je){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Qe===null)throw Error(D(349));Qr&30||zy(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Mm(Uy.bind(null,r,s,e),[e]),r.flags|=2048,wi(9,Vy.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=vn(),t=Qe.identifierPrefix;if(je){var n=Dn,r=In;n=(r&~(1<<32-on(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[yn]=t,e[mi]=r,fx(e,t,!1,!1),t.stateNode=e;e:{switch(i=rd(n,r),n){case"dialog":Ae("cancel",e),Ae("close",e),o=r;break;case"iframe":case"object":case"embed":Ae("load",e),o=r;break;case"video":case"audio":for(o=0;oos&&(t.flags|=128,r=!0,As(s,!1),t.lanes=4194304)}else{if(!r)if(e=ml(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),As(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!je)return st(t),null}else 2*Ue()-s.renderingStartTime>os&&n!==1073741824&&(t.flags|=128,r=!0,As(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ue(),t.sibling=null,n=Le.current,ke(Le,r?n&1|2:n&1),t):(st(t),null);case 22:case 23:return Ep(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pt&1073741824&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function GN(e,t){switch(sp(t),t.tag){case 1:return Et(t.type)&&ll(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ns(),Me(Ct),Me(lt),hp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pp(t),null;case 13:if(Me(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));es()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Me(Le),null;case 4:return ns(),null;case 10:return cp(t.type._context),null;case 22:case 23:return Ep(),null;case 24:return null;default:return null}}var Sa=!1,it=!1,YN=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Lo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function Pd(e,t,n){try{n()}catch(r){ze(e,t,r)}}var Bm=!1;function XN(e,t){if(pd=ol,e=xy(),rp(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,c=0,u=0,p=e,h=null;t:for(;;){for(var x;p!==n||o!==0&&p.nodeType!==3||(a=i+o),p!==s||r!==0&&p.nodeType!==3||(l=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(x=p.firstChild)!==null;)h=p,p=x;for(;;){if(p===e)break t;if(h===n&&++c===o&&(a=i),h===s&&++u===r&&(l=i),(x=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=x}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(hd={focusedElem:e,selectionRange:n},ol=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,S=v.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Jt(t.type,g),S);y.__reactInternalSnapshotBeforeUpdate=m}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(D(163))}}catch(_){ze(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return v=Bm,Bm=!1,v}function Qs(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 s=o.destroy;o.destroy=void 0,s!==void 0&&Pd(t,n,s)}o=o.next}while(o!==r)}}function lc(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 Ad(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 mx(e){var t=e.alternate;t!==null&&(e.alternate=null,mx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[mi],delete t[vd],delete t[MN],delete t[jN])),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 gx(e){return e.tag===5||e.tag===3||e.tag===4}function Wm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gx(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 Md(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=al));else if(r!==4&&(e=e.child,e!==null))for(Md(e,t,n),e=e.sibling;e!==null;)Md(e,t,n),e=e.sibling}function jd(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(jd(e,t,n),e=e.sibling;e!==null;)jd(e,t,n),e=e.sibling}var Je=null,en=!1;function er(e,t,n){for(n=n.child;n!==null;)vx(e,t,n),n=n.sibling}function vx(e,t,n){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(ec,n)}catch{}switch(n.tag){case 5:it||Lo(n,t);case 6:var r=Je,o=en;Je=null,er(e,t,n),Je=r,en=o,Je!==null&&(en?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&&(en?(e=Je,n=n.stateNode,e.nodeType===8?pu(e.parentNode,n):e.nodeType===1&&pu(e,n),ui(e)):pu(Je,n.stateNode));break;case 4:r=Je,o=en,Je=n.stateNode.containerInfo,en=!0,er(e,t,n),Je=r,en=o;break;case 0:case 11:case 14:case 15:if(!it&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Pd(n,t,i),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!it&&(Lo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ze(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(it=(r=it)||n.memoizedState!==null,er(e,t,n),it=r):er(e,t,n);break;default:er(e,t,n)}}function Hm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new YN),t.forEach(function(r){var o=sk.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=Ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*QN(r/1960))-r,10e?16:e,fr===null)var r=!1;else{if(e=fr,fr=null,wl=0,ge&6)throw Error(D(331));var o=ge;for(ge|=4,Z=e.current;Z!==null;){var s=Z,i=s.child;if(Z.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lUe()-_p?Kr(e,0):bp|=n),Nt(e,t)}function Ex(e,t){t===0&&(e.mode&1?(t=fa,fa<<=1,!(fa&130023424)&&(fa=4194304)):t=1);var n=pt();e=Vn(e,t),e!==null&&(Ki(e,t,n),Nt(e,n))}function ok(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ex(e,n)}function sk(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(D(314))}r!==null&&r.delete(t),Ex(e,n)}var Nx;Nx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ct.current)_t=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _t=!1,KN(e,t,n);_t=!!(e.flags&131072)}else _t=!1,je&&t.flags&1048576&&Py(t,dl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wa(e,t),e=t.pendingProps;var o=Jo(t,lt.current);Ho(t,n),o=gp(null,t,r,e,o,n);var s=vp();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,Et(r)?(s=!0,cl(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dp(t),o.updater=ac,t.stateNode=o,o._reactInternals=t,_d(t,r,e,n),t=Nd(null,t,r,!0,s,n)):(t.tag=0,je&&s&&op(t),dt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ak(r),e=Jt(r,e),o){case 0:t=Ed(null,t,r,e,n);break e;case 1:t=zm(null,t,r,e,n);break e;case 11:t=Fm(null,t,r,e,n);break e;case 14:t=$m(null,t,r,Jt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Ed(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),zm(e,t,r,o,n);case 3:e:{if(cx(t),e===null)throw Error(D(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Dy(e,t),hl(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=rs(Error(D(423)),t),t=Vm(e,t,r,n,o);break e}else if(r!==o){o=rs(Error(D(424)),t),t=Vm(e,t,r,n,o);break e}else for(Mt=vr(t.stateNode.containerInfo.firstChild),jt=t,je=!0,tn=null,n=Oy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(es(),r===o){t=Un(e,t,n);break e}dt(e,t,r,n)}t=t.child}return t;case 5:return Ly(t),e===null&&wd(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,md(r,o)?i=null:s!==null&&md(r,s)&&(t.flags|=32),lx(e,t),dt(e,t,i,n),t.child;case 6:return e===null&&wd(t),null;case 13:return ux(e,t,n);case 4:return fp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ts(t,null,r,n):dt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Fm(e,t,r,o,n);case 7:return dt(e,t,t.pendingProps,n),t.child;case 8:return dt(e,t,t.pendingProps.children,n),t.child;case 12:return dt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,ke(fl,r._currentValue),r._currentValue=i,s!==null)if(un(s.value,i)){if(s.children===o.children&&!Ct.current){t=Un(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Fn(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Sd(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(D(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Sd(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}dt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ho(t,n),o=Gt(o),r=r(o),t.flags|=1,dt(e,t,r,n),t.child;case 14:return r=t.type,o=Jt(r,t.pendingProps),o=Jt(r.type,o),$m(e,t,r,o,n);case 15:return ix(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Wa(e,t),t.tag=1,Et(r)?(e=!0,cl(t)):e=!1,Ho(t,n),rx(t,r,o),_d(t,r,o,n),Nd(null,t,r,!0,e,n);case 19:return dx(e,t,n);case 22:return ax(e,t,n)}throw Error(D(156,t.tag))};function kx(e,t){return ey(e,t)}function ik(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 Wt(e,t,n,r){return new ik(e,t,n,r)}function kp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ak(e){if(typeof e=="function")return kp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Kf)return 11;if(e===Zf)return 14}return 2}function Sr(e,t){var n=e.alternate;return n===null?(n=Wt(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 Za(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")kp(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ro:return Zr(n.children,o,s,t);case Hf:i=8,o|=8;break;case Zu:return e=Wt(12,n,t,o|2),e.elementType=Zu,e.lanes=s,e;case Gu:return e=Wt(13,n,t,o),e.elementType=Gu,e.lanes=s,e;case Yu:return e=Wt(19,n,t,o),e.elementType=Yu,e.lanes=s,e;case Lv:return uc(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Iv:i=10;break e;case Dv:i=9;break e;case Kf:i=11;break e;case Zf:i=14;break e;case sr:i=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Wt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Zr(e,t,n,r){return e=Wt(7,e,r,t),e.lanes=n,e}function uc(e,t,n,r){return e=Wt(22,e,r,t),e.elementType=Lv,e.lanes=n,e.stateNode={isHidden:!1},e}function Su(e,t,n){return e=Wt(6,e,null,t),e.lanes=n,e}function bu(e,t,n){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lk(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=nu(0),this.expirationTimes=nu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rp(e,t,n,r,o,s,i,a,l){return e=new lk(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Wt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dp(s),e}function ck(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ax)}catch(e){console.error(e)}}Ax(),Av.exports=Ft;var co=Av.exports;const Mp=yv(co);var Mx,Jm=co;Mx=Jm.createRoot,Jm.hydrateRoot;function hk(e,t){const n=f.createContext(t);function r(s){const{children:i,...a}=s,l=f.useMemo(()=>a,Object.values(a));return d.jsx(n.Provider,{value:l,children:i})}function o(s){const i=f.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function Nn(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),l=n.length;n=[...n,i];function c(p){const{scope:h,children:x,...v}=p,g=(h==null?void 0:h[e][l])||a,S=f.useMemo(()=>v,Object.values(v));return d.jsx(g.Provider,{value:S,children:x})}function u(p,h){const x=(h==null?void 0:h[e][l])||a,v=f.useContext(x);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,mk(o,...t)]}function mk(...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(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const p=l(s)[`__scope${c}`];return{...a,...p}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function F(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 gk(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Xi(...e){return t=>e.forEach(n=>gk(n,t))}function ae(...e){return f.useCallback(Xi(...e),e)}var Bn=f.forwardRef((e,t)=>{const{children:n,...r}=e,o=f.Children.toArray(n),s=o.find(vk);if(s){const i=s.props.children,a=o.map(l=>l===s?f.Children.count(i)>1?f.Children.only(null):f.isValidElement(i)?i.props.children:null:l);return d.jsx(Fd,{...r,ref:t,children:f.isValidElement(i)?f.cloneElement(i,void 0,a):null})}return d.jsx(Fd,{...r,ref:t,children:n})});Bn.displayName="Slot";var Fd=f.forwardRef((e,t)=>{const{children:n,...r}=e;if(f.isValidElement(n)){const o=xk(n);return f.cloneElement(n,{...yk(r,n.props),ref:t?Xi(t,o):o})}return f.Children.count(n)>1?f.Children.only(null):null});Fd.displayName="SlotClone";var jx=({children:e})=>d.jsx(d.Fragment,{children:e});function vk(e){return f.isValidElement(e)&&e.type===jx}function yk(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{s(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function xk(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],X=wk.reduce((e,t)=>{const n=f.forwardRef((r,o)=>{const{asChild:s,...i}=r,a=s?Bn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(a,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function bi(e,t){e&&co.flushSync(()=>e.dispatchEvent(t))}function Ee(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Wn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Sk({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:r,a=Ee(n),l=f.useCallback(c=>{if(s){const p=typeof c=="function"?c(e):c;p!==e&&a(p)}else o(c)},[s,e,o,a]);return[i,l]}function Sk({defaultProp:e,onChange:t}){const n=f.useState(e),[r]=n,o=f.useRef(r),s=Ee(t);return f.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var bk=f.createContext(void 0);function uo(e){const t=f.useContext(bk);return e||t||"ltr"}var Oe=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{};function _k(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var zt=e=>{const{present:t,children:n}=e,r=Ck(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),s=ae(r.ref,Ek(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:s}):null};zt.displayName="Presence";function Ck(e){const[t,n]=f.useState(),r=f.useRef({}),o=f.useRef(e),s=f.useRef("none"),i=e?"mounted":"unmounted",[a,l]=_k(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=Ca(r.current);s.current=a==="mounted"?c:"none"},[a]),Oe(()=>{const c=r.current,u=o.current;if(u!==e){const h=s.current,x=Ca(c);e?l("MOUNT"):x==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Oe(()=>{if(t){const c=p=>{const x=Ca(r.current).includes(p.animationName);p.target===t&&x&&co.flushSync(()=>l("ANIMATION_END"))},u=p=>{p.target===t&&(s.current=Ca(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Ca(e){return(e==null?void 0:e.animationName)||"none"}function Ek(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Nk=Tv.useId||(()=>{}),kk=0;function ht(e){const[t,n]=f.useState(Nk());return Oe(()=>{e||n(r=>r??String(kk++))},[e]),e||(t?`radix-${t}`:"")}function hs(e){const t=e+"CollectionProvider",[n,r]=Nn(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:v,children:g}=x,S=he.useRef(null),y=he.useRef(new Map).current;return d.jsx(o,{scope:v,itemMap:y,collectionRef:S,children:g})};i.displayName=t;const a=e+"CollectionSlot",l=he.forwardRef((x,v)=>{const{scope:g,children:S}=x,y=s(a,g),m=ae(v,y.collectionRef);return d.jsx(Bn,{ref:m,children:S})});l.displayName=a;const c=e+"CollectionItemSlot",u="data-radix-collection-item",p=he.forwardRef((x,v)=>{const{scope:g,children:S,...y}=x,m=he.useRef(null),w=ae(v,m),_=s(c,g);return he.useEffect(()=>(_.itemMap.set(m,{ref:m,...y}),()=>void _.itemMap.delete(m))),d.jsx(Bn,{[u]:"",ref:w,children:S})});p.displayName=c;function h(x){const v=s(e+"CollectionConsumer",x);return he.useCallback(()=>{const S=v.collectionRef.current;if(!S)return[];const y=Array.from(S.querySelectorAll(`[${u}]`));return Array.from(v.itemMap.values()).sort((_,b)=>y.indexOf(_.ref.current)-y.indexOf(b.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:l,ItemSlot:p},h,r]}function Ox(e,t=globalThis==null?void 0:globalThis.document){const n=Ee(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Rk="DismissableLayer",$d="dismissableLayer.update",Tk="dismissableLayer.pointerDownOutside",Pk="dismissableLayer.focusOutside",eg,Ix=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mc=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=f.useContext(Ix),[u,p]=f.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=f.useState({}),v=ae(t,E=>p(E)),g=Array.from(c.layers),[S]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(S),m=u?g.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,_=m>=y,b=jk(E=>{const k=E.target,A=[...c.branches].some(O=>O.contains(k));!_||A||(o==null||o(E),i==null||i(E),E.defaultPrevented||a==null||a())},h),N=Ok(E=>{const k=E.target;[...c.branches].some(O=>O.contains(k))||(s==null||s(E),i==null||i(E),E.defaultPrevented||a==null||a())},h);return Ox(E=>{m===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(eg=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),tg(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=eg)}},[u,h,n,c]),f.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),tg())},[u,c]),f.useEffect(()=>{const E=()=>x({});return document.addEventListener($d,E),()=>document.removeEventListener($d,E)},[]),d.jsx(X.div,{...l,ref:v,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,N.onFocusCapture),onBlurCapture:F(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,b.onPointerDownCapture)})});mc.displayName=Rk;var Ak="DismissableLayerBranch",Mk=f.forwardRef((e,t)=>{const n=f.useContext(Ix),r=f.useRef(null),o=ae(t,r);return f.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),d.jsx(X.div,{...e,ref:o})});Mk.displayName=Ak;function jk(e,t=globalThis==null?void 0:globalThis.document){const n=Ee(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Dx(Tk,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ok(e,t=globalThis==null?void 0:globalThis.document){const n=Ee(e),r=f.useRef(!1);return f.useEffect(()=>{const o=s=>{s.target&&!r.current&&Dx(Pk,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tg(){const e=new CustomEvent($d);document.dispatchEvent(e)}function Dx(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?bi(o,s):o.dispatchEvent(s)}function Lx(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ik="VisuallyHidden",jp=f.forwardRef((e,t)=>d.jsx(X.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));jp.displayName=Ik;var Dk=jp,ms="NavigationMenu",[Op,Fx,Lk]=hs(ms),[zd,Fk,$k]=hs(ms),[Ip,iF]=Nn(ms,[Lk,$k]),[zk,Xt]=Ip(ms),[Vk,Uk]=Ip(ms),$x=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:s,delayDuration:i=200,skipDelayDuration:a=300,orientation:l="horizontal",dir:c,...u}=e,[p,h]=f.useState(null),x=ae(t,A=>h(A)),v=uo(c),g=f.useRef(0),S=f.useRef(0),y=f.useRef(0),[m,w]=f.useState(!0),[_="",b]=Wn({prop:r,onChange:A=>{const O=A!=="",q=a>0;O?(window.clearTimeout(y.current),q&&w(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>w(!0),a)),o==null||o(A)},defaultProp:s}),N=f.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>b(""),150)},[b]),E=f.useCallback(A=>{window.clearTimeout(S.current),b(A)},[b]),k=f.useCallback(A=>{_===A?window.clearTimeout(S.current):g.current=window.setTimeout(()=>{window.clearTimeout(S.current),b(A)},i)},[_,b,i]);return f.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(S.current),window.clearTimeout(y.current)},[]),d.jsx(Vx,{scope:n,isRootMenu:!0,value:_,dir:v,orientation:l,rootNavigationMenu:p,onTriggerEnter:A=>{window.clearTimeout(g.current),m?k(A):E(A)},onTriggerLeave:()=>{window.clearTimeout(g.current),N()},onContentEnter:()=>window.clearTimeout(S.current),onContentLeave:N,onItemSelect:A=>{b(O=>O===A?"":A)},onItemDismiss:()=>b(""),children:d.jsx(X.nav,{"aria-label":"Main","data-orientation":l,dir:v,...u,ref:x})})});$x.displayName=ms;var zx="NavigationMenuSub",Bk=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",...a}=e,l=Xt(zx,n),[c="",u]=Wn({prop:r,onChange:o,defaultProp:s});return d.jsx(Vx,{scope:n,isRootMenu:!1,value:c,dir:l.dir,orientation:i,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:p=>u(p),onItemSelect:p=>u(p),onItemDismiss:()=>u(""),children:d.jsx(X.div,{"data-orientation":i,...a,ref:t})})});Bk.displayName=zx;var Vx=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:s,children:i,value:a,onItemSelect:l,onItemDismiss:c,onTriggerEnter:u,onTriggerLeave:p,onContentEnter:h,onContentLeave:x}=e,[v,g]=f.useState(null),[S,y]=f.useState(new Map),[m,w]=f.useState(null);return d.jsx(zk,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:a,previousValue:Lx(a),baseId:ht(),dir:o,orientation:s,viewport:v,onViewportChange:g,indicatorTrack:m,onIndicatorTrackChange:w,onTriggerEnter:Ee(u),onTriggerLeave:Ee(p),onContentEnter:Ee(h),onContentLeave:Ee(x),onItemSelect:Ee(l),onItemDismiss:Ee(c),onViewportContentChange:f.useCallback((_,b)=>{y(N=>(N.set(_,b),new Map(N)))},[]),onViewportContentRemove:f.useCallback(_=>{y(b=>b.has(_)?(b.delete(_),new Map(b)):b)},[]),children:d.jsx(Op.Provider,{scope:t,children:d.jsx(Vk,{scope:t,items:S,children:i})})})},Ux="NavigationMenuList",Bx=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Xt(Ux,n),s=d.jsx(X.ul,{"data-orientation":o.orientation,...r,ref:t});return d.jsx(X.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:d.jsx(Op.Slot,{scope:n,children:o.isRootMenu?d.jsx(Jx,{asChild:!0,children:s}):s})})});Bx.displayName=Ux;var Wx="NavigationMenuItem",[Wk,Hx]=Ip(Wx),Kx=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,s=ht(),i=r||s||"LEGACY_REACT_AUTO_VALUE",a=f.useRef(null),l=f.useRef(null),c=f.useRef(null),u=f.useRef(()=>{}),p=f.useRef(!1),h=f.useCallback((v="start")=>{if(a.current){u.current();const g=Ud(a.current);g.length&&Fp(v==="start"?g:g.reverse())}},[]),x=f.useCallback(()=>{if(a.current){const v=Ud(a.current);v.length&&(u.current=qk(v))}},[]);return d.jsx(Wk,{scope:n,value:i,triggerRef:l,contentRef:a,focusProxyRef:c,wasEscapeCloseRef:p,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:x,onContentFocusOutside:x,children:d.jsx(X.li,{...o,ref:t})})});Kx.displayName=Wx;var Vd="NavigationMenuTrigger",Zx=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,s=Xt(Vd,e.__scopeNavigationMenu),i=Hx(Vd,e.__scopeNavigationMenu),a=f.useRef(null),l=ae(a,i.triggerRef,t),c=tw(s.baseId,i.value),u=nw(s.baseId,i.value),p=f.useRef(!1),h=f.useRef(!1),x=i.value===s.value;return d.jsxs(d.Fragment,{children:[d.jsx(Op.ItemSlot,{scope:n,value:i.value,children:d.jsx(ew,{asChild:!0,children:d.jsx(X.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":$p(x),"aria-expanded":x,"aria-controls":u,...o,ref:l,onPointerEnter:F(e.onPointerEnter,()=>{h.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:F(e.onPointerMove,_l(()=>{r||h.current||i.wasEscapeCloseRef.current||p.current||(s.onTriggerEnter(i.value),p.current=!0)})),onPointerLeave:F(e.onPointerLeave,_l(()=>{r||(s.onTriggerLeave(),p.current=!1)})),onClick:F(e.onClick,()=>{s.onItemSelect(i.value),h.current=x}),onKeyDown:F(e.onKeyDown,v=>{const S={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];x&&v.key===S&&(i.onEntryKeyDown(),v.preventDefault())})})})}),x&&d.jsxs(d.Fragment,{children:[d.jsx(Dk,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:v=>{const g=i.contentRef.current,S=v.relatedTarget,y=S===a.current,m=g==null?void 0:g.contains(S);(y||!m)&&i.onFocusProxyEnter(y?"start":"end")}}),s.viewport&&d.jsx("span",{"aria-owns":u})]})]})});Zx.displayName=Vd;var Hk="NavigationMenuLink",ng="navigationMenu.linkSelect",Gx=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...s}=e;return d.jsx(ew,{asChild:!0,children:d.jsx(X.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...s,ref:t,onClick:F(e.onClick,i=>{const a=i.target,l=new CustomEvent(ng,{bubbles:!0,cancelable:!0});if(a.addEventListener(ng,c=>o==null?void 0:o(c),{once:!0}),bi(a,l),!l.defaultPrevented&&!i.metaKey){const c=new CustomEvent(Ga,{bubbles:!0,cancelable:!0});bi(a,c)}},{checkForDefaultPrevented:!1})})})});Gx.displayName=Hk;var Dp="NavigationMenuIndicator",Yx=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xt(Dp,e.__scopeNavigationMenu),s=!!o.value;return o.indicatorTrack?Mp.createPortal(d.jsx(zt,{present:n||s,children:d.jsx(Kk,{...r,ref:t})}),o.indicatorTrack):null});Yx.displayName=Dp;var Kk=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Xt(Dp,n),s=Fx(n),[i,a]=f.useState(null),[l,c]=f.useState(null),u=o.orientation==="horizontal",p=!!o.value;f.useEffect(()=>{var g;const v=(g=s().find(S=>S.value===o.value))==null?void 0:g.ref.current;v&&a(v)},[s,o.value]);const h=()=>{i&&c({size:u?i.offsetWidth:i.offsetHeight,offset:u?i.offsetLeft:i.offsetTop})};return Bd(i,h),Bd(o.indicatorTrack,h),l?d.jsx(X.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...u?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),ss="NavigationMenuContent",Xx=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xt(ss,e.__scopeNavigationMenu),s=Hx(ss,e.__scopeNavigationMenu),i=ae(s.contentRef,t),a=s.value===o.value,l={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...r};return o.viewport?d.jsx(Zk,{forceMount:n,...l,ref:i}):d.jsx(zt,{present:n||a,children:d.jsx(qx,{"data-state":$p(a),...l,ref:i,onPointerEnter:F(e.onPointerEnter,o.onContentEnter),onPointerLeave:F(e.onPointerLeave,_l(o.onContentLeave)),style:{pointerEvents:!a&&o.isRootMenu?"none":void 0,...l.style}})})});Xx.displayName=ss;var Zk=f.forwardRef((e,t)=>{const n=Xt(ss,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Oe(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Oe(()=>()=>o(e.value),[e.value,o]),null}),Ga="navigationMenu.rootContentDismiss",qx=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:s,wasEscapeCloseRef:i,onRootContentClose:a,onContentFocusOutside:l,...c}=e,u=Xt(ss,n),p=f.useRef(null),h=ae(p,t),x=tw(u.baseId,r),v=nw(u.baseId,r),g=Fx(n),S=f.useRef(null),{onItemDismiss:y}=u;f.useEffect(()=>{const w=p.current;if(u.isRootMenu&&w){const _=()=>{var b;y(),a(),w.contains(document.activeElement)&&((b=o.current)==null||b.focus())};return w.addEventListener(Ga,_),()=>w.removeEventListener(Ga,_)}},[u.isRootMenu,e.value,o,y,a]);const m=f.useMemo(()=>{const _=g().map(O=>O.value);u.dir==="rtl"&&_.reverse();const b=_.indexOf(u.value),N=_.indexOf(u.previousValue),E=r===u.value,k=N===_.indexOf(r);if(!E&&!k)return S.current;const A=(()=>{if(b!==N){if(E&&N!==-1)return b>N?"from-end":"from-start";if(k&&b!==-1)return b>N?"to-start":"to-end"}return null})();return S.current=A,A},[u.previousValue,u.value,u.dir,g,r]);return d.jsx(Jx,{asChild:!0,children:d.jsx(mc,{id:v,"aria-labelledby":x,"data-motion":m,"data-orientation":u.orientation,...c,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var _;const w=new Event(Ga,{bubbles:!0,cancelable:!0});(_=p.current)==null||_.dispatchEvent(w)},onFocusOutside:F(e.onFocusOutside,w=>{var b;l();const _=w.target;(b=u.rootNavigationMenu)!=null&&b.contains(_)&&w.preventDefault()}),onPointerDownOutside:F(e.onPointerDownOutside,w=>{var E;const _=w.target,b=g().some(k=>{var A;return(A=k.ref.current)==null?void 0:A.contains(_)}),N=u.isRootMenu&&((E=u.viewport)==null?void 0:E.contains(_));(b||N||!u.isRootMenu)&&w.preventDefault()}),onKeyDown:F(e.onKeyDown,w=>{var N;const _=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!_){const E=Ud(w.currentTarget),k=document.activeElement,A=E.findIndex(I=>I===k),q=w.shiftKey?E.slice(0,A).reverse():E.slice(A+1,E.length);Fp(q)?w.preventDefault():(N=s.current)==null||N.focus()}}),onEscapeKeyDown:F(e.onEscapeKeyDown,w=>{i.current=!0})})})}),Lp="NavigationMenuViewport",Qx=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=!!Xt(Lp,e.__scopeNavigationMenu).value;return d.jsx(zt,{present:n||s,children:d.jsx(Gk,{...r,ref:t})})});Qx.displayName=Lp;var Gk=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,s=Xt(Lp,n),i=ae(t,s.onViewportChange),a=Uk(ss,e.__scopeNavigationMenu),[l,c]=f.useState(null),[u,p]=f.useState(null),h=l?(l==null?void 0:l.width)+"px":void 0,x=l?(l==null?void 0:l.height)+"px":void 0,v=!!s.value,g=v?s.value:s.previousValue;return Bd(u,()=>{u&&c({width:u.offsetWidth,height:u.offsetHeight})}),d.jsx(X.div,{"data-state":$p(v),"data-orientation":s.orientation,...o,ref:i,style:{pointerEvents:!v&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":x,...o.style},onPointerEnter:F(e.onPointerEnter,s.onContentEnter),onPointerLeave:F(e.onPointerLeave,_l(s.onContentLeave)),children:Array.from(a.items).map(([y,{ref:m,forceMount:w,..._}])=>{const b=g===y;return d.jsx(zt,{present:w||b,children:d.jsx(qx,{..._,ref:Xi(m,N=>{b&&N&&p(N)})})},y)})})}),Yk="FocusGroup",Jx=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Xt(Yk,n);return d.jsx(zd.Provider,{scope:n,children:d.jsx(zd.Slot,{scope:n,children:d.jsx(X.div,{dir:o.dir,...r,ref:t})})})}),rg=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Xk="FocusGroupItem",ew=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fk(n),s=Xt(Xk,n);return d.jsx(zd.ItemSlot,{scope:n,children:d.jsx(X.button,{...r,ref:t,onKeyDown:F(e.onKeyDown,i=>{if(["Home","End",...rg].includes(i.key)){let l=o().map(p=>p.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),rg.includes(i.key)){const p=l.indexOf(i.currentTarget);l=l.slice(p+1)}setTimeout(()=>Fp(l)),i.preventDefault()}})})})});function Ud(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 Fp(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function qk(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Bd(e,t){const n=Ee(t);Oe(()=>{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])}function $p(e){return e?"open":"closed"}function tw(e,t){return`${e}-trigger-${t}`}function nw(e,t){return`${e}-content-${t}`}function _l(e){return t=>t.pointerType==="mouse"?e(t):void 0}var rw=$x,ow=Bx,Qk=Kx,sw=Zx,Jk=Gx,iw=Yx,aw=Xx,lw=Qx;function cw(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,sg=eR,gc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return sg(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(c=>{const u=n==null?void 0:n[c],p=s==null?void 0:s[c];if(u===null)return null;const h=og(u)||og(p);return o[c][h]}),a=n&&Object.entries(n).reduce((c,u)=>{let[p,h]=u;return h===void 0||(c[p]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:p,className:h,...x}=u;return Object.entries(x).every(v=>{let[g,S]=v;return Array.isArray(S)?S.includes({...s,...a}[g]):{...s,...a}[g]===S})?[...c,p,h]:c},[]);return sg(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** - * @license lucide-react v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const tR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uw=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** - * @license lucide-react v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var nR={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const rR=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>f.createElement("svg",{ref:l,...nR,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:uw("lucide",o),...a},[...i.map(([c,u])=>f.createElement(c,u)),...Array.isArray(s)?s:[s]]));/** - * @license lucide-react v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const gs=(e,t)=>{const n=f.forwardRef(({className:r,...o},s)=>f.createElement(rR,{ref:s,iconNode:t,className:uw(`lucide-${tR(e)}`,r),...o}));return n.displayName=`${e}`,n};/** - * @license lucide-react v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const zp=gs("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** - * @license lucide-react v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Vp=gs("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** - * @license lucide-react v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const oR=gs("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** - * @license lucide-react v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Up=gs("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** - * @license lucide-react v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const sR=gs("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** - * @license lucide-react v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const dw=gs("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function fw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const t=cR(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Bp);return a[0]===""&&a.length!==1&&a.shift(),pw(a,t)||lR(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},pw=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?pw(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Bp);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},ig=/^\[(.+)\]$/,lR=e=>{if(ig.test(e)){const t=ig.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},cR=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return dR(Object.entries(e.classGroups),n).forEach(([s,i])=>{Wd(i,r,s,t)}),r},Wd=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ag(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(uR(o)){Wd(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Wd(i,ag(t,s),n,r)})})},ag=(e,t)=>{let n=e;return t.split(Bp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},uR=e=>e.isThemeGetter,dR=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,fR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},hw="!",pR=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let c=0,u=0,p;for(let S=0;Su?p-u:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:v,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:i}):i},hR=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},mR=e=>({cache:fR(e.cacheSize),parseClassName:pR(e),...aR(e)}),gR=/\s+/,vR=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(gR);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:u,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:x}=n(c);let v=!!x,g=r(v?h.substring(0,x):h);if(!g){if(!v){a=c+(a.length>0?" "+a:a);continue}if(g=r(h),!g){a=c+(a.length>0?" "+a:a);continue}v=!1}const S=hR(u).join(":"),y=p?S+hw:S,m=y+g;if(s.includes(m))continue;s.push(m);const w=o(g,v);for(let _=0;_0?" "+a:a)}return a};function yR(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(u),e());return n=mR(c),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=vR(l,n);return o(l,u),u}return function(){return s(yR.apply(null,arguments))}}const Pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},gw=/^\[(?:([a-z-]+):)?(.+)\]$/i,wR=/^\d+\/\d+$/,SR=new Set(["px","full","screen"]),bR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_R=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,CR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ER=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,NR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=e=>Zo(e)||SR.has(e)||wR.test(e),tr=e=>vs(e,"length",OR),Zo=e=>!!e&&!Number.isNaN(Number(e)),_u=e=>vs(e,"number",Zo),js=e=>!!e&&Number.isInteger(Number(e)),kR=e=>e.endsWith("%")&&Zo(e.slice(0,-1)),ue=e=>gw.test(e),nr=e=>bR.test(e),RR=new Set(["length","size","percentage"]),TR=e=>vs(e,RR,vw),PR=e=>vs(e,"position",vw),AR=new Set(["image","url"]),MR=e=>vs(e,AR,DR),jR=e=>vs(e,"",IR),Os=()=>!0,vs=(e,t,n)=>{const r=gw.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},OR=e=>_R.test(e)&&!CR.test(e),vw=()=>!1,IR=e=>ER.test(e),DR=e=>NR.test(e),LR=()=>{const e=Pe("colors"),t=Pe("spacing"),n=Pe("blur"),r=Pe("brightness"),o=Pe("borderColor"),s=Pe("borderRadius"),i=Pe("borderSpacing"),a=Pe("borderWidth"),l=Pe("contrast"),c=Pe("grayscale"),u=Pe("hueRotate"),p=Pe("invert"),h=Pe("gap"),x=Pe("gradientColorStops"),v=Pe("gradientColorStopPositions"),g=Pe("inset"),S=Pe("margin"),y=Pe("opacity"),m=Pe("padding"),w=Pe("saturate"),_=Pe("scale"),b=Pe("sepia"),N=Pe("skew"),E=Pe("space"),k=Pe("translate"),A=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",ue,t],I=()=>[ue,t],B=()=>["",Tn,tr],Y=()=>["auto",Zo,ue],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",ue],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[Zo,ue];return{cacheSize:500,separator:":",theme:{colors:[Os],spacing:[Tn,tr],blur:["none","",nr,ue],brightness:te(),borderColor:[e],borderRadius:["none","","full",nr,ue],borderSpacing:I(),borderWidth:B(),contrast:te(),grayscale:j(),hueRotate:te(),invert:j(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[kR,tr],inset:q(),margin:q(),opacity:te(),padding:I(),saturate:te(),scale:te(),sepia:j(),skew:te(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",ue]}],container:["container"],columns:[{columns:[nr]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...re(),ue]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",js,ue]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ue]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",js,ue]}],"grid-cols":[{"grid-cols":[Os]}],"col-start-end":[{col:["auto",{span:["full",js,ue]},ue]}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":[Os]}],"row-start-end":[{row:["auto",{span:[js,ue]},ue]}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ue]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...M()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...M(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...M(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ue,t]}],"min-w":[{"min-w":[ue,t,"min","max","fit"]}],"max-w":[{"max-w":[ue,t,"none","full","min","max","fit","prose",{screen:[nr]},nr]}],h:[{h:[ue,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ue,t,"auto","min","max","fit"]}],"font-size":[{text:["base",nr,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_u]}],"font-family":[{font:[Os]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ue]}],"line-clamp":[{"line-clamp":["none",Zo,_u]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,ue]}],"list-image":[{"list-image":["none",ue]}],"list-style-type":[{list:["none","disc","decimal",ue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,tr]}],"underline-offset":[{"underline-offset":["auto",Tn,ue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),PR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",TR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},MR]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:Q()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[Tn,ue]}],"outline-w":[{outline:[Tn,tr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Tn,tr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nr,jR]}],"shadow-color":[{shadow:[Os]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",nr,ue]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[p]}],saturate:[{saturate:[w]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ue]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",ue]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",ue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[js,ue]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Tn,tr,_u]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},FR=xR(LR);function G(...e){return FR(iR(e))}const Hd=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(rw,{ref:r,className:G("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,d.jsx(yw,{})]}));Hd.displayName=rw.displayName;const Kd=f.forwardRef(({className:e,...t},n)=>d.jsx(ow,{ref:n,className:G("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));Kd.displayName=ow.displayName;const lg=Qk,$R=gc("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),Zd=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(sw,{ref:r,className:G($R(),"group",e),...n,children:[t," ",d.jsx(Vp,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Zd.displayName=sw.displayName;const zR=f.forwardRef(({className:e,...t},n)=>d.jsx(aw,{ref:n,className:G("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));zR.displayName=aw.displayName;const VR=Jk,yw=f.forwardRef(({className:e,...t},n)=>d.jsx("div",{className:G("absolute left-0 top-full flex justify-center"),children:d.jsx(lw,{className:G("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));yw.displayName=lw.displayName;const UR=f.forwardRef(({className:e,...t},n)=>d.jsx(iw,{ref:n,className:G("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:d.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));UR.displayName=iw.displayName;function BR(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),l=n.length;n=[...n,i];const c=p=>{var y;const{scope:h,children:x,...v}=p,g=((y=h==null?void 0:h[e])==null?void 0:y[l])||a,S=f.useMemo(()=>v,Object.values(v));return d.jsx(g.Provider,{value:S,children:x})};c.displayName=s+"Provider";function u(p,h){var g;const x=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,v=f.useContext(x);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[c,u]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,WR(o,...t)]}function WR(...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(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const p=l(s)[`__scope${c}`];return{...a,...p}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function HR(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),l=n.length;n=[...n,i];const c=p=>{var y;const{scope:h,children:x,...v}=p,g=((y=h==null?void 0:h[e])==null?void 0:y[l])||a,S=f.useMemo(()=>v,Object.values(v));return d.jsx(g.Provider,{value:S,children:x})};c.displayName=s+"Provider";function u(p,h){var g;const x=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,v=f.useContext(x);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[c,u]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,KR(o,...t)]}function KR(...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(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const p=l(s)[`__scope${c}`];return{...a,...p}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var ZR="DismissableLayer",Gd="dismissableLayer.update",GR="dismissableLayer.pointerDownOutside",YR="dismissableLayer.focusOutside",cg,xw=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ww=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=f.useContext(xw),[u,p]=f.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=f.useState({}),v=ae(t,E=>p(E)),g=Array.from(c.layers),[S]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(S),m=u?g.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,_=m>=y,b=QR(E=>{const k=E.target,A=[...c.branches].some(O=>O.contains(k));!_||A||(o==null||o(E),i==null||i(E),E.defaultPrevented||a==null||a())},h),N=JR(E=>{const k=E.target;[...c.branches].some(O=>O.contains(k))||(s==null||s(E),i==null||i(E),E.defaultPrevented||a==null||a())},h);return Ox(E=>{m===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(cg=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),ug(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=cg)}},[u,h,n,c]),f.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),ug())},[u,c]),f.useEffect(()=>{const E=()=>x({});return document.addEventListener(Gd,E),()=>document.removeEventListener(Gd,E)},[]),d.jsx(X.div,{...l,ref:v,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,N.onFocusCapture),onBlurCapture:F(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,b.onPointerDownCapture)})});ww.displayName=ZR;var XR="DismissableLayerBranch",qR=f.forwardRef((e,t)=>{const n=f.useContext(xw),r=f.useRef(null),o=ae(t,r);return f.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),d.jsx(X.div,{...e,ref:o})});qR.displayName=XR;function QR(e,t=globalThis==null?void 0:globalThis.document){const n=Ee(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Sw(GR,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function JR(e,t=globalThis==null?void 0:globalThis.document){const n=Ee(e),r=f.useRef(!1);return f.useEffect(()=>{const o=s=>{s.target&&!r.current&&Sw(YR,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ug(){const e=new CustomEvent(Gd);document.dispatchEvent(e)}function Sw(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?bi(o,s):o.dispatchEvent(s)}var Cu=0;function eT(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dg()),document.body.insertAdjacentElement("beforeend",e[1]??dg()),Cu++,()=>{Cu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Cu--}},[])}function dg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Eu="focusScope.autoFocusOnMount",Nu="focusScope.autoFocusOnUnmount",fg={bubbles:!1,cancelable:!0},tT="FocusScope",vc=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=f.useState(null),c=Ee(o),u=Ee(s),p=f.useRef(null),h=ae(t,g=>l(g)),x=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let g=function(w){if(x.paused||!a)return;const _=w.target;a.contains(_)?p.current=_:or(p.current,{select:!0})},S=function(w){if(x.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||or(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const b of w)b.removedNodes.length>0&&or(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",S);const m=new MutationObserver(y);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",S),m.disconnect()}}},[r,a,x.paused]),f.useEffect(()=>{if(a){hg.add(x);const g=document.activeElement;if(!a.contains(g)){const y=new CustomEvent(Eu,fg);a.addEventListener(Eu,c),a.dispatchEvent(y),y.defaultPrevented||(nT(aT(bw(a)),{select:!0}),document.activeElement===g&&or(a))}return()=>{a.removeEventListener(Eu,c),setTimeout(()=>{const y=new CustomEvent(Nu,fg);a.addEventListener(Nu,u),a.dispatchEvent(y),y.defaultPrevented||or(g??document.body,{select:!0}),a.removeEventListener(Nu,u),hg.remove(x)},0)}}},[a,c,u,x]);const v=f.useCallback(g=>{if(!n&&!r||x.paused)return;const S=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(S&&y){const m=g.currentTarget,[w,_]=rT(m);w&&_?!g.shiftKey&&y===_?(g.preventDefault(),n&&or(w,{select:!0})):g.shiftKey&&y===w&&(g.preventDefault(),n&&or(_,{select:!0})):y===m&&g.preventDefault()}},[n,r,x.paused]);return d.jsx(X.div,{tabIndex:-1,...i,ref:h,onKeyDown:v})});vc.displayName=tT;function nT(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(or(r,{select:t}),document.activeElement!==n)return}function rT(e){const t=bw(e),n=pg(t,e),r=pg(t.reverse(),e);return[n,r]}function bw(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 pg(e,t){for(const n of e)if(!oT(n,{upTo:t}))return n}function oT(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 sT(e){return e instanceof HTMLInputElement&&"select"in e}function or(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&sT(e)&&t&&e.select()}}var hg=iT();function iT(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=mg(e,t),e.unshift(t)},remove(t){var n;e=mg(e,t),(n=e[0])==null||n.resume()}}}function mg(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function aT(e){return e.filter(t=>t.tagName!=="A")}const lT=["top","right","bottom","left"],Er=Math.min,At=Math.max,Cl=Math.round,Ea=Math.floor,Nr=e=>({x:e,y:e}),cT={left:"right",right:"left",bottom:"top",top:"bottom"},uT={start:"end",end:"start"};function Yd(e,t,n){return At(e,Er(t,n))}function Hn(e,t){return typeof e=="function"?e(t):e}function Kn(e){return e.split("-")[0]}function ys(e){return e.split("-")[1]}function Wp(e){return e==="x"?"y":"x"}function Hp(e){return e==="y"?"height":"width"}function kr(e){return["top","bottom"].includes(Kn(e))?"y":"x"}function Kp(e){return Wp(kr(e))}function dT(e,t,n){n===void 0&&(n=!1);const r=ys(e),o=Kp(e),s=Hp(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=El(i)),[i,El(i)]}function fT(e){const t=El(e);return[Xd(e),t,Xd(t)]}function Xd(e){return e.replace(/start|end/g,t=>uT[t])}function pT(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function hT(e,t,n,r){const o=ys(e);let s=pT(Kn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Xd)))),s}function El(e){return e.replace(/left|right|bottom|top/g,t=>cT[t])}function mT(e){return{top:0,right:0,bottom:0,left:0,...e}}function _w(e){return typeof e!="number"?mT(e):{top:e,right:e,bottom:e,left:e}}function Nl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function gg(e,t,n){let{reference:r,floating:o}=e;const s=kr(t),i=Kp(t),a=Hp(i),l=Kn(t),c=s==="y",u=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let x;switch(l){case"top":x={x:u,y:r.y-o.height};break;case"bottom":x={x:u,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:p};break;case"left":x={x:r.x-o.width,y:p};break;default:x={x:r.x,y:r.y}}switch(ys(t)){case"start":x[i]-=h*(n&&c?-1:1);break;case"end":x[i]+=h*(n&&c?-1:1);break}return x}const gT=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:p}=gg(c,r,l),h=r,x={},v=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Hn(e,t)||{};if(c==null)return{};const p=_w(u),h={x:n,y:r},x=Kp(o),v=Hp(x),g=await i.getDimensions(c),S=x==="y",y=S?"top":"left",m=S?"bottom":"right",w=S?"clientHeight":"clientWidth",_=s.reference[v]+s.reference[x]-h[x]-s.floating[v],b=h[x]-s.reference[x],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let E=N?N[w]:0;(!E||!await(i.isElement==null?void 0:i.isElement(N)))&&(E=a.floating[w]||s.floating[v]);const k=_/2-b/2,A=E/2-g[v]/2-1,O=Er(p[y],A),q=Er(p[m],A),I=O,B=E-g[v]-q,Y=E/2-g[v]/2+k,re=Yd(I,Y,B),Q=!l.arrow&&ys(o)!=null&&Y!==re&&s.reference[v]/2-(YY<=0)){var q,I;const Y=(((q=s.flip)==null?void 0:q.index)||0)+1,re=E[Y];if(re)return{data:{index:Y,overflows:O},reset:{placement:re}};let Q=(I=O.filter(oe=>oe.overflows[0]<=0).sort((oe,M)=>oe.overflows[1]-M.overflows[1])[0])==null?void 0:I.placement;if(!Q)switch(x){case"bestFit":{var B;const oe=(B=O.filter(M=>{if(N){const j=kr(M.placement);return j===m||j==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(j=>j>0).reduce((j,U)=>j+U,0)]).sort((M,j)=>M[1]-j[1])[0])==null?void 0:B[0];oe&&(Q=oe);break}case"initialPlacement":Q=a;break}if(o!==Q)return{reset:{placement:Q}}}return{}}}};function vg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yg(e){return lT.some(t=>e[t]>=0)}const xT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Hn(e,t);switch(r){case"referenceHidden":{const s=await _i(t,{...o,elementContext:"reference"}),i=vg(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:yg(i)}}}case"escaped":{const s=await _i(t,{...o,altBoundary:!0}),i=vg(s,n.floating);return{data:{escapedOffsets:i,escaped:yg(i)}}}default:return{}}}}};async function wT(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Kn(n),a=ys(n),l=kr(n)==="y",c=["left","top"].includes(i)?-1:1,u=s&&l?-1:1,p=Hn(t,e);let{mainAxis:h,crossAxis:x,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof v=="number"&&(x=a==="end"?v*-1:v),l?{x:x*u,y:h*c}:{x:h*c,y:x*u}}const ST=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await wT(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},bT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:S=>{let{x:y,y:m}=S;return{x:y,y:m}}},...l}=Hn(e,t),c={x:n,y:r},u=await _i(t,l),p=kr(Kn(o)),h=Wp(p);let x=c[h],v=c[p];if(s){const S=h==="y"?"top":"left",y=h==="y"?"bottom":"right",m=x+u[S],w=x-u[y];x=Yd(m,x,w)}if(i){const S=p==="y"?"top":"left",y=p==="y"?"bottom":"right",m=v+u[S],w=v-u[y];v=Yd(m,v,w)}const g=a.fn({...t,[h]:x,[p]:v});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[p]:i}}}}}},_T=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Hn(e,t),u={x:n,y:r},p=kr(o),h=Wp(p);let x=u[h],v=u[p];const g=Hn(a,t),S=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=h==="y"?"height":"width",_=s.reference[h]-s.floating[w]+S.mainAxis,b=s.reference[h]+s.reference[w]-S.mainAxis;x<_?x=_:x>b&&(x=b)}if(c){var y,m;const w=h==="y"?"width":"height",_=["top","left"].includes(Kn(o)),b=s.reference[p]-s.floating[w]+(_&&((y=i.offset)==null?void 0:y[p])||0)+(_?0:S.crossAxis),N=s.reference[p]+s.reference[w]+(_?0:((m=i.offset)==null?void 0:m[p])||0)-(_?S.crossAxis:0);vN&&(v=N)}return{[h]:x,[p]:v}}}},CT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=Hn(e,t),u=await _i(t,c),p=Kn(o),h=ys(o),x=kr(o)==="y",{width:v,height:g}=s.floating;let S,y;p==="top"||p==="bottom"?(S=p,y=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,S=h==="end"?"top":"bottom");const m=g-u.top-u.bottom,w=v-u.left-u.right,_=Er(g-u[S],m),b=Er(v-u[y],w),N=!t.middlewareData.shift;let E=_,k=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=m),N&&!h){const O=At(u.left,0),q=At(u.right,0),I=At(u.top,0),B=At(u.bottom,0);x?k=v-2*(O!==0||q!==0?O+q:At(u.left,u.right)):E=g-2*(I!==0||B!==0?I+B:At(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:E});const A=await i.getDimensions(a.floating);return v!==A.width||g!==A.height?{reset:{rects:!0}}:{}}}};function yc(){return typeof window<"u"}function xs(e){return Cw(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(Cw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cw(e){return yc()?e instanceof Node||e instanceof Ot(e).Node:!1}function dn(e){return yc()?e instanceof Element||e instanceof Ot(e).Element:!1}function _n(e){return yc()?e instanceof HTMLElement||e instanceof Ot(e).HTMLElement:!1}function xg(e){return!yc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot}function qi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ET(e){return["table","td","th"].includes(xs(e))}function xc(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Zp(e){const t=Gp(),n=dn(e)?fn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function NT(e){let t=Rr(e);for(;_n(t)&&!is(t);){if(Zp(t))return t;if(xc(t))return null;t=Rr(t)}return null}function Gp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function is(e){return["html","body","#document"].includes(xs(e))}function fn(e){return Ot(e).getComputedStyle(e)}function wc(e){return dn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rr(e){if(xs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xg(e)&&e.host||kn(e);return xg(t)?t.host:t}function Ew(e){const t=Rr(e);return is(t)?e.ownerDocument?e.ownerDocument.body:e.body:_n(t)&&qi(t)?t:Ew(t)}function Ci(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ew(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ot(o);if(s){const a=qd(i);return t.concat(i,i.visualViewport||[],qi(o)?o:[],a&&n?Ci(a):[])}return t.concat(o,Ci(o,[],n))}function qd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nw(e){const t=fn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_n(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Cl(n)!==s||Cl(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Yp(e){return dn(e)?e:e.contextElement}function Go(e){const t=Yp(e);if(!_n(t))return Nr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Nw(t);let i=(s?Cl(n.width):n.width)/r,a=(s?Cl(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const kT=Nr(0);function kw(e){const t=Ot(e);return!Gp()||!t.visualViewport?kT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function RT(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ot(e)?!1:t}function to(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Yp(e);let i=Nr(1);t&&(r?dn(r)&&(i=Go(r)):i=Go(e));const a=RT(s,n,r)?kw(s):Nr(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,u=o.width/i.x,p=o.height/i.y;if(s){const h=Ot(s),x=r&&dn(r)?Ot(r):r;let v=h,g=qd(v);for(;g&&r&&x!==v;){const S=Go(g),y=g.getBoundingClientRect(),m=fn(g),w=y.left+(g.clientLeft+parseFloat(m.paddingLeft))*S.x,_=y.top+(g.clientTop+parseFloat(m.paddingTop))*S.y;l*=S.x,c*=S.y,u*=S.x,p*=S.y,l+=w,c+=_,v=Ot(g),g=qd(v)}}return Nl({width:u,height:p,x:l,y:c})}function TT(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=kn(r),a=t?xc(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Nr(1);const u=Nr(0),p=_n(r);if((p||!p&&!s)&&((xs(r)!=="body"||qi(i))&&(l=wc(r)),_n(r))){const h=to(r);c=Go(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function PT(e){return Array.from(e.getClientRects())}function Qd(e,t){const n=wc(e).scrollLeft;return t?t.left+n:to(kn(e)).left+n}function AT(e){const t=kn(e),n=wc(e),r=e.ownerDocument.body,o=At(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=At(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Qd(e);const a=-n.scrollTop;return fn(r).direction==="rtl"&&(i+=At(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function MT(e,t){const n=Ot(e),r=kn(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const c=Gp();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}function jT(e,t){const n=to(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=_n(e)?Go(e):Nr(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function wg(e,t,n){let r;if(t==="viewport")r=MT(e,n);else if(t==="document")r=AT(kn(e));else if(dn(t))r=jT(t,n);else{const o=kw(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Nl(r)}function Rw(e,t){const n=Rr(e);return n===t||!dn(n)||is(n)?!1:fn(n).position==="fixed"||Rw(n,t)}function OT(e,t){const n=t.get(e);if(n)return n;let r=Ci(e,[],!1).filter(a=>dn(a)&&xs(a)!=="body"),o=null;const s=fn(e).position==="fixed";let i=s?Rr(e):e;for(;dn(i)&&!is(i);){const a=fn(i),l=Zp(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||qi(i)&&!l&&Rw(e,i))?r=r.filter(u=>u!==i):o=a,i=Rr(i)}return t.set(e,r),r}function IT(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?xc(t)?[]:OT(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,u)=>{const p=wg(t,u,o);return c.top=At(p.top,c.top),c.right=Er(p.right,c.right),c.bottom=Er(p.bottom,c.bottom),c.left=At(p.left,c.left),c},wg(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function DT(e){const{width:t,height:n}=Nw(e);return{width:t,height:n}}function LT(e,t,n){const r=_n(t),o=kn(t),s=n==="fixed",i=to(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Nr(0);if(r||!r&&!s)if((xs(t)!=="body"||qi(o))&&(a=wc(t)),r){const x=to(t,!0,s,t);l.x=x.x+t.clientLeft,l.y=x.y+t.clientTop}else o&&(l.x=Qd(o));let c=0,u=0;if(o&&!r&&!s){const x=o.getBoundingClientRect();u=x.top+a.scrollTop,c=x.left+a.scrollLeft-Qd(o,x)}const p=i.left+a.scrollLeft-l.x-c,h=i.top+a.scrollTop-l.y-u;return{x:p,y:h,width:i.width,height:i.height}}function ku(e){return fn(e).position==="static"}function Sg(e,t){if(!_n(e)||fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function Tw(e,t){const n=Ot(e);if(xc(e))return n;if(!_n(e)){let o=Rr(e);for(;o&&!is(o);){if(dn(o)&&!ku(o))return o;o=Rr(o)}return n}let r=Sg(e,t);for(;r&&ET(r)&&ku(r);)r=Sg(r,t);return r&&is(r)&&ku(r)&&!Zp(r)?n:r||NT(e)||n}const FT=async function(e){const t=this.getOffsetParent||Tw,n=this.getDimensions,r=await n(e.floating);return{reference:LT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $T(e){return fn(e).direction==="rtl"}const zT={convertOffsetParentRelativeRectToViewportRelativeRect:TT,getDocumentElement:kn,getClippingRect:IT,getOffsetParent:Tw,getElementRects:FT,getClientRects:PT,getDimensions:DT,getScale:Go,isElement:dn,isRTL:$T};function VT(e,t){let n=null,r;const o=kn(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:p,height:h}=e.getBoundingClientRect();if(a||t(),!p||!h)return;const x=Ea(u),v=Ea(o.clientWidth-(c+p)),g=Ea(o.clientHeight-(u+h)),S=Ea(c),m={rootMargin:-x+"px "+-v+"px "+-g+"px "+-S+"px",threshold:At(0,Er(1,l))||1};let w=!0;function _(b){const N=b[0].intersectionRatio;if(N!==l){if(!w)return i();N?i(!1,N):r=setTimeout(()=>{i(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(_,{...m,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,m)}n.observe(e)}return i(!0),s}function UT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Yp(e),u=o||s?[...c?Ci(c):[],...Ci(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=c&&a?VT(c,n):null;let h=-1,x=null;i&&(x=new ResizeObserver(y=>{let[m]=y;m&&m.target===c&&x&&(x.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=x)==null||w.observe(t)})),n()}),c&&!l&&x.observe(c),x.observe(t));let v,g=l?to(e):null;l&&S();function S(){const y=to(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,v=requestAnimationFrame(S)}return n(),()=>{var y;u.forEach(m=>{o&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),p==null||p(),(y=x)==null||y.disconnect(),x=null,l&&cancelAnimationFrame(v)}}const BT=ST,WT=bT,HT=yT,KT=CT,ZT=xT,bg=vT,GT=_T,YT=(e,t,n)=>{const r=new Map,o={platform:zT,...n},s={...o.platform,_c:r};return gT(e,t,{...o,platform:s})};var Ya=typeof document<"u"?f.useLayoutEffect:f.useEffect;function kl(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(!kl(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!kl(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Pw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _g(e,t){const n=Pw(e);return Math.round(t*n)/n}function Ru(e){const t=f.useRef(e);return Ya(()=>{t.current=e}),t}function XT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,p]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,x]=f.useState(r);kl(h,r)||x(r);const[v,g]=f.useState(null),[S,y]=f.useState(null),m=f.useCallback(M=>{M!==N.current&&(N.current=M,g(M))},[]),w=f.useCallback(M=>{M!==E.current&&(E.current=M,y(M))},[]),_=s||v,b=i||S,N=f.useRef(null),E=f.useRef(null),k=f.useRef(u),A=l!=null,O=Ru(l),q=Ru(o),I=Ru(c),B=f.useCallback(()=>{if(!N.current||!E.current)return;const M={placement:t,strategy:n,middleware:h};q.current&&(M.platform=q.current),YT(N.current,E.current,M).then(j=>{const U={...j,isPositioned:I.current!==!1};Y.current&&!kl(k.current,U)&&(k.current=U,co.flushSync(()=>{p(U)}))})},[h,t,n,q,I]);Ya(()=>{c===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,p(M=>({...M,isPositioned:!1})))},[c]);const Y=f.useRef(!1);Ya(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Ya(()=>{if(_&&(N.current=_),b&&(E.current=b),_&&b){if(O.current)return O.current(_,b,B);B()}},[_,b,B,O,A]);const re=f.useMemo(()=>({reference:N,floating:E,setReference:m,setFloating:w}),[m,w]),Q=f.useMemo(()=>({reference:_,floating:b}),[_,b]),oe=f.useMemo(()=>{const M={position:n,left:0,top:0};if(!Q.floating)return M;const j=_g(Q.floating,u.x),U=_g(Q.floating,u.y);return a?{...M,transform:"translate("+j+"px, "+U+"px)",...Pw(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:U}},[n,a,Q.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:B,refs:re,elements:Q,floatingStyles:oe}),[u,B,re,Q,oe])}const qT=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?bg({element:r.current,padding:o}).fn(n):{}:r?bg({element:r,padding:o}).fn(n):{}}}},QT=(e,t)=>({...BT(e),options:[e,t]}),JT=(e,t)=>({...WT(e),options:[e,t]}),eP=(e,t)=>({...GT(e),options:[e,t]}),tP=(e,t)=>({...HT(e),options:[e,t]}),nP=(e,t)=>({...KT(e),options:[e,t]}),rP=(e,t)=>({...ZT(e),options:[e,t]}),oP=(e,t)=>({...qT(e),options:[e,t]});var sP="Arrow",Aw=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return d.jsx(X.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Aw.displayName=sP;var iP=Aw;function aP(e){const[t,n]=f.useState(void 0);return Oe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Xp="Popper",[Mw,Sc]=Nn(Xp),[lP,jw]=Mw(Xp),Ow=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return d.jsx(lP,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ow.displayName=Xp;var Iw="PopperAnchor",Dw=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=jw(Iw,n),i=f.useRef(null),a=ae(t,i);return f.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:d.jsx(X.div,{...o,ref:a})});Dw.displayName=Iw;var qp="PopperContent",[cP,uP]=Mw(qp),Lw=f.forwardRef((e,t)=>{var J,ve,Ce,ye,xe,we;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:x="optimized",onPlaced:v,...g}=e,S=jw(qp,n),[y,m]=f.useState(null),w=ae(t,rt=>m(rt)),[_,b]=f.useState(null),N=aP(_),E=(N==null?void 0:N.width)??0,k=(N==null?void 0:N.height)??0,A=r+(s!=="center"?"-"+s:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},q=Array.isArray(c)?c:[c],I=q.length>0,B={padding:O,boundary:q.filter(fP),altBoundary:I},{refs:Y,floatingStyles:re,placement:Q,isPositioned:oe,middlewareData:M}=XT({strategy:"fixed",placement:A,whileElementsMounted:(...rt)=>UT(...rt,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[QT({mainAxis:o+k,alignmentAxis:i}),l&&JT({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?eP():void 0,...B}),l&&tP({...B}),nP({...B,apply:({elements:rt,rects:Tt,availableWidth:go,availableHeight:vo})=>{const{width:yo,height:C}=Tt.reference,R=rt.floating.style;R.setProperty("--radix-popper-available-width",`${go}px`),R.setProperty("--radix-popper-available-height",`${vo}px`),R.setProperty("--radix-popper-anchor-width",`${yo}px`),R.setProperty("--radix-popper-anchor-height",`${C}px`)}}),_&&oP({element:_,padding:a}),pP({arrowWidth:E,arrowHeight:k}),h&&rP({strategy:"referenceHidden",...B})]}),[j,U]=zw(Q),te=Ee(v);Oe(()=>{oe&&(te==null||te())},[oe,te]);const pe=(J=M.arrow)==null?void 0:J.x,nt=(ve=M.arrow)==null?void 0:ve.y,Ie=((Ce=M.arrow)==null?void 0:Ce.centerOffset)!==0,[ut,Te]=f.useState();return Oe(()=>{y&&Te(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:oe?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ut,"--radix-popper-transform-origin":[(ye=M.transformOrigin)==null?void 0:ye.x,(xe=M.transformOrigin)==null?void 0:xe.y].join(" "),...((we=M.hide)==null?void 0:we.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(cP,{scope:n,placedSide:j,onArrowChange:b,arrowX:pe,arrowY:nt,shouldHideArrow:Ie,children:d.jsx(X.div,{"data-side":j,"data-align":U,...g,ref:w,style:{...g.style,animation:oe?void 0:"none"}})})})});Lw.displayName=qp;var Fw="PopperArrow",dP={top:"bottom",right:"left",bottom:"top",left:"right"},$w=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=uP(Fw,r),i=dP[s.placedSide];return d.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:d.jsx(iP,{...o,ref:n,style:{...o.style,display:"block"}})})});$w.displayName=Fw;function fP(e){return e!==null}var pP=e=>({name:"transformOrigin",options:e,fn(t){var S,y,m;const{placement:n,rects:r,middlewareData:o}=t,i=((S=o.arrow)==null?void 0:S.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=zw(n),p={start:"0%",center:"50%",end:"100%"}[u],h=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,x=(((m=o.arrow)==null?void 0:m.y)??0)+l/2;let v="",g="";return c==="bottom"?(v=i?p:`${h}px`,g=`${-l}px`):c==="top"?(v=i?p:`${h}px`,g=`${r.floating.height+l}px`):c==="right"?(v=`${-l}px`,g=i?p:`${x}px`):c==="left"&&(v=`${r.floating.width+l}px`,g=i?p:`${x}px`),{data:{x:v,y:g}}}});function zw(e){const[t,n="center"]=e.split("-");return[t,n]}var Vw=Ow,Uw=Dw,Bw=Lw,Ww=$w,hP="Portal",Hw=f.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=f.useState(!1);Oe(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Mp.createPortal(d.jsx(X.div,{...r,ref:t}),i):null});Hw.displayName=hP;function mP(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var Qi=e=>{const{present:t,children:n}=e,r=gP(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),s=ae(r.ref,vP(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:s}):null};Qi.displayName="Presence";function gP(e){const[t,n]=f.useState(),r=f.useRef({}),o=f.useRef(e),s=f.useRef("none"),i=e?"mounted":"unmounted",[a,l]=mP(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=Na(r.current);s.current=a==="mounted"?c:"none"},[a]),Oe(()=>{const c=r.current,u=o.current;if(u!==e){const h=s.current,x=Na(c);e?l("MOUNT"):x==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Oe(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,p=x=>{const g=Na(r.current).includes(x.animationName);if(x.target===t&&g&&(l("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},h=x=>{x.target===t&&(s.current=Na(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Na(e){return(e==null?void 0:e.animationName)||"none"}function vP(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tu="rovingFocusGroup.onEntryFocus",yP={bubbles:!1,cancelable:!0},bc="RovingFocusGroup",[Jd,Kw,xP]=hs(bc),[wP,ws]=Nn(bc,[xP]),[SP,bP]=wP(bc),Zw=f.forwardRef((e,t)=>d.jsx(Jd.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Jd.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(_P,{...e,ref:t})})}));Zw.displayName=bc;var _P=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...p}=e,h=f.useRef(null),x=ae(t,h),v=uo(s),[g=null,S]=Wn({prop:i,defaultProp:a,onChange:l}),[y,m]=f.useState(!1),w=Ee(c),_=Kw(n),b=f.useRef(!1),[N,E]=f.useState(0);return f.useEffect(()=>{const k=h.current;if(k)return k.addEventListener(Tu,w),()=>k.removeEventListener(Tu,w)},[w]),d.jsx(SP,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:g,onItemFocus:f.useCallback(k=>S(k),[S]),onItemShiftTab:f.useCallback(()=>m(!0),[]),onFocusableItemAdd:f.useCallback(()=>E(k=>k+1),[]),onFocusableItemRemove:f.useCallback(()=>E(k=>k-1),[]),children:d.jsx(X.div,{tabIndex:y||N===0?-1:0,"data-orientation":r,...p,ref:x,style:{outline:"none",...e.style},onMouseDown:F(e.onMouseDown,()=>{b.current=!0}),onFocus:F(e.onFocus,k=>{const A=!b.current;if(k.target===k.currentTarget&&A&&!y){const O=new CustomEvent(Tu,yP);if(k.currentTarget.dispatchEvent(O),!O.defaultPrevented){const q=_().filter(Q=>Q.focusable),I=q.find(Q=>Q.active),B=q.find(Q=>Q.id===g),re=[I,B,...q].filter(Boolean).map(Q=>Q.ref.current);Xw(re,u)}}b.current=!1}),onBlur:F(e.onBlur,()=>m(!1))})})}),Gw="RovingFocusGroupItem",Yw=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,...i}=e,a=ht(),l=s||a,c=bP(Gw,n),u=c.currentTabStopId===l,p=Kw(n),{onFocusableItemAdd:h,onFocusableItemRemove:x}=c;return f.useEffect(()=>{if(r)return h(),()=>x()},[r,h,x]),d.jsx(Jd.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:d.jsx(X.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:F(e.onMouseDown,v=>{r?c.onItemFocus(l):v.preventDefault()}),onFocus:F(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:F(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){c.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const g=NP(v,c.orientation,c.dir);if(g!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let y=p().filter(m=>m.focusable).map(m=>m.ref.current);if(g==="last")y.reverse();else if(g==="prev"||g==="next"){g==="prev"&&y.reverse();const m=y.indexOf(v.currentTarget);y=c.loop?kP(y,m+1):y.slice(m+1)}setTimeout(()=>Xw(y))}})})})});Yw.displayName=Gw;var CP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function EP(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function NP(e,t,n){const r=EP(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return CP[r]}function Xw(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function kP(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Qp=Zw,Jp=Yw,RP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},wo=new WeakMap,ka=new WeakMap,Ra={},Pu=0,qw=function(e){return e&&(e.host||qw(e.parentNode))},TP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=qw(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})},PP=function(e,t,n,r){var o=TP(t,Array.isArray(e)?e:[e]);Ra[n]||(Ra[n]=new WeakMap);var s=Ra[n],i=[],a=new Set,l=new Set(o),c=function(p){!p||a.has(p)||(a.add(p),c(p.parentNode))};o.forEach(c);var u=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(h){if(a.has(h))u(h);else try{var x=h.getAttribute(r),v=x!==null&&x!=="false",g=(wo.get(h)||0)+1,S=(s.get(h)||0)+1;wo.set(h,g),s.set(h,S),i.push(h),g===1&&v&&ka.set(h,!0),S===1&&h.setAttribute(n,"true"),v||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return u(t),a.clear(),Pu++,function(){i.forEach(function(p){var h=wo.get(p)-1,x=s.get(p)-1;wo.set(p,h),s.set(p,x),h||(ka.has(p)||p.removeAttribute(r),ka.delete(p)),x||p.removeAttribute(n)}),Pu--,Pu||(wo=new WeakMap,wo=new WeakMap,ka=new WeakMap,Ra={})}},eh=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=RP(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),PP(r,o,n,"aria-hidden")):function(){return null}},at=function(){return at=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return BP;var t=WP(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])}},KP=nh(),Yo="data-scroll-locked",ZP=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(AP,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(a,"px ").concat(r,`; - } - body[`).concat(Yo,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(s,`px; - padding-right: `).concat(i,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(ti,` { - right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(ni,` { - margin-right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(ti," .").concat(ti,` { - right: 0 `).concat(r,`; - } - - .`).concat(ni," .").concat(ni,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(Yo,`] { - `).concat(MP,": ").concat(a,`px; - } -`)},Eg=function(){var e=parseInt(document.body.getAttribute(Yo)||"0",10);return isFinite(e)?e:0},GP=function(){f.useEffect(function(){return document.body.setAttribute(Yo,(Eg()+1).toString()),function(){var e=Eg()-1;e<=0?document.body.removeAttribute(Yo):document.body.setAttribute(Yo,e.toString())}},[])},o0=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;GP();var s=f.useMemo(function(){return HP(o)},[o]);return f.createElement(KP,{styles:ZP(s,!t,o,n?"":"!important")})},ef=!1;if(typeof window<"u")try{var Ta=Object.defineProperty({},"passive",{get:function(){return ef=!0,!0}});window.addEventListener("test",Ta,Ta),window.removeEventListener("test",Ta,Ta)}catch{ef=!1}var So=ef?{passive:!1}:!1,YP=function(e){return e.tagName==="TEXTAREA"},s0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!YP(e)&&n[t]==="visible")},XP=function(e){return s0(e,"overflowY")},qP=function(e){return s0(e,"overflowX")},Ng=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=i0(e,r);if(o){var s=a0(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},QP=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},JP=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},i0=function(e,t){return e==="v"?XP(t):qP(t)},a0=function(e,t){return e==="v"?QP(t):JP(t)},eA=function(e,t){return e==="h"&&t==="rtl"?-1:1},tA=function(e,t,n,r,o){var s=eA(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),c=!1,u=i>0,p=0,h=0;do{var x=a0(e,a),v=x[0],g=x[1],S=x[2],y=g-S-s*v;(v||y)&&i0(e,a)&&(p+=y,h+=v),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(Math.abs(p)<1||!o)||!u&&(Math.abs(h)<1||!o))&&(c=!0),c},Pa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},kg=function(e){return[e.deltaX,e.deltaY]},Rg=function(e){return e&&"current"in e?e.current:e},nA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rA=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},oA=0,bo=[];function sA(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(oA++)[0],s=f.useState(nh)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Qw([e.lockRef.current],(e.shards||[]).map(Rg),!0).filter(Boolean);return g.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(g,S){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var y=Pa(g),m=n.current,w="deltaX"in g?g.deltaX:m[0]-y[0],_="deltaY"in g?g.deltaY:m[1]-y[1],b,N=g.target,E=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in g&&E==="h"&&N.type==="range")return!1;var k=Ng(E,N);if(!k)return!0;if(k?b=E:(b=E==="v"?"h":"v",k=Ng(E,N)),!k)return!1;if(!r.current&&"changedTouches"in g&&(w||_)&&(r.current=b),!b)return!0;var A=r.current||b;return tA(A,S,g,A==="h"?w:_,!0)},[]),l=f.useCallback(function(g){var S=g;if(!(!bo.length||bo[bo.length-1]!==s)){var y="deltaY"in S?kg(S):Pa(S),m=t.current.filter(function(b){return b.name===S.type&&(b.target===S.target||S.target===b.shadowParent)&&nA(b.delta,y)})[0];if(m&&m.should){S.cancelable&&S.preventDefault();return}if(!m){var w=(i.current.shards||[]).map(Rg).filter(Boolean).filter(function(b){return b.contains(S.target)}),_=w.length>0?a(S,w[0]):!i.current.noIsolation;_&&S.cancelable&&S.preventDefault()}}},[]),c=f.useCallback(function(g,S,y,m){var w={name:g,delta:S,target:y,should:m,shadowParent:iA(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=f.useCallback(function(g){n.current=Pa(g),r.current=void 0},[]),p=f.useCallback(function(g){c(g.type,kg(g),g.target,a(g,e.lockRef.current))},[]),h=f.useCallback(function(g){c(g.type,Pa(g),g.target,a(g,e.lockRef.current))},[]);f.useEffect(function(){return bo.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",l,So),document.addEventListener("touchmove",l,So),document.addEventListener("touchstart",u,So),function(){bo=bo.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,So),document.removeEventListener("touchmove",l,So),document.removeEventListener("touchstart",u,So)}},[]);var x=e.removeScrollBar,v=e.inert;return f.createElement(f.Fragment,null,v?f.createElement(s,{styles:rA(o)}):null,x?f.createElement(o0,{gapMode:e.gapMode}):null)}function iA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const aA=n0(r0,sA);var l0=f.forwardRef(function(e,t){return f.createElement(_c,at({},e,{ref:t,sideCar:aA}))});l0.classNames=_c.classNames;var tf=["Enter"," "],lA=["ArrowDown","PageUp","Home"],c0=["ArrowUp","PageDown","End"],cA=[...lA,...c0],uA={ltr:[...tf,"ArrowRight"],rtl:[...tf,"ArrowLeft"]},dA={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ji="Menu",[Ei,fA,pA]=hs(Ji),[fo,rh]=HR(Ji,[pA,Sc,ws]),Cc=Sc(),u0=ws(),[hA,po]=fo(Ji),[mA,ea]=fo(Ji),d0=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,a=Cc(t),[l,c]=f.useState(null),u=f.useRef(!1),p=Ee(s),h=uo(o);return f.useEffect(()=>{const x=()=>{u.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>u.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),d.jsx(Vw,{...a,children:d.jsx(hA,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:c,children:d.jsx(mA,{scope:t,onClose:f.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:u,dir:h,modal:i,children:r})})})};d0.displayName=Ji;var gA="MenuAnchor",oh=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Cc(n);return d.jsx(Uw,{...o,...r,ref:t})});oh.displayName=gA;var sh="MenuPortal",[vA,f0]=fo(sh,{forceMount:void 0}),p0=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=po(sh,t);return d.jsx(vA,{scope:t,forceMount:n,children:d.jsx(Qi,{present:n||s.open,children:d.jsx(Hw,{asChild:!0,container:o,children:r})})})};p0.displayName=sh;var Kt="MenuContent",[yA,ih]=fo(Kt),h0=f.forwardRef((e,t)=>{const n=f0(Kt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=po(Kt,e.__scopeMenu),i=ea(Kt,e.__scopeMenu);return d.jsx(Ei.Provider,{scope:e.__scopeMenu,children:d.jsx(Qi,{present:r||s.open,children:d.jsx(Ei.Slot,{scope:e.__scopeMenu,children:i.modal?d.jsx(xA,{...o,ref:t}):d.jsx(wA,{...o,ref:t})})})})}),xA=f.forwardRef((e,t)=>{const n=po(Kt,e.__scopeMenu),r=f.useRef(null),o=ae(t,r);return f.useEffect(()=>{const s=r.current;if(s)return eh(s)},[]),d.jsx(ah,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:F(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),wA=f.forwardRef((e,t)=>{const n=po(Kt,e.__scopeMenu);return d.jsx(ah,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ah=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:p,onInteractOutside:h,onDismiss:x,disableOutsideScroll:v,...g}=e,S=po(Kt,n),y=ea(Kt,n),m=Cc(n),w=u0(n),_=fA(n),[b,N]=f.useState(null),E=f.useRef(null),k=ae(t,E,S.onContentChange),A=f.useRef(0),O=f.useRef(""),q=f.useRef(0),I=f.useRef(null),B=f.useRef("right"),Y=f.useRef(0),re=v?l0:f.Fragment,Q=v?{as:Bn,allowPinchZoom:!0}:void 0,oe=j=>{var J,ve;const U=O.current+j,te=_().filter(Ce=>!Ce.disabled),pe=document.activeElement,nt=(J=te.find(Ce=>Ce.ref.current===pe))==null?void 0:J.textValue,Ie=te.map(Ce=>Ce.textValue),ut=MA(Ie,U,nt),Te=(ve=te.find(Ce=>Ce.textValue===ut))==null?void 0:ve.ref.current;(function Ce(ye){O.current=ye,window.clearTimeout(A.current),ye!==""&&(A.current=window.setTimeout(()=>Ce(""),1e3))})(U),Te&&setTimeout(()=>Te.focus())};f.useEffect(()=>()=>window.clearTimeout(A.current),[]),eT();const M=f.useCallback(j=>{var te,pe;return B.current===((te=I.current)==null?void 0:te.side)&&OA(j,(pe=I.current)==null?void 0:pe.area)},[]);return d.jsx(yA,{scope:n,searchRef:O,onItemEnter:f.useCallback(j=>{M(j)&&j.preventDefault()},[M]),onItemLeave:f.useCallback(j=>{var U;M(j)||((U=E.current)==null||U.focus(),N(null))},[M]),onTriggerLeave:f.useCallback(j=>{M(j)&&j.preventDefault()},[M]),pointerGraceTimerRef:q,onPointerGraceIntentChange:f.useCallback(j=>{I.current=j},[]),children:d.jsx(re,{...Q,children:d.jsx(vc,{asChild:!0,trapped:o,onMountAutoFocus:F(s,j=>{var U;j.preventDefault(),(U=E.current)==null||U.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:d.jsx(ww,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:p,onInteractOutside:h,onDismiss:x,children:d.jsx(Qp,{asChild:!0,...w,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:b,onCurrentTabStopIdChange:N,onEntryFocus:F(l,j=>{y.isUsingKeyboardRef.current||j.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(Bw,{role:"menu","aria-orientation":"vertical","data-state":P0(S.open),"data-radix-menu-content":"",dir:y.dir,...m,...g,ref:k,style:{outline:"none",...g.style},onKeyDown:F(g.onKeyDown,j=>{const te=j.target.closest("[data-radix-menu-content]")===j.currentTarget,pe=j.ctrlKey||j.altKey||j.metaKey,nt=j.key.length===1;te&&(j.key==="Tab"&&j.preventDefault(),!pe&&nt&&oe(j.key));const Ie=E.current;if(j.target!==Ie||!cA.includes(j.key))return;j.preventDefault();const Te=_().filter(J=>!J.disabled).map(J=>J.ref.current);c0.includes(j.key)&&Te.reverse(),PA(Te)}),onBlur:F(e.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(A.current),O.current="")}),onPointerMove:F(e.onPointerMove,Ni(j=>{const U=j.target,te=Y.current!==j.clientX;if(j.currentTarget.contains(U)&&te){const pe=j.clientX>Y.current?"right":"left";B.current=pe,Y.current=j.clientX}}))})})})})})})});h0.displayName=Kt;var SA="MenuGroup",lh=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(X.div,{role:"group",...r,ref:t})});lh.displayName=SA;var bA="MenuLabel",m0=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(X.div,{...r,ref:t})});m0.displayName=bA;var Rl="MenuItem",Tg="menu.itemSelect",Ec=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=f.useRef(null),i=ea(Rl,e.__scopeMenu),a=ih(Rl,e.__scopeMenu),l=ae(t,s),c=f.useRef(!1),u=()=>{const p=s.current;if(!n&&p){const h=new CustomEvent(Tg,{bubbles:!0,cancelable:!0});p.addEventListener(Tg,x=>r==null?void 0:r(x),{once:!0}),bi(p,h),h.defaultPrevented?c.current=!1:i.onClose()}};return d.jsx(g0,{...o,ref:l,disabled:n,onClick:F(e.onClick,u),onPointerDown:p=>{var h;(h=e.onPointerDown)==null||h.call(e,p),c.current=!0},onPointerUp:F(e.onPointerUp,p=>{var h;c.current||(h=p.currentTarget)==null||h.click()}),onKeyDown:F(e.onKeyDown,p=>{const h=a.searchRef.current!=="";n||h&&p.key===" "||tf.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Ec.displayName=Rl;var g0=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=ih(Rl,n),a=u0(n),l=f.useRef(null),c=ae(t,l),[u,p]=f.useState(!1),[h,x]=f.useState("");return f.useEffect(()=>{const v=l.current;v&&x((v.textContent??"").trim())},[s.children]),d.jsx(Ei.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:d.jsx(Jp,{asChild:!0,...a,focusable:!r,children:d.jsx(X.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:c,onPointerMove:F(e.onPointerMove,Ni(v=>{r?i.onItemLeave(v):(i.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:F(e.onPointerLeave,Ni(v=>i.onItemLeave(v))),onFocus:F(e.onFocus,()=>p(!0)),onBlur:F(e.onBlur,()=>p(!1))})})})}),_A="MenuCheckboxItem",v0=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return d.jsx(b0,{scope:e.__scopeMenu,checked:n,children:d.jsx(Ec,{role:"menuitemcheckbox","aria-checked":Tl(n)?"mixed":n,...o,ref:t,"data-state":uh(n),onSelect:F(o.onSelect,()=>r==null?void 0:r(Tl(n)?!0:!n),{checkForDefaultPrevented:!1})})})});v0.displayName=_A;var y0="MenuRadioGroup",[CA,EA]=fo(y0,{value:void 0,onValueChange:()=>{}}),x0=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Ee(r);return d.jsx(CA,{scope:e.__scopeMenu,value:n,onValueChange:s,children:d.jsx(lh,{...o,ref:t})})});x0.displayName=y0;var w0="MenuRadioItem",S0=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=EA(w0,e.__scopeMenu),s=n===o.value;return d.jsx(b0,{scope:e.__scopeMenu,checked:s,children:d.jsx(Ec,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":uh(s),onSelect:F(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});S0.displayName=w0;var ch="MenuItemIndicator",[b0,NA]=fo(ch,{checked:!1}),_0=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=NA(ch,n);return d.jsx(Qi,{present:r||Tl(s.checked)||s.checked===!0,children:d.jsx(X.span,{...o,ref:t,"data-state":uh(s.checked)})})});_0.displayName=ch;var kA="MenuSeparator",C0=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(X.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});C0.displayName=kA;var RA="MenuArrow",E0=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Cc(n);return d.jsx(Ww,{...o,...r,ref:t})});E0.displayName=RA;var TA="MenuSub",[aF,N0]=fo(TA),Vs="MenuSubTrigger",k0=f.forwardRef((e,t)=>{const n=po(Vs,e.__scopeMenu),r=ea(Vs,e.__scopeMenu),o=N0(Vs,e.__scopeMenu),s=ih(Vs,e.__scopeMenu),i=f.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=s,c={__scopeMenu:e.__scopeMenu},u=f.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return f.useEffect(()=>u,[u]),f.useEffect(()=>{const p=a.current;return()=>{window.clearTimeout(p),l(null)}},[a,l]),d.jsx(oh,{asChild:!0,...c,children:d.jsx(g0,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":P0(n.open),...e,ref:Xi(t,o.onTriggerChange),onClick:p=>{var h;(h=e.onClick)==null||h.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:F(e.onPointerMove,Ni(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:F(e.onPointerLeave,Ni(p=>{var x,v;u();const h=(x=n.content)==null?void 0:x.getBoundingClientRect();if(h){const g=(v=n.content)==null?void 0:v.dataset.side,S=g==="right",y=S?-5:5,m=h[S?"left":"right"],w=h[S?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x:m,y:h.top},{x:w,y:h.top},{x:w,y:h.bottom},{x:m,y:h.bottom}],side:g}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:F(e.onKeyDown,p=>{var x;const h=s.searchRef.current!=="";e.disabled||h&&p.key===" "||uA[r.dir].includes(p.key)&&(n.onOpenChange(!0),(x=n.content)==null||x.focus(),p.preventDefault())})})})});k0.displayName=Vs;var R0="MenuSubContent",T0=f.forwardRef((e,t)=>{const n=f0(Kt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=po(Kt,e.__scopeMenu),i=ea(Kt,e.__scopeMenu),a=N0(R0,e.__scopeMenu),l=f.useRef(null),c=ae(t,l);return d.jsx(Ei.Provider,{scope:e.__scopeMenu,children:d.jsx(Qi,{present:r||s.open,children:d.jsx(Ei.Slot,{scope:e.__scopeMenu,children:d.jsx(ah,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var p;i.isUsingKeyboardRef.current&&((p=l.current)==null||p.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:F(e.onFocusOutside,u=>{u.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:F(e.onEscapeKeyDown,u=>{i.onClose(),u.preventDefault()}),onKeyDown:F(e.onKeyDown,u=>{var x;const p=u.currentTarget.contains(u.target),h=dA[i.dir].includes(u.key);p&&h&&(s.onOpenChange(!1),(x=a.trigger)==null||x.focus(),u.preventDefault())})})})})})});T0.displayName=R0;function P0(e){return e?"open":"closed"}function Tl(e){return e==="indeterminate"}function uh(e){return Tl(e)?"indeterminate":e?"checked":"unchecked"}function PA(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function AA(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function MA(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=AA(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function jA(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;sr!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}function OA(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return jA(n,t)}function Ni(e){return t=>t.pointerType==="mouse"?e(t):void 0}var A0=d0,M0=oh,j0=p0,O0=h0,I0=lh,D0=m0,L0=Ec,F0=v0,$0=x0,z0=S0,V0=_0,U0=C0,B0=E0,W0=k0,H0=T0,dh="DropdownMenu",[IA,lF]=BR(dh,[rh]),yt=rh(),[DA,K0]=IA(dh),Z0=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,l=yt(t),c=f.useRef(null),[u=!1,p]=Wn({prop:o,defaultProp:s,onChange:i});return d.jsx(DA,{scope:t,triggerId:ht(),triggerRef:c,contentId:ht(),open:u,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(h=>!h),[p]),modal:a,children:d.jsx(A0,{...l,open:u,onOpenChange:p,dir:r,modal:a,children:n})})};Z0.displayName=dh;var G0="DropdownMenuTrigger",Y0=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=K0(G0,n),i=yt(n);return d.jsx(M0,{asChild:!0,...i,children:d.jsx(X.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Xi(t,s.triggerRef),onPointerDown:F(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:F(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Y0.displayName=G0;var LA="DropdownMenuPortal",X0=e=>{const{__scopeDropdownMenu:t,...n}=e,r=yt(t);return d.jsx(j0,{...r,...n})};X0.displayName=LA;var q0="DropdownMenuContent",Q0=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K0(q0,n),s=yt(n),i=f.useRef(!1);return d.jsx(O0,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:F(e.onCloseAutoFocus,a=>{var l;i.current||(l=o.triggerRef.current)==null||l.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:F(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(i.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)"}})});Q0.displayName=q0;var FA="DropdownMenuGroup",$A=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return d.jsx(I0,{...o,...r,ref:t})});$A.displayName=FA;var zA="DropdownMenuLabel",J0=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return d.jsx(D0,{...o,...r,ref:t})});J0.displayName=zA;var VA="DropdownMenuItem",eS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return d.jsx(L0,{...o,...r,ref:t})});eS.displayName=VA;var UA="DropdownMenuCheckboxItem",tS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return d.jsx(F0,{...o,...r,ref:t})});tS.displayName=UA;var BA="DropdownMenuRadioGroup",WA=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return d.jsx($0,{...o,...r,ref:t})});WA.displayName=BA;var HA="DropdownMenuRadioItem",nS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return d.jsx(z0,{...o,...r,ref:t})});nS.displayName=HA;var KA="DropdownMenuItemIndicator",rS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return d.jsx(V0,{...o,...r,ref:t})});rS.displayName=KA;var ZA="DropdownMenuSeparator",oS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return d.jsx(U0,{...o,...r,ref:t})});oS.displayName=ZA;var GA="DropdownMenuArrow",YA=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return d.jsx(B0,{...o,...r,ref:t})});YA.displayName=GA;var XA="DropdownMenuSubTrigger",sS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return d.jsx(W0,{...o,...r,ref:t})});sS.displayName=XA;var qA="DropdownMenuSubContent",iS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yt(n);return d.jsx(H0,{...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)"}})});iS.displayName=qA;var QA=Z0,JA=Y0,eM=X0,aS=Q0,lS=J0,cS=eS,uS=tS,dS=nS,fS=rS,pS=oS,hS=sS,mS=iS;const tM=QA,nM=JA,rM=f.forwardRef(({className:e,inset:t,children:n,...r},o)=>d.jsxs(hS,{ref:o,className:G("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,d.jsx(Up,{className:"ml-auto h-4 w-4"})]}));rM.displayName=hS.displayName;const oM=f.forwardRef(({className:e,...t},n)=>d.jsx(mS,{ref:n,className:G("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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",e),...t}));oM.displayName=mS.displayName;const gS=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(eM,{children:d.jsx(aS,{ref:r,sideOffset:t,className:G("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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",e),...n})}));gS.displayName=aS.displayName;const vS=f.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(cS,{ref:r,className:G("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));vS.displayName=cS.displayName;const sM=f.forwardRef(({className:e,children:t,checked:n,...r},o)=>d.jsxs(uS,{ref:o,className:G("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-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-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(fS,{children:d.jsx(zp,{className:"h-4 w-4"})})}),t]}));sM.displayName=uS.displayName;const iM=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(dS,{ref:r,className:G("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-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-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(fS,{children:d.jsx(dw,{className:"h-2 w-2 fill-current"})})}),t]}));iM.displayName=dS.displayName;const yS=f.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(lS,{ref:r,className:G("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));yS.displayName=lS.displayName;const xS=f.forwardRef(({className:e,...t},n)=>d.jsx(pS,{ref:n,className:G("-mx-1 my-1 h-px bg-muted",e),...t}));xS.displayName=pS.displayName;function aM(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),l=n.length;n=[...n,i];const c=p=>{var y;const{scope:h,children:x,...v}=p,g=((y=h==null?void 0:h[e])==null?void 0:y[l])||a,S=f.useMemo(()=>v,Object.values(v));return d.jsx(g.Provider,{value:S,children:x})};c.displayName=s+"Provider";function u(p,h){var g;const x=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,v=f.useContext(x);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[c,u]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,lM(o,...t)]}function lM(...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(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const p=l(s)[`__scope${c}`];return{...a,...p}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Nc="Menubar",[nf,cM,uM]=hs(Nc),[wS,cF]=aM(Nc,[uM,ws]),xt=rh(),SS=ws(),[dM,fh]=wS(Nc),bS=f.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:s,loop:i=!0,dir:a,...l}=e,c=uo(a),u=SS(n),[p="",h]=Wn({prop:r,onChange:o,defaultProp:s}),[x,v]=f.useState(null);return d.jsx(dM,{scope:n,value:p,onMenuOpen:f.useCallback(g=>{h(g),v(g)},[h]),onMenuClose:f.useCallback(()=>h(""),[h]),onMenuToggle:f.useCallback(g=>{h(S=>S?"":g),v(g)},[h]),dir:c,loop:i,children:d.jsx(nf.Provider,{scope:n,children:d.jsx(nf.Slot,{scope:n,children:d.jsx(Qp,{asChild:!0,...u,orientation:"horizontal",loop:i,dir:c,currentTabStopId:x,onCurrentTabStopIdChange:v,children:d.jsx(X.div,{role:"menubar",...l,ref:t})})})})})});bS.displayName=Nc;var ph="MenubarMenu",[fM,_S]=wS(ph),CS=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=ht(),s=n||o||"LEGACY_REACT_AUTO_VALUE",i=fh(ph,t),a=xt(t),l=f.useRef(null),c=f.useRef(!1),u=i.value===s;return f.useEffect(()=>{u||(c.current=!1)},[u]),d.jsx(fM,{scope:t,value:s,triggerId:ht(),triggerRef:l,contentId:ht(),wasKeyboardTriggerOpenRef:c,children:d.jsx(A0,{...a,open:u,onOpenChange:p=>{p||i.onMenuClose()},modal:!1,dir:i.dir,...r})})};CS.displayName=ph;var rf="MenubarTrigger",ES=f.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,s=SS(n),i=xt(n),a=fh(rf,n),l=_S(rf,n),c=f.useRef(null),u=ae(t,c,l.triggerRef),[p,h]=f.useState(!1),x=a.value===l.value;return d.jsx(nf.ItemSlot,{scope:n,value:l.value,disabled:r,children:d.jsx(Jp,{asChild:!0,...s,focusable:!r,tabStopId:l.value,children:d.jsx(M0,{asChild:!0,...i,children:d.jsx(X.button,{type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":x,"aria-controls":x?l.contentId:void 0,"data-highlighted":p?"":void 0,"data-state":x?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:u,onPointerDown:F(e.onPointerDown,v=>{!r&&v.button===0&&v.ctrlKey===!1&&(a.onMenuOpen(l.value),x||v.preventDefault())}),onPointerEnter:F(e.onPointerEnter,()=>{var g;!!a.value&&!x&&(a.onMenuOpen(l.value),(g=c.current)==null||g.focus())}),onKeyDown:F(e.onKeyDown,v=>{r||(["Enter"," "].includes(v.key)&&a.onMenuToggle(l.value),v.key==="ArrowDown"&&a.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(v.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,v.preventDefault()))}),onFocus:F(e.onFocus,()=>h(!0)),onBlur:F(e.onBlur,()=>h(!1))})})})})});ES.displayName=rf;var pM="MenubarPortal",NS=e=>{const{__scopeMenubar:t,...n}=e,r=xt(t);return d.jsx(j0,{...r,...n})};NS.displayName=pM;var of="MenubarContent",kS=f.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,s=xt(n),i=fh(of,n),a=_S(of,n),l=cM(n),c=f.useRef(!1);return d.jsx(O0,{id:a.contentId,"aria-labelledby":a.triggerId,"data-radix-menubar-content":"",...s,...o,ref:t,align:r,onCloseAutoFocus:F(e.onCloseAutoFocus,u=>{var h;!!!i.value&&!c.current&&((h=a.triggerRef.current)==null||h.focus()),c.current=!1,u.preventDefault()}),onFocusOutside:F(e.onFocusOutside,u=>{const p=u.target;l().some(x=>{var v;return(v=x.ref.current)==null?void 0:v.contains(p)})&&u.preventDefault()}),onInteractOutside:F(e.onInteractOutside,()=>{c.current=!0}),onEntryFocus:u=>{a.wasKeyboardTriggerOpenRef.current||u.preventDefault()},onKeyDown:F(e.onKeyDown,u=>{if(["ArrowRight","ArrowLeft"].includes(u.key)){const p=u.target,h=p.hasAttribute("data-radix-menubar-subtrigger"),x=p.closest("[data-radix-menubar-content]")!==u.currentTarget,g=(i.dir==="rtl"?"ArrowRight":"ArrowLeft")===u.key;if(!g&&h||x&&g)return;let m=l().filter(b=>!b.disabled).map(b=>b.value);g&&m.reverse();const w=m.indexOf(a.value);m=i.loop?RM(m,w+1):m.slice(w+1);const[_]=m;_&&i.onMenuOpen(_)}},{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)"}})});kS.displayName=of;var hM="MenubarGroup",mM=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return d.jsx(I0,{...o,...r,ref:t})});mM.displayName=hM;var gM="MenubarLabel",RS=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return d.jsx(D0,{...o,...r,ref:t})});RS.displayName=gM;var vM="MenubarItem",TS=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return d.jsx(L0,{...o,...r,ref:t})});TS.displayName=vM;var yM="MenubarCheckboxItem",PS=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return d.jsx(F0,{...o,...r,ref:t})});PS.displayName=yM;var xM="MenubarRadioGroup",wM=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return d.jsx($0,{...o,...r,ref:t})});wM.displayName=xM;var SM="MenubarRadioItem",AS=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return d.jsx(z0,{...o,...r,ref:t})});AS.displayName=SM;var bM="MenubarItemIndicator",MS=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return d.jsx(V0,{...o,...r,ref:t})});MS.displayName=bM;var _M="MenubarSeparator",jS=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return d.jsx(U0,{...o,...r,ref:t})});jS.displayName=_M;var CM="MenubarArrow",EM=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return d.jsx(B0,{...o,...r,ref:t})});EM.displayName=CM;var NM="MenubarSubTrigger",OS=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return d.jsx(W0,{"data-radix-menubar-subtrigger":"",...o,...r,ref:t})});OS.displayName=NM;var kM="MenubarSubContent",IS=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xt(n);return d.jsx(H0,{...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)"}})});IS.displayName=kM;function RM(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var DS=bS,TM=CS,LS=ES,PM=NS,FS=kS,$S=RS,zS=TS,VS=PS,US=AS,BS=MS,WS=jS,HS=OS,KS=IS;const AM=TM,ZS=f.forwardRef(({className:e,...t},n)=>d.jsx(DS,{ref:n,className:G("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));ZS.displayName=DS.displayName;const GS=f.forwardRef(({className:e,...t},n)=>d.jsx(LS,{ref:n,className:G("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));GS.displayName=LS.displayName;const MM=f.forwardRef(({className:e,inset:t,children:n,...r},o)=>d.jsxs(HS,{ref:o,className:G("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,d.jsx(Up,{className:"ml-auto h-4 w-4"})]}));MM.displayName=HS.displayName;const jM=f.forwardRef(({className:e,...t},n)=>d.jsx(KS,{ref:n,className:G("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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",e),...t}));jM.displayName=KS.displayName;const YS=f.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...o},s)=>d.jsx(PM,{children:d.jsx(FS,{ref:s,align:t,alignOffset:n,sideOffset:r,className:G("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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",e),...o})}));YS.displayName=FS.displayName;const Us=f.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(zS,{ref:r,className:G("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Us.displayName=zS.displayName;const OM=f.forwardRef(({className:e,children:t,checked:n,...r},o)=>d.jsxs(VS,{ref:o,className:G("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-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(BS,{children:d.jsx(zp,{className:"h-4 w-4"})})}),t]}));OM.displayName=VS.displayName;const IM=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(US,{ref:r,className:G("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-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(BS,{children:d.jsx(dw,{className:"h-2 w-2 fill-current"})})}),t]}));IM.displayName=US.displayName;const DM=f.forwardRef(({className:e,inset:t,...n},r)=>d.jsx($S,{ref:r,className:G("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));DM.displayName=$S.displayName;const sf=f.forwardRef(({className:e,...t},n)=>d.jsx(WS,{ref:n,className:G("-mx-1 my-1 h-px bg-muted",e),...t}));sf.displayName=WS.displayName;const LM="/assets/lscs_white-BifDPF52.png";var hh="Avatar",[FM,uF]=Nn(hh),[$M,XS]=FM(hh),qS=f.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=f.useState("idle");return d.jsx($M,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:d.jsx(X.span,{...r,ref:t})})});qS.displayName=hh;var QS="AvatarImage",JS=f.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=XS(QS,n),a=zM(r),l=Ee(c=>{o(c),i.onImageLoadingStatusChange(c)});return Oe(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?d.jsx(X.img,{...s,ref:t,src:r}):null});JS.displayName=QS;var eb="AvatarFallback",tb=f.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=XS(eb,n),[i,a]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&s.imageLoadingStatus!=="loaded"?d.jsx(X.span,{...o,ref:t}):null});tb.displayName=eb;function zM(e){const[t,n]=f.useState("idle");return Oe(()=>{if(!e){n("error");return}let r=!0;const o=new window.Image,s=i=>()=>{r&&n(i)};return n("loading"),o.onload=s("loaded"),o.onerror=s("error"),o.src=e,()=>{r=!1}},[e]),t}var nb=qS,rb=JS,ob=tb;const af=f.forwardRef(({className:e,...t},n)=>d.jsx(nb,{ref:n,className:G("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));af.displayName=nb.displayName;const lf=f.forwardRef(({className:e,...t},n)=>d.jsx(rb,{ref:n,className:G("aspect-square h-full w-full",e),...t}));lf.displayName=rb.displayName;const cf=f.forwardRef(({className:e,...t},n)=>d.jsx(ob,{ref:n,className:G("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));cf.displayName=ob.displayName;const uf=({email:e})=>{if(e!=""){const n=(r=>{const o=r.split("_").map(s=>s[0].toUpperCase());return o.length==2?o.join(""):o[0]})(e);return d.jsx(d.Fragment,{children:d.jsxs(af,{children:[d.jsx(lf,{src:""}),d.jsx(cf,{className:"text-black",children:n.toUpperCase()})]})})}else return d.jsx(d.Fragment,{children:d.jsxs(af,{children:[d.jsx(lf,{src:""}),d.jsx(cf,{className:"text-black"})]})})};/** - * @remix-run/router v1.19.2 - * - * 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 ki(){return ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function sb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function UM(){return Math.random().toString(36).substr(2,8)}function Ag(e,t){return{usr:e.state,key:e.key,idx:t}}function df(e,t,n,r){return n===void 0&&(n=null),ki({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ss(t):t,{state:n,key:t&&t.key||r||UM()})}function Pl(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 Ss(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 BM(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=pr.Pop,l=null,c=u();c==null&&(c=0,i.replaceState(ki({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function p(){a=pr.Pop;let S=u(),y=S==null?null:S-c;c=S,l&&l({action:a,location:g.location,delta:y})}function h(S,y){a=pr.Push;let m=df(g.location,S,y);c=u()+1;let w=Ag(m,c),_=g.createHref(m);try{i.pushState(w,"",_)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;o.location.assign(_)}s&&l&&l({action:a,location:g.location,delta:1})}function x(S,y){a=pr.Replace;let m=df(g.location,S,y);c=u();let w=Ag(m,c),_=g.createHref(m);i.replaceState(w,"",_),s&&l&&l({action:a,location:g.location,delta:0})}function v(S){let y=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof S=="string"?S:Pl(S);return m=m.replace(/ $/,"%20"),We(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let g={get action(){return a},get location(){return e(o,i)},listen(S){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Pg,p),l=S,()=>{o.removeEventListener(Pg,p),l=null}},createHref(S){return t(o,S)},createURL:v,encodeLocation(S){let y=v(S);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:x,go(S){return i.go(S)}};return g}var Mg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Mg||(Mg={}));function WM(e,t,n){return n===void 0&&(n="/"),HM(e,t,n,!1)}function HM(e,t,n,r){let o=typeof t=="string"?Ss(t):t,s=mh(o.pathname||"/",n);if(s==null)return null;let i=ib(e);KM(i);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(We(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=br([r,l.relativePath]),u=n.concat(l);s.children&&s.children.length>0&&(We(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),ib(s.children,t,u,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:JM(c,s.index),routesMeta:u})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of ab(s.path))o(s,i,l)}),t}function ab(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=ab(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function KM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ej(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ZM=/^:[\w-]+$/,GM=3,YM=2,XM=1,qM=10,QM=-2,jg=e=>e==="*";function JM(e,t){let n=e.split("/"),r=n.length;return n.some(jg)&&(r+=QM),t&&(r+=YM),n.filter(o=>!jg(o)).reduce((o,s)=>o+(ZM.test(s)?GM:s===""?XM:qM),r)}function ej(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 tj(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a{let{paramName:h,isOptional:x}=u;if(h==="*"){let g=a[p]||"";i=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const v=a[p];return x&&!v?c[h]=void 0:c[h]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}function nj(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sb(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,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function rj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sb(!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 mh(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)||"/"}function oj(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ss(e):e;return{pathname:n?n.startsWith("/")?n:sj(n,t):t,search:lj(r),hash:cj(o)}}function sj(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ou(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ij(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lb(e,t){let n=ij(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function cb(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ss(e):(o=ki({},e),We(!o.pathname||!o.pathname.includes("?"),Ou("?","pathname","search",o)),We(!o.pathname||!o.pathname.includes("#"),Ou("#","pathname","hash",o)),We(!o.search||!o.search.includes("#"),Ou("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}a=p>=0?t[p]:"/"}let l=oj(o,a),c=i&&i!=="/"&&i.endsWith("/"),u=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const br=e=>e.join("/").replace(/\/\/+/g,"/"),aj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function uj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ub=["post","put","patch","delete"];new Set(ub);const dj=["get",...ub];new Set(dj);/** - * React Router v6.26.2 - * - * 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 Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),f.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let p=cb(c,JSON.parse(i),s,u.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:br([t,p.pathname])),(u.replace?r.replace:r.push)(p,u.state,u)},[t,r,i,s,e])}function pb(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=f.useContext(ho),{matches:o}=f.useContext(mo),{pathname:s}=Rc(),i=JSON.stringify(lb(o,r.v7_relativeSplatPath));return f.useMemo(()=>cb(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function gj(e,t){return vj(e,t)}function vj(e,t,n,r){ta()||We(!1);let{navigator:o}=f.useContext(ho),{matches:s}=f.useContext(mo),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=Rc(),u;if(t){var p;let S=typeof t=="string"?Ss(t):t;l==="/"||(p=S.pathname)!=null&&p.startsWith(l)||We(!1),u=S}else u=c;let h=u.pathname||"/",x=h;if(l!=="/"){let S=l.replace(/^\//,"").split("/");x="/"+h.replace(/^\//,"").split("/").slice(S.length).join("/")}let v=WM(e,{pathname:x}),g=bj(v&&v.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:br([l,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:br([l,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),s,n,r);return t&&g?f.createElement(kc.Provider,{value:{location:Ri({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:pr.Pop}},g):g}function yj(){let e=Nj(),t=uj(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)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:o},n):null,null)}const xj=f.createElement(yj,null);class wj extends f.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!==void 0?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!==void 0?f.createElement(mo.Provider,{value:this.props.routeContext},f.createElement(db.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Sj(e){let{routeContext:t,match:n,children:r}=e,o=f.useContext(gh);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(mo.Provider,{value:t},r)}function bj(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=i.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);u>=0||We(!1),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,p,h)=>{let x,v=!1,g=null,S=null;n&&(x=a&&p.route.id?a[p.route.id]:void 0,g=p.route.errorElement||xj,l&&(c<0&&h===0?(v=!0,S=null):c===h&&(v=!0,S=p.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,h+1)),m=()=>{let w;return x?w=g:v?w=S:p.route.Component?w=f.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=u,f.createElement(Sj,{match:p,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:w})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?f.createElement(wj,{location:n.location,revalidation:n.revalidation,component:g,error:x,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var hb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(hb||{}),Al=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}(Al||{});function _j(e){let t=f.useContext(gh);return t||We(!1),t}function Cj(e){let t=f.useContext(fj);return t||We(!1),t}function Ej(e){let t=f.useContext(mo);return t||We(!1),t}function mb(e){let t=Ej(),n=t.matches[t.matches.length-1];return n.route.id||We(!1),n.route.id}function Nj(){var e;let t=f.useContext(db),n=Cj(Al.UseRouteError),r=mb(Al.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function kj(){let{router:e}=_j(hb.UseNavigateStable),t=mb(Al.UseNavigateStable),n=f.useRef(!1);return fb(()=>{n.current=!0}),f.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ri({fromRouteId:t},s)))},[e,t])}function ff(e){We(!1)}function Rj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=pr.Pop,navigator:s,static:i=!1,future:a}=e;ta()&&We(!1);let l=t.replace(/^\/*/,"/"),c=f.useMemo(()=>({basename:l,navigator:s,static:i,future:Ri({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=Ss(r));let{pathname:u="/",search:p="",hash:h="",state:x=null,key:v="default"}=r,g=f.useMemo(()=>{let S=mh(u,l);return S==null?null:{location:{pathname:S,search:p,hash:h,state:x,key:v},navigationType:o}},[l,u,p,h,x,v,o]);return g==null?null:f.createElement(ho.Provider,{value:c},f.createElement(kc.Provider,{children:n,value:g}))}function Tj(e){let{children:t,location:n}=e;return gj(pf(t),n)}new Promise(()=>{});function pf(e,t){t===void 0&&(t=[]);let n=[];return f.Children.forEach(e,(r,o)=>{if(!f.isValidElement(r))return;let s=[...t,o];if(r.type===f.Fragment){n.push.apply(n,pf(r.props.children,s));return}r.type!==ff&&We(!1),!r.props.index||!r.props.children||We(!1);let i={id:r.props.id||s.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&&(i.children=pf(r.props.children,s)),n.push(i)}),n}/** - * React Router DOM v6.26.2 - * - * 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 hf(){return hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Aj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Mj(e,t){return e.button===0&&(!t||t==="_self")&&!Aj(e)}const jj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Oj="6";try{window.__reactRouterVersion=Oj}catch{}const Ij="startTransition",Ig=Tv[Ij];function Dj(e){let{basename:t,children:n,future:r,window:o}=e,s=f.useRef();s.current==null&&(s.current=VM({window:o,v5Compat:!0}));let i=s.current,[a,l]=f.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},u=f.useCallback(p=>{c&&Ig?Ig(()=>l(p)):l(p)},[l,c]);return f.useLayoutEffect(()=>i.listen(u),[i,u]),f.createElement(Rj,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const Lj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Fj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Aa=f.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:a,target:l,to:c,preventScrollReset:u,unstable_viewTransition:p}=t,h=Pj(t,jj),{basename:x}=f.useContext(ho),v,g=!1;if(typeof c=="string"&&Fj.test(c)&&(v=c,Lj))try{let w=new URL(window.location.href),_=c.startsWith("//")?new URL(w.protocol+c):new URL(c),b=mh(_.pathname,x);_.origin===w.origin&&b!=null?c=b+_.search+_.hash:g=!0}catch{}let S=pj(c,{relative:o}),y=$j(c,{replace:i,state:a,target:l,preventScrollReset:u,relative:o,unstable_viewTransition:p});function m(w){r&&r(w),w.defaultPrevented||y(w)}return f.createElement("a",hf({},h,{href:v||S,onClick:g||s?r:m,ref:n,target:l}))});var Dg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Dg||(Dg={}));var Lg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Lg||(Lg={}));function $j(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,unstable_viewTransition:a}=t===void 0?{}:t,l=hj(),c=Rc(),u=pb(e,{relative:i});return f.useCallback(p=>{if(Mj(p,n)){p.preventDefault();let h=r!==void 0?r:Pl(c)===Pl(u);l(e,{replace:h,state:o,preventScrollReset:s,relative:i,unstable_viewTransition:a})}},[c,l,u,r,o,n,e,s,i,a])}/*! - * cookie - * Copyright(c) 2012-2014 Roman Shtylman - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */var gb=Vj,Fg=Uj,zj=Object.prototype.toString,Ma=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Vj(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},o=r.decode||Bj,s=0;s"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function Gj(e){return typeof e=="string"?gb(e):typeof e=="object"&&e!==null?e:{}}function Iu(e,t={}){const n=Yj(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function Yj(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class vb{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const o=this.cookies;this.cookies=gb(document.cookie),this._checkChanges(o)};const r=typeof document>"u"?"":document.cookie;this.cookies=Gj(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=Zj()}_emitChange(t){for(let n=0;n{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:Iu(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Iu(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Iu(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const o=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:o}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Fg(t,o,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Fg(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const yb=f.createContext(new vb),{Provider:Xj,Consumer:dF}=yb;class qj extends f.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new vb(void 0,t.defaultSetOptions)}render(){return f.createElement(Xj,{value:this.cookies},this.props.children)}}var xb={exports:{}},be={};/** @license React v16.13.1 - * react-is.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 $g;function Qj(){if($g)return be;$g=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function w(b){if(typeof b=="object"&&b!==null){var N=b.$$typeof;switch(N){case t:switch(b=b.type,b){case l:case c:case r:case s:case o:case p:return b;default:switch(b=b&&b.$$typeof,b){case a:case u:case v:case x:case i:return b;default:return N}}case n:return N}}}function _(b){return w(b)===c}return be.AsyncMode=l,be.ConcurrentMode=c,be.ContextConsumer=a,be.ContextProvider=i,be.Element=t,be.ForwardRef=u,be.Fragment=r,be.Lazy=v,be.Memo=x,be.Portal=n,be.Profiler=s,be.StrictMode=o,be.Suspense=p,be.isAsyncMode=function(b){return _(b)||w(b)===l},be.isConcurrentMode=_,be.isContextConsumer=function(b){return w(b)===a},be.isContextProvider=function(b){return w(b)===i},be.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},be.isForwardRef=function(b){return w(b)===u},be.isFragment=function(b){return w(b)===r},be.isLazy=function(b){return w(b)===v},be.isMemo=function(b){return w(b)===x},be.isPortal=function(b){return w(b)===n},be.isProfiler=function(b){return w(b)===s},be.isStrictMode=function(b){return w(b)===o},be.isSuspense=function(b){return w(b)===p},be.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===c||b===s||b===o||b===p||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===x||b.$$typeof===i||b.$$typeof===a||b.$$typeof===u||b.$$typeof===S||b.$$typeof===y||b.$$typeof===m||b.$$typeof===g)},be.typeOf=w,be}xb.exports=Qj();var Jj=xb.exports,wb=Jj,eO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Sb={};Sb[wb.ForwardRef]=eO;Sb[wb.Memo]=tO;function nO(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Zn(e,t){const n=f.useContext(yb);if(!n)throw new Error("Missing ");const o=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[s,i]=f.useState(()=>n.getAll(o));nO()&&f.useLayoutEffect(()=>{function u(){const p=n.getAll(o);rO(e||null,p,s)&&i(p)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,s]);const a=f.useMemo(()=>n.set.bind(n),[n]),l=f.useMemo(()=>n.remove.bind(n),[n]),c=f.useMemo(()=>n.update.bind(n),[n]);return[s,a,l,c]}function rO(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const oO=()=>{const[e]=Zn(["currentUser"]),t=e.currentUser,[n,,r]=Zn(["currentToken"]);return d.jsx(d.Fragment,{children:d.jsxs("header",{className:"bg-[black] text-[#FFFFFF] flex justify-between items-center px-2 md:px-8 py-4",children:[d.jsxs(Aa,{to:"/",className:"flex items-center space-x-1 md:space-x-3",children:[d.jsx("img",{src:LM,alt:"",className:"w-12 md:w-20"}),d.jsxs("div",{children:[d.jsx("h1",{className:"font-bold text-md md:text-3xl",children:"Research and Development"}),d.jsx("p",{className:"text-xs md:text-base",children:"39th La Salle Computer Society"})]})]}),d.jsxs("div",{className:"hidden md:flex space-x-8",children:["currentToken"in n?d.jsx(d.Fragment,{children:d.jsxs("div",{className:"hidden md:flex bg-[#1D283A] rounded-lg",children:[d.jsx(Hd,{children:d.jsx(Kd,{children:d.jsx(lg,{children:d.jsx(VR,{children:d.jsx(Zd,{className:"bg-[#1D283A]",children:d.jsx(Aa,{to:"/",children:"Link Shortener"})})})})})}),d.jsx(Hd,{children:d.jsx(Kd,{children:d.jsx(lg,{children:d.jsx(Zd,{className:"bg-[#1D283A]",children:"Other Applications"})})})})]})}):null,"currentToken"in n?d.jsxs(tM,{children:[d.jsxs(nM,{children:[d.jsx(uf,{email:t.email})," "]}),d.jsxs(gS,{className:" bg-[#030711] border-2 border-[#1D283A] rounded-lg text-white",children:[d.jsx(yS,{children:"My Account"}),d.jsx(xS,{className:"bg-[#030711]"}),d.jsx(vS,{onClick:()=>{r("currentToken")},children:"Logout"})]})]}):d.jsx(uf,{email:""})]}),"currentToken"in n?d.jsx("div",{className:"flex md:hidden",children:d.jsx(ZS,{className:"bg-[#030711] border-2 border-[#1D283A] rounded-lg",children:d.jsxs(AM,{children:[d.jsx(GS,{children:d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}),d.jsxs(YS,{className:"bg-[#030711] border-2 border-[#1D283A] rounded-lg text-white",children:[d.jsx(Us,{children:d.jsx(Aa,{to:"/",children:"Link Shortener"})}),d.jsx(sf,{}),d.jsx(Us,{children:d.jsx(Aa,{to:"",children:"DocuSeal"})}),d.jsx(sf,{}),d.jsx(Us,{children:t.email}),d.jsx(Us,{onClick:()=>{r("currentToken")},children:"Log Out"})]})]})})}):null]})})};function mf(e,[t,n]){return Math.min(n,Math.max(t,e))}var Du=0;function bb(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zg()),document.body.insertAdjacentElement("beforeend",e[1]??zg()),Du++,()=>{Du===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Du--}},[])}function zg(){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 sO="Portal",vh=f.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=f.useState(!1);Oe(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Mp.createPortal(d.jsx(X.div,{...r,ref:t}),i):null});vh.displayName=sO;var _b=e0(),Lu=function(){},Tc=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Lu,onWheelCapture:Lu,onTouchMoveCapture:Lu}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,p=e.shards,h=e.sideCar,x=e.noIsolation,v=e.inert,g=e.allowPinchZoom,S=e.as,y=S===void 0?"div":S,m=e.gapMode,w=th(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,b=Jw([n,t]),N=at(at({},w),o);return f.createElement(f.Fragment,null,u&&f.createElement(_,{sideCar:_b,removeScrollBar:c,shards:p,noIsolation:x,inert:v,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:m}),i?f.cloneElement(f.Children.only(a),at(at({},N),{ref:b})):f.createElement(y,at({},N,{className:l,ref:b}),a))});Tc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Tc.classNames={fullWidth:ni,zeroRight:ti};var gf=!1;if(typeof window<"u")try{var ja=Object.defineProperty({},"passive",{get:function(){return gf=!0,!0}});window.addEventListener("test",ja,ja),window.removeEventListener("test",ja,ja)}catch{gf=!1}var _o=gf?{passive:!1}:!1,iO=function(e){return e.tagName==="TEXTAREA"},Cb=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!iO(e)&&n[t]==="visible")},aO=function(e){return Cb(e,"overflowY")},lO=function(e){return Cb(e,"overflowX")},Vg=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Eb(e,r);if(o){var s=Nb(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},cO=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},uO=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Eb=function(e,t){return e==="v"?aO(t):lO(t)},Nb=function(e,t){return e==="v"?cO(t):uO(t)},dO=function(e,t){return e==="h"&&t==="rtl"?-1:1},fO=function(e,t,n,r,o){var s=dO(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),c=!1,u=i>0,p=0,h=0;do{var x=Nb(e,a),v=x[0],g=x[1],S=x[2],y=g-S-s*v;(v||y)&&Eb(e,a)&&(p+=y,h+=v),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(Math.abs(p)<1||!o)||!u&&(Math.abs(h)<1||!o))&&(c=!0),c},Oa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ug=function(e){return[e.deltaX,e.deltaY]},Bg=function(e){return e&&"current"in e?e.current:e},pO=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hO=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},mO=0,Co=[];function gO(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(mO++)[0],s=f.useState(nh)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Qw([e.lockRef.current],(e.shards||[]).map(Bg),!0).filter(Boolean);return g.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(g,S){if("touches"in g&&g.touches.length===2)return!i.current.allowPinchZoom;var y=Oa(g),m=n.current,w="deltaX"in g?g.deltaX:m[0]-y[0],_="deltaY"in g?g.deltaY:m[1]-y[1],b,N=g.target,E=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in g&&E==="h"&&N.type==="range")return!1;var k=Vg(E,N);if(!k)return!0;if(k?b=E:(b=E==="v"?"h":"v",k=Vg(E,N)),!k)return!1;if(!r.current&&"changedTouches"in g&&(w||_)&&(r.current=b),!b)return!0;var A=r.current||b;return fO(A,S,g,A==="h"?w:_,!0)},[]),l=f.useCallback(function(g){var S=g;if(!(!Co.length||Co[Co.length-1]!==s)){var y="deltaY"in S?Ug(S):Oa(S),m=t.current.filter(function(b){return b.name===S.type&&(b.target===S.target||S.target===b.shadowParent)&&pO(b.delta,y)})[0];if(m&&m.should){S.cancelable&&S.preventDefault();return}if(!m){var w=(i.current.shards||[]).map(Bg).filter(Boolean).filter(function(b){return b.contains(S.target)}),_=w.length>0?a(S,w[0]):!i.current.noIsolation;_&&S.cancelable&&S.preventDefault()}}},[]),c=f.useCallback(function(g,S,y,m){var w={name:g,delta:S,target:y,should:m,shadowParent:vO(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=f.useCallback(function(g){n.current=Oa(g),r.current=void 0},[]),p=f.useCallback(function(g){c(g.type,Ug(g),g.target,a(g,e.lockRef.current))},[]),h=f.useCallback(function(g){c(g.type,Oa(g),g.target,a(g,e.lockRef.current))},[]);f.useEffect(function(){return Co.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",l,_o),document.addEventListener("touchmove",l,_o),document.addEventListener("touchstart",u,_o),function(){Co=Co.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,_o),document.removeEventListener("touchmove",l,_o),document.removeEventListener("touchstart",u,_o)}},[]);var x=e.removeScrollBar,v=e.inert;return f.createElement(f.Fragment,null,v?f.createElement(s,{styles:hO(o)}):null,x?f.createElement(o0,{gapMode:e.gapMode}):null)}function vO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yO=n0(_b,gO);var yh=f.forwardRef(function(e,t){return f.createElement(Tc,at({},e,{ref:t,sideCar:yO}))});yh.classNames=Tc.classNames;var xO=[" ","Enter","ArrowUp","ArrowDown"],wO=[" ","Enter"],na="Select",[Pc,Ac,SO]=hs(na),[bs,fF]=Nn(na,[SO,Sc]),Mc=Sc(),[bO,Lr]=bs(na),[_O,CO]=bs(na),kb=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:p,disabled:h,required:x}=e,v=Mc(t),[g,S]=f.useState(null),[y,m]=f.useState(null),[w,_]=f.useState(!1),b=uo(c),[N=!1,E]=Wn({prop:r,defaultProp:o,onChange:s}),[k,A]=Wn({prop:i,defaultProp:a,onChange:l}),O=f.useRef(null),q=g?!!g.closest("form"):!0,[I,B]=f.useState(new Set),Y=Array.from(I).map(re=>re.props.value).join(";");return d.jsx(Vw,{...v,children:d.jsxs(bO,{required:x,scope:t,trigger:g,onTriggerChange:S,valueNode:y,onValueNodeChange:m,valueNodeHasChildren:w,onValueNodeHasChildrenChange:_,contentId:ht(),value:k,onValueChange:A,open:N,onOpenChange:E,dir:b,triggerPointerDownPosRef:O,disabled:h,children:[d.jsx(Pc.Provider,{scope:t,children:d.jsx(_O,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(re=>{B(Q=>new Set(Q).add(re))},[]),onNativeOptionRemove:f.useCallback(re=>{B(Q=>{const oe=new Set(Q);return oe.delete(re),oe})},[]),children:n})}),q?d.jsxs(Qb,{"aria-hidden":!0,required:x,tabIndex:-1,name:u,autoComplete:p,value:k,onChange:re=>A(re.target.value),disabled:h,children:[k===void 0?d.jsx("option",{value:""}):null,Array.from(I)]},Y):null]})})};kb.displayName=na;var Rb="SelectTrigger",Tb=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Mc(n),i=Lr(Rb,n),a=i.disabled||r,l=ae(t,i.onTriggerChange),c=Ac(n),[u,p,h]=Jb(v=>{const g=c().filter(m=>!m.disabled),S=g.find(m=>m.value===i.value),y=e1(g,v,S);y!==void 0&&i.onValueChange(y.value)}),x=()=>{a||(i.onOpenChange(!0),h())};return d.jsx(Uw,{asChild:!0,...s,children:d.jsx(X.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":qb(i.value)?"":void 0,...o,ref:l,onClick:F(o.onClick,v=>{v.currentTarget.focus()}),onPointerDown:F(o.onPointerDown,v=>{const g=v.target;g.hasPointerCapture(v.pointerId)&&g.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&(x(),i.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)},v.preventDefault())}),onKeyDown:F(o.onKeyDown,v=>{const g=u.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&p(v.key),!(g&&v.key===" ")&&xO.includes(v.key)&&(x(),v.preventDefault())})})})});Tb.displayName=Rb;var Pb="SelectValue",Ab=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=Lr(Pb,n),{onValueNodeHasChildrenChange:c}=l,u=s!==void 0,p=ae(t,l.onValueNodeChange);return Oe(()=>{c(u)},[c,u]),d.jsx(X.span,{...a,ref:p,style:{pointerEvents:"none"},children:qb(l.value)?d.jsx(d.Fragment,{children:i}):s})});Ab.displayName=Pb;var EO="SelectIcon",Mb=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(X.span,{"aria-hidden":!0,...o,ref:t,children:r||"â–¼"})});Mb.displayName=EO;var NO="SelectPortal",jb=e=>d.jsx(vh,{asChild:!0,...e});jb.displayName=NO;var no="SelectContent",Ob=f.forwardRef((e,t)=>{const n=Lr(no,e.__scopeSelect),[r,o]=f.useState();if(Oe(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?co.createPortal(d.jsx(Ib,{scope:e.__scopeSelect,children:d.jsx(Pc.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),s):null}return d.jsx(Db,{...e,ref:t})});Ob.displayName=no;var jn=10,[Ib,Fr]=bs(no),kO="SelectContentImpl",Db=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:h,collisionPadding:x,sticky:v,hideWhenDetached:g,avoidCollisions:S,...y}=e,m=Lr(no,n),[w,_]=f.useState(null),[b,N]=f.useState(null),E=ae(t,J=>_(J)),[k,A]=f.useState(null),[O,q]=f.useState(null),I=Ac(n),[B,Y]=f.useState(!1),re=f.useRef(!1);f.useEffect(()=>{if(w)return eh(w)},[w]),bb();const Q=f.useCallback(J=>{const[ve,...Ce]=I().map(we=>we.ref.current),[ye]=Ce.slice(-1),xe=document.activeElement;for(const we of J)if(we===xe||(we==null||we.scrollIntoView({block:"nearest"}),we===ve&&b&&(b.scrollTop=0),we===ye&&b&&(b.scrollTop=b.scrollHeight),we==null||we.focus(),document.activeElement!==xe))return},[I,b]),oe=f.useCallback(()=>Q([k,w]),[Q,k,w]);f.useEffect(()=>{B&&oe()},[B,oe]);const{onOpenChange:M,triggerPointerDownPosRef:j}=m;f.useEffect(()=>{if(w){let J={x:0,y:0};const ve=ye=>{var xe,we;J={x:Math.abs(Math.round(ye.pageX)-(((xe=j.current)==null?void 0:xe.x)??0)),y:Math.abs(Math.round(ye.pageY)-(((we=j.current)==null?void 0:we.y)??0))}},Ce=ye=>{J.x<=10&&J.y<=10?ye.preventDefault():w.contains(ye.target)||M(!1),document.removeEventListener("pointermove",ve),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[w,M,j]),f.useEffect(()=>{const J=()=>M(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[M]);const[U,te]=Jb(J=>{const ve=I().filter(xe=>!xe.disabled),Ce=ve.find(xe=>xe.ref.current===document.activeElement),ye=e1(ve,J,Ce);ye&&setTimeout(()=>ye.ref.current.focus())}),pe=f.useCallback((J,ve,Ce)=>{const ye=!re.current&&!Ce;(m.value!==void 0&&m.value===ve||ye)&&(A(J),ye&&(re.current=!0))},[m.value]),nt=f.useCallback(()=>w==null?void 0:w.focus(),[w]),Ie=f.useCallback((J,ve,Ce)=>{const ye=!re.current&&!Ce;(m.value!==void 0&&m.value===ve||ye)&&q(J)},[m.value]),ut=r==="popper"?vf:Lb,Te=ut===vf?{side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:h,collisionPadding:x,sticky:v,hideWhenDetached:g,avoidCollisions:S}:{};return d.jsx(Ib,{scope:n,content:w,viewport:b,onViewportChange:N,itemRefCallback:pe,selectedItem:k,onItemLeave:nt,itemTextRefCallback:Ie,focusSelectedItem:oe,selectedItemText:O,position:r,isPositioned:B,searchRef:U,children:d.jsx(yh,{as:Bn,allowPinchZoom:!0,children:d.jsx(vc,{asChild:!0,trapped:m.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:F(o,J=>{var ve;(ve=m.trigger)==null||ve.focus({preventScroll:!0}),J.preventDefault()}),children:d.jsx(mc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:d.jsx(ut,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:J=>J.preventDefault(),...y,...Te,onPlaced:()=>Y(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:F(y.onKeyDown,J=>{const ve=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ve&&J.key.length===1&&te(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let ye=I().filter(xe=>!xe.disabled).map(xe=>xe.ref.current);if(["ArrowUp","End"].includes(J.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const xe=J.target,we=ye.indexOf(xe);ye=ye.slice(we+1)}setTimeout(()=>Q(ye)),J.preventDefault()}})})})})})})});Db.displayName=kO;var RO="SelectItemAlignedPosition",Lb=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Lr(no,n),i=Fr(no,n),[a,l]=f.useState(null),[c,u]=f.useState(null),p=ae(t,E=>u(E)),h=Ac(n),x=f.useRef(!1),v=f.useRef(!0),{viewport:g,selectedItem:S,selectedItemText:y,focusSelectedItem:m}=i,w=f.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&g&&S&&y){const E=s.trigger.getBoundingClientRect(),k=c.getBoundingClientRect(),A=s.valueNode.getBoundingClientRect(),O=y.getBoundingClientRect();if(s.dir!=="rtl"){const xe=O.left-k.left,we=A.left-xe,rt=E.left-we,Tt=E.width+rt,go=Math.max(Tt,k.width),vo=window.innerWidth-jn,yo=mf(we,[jn,vo-go]);a.style.minWidth=Tt+"px",a.style.left=yo+"px"}else{const xe=k.right-O.right,we=window.innerWidth-A.right-xe,rt=window.innerWidth-E.right-we,Tt=E.width+rt,go=Math.max(Tt,k.width),vo=window.innerWidth-jn,yo=mf(we,[jn,vo-go]);a.style.minWidth=Tt+"px",a.style.right=yo+"px"}const q=h(),I=window.innerHeight-jn*2,B=g.scrollHeight,Y=window.getComputedStyle(c),re=parseInt(Y.borderTopWidth,10),Q=parseInt(Y.paddingTop,10),oe=parseInt(Y.borderBottomWidth,10),M=parseInt(Y.paddingBottom,10),j=re+Q+B+M+oe,U=Math.min(S.offsetHeight*5,j),te=window.getComputedStyle(g),pe=parseInt(te.paddingTop,10),nt=parseInt(te.paddingBottom,10),Ie=E.top+E.height/2-jn,ut=I-Ie,Te=S.offsetHeight/2,J=S.offsetTop+Te,ve=re+Q+J,Ce=j-ve;if(ve<=Ie){const xe=S===q[q.length-1].ref.current;a.style.bottom="0px";const we=c.clientHeight-g.offsetTop-g.offsetHeight,rt=Math.max(ut,Te+(xe?nt:0)+we+oe),Tt=ve+rt;a.style.height=Tt+"px"}else{const xe=S===q[0].ref.current;a.style.top="0px";const rt=Math.max(Ie,re+g.offsetTop+(xe?pe:0)+Te)+Ce;a.style.height=rt+"px",g.scrollTop=ve-Ie+g.offsetTop}a.style.margin=`${jn}px 0`,a.style.minHeight=U+"px",a.style.maxHeight=I+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[h,s.trigger,s.valueNode,a,c,g,S,y,s.dir,r]);Oe(()=>w(),[w]);const[_,b]=f.useState();Oe(()=>{c&&b(window.getComputedStyle(c).zIndex)},[c]);const N=f.useCallback(E=>{E&&v.current===!0&&(w(),m==null||m(),v.current=!1)},[w,m]);return d.jsx(PO,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:x,onScrollButtonChange:N,children:d.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:d.jsx(X.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Lb.displayName=RO;var TO="SelectPopperPosition",vf=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=jn,...s}=e,i=Mc(n);return d.jsx(Bw,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.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)"}})});vf.displayName=TO;var[PO,xh]=bs(no,{}),yf="SelectViewport",Fb=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Fr(yf,n),i=xh(yf,n),a=ae(t,s.onViewportChange),l=f.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),d.jsx(Pc.Slot,{scope:n,children:d.jsx(X.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:F(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:h}=i;if(h!=null&&h.current&&p){const x=Math.abs(l.current-u.scrollTop);if(x>0){const v=window.innerHeight-jn*2,g=parseFloat(p.style.minHeight),S=parseFloat(p.style.height),y=Math.max(g,S);if(y0?_:0,p.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});Fb.displayName=yf;var $b="SelectGroup",[AO,MO]=bs($b),jO=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ht();return d.jsx(AO,{scope:n,id:o,children:d.jsx(X.div,{role:"group","aria-labelledby":o,...r,ref:t})})});jO.displayName=$b;var zb="SelectLabel",Vb=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=MO(zb,n);return d.jsx(X.div,{id:o.id,...r,ref:t})});Vb.displayName=zb;var Ml="SelectItem",[OO,Ub]=bs(Ml),Bb=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=Lr(Ml,n),l=Fr(Ml,n),c=a.value===r,[u,p]=f.useState(s??""),[h,x]=f.useState(!1),v=ae(t,y=>{var m;return(m=l.itemRefCallback)==null?void 0:m.call(l,y,r,o)}),g=ht(),S=()=>{o||(a.onValueChange(r),a.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 d.jsx(OO,{scope:n,value:r,disabled:o,textId:g,isSelected:c,onItemTextChange:f.useCallback(y=>{p(m=>m||((y==null?void 0:y.textContent)??"").trim())},[]),children:d.jsx(Pc.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:d.jsx(X.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:v,onFocus:F(i.onFocus,()=>x(!0)),onBlur:F(i.onBlur,()=>x(!1)),onPointerUp:F(i.onPointerUp,S),onPointerMove:F(i.onPointerMove,y=>{var m;o?(m=l.onItemLeave)==null||m.call(l):y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:F(i.onPointerLeave,y=>{var m;y.currentTarget===document.activeElement&&((m=l.onItemLeave)==null||m.call(l))}),onKeyDown:F(i.onKeyDown,y=>{var w;((w=l.searchRef)==null?void 0:w.current)!==""&&y.key===" "||(wO.includes(y.key)&&S(),y.key===" "&&y.preventDefault())})})})})});Bb.displayName=Ml;var Bs="SelectItemText",Wb=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=Lr(Bs,n),a=Fr(Bs,n),l=Ub(Bs,n),c=CO(Bs,n),[u,p]=f.useState(null),h=ae(t,y=>p(y),l.onItemTextChange,y=>{var m;return(m=a.itemTextRefCallback)==null?void 0:m.call(a,y,l.value,l.disabled)}),x=u==null?void 0:u.textContent,v=f.useMemo(()=>d.jsx("option",{value:l.value,disabled:l.disabled,children:x},l.value),[l.disabled,l.value,x]),{onNativeOptionAdd:g,onNativeOptionRemove:S}=c;return Oe(()=>(g(v),()=>S(v)),[g,S,v]),d.jsxs(d.Fragment,{children:[d.jsx(X.span,{id:l.textId,...s,ref:h}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?co.createPortal(s.children,i.valueNode):null]})});Wb.displayName=Bs;var Hb="SelectItemIndicator",Kb=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ub(Hb,n).isSelected?d.jsx(X.span,{"aria-hidden":!0,...r,ref:t}):null});Kb.displayName=Hb;var xf="SelectScrollUpButton",Zb=f.forwardRef((e,t)=>{const n=Fr(xf,e.__scopeSelect),r=xh(xf,e.__scopeSelect),[o,s]=f.useState(!1),i=ae(t,r.onScrollButtonChange);return Oe(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;s(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?d.jsx(Yb,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Zb.displayName=xf;var wf="SelectScrollDownButton",Gb=f.forwardRef((e,t)=>{const n=Fr(wf,e.__scopeSelect),r=xh(wf,e.__scopeSelect),[o,s]=f.useState(!1),i=ae(t,r.onScrollButtonChange);return Oe(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?d.jsx(Yb,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});Gb.displayName=wf;var Yb=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Fr("SelectScrollButton",n),i=f.useRef(null),a=Ac(n),l=f.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return f.useEffect(()=>()=>l(),[l]),Oe(()=>{var u;const c=a().find(p=>p.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[a]),d.jsx(X.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:F(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:F(o.onPointerMove,()=>{var c;(c=s.onItemLeave)==null||c.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:F(o.onPointerLeave,()=>{l()})})}),IO="SelectSeparator",Xb=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(X.div,{"aria-hidden":!0,...r,ref:t})});Xb.displayName=IO;var Sf="SelectArrow",DO=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Mc(n),s=Lr(Sf,n),i=Fr(Sf,n);return s.open&&i.position==="popper"?d.jsx(Ww,{...o,...r,ref:t}):null});DO.displayName=Sf;function qb(e){return e===""||e===void 0}var Qb=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=f.useRef(null),s=ae(t,o),i=Lx(n);return f.useEffect(()=>{const a=o.current,l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==n&&u){const p=new Event("change",{bubbles:!0});u.call(a,n),a.dispatchEvent(p)}},[i,n]),d.jsx(jp,{asChild:!0,children:d.jsx("select",{...r,ref:s,defaultValue:n})})});Qb.displayName="BubbleSelect";function Jb(e){const t=Ee(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(i=>{const a=n.current+i;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function e1(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=LO(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function LO(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var FO=kb,t1=Tb,$O=Ab,zO=Mb,VO=jb,n1=Ob,UO=Fb,r1=Vb,o1=Bb,BO=Wb,WO=Kb,s1=Zb,i1=Gb,a1=Xb;const HO=FO,KO=$O,l1=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(t1,{ref:r,className:G("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,d.jsx(zO,{asChild:!0,children:d.jsx(Vp,{className:"h-4 w-4 opacity-50"})})]}));l1.displayName=t1.displayName;const c1=f.forwardRef(({className:e,...t},n)=>d.jsx(s1,{ref:n,className:G("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(sR,{className:"h-4 w-4"})}));c1.displayName=s1.displayName;const u1=f.forwardRef(({className:e,...t},n)=>d.jsx(i1,{ref:n,className:G("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Vp,{className:"h-4 w-4"})}));u1.displayName=i1.displayName;const d1=f.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>d.jsx(VO,{children:d.jsxs(n1,{ref:o,className:G("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground 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",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(c1,{}),d.jsx(UO,{className:G("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),d.jsx(u1,{})]})}));d1.displayName=n1.displayName;const ZO=f.forwardRef(({className:e,...t},n)=>d.jsx(r1,{ref:n,className:G("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));ZO.displayName=r1.displayName;const f1=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(o1,{ref:r,className:G("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-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-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(WO,{children:d.jsx(zp,{className:"h-4 w-4"})})}),d.jsx(BO,{children:t})]}));f1.displayName=o1.displayName;const GO=f.forwardRef(({className:e,...t},n)=>d.jsx(a1,{ref:n,className:G("-mx-1 my-1 h-px bg-muted",e),...t}));GO.displayName=a1.displayName;var YO="Separator",Wg="horizontal",XO=["horizontal","vertical"],p1=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=Wg,...o}=e,s=qO(r)?r:Wg,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return d.jsx(X.div,{"data-orientation":s,...a,...o,ref:t})});p1.displayName=YO;function qO(e){return XO.includes(e)}var h1=p1;const wh=f.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>d.jsx(h1,{ref:o,decorative:n,orientation:t,className:G("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));wh.displayName=h1.displayName;function m1(e,t){return function(){return e.apply(t,arguments)}}const{toString:QO}=Object.prototype,{getPrototypeOf:Sh}=Object,jc=(e=>t=>{const n=QO.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hn=e=>(e=e.toLowerCase(),t=>jc(t)===e),Oc=e=>t=>typeof t===e,{isArray:_s}=Array,Ti=Oc("undefined");function JO(e){return e!==null&&!Ti(e)&&e.constructor!==null&&!Ti(e.constructor)&&It(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g1=hn("ArrayBuffer");function eI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&g1(e.buffer),t}const tI=Oc("string"),It=Oc("function"),v1=Oc("number"),Ic=e=>e!==null&&typeof e=="object",nI=e=>e===!0||e===!1,Xa=e=>{if(jc(e)!=="object")return!1;const t=Sh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},rI=hn("Date"),oI=hn("File"),sI=hn("Blob"),iI=hn("FileList"),aI=e=>Ic(e)&&It(e.pipe),lI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||It(e.append)&&((t=jc(e))==="formdata"||t==="object"&&It(e.toString)&&e.toString()==="[object FormData]"))},cI=hn("URLSearchParams"),[uI,dI,fI,pI]=["ReadableStream","Request","Response","Headers"].map(hn),hI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ra(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),_s(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,x1=e=>!Ti(e)&&e!==Hr;function bf(){const{caseless:e}=x1(this)&&this||{},t={},n=(r,o)=>{const s=e&&y1(t,o)||o;Xa(t[s])&&Xa(r)?t[s]=bf(t[s],r):Xa(r)?t[s]=bf({},r):_s(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(ra(t,(o,s)=>{n&&It(o)?e[s]=m1(o,n):e[s]=o},{allOwnKeys:r}),e),gI=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vI=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},yI=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Sh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},xI=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},wI=e=>{if(!e)return null;if(_s(e))return e;let t=e.length;if(!v1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},SI=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sh(Uint8Array)),bI=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},_I=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},CI=hn("HTMLFormElement"),EI=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Hg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),NI=hn("RegExp"),w1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ra(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},kI=e=>{w1(e,(t,n)=>{if(It(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(It(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},RI=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return _s(e)?r(e):r(String(e).split(t)),n},TI=()=>{},PI=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Fu="abcdefghijklmnopqrstuvwxyz",Kg="0123456789",S1={DIGIT:Kg,ALPHA:Fu,ALPHA_DIGIT:Fu+Fu.toUpperCase()+Kg},AI=(e=16,t=S1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function MI(e){return!!(e&&It(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const jI=e=>{const t=new Array(10),n=(r,o)=>{if(Ic(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=_s(r)?[]:{};return ra(r,(i,a)=>{const l=n(i,o+1);!Ti(l)&&(s[a]=l)}),t[o]=void 0,s}}return r};return n(e,0)},OI=hn("AsyncFunction"),II=e=>e&&(Ic(e)||It(e))&&It(e.then)&&It(e.catch),b1=((e,t)=>e?setImmediate:t?((n,r)=>(Hr.addEventListener("message",({source:o,data:s})=>{o===Hr&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Hr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",It(Hr.postMessage)),DI=typeof queueMicrotask<"u"?queueMicrotask.bind(Hr):typeof process<"u"&&process.nextTick||b1,T={isArray:_s,isArrayBuffer:g1,isBuffer:JO,isFormData:lI,isArrayBufferView:eI,isString:tI,isNumber:v1,isBoolean:nI,isObject:Ic,isPlainObject:Xa,isReadableStream:uI,isRequest:dI,isResponse:fI,isHeaders:pI,isUndefined:Ti,isDate:rI,isFile:oI,isBlob:sI,isRegExp:NI,isFunction:It,isStream:aI,isURLSearchParams:cI,isTypedArray:SI,isFileList:iI,forEach:ra,merge:bf,extend:mI,trim:hI,stripBOM:gI,inherits:vI,toFlatObject:yI,kindOf:jc,kindOfTest:hn,endsWith:xI,toArray:wI,forEachEntry:bI,matchAll:_I,isHTMLForm:CI,hasOwnProperty:Hg,hasOwnProp:Hg,reduceDescriptors:w1,freezeMethods:kI,toObjectSet:RI,toCamelCase:EI,noop:TI,toFiniteNumber:PI,findKey:y1,global:Hr,isContextDefined:x1,ALPHABET:S1,generateString:AI,isSpecCompliantForm:MI,toJSONObject:jI,isAsyncFn:OI,isThenable:II,setImmediate:b1,asap:DI};function le(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}T.inherits(le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:T.toJSONObject(this.config),code:this.code,status:this.status}}});const _1=le.prototype,C1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{C1[e]={value:e}});Object.defineProperties(le,C1);Object.defineProperty(_1,"isAxiosError",{value:!0});le.from=(e,t,n,r,o,s)=>{const i=Object.create(_1);return T.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),le.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const LI=null;function _f(e){return T.isPlainObject(e)||T.isArray(e)}function E1(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function Zg(e,t,n){return e?e.concat(t).map(function(o,s){return o=E1(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function FI(e){return T.isArray(e)&&!e.some(_f)}const $I=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function Dc(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,S){return!T.isUndefined(S[g])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&T.isSpecCompliantForm(t);if(!T.isFunction(o))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(T.isDate(v))return v.toISOString();if(!l&&T.isBlob(v))throw new le("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(v)||T.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,g,S){let y=v;if(v&&!S&&typeof v=="object"){if(T.endsWith(g,"{}"))g=r?g:g.slice(0,-2),v=JSON.stringify(v);else if(T.isArray(v)&&FI(v)||(T.isFileList(v)||T.endsWith(g,"[]"))&&(y=T.toArray(v)))return g=E1(g),y.forEach(function(w,_){!(T.isUndefined(w)||w===null)&&t.append(i===!0?Zg([g],_,s):i===null?g:g+"[]",c(w))}),!1}return _f(v)?!0:(t.append(Zg(S,g,s),c(v)),!1)}const p=[],h=Object.assign($I,{defaultVisitor:u,convertValue:c,isVisitable:_f});function x(v,g){if(!T.isUndefined(v)){if(p.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));p.push(v),T.forEach(v,function(y,m){(!(T.isUndefined(y)||y===null)&&o.call(t,y,T.isString(m)?m.trim():m,g,h))===!0&&x(y,g?g.concat(m):[m])}),p.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Gg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function bh(e,t){this._pairs=[],e&&Dc(e,this,t)}const N1=bh.prototype;N1.append=function(t,n){this._pairs.push([t,n])};N1.toString=function(t){const n=t?function(r){return t.call(this,r,Gg)}:Gg;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function zI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function k1(e,t,n){if(!t)return e;const r=n&&n.encode||zI,o=n&&n.serialize;let s;if(o?s=o(t,n):s=T.isURLSearchParams(t)?t.toString():new bh(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Yg{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){T.forEach(this.handlers,function(r){r!==null&&t(r)})}}const R1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},VI=typeof URLSearchParams<"u"?URLSearchParams:bh,UI=typeof FormData<"u"?FormData:null,BI=typeof Blob<"u"?Blob:null,WI={isBrowser:!0,classes:{URLSearchParams:VI,FormData:UI,Blob:BI},protocols:["http","https","file","blob","url","data"]},_h=typeof window<"u"&&typeof document<"u",Cf=typeof navigator=="object"&&navigator||void 0,HI=_h&&(!Cf||["ReactNative","NativeScript","NS"].indexOf(Cf.product)<0),KI=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ZI=_h&&window.location.href||"http://localhost",GI=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_h,hasStandardBrowserEnv:HI,hasStandardBrowserWebWorkerEnv:KI,navigator:Cf,origin:ZI},Symbol.toStringTag,{value:"Module"})),kt={...GI,...WI};function YI(e,t){return Dc(e,new kt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return kt.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function XI(e){return T.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function qI(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&T.isArray(o)?o.length:i,l?(T.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!T.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&T.isArray(o[i])&&(o[i]=qI(o[i])),!a)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,o)=>{t(XI(r),o,n,0)}),n}return null}function QI(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const oa={transitional:R1,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=T.isObject(t);if(s&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return o?JSON.stringify(T1(t)):t;if(T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t)||T.isReadableStream(t))return t;if(T.isArrayBufferView(t))return t.buffer;if(T.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return YI(t,this.formSerializer).toString();if((a=T.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Dc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),QI(t)):t}],transformResponse:[function(t){const n=this.transitional||oa.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(T.isResponse(t)||T.isReadableStream(t))return t;if(t&&T.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?le.from(a,le.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kt.classes.FormData,Blob:kt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch"],e=>{oa.headers[e]={}});const JI=T.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eD=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&JI[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Xg=Symbol("internals");function Is(e){return e&&String(e).trim().toLowerCase()}function qa(e){return e===!1||e==null?e:T.isArray(e)?e.map(qa):String(e)}function tD(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const nD=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $u(e,t,n,r,o){if(T.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function rD(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function oD(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class Rt{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,c){const u=Is(l);if(!u)throw new Error("header name must be a non-empty string");const p=T.findKey(o,u);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||l]=qa(a))}const i=(a,l)=>T.forEach(a,(c,u)=>s(c,u,l));if(T.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(T.isString(t)&&(t=t.trim())&&!nD(t))i(eD(t),n);else if(T.isHeaders(t))for(const[a,l]of t.entries())s(l,a,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=Is(t),t){const r=T.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return tD(o);if(T.isFunction(n))return n.call(this,o,r);if(T.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Is(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||$u(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Is(i),i){const a=T.findKey(r,i);a&&(!n||$u(r,r[a],a,n))&&(delete r[a],o=!0)}}return T.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||$u(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return T.forEach(this,(o,s)=>{const i=T.findKey(r,s);if(i){n[i]=qa(o),delete n[s];return}const a=t?rD(s):String(s).trim();a!==s&&delete n[s],n[a]=qa(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&T.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Xg]=this[Xg]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Is(i);r[a]||(oD(o,i),r[a]=!0)}return T.isArray(t)?t.forEach(s):s(t),this}}Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(Rt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});T.freezeMethods(Rt);function zu(e,t){const n=this||oa,r=t||n,o=Rt.from(r.headers);let s=r.data;return T.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function P1(e){return!!(e&&e.__CANCEL__)}function Cs(e,t,n){le.call(this,e??"canceled",le.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(Cs,le,{__CANCEL__:!0});function A1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new le("Request failed with status code "+n.status,[le.ERR_BAD_REQUEST,le.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function sD(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function iD(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[s];i||(i=c),n[o]=l,r[o]=c;let p=s,h=0;for(;p!==o;)h+=n[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i{n=u,o=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),p=u-n;p>=r?i(c,u):(o=c,s||(s=setTimeout(()=>{s=null,i(o)},r-p)))},()=>o&&i(o)]}const jl=(e,t,n=3)=>{let r=0;const o=iD(50,250);return aD(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=i-r,c=o(l),u=i<=a;r=i;const p={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},qg=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Qg=e=>(...t)=>T.asap(()=>e(...t)),lD=kt.hasStandardBrowserEnv?function(){const t=kt.navigator&&/(msie|trident)/i.test(kt.navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=T.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),cD=kt.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];T.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),T.isString(r)&&i.push("path="+r),T.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function uD(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dD(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function M1(e,t){return e&&!uD(t)?dD(e,t):t}const Jg=e=>e instanceof Rt?{...e}:e;function ro(e,t){t=t||{};const n={};function r(c,u,p){return T.isPlainObject(c)&&T.isPlainObject(u)?T.merge.call({caseless:p},c,u):T.isPlainObject(u)?T.merge({},u):T.isArray(u)?u.slice():u}function o(c,u,p){if(T.isUndefined(u)){if(!T.isUndefined(c))return r(void 0,c,p)}else return r(c,u,p)}function s(c,u){if(!T.isUndefined(u))return r(void 0,u)}function i(c,u){if(T.isUndefined(u)){if(!T.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,p){if(p in t)return r(c,u);if(p in e)return r(void 0,c)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,u)=>o(Jg(c),Jg(u),!0)};return T.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=l[u]||o,h=p(e[u],t[u],u);T.isUndefined(h)&&p!==a||(n[u]=h)}),n}const j1=e=>{const t=ro({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;t.headers=i=Rt.from(i),t.url=k1(M1(t.baseURL,t.url),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(T.isFormData(n)){if(kt.hasStandardBrowserEnv||kt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[c,...u]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...u].join("; "))}}if(kt.hasStandardBrowserEnv&&(r&&T.isFunction(r)&&(r=r(t)),r||r!==!1&&lD(t.url))){const c=o&&s&&cD.read(s);c&&i.set(o,c)}return t},fD=typeof XMLHttpRequest<"u",pD=fD&&function(e){return new Promise(function(n,r){const o=j1(e);let s=o.data;const i=Rt.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,p,h,x,v;function g(){x&&x(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function y(){if(!S)return;const w=Rt.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:w,config:e,request:S};A1(function(E){n(E),g()},function(E){r(E),g()},b),S=null}"onloadend"in S?S.onloadend=y:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(y)},S.onabort=function(){S&&(r(new le("Request aborted",le.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new le("Network Error",le.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||R1;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new le(_,b.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,e,S)),S=null},s===void 0&&i.setContentType(null),"setRequestHeader"in S&&T.forEach(i.toJSON(),function(_,b){S.setRequestHeader(b,_)}),T.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),a&&a!=="json"&&(S.responseType=o.responseType),c&&([h,v]=jl(c,!0),S.addEventListener("progress",h)),l&&S.upload&&([p,x]=jl(l),S.upload.addEventListener("progress",p),S.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(u=w=>{S&&(r(!w||w.type?new Cs(null,e,S):w),S.abort(),S=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const m=sD(o.url);if(m&&kt.protocols.indexOf(m)===-1){r(new le("Unsupported protocol "+m+":",le.ERR_BAD_REQUEST,e));return}S.send(s||null)})},hD=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof le?u:new Cs(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new le(`timeout ${t} of ms exceeded`,le.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>T.asap(a),l}},mD=function*(e,t){let n=e.byteLength;if(n{const o=gD(e,t);let s=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let p=u.byteLength;if(n){let h=s+=p;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Lc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",O1=Lc&&typeof ReadableStream=="function",yD=Lc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),I1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xD=O1&&I1(()=>{let e=!1;const t=new Request(kt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),tv=64*1024,Ef=O1&&I1(()=>T.isReadableStream(new Response("").body)),Ol={stream:Ef&&(e=>e.body)};Lc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ol[t]&&(Ol[t]=T.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new le(`Response type '${t}' is not supported`,le.ERR_NOT_SUPPORT,r)})})})(new Response);const wD=async e=>{if(e==null)return 0;if(T.isBlob(e))return e.size;if(T.isSpecCompliantForm(e))return(await new Request(kt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(T.isArrayBufferView(e)||T.isArrayBuffer(e))return e.byteLength;if(T.isURLSearchParams(e)&&(e=e+""),T.isString(e))return(await yD(e)).byteLength},SD=async(e,t)=>{const n=T.toFiniteNumber(e.getContentLength());return n??wD(t)},bD=Lc&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:p="same-origin",fetchOptions:h}=j1(e);c=c?(c+"").toLowerCase():"text";let x=hD([o,s&&s.toAbortSignal()],i),v;const g=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let S;try{if(l&&xD&&n!=="get"&&n!=="head"&&(S=await SD(u,r))!==0){let b=new Request(t,{method:"POST",body:r,duplex:"half"}),N;if(T.isFormData(r)&&(N=b.headers.get("content-type"))&&u.setContentType(N),b.body){const[E,k]=qg(S,jl(Qg(l)));r=ev(b.body,tv,E,k)}}T.isString(p)||(p=p?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...h,signal:x,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?p:void 0});let m=await fetch(v);const w=Ef&&(c==="stream"||c==="response");if(Ef&&(a||w&&g)){const b={};["status","statusText","headers"].forEach(A=>{b[A]=m[A]});const N=T.toFiniteNumber(m.headers.get("content-length")),[E,k]=a&&qg(N,jl(Qg(a),!0))||[];m=new Response(ev(m.body,tv,E,()=>{k&&k(),g&&g()}),b)}c=c||"text";let _=await Ol[T.findKey(Ol,c)||"text"](m,e);return!w&&g&&g(),await new Promise((b,N)=>{A1(b,N,{data:_,headers:Rt.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:v})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new le("Network Error",le.ERR_NETWORK,e,v),{cause:y.cause||y}):le.from(y,y&&y.code,e,v)}}),Nf={http:LI,xhr:pD,fetch:bD};T.forEach(Nf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nv=e=>`- ${e}`,_D=e=>T.isFunction(e)||e===null||e===!1,D1={getAdapter:e=>{e=T.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since : -`+s.map(nv).join(` -`):" "+nv(s[0]):"as no adapter specified";throw new le("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Nf};function Vu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cs(null,e)}function rv(e){return Vu(e),e.headers=Rt.from(e.headers),e.data=zu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),D1.getAdapter(e.adapter||oa.adapter)(e).then(function(r){return Vu(e),r.data=zu.call(e,e.transformResponse,r),r.headers=Rt.from(r.headers),r},function(r){return P1(r)||(Vu(e),r&&r.response&&(r.response.data=zu.call(e,e.transformResponse,r.response),r.response.headers=Rt.from(r.response.headers))),Promise.reject(r)})}const L1="1.7.7",Ch={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ch[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ov={};Ch.transitional=function(t,n,r){function o(s,i){return"[Axios v"+L1+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new le(o(i," has been removed"+(n?" in "+n:"")),le.ERR_DEPRECATED);return n&&!ov[i]&&(ov[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}};function CD(e,t,n){if(typeof e!="object")throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new le("option "+s+" must be "+l,le.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new le("Unknown option "+s,le.ERR_BAD_OPTION)}}const kf={assertOptions:CD,validators:Ch},rr=kf.validators;class Gr{constructor(t){this.defaults=t,this.interceptors={request:new Yg,response:new Yg}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ro(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&kf.assertOptions(r,{silentJSONParsing:rr.transitional(rr.boolean),forcedJSONParsing:rr.transitional(rr.boolean),clarifyTimeoutError:rr.transitional(rr.boolean)},!1),o!=null&&(T.isFunction(o)?n.paramsSerializer={serialize:o}:kf.assertOptions(o,{encode:rr.function,serialize:rr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&T.merge(s.common,s[n.method]);s&&T.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),n.headers=Rt.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,p=0,h;if(!l){const v=[rv.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),h=v.length,u=Promise.resolve(n);p{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new Cs(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Eh(function(o){t=o}),cancel:t}}}function ED(e){return function(n){return e.apply(null,n)}}function ND(e){return T.isObject(e)&&e.isAxiosError===!0}const Rf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rf).forEach(([e,t])=>{Rf[t]=e});function F1(e){const t=new Gr(e),n=m1(Gr.prototype.request,t);return T.extend(n,Gr.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return F1(ro(e,o))},n}const Re=F1(oa);Re.Axios=Gr;Re.CanceledError=Cs;Re.CancelToken=Eh;Re.isCancel=P1;Re.VERSION=L1;Re.toFormData=Dc;Re.AxiosError=le;Re.Cancel=Re.CanceledError;Re.all=function(t){return Promise.all(t)};Re.spread=ED;Re.isAxiosError=ND;Re.mergeConfig=ro;Re.AxiosHeaders=Rt;Re.formToJSON=e=>T1(T.isHTMLForm(e)?new FormData(e):e);Re.getAdapter=D1.getAdapter;Re.HttpStatusCode=Rf;Re.default=Re;const $1=(e,t)=>{const[n,r]=f.useState(null),[o,s]=f.useState(!0),[i,a]=f.useState(null),[l,c]=f.useState(null);return f.useEffect(()=>{(async()=>{var p;try{const h=await Re.get(e,{headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}});r(h.data)}catch(h){Re.isAxiosError(h)?(a(h),c(((p=h.response)==null?void 0:p.status)||null)):a(null),a(h)}finally{s(!1)}})()},[e]),{data:n,loading:o,error:i,errorCode:l}};var sa=e=>e.type==="checkbox",$o=e=>e instanceof Date,ft=e=>e==null;const z1=e=>typeof e=="object";var He=e=>!ft(e)&&!Array.isArray(e)&&z1(e)&&!$o(e),V1=e=>He(e)&&e.target?sa(e.target)?e.target.checked:e.target.value:e,kD=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,U1=(e,t)=>e.has(kD(t)),RD=e=>{const t=e.constructor&&e.constructor.prototype;return He(t)&&t.hasOwnProperty("isPrototypeOf")},Nh=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function wt(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Nh&&(e instanceof Blob||e instanceof FileList))&&(n||He(e)))if(t=n?[]:{},!n&&!RD(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=wt(e[r]));else return e;return t}var Fc=e=>Array.isArray(e)?e.filter(Boolean):[],Ve=e=>e===void 0,z=(e,t,n)=>{if(!t||!He(e))return n;const r=Fc(t.split(/[,[\].]+?/)).reduce((o,s)=>ft(o)?o:o[s],e);return Ve(r)||r===e?Ve(e[t])?n:e[t]:r},Vt=e=>typeof e=="boolean",kh=e=>/^\w*$/.test(e),B1=e=>Fc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),_e=(e,t,n)=>{let r=-1;const o=kh(t)?[t]:B1(t),s=o.length,i=s-1;for(;++rhe.useContext(W1),TD=e=>{const{children:t,...n}=e;return he.createElement(W1.Provider,{value:n},t)};var H1=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const i=s;return t._proxyFormState[i]!==nn.all&&(t._proxyFormState[i]=!r||nn.all),n&&(n[i]=!0),e[i]}});return o},St=e=>He(e)&&!Object.keys(e).length,K1=(e,t,n,r)=>{n(e);const{name:o,...s}=e;return St(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(i=>t[i]===(!r||nn.all))},ri=e=>Array.isArray(e)?e:[e],Z1=(e,t,n)=>!e||!t||e===t||ri(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Rh(e){const t=he.useRef(e);t.current=e,he.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function PD(e){const t=$c(),{control:n=t.control,disabled:r,name:o,exact:s}=e||{},[i,a]=he.useState(n._formState),l=he.useRef(!0),c=he.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=he.useRef(o);return u.current=o,Rh({disabled:r,next:p=>l.current&&Z1(u.current,p.name,s)&&K1(p,c.current,n._updateFormState)&&a({...n._formState,...p}),subject:n._subjects.state}),he.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),H1(i,n,c.current,!1)}var xn=e=>typeof e=="string",G1=(e,t,n,r,o)=>xn(e)?(r&&t.watch.add(e),z(n,e,o)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),z(n,s))):(r&&(t.watchAll=!0),n);function AD(e){const t=$c(),{control:n=t.control,name:r,defaultValue:o,disabled:s,exact:i}=e||{},a=he.useRef(r);a.current=r,Rh({disabled:s,subject:n._subjects.values,next:u=>{Z1(a.current,u.name,i)&&c(wt(G1(a.current,n._names,u.values||n._formValues,!1,o)))}});const[l,c]=he.useState(n._getWatch(r,o));return he.useEffect(()=>n._removeUnmounted()),l}function MD(e){const t=$c(),{name:n,disabled:r,control:o=t.control,shouldUnregister:s}=e,i=U1(o._names.array,n),a=AD({control:o,name:n,defaultValue:z(o._formValues,n,z(o._defaultValues,n,e.defaultValue)),exact:!0}),l=PD({control:o,name:n,exact:!0}),c=he.useRef(o.register(n,{...e.rules,value:a,...Vt(e.disabled)?{disabled:e.disabled}:{}}));return he.useEffect(()=>{const u=o._options.shouldUnregister||s,p=(h,x)=>{const v=z(o._fields,h);v&&v._f&&(v._f.mount=x)};if(p(n,!0),u){const h=wt(z(o._options.defaultValues,n));_e(o._defaultValues,n,h),Ve(z(o._formValues,n))&&_e(o._formValues,n,h)}return()=>{(i?u&&!o._state.action:u)?o.unregister(n):p(n,!1)}},[n,o,i,s]),he.useEffect(()=>{z(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:z(o._fields,n)._f.value})},[r,n,o]),{field:{name:n,value:a,...Vt(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:he.useCallback(u=>c.current.onChange({target:{value:V1(u),name:n},type:Il.CHANGE}),[n]),onBlur:he.useCallback(()=>c.current.onBlur({target:{value:z(o._formValues,n),name:n},type:Il.BLUR}),[n,o]),ref:he.useCallback(u=>{const p=z(o._fields,n);p&&u&&(p._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:h=>u.setCustomValidity(h),reportValidity:()=>u.reportValidity()})},[o._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!z(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!z(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!z(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!z(l.validatingFields,n)},error:{enumerable:!0,get:()=>z(l.errors,n)}})}}const jD=e=>e.render(MD(e));var Y1=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},sv=e=>({isOnSubmit:!e||e===nn.onSubmit,isOnBlur:e===nn.onBlur,isOnChange:e===nn.onChange,isOnAll:e===nn.all,isOnTouch:e===nn.onTouched}),iv=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const oi=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const s=z(e,o);if(s){const{_f:i,...a}=s;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],o)&&!r)return!0;if(i.ref&&t(i.ref,i.name)&&!r)return!0;if(oi(a,t))break}else if(He(a)&&oi(a,t))break}}};var OD=(e,t,n)=>{const r=ri(z(e,n));return _e(r,"root",t[n]),_e(e,n,r),e},Th=e=>e.type==="file",Ln=e=>typeof e=="function",Dl=e=>{if(!Nh)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Qa=e=>xn(e),Ph=e=>e.type==="radio",Ll=e=>e instanceof RegExp;const av={value:!1,isValid:!1},lv={value:!0,isValid:!0};var X1=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ve(e[0].attributes.value)?Ve(e[0].value)||e[0].value===""?lv:{value:e[0].value,isValid:!0}:lv:av}return av};const cv={isValid:!1,value:null};var q1=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,cv):cv;function uv(e,t,n="validate"){if(Qa(e)||Array.isArray(e)&&e.every(Qa)||Vt(e)&&!e)return{type:n,message:Qa(e)?e:"",ref:t}}var Eo=e=>He(e)&&!Ll(e)?e:{value:e,message:""},dv=async(e,t,n,r,o)=>{const{ref:s,refs:i,required:a,maxLength:l,minLength:c,min:u,max:p,pattern:h,validate:x,name:v,valueAsNumber:g,mount:S,disabled:y}=e._f,m=z(t,v);if(!S||y)return{};const w=i?i[0]:s,_=I=>{r&&w.reportValidity&&(w.setCustomValidity(Vt(I)?"":I||""),w.reportValidity())},b={},N=Ph(s),E=sa(s),k=N||E,A=(g||Th(s))&&Ve(s.value)&&Ve(m)||Dl(s)&&s.value===""||m===""||Array.isArray(m)&&!m.length,O=Y1.bind(null,v,n,b),q=(I,B,Y,re=Pn.maxLength,Q=Pn.minLength)=>{const oe=I?B:Y;b[v]={type:I?re:Q,message:oe,ref:s,...O(I?re:Q,oe)}};if(o?!Array.isArray(m)||!m.length:a&&(!k&&(A||ft(m))||Vt(m)&&!m||E&&!X1(i).isValid||N&&!q1(i).isValid)){const{value:I,message:B}=Qa(a)?{value:!!a,message:a}:Eo(a);if(I&&(b[v]={type:Pn.required,message:B,ref:w,...O(Pn.required,B)},!n))return _(B),b}if(!A&&(!ft(u)||!ft(p))){let I,B;const Y=Eo(p),re=Eo(u);if(!ft(m)&&!isNaN(m)){const Q=s.valueAsNumber||m&&+m;ft(Y.value)||(I=Q>Y.value),ft(re.value)||(B=Qnew Date(new Date().toDateString()+" "+U),M=s.type=="time",j=s.type=="week";xn(Y.value)&&m&&(I=M?oe(m)>oe(Y.value):j?m>Y.value:Q>new Date(Y.value)),xn(re.value)&&m&&(B=M?oe(m)+I.value,re=!ft(B.value)&&m.length<+B.value;if((Y||re)&&(q(Y,I.message,B.message),!n))return _(b[v].message),b}if(h&&!A&&xn(m)){const{value:I,message:B}=Eo(h);if(Ll(I)&&!m.match(I)&&(b[v]={type:Pn.pattern,message:B,ref:s,...O(Pn.pattern,B)},!n))return _(B),b}if(x){if(Ln(x)){const I=await x(m,t),B=uv(I,w);if(B&&(b[v]={...B,...O(Pn.validate,B.message)},!n))return _(B.message),b}else if(He(x)){let I={};for(const B in x){if(!St(I)&&!n)break;const Y=uv(await x[B](m,t),w,B);Y&&(I={...Y,...O(B,Y.message)},_(Y.message),n&&(b[v]=I))}if(!St(I)&&(b[v]={ref:w,...I},!n))return b}}return _(!0),b};function ID(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:o=>{for(const s of e)s.next&&s.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(s=>s!==o)}}),unsubscribe:()=>{e=[]}}},Fl=e=>ft(e)||!z1(e);function cr(e,t){if(Fl(e)||Fl(t))return e===t;if($o(e)&&$o(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const s=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const i=t[o];if($o(s)&&$o(i)||He(s)&&He(i)||Array.isArray(s)&&Array.isArray(i)?!cr(s,i):s!==i)return!1}}return!0}var Q1=e=>e.type==="select-multiple",LD=e=>Ph(e)||sa(e),Bu=e=>Dl(e)&&e.isConnected,J1=e=>{for(const t in e)if(Ln(e[t]))return!0;return!1};function $l(e,t={}){const n=Array.isArray(e);if(He(e)||n)for(const r in e)Array.isArray(e[r])||He(e[r])&&!J1(e[r])?(t[r]=Array.isArray(e[r])?[]:{},$l(e[r],t[r])):ft(e[r])||(t[r]=!0);return t}function e_(e,t,n){const r=Array.isArray(e);if(He(e)||r)for(const o in e)Array.isArray(e[o])||He(e[o])&&!J1(e[o])?Ve(t)||Fl(n[o])?n[o]=Array.isArray(e[o])?$l(e[o],[]):{...$l(e[o])}:e_(e[o],ft(t)?{}:t[o],n[o]):n[o]=!cr(e[o],t[o]);return n}var Ia=(e,t)=>e_(e,t,$l(t)),t_=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ve(e)?e:t?e===""?NaN:e&&+e:n&&xn(e)?new Date(e):r?r(e):e;function Wu(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Th(t)?t.files:Ph(t)?q1(e.refs).value:Q1(t)?[...t.selectedOptions].map(({value:n})=>n):sa(t)?X1(e.refs).value:t_(Ve(t.value)?e.ref.value:t.value,e)}var FD=(e,t,n,r)=>{const o={};for(const s of e){const i=z(t,s);i&&_e(o,s,i._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Ds=e=>Ve(e)?e:Ll(e)?e.source:He(e)?Ll(e.value)?e.value.source:e.value:e;const fv="AsyncFunction";var $D=e=>(!e||!e.validate)&&!!(Ln(e.validate)&&e.validate.constructor.name===fv||He(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===fv)),zD=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function pv(e,t,n){const r=z(e,n);if(r||kh(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const s=o.join("."),i=z(t,s),a=z(e,s);if(i&&!Array.isArray(i)&&n!==s)return{name:n};if(a&&a.type)return{name:s,error:a};o.pop()}return{name:n}}var VD=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,UD=(e,t)=>!Fc(z(e,t)).length&&Ke(e,t);const BD={mode:nn.onSubmit,reValidateMode:nn.onChange,shouldFocusError:!0};function WD(e={}){let t={...BD,...e},n={submitCount:0,isDirty:!1,isLoading:Ln(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=He(t.defaultValues)||He(t.values)?wt(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:wt(o),i={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Uu(),array:Uu(),state:Uu()},h=sv(t.mode),x=sv(t.reValidateMode),v=t.criteriaMode===nn.all,g=C=>R=>{clearTimeout(c),c=setTimeout(C,R)},S=async C=>{if(u.isValid||C){const R=t.resolver?St((await k()).errors):await O(r,!0);R!==n.isValid&&p.state.next({isValid:R})}},y=(C,R)=>{(u.isValidating||u.validatingFields)&&((C||Array.from(a.mount)).forEach(P=>{P&&(R?_e(n.validatingFields,P,R):Ke(n.validatingFields,P))}),p.state.next({validatingFields:n.validatingFields,isValidating:!St(n.validatingFields)}))},m=(C,R=[],P,H,V=!0,$=!0)=>{if(H&&P){if(i.action=!0,$&&Array.isArray(z(r,C))){const ne=P(z(r,C),H.argA,H.argB);V&&_e(r,C,ne)}if($&&Array.isArray(z(n.errors,C))){const ne=P(z(n.errors,C),H.argA,H.argB);V&&_e(n.errors,C,ne),UD(n.errors,C)}if(u.touchedFields&&$&&Array.isArray(z(n.touchedFields,C))){const ne=P(z(n.touchedFields,C),H.argA,H.argB);V&&_e(n.touchedFields,C,ne)}u.dirtyFields&&(n.dirtyFields=Ia(o,s)),p.state.next({name:C,isDirty:I(C,R),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else _e(s,C,R)},w=(C,R)=>{_e(n.errors,C,R),p.state.next({errors:n.errors})},_=C=>{n.errors=C,p.state.next({errors:n.errors,isValid:!1})},b=(C,R,P,H)=>{const V=z(r,C);if(V){const $=z(s,C,Ve(P)?z(o,C):P);Ve($)||H&&H.defaultChecked||R?_e(s,C,R?$:Wu(V._f)):re(C,$),i.mount&&S()}},N=(C,R,P,H,V)=>{let $=!1,ne=!1;const Se={name:C},Ye=!!(z(r,C)&&z(r,C)._f&&z(r,C)._f.disabled);if(!P||H){u.isDirty&&(ne=n.isDirty,n.isDirty=Se.isDirty=I(),$=ne!==Se.isDirty);const Xe=Ye||cr(z(o,C),R);ne=!!(!Ye&&z(n.dirtyFields,C)),Xe||Ye?Ke(n.dirtyFields,C):_e(n.dirtyFields,C,!0),Se.dirtyFields=n.dirtyFields,$=$||u.dirtyFields&&ne!==!Xe}if(P){const Xe=z(n.touchedFields,C);Xe||(_e(n.touchedFields,C,P),Se.touchedFields=n.touchedFields,$=$||u.touchedFields&&Xe!==P)}return $&&V&&p.state.next(Se),$?Se:{}},E=(C,R,P,H)=>{const V=z(n.errors,C),$=u.isValid&&Vt(R)&&n.isValid!==R;if(e.delayError&&P?(l=g(()=>w(C,P)),l(e.delayError)):(clearTimeout(c),l=null,P?_e(n.errors,C,P):Ke(n.errors,C)),(P?!cr(V,P):V)||!St(H)||$){const ne={...H,...$&&Vt(R)?{isValid:R}:{},errors:n.errors,name:C};n={...n,...ne},p.state.next(ne)}},k=async C=>{y(C,!0);const R=await t.resolver(s,t.context,FD(C||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return y(C),R},A=async C=>{const{errors:R}=await k(C);if(C)for(const P of C){const H=z(R,P);H?_e(n.errors,P,H):Ke(n.errors,P)}else n.errors=R;return R},O=async(C,R,P={valid:!0})=>{for(const H in C){const V=C[H];if(V){const{_f:$,...ne}=V;if($){const Se=a.array.has($.name),Ye=V._f&&$D(V._f);Ye&&u.validatingFields&&y([H],!0);const Xe=await dv(V,s,v,t.shouldUseNativeValidation&&!R,Se);if(Ye&&u.validatingFields&&y([H]),Xe[$.name]&&(P.valid=!1,R))break;!R&&(z(Xe,$.name)?Se?OD(n.errors,Xe,$.name):_e(n.errors,$.name,Xe[$.name]):Ke(n.errors,$.name))}!St(ne)&&await O(ne,R,P)}}return P.valid},q=()=>{for(const C of a.unMount){const R=z(r,C);R&&(R._f.refs?R._f.refs.every(P=>!Bu(P)):!Bu(R._f.ref))&&Te(C)}a.unMount=new Set},I=(C,R)=>(C&&R&&_e(s,C,R),!cr(te(),o)),B=(C,R,P)=>G1(C,a,{...i.mount?s:Ve(R)?o:xn(C)?{[C]:R}:R},P,R),Y=C=>Fc(z(i.mount?s:o,C,e.shouldUnregister?z(o,C,[]):[])),re=(C,R,P={})=>{const H=z(r,C);let V=R;if(H){const $=H._f;$&&(!$.disabled&&_e(s,C,t_(R,$)),V=Dl($.ref)&&ft(R)?"":R,Q1($.ref)?[...$.ref.options].forEach(ne=>ne.selected=V.includes(ne.value)):$.refs?sa($.ref)?$.refs.length>1?$.refs.forEach(ne=>(!ne.defaultChecked||!ne.disabled)&&(ne.checked=Array.isArray(V)?!!V.find(Se=>Se===ne.value):V===ne.value)):$.refs[0]&&($.refs[0].checked=!!V):$.refs.forEach(ne=>ne.checked=ne.value===V):Th($.ref)?$.ref.value="":($.ref.value=V,$.ref.type||p.values.next({name:C,values:{...s}})))}(P.shouldDirty||P.shouldTouch)&&N(C,V,P.shouldTouch,P.shouldDirty,!0),P.shouldValidate&&U(C)},Q=(C,R,P)=>{for(const H in R){const V=R[H],$=`${C}.${H}`,ne=z(r,$);(a.array.has(C)||!Fl(V)||ne&&!ne._f)&&!$o(V)?Q($,V,P):re($,V,P)}},oe=(C,R,P={})=>{const H=z(r,C),V=a.array.has(C),$=wt(R);_e(s,C,$),V?(p.array.next({name:C,values:{...s}}),(u.isDirty||u.dirtyFields)&&P.shouldDirty&&p.state.next({name:C,dirtyFields:Ia(o,s),isDirty:I(C,$)})):H&&!H._f&&!ft($)?Q(C,$,P):re(C,$,P),iv(C,a)&&p.state.next({...n}),p.values.next({name:i.mount?C:void 0,values:{...s}})},M=async C=>{i.mount=!0;const R=C.target;let P=R.name,H=!0;const V=z(r,P),$=()=>R.type?Wu(V._f):V1(C),ne=Se=>{H=Number.isNaN(Se)||cr(Se,z(s,P,Se))};if(V){let Se,Ye;const Xe=$(),$r=C.type===Il.BLUR||C.type===Il.FOCUS_OUT,$C=!zD(V._f)&&!t.resolver&&!z(n.errors,P)&&!V._f.deps||VD($r,z(n.touchedFields,P),n.isSubmitted,x,h),Yc=iv(P,a,$r);_e(s,P,Xe),$r?(V._f.onBlur&&V._f.onBlur(C),l&&l(0)):V._f.onChange&&V._f.onChange(C);const Xc=N(P,Xe,$r,!1),zC=!St(Xc)||Yc;if(!$r&&p.values.next({name:P,type:C.type,values:{...s}}),$C)return u.isValid&&(e.mode==="onBlur"?$r&&S():S()),zC&&p.state.next({name:P,...Yc?{}:Xc});if(!$r&&Yc&&p.state.next({...n}),t.resolver){const{errors:Bh}=await k([P]);if(ne(Xe),H){const VC=pv(n.errors,r,P),Wh=pv(Bh,r,VC.name||P);Se=Wh.error,P=Wh.name,Ye=St(Bh)}}else y([P],!0),Se=(await dv(V,s,v,t.shouldUseNativeValidation))[P],y([P]),ne(Xe),H&&(Se?Ye=!1:u.isValid&&(Ye=await O(r,!0)));H&&(V._f.deps&&U(V._f.deps),E(P,Ye,Se,Xc))}},j=(C,R)=>{if(z(n.errors,R)&&C.focus)return C.focus(),1},U=async(C,R={})=>{let P,H;const V=ri(C);if(t.resolver){const $=await A(Ve(C)?C:V);P=St($),H=C?!V.some(ne=>z($,ne)):P}else C?(H=(await Promise.all(V.map(async $=>{const ne=z(r,$);return await O(ne&&ne._f?{[$]:ne}:ne)}))).every(Boolean),!(!H&&!n.isValid)&&S()):H=P=await O(r);return p.state.next({...!xn(C)||u.isValid&&P!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:P}:{},errors:n.errors}),R.shouldFocus&&!H&&oi(r,j,C?V:a.mount),H},te=C=>{const R={...i.mount?s:o};return Ve(C)?R:xn(C)?z(R,C):C.map(P=>z(R,P))},pe=(C,R)=>({invalid:!!z((R||n).errors,C),isDirty:!!z((R||n).dirtyFields,C),error:z((R||n).errors,C),isValidating:!!z(n.validatingFields,C),isTouched:!!z((R||n).touchedFields,C)}),nt=C=>{C&&ri(C).forEach(R=>Ke(n.errors,R)),p.state.next({errors:C?n.errors:{}})},Ie=(C,R,P)=>{const H=(z(r,C,{_f:{}})._f||{}).ref,V=z(n.errors,C)||{},{ref:$,message:ne,type:Se,...Ye}=V;_e(n.errors,C,{...Ye,...R,ref:H}),p.state.next({name:C,errors:n.errors,isValid:!1}),P&&P.shouldFocus&&H&&H.focus&&H.focus()},ut=(C,R)=>Ln(C)?p.values.subscribe({next:P=>C(B(void 0,R),P)}):B(C,R,!0),Te=(C,R={})=>{for(const P of C?ri(C):a.mount)a.mount.delete(P),a.array.delete(P),R.keepValue||(Ke(r,P),Ke(s,P)),!R.keepError&&Ke(n.errors,P),!R.keepDirty&&Ke(n.dirtyFields,P),!R.keepTouched&&Ke(n.touchedFields,P),!R.keepIsValidating&&Ke(n.validatingFields,P),!t.shouldUnregister&&!R.keepDefaultValue&&Ke(o,P);p.values.next({values:{...s}}),p.state.next({...n,...R.keepDirty?{isDirty:I()}:{}}),!R.keepIsValid&&S()},J=({disabled:C,name:R,field:P,fields:H,value:V})=>{if(Vt(C)&&i.mount||C){const $=C?void 0:Ve(V)?Wu(P?P._f:z(H,R)._f):V;_e(s,R,$),N(R,$,!1,!1,!0)}},ve=(C,R={})=>{let P=z(r,C);const H=Vt(R.disabled)||Vt(e.disabled);return _e(r,C,{...P||{},_f:{...P&&P._f?P._f:{ref:{name:C}},name:C,mount:!0,...R}}),a.mount.add(C),P?J({field:P,disabled:Vt(R.disabled)?R.disabled:e.disabled,name:C,value:R.value}):b(C,!0,R.value),{...H?{disabled:R.disabled||e.disabled}:{},...t.progressive?{required:!!R.required,min:Ds(R.min),max:Ds(R.max),minLength:Ds(R.minLength),maxLength:Ds(R.maxLength),pattern:Ds(R.pattern)}:{},name:C,onChange:M,onBlur:M,ref:V=>{if(V){ve(C,R),P=z(r,C);const $=Ve(V.value)&&V.querySelectorAll&&V.querySelectorAll("input,select,textarea")[0]||V,ne=LD($),Se=P._f.refs||[];if(ne?Se.find(Ye=>Ye===$):$===P._f.ref)return;_e(r,C,{_f:{...P._f,...ne?{refs:[...Se.filter(Bu),$,...Array.isArray(z(o,C))?[{}]:[]],ref:{type:$.type,name:C}}:{ref:$}}}),b(C,!1,void 0,$)}else P=z(r,C,{}),P._f&&(P._f.mount=!1),(t.shouldUnregister||R.shouldUnregister)&&!(U1(a.array,C)&&i.action)&&a.unMount.add(C)}}},Ce=()=>t.shouldFocusError&&oi(r,j,a.mount),ye=C=>{Vt(C)&&(p.state.next({disabled:C}),oi(r,(R,P)=>{const H=z(r,P);H&&(R.disabled=H._f.disabled||C,Array.isArray(H._f.refs)&&H._f.refs.forEach(V=>{V.disabled=H._f.disabled||C}))},0,!1))},xe=(C,R)=>async P=>{let H;P&&(P.preventDefault&&P.preventDefault(),P.persist&&P.persist());let V=wt(s);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:$,values:ne}=await k();n.errors=$,V=ne}else await O(r);if(Ke(n.errors,"root"),St(n.errors)){p.state.next({errors:{}});try{await C(V,P)}catch($){H=$}}else R&&await R({...n.errors},P),Ce(),setTimeout(Ce);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:St(n.errors)&&!H,submitCount:n.submitCount+1,errors:n.errors}),H)throw H},we=(C,R={})=>{z(r,C)&&(Ve(R.defaultValue)?oe(C,wt(z(o,C))):(oe(C,R.defaultValue),_e(o,C,wt(R.defaultValue))),R.keepTouched||Ke(n.touchedFields,C),R.keepDirty||(Ke(n.dirtyFields,C),n.isDirty=R.defaultValue?I(C,wt(z(o,C))):I()),R.keepError||(Ke(n.errors,C),u.isValid&&S()),p.state.next({...n}))},rt=(C,R={})=>{const P=C?wt(C):o,H=wt(P),V=St(C),$=V?o:H;if(R.keepDefaultValues||(o=P),!R.keepValues){if(R.keepDirtyValues)for(const ne of a.mount)z(n.dirtyFields,ne)?_e($,ne,z(s,ne)):oe(ne,z($,ne));else{if(Nh&&Ve(C))for(const ne of a.mount){const Se=z(r,ne);if(Se&&Se._f){const Ye=Array.isArray(Se._f.refs)?Se._f.refs[0]:Se._f.ref;if(Dl(Ye)){const Xe=Ye.closest("form");if(Xe){Xe.reset();break}}}}r={}}s=e.shouldUnregister?R.keepDefaultValues?wt(o):{}:wt($),p.array.next({values:{...$}}),p.values.next({values:{...$}})}a={mount:R.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!u.isValid||!!R.keepIsValid||!!R.keepDirtyValues,i.watch=!!e.shouldUnregister,p.state.next({submitCount:R.keepSubmitCount?n.submitCount:0,isDirty:V?!1:R.keepDirty?n.isDirty:!!(R.keepDefaultValues&&!cr(C,o)),isSubmitted:R.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:V?{}:R.keepDirtyValues?R.keepDefaultValues&&s?Ia(o,s):n.dirtyFields:R.keepDefaultValues&&C?Ia(o,C):R.keepDirty?n.dirtyFields:{},touchedFields:R.keepTouched?n.touchedFields:{},errors:R.keepErrors?n.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Tt=(C,R)=>rt(Ln(C)?C(s):C,R);return{control:{register:ve,unregister:Te,getFieldState:pe,handleSubmit:xe,setError:Ie,_executeSchema:k,_getWatch:B,_getDirty:I,_updateValid:S,_removeUnmounted:q,_updateFieldArray:m,_updateDisabledField:J,_getFieldArray:Y,_reset:rt,_resetDefaultValues:()=>Ln(t.defaultValues)&&t.defaultValues().then(C=>{Tt(C,t.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:C=>{n={...n,...C}},_disableForm:ye,_subjects:p,_proxyFormState:u,_setErrors:_,get _fields(){return r},get _formValues(){return s},get _state(){return i},set _state(C){i=C},get _defaultValues(){return o},get _names(){return a},set _names(C){a=C},get _formState(){return n},set _formState(C){n=C},get _options(){return t},set _options(C){t={...t,...C}}},trigger:U,register:ve,handleSubmit:xe,watch:ut,setValue:oe,getValues:te,reset:Tt,resetField:we,clearErrors:nt,unregister:Te,setError:Ie,setFocus:(C,R={})=>{const P=z(r,C),H=P&&P._f;if(H){const V=H.refs?H.refs[0]:H.ref;V.focus&&(V.focus(),R.shouldSelect&&V.select())}},getFieldState:pe}}function zc(e={}){const t=he.useRef(),n=he.useRef(),[r,o]=he.useState({isDirty:!1,isValidating:!1,isLoading:Ln(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ln(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...WD(e),formState:r});const s=t.current.control;return s._options=e,Rh({subject:s._subjects.state,next:i=>{K1(i,s._proxyFormState,s._updateFormState,!0)&&o({...s._formState})}}),he.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),he.useEffect(()=>{if(s._proxyFormState.isDirty){const i=s._getDirty();i!==r.isDirty&&s._subjects.state.next({isDirty:i})}},[s,r.isDirty]),he.useEffect(()=>{e.values&&!cr(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,o(i=>({...i}))):s._resetDefaultValues()},[e.values,s]),he.useEffect(()=>{e.errors&&s._setErrors(e.errors)},[e.errors,s]),he.useEffect(()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),he.useEffect(()=>{e.shouldUnregister&&s._subjects.values.next({values:s._getWatch()})},[e.shouldUnregister,s]),t.current.formState=H1(r,s),t.current}const hv=(e,t,n)=>{if(e&&"reportValidity"in e){const r=z(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},n_=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?hv(r.ref,n,e):r.refs&&r.refs.forEach(o=>hv(o,n,e))}},HD=(e,t)=>{t.shouldUseNativeValidation&&n_(e,t);const n={};for(const r in e){const o=z(t.fields,r),s=Object.assign(e[r]||{},{ref:o&&o.ref});if(KD(t.names||Object.keys(e),r)){const i=Object.assign({},z(n,r));_e(i,"root",s),_e(n,r,i)}else _e(n,r,s)}return n},KD=(e,t)=>e.some(n=>n.startsWith(t+"."));var ZD=function(e,t){for(var n={};e.length;){var r=e[0],o=r.code,s=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[i]={message:a.message,type:a.code}}else n[i]={message:s,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(p){return e.push(p)})}),t){var l=n[i].types,c=l&&l[r.code];n[i]=Y1(i,t,n,o,c?[].concat(c,r.message):r.message)}e.shift()}return n},Vc=function(e,t,n){return n===void 0&&(n={}),function(r,o,s){try{return Promise.resolve(function(i,a){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return s.shouldUseNativeValidation&&n_({},s),{errors:{},values:n.raw?r:c}})}catch(c){return a(c)}return l&&l.then?l.then(void 0,a):l}(0,function(i){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(i))return{values:{},errors:HD(ZD(i.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw i}))}catch(i){return Promise.reject(i)}}},me;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(me||(me={}));var Tf;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Tf||(Tf={}));const K=me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ur=e=>{switch(typeof e){case"undefined":return K.undefined;case"string":return K.string;case"number":return isNaN(e)?K.nan:K.number;case"boolean":return K.boolean;case"function":return K.function;case"bigint":return K.bigint;case"symbol":return K.symbol;case"object":return Array.isArray(e)?K.array:e===null?K.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?K.promise:typeof Map<"u"&&e instanceof Map?K.map:typeof Set<"u"&&e instanceof Set?K.set:typeof Date<"u"&&e instanceof Date?K.date:K.object;default:return K.unknown}},L=me.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),GD=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Dt extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;ln.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Dt.create=e=>new Dt(e);const as=(e,t)=>{let n;switch(e.code){case L.invalid_type:e.received===K.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case L.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,me.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:n=`Unrecognized key(s) in object: ${me.joinValues(e.keys,", ")}`;break;case L.invalid_union:n="Invalid input";break;case L.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${me.joinValues(e.options)}`;break;case L.invalid_enum_value:n=`Invalid enum value. Expected ${me.joinValues(e.options)}, received '${e.received}'`;break;case L.invalid_arguments:n="Invalid function arguments";break;case L.invalid_return_type:n="Invalid function return type";break;case L.invalid_date:n="Invalid date";break;case L.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:me.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case L.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case L.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case L.custom:n="Invalid input";break;case L.invalid_intersection_types:n="Intersection results could not be merged";break;case L.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case L.not_finite:n="Number must be finite";break;default:n=t.defaultError,me.assertNever(e)}return{message:n}};let r_=as;function YD(e){r_=e}function zl(){return r_}const Vl=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,s=[...n,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},XD=[];function W(e,t){const n=zl(),r=Vl({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===as?void 0:as].filter(o=>!!o)});e.common.issues.push(r)}class ct{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return ie;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const s=await o.key,i=await o.value;r.push({key:s,value:i})}return ct.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return ie;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const ie=Object.freeze({status:"aborted"}),zo=e=>({status:"dirty",value:e}),mt=e=>({status:"valid",value:e}),Pf=e=>e.status==="aborted",Af=e=>e.status==="dirty",Pi=e=>e.status==="valid",Ai=e=>typeof Promise<"u"&&e instanceof Promise;function Ul(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function o_(e,t,n,r,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ee;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ee||(ee={}));var Ws,Hs;class Cn{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const mv=(e,t)=>{if(Pi(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Dt(e.common.issues);return this._error=n,this._error}}};function ce(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>{var l,c;const{message:u}=e;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:o}}class de{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return ur(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ur(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ct,ctx:{common:t.parent.common,data:t.data,parsedType:ur(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ai(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ur(t)},s=this._parseSync({data:t,path:o.path,parent:o});return mv(o,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ur(t)},o=this._parse({data:t,path:r.path,parent:r}),s=await(Ai(o)?o:Promise.resolve(o));return mv(r,s)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:L.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new pn({schema:this,typeName:se.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return bn.create(this,this._def)}nullable(){return Mr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return an.create(this,this._def)}promise(){return cs.create(this,this._def)}or(t){return Ii.create([this,t],this._def)}and(t){return Di.create(this,t,this._def)}transform(t){return new pn({...ce(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Vi({...ce(this._def),innerType:this,defaultValue:n,typeName:se.ZodDefault})}brand(){return new Ah({typeName:se.ZodBranded,type:this,...ce(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ui({...ce(this._def),innerType:this,catchValue:n,typeName:se.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ia.create(this,t)}readonly(){return Bi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const qD=/^c[^\s-]{8,}$/i,QD=/^[0-9a-z]+$/,JD=/^[0-9A-HJKMNP-TV-Z]{26}$/,e2=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,t2=/^[a-z0-9_-]{21}$/i,n2=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,r2=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,o2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Hu;const s2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,i2=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,a2=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,s_="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",l2=new RegExp(`^${s_}$`);function i_(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function c2(e){return new RegExp(`^${i_(e)}$`)}function a_(e){let t=`${s_}T${i_(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function u2(e,t){return!!((t==="v4"||!t)&&s2.test(e)||(t==="v6"||!t)&&i2.test(e))}class rn extends de{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==K.string){const s=this._getOrReturnCtx(t);return W(s,{code:L.invalid_type,expected:K.string,received:s.parsedType}),ie}const r=new ct;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.lengths.value&&(o=this._getOrReturnCtx(t,o),W(o,{code:L.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.lengtht.test(o),{validation:n,code:L.invalid_string,...ee.errToObj(r)})}_addCheck(t){return new rn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ee.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ee.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ee.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ee.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ee.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ee.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ee.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ee.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ee.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ee.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ee.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ee.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ee.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ee.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ee.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ee.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ee.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ee.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ee.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ee.errToObj(n)})}nonempty(t){return this.min(1,ee.errToObj(t))}trim(){return new rn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new rn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new rn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new rn({checks:[],typeName:se.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ce(e)})};function d2(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class Tr extends de{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==K.number){const s=this._getOrReturnCtx(t);return W(s,{code:L.invalid_type,expected:K.number,received:s.parsedType}),ie}let r;const o=new ct;for(const s of this._def.checks)s.kind==="int"?me.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:L.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:L.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?d2(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),W(r,{code:L.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:L.not_finite,message:s.message}),o.dirty()):me.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ee.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ee.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ee.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ee.toString(n))}setLimit(t,n,r,o){return new Tr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ee.toString(o)}]})}_addCheck(t){return new Tr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ee.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ee.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ee.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ee.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ee.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ee.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&me.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Tr({checks:[],typeName:se.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ce(e)});class Pr extends de{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==K.bigint){const s=this._getOrReturnCtx(t);return W(s,{code:L.invalid_type,expected:K.bigint,received:s.parsedType}),ie}let r;const o=new ct;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:L.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),W(r,{code:L.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):me.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ee.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ee.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ee.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ee.toString(n))}setLimit(t,n,r,o){return new Pr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ee.toString(o)}]})}_addCheck(t){return new Pr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ee.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ee.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Pr({checks:[],typeName:se.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ce(e)})};class Mi extends de{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==K.boolean){const r=this._getOrReturnCtx(t);return W(r,{code:L.invalid_type,expected:K.boolean,received:r.parsedType}),ie}return mt(t.data)}}Mi.create=e=>new Mi({typeName:se.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ce(e)});class oo extends de{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==K.date){const s=this._getOrReturnCtx(t);return W(s,{code:L.invalid_type,expected:K.date,received:s.parsedType}),ie}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return W(s,{code:L.invalid_date}),ie}const r=new ct;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()s.value&&(o=this._getOrReturnCtx(t,o),W(o,{code:L.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):me.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new oo({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ee.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ee.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew oo({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:se.ZodDate,...ce(e)});class Bl extends de{_parse(t){if(this._getType(t)!==K.symbol){const r=this._getOrReturnCtx(t);return W(r,{code:L.invalid_type,expected:K.symbol,received:r.parsedType}),ie}return mt(t.data)}}Bl.create=e=>new Bl({typeName:se.ZodSymbol,...ce(e)});class ji extends de{_parse(t){if(this._getType(t)!==K.undefined){const r=this._getOrReturnCtx(t);return W(r,{code:L.invalid_type,expected:K.undefined,received:r.parsedType}),ie}return mt(t.data)}}ji.create=e=>new ji({typeName:se.ZodUndefined,...ce(e)});class Oi extends de{_parse(t){if(this._getType(t)!==K.null){const r=this._getOrReturnCtx(t);return W(r,{code:L.invalid_type,expected:K.null,received:r.parsedType}),ie}return mt(t.data)}}Oi.create=e=>new Oi({typeName:se.ZodNull,...ce(e)});class ls extends de{constructor(){super(...arguments),this._any=!0}_parse(t){return mt(t.data)}}ls.create=e=>new ls({typeName:se.ZodAny,...ce(e)});class Yr extends de{constructor(){super(...arguments),this._unknown=!0}_parse(t){return mt(t.data)}}Yr.create=e=>new Yr({typeName:se.ZodUnknown,...ce(e)});class Gn extends de{_parse(t){const n=this._getOrReturnCtx(t);return W(n,{code:L.invalid_type,expected:K.never,received:n.parsedType}),ie}}Gn.create=e=>new Gn({typeName:se.ZodNever,...ce(e)});class Wl extends de{_parse(t){if(this._getType(t)!==K.undefined){const r=this._getOrReturnCtx(t);return W(r,{code:L.invalid_type,expected:K.void,received:r.parsedType}),ie}return mt(t.data)}}Wl.create=e=>new Wl({typeName:se.ZodVoid,...ce(e)});class an extends de{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==K.array)return W(n,{code:L.invalid_type,expected:K.array,received:n.parsedType}),ie;if(o.exactLength!==null){const i=n.data.length>o.exactLength.value,a=n.data.lengtho.maxLength.value&&(W(n,{code:L.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new Cn(n,i,n.path,a)))).then(i=>ct.mergeArray(r,i));const s=[...n.data].map((i,a)=>o.type._parseSync(new Cn(n,i,n.path,a)));return ct.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new an({...this._def,minLength:{value:t,message:ee.toString(n)}})}max(t,n){return new an({...this._def,maxLength:{value:t,message:ee.toString(n)}})}length(t,n){return new an({...this._def,exactLength:{value:t,message:ee.toString(n)}})}nonempty(t){return this.min(1,t)}}an.create=(e,t)=>new an({type:e,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...ce(t)});function No(e){if(e instanceof De){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=bn.create(No(r))}return new De({...e._def,shape:()=>t})}else return e instanceof an?new an({...e._def,type:No(e.element)}):e instanceof bn?bn.create(No(e.unwrap())):e instanceof Mr?Mr.create(No(e.unwrap())):e instanceof En?En.create(e.items.map(t=>No(t))):e}class De extends de{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=me.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==K.object){const c=this._getOrReturnCtx(t);return W(c,{code:L.invalid_type,expected:K.object,received:c.parsedType}),ie}const{status:r,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Gn&&this._def.unknownKeys==="strip"))for(const c in o.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const u=s[c],p=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Cn(o,p,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof Gn){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(c==="strict")a.length>0&&(W(o,{code:L.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const p=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Cn(o,p,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const p=await u.key,h=await u.value;c.push({key:p,value:h,alwaysSet:u.alwaysSet})}return c}).then(c=>ct.mergeObjectSync(r,c)):ct.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ee.errToObj,new De({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=ee.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new De({...this._def,unknownKeys:"strip"})}passthrough(){return new De({...this._def,unknownKeys:"passthrough"})}extend(t){return new De({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new De({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:se.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new De({...this._def,catchall:t})}pick(t){const n={};return me.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new De({...this._def,shape:()=>n})}omit(t){const n={};return me.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new De({...this._def,shape:()=>n})}deepPartial(){return No(this)}partial(t){const n={};return me.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new De({...this._def,shape:()=>n})}required(t){const n={};return me.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof bn;)s=s._def.innerType;n[r]=s}}),new De({...this._def,shape:()=>n})}keyof(){return l_(me.objectKeys(this.shape))}}De.create=(e,t)=>new De({shape:()=>e,unknownKeys:"strip",catchall:Gn.create(),typeName:se.ZodObject,...ce(t)});De.strictCreate=(e,t)=>new De({shape:()=>e,unknownKeys:"strict",catchall:Gn.create(),typeName:se.ZodObject,...ce(t)});De.lazycreate=(e,t)=>new De({shape:e,unknownKeys:"strip",catchall:Gn.create(),typeName:se.ZodObject,...ce(t)});class Ii extends de{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new Dt(a.ctx.common.issues));return W(n,{code:L.invalid_union,unionErrors:i}),ie}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!s&&(s={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new Dt(l));return W(n,{code:L.invalid_union,unionErrors:a}),ie}}get options(){return this._def.options}}Ii.create=(e,t)=>new Ii({options:e,typeName:se.ZodUnion,...ce(t)});const An=e=>e instanceof Fi?An(e.schema):e instanceof pn?An(e.innerType()):e instanceof $i?[e.value]:e instanceof Ar?e.options:e instanceof zi?me.objectValues(e.enum):e instanceof Vi?An(e._def.innerType):e instanceof ji?[void 0]:e instanceof Oi?[null]:e instanceof bn?[void 0,...An(e.unwrap())]:e instanceof Mr?[null,...An(e.unwrap())]:e instanceof Ah||e instanceof Bi?An(e.unwrap()):e instanceof Ui?An(e._def.innerType):[];class Uc extends de{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==K.object)return W(n,{code:L.invalid_type,expected:K.object,received:n.parsedType}),ie;const r=this.discriminator,o=n.data[r],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(W(n,{code:L.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ie)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const s of n){const i=An(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new Uc({typeName:se.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...ce(r)})}}function Mf(e,t){const n=ur(e),r=ur(t);if(e===t)return{valid:!0,data:e};if(n===K.object&&r===K.object){const o=me.objectKeys(t),s=me.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const l=Mf(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===K.array&&r===K.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s{if(Pf(s)||Pf(i))return ie;const a=Mf(s.value,i.value);return a.valid?((Af(s)||Af(i))&&n.dirty(),{status:n.value,value:a.data}):(W(r,{code:L.invalid_intersection_types}),ie)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Di.create=(e,t,n)=>new Di({left:e,right:t,typeName:se.ZodIntersection,...ce(n)});class En extends de{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==K.array)return W(r,{code:L.invalid_type,expected:K.array,received:r.parsedType}),ie;if(r.data.lengththis._def.items.length&&(W(r,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Cn(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>ct.mergeArray(n,i)):ct.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new En({...this._def,rest:t})}}En.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new En({items:e,typeName:se.ZodTuple,rest:null,...ce(t)})};class Li extends de{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==K.object)return W(r,{code:L.invalid_type,expected:K.object,received:r.parsedType}),ie;const o=[],s=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:s._parse(new Cn(r,a,r.path,a)),value:i._parse(new Cn(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?ct.mergeObjectAsync(n,o):ct.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof de?new Li({keyType:t,valueType:n,typeName:se.ZodRecord,...ce(r)}):new Li({keyType:rn.create(),valueType:t,typeName:se.ZodRecord,...ce(n)})}}class Hl extends de{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==K.map)return W(r,{code:L.invalid_type,expected:K.map,received:r.parsedType}),ie;const o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:o._parse(new Cn(r,a,r.path,[c,"key"])),value:s._parse(new Cn(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return ie;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return ie;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}Hl.create=(e,t,n)=>new Hl({valueType:t,keyType:e,typeName:se.ZodMap,...ce(n)});class so extends de{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==K.set)return W(r,{code:L.invalid_type,expected:K.set,received:r.parsedType}),ie;const o=this._def;o.minSize!==null&&r.data.sizeo.maxSize.value&&(W(r,{code:L.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return ie;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>s._parse(new Cn(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new so({...this._def,minSize:{value:t,message:ee.toString(n)}})}max(t,n){return new so({...this._def,maxSize:{value:t,message:ee.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}so.create=(e,t)=>new so({valueType:e,minSize:null,maxSize:null,typeName:se.ZodSet,...ce(t)});class Xo extends de{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==K.function)return W(n,{code:L.invalid_type,expected:K.function,received:n.parsedType}),ie;function r(a,l){return Vl({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,zl(),as].filter(c=>!!c),issueData:{code:L.invalid_arguments,argumentsError:l}})}function o(a,l){return Vl({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,zl(),as].filter(c=>!!c),issueData:{code:L.invalid_return_type,returnTypeError:l}})}const s={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof cs){const a=this;return mt(async function(...l){const c=new Dt([]),u=await a._def.args.parseAsync(l,s).catch(x=>{throw c.addIssue(r(l,x)),c}),p=await Reflect.apply(i,this,u);return await a._def.returns._def.type.parseAsync(p,s).catch(x=>{throw c.addIssue(o(p,x)),c})})}else{const a=this;return mt(function(...l){const c=a._def.args.safeParse(l,s);if(!c.success)throw new Dt([r(l,c.error)]);const u=Reflect.apply(i,this,c.data),p=a._def.returns.safeParse(u,s);if(!p.success)throw new Dt([o(u,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Xo({...this._def,args:En.create(t).rest(Yr.create())})}returns(t){return new Xo({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Xo({args:t||En.create([]).rest(Yr.create()),returns:n||Yr.create(),typeName:se.ZodFunction,...ce(r)})}}class Fi extends de{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Fi.create=(e,t)=>new Fi({getter:e,typeName:se.ZodLazy,...ce(t)});class $i extends de{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return W(n,{received:n.data,code:L.invalid_literal,expected:this._def.value}),ie}return{status:"valid",value:t.data}}get value(){return this._def.value}}$i.create=(e,t)=>new $i({value:e,typeName:se.ZodLiteral,...ce(t)});function l_(e,t){return new Ar({values:e,typeName:se.ZodEnum,...ce(t)})}class Ar extends de{constructor(){super(...arguments),Ws.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return W(n,{expected:me.joinValues(r),received:n.parsedType,code:L.invalid_type}),ie}if(Ul(this,Ws)||o_(this,Ws,new Set(this._def.values)),!Ul(this,Ws).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return W(n,{received:n.data,code:L.invalid_enum_value,options:r}),ie}return mt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ar.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ar.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Ws=new WeakMap;Ar.create=l_;class zi extends de{constructor(){super(...arguments),Hs.set(this,void 0)}_parse(t){const n=me.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==K.string&&r.parsedType!==K.number){const o=me.objectValues(n);return W(r,{expected:me.joinValues(o),received:r.parsedType,code:L.invalid_type}),ie}if(Ul(this,Hs)||o_(this,Hs,new Set(me.getValidEnumValues(this._def.values))),!Ul(this,Hs).has(t.data)){const o=me.objectValues(n);return W(r,{received:r.data,code:L.invalid_enum_value,options:o}),ie}return mt(t.data)}get enum(){return this._def.values}}Hs=new WeakMap;zi.create=(e,t)=>new zi({values:e,typeName:se.ZodNativeEnum,...ce(t)});class cs extends de{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==K.promise&&n.common.async===!1)return W(n,{code:L.invalid_type,expected:K.promise,received:n.parsedType}),ie;const r=n.parsedType===K.promise?n.data:Promise.resolve(n.data);return mt(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}cs.create=(e,t)=>new cs({type:e,typeName:se.ZodPromise,...ce(t)});class pn extends de{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{W(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return ie;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ie:l.status==="dirty"||n.value==="dirty"?zo(l.value):l});{if(n.value==="aborted")return ie;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?ie:a.status==="dirty"||n.value==="dirty"?zo(a.value):a}}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ie:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ie:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Pi(i))return i;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>Pi(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):i);me.assertNever(o)}}pn.create=(e,t,n)=>new pn({schema:e,typeName:se.ZodEffects,effect:t,...ce(n)});pn.createWithPreprocess=(e,t,n)=>new pn({schema:t,effect:{type:"preprocess",transform:e},typeName:se.ZodEffects,...ce(n)});class bn extends de{_parse(t){return this._getType(t)===K.undefined?mt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bn.create=(e,t)=>new bn({innerType:e,typeName:se.ZodOptional,...ce(t)});class Mr extends de{_parse(t){return this._getType(t)===K.null?mt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Mr.create=(e,t)=>new Mr({innerType:e,typeName:se.ZodNullable,...ce(t)});class Vi extends de{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===K.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Vi.create=(e,t)=>new Vi({innerType:e,typeName:se.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ce(t)});class Ui extends de{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ai(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Dt(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Dt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ui.create=(e,t)=>new Ui({innerType:e,typeName:se.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ce(t)});class Kl extends de{_parse(t){if(this._getType(t)!==K.nan){const r=this._getOrReturnCtx(t);return W(r,{code:L.invalid_type,expected:K.nan,received:r.parsedType}),ie}return{status:"valid",value:t.data}}}Kl.create=e=>new Kl({typeName:se.ZodNaN,...ce(e)});const f2=Symbol("zod_brand");class Ah extends de{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class ia extends de{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ie:s.status==="dirty"?(n.dirty(),zo(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ie:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new ia({in:t,out:n,typeName:se.ZodPipeline})}}class Bi extends de{_parse(t){const n=this._def.innerType._parse(t),r=o=>(Pi(o)&&(o.value=Object.freeze(o.value)),o);return Ai(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}Bi.create=(e,t)=>new Bi({innerType:e,typeName:se.ZodReadonly,...ce(t)});function c_(e,t={},n){return e?ls.create().superRefine((r,o)=>{var s,i;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:n)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...c,fatal:l})}}):ls.create()}const p2={object:De.lazycreate};var se;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(se||(se={}));const h2=(e,t={message:`Input not instance of ${e.name}`})=>c_(n=>n instanceof e,t),u_=rn.create,d_=Tr.create,m2=Kl.create,g2=Pr.create,f_=Mi.create,v2=oo.create,y2=Bl.create,x2=ji.create,w2=Oi.create,S2=ls.create,b2=Yr.create,_2=Gn.create,C2=Wl.create,E2=an.create,N2=De.create,k2=De.strictCreate,R2=Ii.create,T2=Uc.create,P2=Di.create,A2=En.create,M2=Li.create,j2=Hl.create,O2=so.create,I2=Xo.create,D2=Fi.create,L2=$i.create,F2=Ar.create,$2=zi.create,z2=cs.create,gv=pn.create,V2=bn.create,U2=Mr.create,B2=pn.createWithPreprocess,W2=ia.create,H2=()=>u_().optional(),K2=()=>d_().optional(),Z2=()=>f_().optional(),G2={string:e=>rn.create({...e,coerce:!0}),number:e=>Tr.create({...e,coerce:!0}),boolean:e=>Mi.create({...e,coerce:!0}),bigint:e=>Pr.create({...e,coerce:!0}),date:e=>oo.create({...e,coerce:!0})},Y2=ie;var Zt=Object.freeze({__proto__:null,defaultErrorMap:as,setErrorMap:YD,getErrorMap:zl,makeIssue:Vl,EMPTY_PATH:XD,addIssueToContext:W,ParseStatus:ct,INVALID:ie,DIRTY:zo,OK:mt,isAborted:Pf,isDirty:Af,isValid:Pi,isAsync:Ai,get util(){return me},get objectUtil(){return Tf},ZodParsedType:K,getParsedType:ur,ZodType:de,datetimeRegex:a_,ZodString:rn,ZodNumber:Tr,ZodBigInt:Pr,ZodBoolean:Mi,ZodDate:oo,ZodSymbol:Bl,ZodUndefined:ji,ZodNull:Oi,ZodAny:ls,ZodUnknown:Yr,ZodNever:Gn,ZodVoid:Wl,ZodArray:an,ZodObject:De,ZodUnion:Ii,ZodDiscriminatedUnion:Uc,ZodIntersection:Di,ZodTuple:En,ZodRecord:Li,ZodMap:Hl,ZodSet:so,ZodFunction:Xo,ZodLazy:Fi,ZodLiteral:$i,ZodEnum:Ar,ZodNativeEnum:zi,ZodPromise:cs,ZodEffects:pn,ZodTransformer:pn,ZodOptional:bn,ZodNullable:Mr,ZodDefault:Vi,ZodCatch:Ui,ZodNaN:Kl,BRAND:f2,ZodBranded:Ah,ZodPipeline:ia,ZodReadonly:Bi,custom:c_,Schema:de,ZodSchema:de,late:p2,get ZodFirstPartyTypeKind(){return se},coerce:G2,any:S2,array:E2,bigint:g2,boolean:f_,date:v2,discriminatedUnion:T2,effect:gv,enum:F2,function:I2,instanceof:h2,intersection:P2,lazy:D2,literal:L2,map:j2,nan:m2,nativeEnum:$2,never:_2,null:w2,nullable:U2,number:d_,object:N2,oboolean:Z2,onumber:K2,optional:V2,ostring:H2,pipeline:W2,preprocess:B2,promise:z2,record:M2,set:O2,strictObject:k2,string:u_,symbol:y2,transformer:gv,tuple:A2,undefined:x2,union:R2,unknown:b2,void:C2,NEVER:Y2,ZodIssueCode:L,quotelessJson:GD,ZodError:Dt}),Mh="Dialog",[p_,h_]=Nn(Mh),[X2,mn]=p_(Mh),m_=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=f.useRef(null),l=f.useRef(null),[c=!1,u]=Wn({prop:r,defaultProp:o,onChange:s});return d.jsx(X2,{scope:t,triggerRef:a,contentRef:l,contentId:ht(),titleId:ht(),descriptionId:ht(),open:c,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(p=>!p),[u]),modal:i,children:n})};m_.displayName=Mh;var g_="DialogTrigger",v_=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=mn(g_,n),s=ae(t,o.triggerRef);return d.jsx(X.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ih(o.open),...r,ref:s,onClick:F(e.onClick,o.onOpenToggle)})});v_.displayName=g_;var jh="DialogPortal",[q2,y_]=p_(jh,{forceMount:void 0}),x_=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=mn(jh,t);return d.jsx(q2,{scope:t,forceMount:n,children:f.Children.map(r,i=>d.jsx(zt,{present:n||s.open,children:d.jsx(vh,{asChild:!0,container:o,children:i})}))})};x_.displayName=jh;var Zl="DialogOverlay",w_=f.forwardRef((e,t)=>{const n=y_(Zl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=mn(Zl,e.__scopeDialog);return s.modal?d.jsx(zt,{present:r||s.open,children:d.jsx(Q2,{...o,ref:t})}):null});w_.displayName=Zl;var Q2=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=mn(Zl,n);return d.jsx(yh,{as:Bn,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(X.div,{"data-state":Ih(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),io="DialogContent",S_=f.forwardRef((e,t)=>{const n=y_(io,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=mn(io,e.__scopeDialog);return d.jsx(zt,{present:r||s.open,children:s.modal?d.jsx(J2,{...o,ref:t}):d.jsx(eL,{...o,ref:t})})});S_.displayName=io;var J2=f.forwardRef((e,t)=>{const n=mn(io,e.__scopeDialog),r=f.useRef(null),o=ae(t,n.contentRef,r);return f.useEffect(()=>{const s=r.current;if(s)return eh(s)},[]),d.jsx(b_,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:F(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:F(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:F(e.onFocusOutside,s=>s.preventDefault())})}),eL=f.forwardRef((e,t)=>{const n=mn(io,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return d.jsx(b_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),b_=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=mn(io,n),l=f.useRef(null),c=ae(t,l);return bb(),d.jsxs(d.Fragment,{children:[d.jsx(vc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:d.jsx(mc,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ih(a.open),...i,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(nL,{titleId:a.titleId}),d.jsx(oL,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Oh="DialogTitle",__=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=mn(Oh,n);return d.jsx(X.h2,{id:o.titleId,...r,ref:t})});__.displayName=Oh;var C_="DialogDescription",E_=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=mn(C_,n);return d.jsx(X.p,{id:o.descriptionId,...r,ref:t})});E_.displayName=C_;var N_="DialogClose",k_=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=mn(N_,n);return d.jsx(X.button,{type:"button",...r,ref:t,onClick:F(e.onClick,()=>o.onOpenChange(!1))})});k_.displayName=N_;function Ih(e){return e?"open":"closed"}var R_="DialogTitleWarning",[tL,T_]=hk(R_,{contentName:io,titleName:Oh,docsSlug:"dialog"}),nL=({titleId:e})=>{const t=T_(R_),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},rL="DialogDescriptionWarning",oL=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${T_(rL).contentName}}.`;return f.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},sL=m_,iL=v_,aL=x_,lL=w_,cL=S_,uL=__,dL=E_,P_=k_,A_="AlertDialog",[fL,pF]=Nn(A_,[h_]),Jn=h_(),M_=e=>{const{__scopeAlertDialog:t,...n}=e,r=Jn(t);return d.jsx(sL,{...r,...n,modal:!0})};M_.displayName=A_;var pL="AlertDialogTrigger",j_=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return d.jsx(iL,{...o,...r,ref:t})});j_.displayName=pL;var hL="AlertDialogPortal",O_=e=>{const{__scopeAlertDialog:t,...n}=e,r=Jn(t);return d.jsx(aL,{...r,...n})};O_.displayName=hL;var mL="AlertDialogOverlay",I_=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return d.jsx(lL,{...o,...r,ref:t})});I_.displayName=mL;var qo="AlertDialogContent",[gL,vL]=fL(qo),D_=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,s=Jn(n),i=f.useRef(null),a=ae(t,i),l=f.useRef(null);return d.jsx(tL,{contentName:qo,titleName:L_,docsSlug:"alert-dialog",children:d.jsx(gL,{scope:n,cancelRef:l,children:d.jsxs(cL,{role:"alertdialog",...s,...o,ref:a,onOpenAutoFocus:F(o.onOpenAutoFocus,c=>{var u;c.preventDefault(),(u=l.current)==null||u.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[d.jsx(jx,{children:r}),d.jsx(xL,{contentRef:i})]})})})});D_.displayName=qo;var L_="AlertDialogTitle",F_=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return d.jsx(uL,{...o,...r,ref:t})});F_.displayName=L_;var $_="AlertDialogDescription",z_=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return d.jsx(dL,{...o,...r,ref:t})});z_.displayName=$_;var yL="AlertDialogAction",V_=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Jn(n);return d.jsx(P_,{...o,...r,ref:t})});V_.displayName=yL;var U_="AlertDialogCancel",B_=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=vL(U_,n),s=Jn(n),i=ae(t,o);return d.jsx(P_,{...s,...r,ref:i})});B_.displayName=U_;var xL=({contentRef:e})=>{const t=`\`${qo}\` requires a description for the component to be accessible for screen reader users. - -You can add a description to the \`${qo}\` by passing a \`${$_}\` component as a child, which also benefits sighted users by adding visible context to the dialog. - -Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${qo}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. - -For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},wL=M_,SL=j_,bL=O_,W_=I_,H_=D_,K_=V_,Z_=B_,G_=F_,Y_=z_;const Bc=gc("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Wc=f.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?Bn:"button";return d.jsx(i,{className:G(Bc({variant:t,size:n,className:e})),ref:s,...o})});Wc.displayName="Button";const jf=wL,Of=SL,_L=bL,X_=f.forwardRef(({className:e,...t},n)=>d.jsx(W_,{className:G("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));X_.displayName=W_.displayName;const Gl=f.forwardRef(({className:e,...t},n)=>d.jsxs(_L,{children:[d.jsx(X_,{}),d.jsx(H_,{ref:n,className:G("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));Gl.displayName=H_.displayName;const q_=({className:e,...t})=>d.jsx("div",{className:G("flex flex-col space-y-2 text-center sm:text-left",e),...t});q_.displayName="AlertDialogHeader";const Q_=({className:e,...t})=>d.jsx("div",{className:G("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Q_.displayName="AlertDialogFooter";const J_=f.forwardRef(({className:e,...t},n)=>d.jsx(G_,{ref:n,className:G("text-lg font-semibold",e),...t}));J_.displayName=G_.displayName;const eC=f.forwardRef(({className:e,...t},n)=>d.jsx(Y_,{ref:n,className:G("text-sm text-muted-foreground",e),...t}));eC.displayName=Y_.displayName;const Yl=f.forwardRef(({className:e,...t},n)=>d.jsx(K_,{ref:n,className:G(Bc(),e),...t}));Yl.displayName=K_.displayName;const Xl=f.forwardRef(({className:e,...t},n)=>d.jsx(Z_,{ref:n,className:G(Bc({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Xl.displayName=Z_.displayName;var CL="Label",tC=f.forwardRef((e,t)=>d.jsx(X.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));tC.displayName=CL;var nC=tC;const EL=gc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),rC=f.forwardRef(({className:e,...t},n)=>d.jsx(nC,{ref:n,className:G(EL(),e),...t}));rC.displayName=nC.displayName;const Hc=TD,oC=f.createContext({}),jr=({...e})=>d.jsx(oC.Provider,{value:{name:e.name},children:d.jsx(jD,{...e})}),Kc=()=>{const e=f.useContext(oC),t=f.useContext(sC),{getFieldState:n,formState:r}=$c(),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...o}},sC=f.createContext({}),Yn=f.forwardRef(({className:e,...t},n)=>{const r=f.useId();return d.jsx(sC.Provider,{value:{id:r},children:d.jsx("div",{ref:n,className:G("space-y-2",e),...t})})});Yn.displayName="FormItem";const Xn=f.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:o}=Kc();return d.jsx(rC,{ref:n,className:G(r&&"text-destructive",e),htmlFor:o,...t})});Xn.displayName="FormLabel";const ln=f.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:s}=Kc();return d.jsx(Bn,{ref:t,id:r,"aria-describedby":n?`${o} ${s}`:`${o}`,"aria-invalid":!!n,...e})});ln.displayName="FormControl";const Wi=f.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=Kc();return d.jsx("p",{ref:n,id:r,className:G("text-sm text-muted-foreground",e),...t})});Wi.displayName="FormDescription";const qn=f.forwardRef(({className:e,children:t,...n},r)=>{const{error:o,formMessageId:s}=Kc(),i=o?String(o==null?void 0:o.message):t;return i?d.jsx("p",{ref:r,id:s,className:G("text-sm font-medium text-destructive",e),...n,children:i}):null});qn.displayName="FormMessage";const cn=f.forwardRef(({className:e,type:t,...n},r)=>d.jsx("input",{type:t,className:G("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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:r,...n}));cn.displayName="Input";const NL=Zt.object({longLink:Zt.string(),shortLink:Zt.string()}),kL=({linkID:e})=>{const[t]=Zn(["currentToken"]),n=t.currentToken,r=zc({resolver:Vc(NL),defaultValues:{longLink:"",shortLink:""}});console.log(e);const o=i=>{console.log(i),(async()=>{try{const l=await Re.put("https://lscs.info/admin/links/"+e,{longlink:i.longLink,shortlink:i.shortLink},{headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}});console.log(l),l.data.status=="ok"&&window.location.replace("/")}catch(l){console.log(l)}})()},s=()=>{console.log(e),(async()=>{try{(await Re.delete("https://lscs.info/admin/links/"+e,{headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}})).data.status=="ok"&&window.location.replace("/")}catch(a){console.log(a)}})()};return d.jsx(d.Fragment,{children:d.jsxs(jf,{children:[d.jsx(Of,{children:d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})})}),d.jsxs(Gl,{className:"bg-transparent border-none",children:[d.jsx("p",{className:"font-bold text-3xl text-white px-8",children:"Edit Short Link"}),d.jsx("div",{className:"space-y-8 bg-[#030711] border-2 border-[#1D283A] rounded-lg px-8 py-6 flex flex-col",children:d.jsx(Hc,{...r,children:d.jsxs("form",{onSubmit:r.handleSubmit(o),className:"space-y-8 flex flex-col",children:[d.jsx(jr,{control:r.control,name:"shortLink",render:({field:i})=>d.jsx(d.Fragment,{children:d.jsxs(Yn,{children:[d.jsx(Xn,{className:"text-white",children:"Short Link"}),d.jsxs("div",{className:"flex space-x-1",children:[d.jsx(ln,{children:d.jsx(cn,{...i,disabled:!0,value:"lscs.info/",className:"text-white bg-[#333437] border-2 border-[#1D283A] rounded-l-lg w-1/4"})}),d.jsx(ln,{children:d.jsx(cn,{...i,className:"text-white bg-[#030711] border-2 border-[#1D283A] rounded-lg"})})]}),d.jsx(qn,{})]})})}),d.jsx(jr,{control:r.control,name:"longLink",render:({field:i})=>d.jsx(d.Fragment,{children:d.jsxs(Yn,{children:[d.jsx(Xn,{className:"text-white",children:"Long Link"}),d.jsx(ln,{children:d.jsx(cn,{...i,className:"text-white bg-[#030711] border-2 border-[#1D283A] rounded-lg"})}),d.jsx(qn,{})]})})}),d.jsxs("div",{className:"space-x-6 flex justify-between items-center",children:[d.jsxs("div",{className:"space-x-6",children:[d.jsx(Yl,{type:"submit",className:"text-black bg-white",children:"Continue"}),d.jsx(Xl,{className:"bg-transparent border-transparent text-white",children:"Cancel"})]}),d.jsx("div",{children:d.jsxs(jf,{children:[d.jsx(Of,{className:"bg-red-500 rounded-full p-2 text-white",children:d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})}),d.jsxs(Gl,{className:"space-y-8 bg-[#030711] border-2 border-[#1D283A] rounded-lg px-8 py-6 flex flex-col",children:[d.jsxs(q_,{children:[d.jsx(J_,{children:"Are you absolutely sure?"}),d.jsx(eC,{children:"This action cannot be undone. This will permanently delete your link from our servers."})]}),d.jsxs(Q_,{children:[d.jsx(Xl,{children:"Cancel"}),d.jsx(Yl,{onClick:s,className:"bg-red-500",children:"Delete"})]})]})]})})]})]})})})]})]})})},RL=gc("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function TL({className:e,variant:t,...n}){return d.jsx("div",{className:G(RL({variant:t}),e),...n})}const PL=({linkID:e,createdBy:t,longLink:n,shortLink:r,qr_preview:o,qr_download:s})=>{const[i]=Zn(["currentToken"]),a=i.currentToken,{data:l,loading:c}=$1(`https://lscs.info/analytics/${r}`,a),u=l;return c?d.jsx(d.Fragment,{children:d.jsx("p",{className:"text-white"})}):d.jsx(d.Fragment,{children:d.jsxs("div",{className:"mb-6",children:[d.jsxs("div",{className:"flex flex-wrap justify-between mb-6",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center space-x-3",children:[d.jsxs("h1",{className:"text-2xl cursor-pointer",onClick:async()=>{try{await navigator.clipboard.writeText(`lscs.info/${r}`)}catch(p){console.log(p)}},children:[d.jsx("span",{className:"font-bold",children:"lscs.info"}),"/",r]}),d.jsx(kL,{linkID:e}),d.jsx(TL,{className:"text-black bg-white font-bold",children:"rnd"})]}),d.jsxs("div",{className:"text-slate-500 flex items-center space-x-2 mt-1",children:[d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})}),d.jsx("p",{className:"text-xl cursor-pointer ",onClick:async()=>{try{await navigator.clipboard.writeText(n)}catch(p){console.log(p)}},children:n})]}),d.jsxs("div",{className:"my-3",children:[(u==null?void 0:u.count)??0," clicks"]}),d.jsxs("div",{className:"flex items-center space-x-3 my-3",children:[d.jsx(uf,{email:t}),d.jsxs("p",{children:["Created by ",t]})]})]}),d.jsx("div",{className:"mx-4 mt-8 md:mt-0 md:px-8",children:o?d.jsx(d.Fragment,{children:d.jsxs("div",{className:"flex justify-center flex-col items-center space-y-3",children:[d.jsx("img",{src:o,className:"rounded-md w-32",alt:""}),d.jsx("a",{href:s,className:"underline text-[#7F8EA3]",children:"Download"})]})}):null})]}),d.jsx(wh,{className:"bg-[#1D283A] my-2`"})]})})};function AL(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var Dh="ScrollArea",[iC,hF]=Nn(Dh),[ML,qt]=iC(Dh),aC=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:s=600,...i}=e,[a,l]=f.useState(null),[c,u]=f.useState(null),[p,h]=f.useState(null),[x,v]=f.useState(null),[g,S]=f.useState(null),[y,m]=f.useState(0),[w,_]=f.useState(0),[b,N]=f.useState(!1),[E,k]=f.useState(!1),A=ae(t,q=>l(q)),O=uo(o);return d.jsx(ML,{scope:n,type:r,dir:O,scrollHideDelay:s,scrollArea:a,viewport:c,onViewportChange:u,content:p,onContentChange:h,scrollbarX:x,onScrollbarXChange:v,scrollbarXEnabled:b,onScrollbarXEnabledChange:N,scrollbarY:g,onScrollbarYChange:S,scrollbarYEnabled:E,onScrollbarYEnabledChange:k,onCornerWidthChange:m,onCornerHeightChange:_,children:d.jsx(X.div,{dir:O,...i,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});aC.displayName=Dh;var lC="ScrollAreaViewport",cC=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...s}=e,i=qt(lC,n),a=f.useRef(null),l=ae(t,a,i.onViewportChange);return d.jsxs(d.Fragment,{children:[d.jsx("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}"},nonce:o}),d.jsx(X.div,{"data-radix-scroll-area-viewport":"",...s,ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:d.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});cC.displayName=lC;var Rn="ScrollAreaScrollbar",Lh=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=qt(Rn,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=o,a=e.orientation==="horizontal";return f.useEffect(()=>(a?s(!0):i(!0),()=>{a?s(!1):i(!1)}),[a,s,i]),o.type==="hover"?d.jsx(jL,{...r,ref:t,forceMount:n}):o.type==="scroll"?d.jsx(OL,{...r,ref:t,forceMount:n}):o.type==="auto"?d.jsx(uC,{...r,ref:t,forceMount:n}):o.type==="always"?d.jsx(Fh,{...r,ref:t}):null});Lh.displayName=Rn;var jL=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=qt(Rn,e.__scopeScrollArea),[s,i]=f.useState(!1);return f.useEffect(()=>{const a=o.scrollArea;let l=0;if(a){const c=()=>{window.clearTimeout(l),i(!0)},u=()=>{l=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),d.jsx(zt,{present:n||s,children:d.jsx(uC,{"data-state":s?"visible":"hidden",...r,ref:t})})}),OL=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=qt(Rn,e.__scopeScrollArea),s=e.orientation==="horizontal",i=Gc(()=>l("SCROLL_END"),100),[a,l]=AL("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 f.useEffect(()=>{if(a==="idle"){const c=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[a,o.scrollHideDelay,l]),f.useEffect(()=>{const c=o.viewport,u=s?"scrollLeft":"scrollTop";if(c){let p=c[u];const h=()=>{const x=c[u];p!==x&&(l("SCROLL"),i()),p=x};return c.addEventListener("scroll",h),()=>c.removeEventListener("scroll",h)}},[o.viewport,s,l,i]),d.jsx(zt,{present:n||a!=="hidden",children:d.jsx(Fh,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:F(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:F(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),uC=f.forwardRef((e,t)=>{const n=qt(Rn,e.__scopeScrollArea),{forceMount:r,...o}=e,[s,i]=f.useState(!1),a=e.orientation==="horizontal",l=Gc(()=>{if(n.viewport){const c=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,o=qt(Rn,e.__scopeScrollArea),s=f.useRef(null),i=f.useRef(0),[a,l]=f.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=mC(a.viewport,a.content),u={...r,sizes:a,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:h=>s.current=h,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:h=>i.current=h};function p(h,x){return zL(h,i.current,a,x)}return n==="horizontal"?d.jsx(IL,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const h=o.viewport.scrollLeft,x=vv(h,a,o.dir);s.current.style.transform=`translate3d(${x}px, 0, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollLeft=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollLeft=p(h,o.dir))}}):n==="vertical"?d.jsx(DL,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const h=o.viewport.scrollTop,x=vv(h,a);s.current.style.transform=`translate3d(0, ${x}px, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollTop=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollTop=p(h))}}):null}),IL=f.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=qt(Rn,e.__scopeScrollArea),[i,a]=f.useState(),l=f.useRef(null),c=ae(t,l,s.onScrollbarXChange);return f.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),d.jsx(fC,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Zc(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,p)=>{if(s.viewport){const h=s.viewport.scrollLeft+u.deltaX;e.onWheelScroll(h),vC(h,p)&&u.preventDefault()}},onResize:()=>{l.current&&s.viewport&&i&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Ql(i.paddingLeft),paddingEnd:Ql(i.paddingRight)}})}})}),DL=f.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=qt(Rn,e.__scopeScrollArea),[i,a]=f.useState(),l=f.useRef(null),c=ae(t,l,s.onScrollbarYChange);return f.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),d.jsx(fC,{"data-orientation":"vertical",...o,ref:c,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Zc(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,p)=>{if(s.viewport){const h=s.viewport.scrollTop+u.deltaY;e.onWheelScroll(h),vC(h,p)&&u.preventDefault()}},onResize:()=>{l.current&&s.viewport&&i&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Ql(i.paddingTop),paddingEnd:Ql(i.paddingBottom)}})}})}),[LL,dC]=iC(Rn),fC=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:s,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:p,...h}=e,x=qt(Rn,n),[v,g]=f.useState(null),S=ae(t,A=>g(A)),y=f.useRef(null),m=f.useRef(""),w=x.viewport,_=r.content-r.viewport,b=Ee(u),N=Ee(l),E=Gc(p,10);function k(A){if(y.current){const O=A.clientX-y.current.left,q=A.clientY-y.current.top;c({x:O,y:q})}}return f.useEffect(()=>{const A=O=>{const q=O.target;(v==null?void 0:v.contains(q))&&b(O,_)};return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})},[w,v,_,b]),f.useEffect(N,[r,N]),us(v,E),us(x.content,E),d.jsx(LL,{scope:n,scrollbar:v,hasThumb:o,onThumbChange:Ee(s),onThumbPointerUp:Ee(i),onThumbPositionChange:N,onThumbPointerDown:Ee(a),children:d.jsx(X.div,{...h,ref:S,style:{position:"absolute",...h.style},onPointerDown:F(e.onPointerDown,A=>{A.button===0&&(A.target.setPointerCapture(A.pointerId),y.current=v.getBoundingClientRect(),m.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",x.viewport&&(x.viewport.style.scrollBehavior="auto"),k(A))}),onPointerMove:F(e.onPointerMove,k),onPointerUp:F(e.onPointerUp,A=>{const O=A.target;O.hasPointerCapture(A.pointerId)&&O.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=m.current,x.viewport&&(x.viewport.style.scrollBehavior=""),y.current=null})})})}),ql="ScrollAreaThumb",pC=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=dC(ql,e.__scopeScrollArea);return d.jsx(zt,{present:n||o.hasThumb,children:d.jsx(FL,{ref:t,...r})})}),FL=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,s=qt(ql,n),i=dC(ql,n),{onThumbPositionChange:a}=i,l=ae(t,p=>i.onThumbChange(p)),c=f.useRef(),u=Gc(()=>{c.current&&(c.current(),c.current=void 0)},100);return f.useEffect(()=>{const p=s.viewport;if(p){const h=()=>{if(u(),!c.current){const x=VL(p,a);c.current=x,a()}};return a(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[s.viewport,u,a]),d.jsx(X.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:F(e.onPointerDownCapture,p=>{const x=p.target.getBoundingClientRect(),v=p.clientX-x.left,g=p.clientY-x.top;i.onThumbPointerDown({x:v,y:g})}),onPointerUp:F(e.onPointerUp,i.onThumbPointerUp)})});pC.displayName=ql;var $h="ScrollAreaCorner",hC=f.forwardRef((e,t)=>{const n=qt($h,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?d.jsx($L,{...e,ref:t}):null});hC.displayName=$h;var $L=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=qt($h,n),[s,i]=f.useState(0),[a,l]=f.useState(0),c=!!(s&&a);return us(o.scrollbarX,()=>{var p;const u=((p=o.scrollbarX)==null?void 0:p.offsetHeight)||0;o.onCornerHeightChange(u),l(u)}),us(o.scrollbarY,()=>{var p;const u=((p=o.scrollbarY)==null?void 0:p.offsetWidth)||0;o.onCornerWidthChange(u),i(u)}),c?d.jsx(X.div,{...r,ref:t,style:{width:s,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Ql(e){return e?parseInt(e,10):0}function mC(e,t){const n=e/t;return isNaN(n)?0:n}function Zc(e){const t=mC(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function zL(e,t,n,r="ltr"){const o=Zc(n),s=o/2,i=t||s,a=o-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-a,u=n.content-n.viewport,p=r==="ltr"?[0,u]:[u*-1,0];return gC([l,c],p)(e)}function vv(e,t,n="ltr"){const r=Zc(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,i=t.content-t.viewport,a=s-r,l=n==="ltr"?[0,i]:[i*-1,0],c=mf(e,l);return gC([0,i],[0,a])(c)}function gC(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 vC(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,a=n.top!==s.top;(i||a)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Gc(e,t){const n=Ee(e),r=f.useRef(0);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),f.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function us(e,t){const n=Ee(t);Oe(()=>{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])}var yC=aC,UL=cC,BL=hC;const xC=f.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(yC,{ref:r,className:G("relative overflow-hidden",e),...n,children:[d.jsx(UL,{className:"h-full w-full rounded-[inherit]",children:t}),d.jsx(wC,{}),d.jsx(BL,{})]}));xC.displayName=yC.displayName;const wC=f.forwardRef(({className:e,orientation:t="vertical",...n},r)=>d.jsx(Lh,{ref:r,orientation:t,className:G("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 flex-col border-t border-t-transparent p-[1px]",e),...n,children:d.jsx(pC,{className:"relative flex-1 rounded-full bg-border"})}));wC.displayName=Lh.displayName;const SC=({className:e,...t})=>d.jsx("nav",{role:"navigation","aria-label":"pagination",className:G("mx-auto flex w-full justify-center",e),...t});SC.displayName="Pagination";const bC=f.forwardRef(({className:e,...t},n)=>d.jsx("ul",{ref:n,className:G("flex flex-row items-center gap-1",e),...t}));bC.displayName="PaginationContent";const If=f.forwardRef(({className:e,...t},n)=>d.jsx("li",{ref:n,className:G("",e),...t}));If.displayName="PaginationItem";const zh=({className:e,isActive:t,size:n="icon",...r})=>d.jsx("a",{"aria-current":t?"page":void 0,className:G(Bc({variant:t?"outline":"ghost",size:n}),e),...r});zh.displayName="PaginationLink";const _C=({className:e,...t})=>d.jsxs(zh,{"aria-label":"Go to previous page",size:"default",className:G("gap-1 pl-2.5",e),...t,children:[d.jsx(oR,{className:"h-4 w-4"}),d.jsx("span",{children:"Previous"})]});_C.displayName="PaginationPrevious";const CC=({className:e,...t})=>d.jsxs(zh,{"aria-label":"Go to next page",size:"default",className:G("gap-1 pr-2.5",e),...t,children:[d.jsx("span",{children:"Next"}),d.jsx(Up,{className:"h-4 w-4"})]});CC.displayName="PaginationNext";const WL=()=>{const[e,,t]=Zn(["currentToken"]),[n,r]=f.useState(1),{data:o,loading:s,error:i,errorCode:a}=$1("https://lscs.info/admin/links?limit=10&page="+n,e.currentToken),l=o,c=(l==null?void 0:l.totalPages)??1;return i?(a==403&&t("currentToken"),d.jsx(d.Fragment,{children:d.jsxs("p",{children:["Error ",i.message]})})):s?d.jsx(d.Fragment,{children:d.jsxs("div",{role:"status",className:"flex justify-center my-24",children:[d.jsxs("svg",{"aria-hidden":"true",className:"w-12 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-white",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),d.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),d.jsx("span",{className:"sr-only",children:"Loading..."})]})}):i?d.jsx(d.Fragment,{children:d.jsxs("p",{className:"text-white",children:["Error.... ",i," ",":((("]})}):d.jsx(d.Fragment,{children:d.jsxs("div",{className:"flex md:justify-center flex-col items-center space-y-3",children:[d.jsx(xC,{className:"md:h-[400px] md:w-[720px] rounded-md space-y-3",children:l==null?void 0:l.data.map(u=>d.jsx(d.Fragment,{children:d.jsx(PL,{linkID:u._id,createdBy:u.created_by,longLink:u.longlink,shortLink:u.shortlink,qr_preview:u.qr_preview,qr_download:u.qr_download})}))}),(l==null?void 0:l.data.length)!=0&&c>1?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"flex justify-center",children:d.jsx(SC,{children:d.jsxs(bC,{children:[d.jsx(If,{children:d.jsx(_C,{onClick:()=>{n>1&&r(n-1)}})}),d.jsx(If,{children:d.jsx(CC,{onClick:()=>{n{const[e]=Zn(["currentToken"]),t=e.currentToken,n=zc({resolver:Vc(HL),defaultValues:{longLink:"",shortLink:""}}),r=o=>{console.log(o),(async()=>{try{const i=await Re.post("https://lscs.info/admin/create",{longlink:o.longLink,shortlink:o.shortLink},{headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}});console.log(i),i.data.status=="ok"&&window.location.replace("/")}catch(i){console.log(i)}})()};return d.jsx(d.Fragment,{children:d.jsxs(jf,{children:[d.jsx(Of,{children:d.jsx(Wc,{variant:"outline",className:"text-black",children:"Create New"})}),d.jsxs(Gl,{className:"bg-transparent border-none",children:[d.jsx("p",{className:"font-bold text-3xl text-white px-8",children:"Create Short Link"}),d.jsx("div",{className:"space-y-8 bg-[#030711] border-2 border-[#1D283A] rounded-lg px-8 py-6 flex flex-col",children:d.jsx(Hc,{...n,children:d.jsxs("form",{onSubmit:n.handleSubmit(r),className:"space-y-8 flex flex-col",children:[d.jsx(jr,{control:n.control,name:"shortLink",render:({field:o})=>d.jsx(d.Fragment,{children:d.jsxs(Yn,{children:[d.jsx(Xn,{className:"text-white",children:"Short Link"}),d.jsxs("div",{className:"flex space-x-1",children:[d.jsx(ln,{children:d.jsx(cn,{...o,disabled:!0,value:"lscs.info/",className:"text-white bg-[#333437] border-2 border-[#1D283A] rounded-l-lg w-1/4"})}),d.jsx(ln,{children:d.jsx(cn,{...o,className:"text-white bg-[#030711] border-2 border-[#1D283A] rounded-lg"})})]}),d.jsx(qn,{})]})})}),d.jsx(jr,{control:n.control,name:"longLink",render:({field:o})=>d.jsx(d.Fragment,{children:d.jsxs(Yn,{children:[d.jsx(Xn,{className:"text-white",children:"Long Link"}),d.jsx(ln,{children:d.jsx(cn,{...o,className:"text-white bg-[#030711] border-2 border-[#1D283A] rounded-lg"})}),d.jsx(qn,{})]})})}),d.jsxs("div",{className:"space-x-6",children:[d.jsx(Yl,{type:"submit",className:"text-black bg-white",children:"Continue"}),d.jsx(Xl,{className:"bg-transparent border-transparent text-white",children:"Cancel"})]})]})})})]})]})})},ZL=()=>{const e=[{name:"Research and Development",abbreviation:"rnd"},{name:"Academics",abbreviation:"acads"}],[t,,]=Zn(["currentToken"]);return"currentToken"in t||window.location.replace("/accessAccount"),d.jsx(d.Fragment,{children:d.jsxs("div",{className:"min-h-screen bg-[#000000] text-white md:px-28 py-8",children:[d.jsxs("div",{className:"flex flex-wrap items-end space-x-5 space-y-6",children:[d.jsx("h1",{className:"font-bold text-4xl",children:"Shortened Links"}),d.jsx(KL,{}),d.jsxs(HO,{children:[d.jsx(l1,{className:"w-[180px] border-2 border-[#1D283A] bg-[#030711] text-white",children:d.jsx(KO,{placeholder:"Committee"})}),d.jsx(d1,{children:e.map((n,r)=>d.jsx(d.Fragment,{children:d.jsx(f1,{value:n.abbreviation,children:n.name},r)}))})]})]}),d.jsx(wh,{className:"my-6 bg-[#1D283A]"}),d.jsx(WL,{})]})})};var Vh="Tabs",[GL,mF]=Nn(Vh,[ws]),EC=ws(),[YL,Uh]=GL(Vh),NC=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:l="automatic",...c}=e,u=uo(a),[p,h]=Wn({prop:r,onChange:o,defaultProp:s});return d.jsx(YL,{scope:n,baseId:ht(),value:p,onValueChange:h,orientation:i,dir:u,activationMode:l,children:d.jsx(X.div,{dir:u,"data-orientation":i,...c,ref:t})})});NC.displayName=Vh;var kC="TabsList",RC=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=Uh(kC,n),i=EC(n);return d.jsx(Qp,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:d.jsx(X.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});RC.displayName=kC;var TC="TabsTrigger",PC=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,i=Uh(TC,n),a=EC(n),l=jC(i.baseId,r),c=OC(i.baseId,r),u=r===i.value;return d.jsx(Jp,{asChild:!0,...a,focusable:!o,active:u,children:d.jsx(X.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...s,ref:t,onMouseDown:F(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?i.onValueChange(r):p.preventDefault()}),onKeyDown:F(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&i.onValueChange(r)}),onFocus:F(e.onFocus,()=>{const p=i.activationMode!=="manual";!u&&!o&&p&&i.onValueChange(r)})})})});PC.displayName=TC;var AC="TabsContent",MC=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...i}=e,a=Uh(AC,n),l=jC(a.baseId,r),c=OC(a.baseId,r),u=r===a.value,p=f.useRef(u);return f.useEffect(()=>{const h=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(h)},[]),d.jsx(zt,{present:o||u,children:({present:h})=>d.jsx(X.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:h&&s})})});MC.displayName=AC;function jC(e,t){return`${e}-trigger-${t}`}function OC(e,t){return`${e}-content-${t}`}var XL=NC,IC=RC,DC=PC,LC=MC;const qL=XL,FC=f.forwardRef(({className:e,...t},n)=>d.jsx(IC,{ref:n,className:G("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));FC.displayName=IC.displayName;const Df=f.forwardRef(({className:e,...t},n)=>d.jsx(DC,{ref:n,className:G("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Df.displayName=DC.displayName;const Lf=f.forwardRef(({className:e,...t},n)=>d.jsx(LC,{ref:n,className:G("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Lf.displayName=LC.displayName;const QL=Zt.object({email:Zt.string().email().refine(e=>e.endsWith("@dlsu.edu.ph"),{message:"Email must end with '@dlsu.edu.ph'"}),password:Zt.string()}),JL=()=>{const[,e]=Zn(["currentUser"]),[,t]=Zn(["currentToken"]),[n,r]=f.useState(null),o=zc({resolver:Vc(QL),defaultValues:{email:"",password:""}}),s=i=>{(async()=>{var l,c;try{const u=await Re.post("https://lscs.info/auth/login",{email:i.email,password:i.password},{headers:{"Content-Type":"application/json"}});u.data.status=="success"&&window.location.replace("/"),e("currentUser",u.data.user,{path:"/"}),console.log(u.data.token),t("currentToken",u.data.token,{path:"/"})}catch(u){const p=((c=(l=u==null?void 0:u.response)==null?void 0:l.data)==null?void 0:c.error)||(u==null?void 0:u.message)||"An unknown error occurred";console.log(u),r(p)}})()};return d.jsx(d.Fragment,{children:d.jsx("div",{className:"flex justify-center",children:d.jsx(Hc,{...o,children:d.jsxs("form",{onSubmit:o.handleSubmit(s),className:"space-y-8 bg-[#030711] border-2 border-[#1D283A] rounded-lg md:px-24 py-12 px-12 flex flex-col",children:[d.jsx(jr,{control:o.control,name:"email",render:({field:i})=>d.jsx(d.Fragment,{children:d.jsxs(Yn,{children:[d.jsx(Xn,{className:"text-lg",children:"Email"}),d.jsx(ln,{children:d.jsx(cn,{placeholder:"juan_delacruz@dlsu.edu.ph",...i,className:"text-black"})}),d.jsx(Wi,{children:"Input Email"}),d.jsx(qn,{})]})})}),d.jsx(jr,{control:o.control,name:"password",render:({field:i})=>d.jsx(d.Fragment,{children:d.jsxs(Yn,{children:[d.jsx(Xn,{className:"text-lg",children:"Password"}),d.jsx(ln,{children:d.jsx(cn,{type:"password",placeholder:"Password",...i,className:"text-black"})}),d.jsx(Wi,{children:"Input Password"}),d.jsx(qn,{})]})})}),n?d.jsx("p",{className:"text-red-500",children:n}):null,d.jsx(Wc,{type:"submit",className:"bg-[#F8FAFC] text-black",children:"LogIn"})]})})})})},eF=Zt.object({email:Zt.string().email().refine(e=>e.endsWith("@dlsu.edu.ph"),{message:"Email must end with '@dlsu.edu.ph'"}),password:Zt.string().min(8,"Password must be at least 8 characters long")}),tF=()=>{const e=zc({resolver:Vc(eF),defaultValues:{email:"",password:""}}),t=n=>{(async()=>{try{const o=await Re.post("https://lscs.info/auth/register",{email:n.email,password:n.password},{headers:{"Content-Type":"application/json"}});console.log(o.data),o.data.status=="success"&&window.location.replace("/accessAccount")}catch(o){console.log(o)}})()};return d.jsx(d.Fragment,{children:d.jsx("div",{className:"flex justify-center",children:d.jsx(Hc,{...e,children:d.jsxs("form",{onSubmit:e.handleSubmit(t),className:"space-y-8 bg-[#030711] border-2 border-[#1D283A] rounded-lg md:px-24 px-6 py-12 flex flex-col",children:[d.jsx(jr,{control:e.control,name:"email",render:({field:n})=>d.jsx(d.Fragment,{children:d.jsxs(Yn,{children:[d.jsx(Xn,{className:"text-lg",children:"Email"}),d.jsx(ln,{children:d.jsx(cn,{placeholder:"juan_delacruz@dlsu.edu.ph",...n,className:"text-black"})}),d.jsx(Wi,{children:"Input DLSU email must include @dlsu.edu.ph"}),d.jsx(qn,{})]})})}),d.jsx(jr,{control:e.control,name:"password",render:({field:n})=>d.jsx(d.Fragment,{children:d.jsxs(Yn,{children:[d.jsx(Xn,{className:"text-lg",children:"Password"}),d.jsx(ln,{children:d.jsx(cn,{type:"password",placeholder:"Password",...n,className:"text-black"})}),d.jsx(Wi,{children:"Password must be at least 8 characters long"}),d.jsx(qn,{})]})})}),d.jsx(Wc,{type:"submit",className:"bg-[#F8FAFC] text-black",children:"Register"})]})})})})},nF=()=>d.jsx(d.Fragment,{children:d.jsx("div",{className:"min-h-screen bg-[#000000] text-white px-28 py-8",children:d.jsx("div",{className:"flex flex-col items-center justify-center space-y-6",children:d.jsxs(qL,{defaultValue:"logIn",className:"w-[400px] flex flex-col items-center space-y-10",children:[d.jsxs(FC,{className:"bg-[#1D283A]",children:[d.jsx(Df,{value:"logIn",className:"bg-[#1D283A]",children:"Log-In"}),d.jsx(Df,{value:"register",className:"bg-[#1D283A]",children:"Register"})]}),d.jsxs(Lf,{value:"logIn",className:"space-y-3",children:[d.jsx("p",{className:"font-bold text-3xl",children:"Log-In"}),d.jsx(JL,{})]}),d.jsxs(Lf,{value:"register",className:"space-y-3",children:[d.jsx("p",{className:"font-bold text-3xl",children:"Register"}),d.jsx(tF,{})]})]})})})}),rF=()=>d.jsx(d.Fragment,{children:d.jsxs(Tj,{children:[d.jsx(ff,{path:"/",element:d.jsx(ZL,{})}),d.jsx(ff,{path:"/accessAccount",element:d.jsx(nF,{})})]})}),oF=()=>d.jsxs(d.Fragment,{children:[d.jsx(oO,{}),d.jsx(rF,{})]}),sF=()=>d.jsx(d.Fragment,{children:d.jsx(qj,{children:d.jsx(Dj,{children:d.jsx(oF,{})})})});Mx(document.getElementById("root")).render(d.jsx(f.StrictMode,{children:d.jsx(sF,{})})); diff --git a/dist/assets/index-DX4nqaQ-.js b/dist/assets/index-DX4nqaQ-.js new file mode 100644 index 0000000..9946997 --- /dev/null +++ b/dist/assets/index-DX4nqaQ-.js @@ -0,0 +1,192 @@ +function A_(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 s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Dg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lg={exports:{}},ac={},Fg={exports:{}},me={};/** + * @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 Ki=Symbol.for("react.element"),O_=Symbol.for("react.portal"),M_=Symbol.for("react.fragment"),j_=Symbol.for("react.strict_mode"),I_=Symbol.for("react.profiler"),D_=Symbol.for("react.provider"),L_=Symbol.for("react.context"),F_=Symbol.for("react.forward_ref"),$_=Symbol.for("react.suspense"),V_=Symbol.for("react.memo"),U_=Symbol.for("react.lazy"),oh=Symbol.iterator;function z_(e){return e===null||typeof e!="object"?null:(e=oh&&e[oh]||e["@@iterator"],typeof e=="function"?e:null)}var $g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vg=Object.assign,Ug={};function us(e,t,n){this.props=e,this.context=t,this.refs=Ug,this.updater=n||$g}us.prototype.isReactComponent={};us.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")};us.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zg(){}zg.prototype=us.prototype;function Xf(e,t,n){this.props=e,this.context=t,this.refs=Ug,this.updater=n||$g}var qf=Xf.prototype=new zg;qf.constructor=Xf;Vg(qf,us.prototype);qf.isPureReactComponent=!0;var sh=Array.isArray,Bg=Object.prototype.hasOwnProperty,Qf={current:null},Wg={key:!0,ref:!0,__self:!0,__source:!0};function Hg(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Bg.call(t,r)&&!Wg.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,fe=A[te];if(0>>1;teo(ut,B))Aeo(J,ut)?(A[te]=J,A[Ae]=B,te=Ae):(A[te]=ut,A[ke]=B,te=ke);else if(Aeo(J,B))A[te]=J,A[Ae]=B,te=Ae;else break e}}return O}function o(A,O){var B=A.sortIndex-O.sortIndex;return B!==0?B:A.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],d=1,p=null,m=3,w=!1,g=!1,h=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(A){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=A)r(c),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(c)}}function E(A){if(h=!1,S(A),!g)if(n(l)!==null)g=!0,K(b);else{var O=n(c);O!==null&&re(E,O.startTime-A)}}function b(A,O){g=!1,h&&(h=!1,y(R),R=-1),w=!0;var B=m;try{for(S(O),p=n(l);p!==null&&(!(p.expirationTime>O)||A&&!Y());){var te=p.callback;if(typeof te=="function"){p.callback=null,m=p.priorityLevel;var fe=te(p.expirationTime<=O);O=e.unstable_now(),typeof fe=="function"?p.callback=fe:p===n(l)&&r(l),S(O)}else r(l);p=n(l)}if(p!==null)var ze=!0;else{var ke=n(c);ke!==null&&re(E,ke.startTime-O),ze=!1}return ze}finally{p=null,m=B,w=!1}}var N=!1,C=null,R=-1,P=5,j=-1;function Y(){return!(e.unstable_now()-jA||125te?(A.sortIndex=B,t(c,A),n(l)===null&&A===n(c)&&(h?(y(R),R=-1):h=!0,re(E,B-te))):(A.sortIndex=fe,t(l,A),g||w||(g=!0,K(b))),A},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(A){var O=m;return function(){var B=m;m=O;try{return A.apply(this,arguments)}finally{m=B}}}})(qg);Xg.exports=qg;var J_=Xg.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 eN=u,Ft=J_;function L(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"),nd=Object.prototype.hasOwnProperty,tN=/^[: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]*$/,ah={},lh={};function nN(e){return nd.call(lh,e)?!0:nd.call(ah,e)?!1:tN.test(e)?lh[e]=!0:(ah[e]=!0,!1)}function rN(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 oN(e,t,n,r){if(t===null||typeof t>"u"||rN(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 vt(e,t,n,r,o,s,i){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=s,this.removeEmptyString=i}var nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nt[e]=new vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nt[t]=new vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nt[e]=new vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nt[e]=new vt(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){nt[e]=new vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nt[e]=new vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nt[e]=new vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nt[e]=new vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nt[e]=new vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var ep=/[\-:]([a-z])/g;function tp(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(ep,tp);nt[t]=new vt(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(ep,tp);nt[t]=new vt(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(ep,tp);nt[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nt[e]=new vt(e,1,!1,e.toLowerCase(),null,!1,!1)});nt.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nt[e]=new vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function np(e,t,n,r){var o=nt.hasOwnProperty(t)?nt[t]:null;(o!==null?o.type!==0:r||!(2a||o[i]!==s[a]){var l=` +`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{iu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Is(e):""}function sN(e){switch(e.tag){case 5:return Is(e.type);case 16:return Is("Lazy");case 13:return Is("Suspense");case 19:return Is("SuspenseList");case 0:case 2:case 15:return e=au(e.type,!1),e;case 11:return e=au(e.type.render,!1),e;case 1:return e=au(e.type,!0),e;default:return""}}function id(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 No:return"Fragment";case _o:return"Portal";case rd:return"Profiler";case rp:return"StrictMode";case od:return"Suspense";case sd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ey:return(e.displayName||"Context")+".Consumer";case Jg:return(e._context.displayName||"Context")+".Provider";case op:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sp:return t=e.displayName||null,t!==null?t:id(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return id(e(t))}catch{}}return null}function iN(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 id(t);case 8:return t===rp?"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 xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ny(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aN(e){var t=ny(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function da(e){e._valueTracker||(e._valueTracker=aN(e))}function ry(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ny(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sl(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 ad(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(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 oy(e,t){t=t.checked,t!=null&&np(e,"checked",t,!1)}function ld(e,t){oy(e,t);var n=xr(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")?cd(e,t.type,n):t.hasOwnProperty("defaultValue")&&cd(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dh(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 cd(e,t,n){(t!=="number"||sl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ds=Array.isArray;function $o(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=fa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function si(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ws={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},lN=["Webkit","ms","Moz","O"];Object.keys(Ws).forEach(function(e){lN.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ws[t]=Ws[e]})});function ly(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ws.hasOwnProperty(e)&&Ws[e]?(""+t).trim():t+"px"}function cy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ly(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var cN=$e({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 fd(e,t){if(t){if(cN[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function pd(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 md=null;function ip(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hd=null,Vo=null,Uo=null;function mh(e){if(e=Yi(e)){if(typeof hd!="function")throw Error(L(280));var t=e.stateNode;t&&(t=fc(t),hd(e.stateNode,e.type,t))}}function uy(e){Vo?Uo?Uo.push(e):Uo=[e]:Vo=e}function dy(){if(Vo){var e=Vo,t=Uo;if(Uo=Vo=null,mh(e),t)for(e=0;e>>=0,e===0?32:31-(xN(e)/SN|0)|0}var pa=64,ma=4194304;function Ls(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 cl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Ls(a):(s&=i,s!==0&&(r=Ls(s)))}else i=n&~o,i!==0?r=Ls(i):s!==0&&(r=Ls(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&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 Zi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-on(t),e[t]=n}function _N(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=Ks),Eh=" ",Ch=!1;function Ay(e,t){switch(e){case"keyup":return JN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ro=!1;function tR(e,t){switch(e){case"compositionend":return Oy(t);case"keypress":return t.which!==32?null:(Ch=!0,Eh);case"textInput":return e=t.data,e===Eh&&Ch?null:e;default:return null}}function nR(e,t){if(Ro)return e==="compositionend"||!mp&&Ay(e,t)?(e=Ty(),Ba=dp=lr=null,Ro=!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=kh(n)}}function Dy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ly(){for(var e=window,t=sl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function hp(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 dR(e){var t=Ly(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dy(n.ownerDocument.documentElement,n)){if(r!==null&&hp(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,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Th(n,s);var i=Th(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,ko=null,Sd=null,Gs=null,bd=!1;function Ph(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bd||ko==null||ko!==sl(r)||(r=ko,"selectionStart"in r&&hp(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}),Gs&&di(Gs,r)||(Gs=r,r=fl(Sd,"onSelect"),0Ao||(e.current=kd[Ao],kd[Ao]=null,Ao--)}function Te(e,t){Ao++,kd[Ao]=e.current,e.current=t}var Sr={},lt=Ar(Sr),Et=Ar(!1),Gr=Sr;function Qo(e,t){var n=e.type.contextTypes;if(!n)return Sr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ct(e){return e=e.childContextTypes,e!=null}function ml(){je(Et),je(lt)}function Lh(e,t,n){if(lt.current!==Sr)throw Error(L(168));Te(lt,t),Te(Et,n)}function Ky(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(L(108,iN(e)||"Unknown",o));return $e({},n,r)}function hl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sr,Gr=lt.current,Te(lt,e),Te(Et,Et.current),!0}function Fh(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Ky(e,t,Gr),r.__reactInternalMemoizedMergedChildContext=e,je(Et),je(lt),Te(lt,e)):je(Et),Te(Et,n)}var Mn=null,pc=!1,Su=!1;function Zy(e){Mn===null?Mn=[e]:Mn.push(e)}function ER(e){pc=!0,Zy(e)}function Or(){if(!Su&&Mn!==null){Su=!0;var e=0,t=Ne;try{var n=Mn;for(Ne=1;e>=i,o-=i,jn=1<<32-on(t)+o|n<R?(P=C,C=null):P=C.sibling;var j=m(y,C,S[R],E);if(j===null){C===null&&(C=P);break}e&&C&&j.alternate===null&&t(y,C),v=s(j,v,R),N===null?b=j:N.sibling=j,N=j,C=P}if(R===S.length)return n(y,C),Ie&&Dr(y,R),b;if(C===null){for(;RR?(P=C,C=null):P=C.sibling;var Y=m(y,C,j.value,E);if(Y===null){C===null&&(C=P);break}e&&C&&Y.alternate===null&&t(y,C),v=s(Y,v,R),N===null?b=Y:N.sibling=Y,N=Y,C=P}if(j.done)return n(y,C),Ie&&Dr(y,R),b;if(C===null){for(;!j.done;R++,j=S.next())j=p(y,j.value,E),j!==null&&(v=s(j,v,R),N===null?b=j:N.sibling=j,N=j);return Ie&&Dr(y,R),b}for(C=r(y,C);!j.done;R++,j=S.next())j=w(C,y,R,j.value,E),j!==null&&(e&&j.alternate!==null&&C.delete(j.key===null?R:j.key),v=s(j,v,R),N===null?b=j:N.sibling=j,N=j);return e&&C.forEach(function(I){return t(y,I)}),Ie&&Dr(y,R),b}function x(y,v,S,E){if(typeof S=="object"&&S!==null&&S.type===No&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case ua:e:{for(var b=S.key,N=v;N!==null;){if(N.key===b){if(b=S.type,b===No){if(N.tag===7){n(y,N.sibling),v=o(N,S.props.children),v.return=y,y=v;break e}}else if(N.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===nr&&Uh(b)===N.type){n(y,N.sibling),v=o(N,S.props),v.ref=ks(y,N,S),v.return=y,y=v;break e}n(y,N);break}else t(y,N);N=N.sibling}S.type===No?(v=Br(S.props.children,y.mode,E,S.key),v.return=y,y=v):(E=qa(S.type,S.key,S.props,null,y.mode,E),E.ref=ks(y,v,S),E.return=y,y=E)}return i(y);case _o:e:{for(N=S.key;v!==null;){if(v.key===N)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(y,v.sibling),v=o(v,S.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=Tu(S,y.mode,E),v.return=y,y=v}return i(y);case nr:return N=S._init,x(y,v,N(S._payload),E)}if(Ds(S))return g(y,v,S,E);if(Es(S))return h(y,v,S,E);Sa(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(y,v.sibling),v=o(v,S),v.return=y,y=v):(n(y,v),v=ku(S,y.mode,E),v.return=y,y=v),i(y)):n(y,v)}return x}var es=qy(!0),Qy=qy(!1),yl=Ar(null),wl=null,jo=null,wp=null;function xp(){wp=jo=wl=null}function Sp(e){var t=yl.current;je(yl),e._currentValue=t}function Ad(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Bo(e,t){wl=e,wp=jo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(bt=!0),e.firstContext=null)}function Zt(e){var t=e._currentValue;if(wp!==e)if(e={context:e,memoizedValue:t,next:null},jo===null){if(wl===null)throw Error(L(308));jo=e,wl.dependencies={lanes:0,firstContext:e}}else jo=jo.next=e;return t}var $r=null;function bp(e){$r===null?$r=[e]:$r.push(e)}function Jy(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,bp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vn(e,r)}function Vn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rr=!1;function Ep(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ew(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ln(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ge&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vn(e,n)}return o=r.interleaved,o===null?(t.next=t,bp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vn(e,n)}function Ha(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lp(e,n)}}function zh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xl(e,t,n,r){var o=e.updateQueue;rr=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?s=c:i.next=c,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(s!==null){var p=o.baseState;i=0,d=c=l=null,a=s;do{var m=a.lane,w=a.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:w,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,h=a;switch(m=t,w=n,h.tag){case 1:if(g=h.payload,typeof g=="function"){p=g.call(w,p,m);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=h.payload,m=typeof g=="function"?g.call(w,p,m):g,m==null)break e;p=$e({},p,m);break e;case 2:rr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[a]:m.push(a))}else w={eventTime:w,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=w,l=p):d=d.next=w,i|=m;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;m=a,a=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(l=p),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);qr|=i,e.lanes=i,e.memoizedState=p}}function Bh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Eu.transition;Eu.transition={};try{e(!1),t()}finally{Ne=n,Eu.transition=r}}function gw(){return Gt().memoizedState}function RR(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yw(e))ww(t,n);else if(n=Jy(e,t,n,r),n!==null){var o=pt();sn(n,e,r,o),xw(n,t,r)}}function kR(e,t,n){var r=gr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yw(e))ww(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,cn(a,i)){var l=t.interleaved;l===null?(o.next=o,bp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Jy(e,t,o,r),n!==null&&(o=pt(),sn(n,e,r,o),xw(n,t,r))}}function yw(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function ww(e,t){Ys=bl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lp(e,n)}}var El={readContext:Zt,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},TR={readContext:Zt,useCallback:function(e,t){return vn().memoizedState=[e,t===void 0?null:t],e},useContext:Zt,useEffect:Hh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Za(4194308,4,fw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Za(4194308,4,e,t)},useInsertionEffect:function(e,t){return Za(4,2,e,t)},useMemo:function(e,t){var n=vn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vn();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=RR.bind(null,Fe,e),[r.memoizedState,e]},useRef:function(e){var t=vn();return e={current:e},t.memoizedState=e},useState:Wh,useDebugValue:Ap,useDeferredValue:function(e){return vn().memoizedState=e},useTransition:function(){var e=Wh(!1),t=e[0];return e=NR.bind(null,e[1]),vn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fe,o=vn();if(Ie){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Je===null)throw Error(L(349));Xr&30||ow(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Hh(iw.bind(null,r,s,e),[e]),r.flags|=2048,wi(9,sw.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=vn(),t=Je.identifierPrefix;if(Ie){var n=In,r=jn;n=(r&~(1<<32-on(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[gn]=t,e[mi]=r,Pw(e,t,!1,!1),t.stateNode=e;e:{switch(i=pd(n,r),n){case"dialog":Me("cancel",e),Me("close",e),o=r;break;case"iframe":case"object":case"embed":Me("load",e),o=r;break;case"video":case"audio":for(o=0;ors&&(t.flags|=128,r=!0,Ts(s,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ts(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!Ie)return st(t),null}else 2*Be()-s.renderingStartTime>rs&&n!==1073741824&&(t.flags|=128,r=!0,Ts(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Be(),t.sibling=null,n=Le.current,Te(Le,r?n&1|2:n&1),t):(st(t),null);case 22:case 23:return Lp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pt&1073741824&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function LR(e,t){switch(gp(t),t.tag){case 1:return Ct(t.type)&&ml(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ts(),je(Et),je(lt),Np(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _p(t),null;case 13:if(je(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return je(Le),null;case 4:return ts(),null;case 10:return Sp(t.type._context),null;case 22:case 23:return Lp(),null;case 24:return null;default:return null}}var Ea=!1,it=!1,FR=typeof WeakSet=="function"?WeakSet:Set,Q=null;function Io(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ve(e,t,r)}else n.current=null}function Vd(e,t,n){try{n()}catch(r){Ve(e,t,r)}}var nv=!1;function $R(e,t){if(Ed=ul,e=Ly(),hp(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,c=0,d=0,p=e,m=null;t:for(;;){for(var w;p!==n||o!==0&&p.nodeType!==3||(a=i+o),p!==s||r!==0&&p.nodeType!==3||(l=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(w=p.firstChild)!==null;)m=p,p=w;for(;;){if(p===e)break t;if(m===n&&++c===o&&(a=i),m===s&&++d===r&&(l=i),(w=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=w}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cd={focusedElem:e,selectionRange:n},ul=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var h=g.memoizedProps,x=g.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:Jt(t.type,h),x);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(E){Ve(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return g=nv,nv=!1,g}function Xs(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 s=o.destroy;o.destroy=void 0,s!==void 0&&Vd(t,n,s)}o=o.next}while(o!==r)}}function vc(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 Ud(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 Mw(e){var t=e.alternate;t!==null&&(e.alternate=null,Mw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gn],delete t[mi],delete t[Rd],delete t[SR],delete t[bR])),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 jw(e){return e.tag===5||e.tag===3||e.tag===4}function rv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jw(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 zd(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=pl));else if(r!==4&&(e=e.child,e!==null))for(zd(e,t,n),e=e.sibling;e!==null;)zd(e,t,n),e=e.sibling}function Bd(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(Bd(e,t,n),e=e.sibling;e!==null;)Bd(e,t,n),e=e.sibling}var et=null,en=!1;function qn(e,t,n){for(n=n.child;n!==null;)Iw(e,t,n),n=n.sibling}function Iw(e,t,n){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(lc,n)}catch{}switch(n.tag){case 5:it||Io(n,t);case 6:var r=et,o=en;et=null,qn(e,t,n),et=r,en=o,et!==null&&(en?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(en?(e=et,n=n.stateNode,e.nodeType===8?xu(e.parentNode,n):e.nodeType===1&&xu(e,n),ci(e)):xu(et,n.stateNode));break;case 4:r=et,o=en,et=n.stateNode.containerInfo,en=!0,qn(e,t,n),et=r,en=o;break;case 0:case 11:case 14:case 15:if(!it&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Vd(n,t,i),o=o.next}while(o!==r)}qn(e,t,n);break;case 1:if(!it&&(Io(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ve(n,t,a)}qn(e,t,n);break;case 21:qn(e,t,n);break;case 22:n.mode&1?(it=(r=it)||n.memoizedState!==null,qn(e,t,n),it=r):qn(e,t,n);break;default:qn(e,t,n)}}function ov(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new FR),t.forEach(function(r){var o=GR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*UR(r/1960))-r,10e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Nl=0,ge&6)throw Error(L(331));var o=ge;for(ge|=4,Q=e.current;Q!==null;){var s=Q,i=s.child;if(Q.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lBe()-Ip?zr(e,0):jp|=n),_t(e,t)}function Bw(e,t){t===0&&(e.mode&1?(t=ma,ma<<=1,!(ma&130023424)&&(ma=4194304)):t=1);var n=pt();e=Vn(e,t),e!==null&&(Zi(e,t,n),_t(e,n))}function ZR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bw(e,n)}function GR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),Bw(e,n)}var Ww;Ww=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bt=!1,IR(e,t,n);bt=!!(e.flags&131072)}else bt=!1,Ie&&t.flags&1048576&&Gy(t,gl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ga(e,t),e=t.pendingProps;var o=Qo(t,lt.current);Bo(t,n),o=kp(null,t,r,e,o,n);var s=Tp();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,Ct(r)?(s=!0,hl(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ep(t),o.updater=hc,t.stateNode=o,o._reactInternals=t,Md(t,r,e,n),t=Dd(null,t,r,!0,s,n)):(t.tag=0,Ie&&s&&vp(t),dt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ga(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=XR(r),e=Jt(r,e),o){case 0:t=Id(null,t,r,e,n);break e;case 1:t=Jh(null,t,r,e,n);break e;case 11:t=qh(null,t,r,e,n);break e;case 14:t=Qh(null,t,r,Jt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Id(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Jh(e,t,r,o,n);case 3:e:{if(Rw(t),e===null)throw Error(L(387));r=t.pendingProps,s=t.memoizedState,o=s.element,ew(e,t),xl(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=ns(Error(L(423)),t),t=ev(e,t,r,n,o);break e}else if(r!==o){o=ns(Error(L(424)),t),t=ev(e,t,r,n,o);break e}else for(Mt=mr(t.stateNode.containerInfo.firstChild),jt=t,Ie=!0,tn=null,n=Qy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jo(),r===o){t=Un(e,t,n);break e}dt(e,t,r,n)}t=t.child}return t;case 5:return tw(t),e===null&&Pd(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,_d(r,o)?i=null:s!==null&&_d(r,s)&&(t.flags|=32),Nw(e,t),dt(e,t,i,n),t.child;case 6:return e===null&&Pd(t),null;case 13:return kw(e,t,n);case 4:return Cp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=es(t,null,r,n):dt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),qh(e,t,r,o,n);case 7:return dt(e,t,t.pendingProps,n),t.child;case 8:return dt(e,t,t.pendingProps.children,n),t.child;case 12:return dt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,Te(yl,r._currentValue),r._currentValue=i,s!==null)if(cn(s.value,i)){if(s.children===o.children&&!Et.current){t=Un(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Ln(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ad(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(L(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ad(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}dt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Bo(t,n),o=Zt(o),r=r(o),t.flags|=1,dt(e,t,r,n),t.child;case 14:return r=t.type,o=Jt(r,t.pendingProps),o=Jt(r.type,o),Qh(e,t,r,o,n);case 15:return Cw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Ga(e,t),t.tag=1,Ct(r)?(e=!0,hl(t)):e=!1,Bo(t,n),Sw(t,r,o),Md(t,r,o,n),Dd(null,t,r,!0,e,n);case 19:return Tw(e,t,n);case 22:return _w(e,t,n)}throw Error(L(156,t.tag))};function Hw(e,t){return yy(e,t)}function YR(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 Wt(e,t,n,r){return new YR(e,t,n,r)}function $p(e){return e=e.prototype,!(!e||!e.isReactComponent)}function XR(e){if(typeof e=="function")return $p(e)?1:0;if(e!=null){if(e=e.$$typeof,e===op)return 11;if(e===sp)return 14}return 2}function yr(e,t){var n=e.alternate;return n===null?(n=Wt(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 qa(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")$p(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case No:return Br(n.children,o,s,t);case rp:i=8,o|=8;break;case rd:return e=Wt(12,n,t,o|2),e.elementType=rd,e.lanes=s,e;case od:return e=Wt(13,n,t,o),e.elementType=od,e.lanes=s,e;case sd:return e=Wt(19,n,t,o),e.elementType=sd,e.lanes=s,e;case ty:return yc(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jg:i=10;break e;case ey:i=9;break e;case op:i=11;break e;case sp:i=14;break e;case nr:i=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Wt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Br(e,t,n,r){return e=Wt(7,e,r,t),e.lanes=n,e}function yc(e,t,n,r){return e=Wt(22,e,r,t),e.elementType=ty,e.lanes=n,e.stateNode={isHidden:!1},e}function ku(e,t,n){return e=Wt(6,e,null,t),e.lanes=n,e}function Tu(e,t,n){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qR(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=cu(0),this.expirationTimes=cu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Vp(e,t,n,r,o,s,i,a,l){return e=new qR(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Wt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ep(s),e}function QR(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yw)}catch(e){console.error(e)}}Yw(),Yg.exports=$t;var Gn=Yg.exports;const Ec=Dg(Gn);var Xw,fv=Gn;Xw=fv.createRoot,fv.hydrateRoot;function rk(e,t){const n=u.createContext(t);function r(s){const{children:i,...a}=s,l=u.useMemo(()=>a,Object.values(a));return f.jsx(n.Provider,{value:l,children:i})}function o(s){const i=u.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function Yn(e,t=[]){let n=[];function r(s,i){const a=u.createContext(i),l=n.length;n=[...n,i];function c(p){const{scope:m,children:w,...g}=p,h=(m==null?void 0:m[e][l])||a,x=u.useMemo(()=>g,Object.values(g));return f.jsx(h.Provider,{value:x,children:w})}function d(p,m){const w=(m==null?void 0:m[e][l])||a,g=u.useContext(w);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,d]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,ok(o,...t)]}function ok(...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(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const p=l(s)[`__scope${c}`];return{...a,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function $(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 sk(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function qi(...e){return t=>e.forEach(n=>sk(n,t))}function le(...e){return u.useCallback(qi(...e),e)}var zn=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),s=o.find(ik);if(s){const i=s.props.children,a=o.map(l=>l===s?u.Children.count(i)>1?u.Children.only(null):u.isValidElement(i)?i.props.children:null:l);return f.jsx(Gd,{...r,ref:t,children:u.isValidElement(i)?u.cloneElement(i,void 0,a):null})}return f.jsx(Gd,{...r,ref:t,children:n})});zn.displayName="Slot";var Gd=u.forwardRef((e,t)=>{const{children:n,...r}=e;if(u.isValidElement(n)){const o=lk(n);return u.cloneElement(n,{...ak(r,n.props),ref:t?qi(t,o):o})}return u.Children.count(n)>1?u.Children.only(null):null});Gd.displayName="SlotClone";var qw=({children:e})=>f.jsx(f.Fragment,{children:e});function ik(e){return u.isValidElement(e)&&e.type===qw}function ak(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{s(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function lk(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ck=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ee=ck.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:s,...i}=r,a=s?zn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Si(e,t){e&&Gn.flushSync(()=>e.dispatchEvent(t))}function he(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Bn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=uk({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:r,a=he(n),l=u.useCallback(c=>{if(s){const p=typeof c=="function"?c(e):c;p!==e&&a(p)}else o(c)},[s,e,o,a]);return[i,l]}function uk({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),s=he(t);return u.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var dk=u.createContext(void 0);function ps(e){const t=u.useContext(dk);return e||t||"ltr"}var Re=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function fk(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Yt=e=>{const{present:t,children:n}=e,r=pk(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=le(r.ref,mk(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};Yt.displayName="Presence";function pk(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[a,l]=fk(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=Na(r.current);s.current=a==="mounted"?c:"none"},[a]),Re(()=>{const c=r.current,d=o.current;if(d!==e){const m=s.current,w=Na(c);e?l("MOUNT"):w==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&m!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Re(()=>{if(t){const c=p=>{const w=Na(r.current).includes(p.animationName);p.target===t&&w&&Gn.flushSync(()=>l("ANIMATION_END"))},d=p=>{p.target===t&&(s.current=Na(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Na(e){return(e==null?void 0:e.animationName)||"none"}function mk(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hk=Zg.useId||(()=>{}),vk=0;function Nt(e){const[t,n]=u.useState(hk());return Re(()=>{e||n(r=>r??String(vk++))},[e]),e||(t?`radix-${t}`:"")}function ms(e){const t=e+"CollectionProvider",[n,r]=Yn(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=w=>{const{scope:g,children:h}=w,x=ae.useRef(null),y=ae.useRef(new Map).current;return f.jsx(o,{scope:g,itemMap:y,collectionRef:x,children:h})};i.displayName=t;const a=e+"CollectionSlot",l=ae.forwardRef((w,g)=>{const{scope:h,children:x}=w,y=s(a,h),v=le(g,y.collectionRef);return f.jsx(zn,{ref:v,children:x})});l.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",p=ae.forwardRef((w,g)=>{const{scope:h,children:x,...y}=w,v=ae.useRef(null),S=le(g,v),E=s(c,h);return ae.useEffect(()=>(E.itemMap.set(v,{ref:v,...y}),()=>void E.itemMap.delete(v))),f.jsx(zn,{[d]:"",ref:S,children:x})});p.displayName=c;function m(w){const g=s(e+"CollectionConsumer",w);return ae.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const y=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((E,b)=>y.indexOf(E.ref.current)-y.indexOf(b.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:l,ItemSlot:p},m,r]}function Wp(e,t=globalThis==null?void 0:globalThis.document){const n=he(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var gk="DismissableLayer",Yd="dismissableLayer.update",yk="dismissableLayer.pointerDownOutside",wk="dismissableLayer.focusOutside",pv,Qw=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cc=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=u.useContext(Qw),[d,p]=u.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=u.useState({}),g=le(t,C=>p(C)),h=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(x),v=d?h.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,E=v>=y,b=bk(C=>{const R=C.target,P=[...c.branches].some(j=>j.contains(R));!E||P||(o==null||o(C),i==null||i(C),C.defaultPrevented||a==null||a())},m),N=Ek(C=>{const R=C.target;[...c.branches].some(j=>j.contains(R))||(s==null||s(C),i==null||i(C),C.defaultPrevented||a==null||a())},m);return Wp(C=>{v===c.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},m),u.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(pv=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),mv(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=pv)}},[d,m,n,c]),u.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),mv())},[d,c]),u.useEffect(()=>{const C=()=>w({});return document.addEventListener(Yd,C),()=>document.removeEventListener(Yd,C)},[]),f.jsx(ee.div,{...l,ref:g,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:$(e.onFocusCapture,N.onFocusCapture),onBlurCapture:$(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:$(e.onPointerDownCapture,b.onPointerDownCapture)})});Cc.displayName=gk;var xk="DismissableLayerBranch",Sk=u.forwardRef((e,t)=>{const n=u.useContext(Qw),r=u.useRef(null),o=le(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),f.jsx(ee.div,{...e,ref:o})});Sk.displayName=xk;function bk(e,t=globalThis==null?void 0:globalThis.document){const n=he(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Jw(yk,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ek(e,t=globalThis==null?void 0:globalThis.document){const n=he(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&Jw(wk,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function mv(){const e=new CustomEvent(Yd);document.dispatchEvent(e)}function Jw(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Si(o,s):o.dispatchEvent(s)}function ex(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ck="VisuallyHidden",Hp=u.forwardRef((e,t)=>f.jsx(ee.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Hp.displayName=Ck;var _k=Hp,hs="NavigationMenu",[Kp,tx,Nk]=ms(hs),[Xd,Rk,kk]=ms(hs),[Zp,z$]=Yn(hs,[Nk,kk]),[Tk,Xt]=Zp(hs),[Pk,Ak]=Zp(hs),nx=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:s,delayDuration:i=200,skipDelayDuration:a=300,orientation:l="horizontal",dir:c,...d}=e,[p,m]=u.useState(null),w=le(t,P=>m(P)),g=ps(c),h=u.useRef(0),x=u.useRef(0),y=u.useRef(0),[v,S]=u.useState(!0),[E="",b]=Bn({prop:r,onChange:P=>{const j=P!=="",Y=a>0;j?(window.clearTimeout(y.current),Y&&S(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>S(!0),a)),o==null||o(P)},defaultProp:s}),N=u.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>b(""),150)},[b]),C=u.useCallback(P=>{window.clearTimeout(x.current),b(P)},[b]),R=u.useCallback(P=>{E===P?window.clearTimeout(x.current):h.current=window.setTimeout(()=>{window.clearTimeout(x.current),b(P)},i)},[E,b,i]);return u.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(x.current),window.clearTimeout(y.current)},[]),f.jsx(ox,{scope:n,isRootMenu:!0,value:E,dir:g,orientation:l,rootNavigationMenu:p,onTriggerEnter:P=>{window.clearTimeout(h.current),v?R(P):C(P)},onTriggerLeave:()=>{window.clearTimeout(h.current),N()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:N,onItemSelect:P=>{b(j=>j===P?"":P)},onItemDismiss:()=>b(""),children:f.jsx(ee.nav,{"aria-label":"Main","data-orientation":l,dir:g,...d,ref:w})})});nx.displayName=hs;var rx="NavigationMenuSub",Ok=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",...a}=e,l=Xt(rx,n),[c="",d]=Bn({prop:r,onChange:o,defaultProp:s});return f.jsx(ox,{scope:n,isRootMenu:!1,value:c,dir:l.dir,orientation:i,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:p=>d(p),onItemSelect:p=>d(p),onItemDismiss:()=>d(""),children:f.jsx(ee.div,{"data-orientation":i,...a,ref:t})})});Ok.displayName=rx;var ox=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:s,children:i,value:a,onItemSelect:l,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:p,onContentEnter:m,onContentLeave:w}=e,[g,h]=u.useState(null),[x,y]=u.useState(new Map),[v,S]=u.useState(null);return f.jsx(Tk,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:a,previousValue:ex(a),baseId:Nt(),dir:o,orientation:s,viewport:g,onViewportChange:h,indicatorTrack:v,onIndicatorTrackChange:S,onTriggerEnter:he(d),onTriggerLeave:he(p),onContentEnter:he(m),onContentLeave:he(w),onItemSelect:he(l),onItemDismiss:he(c),onViewportContentChange:u.useCallback((E,b)=>{y(N=>(N.set(E,b),new Map(N)))},[]),onViewportContentRemove:u.useCallback(E=>{y(b=>b.has(E)?(b.delete(E),new Map(b)):b)},[]),children:f.jsx(Kp.Provider,{scope:t,children:f.jsx(Pk,{scope:t,items:x,children:i})})})},sx="NavigationMenuList",ix=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Xt(sx,n),s=f.jsx(ee.ul,{"data-orientation":o.orientation,...r,ref:t});return f.jsx(ee.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:f.jsx(Kp.Slot,{scope:n,children:o.isRootMenu?f.jsx(vx,{asChild:!0,children:s}):s})})});ix.displayName=sx;var ax="NavigationMenuItem",[Mk,lx]=Zp(ax),cx=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,s=Nt(),i=r||s||"LEGACY_REACT_AUTO_VALUE",a=u.useRef(null),l=u.useRef(null),c=u.useRef(null),d=u.useRef(()=>{}),p=u.useRef(!1),m=u.useCallback((g="start")=>{if(a.current){d.current();const h=Qd(a.current);h.length&&Xp(g==="start"?h:h.reverse())}},[]),w=u.useCallback(()=>{if(a.current){const g=Qd(a.current);g.length&&(d.current=Vk(g))}},[]);return f.jsx(Mk,{scope:n,value:i,triggerRef:l,contentRef:a,focusProxyRef:c,wasEscapeCloseRef:p,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:w,onContentFocusOutside:w,children:f.jsx(ee.li,{...o,ref:t})})});cx.displayName=ax;var qd="NavigationMenuTrigger",ux=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,s=Xt(qd,e.__scopeNavigationMenu),i=lx(qd,e.__scopeNavigationMenu),a=u.useRef(null),l=le(a,i.triggerRef,t),c=yx(s.baseId,i.value),d=wx(s.baseId,i.value),p=u.useRef(!1),m=u.useRef(!1),w=i.value===s.value;return f.jsxs(f.Fragment,{children:[f.jsx(Kp.ItemSlot,{scope:n,value:i.value,children:f.jsx(gx,{asChild:!0,children:f.jsx(ee.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":qp(w),"aria-expanded":w,"aria-controls":d,...o,ref:l,onPointerEnter:$(e.onPointerEnter,()=>{m.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:$(e.onPointerMove,Tl(()=>{r||m.current||i.wasEscapeCloseRef.current||p.current||(s.onTriggerEnter(i.value),p.current=!0)})),onPointerLeave:$(e.onPointerLeave,Tl(()=>{r||(s.onTriggerLeave(),p.current=!1)})),onClick:$(e.onClick,()=>{s.onItemSelect(i.value),m.current=w}),onKeyDown:$(e.onKeyDown,g=>{const x={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];w&&g.key===x&&(i.onEntryKeyDown(),g.preventDefault())})})})}),w&&f.jsxs(f.Fragment,{children:[f.jsx(_k,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:g=>{const h=i.contentRef.current,x=g.relatedTarget,y=x===a.current,v=h==null?void 0:h.contains(x);(y||!v)&&i.onFocusProxyEnter(y?"start":"end")}}),s.viewport&&f.jsx("span",{"aria-owns":d})]})]})});ux.displayName=qd;var jk="NavigationMenuLink",hv="navigationMenu.linkSelect",dx=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...s}=e;return f.jsx(gx,{asChild:!0,children:f.jsx(ee.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...s,ref:t,onClick:$(e.onClick,i=>{const a=i.target,l=new CustomEvent(hv,{bubbles:!0,cancelable:!0});if(a.addEventListener(hv,c=>o==null?void 0:o(c),{once:!0}),Si(a,l),!l.defaultPrevented&&!i.metaKey){const c=new CustomEvent(Qa,{bubbles:!0,cancelable:!0});Si(a,c)}},{checkForDefaultPrevented:!1})})})});dx.displayName=jk;var Gp="NavigationMenuIndicator",fx=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xt(Gp,e.__scopeNavigationMenu),s=!!o.value;return o.indicatorTrack?Ec.createPortal(f.jsx(Yt,{present:n||s,children:f.jsx(Ik,{...r,ref:t})}),o.indicatorTrack):null});fx.displayName=Gp;var Ik=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Xt(Gp,n),s=tx(n),[i,a]=u.useState(null),[l,c]=u.useState(null),d=o.orientation==="horizontal",p=!!o.value;u.useEffect(()=>{var h;const g=(h=s().find(x=>x.value===o.value))==null?void 0:h.ref.current;g&&a(g)},[s,o.value]);const m=()=>{i&&c({size:d?i.offsetWidth:i.offsetHeight,offset:d?i.offsetLeft:i.offsetTop})};return Jd(i,m),Jd(o.indicatorTrack,m),l?f.jsx(ee.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...d?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),os="NavigationMenuContent",px=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xt(os,e.__scopeNavigationMenu),s=lx(os,e.__scopeNavigationMenu),i=le(s.contentRef,t),a=s.value===o.value,l={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...r};return o.viewport?f.jsx(Dk,{forceMount:n,...l,ref:i}):f.jsx(Yt,{present:n||a,children:f.jsx(mx,{"data-state":qp(a),...l,ref:i,onPointerEnter:$(e.onPointerEnter,o.onContentEnter),onPointerLeave:$(e.onPointerLeave,Tl(o.onContentLeave)),style:{pointerEvents:!a&&o.isRootMenu?"none":void 0,...l.style}})})});px.displayName=os;var Dk=u.forwardRef((e,t)=>{const n=Xt(os,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Re(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Re(()=>()=>o(e.value),[e.value,o]),null}),Qa="navigationMenu.rootContentDismiss",mx=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:s,wasEscapeCloseRef:i,onRootContentClose:a,onContentFocusOutside:l,...c}=e,d=Xt(os,n),p=u.useRef(null),m=le(p,t),w=yx(d.baseId,r),g=wx(d.baseId,r),h=tx(n),x=u.useRef(null),{onItemDismiss:y}=d;u.useEffect(()=>{const S=p.current;if(d.isRootMenu&&S){const E=()=>{var b;y(),a(),S.contains(document.activeElement)&&((b=o.current)==null||b.focus())};return S.addEventListener(Qa,E),()=>S.removeEventListener(Qa,E)}},[d.isRootMenu,e.value,o,y,a]);const v=u.useMemo(()=>{const E=h().map(j=>j.value);d.dir==="rtl"&&E.reverse();const b=E.indexOf(d.value),N=E.indexOf(d.previousValue),C=r===d.value,R=N===E.indexOf(r);if(!C&&!R)return x.current;const P=(()=>{if(b!==N){if(C&&N!==-1)return b>N?"from-end":"from-start";if(R&&b!==-1)return b>N?"to-start":"to-end"}return null})();return x.current=P,P},[d.previousValue,d.value,d.dir,h,r]);return f.jsx(vx,{asChild:!0,children:f.jsx(Cc,{id:g,"aria-labelledby":w,"data-motion":v,"data-orientation":d.orientation,...c,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var E;const S=new Event(Qa,{bubbles:!0,cancelable:!0});(E=p.current)==null||E.dispatchEvent(S)},onFocusOutside:$(e.onFocusOutside,S=>{var b;l();const E=S.target;(b=d.rootNavigationMenu)!=null&&b.contains(E)&&S.preventDefault()}),onPointerDownOutside:$(e.onPointerDownOutside,S=>{var C;const E=S.target,b=h().some(R=>{var P;return(P=R.ref.current)==null?void 0:P.contains(E)}),N=d.isRootMenu&&((C=d.viewport)==null?void 0:C.contains(E));(b||N||!d.isRootMenu)&&S.preventDefault()}),onKeyDown:$(e.onKeyDown,S=>{var N;const E=S.altKey||S.ctrlKey||S.metaKey;if(S.key==="Tab"&&!E){const C=Qd(S.currentTarget),R=document.activeElement,P=C.findIndex(I=>I===R),Y=S.shiftKey?C.slice(0,P).reverse():C.slice(P+1,C.length);Xp(Y)?S.preventDefault():(N=s.current)==null||N.focus()}}),onEscapeKeyDown:$(e.onEscapeKeyDown,S=>{i.current=!0})})})}),Yp="NavigationMenuViewport",hx=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=!!Xt(Yp,e.__scopeNavigationMenu).value;return f.jsx(Yt,{present:n||s,children:f.jsx(Lk,{...r,ref:t})})});hx.displayName=Yp;var Lk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,s=Xt(Yp,n),i=le(t,s.onViewportChange),a=Ak(os,e.__scopeNavigationMenu),[l,c]=u.useState(null),[d,p]=u.useState(null),m=l?(l==null?void 0:l.width)+"px":void 0,w=l?(l==null?void 0:l.height)+"px":void 0,g=!!s.value,h=g?s.value:s.previousValue;return Jd(d,()=>{d&&c({width:d.offsetWidth,height:d.offsetHeight})}),f.jsx(ee.div,{"data-state":qp(g),"data-orientation":s.orientation,...o,ref:i,style:{pointerEvents:!g&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":w,...o.style},onPointerEnter:$(e.onPointerEnter,s.onContentEnter),onPointerLeave:$(e.onPointerLeave,Tl(s.onContentLeave)),children:Array.from(a.items).map(([y,{ref:v,forceMount:S,...E}])=>{const b=h===y;return f.jsx(Yt,{present:S||b,children:f.jsx(mx,{...E,ref:qi(v,N=>{b&&N&&p(N)})})},y)})})}),Fk="FocusGroup",vx=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Xt(Fk,n);return f.jsx(Xd.Provider,{scope:n,children:f.jsx(Xd.Slot,{scope:n,children:f.jsx(ee.div,{dir:o.dir,...r,ref:t})})})}),vv=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],$k="FocusGroupItem",gx=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Rk(n),s=Xt($k,n);return f.jsx(Xd.ItemSlot,{scope:n,children:f.jsx(ee.button,{...r,ref:t,onKeyDown:$(e.onKeyDown,i=>{if(["Home","End",...vv].includes(i.key)){let l=o().map(p=>p.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),vv.includes(i.key)){const p=l.indexOf(i.currentTarget);l=l.slice(p+1)}setTimeout(()=>Xp(l)),i.preventDefault()}})})})});function Qd(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 Xp(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function Vk(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Jd(e,t){const n=he(t);Re(()=>{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])}function qp(e){return e?"open":"closed"}function yx(e,t){return`${e}-trigger-${t}`}function wx(e,t){return`${e}-content-${t}`}function Tl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var xx=nx,Sx=ix,Uk=cx,bx=ux,zk=dx,Ex=fx,Cx=px,_x=hx;function Nx(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,yv=Bk,Qi=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return yv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],p=s==null?void 0:s[c];if(d===null)return null;const m=gv(d)||gv(p);return o[c][m]}),a=n&&Object.entries(n).reduce((c,d)=>{let[p,m]=d;return m===void 0||(c[p]=m),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:p,className:m,...w}=d;return Object.entries(w).every(g=>{let[h,x]=g;return Array.isArray(x)?x.includes({...s,...a}[h]):{...s,...a}[h]===x})?[...c,p,m]:c},[]);return yv(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** + * @license lucide-react v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rx=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** + * @license lucide-react v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Hk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kk=u.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>u.createElement("svg",{ref:l,...Hk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Rx("lucide",o),...a},[...i.map(([c,d])=>u.createElement(c,d)),...Array.isArray(s)?s:[s]]));/** + * @license lucide-react v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lo=(e,t)=>{const n=u.forwardRef(({className:r,...o},s)=>u.createElement(Kk,{ref:s,iconNode:t,className:Rx(`lucide-${Wk(e)}`,r),...o}));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qp=lo("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + * @license lucide-react v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jp=lo("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zk=lo("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** + * @license lucide-react v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const em=lo("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** + * @license lucide-react v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gk=lo("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + * @license lucide-react v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kx=lo("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** + * @license lucide-react v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yk=lo("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Tx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const t=Jk(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(tm);return a[0]===""&&a.length!==1&&a.shift(),Px(a,t)||Qk(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Px=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Px(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(tm);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},wv=/^\[(.+)\]$/,Qk=e=>{if(wv.test(e)){const t=wv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Jk=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return tT(Object.entries(e.classGroups),n).forEach(([s,i])=>{ef(i,r,s,t)}),r},ef=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:xv(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(eT(o)){ef(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{ef(i,xv(t,s),n,r)})})},xv=(e,t)=>{let n=e;return t.split(tm).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},eT=e=>e.isThemeGetter,tT=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,nT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Ax="!",rT=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let c=0,d=0,p;for(let x=0;xd?p-d:void 0;return{modifiers:l,hasImportantModifier:w,baseClassName:g,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:i}):i},oT=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},sT=e=>({cache:nT(e.cacheSize),parseClassName:rT(e),...qk(e)}),iT=/\s+/,aT=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(iT);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:d,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:w}=n(c);let g=!!w,h=r(g?m.substring(0,w):m);if(!h){if(!g){a=c+(a.length>0?" "+a:a);continue}if(h=r(m),!h){a=c+(a.length>0?" "+a:a);continue}g=!1}const x=oT(d).join(":"),y=p?x+Ax:x,v=y+h;if(s.includes(v))continue;s.push(v);const S=o(h,g);for(let E=0;E0?" "+a:a)}return a};function lT(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(d),e());return n=sT(c),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=aT(l,n);return o(l,d),d}return function(){return s(lT.apply(null,arguments))}}const Oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Mx=/^\[(?:([a-z-]+):)?(.+)\]$/i,uT=/^\d+\/\d+$/,dT=new Set(["px","full","screen"]),fT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kn=e=>Ho(e)||dT.has(e)||uT.test(e),Qn=e=>vs(e,"length",CT),Ho=e=>!!e&&!Number.isNaN(Number(e)),Pu=e=>vs(e,"number",Ho),As=e=>!!e&&Number.isInteger(Number(e)),gT=e=>e.endsWith("%")&&Ho(e.slice(0,-1)),de=e=>Mx.test(e),Jn=e=>fT.test(e),yT=new Set(["length","size","percentage"]),wT=e=>vs(e,yT,jx),xT=e=>vs(e,"position",jx),ST=new Set(["image","url"]),bT=e=>vs(e,ST,NT),ET=e=>vs(e,"",_T),Os=()=>!0,vs=(e,t,n)=>{const r=Mx.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},CT=e=>pT.test(e)&&!mT.test(e),jx=()=>!1,_T=e=>hT.test(e),NT=e=>vT.test(e),RT=()=>{const e=Oe("colors"),t=Oe("spacing"),n=Oe("blur"),r=Oe("brightness"),o=Oe("borderColor"),s=Oe("borderRadius"),i=Oe("borderSpacing"),a=Oe("borderWidth"),l=Oe("contrast"),c=Oe("grayscale"),d=Oe("hueRotate"),p=Oe("invert"),m=Oe("gap"),w=Oe("gradientColorStops"),g=Oe("gradientColorStopPositions"),h=Oe("inset"),x=Oe("margin"),y=Oe("opacity"),v=Oe("padding"),S=Oe("saturate"),E=Oe("scale"),b=Oe("sepia"),N=Oe("skew"),C=Oe("space"),R=Oe("translate"),P=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",de,t],I=()=>[de,t],z=()=>["",kn,Qn],D=()=>["auto",Ho,de],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",de],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[Ho,de];return{cacheSize:500,separator:":",theme:{colors:[Os],spacing:[kn,Qn],blur:["none","",Jn,de],brightness:te(),borderColor:[e],borderRadius:["none","","full",Jn,de],borderSpacing:I(),borderWidth:z(),contrast:te(),grayscale:O(),hueRotate:te(),invert:O(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[gT,Qn],inset:Y(),margin:Y(),opacity:te(),padding:I(),saturate:te(),scale:te(),sepia:O(),skew:te(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",de]}],container:["container"],columns:[{columns:[Jn]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),de]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",As,de]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",de]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",As,de]}],"grid-cols":[{"grid-cols":[Os]}],"col-start-end":[{col:["auto",{span:["full",As,de]},de]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Os]}],"row-start-end":[{row:["auto",{span:[As,de]},de]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",de]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",de]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",de,t]}],"min-w":[{"min-w":[de,t,"min","max","fit"]}],"max-w":[{"max-w":[de,t,"none","full","min","max","fit","prose",{screen:[Jn]},Jn]}],h:[{h:[de,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[de,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[de,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[de,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jn,Qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Pu]}],"font-family":[{font:[Os]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",de]}],"line-clamp":[{"line-clamp":["none",Ho,Pu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",kn,de]}],"list-image":[{"list-image":["none",de]}],"list-style-type":[{list:["none","disc","decimal",de]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",kn,Qn]}],"underline-offset":[{"underline-offset":["auto",kn,de]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),xT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:K()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[kn,de]}],"outline-w":[{outline:[kn,Qn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[kn,Qn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jn,ET]}],"shadow-color":[{shadow:[Os]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jn,de]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[S]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",de]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",de]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",de]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[As,de]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",de]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[kn,Qn,Pu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},kT=cT(RT);function q(...e){return kT(Xk(e))}const tf=u.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(xx,{ref:r,className:q("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,f.jsx(Ix,{})]}));tf.displayName=xx.displayName;const nf=u.forwardRef(({className:e,...t},n)=>f.jsx(Sx,{ref:n,className:q("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));nf.displayName=Sx.displayName;const Sv=Uk,TT=Qi("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),rf=u.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(bx,{ref:r,className:q(TT(),"group",e),...n,children:[t," ",f.jsx(Jp,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));rf.displayName=bx.displayName;const PT=u.forwardRef(({className:e,...t},n)=>f.jsx(Cx,{ref:n,className:q("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));PT.displayName=Cx.displayName;const AT=zk,Ix=u.forwardRef(({className:e,...t},n)=>f.jsx("div",{className:q("absolute left-0 top-full flex justify-center"),children:f.jsx(_x,{className:q("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));Ix.displayName=_x.displayName;const OT=u.forwardRef(({className:e,...t},n)=>f.jsx(Ex,{ref:n,className:q("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:f.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));OT.displayName=Ex.displayName;function MT(e,t=[]){let n=[];function r(s,i){const a=u.createContext(i),l=n.length;n=[...n,i];const c=p=>{var y;const{scope:m,children:w,...g}=p,h=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,x=u.useMemo(()=>g,Object.values(g));return f.jsx(h.Provider,{value:x,children:w})};c.displayName=s+"Provider";function d(p,m){var h;const w=((h=m==null?void 0:m[e])==null?void 0:h[l])||a,g=u.useContext(w);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,jT(o,...t)]}function jT(...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(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const p=l(s)[`__scope${c}`];return{...a,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function IT(e,t=[]){let n=[];function r(s,i){const a=u.createContext(i),l=n.length;n=[...n,i];const c=p=>{var y;const{scope:m,children:w,...g}=p,h=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,x=u.useMemo(()=>g,Object.values(g));return f.jsx(h.Provider,{value:x,children:w})};c.displayName=s+"Provider";function d(p,m){var h;const w=((h=m==null?void 0:m[e])==null?void 0:h[l])||a,g=u.useContext(w);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,DT(o,...t)]}function DT(...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(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const p=l(s)[`__scope${c}`];return{...a,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var LT="DismissableLayer",of="dismissableLayer.update",FT="dismissableLayer.pointerDownOutside",$T="dismissableLayer.focusOutside",bv,Dx=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lx=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=u.useContext(Dx),[d,p]=u.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=u.useState({}),g=le(t,C=>p(C)),h=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(x),v=d?h.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,E=v>=y,b=zT(C=>{const R=C.target,P=[...c.branches].some(j=>j.contains(R));!E||P||(o==null||o(C),i==null||i(C),C.defaultPrevented||a==null||a())},m),N=BT(C=>{const R=C.target;[...c.branches].some(j=>j.contains(R))||(s==null||s(C),i==null||i(C),C.defaultPrevented||a==null||a())},m);return Wp(C=>{v===c.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},m),u.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(bv=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Ev(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=bv)}},[d,m,n,c]),u.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Ev())},[d,c]),u.useEffect(()=>{const C=()=>w({});return document.addEventListener(of,C),()=>document.removeEventListener(of,C)},[]),f.jsx(ee.div,{...l,ref:g,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:$(e.onFocusCapture,N.onFocusCapture),onBlurCapture:$(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:$(e.onPointerDownCapture,b.onPointerDownCapture)})});Lx.displayName=LT;var VT="DismissableLayerBranch",UT=u.forwardRef((e,t)=>{const n=u.useContext(Dx),r=u.useRef(null),o=le(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),f.jsx(ee.div,{...e,ref:o})});UT.displayName=VT;function zT(e,t=globalThis==null?void 0:globalThis.document){const n=he(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Fx(FT,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function BT(e,t=globalThis==null?void 0:globalThis.document){const n=he(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&Fx($T,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ev(){const e=new CustomEvent(of);document.dispatchEvent(e)}function Fx(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Si(o,s):o.dispatchEvent(s)}var Au=0;function WT(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Cv()),document.body.insertAdjacentElement("beforeend",e[1]??Cv()),Au++,()=>{Au===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Au--}},[])}function Cv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ou="focusScope.autoFocusOnMount",Mu="focusScope.autoFocusOnUnmount",_v={bubbles:!1,cancelable:!0},HT="FocusScope",_c=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=u.useState(null),c=he(o),d=he(s),p=u.useRef(null),m=le(t,h=>l(h)),w=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let h=function(S){if(w.paused||!a)return;const E=S.target;a.contains(E)?p.current=E:tr(p.current,{select:!0})},x=function(S){if(w.paused||!a)return;const E=S.relatedTarget;E!==null&&(a.contains(E)||tr(p.current,{select:!0}))},y=function(S){if(document.activeElement===document.body)for(const b of S)b.removedNodes.length>0&&tr(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const v=new MutationObserver(y);return a&&v.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),v.disconnect()}}},[r,a,w.paused]),u.useEffect(()=>{if(a){Rv.add(w);const h=document.activeElement;if(!a.contains(h)){const y=new CustomEvent(Ou,_v);a.addEventListener(Ou,c),a.dispatchEvent(y),y.defaultPrevented||(KT(qT($x(a)),{select:!0}),document.activeElement===h&&tr(a))}return()=>{a.removeEventListener(Ou,c),setTimeout(()=>{const y=new CustomEvent(Mu,_v);a.addEventListener(Mu,d),a.dispatchEvent(y),y.defaultPrevented||tr(h??document.body,{select:!0}),a.removeEventListener(Mu,d),Rv.remove(w)},0)}}},[a,c,d,w]);const g=u.useCallback(h=>{if(!n&&!r||w.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(x&&y){const v=h.currentTarget,[S,E]=ZT(v);S&&E?!h.shiftKey&&y===E?(h.preventDefault(),n&&tr(S,{select:!0})):h.shiftKey&&y===S&&(h.preventDefault(),n&&tr(E,{select:!0})):y===v&&h.preventDefault()}},[n,r,w.paused]);return f.jsx(ee.div,{tabIndex:-1,...i,ref:m,onKeyDown:g})});_c.displayName=HT;function KT(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(tr(r,{select:t}),document.activeElement!==n)return}function ZT(e){const t=$x(e),n=Nv(t,e),r=Nv(t.reverse(),e);return[n,r]}function $x(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 Nv(e,t){for(const n of e)if(!GT(n,{upTo:t}))return n}function GT(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 YT(e){return e instanceof HTMLInputElement&&"select"in e}function tr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&YT(e)&&t&&e.select()}}var Rv=XT();function XT(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=kv(e,t),e.unshift(t)},remove(t){var n;e=kv(e,t),(n=e[0])==null||n.resume()}}}function kv(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function qT(e){return e.filter(t=>t.tagName!=="A")}const QT=["top","right","bottom","left"],br=Math.min,At=Math.max,Pl=Math.round,Ra=Math.floor,Er=e=>({x:e,y:e}),JT={left:"right",right:"left",bottom:"top",top:"bottom"},eP={start:"end",end:"start"};function sf(e,t,n){return At(e,br(t,n))}function Wn(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function gs(e){return e.split("-")[1]}function nm(e){return e==="x"?"y":"x"}function rm(e){return e==="y"?"height":"width"}function Cr(e){return["top","bottom"].includes(Hn(e))?"y":"x"}function om(e){return nm(Cr(e))}function tP(e,t,n){n===void 0&&(n=!1);const r=gs(e),o=om(e),s=rm(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Al(i)),[i,Al(i)]}function nP(e){const t=Al(e);return[af(e),t,af(t)]}function af(e){return e.replace(/start|end/g,t=>eP[t])}function rP(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function oP(e,t,n,r){const o=gs(e);let s=rP(Hn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(af)))),s}function Al(e){return e.replace(/left|right|bottom|top/g,t=>JT[t])}function sP(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vx(e){return typeof e!="number"?sP(e):{top:e,right:e,bottom:e,left:e}}function Ol(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Tv(e,t,n){let{reference:r,floating:o}=e;const s=Cr(t),i=om(t),a=rm(i),l=Hn(t),c=s==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let w;switch(l){case"top":w={x:d,y:r.y-o.height};break;case"bottom":w={x:d,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:p};break;case"left":w={x:r.x-o.width,y:p};break;default:w={x:r.x,y:r.y}}switch(gs(t)){case"start":w[i]-=m*(n&&c?-1:1);break;case"end":w[i]+=m*(n&&c?-1:1);break}return w}const iP=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Tv(c,r,l),m=r,w={},g=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Wn(e,t)||{};if(c==null)return{};const p=Vx(d),m={x:n,y:r},w=om(o),g=rm(w),h=await i.getDimensions(c),x=w==="y",y=x?"top":"left",v=x?"bottom":"right",S=x?"clientHeight":"clientWidth",E=s.reference[g]+s.reference[w]-m[w]-s.floating[g],b=m[w]-s.reference[w],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let C=N?N[S]:0;(!C||!await(i.isElement==null?void 0:i.isElement(N)))&&(C=a.floating[S]||s.floating[g]);const R=E/2-b/2,P=C/2-h[g]/2-1,j=br(p[y],P),Y=br(p[v],P),I=j,z=C-h[g]-Y,D=C/2-h[g]/2+R,X=sf(I,D,z),K=!l.arrow&&gs(o)!=null&&D!==X&&s.reference[g]/2-(DD<=0)){var Y,I;const D=(((Y=s.flip)==null?void 0:Y.index)||0)+1,X=C[D];if(X)return{data:{index:D,overflows:j},reset:{placement:X}};let K=(I=j.filter(re=>re.overflows[0]<=0).sort((re,A)=>re.overflows[1]-A.overflows[1])[0])==null?void 0:I.placement;if(!K)switch(w){case"bestFit":{var z;const re=(z=j.filter(A=>{if(N){const O=Cr(A.placement);return O===v||O==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(O=>O>0).reduce((O,B)=>O+B,0)]).sort((A,O)=>A[1]-O[1])[0])==null?void 0:z[0];re&&(K=re);break}case"initialPlacement":K=a;break}if(o!==K)return{reset:{placement:K}}}return{}}}};function Pv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Av(e){return QT.some(t=>e[t]>=0)}const cP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Wn(e,t);switch(r){case"referenceHidden":{const s=await bi(t,{...o,elementContext:"reference"}),i=Pv(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Av(i)}}}case"escaped":{const s=await bi(t,{...o,altBoundary:!0}),i=Pv(s,n.floating);return{data:{escapedOffsets:i,escaped:Av(i)}}}default:return{}}}}};async function uP(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Hn(n),a=gs(n),l=Cr(n)==="y",c=["left","top"].includes(i)?-1:1,d=s&&l?-1:1,p=Wn(t,e);let{mainAxis:m,crossAxis:w,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof g=="number"&&(w=a==="end"?g*-1:g),l?{x:w*d,y:m*c}:{x:m*c,y:w*d}}const dP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await uP(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},fP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:x=>{let{x:y,y:v}=x;return{x:y,y:v}}},...l}=Wn(e,t),c={x:n,y:r},d=await bi(t,l),p=Cr(Hn(o)),m=nm(p);let w=c[m],g=c[p];if(s){const x=m==="y"?"top":"left",y=m==="y"?"bottom":"right",v=w+d[x],S=w-d[y];w=sf(v,w,S)}if(i){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=g+d[x],S=g-d[y];g=sf(v,g,S)}const h=a.fn({...t,[m]:w,[p]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:s,[p]:i}}}}}},pP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Wn(e,t),d={x:n,y:r},p=Cr(o),m=nm(p);let w=d[m],g=d[p];const h=Wn(a,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const S=m==="y"?"height":"width",E=s.reference[m]-s.floating[S]+x.mainAxis,b=s.reference[m]+s.reference[S]-x.mainAxis;wb&&(w=b)}if(c){var y,v;const S=m==="y"?"width":"height",E=["top","left"].includes(Hn(o)),b=s.reference[p]-s.floating[S]+(E&&((y=i.offset)==null?void 0:y[p])||0)+(E?0:x.crossAxis),N=s.reference[p]+s.reference[S]+(E?0:((v=i.offset)==null?void 0:v[p])||0)-(E?x.crossAxis:0);gN&&(g=N)}return{[m]:w,[p]:g}}}},mP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=Wn(e,t),d=await bi(t,c),p=Hn(o),m=gs(o),w=Cr(o)==="y",{width:g,height:h}=s.floating;let x,y;p==="top"||p==="bottom"?(x=p,y=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,x=m==="end"?"top":"bottom");const v=h-d.top-d.bottom,S=g-d.left-d.right,E=br(h-d[x],v),b=br(g-d[y],S),N=!t.middlewareData.shift;let C=E,R=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),N&&!m){const j=At(d.left,0),Y=At(d.right,0),I=At(d.top,0),z=At(d.bottom,0);w?R=g-2*(j!==0||Y!==0?j+Y:At(d.left,d.right)):C=h-2*(I!==0||z!==0?I+z:At(d.top,d.bottom))}await l({...t,availableWidth:R,availableHeight:C});const P=await i.getDimensions(a.floating);return g!==P.width||h!==P.height?{reset:{rects:!0}}:{}}}};function Nc(){return typeof window<"u"}function ys(e){return Ux(e)?(e.nodeName||"").toLowerCase():"#document"}function It(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _n(e){var t;return(t=(Ux(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ux(e){return Nc()?e instanceof Node||e instanceof It(e).Node:!1}function un(e){return Nc()?e instanceof Element||e instanceof It(e).Element:!1}function bn(e){return Nc()?e instanceof HTMLElement||e instanceof It(e).HTMLElement:!1}function Ov(e){return!Nc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof It(e).ShadowRoot}function Ji(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function hP(e){return["table","td","th"].includes(ys(e))}function Rc(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function sm(e){const t=im(),n=un(e)?dn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function vP(e){let t=_r(e);for(;bn(t)&&!ss(t);){if(sm(t))return t;if(Rc(t))return null;t=_r(t)}return null}function im(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ss(e){return["html","body","#document"].includes(ys(e))}function dn(e){return It(e).getComputedStyle(e)}function kc(e){return un(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _r(e){if(ys(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ov(e)&&e.host||_n(e);return Ov(t)?t.host:t}function zx(e){const t=_r(e);return ss(t)?e.ownerDocument?e.ownerDocument.body:e.body:bn(t)&&Ji(t)?t:zx(t)}function Ei(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=zx(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=It(o);if(s){const a=lf(i);return t.concat(i,i.visualViewport||[],Ji(o)?o:[],a&&n?Ei(a):[])}return t.concat(o,Ei(o,[],n))}function lf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bx(e){const t=dn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Pl(n)!==s||Pl(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function am(e){return un(e)?e:e.contextElement}function Ko(e){const t=am(e);if(!bn(t))return Er(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Bx(t);let i=(s?Pl(n.width):n.width)/r,a=(s?Pl(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const gP=Er(0);function Wx(e){const t=It(e);return!im()||!t.visualViewport?gP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==It(e)?!1:t}function Jr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=am(e);let i=Er(1);t&&(r?un(r)&&(i=Ko(r)):i=Ko(e));const a=yP(s,n,r)?Wx(s):Er(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,d=o.width/i.x,p=o.height/i.y;if(s){const m=It(s),w=r&&un(r)?It(r):r;let g=m,h=lf(g);for(;h&&r&&w!==g;){const x=Ko(h),y=h.getBoundingClientRect(),v=dn(h),S=y.left+(h.clientLeft+parseFloat(v.paddingLeft))*x.x,E=y.top+(h.clientTop+parseFloat(v.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,p*=x.y,l+=S,c+=E,g=It(h),h=lf(g)}}return Ol({width:d,height:p,x:l,y:c})}function wP(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=_n(r),a=t?Rc(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Er(1);const d=Er(0),p=bn(r);if((p||!p&&!s)&&((ys(r)!=="body"||Ji(i))&&(l=kc(r)),bn(r))){const m=Jr(r);c=Ko(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function xP(e){return Array.from(e.getClientRects())}function cf(e,t){const n=kc(e).scrollLeft;return t?t.left+n:Jr(_n(e)).left+n}function SP(e){const t=_n(e),n=kc(e),r=e.ownerDocument.body,o=At(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=At(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+cf(e);const a=-n.scrollTop;return dn(r).direction==="rtl"&&(i+=At(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function bP(e,t){const n=It(e),r=_n(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const c=im();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}function EP(e,t){const n=Jr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=bn(e)?Ko(e):Er(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function Mv(e,t,n){let r;if(t==="viewport")r=bP(e,n);else if(t==="document")r=SP(_n(e));else if(un(t))r=EP(t,n);else{const o=Wx(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ol(r)}function Hx(e,t){const n=_r(e);return n===t||!un(n)||ss(n)?!1:dn(n).position==="fixed"||Hx(n,t)}function CP(e,t){const n=t.get(e);if(n)return n;let r=Ei(e,[],!1).filter(a=>un(a)&&ys(a)!=="body"),o=null;const s=dn(e).position==="fixed";let i=s?_r(e):e;for(;un(i)&&!ss(i);){const a=dn(i),l=sm(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ji(i)&&!l&&Hx(e,i))?r=r.filter(d=>d!==i):o=a,i=_r(i)}return t.set(e,r),r}function _P(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Rc(t)?[]:CP(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,d)=>{const p=Mv(t,d,o);return c.top=At(p.top,c.top),c.right=br(p.right,c.right),c.bottom=br(p.bottom,c.bottom),c.left=At(p.left,c.left),c},Mv(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function NP(e){const{width:t,height:n}=Bx(e);return{width:t,height:n}}function RP(e,t,n){const r=bn(t),o=_n(t),s=n==="fixed",i=Jr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Er(0);if(r||!r&&!s)if((ys(t)!=="body"||Ji(o))&&(a=kc(t)),r){const w=Jr(t,!0,s,t);l.x=w.x+t.clientLeft,l.y=w.y+t.clientTop}else o&&(l.x=cf(o));let c=0,d=0;if(o&&!r&&!s){const w=o.getBoundingClientRect();d=w.top+a.scrollTop,c=w.left+a.scrollLeft-cf(o,w)}const p=i.left+a.scrollLeft-l.x-c,m=i.top+a.scrollTop-l.y-d;return{x:p,y:m,width:i.width,height:i.height}}function ju(e){return dn(e).position==="static"}function jv(e,t){if(!bn(e)||dn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _n(e)===n&&(n=n.ownerDocument.body),n}function Kx(e,t){const n=It(e);if(Rc(e))return n;if(!bn(e)){let o=_r(e);for(;o&&!ss(o);){if(un(o)&&!ju(o))return o;o=_r(o)}return n}let r=jv(e,t);for(;r&&hP(r)&&ju(r);)r=jv(r,t);return r&&ss(r)&&ju(r)&&!sm(r)?n:r||vP(e)||n}const kP=async function(e){const t=this.getOffsetParent||Kx,n=this.getDimensions,r=await n(e.floating);return{reference:RP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function TP(e){return dn(e).direction==="rtl"}const PP={convertOffsetParentRelativeRectToViewportRelativeRect:wP,getDocumentElement:_n,getClippingRect:_P,getOffsetParent:Kx,getElementRects:kP,getClientRects:xP,getDimensions:NP,getScale:Ko,isElement:un,isRTL:TP};function AP(e,t){let n=null,r;const o=_n(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:d,width:p,height:m}=e.getBoundingClientRect();if(a||t(),!p||!m)return;const w=Ra(d),g=Ra(o.clientWidth-(c+p)),h=Ra(o.clientHeight-(d+m)),x=Ra(c),v={rootMargin:-w+"px "+-g+"px "+-h+"px "+-x+"px",threshold:At(0,br(1,l))||1};let S=!0;function E(b){const N=b[0].intersectionRatio;if(N!==l){if(!S)return i();N?i(!1,N):r=setTimeout(()=>{i(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(E,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(e)}return i(!0),s}function OP(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=am(e),d=o||s?[...c?Ei(c):[],...Ei(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=c&&a?AP(c,n):null;let m=-1,w=null;i&&(w=new ResizeObserver(y=>{let[v]=y;v&&v.target===c&&w&&(w.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=w)==null||S.observe(t)})),n()}),c&&!l&&w.observe(c),w.observe(t));let g,h=l?Jr(e):null;l&&x();function x(){const y=Jr(e);h&&(y.x!==h.x||y.y!==h.y||y.width!==h.width||y.height!==h.height)&&n(),h=y,g=requestAnimationFrame(x)}return n(),()=>{var y;d.forEach(v=>{o&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),p==null||p(),(y=w)==null||y.disconnect(),w=null,l&&cancelAnimationFrame(g)}}const MP=dP,jP=fP,IP=lP,DP=mP,LP=cP,Iv=aP,FP=pP,$P=(e,t,n)=>{const r=new Map,o={platform:PP,...n},s={...o.platform,_c:r};return iP(e,t,{...o,platform:s})};var Ja=typeof document<"u"?u.useLayoutEffect:u.useEffect;function Ml(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(!Ml(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Ml(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Zx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dv(e,t){const n=Zx(e);return Math.round(t*n)/n}function Iu(e){const t=u.useRef(e);return Ja(()=>{t.current=e}),t}function VP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,p]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,w]=u.useState(r);Ml(m,r)||w(r);const[g,h]=u.useState(null),[x,y]=u.useState(null),v=u.useCallback(A=>{A!==N.current&&(N.current=A,h(A))},[]),S=u.useCallback(A=>{A!==C.current&&(C.current=A,y(A))},[]),E=s||g,b=i||x,N=u.useRef(null),C=u.useRef(null),R=u.useRef(d),P=l!=null,j=Iu(l),Y=Iu(o),I=Iu(c),z=u.useCallback(()=>{if(!N.current||!C.current)return;const A={placement:t,strategy:n,middleware:m};Y.current&&(A.platform=Y.current),$P(N.current,C.current,A).then(O=>{const B={...O,isPositioned:I.current!==!1};D.current&&!Ml(R.current,B)&&(R.current=B,Gn.flushSync(()=>{p(B)}))})},[m,t,n,Y,I]);Ja(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(A=>({...A,isPositioned:!1})))},[c]);const D=u.useRef(!1);Ja(()=>(D.current=!0,()=>{D.current=!1}),[]),Ja(()=>{if(E&&(N.current=E),b&&(C.current=b),E&&b){if(j.current)return j.current(E,b,z);z()}},[E,b,z,j,P]);const X=u.useMemo(()=>({reference:N,floating:C,setReference:v,setFloating:S}),[v,S]),K=u.useMemo(()=>({reference:E,floating:b}),[E,b]),re=u.useMemo(()=>{const A={position:n,left:0,top:0};if(!K.floating)return A;const O=Dv(K.floating,d.x),B=Dv(K.floating,d.y);return a?{...A,transform:"translate("+O+"px, "+B+"px)",...Zx(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:B}},[n,a,K.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:z,refs:X,elements:K,floatingStyles:re}),[d,z,X,K,re])}const UP=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?Iv({element:r.current,padding:o}).fn(n):{}:r?Iv({element:r,padding:o}).fn(n):{}}}},zP=(e,t)=>({...MP(e),options:[e,t]}),BP=(e,t)=>({...jP(e),options:[e,t]}),WP=(e,t)=>({...FP(e),options:[e,t]}),HP=(e,t)=>({...IP(e),options:[e,t]}),KP=(e,t)=>({...DP(e),options:[e,t]}),ZP=(e,t)=>({...LP(e),options:[e,t]}),GP=(e,t)=>({...UP(e),options:[e,t]});var YP="Arrow",Gx=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return f.jsx(ee.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gx.displayName=YP;var XP=Gx;function qP(e){const[t,n]=u.useState(void 0);return Re(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var lm="Popper",[Yx,Tc]=Yn(lm),[QP,Xx]=Yx(lm),qx=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return f.jsx(QP,{scope:t,anchor:r,onAnchorChange:o,children:n})};qx.displayName=lm;var Qx="PopperAnchor",Jx=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Xx(Qx,n),i=u.useRef(null),a=le(t,i);return u.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:f.jsx(ee.div,{...o,ref:a})});Jx.displayName=Qx;var cm="PopperContent",[JP,eA]=Yx(cm),e0=u.forwardRef((e,t)=>{var J,ye,_e,we,xe,Se;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:w="optimized",onPlaced:g,...h}=e,x=Xx(cm,n),[y,v]=u.useState(null),S=le(t,rt=>v(rt)),[E,b]=u.useState(null),N=qP(E),C=(N==null?void 0:N.width)??0,R=(N==null?void 0:N.height)??0,P=r+(s!=="center"?"-"+s:""),j=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Y=Array.isArray(c)?c:[c],I=Y.length>0,z={padding:j,boundary:Y.filter(nA),altBoundary:I},{refs:D,floatingStyles:X,placement:K,isPositioned:re,middlewareData:A}=VP({strategy:"fixed",placement:P,whileElementsMounted:(...rt)=>OP(...rt,{animationFrame:w==="always"}),elements:{reference:x.anchor},middleware:[zP({mainAxis:o+R,alignmentAxis:i}),l&&BP({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?WP():void 0,...z}),l&&HP({...z}),KP({...z,apply:({elements:rt,rects:Tt,availableWidth:mo,availableHeight:ho})=>{const{width:vo,height:_}=Tt.reference,k=rt.floating.style;k.setProperty("--radix-popper-available-width",`${mo}px`),k.setProperty("--radix-popper-available-height",`${ho}px`),k.setProperty("--radix-popper-anchor-width",`${vo}px`),k.setProperty("--radix-popper-anchor-height",`${_}px`)}}),E&&GP({element:E,padding:a}),rA({arrowWidth:C,arrowHeight:R}),m&&ZP({strategy:"referenceHidden",...z})]}),[O,B]=r0(K),te=he(g);Re(()=>{re&&(te==null||te())},[re,te]);const fe=(J=A.arrow)==null?void 0:J.x,ze=(ye=A.arrow)==null?void 0:ye.y,ke=((_e=A.arrow)==null?void 0:_e.centerOffset)!==0,[ut,Ae]=u.useState();return Re(()=>{y&&Ae(window.getComputedStyle(y).zIndex)},[y]),f.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:re?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ut,"--radix-popper-transform-origin":[(we=A.transformOrigin)==null?void 0:we.x,(xe=A.transformOrigin)==null?void 0:xe.y].join(" "),...((Se=A.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(JP,{scope:n,placedSide:O,onArrowChange:b,arrowX:fe,arrowY:ze,shouldHideArrow:ke,children:f.jsx(ee.div,{"data-side":O,"data-align":B,...h,ref:S,style:{...h.style,animation:re?void 0:"none"}})})})});e0.displayName=cm;var t0="PopperArrow",tA={top:"bottom",right:"left",bottom:"top",left:"right"},n0=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=eA(t0,r),i=tA[s.placedSide];return f.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:f.jsx(XP,{...o,ref:n,style:{...o.style,display:"block"}})})});n0.displayName=t0;function nA(e){return e!==null}var rA=e=>({name:"transformOrigin",options:e,fn(t){var x,y,v;const{placement:n,rects:r,middlewareData:o}=t,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,d]=r0(n),p={start:"0%",center:"50%",end:"100%"}[d],m=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,w=(((v=o.arrow)==null?void 0:v.y)??0)+l/2;let g="",h="";return c==="bottom"?(g=i?p:`${m}px`,h=`${-l}px`):c==="top"?(g=i?p:`${m}px`,h=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=i?p:`${w}px`):c==="left"&&(g=`${r.floating.width+l}px`,h=i?p:`${w}px`),{data:{x:g,y:h}}}});function r0(e){const[t,n="center"]=e.split("-");return[t,n]}var o0=qx,s0=Jx,i0=e0,a0=n0,oA="Portal",l0=u.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=u.useState(!1);Re(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Ec.createPortal(f.jsx(ee.div,{...r,ref:t}),i):null});l0.displayName=oA;function sA(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var ea=e=>{const{present:t,children:n}=e,r=iA(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=le(r.ref,aA(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};ea.displayName="Presence";function iA(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[a,l]=sA(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=ka(r.current);s.current=a==="mounted"?c:"none"},[a]),Re(()=>{const c=r.current,d=o.current;if(d!==e){const m=s.current,w=ka(c);e?l("MOUNT"):w==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&m!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Re(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=w=>{const h=ka(r.current).includes(w.animationName);if(w.target===t&&h&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=w=>{w.target===t&&(s.current=ka(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ka(e){return(e==null?void 0:e.animationName)||"none"}function aA(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Du="rovingFocusGroup.onEntryFocus",lA={bubbles:!1,cancelable:!0},Pc="RovingFocusGroup",[uf,c0,cA]=ms(Pc),[uA,Ac]=Yn(Pc,[cA]),[dA,fA]=uA(Pc),u0=u.forwardRef((e,t)=>f.jsx(uf.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsx(uf.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsx(pA,{...e,ref:t})})}));u0.displayName=Pc;var pA=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...p}=e,m=u.useRef(null),w=le(t,m),g=ps(s),[h=null,x]=Bn({prop:i,defaultProp:a,onChange:l}),[y,v]=u.useState(!1),S=he(c),E=c0(n),b=u.useRef(!1),[N,C]=u.useState(0);return u.useEffect(()=>{const R=m.current;if(R)return R.addEventListener(Du,S),()=>R.removeEventListener(Du,S)},[S]),f.jsx(dA,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:u.useCallback(R=>x(R),[x]),onItemShiftTab:u.useCallback(()=>v(!0),[]),onFocusableItemAdd:u.useCallback(()=>C(R=>R+1),[]),onFocusableItemRemove:u.useCallback(()=>C(R=>R-1),[]),children:f.jsx(ee.div,{tabIndex:y||N===0?-1:0,"data-orientation":r,...p,ref:w,style:{outline:"none",...e.style},onMouseDown:$(e.onMouseDown,()=>{b.current=!0}),onFocus:$(e.onFocus,R=>{const P=!b.current;if(R.target===R.currentTarget&&P&&!y){const j=new CustomEvent(Du,lA);if(R.currentTarget.dispatchEvent(j),!j.defaultPrevented){const Y=E().filter(K=>K.focusable),I=Y.find(K=>K.active),z=Y.find(K=>K.id===h),X=[I,z,...Y].filter(Boolean).map(K=>K.ref.current);p0(X,d)}}b.current=!1}),onBlur:$(e.onBlur,()=>v(!1))})})}),d0="RovingFocusGroupItem",f0=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,...i}=e,a=Nt(),l=s||a,c=fA(d0,n),d=c.currentTabStopId===l,p=c0(n),{onFocusableItemAdd:m,onFocusableItemRemove:w}=c;return u.useEffect(()=>{if(r)return m(),()=>w()},[r,m,w]),f.jsx(uf.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:f.jsx(ee.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:$(e.onMouseDown,g=>{r?c.onItemFocus(l):g.preventDefault()}),onFocus:$(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:$(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const h=vA(g,c.orientation,c.dir);if(h!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=p().filter(v=>v.focusable).map(v=>v.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const v=y.indexOf(g.currentTarget);y=c.loop?gA(y,v+1):y.slice(v+1)}setTimeout(()=>p0(y))}})})})});f0.displayName=d0;var mA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hA(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function vA(e,t,n){const r=hA(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return mA[r]}function p0(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function gA(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var m0=u0,h0=f0,yA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},yo=new WeakMap,Ta=new WeakMap,Pa={},Lu=0,v0=function(e){return e&&(e.host||v0(e.parentNode))},wA=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=v0(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})},xA=function(e,t,n,r){var o=wA(t,Array.isArray(e)?e:[e]);Pa[n]||(Pa[n]=new WeakMap);var s=Pa[n],i=[],a=new Set,l=new Set(o),c=function(p){!p||a.has(p)||(a.add(p),c(p.parentNode))};o.forEach(c);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(m){if(a.has(m))d(m);else try{var w=m.getAttribute(r),g=w!==null&&w!=="false",h=(yo.get(m)||0)+1,x=(s.get(m)||0)+1;yo.set(m,h),s.set(m,x),i.push(m),h===1&&g&&Ta.set(m,!0),x===1&&m.setAttribute(n,"true"),g||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return d(t),a.clear(),Lu++,function(){i.forEach(function(p){var m=yo.get(p)-1,w=s.get(p)-1;yo.set(p,m),s.set(p,w),m||(Ta.has(p)||p.removeAttribute(r),Ta.delete(p)),w||p.removeAttribute(n)}),Lu--,Lu||(yo=new WeakMap,yo=new WeakMap,Ta=new WeakMap,Pa={})}},um=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=yA(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),xA(r,o,n,"aria-hidden")):function(){return null}},at=function(){return at=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return MA;var t=jA(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])}},DA=fm(),Zo="data-scroll-locked",LA=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` + .`.concat(SA,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(a,"px ").concat(r,`; + } + body[`).concat(Zo,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(s,`px; + padding-right: `).concat(i,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Js,` { + right: `).concat(a,"px ").concat(r,`; + } + + .`).concat(ei,` { + margin-right: `).concat(a,"px ").concat(r,`; + } + + .`).concat(Js," .").concat(Js,` { + right: 0 `).concat(r,`; + } + + .`).concat(ei," .").concat(ei,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(Zo,`] { + `).concat(bA,": ").concat(a,`px; + } +`)},Fv=function(){var e=parseInt(document.body.getAttribute(Zo)||"0",10);return isFinite(e)?e:0},FA=function(){u.useEffect(function(){return document.body.setAttribute(Zo,(Fv()+1).toString()),function(){var e=Fv()-1;e<=0?document.body.removeAttribute(Zo):document.body.setAttribute(Zo,e.toString())}},[])},E0=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;FA();var s=u.useMemo(function(){return IA(o)},[o]);return u.createElement(DA,{styles:LA(s,!t,o,n?"":"!important")})},df=!1;if(typeof window<"u")try{var Aa=Object.defineProperty({},"passive",{get:function(){return df=!0,!0}});window.addEventListener("test",Aa,Aa),window.removeEventListener("test",Aa,Aa)}catch{df=!1}var wo=df?{passive:!1}:!1,$A=function(e){return e.tagName==="TEXTAREA"},C0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$A(e)&&n[t]==="visible")},VA=function(e){return C0(e,"overflowY")},UA=function(e){return C0(e,"overflowX")},$v=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=_0(e,r);if(o){var s=N0(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zA=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},BA=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_0=function(e,t){return e==="v"?VA(t):UA(t)},N0=function(e,t){return e==="v"?zA(t):BA(t)},WA=function(e,t){return e==="h"&&t==="rtl"?-1:1},HA=function(e,t,n,r,o){var s=WA(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),c=!1,d=i>0,p=0,m=0;do{var w=N0(e,a),g=w[0],h=w[1],x=w[2],y=h-x-s*g;(g||y)&&_0(e,a)&&(p+=y,m+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(p)<1||!o)||!d&&(Math.abs(m)<1||!o))&&(c=!0),c},Oa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vv=function(e){return[e.deltaX,e.deltaY]},Uv=function(e){return e&&"current"in e?e.current:e},KA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ZA=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},GA=0,xo=[];function YA(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(GA++)[0],s=u.useState(fm)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=g0([e.lockRef.current],(e.shards||[]).map(Uv),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var y=Oa(h),v=n.current,S="deltaX"in h?h.deltaX:v[0]-y[0],E="deltaY"in h?h.deltaY:v[1]-y[1],b,N=h.target,C=Math.abs(S)>Math.abs(E)?"h":"v";if("touches"in h&&C==="h"&&N.type==="range")return!1;var R=$v(C,N);if(!R)return!0;if(R?b=C:(b=C==="v"?"h":"v",R=$v(C,N)),!R)return!1;if(!r.current&&"changedTouches"in h&&(S||E)&&(r.current=b),!b)return!0;var P=r.current||b;return HA(P,x,h,P==="h"?S:E,!0)},[]),l=u.useCallback(function(h){var x=h;if(!(!xo.length||xo[xo.length-1]!==s)){var y="deltaY"in x?Vv(x):Oa(x),v=t.current.filter(function(b){return b.name===x.type&&(b.target===x.target||x.target===b.shadowParent)&&KA(b.delta,y)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var S=(i.current.shards||[]).map(Uv).filter(Boolean).filter(function(b){return b.contains(x.target)}),E=S.length>0?a(x,S[0]):!i.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),c=u.useCallback(function(h,x,y,v){var S={name:h,delta:x,target:y,should:v,shadowParent:XA(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),d=u.useCallback(function(h){n.current=Oa(h),r.current=void 0},[]),p=u.useCallback(function(h){c(h.type,Vv(h),h.target,a(h,e.lockRef.current))},[]),m=u.useCallback(function(h){c(h.type,Oa(h),h.target,a(h,e.lockRef.current))},[]);u.useEffect(function(){return xo.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,wo),document.addEventListener("touchmove",l,wo),document.addEventListener("touchstart",d,wo),function(){xo=xo.filter(function(h){return h!==s}),document.removeEventListener("wheel",l,wo),document.removeEventListener("touchmove",l,wo),document.removeEventListener("touchstart",d,wo)}},[]);var w=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(s,{styles:ZA(o)}):null,w?u.createElement(E0,{gapMode:e.gapMode}):null)}function XA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qA=S0(b0,YA);var R0=u.forwardRef(function(e,t){return u.createElement(Oc,at({},e,{ref:t,sideCar:qA}))});R0.classNames=Oc.classNames;var ff=["Enter"," "],QA=["ArrowDown","PageUp","Home"],k0=["ArrowUp","PageDown","End"],JA=[...QA,...k0],eO={ltr:[...ff,"ArrowRight"],rtl:[...ff,"ArrowLeft"]},tO={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ta="Menu",[Ci,nO,rO]=ms(ta),[co,pm]=IT(ta,[rO,Tc,Ac]),Mc=Tc(),T0=Ac(),[oO,uo]=co(ta),[sO,na]=co(ta),P0=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,a=Mc(t),[l,c]=u.useState(null),d=u.useRef(!1),p=he(s),m=ps(o);return u.useEffect(()=>{const w=()=>{d.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>d.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),f.jsx(o0,{...a,children:f.jsx(oO,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:c,children:f.jsx(sO,{scope:t,onClose:u.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:m,modal:i,children:r})})})};P0.displayName=ta;var iO="MenuAnchor",mm=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mc(n);return f.jsx(s0,{...o,...r,ref:t})});mm.displayName=iO;var hm="MenuPortal",[aO,A0]=co(hm,{forceMount:void 0}),O0=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=uo(hm,t);return f.jsx(aO,{scope:t,forceMount:n,children:f.jsx(ea,{present:n||s.open,children:f.jsx(l0,{asChild:!0,container:o,children:r})})})};O0.displayName=hm;var Kt="MenuContent",[lO,vm]=co(Kt),M0=u.forwardRef((e,t)=>{const n=A0(Kt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=uo(Kt,e.__scopeMenu),i=na(Kt,e.__scopeMenu);return f.jsx(Ci.Provider,{scope:e.__scopeMenu,children:f.jsx(ea,{present:r||s.open,children:f.jsx(Ci.Slot,{scope:e.__scopeMenu,children:i.modal?f.jsx(cO,{...o,ref:t}):f.jsx(uO,{...o,ref:t})})})})}),cO=u.forwardRef((e,t)=>{const n=uo(Kt,e.__scopeMenu),r=u.useRef(null),o=le(t,r);return u.useEffect(()=>{const s=r.current;if(s)return um(s)},[]),f.jsx(gm,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:$(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),uO=u.forwardRef((e,t)=>{const n=uo(Kt,e.__scopeMenu);return f.jsx(gm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),gm=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,onDismiss:w,disableOutsideScroll:g,...h}=e,x=uo(Kt,n),y=na(Kt,n),v=Mc(n),S=T0(n),E=nO(n),[b,N]=u.useState(null),C=u.useRef(null),R=le(t,C,x.onContentChange),P=u.useRef(0),j=u.useRef(""),Y=u.useRef(0),I=u.useRef(null),z=u.useRef("right"),D=u.useRef(0),X=g?R0:u.Fragment,K=g?{as:zn,allowPinchZoom:!0}:void 0,re=O=>{var J,ye;const B=j.current+O,te=E().filter(_e=>!_e.disabled),fe=document.activeElement,ze=(J=te.find(_e=>_e.ref.current===fe))==null?void 0:J.textValue,ke=te.map(_e=>_e.textValue),ut=bO(ke,B,ze),Ae=(ye=te.find(_e=>_e.textValue===ut))==null?void 0:ye.ref.current;(function _e(we){j.current=we,window.clearTimeout(P.current),we!==""&&(P.current=window.setTimeout(()=>_e(""),1e3))})(B),Ae&&setTimeout(()=>Ae.focus())};u.useEffect(()=>()=>window.clearTimeout(P.current),[]),WT();const A=u.useCallback(O=>{var te,fe;return z.current===((te=I.current)==null?void 0:te.side)&&CO(O,(fe=I.current)==null?void 0:fe.area)},[]);return f.jsx(lO,{scope:n,searchRef:j,onItemEnter:u.useCallback(O=>{A(O)&&O.preventDefault()},[A]),onItemLeave:u.useCallback(O=>{var B;A(O)||((B=C.current)==null||B.focus(),N(null))},[A]),onTriggerLeave:u.useCallback(O=>{A(O)&&O.preventDefault()},[A]),pointerGraceTimerRef:Y,onPointerGraceIntentChange:u.useCallback(O=>{I.current=O},[]),children:f.jsx(X,{...K,children:f.jsx(_c,{asChild:!0,trapped:o,onMountAutoFocus:$(s,O=>{var B;O.preventDefault(),(B=C.current)==null||B.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:f.jsx(Lx,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,onDismiss:w,children:f.jsx(m0,{asChild:!0,...S,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:b,onCurrentTabStopIdChange:N,onEntryFocus:$(l,O=>{y.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:f.jsx(i0,{role:"menu","aria-orientation":"vertical","data-state":Y0(x.open),"data-radix-menu-content":"",dir:y.dir,...v,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:$(h.onKeyDown,O=>{const te=O.target.closest("[data-radix-menu-content]")===O.currentTarget,fe=O.ctrlKey||O.altKey||O.metaKey,ze=O.key.length===1;te&&(O.key==="Tab"&&O.preventDefault(),!fe&&ze&&re(O.key));const ke=C.current;if(O.target!==ke||!JA.includes(O.key))return;O.preventDefault();const Ae=E().filter(J=>!J.disabled).map(J=>J.ref.current);k0.includes(O.key)&&Ae.reverse(),xO(Ae)}),onBlur:$(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(P.current),j.current="")}),onPointerMove:$(e.onPointerMove,_i(O=>{const B=O.target,te=D.current!==O.clientX;if(O.currentTarget.contains(B)&&te){const fe=O.clientX>D.current?"right":"left";z.current=fe,D.current=O.clientX}}))})})})})})})});M0.displayName=Kt;var dO="MenuGroup",ym=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return f.jsx(ee.div,{role:"group",...r,ref:t})});ym.displayName=dO;var fO="MenuLabel",j0=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return f.jsx(ee.div,{...r,ref:t})});j0.displayName=fO;var jl="MenuItem",zv="menu.itemSelect",jc=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=u.useRef(null),i=na(jl,e.__scopeMenu),a=vm(jl,e.__scopeMenu),l=le(t,s),c=u.useRef(!1),d=()=>{const p=s.current;if(!n&&p){const m=new CustomEvent(zv,{bubbles:!0,cancelable:!0});p.addEventListener(zv,w=>r==null?void 0:r(w),{once:!0}),Si(p,m),m.defaultPrevented?c.current=!1:i.onClose()}};return f.jsx(I0,{...o,ref:l,disabled:n,onClick:$(e.onClick,d),onPointerDown:p=>{var m;(m=e.onPointerDown)==null||m.call(e,p),c.current=!0},onPointerUp:$(e.onPointerUp,p=>{var m;c.current||(m=p.currentTarget)==null||m.click()}),onKeyDown:$(e.onKeyDown,p=>{const m=a.searchRef.current!=="";n||m&&p.key===" "||ff.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});jc.displayName=jl;var I0=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=vm(jl,n),a=T0(n),l=u.useRef(null),c=le(t,l),[d,p]=u.useState(!1),[m,w]=u.useState("");return u.useEffect(()=>{const g=l.current;g&&w((g.textContent??"").trim())},[s.children]),f.jsx(Ci.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:f.jsx(h0,{asChild:!0,...a,focusable:!r,children:f.jsx(ee.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:c,onPointerMove:$(e.onPointerMove,_i(g=>{r?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:$(e.onPointerLeave,_i(g=>i.onItemLeave(g))),onFocus:$(e.onFocus,()=>p(!0)),onBlur:$(e.onBlur,()=>p(!1))})})})}),pO="MenuCheckboxItem",D0=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return f.jsx(U0,{scope:e.__scopeMenu,checked:n,children:f.jsx(jc,{role:"menuitemcheckbox","aria-checked":Il(n)?"mixed":n,...o,ref:t,"data-state":xm(n),onSelect:$(o.onSelect,()=>r==null?void 0:r(Il(n)?!0:!n),{checkForDefaultPrevented:!1})})})});D0.displayName=pO;var L0="MenuRadioGroup",[mO,hO]=co(L0,{value:void 0,onValueChange:()=>{}}),F0=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=he(r);return f.jsx(mO,{scope:e.__scopeMenu,value:n,onValueChange:s,children:f.jsx(ym,{...o,ref:t})})});F0.displayName=L0;var $0="MenuRadioItem",V0=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=hO($0,e.__scopeMenu),s=n===o.value;return f.jsx(U0,{scope:e.__scopeMenu,checked:s,children:f.jsx(jc,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":xm(s),onSelect:$(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});V0.displayName=$0;var wm="MenuItemIndicator",[U0,vO]=co(wm,{checked:!1}),z0=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=vO(wm,n);return f.jsx(ea,{present:r||Il(s.checked)||s.checked===!0,children:f.jsx(ee.span,{...o,ref:t,"data-state":xm(s.checked)})})});z0.displayName=wm;var gO="MenuSeparator",B0=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return f.jsx(ee.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});B0.displayName=gO;var yO="MenuArrow",W0=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mc(n);return f.jsx(a0,{...o,...r,ref:t})});W0.displayName=yO;var wO="MenuSub",[B$,H0]=co(wO),$s="MenuSubTrigger",K0=u.forwardRef((e,t)=>{const n=uo($s,e.__scopeMenu),r=na($s,e.__scopeMenu),o=H0($s,e.__scopeMenu),s=vm($s,e.__scopeMenu),i=u.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=s,c={__scopeMenu:e.__scopeMenu},d=u.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return u.useEffect(()=>d,[d]),u.useEffect(()=>{const p=a.current;return()=>{window.clearTimeout(p),l(null)}},[a,l]),f.jsx(mm,{asChild:!0,...c,children:f.jsx(I0,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Y0(n.open),...e,ref:qi(t,o.onTriggerChange),onClick:p=>{var m;(m=e.onClick)==null||m.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:$(e.onPointerMove,_i(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:$(e.onPointerLeave,_i(p=>{var w,g;d();const m=(w=n.content)==null?void 0:w.getBoundingClientRect();if(m){const h=(g=n.content)==null?void 0:g.dataset.side,x=h==="right",y=x?-5:5,v=m[x?"left":"right"],S=m[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x:v,y:m.top},{x:S,y:m.top},{x:S,y:m.bottom},{x:v,y:m.bottom}],side:h}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:$(e.onKeyDown,p=>{var w;const m=s.searchRef.current!=="";e.disabled||m&&p.key===" "||eO[r.dir].includes(p.key)&&(n.onOpenChange(!0),(w=n.content)==null||w.focus(),p.preventDefault())})})})});K0.displayName=$s;var Z0="MenuSubContent",G0=u.forwardRef((e,t)=>{const n=A0(Kt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=uo(Kt,e.__scopeMenu),i=na(Kt,e.__scopeMenu),a=H0(Z0,e.__scopeMenu),l=u.useRef(null),c=le(t,l);return f.jsx(Ci.Provider,{scope:e.__scopeMenu,children:f.jsx(ea,{present:r||s.open,children:f.jsx(Ci.Slot,{scope:e.__scopeMenu,children:f.jsx(gm,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var p;i.isUsingKeyboardRef.current&&((p=l.current)==null||p.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:$(e.onFocusOutside,d=>{d.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:$(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:$(e.onKeyDown,d=>{var w;const p=d.currentTarget.contains(d.target),m=tO[i.dir].includes(d.key);p&&m&&(s.onOpenChange(!1),(w=a.trigger)==null||w.focus(),d.preventDefault())})})})})})});G0.displayName=Z0;function Y0(e){return e?"open":"closed"}function Il(e){return e==="indeterminate"}function xm(e){return Il(e)?"indeterminate":e?"checked":"unchecked"}function xO(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function SO(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function bO(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=SO(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function EO(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;sr!=d>r&&n<(c-a)*(r-l)/(d-l)+a&&(o=!o)}return o}function CO(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return EO(n,t)}function _i(e){return t=>t.pointerType==="mouse"?e(t):void 0}var X0=P0,q0=mm,Q0=O0,J0=M0,eS=ym,tS=j0,nS=jc,rS=D0,oS=F0,sS=V0,iS=z0,aS=B0,lS=W0,cS=K0,uS=G0,Sm="DropdownMenu",[_O,W$]=MT(Sm,[pm]),gt=pm(),[NO,dS]=_O(Sm),fS=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,l=gt(t),c=u.useRef(null),[d=!1,p]=Bn({prop:o,defaultProp:s,onChange:i});return f.jsx(NO,{scope:t,triggerId:Nt(),triggerRef:c,contentId:Nt(),open:d,onOpenChange:p,onOpenToggle:u.useCallback(()=>p(m=>!m),[p]),modal:a,children:f.jsx(X0,{...l,open:d,onOpenChange:p,dir:r,modal:a,children:n})})};fS.displayName=Sm;var pS="DropdownMenuTrigger",mS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=dS(pS,n),i=gt(n);return f.jsx(q0,{asChild:!0,...i,children:f.jsx(ee.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:qi(t,s.triggerRef),onPointerDown:$(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:$(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});mS.displayName=pS;var RO="DropdownMenuPortal",hS=e=>{const{__scopeDropdownMenu:t,...n}=e,r=gt(t);return f.jsx(Q0,{...r,...n})};hS.displayName=RO;var vS="DropdownMenuContent",gS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dS(vS,n),s=gt(n),i=u.useRef(!1);return f.jsx(J0,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:$(e.onCloseAutoFocus,a=>{var l;i.current||(l=o.triggerRef.current)==null||l.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:$(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;(!o.modal||d)&&(i.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)"}})});gS.displayName=vS;var kO="DropdownMenuGroup",TO=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return f.jsx(eS,{...o,...r,ref:t})});TO.displayName=kO;var PO="DropdownMenuLabel",yS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return f.jsx(tS,{...o,...r,ref:t})});yS.displayName=PO;var AO="DropdownMenuItem",wS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return f.jsx(nS,{...o,...r,ref:t})});wS.displayName=AO;var OO="DropdownMenuCheckboxItem",xS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return f.jsx(rS,{...o,...r,ref:t})});xS.displayName=OO;var MO="DropdownMenuRadioGroup",jO=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return f.jsx(oS,{...o,...r,ref:t})});jO.displayName=MO;var IO="DropdownMenuRadioItem",SS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return f.jsx(sS,{...o,...r,ref:t})});SS.displayName=IO;var DO="DropdownMenuItemIndicator",bS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return f.jsx(iS,{...o,...r,ref:t})});bS.displayName=DO;var LO="DropdownMenuSeparator",ES=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return f.jsx(aS,{...o,...r,ref:t})});ES.displayName=LO;var FO="DropdownMenuArrow",$O=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return f.jsx(lS,{...o,...r,ref:t})});$O.displayName=FO;var VO="DropdownMenuSubTrigger",CS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return f.jsx(cS,{...o,...r,ref:t})});CS.displayName=VO;var UO="DropdownMenuSubContent",_S=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return f.jsx(uS,{...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)"}})});_S.displayName=UO;var zO=fS,BO=mS,WO=hS,NS=gS,RS=yS,kS=wS,TS=xS,PS=SS,AS=bS,OS=ES,MS=CS,jS=_S;const HO=zO,KO=BO,ZO=u.forwardRef(({className:e,inset:t,children:n,...r},o)=>f.jsxs(MS,{ref:o,className:q("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,f.jsx(em,{className:"ml-auto h-4 w-4"})]}));ZO.displayName=MS.displayName;const GO=u.forwardRef(({className:e,...t},n)=>f.jsx(jS,{ref:n,className:q("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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",e),...t}));GO.displayName=jS.displayName;const IS=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(WO,{children:f.jsx(NS,{ref:r,sideOffset:t,className:q("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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",e),...n})}));IS.displayName=NS.displayName;const DS=u.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(kS,{ref:r,className:q("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));DS.displayName=kS.displayName;const YO=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>f.jsxs(TS,{ref:o,className:q("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-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(AS,{children:f.jsx(Qp,{className:"h-4 w-4"})})}),t]}));YO.displayName=TS.displayName;const XO=u.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(PS,{ref:r,className:q("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-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(AS,{children:f.jsx(kx,{className:"h-2 w-2 fill-current"})})}),t]}));XO.displayName=PS.displayName;const LS=u.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(RS,{ref:r,className:q("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));LS.displayName=RS.displayName;const FS=u.forwardRef(({className:e,...t},n)=>f.jsx(OS,{ref:n,className:q("-mx-1 my-1 h-px bg-muted",e),...t}));FS.displayName=OS.displayName;function qO(e,t=[]){let n=[];function r(s,i){const a=u.createContext(i),l=n.length;n=[...n,i];const c=p=>{var y;const{scope:m,children:w,...g}=p,h=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,x=u.useMemo(()=>g,Object.values(g));return f.jsx(h.Provider,{value:x,children:w})};c.displayName=s+"Provider";function d(p,m){var h;const w=((h=m==null?void 0:m[e])==null?void 0:h[l])||a,g=u.useContext(w);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,QO(o,...t)]}function QO(...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(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const p=l(s)[`__scope${c}`];return{...a,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Ic="Menubar",[pf,JO,eM]=ms(Ic),[$S,H$]=qO(Ic,[eM,Ac]),yt=pm(),VS=Ac(),[tM,bm]=$S(Ic),US=u.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:s,loop:i=!0,dir:a,...l}=e,c=ps(a),d=VS(n),[p="",m]=Bn({prop:r,onChange:o,defaultProp:s}),[w,g]=u.useState(null);return f.jsx(tM,{scope:n,value:p,onMenuOpen:u.useCallback(h=>{m(h),g(h)},[m]),onMenuClose:u.useCallback(()=>m(""),[m]),onMenuToggle:u.useCallback(h=>{m(x=>x?"":h),g(h)},[m]),dir:c,loop:i,children:f.jsx(pf.Provider,{scope:n,children:f.jsx(pf.Slot,{scope:n,children:f.jsx(m0,{asChild:!0,...d,orientation:"horizontal",loop:i,dir:c,currentTabStopId:w,onCurrentTabStopIdChange:g,children:f.jsx(ee.div,{role:"menubar",...l,ref:t})})})})})});US.displayName=Ic;var Em="MenubarMenu",[nM,zS]=$S(Em),BS=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=Nt(),s=n||o||"LEGACY_REACT_AUTO_VALUE",i=bm(Em,t),a=yt(t),l=u.useRef(null),c=u.useRef(!1),d=i.value===s;return u.useEffect(()=>{d||(c.current=!1)},[d]),f.jsx(nM,{scope:t,value:s,triggerId:Nt(),triggerRef:l,contentId:Nt(),wasKeyboardTriggerOpenRef:c,children:f.jsx(X0,{...a,open:d,onOpenChange:p=>{p||i.onMenuClose()},modal:!1,dir:i.dir,...r})})};BS.displayName=Em;var mf="MenubarTrigger",WS=u.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,s=VS(n),i=yt(n),a=bm(mf,n),l=zS(mf,n),c=u.useRef(null),d=le(t,c,l.triggerRef),[p,m]=u.useState(!1),w=a.value===l.value;return f.jsx(pf.ItemSlot,{scope:n,value:l.value,disabled:r,children:f.jsx(h0,{asChild:!0,...s,focusable:!r,tabStopId:l.value,children:f.jsx(q0,{asChild:!0,...i,children:f.jsx(ee.button,{type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":w,"aria-controls":w?l.contentId:void 0,"data-highlighted":p?"":void 0,"data-state":w?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:d,onPointerDown:$(e.onPointerDown,g=>{!r&&g.button===0&&g.ctrlKey===!1&&(a.onMenuOpen(l.value),w||g.preventDefault())}),onPointerEnter:$(e.onPointerEnter,()=>{var h;!!a.value&&!w&&(a.onMenuOpen(l.value),(h=c.current)==null||h.focus())}),onKeyDown:$(e.onKeyDown,g=>{r||(["Enter"," "].includes(g.key)&&a.onMenuToggle(l.value),g.key==="ArrowDown"&&a.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(g.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,g.preventDefault()))}),onFocus:$(e.onFocus,()=>m(!0)),onBlur:$(e.onBlur,()=>m(!1))})})})})});WS.displayName=mf;var rM="MenubarPortal",HS=e=>{const{__scopeMenubar:t,...n}=e,r=yt(t);return f.jsx(Q0,{...r,...n})};HS.displayName=rM;var hf="MenubarContent",KS=u.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,s=yt(n),i=bm(hf,n),a=zS(hf,n),l=JO(n),c=u.useRef(!1);return f.jsx(J0,{id:a.contentId,"aria-labelledby":a.triggerId,"data-radix-menubar-content":"",...s,...o,ref:t,align:r,onCloseAutoFocus:$(e.onCloseAutoFocus,d=>{var m;!!!i.value&&!c.current&&((m=a.triggerRef.current)==null||m.focus()),c.current=!1,d.preventDefault()}),onFocusOutside:$(e.onFocusOutside,d=>{const p=d.target;l().some(w=>{var g;return(g=w.ref.current)==null?void 0:g.contains(p)})&&d.preventDefault()}),onInteractOutside:$(e.onInteractOutside,()=>{c.current=!0}),onEntryFocus:d=>{a.wasKeyboardTriggerOpenRef.current||d.preventDefault()},onKeyDown:$(e.onKeyDown,d=>{if(["ArrowRight","ArrowLeft"].includes(d.key)){const p=d.target,m=p.hasAttribute("data-radix-menubar-subtrigger"),w=p.closest("[data-radix-menubar-content]")!==d.currentTarget,h=(i.dir==="rtl"?"ArrowRight":"ArrowLeft")===d.key;if(!h&&m||w&&h)return;let v=l().filter(b=>!b.disabled).map(b=>b.value);h&&v.reverse();const S=v.indexOf(a.value);v=i.loop?yM(v,S+1):v.slice(S+1);const[E]=v;E&&i.onMenuOpen(E)}},{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)"}})});KS.displayName=hf;var oM="MenubarGroup",sM=u.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=yt(n);return f.jsx(eS,{...o,...r,ref:t})});sM.displayName=oM;var iM="MenubarLabel",ZS=u.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=yt(n);return f.jsx(tS,{...o,...r,ref:t})});ZS.displayName=iM;var aM="MenubarItem",GS=u.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=yt(n);return f.jsx(nS,{...o,...r,ref:t})});GS.displayName=aM;var lM="MenubarCheckboxItem",YS=u.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=yt(n);return f.jsx(rS,{...o,...r,ref:t})});YS.displayName=lM;var cM="MenubarRadioGroup",uM=u.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=yt(n);return f.jsx(oS,{...o,...r,ref:t})});uM.displayName=cM;var dM="MenubarRadioItem",XS=u.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=yt(n);return f.jsx(sS,{...o,...r,ref:t})});XS.displayName=dM;var fM="MenubarItemIndicator",qS=u.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=yt(n);return f.jsx(iS,{...o,...r,ref:t})});qS.displayName=fM;var pM="MenubarSeparator",QS=u.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=yt(n);return f.jsx(aS,{...o,...r,ref:t})});QS.displayName=pM;var mM="MenubarArrow",hM=u.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=yt(n);return f.jsx(lS,{...o,...r,ref:t})});hM.displayName=mM;var vM="MenubarSubTrigger",JS=u.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=yt(n);return f.jsx(cS,{"data-radix-menubar-subtrigger":"",...o,...r,ref:t})});JS.displayName=vM;var gM="MenubarSubContent",e1=u.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=yt(n);return f.jsx(uS,{...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)"}})});e1.displayName=gM;function yM(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var t1=US,wM=BS,n1=WS,xM=HS,r1=KS,o1=ZS,s1=GS,i1=YS,a1=XS,l1=qS,c1=QS,u1=JS,d1=e1;const SM=wM,f1=u.forwardRef(({className:e,...t},n)=>f.jsx(t1,{ref:n,className:q("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));f1.displayName=t1.displayName;const p1=u.forwardRef(({className:e,...t},n)=>f.jsx(n1,{ref:n,className:q("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));p1.displayName=n1.displayName;const bM=u.forwardRef(({className:e,inset:t,children:n,...r},o)=>f.jsxs(u1,{ref:o,className:q("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,f.jsx(em,{className:"ml-auto h-4 w-4"})]}));bM.displayName=u1.displayName;const EM=u.forwardRef(({className:e,...t},n)=>f.jsx(d1,{ref:n,className:q("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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",e),...t}));EM.displayName=d1.displayName;const m1=u.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...o},s)=>f.jsx(xM,{children:f.jsx(r1,{ref:s,align:t,alignOffset:n,sideOffset:r,className:q("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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",e),...o})}));m1.displayName=r1.displayName;const Vs=u.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(s1,{ref:r,className:q("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Vs.displayName=s1.displayName;const CM=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>f.jsxs(i1,{ref:o,className:q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(l1,{children:f.jsx(Qp,{className:"h-4 w-4"})})}),t]}));CM.displayName=i1.displayName;const _M=u.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(a1,{ref:r,className:q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(l1,{children:f.jsx(kx,{className:"h-2 w-2 fill-current"})})}),t]}));_M.displayName=a1.displayName;const NM=u.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(o1,{ref:r,className:q("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));NM.displayName=o1.displayName;const vf=u.forwardRef(({className:e,...t},n)=>f.jsx(c1,{ref:n,className:q("-mx-1 my-1 h-px bg-muted",e),...t}));vf.displayName=c1.displayName;const RM="/assets/lscs_white-BifDPF52.png";var Cm="Avatar",[kM,K$]=Yn(Cm),[TM,h1]=kM(Cm),v1=u.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=u.useState("idle");return f.jsx(TM,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:f.jsx(ee.span,{...r,ref:t})})});v1.displayName=Cm;var g1="AvatarImage",y1=u.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=h1(g1,n),a=PM(r),l=he(c=>{o(c),i.onImageLoadingStatusChange(c)});return Re(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?f.jsx(ee.img,{...s,ref:t,src:r}):null});y1.displayName=g1;var w1="AvatarFallback",x1=u.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=h1(w1,n),[i,a]=u.useState(r===void 0);return u.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&s.imageLoadingStatus!=="loaded"?f.jsx(ee.span,{...o,ref:t}):null});x1.displayName=w1;function PM(e){const[t,n]=u.useState("idle");return Re(()=>{if(!e){n("error");return}let r=!0;const o=new window.Image,s=i=>()=>{r&&n(i)};return n("loading"),o.onload=s("loaded"),o.onerror=s("error"),o.src=e,()=>{r=!1}},[e]),t}var S1=v1,b1=y1,E1=x1;const gf=u.forwardRef(({className:e,...t},n)=>f.jsx(S1,{ref:n,className:q("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));gf.displayName=S1.displayName;const yf=u.forwardRef(({className:e,...t},n)=>f.jsx(b1,{ref:n,className:q("aspect-square h-full w-full",e),...t}));yf.displayName=b1.displayName;const wf=u.forwardRef(({className:e,...t},n)=>f.jsx(E1,{ref:n,className:q("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));wf.displayName=E1.displayName;const C1=({email:e})=>{if(e!=""){const n=(r=>{const o=r.split("_").map(s=>s[0].toUpperCase());return o.length==2?o.join(""):o[0]})(e);return f.jsx(f.Fragment,{children:f.jsxs(gf,{children:[f.jsx(yf,{src:""}),f.jsx(wf,{className:"text-black",children:n.toUpperCase()})]})})}else return f.jsx(f.Fragment,{children:f.jsxs(gf,{children:[f.jsx(yf,{src:""}),f.jsx(wf,{className:"text-black"})]})})};/** + * @remix-run/router v1.19.2 + * + * 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 Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function _1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function OM(){return Math.random().toString(36).substr(2,8)}function Wv(e,t){return{usr:e.state,key:e.key,idx:t}}function xf(e,t,n,r){return n===void 0&&(n=null),Ni({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ws(t):t,{state:n,key:t&&t.key||r||OM()})}function Dl(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 ws(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 MM(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=ur.Pop,l=null,c=d();c==null&&(c=0,i.replaceState(Ni({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function p(){a=ur.Pop;let x=d(),y=x==null?null:x-c;c=x,l&&l({action:a,location:h.location,delta:y})}function m(x,y){a=ur.Push;let v=xf(h.location,x,y);c=d()+1;let S=Wv(v,c),E=h.createHref(v);try{i.pushState(S,"",E)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;o.location.assign(E)}s&&l&&l({action:a,location:h.location,delta:1})}function w(x,y){a=ur.Replace;let v=xf(h.location,x,y);c=d();let S=Wv(v,c),E=h.createHref(v);i.replaceState(S,"",E),s&&l&&l({action:a,location:h.location,delta:0})}function g(x){let y=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof x=="string"?x:Dl(x);return v=v.replace(/ $/,"%20"),He(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let h={get action(){return a},get location(){return e(o,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Bv,p),l=x,()=>{o.removeEventListener(Bv,p),l=null}},createHref(x){return t(o,x)},createURL:g,encodeLocation(x){let y=g(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:w,go(x){return i.go(x)}};return h}var Hv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Hv||(Hv={}));function jM(e,t,n){return n===void 0&&(n="/"),IM(e,t,n,!1)}function IM(e,t,n,r){let o=typeof t=="string"?ws(t):t,s=_m(o.pathname||"/",n);if(s==null)return null;let i=N1(e);DM(i);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=wr([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(He(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),N1(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:BM(c,s.index),routesMeta:d})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of R1(s.path))o(s,i,l)}),t}function R1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=R1(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function DM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:WM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const LM=/^:[\w-]+$/,FM=3,$M=2,VM=1,UM=10,zM=-2,Kv=e=>e==="*";function BM(e,t){let n=e.split("/"),r=n.length;return n.some(Kv)&&(r+=zM),t&&(r+=$M),n.filter(o=>!Kv(o)).reduce((o,s)=>o+(LM.test(s)?FM:s===""?VM:UM),r)}function WM(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 HM(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a{let{paramName:m,isOptional:w}=d;if(m==="*"){let h=a[p]||"";i=s.slice(0,s.length-h.length).replace(/(.)\/+$/,"$1")}const g=a[p];return w&&!g?c[m]=void 0:c[m]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}function KM(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),_1(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,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function ZM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return _1(!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 _m(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)||"/"}function GM(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ws(e):e;return{pathname:n?n.startsWith("/")?n:YM(n,t):t,search:QM(r),hash:JM(o)}}function YM(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Uu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function XM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function k1(e,t){let n=XM(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function T1(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ws(e):(o=Ni({},e),He(!o.pathname||!o.pathname.includes("?"),Uu("?","pathname","search",o)),He(!o.pathname||!o.pathname.includes("#"),Uu("#","pathname","hash",o)),He(!o.search||!o.search.includes("#"),Uu("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;o.pathname=m.join("/")}a=p>=0?t[p]:"/"}let l=GM(o,a),c=i&&i!=="/"&&i.endsWith("/"),d=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const wr=e=>e.join("/").replace(/\/\/+/g,"/"),qM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),QM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,JM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ej(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const P1=["post","put","patch","delete"];new Set(P1);const tj=["get",...P1];new Set(tj);/** + * React Router v6.26.2 + * + * 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 Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),u.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let p=T1(c,JSON.parse(i),s,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:wr([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,i,s,e])}function M1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=u.useContext(fo),{matches:o}=u.useContext(po),{pathname:s}=Lc(),i=JSON.stringify(k1(o,r.v7_relativeSplatPath));return u.useMemo(()=>T1(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function ij(e,t){return aj(e,t)}function aj(e,t,n,r){ra()||He(!1);let{navigator:o}=u.useContext(fo),{matches:s}=u.useContext(po),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=Lc(),d;if(t){var p;let x=typeof t=="string"?ws(t):t;l==="/"||(p=x.pathname)!=null&&p.startsWith(l)||He(!1),d=x}else d=c;let m=d.pathname||"/",w=m;if(l!=="/"){let x=l.replace(/^\//,"").split("/");w="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=jM(e,{pathname:w}),h=fj(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:wr([l,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:wr([l,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&h?u.createElement(Dc.Provider,{value:{location:Ri({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ur.Pop}},h):h}function lj(){let e=vj(),t=ej(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)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,null)}const cj=u.createElement(lj,null);class uj extends u.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!==void 0?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!==void 0?u.createElement(po.Provider,{value:this.props.routeContext},u.createElement(A1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dj(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(Nm);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(po.Provider,{value:t},r)}function fj(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=i.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||He(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,p,m)=>{let w,g=!1,h=null,x=null;n&&(w=a&&p.route.id?a[p.route.id]:void 0,h=p.route.errorElement||cj,l&&(c<0&&m===0?(g=!0,x=null):c===m&&(g=!0,x=p.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,m+1)),v=()=>{let S;return w?S=h:g?S=x:p.route.Component?S=u.createElement(p.route.Component,null):p.route.element?S=p.route.element:S=d,u.createElement(dj,{match:p,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:S})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?u.createElement(uj,{location:n.location,revalidation:n.revalidation,component:h,error:w,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var j1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(j1||{}),Ll=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}(Ll||{});function pj(e){let t=u.useContext(Nm);return t||He(!1),t}function mj(e){let t=u.useContext(nj);return t||He(!1),t}function hj(e){let t=u.useContext(po);return t||He(!1),t}function I1(e){let t=hj(),n=t.matches[t.matches.length-1];return n.route.id||He(!1),n.route.id}function vj(){var e;let t=u.useContext(A1),n=mj(Ll.UseRouteError),r=I1(Ll.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function gj(){let{router:e}=pj(j1.UseNavigateStable),t=I1(Ll.UseNavigateStable),n=u.useRef(!1);return O1(()=>{n.current=!0}),u.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ri({fromRouteId:t},s)))},[e,t])}function Sf(e){He(!1)}function yj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ur.Pop,navigator:s,static:i=!1,future:a}=e;ra()&&He(!1);let l=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:l,navigator:s,static:i,future:Ri({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=ws(r));let{pathname:d="/",search:p="",hash:m="",state:w=null,key:g="default"}=r,h=u.useMemo(()=>{let x=_m(d,l);return x==null?null:{location:{pathname:x,search:p,hash:m,state:w,key:g},navigationType:o}},[l,d,p,m,w,g,o]);return h==null?null:u.createElement(fo.Provider,{value:c},u.createElement(Dc.Provider,{children:n,value:h}))}function wj(e){let{children:t,location:n}=e;return ij(bf(t),n)}new Promise(()=>{});function bf(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,o)=>{if(!u.isValidElement(r))return;let s=[...t,o];if(r.type===u.Fragment){n.push.apply(n,bf(r.props.children,s));return}r.type!==Sf&&He(!1),!r.props.index||!r.props.children||He(!1);let i={id:r.props.id||s.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&&(i.children=bf(r.props.children,s)),n.push(i)}),n}/** + * React Router DOM v6.26.2 + * + * 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 Ef(){return Ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Sj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bj(e,t){return e.button===0&&(!t||t==="_self")&&!Sj(e)}const Ej=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Cj="6";try{window.__reactRouterVersion=Cj}catch{}const _j="startTransition",Gv=Zg[_j];function Nj(e){let{basename:t,children:n,future:r,window:o}=e,s=u.useRef();s.current==null&&(s.current=AM({window:o,v5Compat:!0}));let i=s.current,[a,l]=u.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},d=u.useCallback(p=>{c&&Gv?Gv(()=>l(p)):l(p)},[l,c]);return u.useLayoutEffect(()=>i.listen(d),[i,d]),u.createElement(yj,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const Rj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ma=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:a,target:l,to:c,preventScrollReset:d,unstable_viewTransition:p}=t,m=xj(t,Ej),{basename:w}=u.useContext(fo),g,h=!1;if(typeof c=="string"&&kj.test(c)&&(g=c,Rj))try{let S=new URL(window.location.href),E=c.startsWith("//")?new URL(S.protocol+c):new URL(c),b=_m(E.pathname,w);E.origin===S.origin&&b!=null?c=b+E.search+E.hash:h=!0}catch{}let x=rj(c,{relative:o}),y=Tj(c,{replace:i,state:a,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:p});function v(S){r&&r(S),S.defaultPrevented||y(S)}return u.createElement("a",Ef({},m,{href:g||x,onClick:h||s?r:v,ref:n,target:l}))});var Yv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Yv||(Yv={}));var Xv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Xv||(Xv={}));function Tj(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,unstable_viewTransition:a}=t===void 0?{}:t,l=oj(),c=Lc(),d=M1(e,{relative:i});return u.useCallback(p=>{if(bj(p,n)){p.preventDefault();let m=r!==void 0?r:Dl(c)===Dl(d);l(e,{replace:m,state:o,preventScrollReset:s,relative:i,unstable_viewTransition:a})}},[c,l,d,r,o,n,e,s,i,a])}/*! + * cookie + * Copyright(c) 2012-2014 Roman Shtylman + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */var D1=Aj,qv=Oj,Pj=Object.prototype.toString,ja=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Aj(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},o=r.decode||Mj,s=0;s"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function Fj(e){return typeof e=="string"?D1(e):typeof e=="object"&&e!==null?e:{}}function zu(e,t={}){const n=$j(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function $j(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class L1{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const o=this.cookies;this.cookies=D1(document.cookie),this._checkChanges(o)};const r=typeof document>"u"?"":document.cookie;this.cookies=Fj(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=Lj()}_emitChange(t){for(let n=0;n{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:zu(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),zu(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=zu(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const o=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:o}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=qv(t,o,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=qv(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const F1=u.createContext(new L1),{Provider:Vj,Consumer:Z$}=F1;class Uj extends u.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new L1(void 0,t.defaultSetOptions)}render(){return u.createElement(Vj,{value:this.cookies},this.props.children)}}var $1={exports:{}},Ee={};/** @license React v16.13.1 + * react-is.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 Qv;function zj(){if(Qv)return Ee;Qv=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function S(b){if(typeof b=="object"&&b!==null){var N=b.$$typeof;switch(N){case t:switch(b=b.type,b){case l:case c:case r:case s:case o:case p:return b;default:switch(b=b&&b.$$typeof,b){case a:case d:case g:case w:case i:return b;default:return N}}case n:return N}}}function E(b){return S(b)===c}return Ee.AsyncMode=l,Ee.ConcurrentMode=c,Ee.ContextConsumer=a,Ee.ContextProvider=i,Ee.Element=t,Ee.ForwardRef=d,Ee.Fragment=r,Ee.Lazy=g,Ee.Memo=w,Ee.Portal=n,Ee.Profiler=s,Ee.StrictMode=o,Ee.Suspense=p,Ee.isAsyncMode=function(b){return E(b)||S(b)===l},Ee.isConcurrentMode=E,Ee.isContextConsumer=function(b){return S(b)===a},Ee.isContextProvider=function(b){return S(b)===i},Ee.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Ee.isForwardRef=function(b){return S(b)===d},Ee.isFragment=function(b){return S(b)===r},Ee.isLazy=function(b){return S(b)===g},Ee.isMemo=function(b){return S(b)===w},Ee.isPortal=function(b){return S(b)===n},Ee.isProfiler=function(b){return S(b)===s},Ee.isStrictMode=function(b){return S(b)===o},Ee.isSuspense=function(b){return S(b)===p},Ee.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===c||b===s||b===o||b===p||b===m||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===w||b.$$typeof===i||b.$$typeof===a||b.$$typeof===d||b.$$typeof===x||b.$$typeof===y||b.$$typeof===v||b.$$typeof===h)},Ee.typeOf=S,Ee}$1.exports=zj();var Bj=$1.exports,V1=Bj,Wj={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Hj={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},U1={};U1[V1.ForwardRef]=Wj;U1[V1.Memo]=Hj;function Kj(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function an(e,t){const n=u.useContext(F1);if(!n)throw new Error("Missing ");const o=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[s,i]=u.useState(()=>n.getAll(o));Kj()&&u.useLayoutEffect(()=>{function d(){const p=n.getAll(o);Zj(e||null,p,s)&&i(p)}return n.addChangeListener(d),()=>{n.removeChangeListener(d)}},[n,s]);const a=u.useMemo(()=>n.set.bind(n),[n]),l=u.useMemo(()=>n.remove.bind(n),[n]),c=u.useMemo(()=>n.update.bind(n),[n]);return[s,a,l,c]}function Zj(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const Gj=()=>{const[e]=an(["currentUser"]),t=e.currentUser,[n,,r]=an(["currentToken"]);return f.jsx(f.Fragment,{children:f.jsxs("header",{className:"bg-[black] text-[#FFFFFF] flex justify-between items-center px-2 md:px-8 py-4",children:[f.jsxs(Ma,{to:"/",className:"flex items-center space-x-1 md:space-x-3",children:[f.jsx("img",{src:RM,alt:"",className:"w-12 md:w-20"}),f.jsxs("div",{children:[f.jsx("h1",{className:"font-bold text-md md:text-3xl",children:"Research and Development"}),f.jsx("p",{className:"text-xs md:text-base",children:"39th La Salle Computer Society"})]})]}),f.jsxs("div",{className:"hidden md:flex space-x-8",children:["currentToken"in n?f.jsx(f.Fragment,{children:f.jsxs("div",{className:"hidden md:flex bg-[#1D283A] rounded-lg",children:[f.jsx(tf,{children:f.jsx(nf,{children:f.jsx(Sv,{children:f.jsx(AT,{children:f.jsx(rf,{className:"bg-[#1D283A]",children:f.jsx(Ma,{to:"/",children:"Link Shortener"})})})})})}),f.jsx(tf,{children:f.jsx(nf,{children:f.jsx(Sv,{children:f.jsx(rf,{className:"bg-[#1D283A]",children:"Other Applications"})})})})]})}):null,"currentToken"in n?f.jsxs(HO,{children:[f.jsxs(KO,{children:[f.jsx(C1,{email:t})," "]}),f.jsxs(IS,{className:" bg-[#030711] border-2 border-[#1D283A] rounded-lg text-white",children:[f.jsx(LS,{children:"My Account"}),f.jsx(FS,{className:"bg-[#030711]"}),f.jsx(DS,{onClick:()=>{r("currentToken")},children:"Logout"})]})]}):null]}),"currentToken"in n?f.jsx("div",{className:"flex md:hidden",children:f.jsx(f1,{className:"bg-[#030711] border-2 border-[#1D283A] rounded-lg",children:f.jsxs(SM,{children:[f.jsx(p1,{children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}),f.jsxs(m1,{className:"bg-[#030711] border-2 border-[#1D283A] rounded-lg text-white",children:[f.jsx(Vs,{children:f.jsx(Ma,{to:"/",children:"Link Shortener"})}),f.jsx(vf,{}),f.jsx(Vs,{children:f.jsx(Ma,{to:"",children:"DocuSeal"})}),f.jsx(vf,{}),f.jsx(Vs,{children:t.email}),f.jsx(Vs,{onClick:()=>{r("currentToken")},children:"Log Out"})]})]})})}):null]})})};function Cf(e,[t,n]){return Math.min(n,Math.max(t,e))}var Bu=0;function z1(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Jv()),document.body.insertAdjacentElement("beforeend",e[1]??Jv()),Bu++,()=>{Bu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Bu--}},[])}function Jv(){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 Yj="Portal",Rm=u.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=u.useState(!1);Re(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Ec.createPortal(f.jsx(ee.div,{...r,ref:t}),i):null});Rm.displayName=Yj;var B1=w0(),Wu=function(){},Fc=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Wu,onWheelCapture:Wu,onTouchMoveCapture:Wu}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,w=e.noIsolation,g=e.inert,h=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,v=e.gapMode,S=dm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,b=y0([n,t]),N=at(at({},S),o);return u.createElement(u.Fragment,null,d&&u.createElement(E,{sideCar:B1,removeScrollBar:c,shards:p,noIsolation:w,inert:g,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:v}),i?u.cloneElement(u.Children.only(a),at(at({},N),{ref:b})):u.createElement(y,at({},N,{className:l,ref:b}),a))});Fc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fc.classNames={fullWidth:ei,zeroRight:Js};var _f=!1;if(typeof window<"u")try{var Ia=Object.defineProperty({},"passive",{get:function(){return _f=!0,!0}});window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{_f=!1}var So=_f?{passive:!1}:!1,Xj=function(e){return e.tagName==="TEXTAREA"},W1=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Xj(e)&&n[t]==="visible")},qj=function(e){return W1(e,"overflowY")},Qj=function(e){return W1(e,"overflowX")},eg=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=H1(e,r);if(o){var s=K1(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Jj=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},eI=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},H1=function(e,t){return e==="v"?qj(t):Qj(t)},K1=function(e,t){return e==="v"?Jj(t):eI(t)},tI=function(e,t){return e==="h"&&t==="rtl"?-1:1},nI=function(e,t,n,r,o){var s=tI(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),c=!1,d=i>0,p=0,m=0;do{var w=K1(e,a),g=w[0],h=w[1],x=w[2],y=h-x-s*g;(g||y)&&H1(e,a)&&(p+=y,m+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(p)<1||!o)||!d&&(Math.abs(m)<1||!o))&&(c=!0),c},Da=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tg=function(e){return[e.deltaX,e.deltaY]},ng=function(e){return e&&"current"in e?e.current:e},rI=function(e,t){return e[0]===t[0]&&e[1]===t[1]},oI=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},sI=0,bo=[];function iI(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(sI++)[0],s=u.useState(fm)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=g0([e.lockRef.current],(e.shards||[]).map(ng),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(h,x){if("touches"in h&&h.touches.length===2)return!i.current.allowPinchZoom;var y=Da(h),v=n.current,S="deltaX"in h?h.deltaX:v[0]-y[0],E="deltaY"in h?h.deltaY:v[1]-y[1],b,N=h.target,C=Math.abs(S)>Math.abs(E)?"h":"v";if("touches"in h&&C==="h"&&N.type==="range")return!1;var R=eg(C,N);if(!R)return!0;if(R?b=C:(b=C==="v"?"h":"v",R=eg(C,N)),!R)return!1;if(!r.current&&"changedTouches"in h&&(S||E)&&(r.current=b),!b)return!0;var P=r.current||b;return nI(P,x,h,P==="h"?S:E,!0)},[]),l=u.useCallback(function(h){var x=h;if(!(!bo.length||bo[bo.length-1]!==s)){var y="deltaY"in x?tg(x):Da(x),v=t.current.filter(function(b){return b.name===x.type&&(b.target===x.target||x.target===b.shadowParent)&&rI(b.delta,y)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var S=(i.current.shards||[]).map(ng).filter(Boolean).filter(function(b){return b.contains(x.target)}),E=S.length>0?a(x,S[0]):!i.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),c=u.useCallback(function(h,x,y,v){var S={name:h,delta:x,target:y,should:v,shadowParent:aI(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),d=u.useCallback(function(h){n.current=Da(h),r.current=void 0},[]),p=u.useCallback(function(h){c(h.type,tg(h),h.target,a(h,e.lockRef.current))},[]),m=u.useCallback(function(h){c(h.type,Da(h),h.target,a(h,e.lockRef.current))},[]);u.useEffect(function(){return bo.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,So),document.addEventListener("touchmove",l,So),document.addEventListener("touchstart",d,So),function(){bo=bo.filter(function(h){return h!==s}),document.removeEventListener("wheel",l,So),document.removeEventListener("touchmove",l,So),document.removeEventListener("touchstart",d,So)}},[]);var w=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(s,{styles:oI(o)}):null,w?u.createElement(E0,{gapMode:e.gapMode}):null)}function aI(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lI=S0(B1,iI);var km=u.forwardRef(function(e,t){return u.createElement(Fc,at({},e,{ref:t,sideCar:lI}))});km.classNames=Fc.classNames;var cI=[" ","Enter","ArrowUp","ArrowDown"],uI=[" ","Enter"],oa="Select",[$c,Vc,dI]=ms(oa),[xs,G$]=Yn(oa,[dI,Tc]),Uc=Tc(),[fI,Mr]=xs(oa),[pI,mI]=xs(oa),Z1=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:c,name:d,autoComplete:p,disabled:m,required:w}=e,g=Uc(t),[h,x]=u.useState(null),[y,v]=u.useState(null),[S,E]=u.useState(!1),b=ps(c),[N=!1,C]=Bn({prop:r,defaultProp:o,onChange:s}),[R,P]=Bn({prop:i,defaultProp:a,onChange:l}),j=u.useRef(null),Y=h?!!h.closest("form"):!0,[I,z]=u.useState(new Set),D=Array.from(I).map(X=>X.props.value).join(";");return f.jsx(o0,{...g,children:f.jsxs(fI,{required:w,scope:t,trigger:h,onTriggerChange:x,valueNode:y,onValueNodeChange:v,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:Nt(),value:R,onValueChange:P,open:N,onOpenChange:C,dir:b,triggerPointerDownPosRef:j,disabled:m,children:[f.jsx($c.Provider,{scope:t,children:f.jsx(pI,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(X=>{z(K=>new Set(K).add(X))},[]),onNativeOptionRemove:u.useCallback(X=>{z(K=>{const re=new Set(K);return re.delete(X),re})},[]),children:n})}),Y?f.jsxs(yb,{"aria-hidden":!0,required:w,tabIndex:-1,name:d,autoComplete:p,value:R,onChange:X=>P(X.target.value),disabled:m,children:[R===void 0?f.jsx("option",{value:""}):null,Array.from(I)]},D):null]})})};Z1.displayName=oa;var G1="SelectTrigger",Y1=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Uc(n),i=Mr(G1,n),a=i.disabled||r,l=le(t,i.onTriggerChange),c=Vc(n),[d,p,m]=wb(g=>{const h=c().filter(v=>!v.disabled),x=h.find(v=>v.value===i.value),y=xb(h,g,x);y!==void 0&&i.onValueChange(y.value)}),w=()=>{a||(i.onOpenChange(!0),m())};return f.jsx(s0,{asChild:!0,...s,children:f.jsx(ee.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":gb(i.value)?"":void 0,...o,ref:l,onClick:$(o.onClick,g=>{g.currentTarget.focus()}),onPointerDown:$(o.onPointerDown,g=>{const h=g.target;h.hasPointerCapture(g.pointerId)&&h.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(w(),i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:$(o.onKeyDown,g=>{const h=d.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&p(g.key),!(h&&g.key===" ")&&cI.includes(g.key)&&(w(),g.preventDefault())})})})});Y1.displayName=G1;var X1="SelectValue",q1=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=Mr(X1,n),{onValueNodeHasChildrenChange:c}=l,d=s!==void 0,p=le(t,l.onValueNodeChange);return Re(()=>{c(d)},[c,d]),f.jsx(ee.span,{...a,ref:p,style:{pointerEvents:"none"},children:gb(l.value)?f.jsx(f.Fragment,{children:i}):s})});q1.displayName=X1;var hI="SelectIcon",Q1=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return f.jsx(ee.span,{"aria-hidden":!0,...o,ref:t,children:r||"â–¼"})});Q1.displayName=hI;var vI="SelectPortal",J1=e=>f.jsx(Rm,{asChild:!0,...e});J1.displayName=vI;var eo="SelectContent",eb=u.forwardRef((e,t)=>{const n=Mr(eo,e.__scopeSelect),[r,o]=u.useState();if(Re(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Gn.createPortal(f.jsx(tb,{scope:e.__scopeSelect,children:f.jsx($c.Slot,{scope:e.__scopeSelect,children:f.jsx("div",{children:e.children})})}),s):null}return f.jsx(nb,{...e,ref:t})});eb.displayName=eo;var On=10,[tb,jr]=xs(eo),gI="SelectContentImpl",nb=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:p,collisionBoundary:m,collisionPadding:w,sticky:g,hideWhenDetached:h,avoidCollisions:x,...y}=e,v=Mr(eo,n),[S,E]=u.useState(null),[b,N]=u.useState(null),C=le(t,J=>E(J)),[R,P]=u.useState(null),[j,Y]=u.useState(null),I=Vc(n),[z,D]=u.useState(!1),X=u.useRef(!1);u.useEffect(()=>{if(S)return um(S)},[S]),z1();const K=u.useCallback(J=>{const[ye,..._e]=I().map(Se=>Se.ref.current),[we]=_e.slice(-1),xe=document.activeElement;for(const Se of J)if(Se===xe||(Se==null||Se.scrollIntoView({block:"nearest"}),Se===ye&&b&&(b.scrollTop=0),Se===we&&b&&(b.scrollTop=b.scrollHeight),Se==null||Se.focus(),document.activeElement!==xe))return},[I,b]),re=u.useCallback(()=>K([R,S]),[K,R,S]);u.useEffect(()=>{z&&re()},[z,re]);const{onOpenChange:A,triggerPointerDownPosRef:O}=v;u.useEffect(()=>{if(S){let J={x:0,y:0};const ye=we=>{var xe,Se;J={x:Math.abs(Math.round(we.pageX)-(((xe=O.current)==null?void 0:xe.x)??0)),y:Math.abs(Math.round(we.pageY)-(((Se=O.current)==null?void 0:Se.y)??0))}},_e=we=>{J.x<=10&&J.y<=10?we.preventDefault():S.contains(we.target)||A(!1),document.removeEventListener("pointermove",ye),O.current=null};return O.current!==null&&(document.addEventListener("pointermove",ye),document.addEventListener("pointerup",_e,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ye),document.removeEventListener("pointerup",_e,{capture:!0})}}},[S,A,O]),u.useEffect(()=>{const J=()=>A(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[A]);const[B,te]=wb(J=>{const ye=I().filter(xe=>!xe.disabled),_e=ye.find(xe=>xe.ref.current===document.activeElement),we=xb(ye,J,_e);we&&setTimeout(()=>we.ref.current.focus())}),fe=u.useCallback((J,ye,_e)=>{const we=!X.current&&!_e;(v.value!==void 0&&v.value===ye||we)&&(P(J),we&&(X.current=!0))},[v.value]),ze=u.useCallback(()=>S==null?void 0:S.focus(),[S]),ke=u.useCallback((J,ye,_e)=>{const we=!X.current&&!_e;(v.value!==void 0&&v.value===ye||we)&&Y(J)},[v.value]),ut=r==="popper"?Nf:rb,Ae=ut===Nf?{side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:p,collisionBoundary:m,collisionPadding:w,sticky:g,hideWhenDetached:h,avoidCollisions:x}:{};return f.jsx(tb,{scope:n,content:S,viewport:b,onViewportChange:N,itemRefCallback:fe,selectedItem:R,onItemLeave:ze,itemTextRefCallback:ke,focusSelectedItem:re,selectedItemText:j,position:r,isPositioned:z,searchRef:B,children:f.jsx(km,{as:zn,allowPinchZoom:!0,children:f.jsx(_c,{asChild:!0,trapped:v.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:$(o,J=>{var ye;(ye=v.trigger)==null||ye.focus({preventScroll:!0}),J.preventDefault()}),children:f.jsx(Cc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:f.jsx(ut,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:J=>J.preventDefault(),...y,...Ae,onPlaced:()=>D(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:$(y.onKeyDown,J=>{const ye=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ye&&J.key.length===1&&te(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let we=I().filter(xe=>!xe.disabled).map(xe=>xe.ref.current);if(["ArrowUp","End"].includes(J.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const xe=J.target,Se=we.indexOf(xe);we=we.slice(Se+1)}setTimeout(()=>K(we)),J.preventDefault()}})})})})})})});nb.displayName=gI;var yI="SelectItemAlignedPosition",rb=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Mr(eo,n),i=jr(eo,n),[a,l]=u.useState(null),[c,d]=u.useState(null),p=le(t,C=>d(C)),m=Vc(n),w=u.useRef(!1),g=u.useRef(!0),{viewport:h,selectedItem:x,selectedItemText:y,focusSelectedItem:v}=i,S=u.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&h&&x&&y){const C=s.trigger.getBoundingClientRect(),R=c.getBoundingClientRect(),P=s.valueNode.getBoundingClientRect(),j=y.getBoundingClientRect();if(s.dir!=="rtl"){const xe=j.left-R.left,Se=P.left-xe,rt=C.left-Se,Tt=C.width+rt,mo=Math.max(Tt,R.width),ho=window.innerWidth-On,vo=Cf(Se,[On,ho-mo]);a.style.minWidth=Tt+"px",a.style.left=vo+"px"}else{const xe=R.right-j.right,Se=window.innerWidth-P.right-xe,rt=window.innerWidth-C.right-Se,Tt=C.width+rt,mo=Math.max(Tt,R.width),ho=window.innerWidth-On,vo=Cf(Se,[On,ho-mo]);a.style.minWidth=Tt+"px",a.style.right=vo+"px"}const Y=m(),I=window.innerHeight-On*2,z=h.scrollHeight,D=window.getComputedStyle(c),X=parseInt(D.borderTopWidth,10),K=parseInt(D.paddingTop,10),re=parseInt(D.borderBottomWidth,10),A=parseInt(D.paddingBottom,10),O=X+K+z+A+re,B=Math.min(x.offsetHeight*5,O),te=window.getComputedStyle(h),fe=parseInt(te.paddingTop,10),ze=parseInt(te.paddingBottom,10),ke=C.top+C.height/2-On,ut=I-ke,Ae=x.offsetHeight/2,J=x.offsetTop+Ae,ye=X+K+J,_e=O-ye;if(ye<=ke){const xe=x===Y[Y.length-1].ref.current;a.style.bottom="0px";const Se=c.clientHeight-h.offsetTop-h.offsetHeight,rt=Math.max(ut,Ae+(xe?ze:0)+Se+re),Tt=ye+rt;a.style.height=Tt+"px"}else{const xe=x===Y[0].ref.current;a.style.top="0px";const rt=Math.max(ke,X+h.offsetTop+(xe?fe:0)+Ae)+_e;a.style.height=rt+"px",h.scrollTop=ye-ke+h.offsetTop}a.style.margin=`${On}px 0`,a.style.minHeight=B+"px",a.style.maxHeight=I+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[m,s.trigger,s.valueNode,a,c,h,x,y,s.dir,r]);Re(()=>S(),[S]);const[E,b]=u.useState();Re(()=>{c&&b(window.getComputedStyle(c).zIndex)},[c]);const N=u.useCallback(C=>{C&&g.current===!0&&(S(),v==null||v(),g.current=!1)},[S,v]);return f.jsx(xI,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:w,onScrollButtonChange:N,children:f.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:f.jsx(ee.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});rb.displayName=yI;var wI="SelectPopperPosition",Nf=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=On,...s}=e,i=Uc(n);return f.jsx(i0,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.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)"}})});Nf.displayName=wI;var[xI,Tm]=xs(eo,{}),Rf="SelectViewport",ob=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=jr(Rf,n),i=Tm(Rf,n),a=le(t,s.onViewportChange),l=u.useRef(0);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),f.jsx($c.Slot,{scope:n,children:f.jsx(ee.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:$(o.onScroll,c=>{const d=c.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&p){const w=Math.abs(l.current-d.scrollTop);if(w>0){const g=window.innerHeight-On*2,h=parseFloat(p.style.minHeight),x=parseFloat(p.style.height),y=Math.max(h,x);if(y0?E:0,p.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});ob.displayName=Rf;var sb="SelectGroup",[SI,bI]=xs(sb),EI=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Nt();return f.jsx(SI,{scope:n,id:o,children:f.jsx(ee.div,{role:"group","aria-labelledby":o,...r,ref:t})})});EI.displayName=sb;var ib="SelectLabel",ab=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=bI(ib,n);return f.jsx(ee.div,{id:o.id,...r,ref:t})});ab.displayName=ib;var Fl="SelectItem",[CI,lb]=xs(Fl),cb=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=Mr(Fl,n),l=jr(Fl,n),c=a.value===r,[d,p]=u.useState(s??""),[m,w]=u.useState(!1),g=le(t,y=>{var v;return(v=l.itemRefCallback)==null?void 0:v.call(l,y,r,o)}),h=Nt(),x=()=>{o||(a.onValueChange(r),a.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 f.jsx(CI,{scope:n,value:r,disabled:o,textId:h,isSelected:c,onItemTextChange:u.useCallback(y=>{p(v=>v||((y==null?void 0:y.textContent)??"").trim())},[]),children:f.jsx($c.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:f.jsx(ee.div,{role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:g,onFocus:$(i.onFocus,()=>w(!0)),onBlur:$(i.onBlur,()=>w(!1)),onPointerUp:$(i.onPointerUp,x),onPointerMove:$(i.onPointerMove,y=>{var v;o?(v=l.onItemLeave)==null||v.call(l):y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:$(i.onPointerLeave,y=>{var v;y.currentTarget===document.activeElement&&((v=l.onItemLeave)==null||v.call(l))}),onKeyDown:$(i.onKeyDown,y=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&y.key===" "||(uI.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});cb.displayName=Fl;var Us="SelectItemText",ub=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=Mr(Us,n),a=jr(Us,n),l=lb(Us,n),c=mI(Us,n),[d,p]=u.useState(null),m=le(t,y=>p(y),l.onItemTextChange,y=>{var v;return(v=a.itemTextRefCallback)==null?void 0:v.call(a,y,l.value,l.disabled)}),w=d==null?void 0:d.textContent,g=u.useMemo(()=>f.jsx("option",{value:l.value,disabled:l.disabled,children:w},l.value),[l.disabled,l.value,w]),{onNativeOptionAdd:h,onNativeOptionRemove:x}=c;return Re(()=>(h(g),()=>x(g)),[h,x,g]),f.jsxs(f.Fragment,{children:[f.jsx(ee.span,{id:l.textId,...s,ref:m}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Gn.createPortal(s.children,i.valueNode):null]})});ub.displayName=Us;var db="SelectItemIndicator",fb=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return lb(db,n).isSelected?f.jsx(ee.span,{"aria-hidden":!0,...r,ref:t}):null});fb.displayName=db;var kf="SelectScrollUpButton",pb=u.forwardRef((e,t)=>{const n=jr(kf,e.__scopeSelect),r=Tm(kf,e.__scopeSelect),[o,s]=u.useState(!1),i=le(t,r.onScrollButtonChange);return Re(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;s(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?f.jsx(hb,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});pb.displayName=kf;var Tf="SelectScrollDownButton",mb=u.forwardRef((e,t)=>{const n=jr(Tf,e.__scopeSelect),r=Tm(Tf,e.__scopeSelect),[o,s]=u.useState(!1),i=le(t,r.onScrollButtonChange);return Re(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?f.jsx(hb,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});mb.displayName=Tf;var hb=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=jr("SelectScrollButton",n),i=u.useRef(null),a=Vc(n),l=u.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return u.useEffect(()=>()=>l(),[l]),Re(()=>{var d;const c=a().find(p=>p.ref.current===document.activeElement);(d=c==null?void 0:c.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),f.jsx(ee.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:$(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:$(o.onPointerMove,()=>{var c;(c=s.onItemLeave)==null||c.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:$(o.onPointerLeave,()=>{l()})})}),_I="SelectSeparator",vb=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return f.jsx(ee.div,{"aria-hidden":!0,...r,ref:t})});vb.displayName=_I;var Pf="SelectArrow",NI=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Uc(n),s=Mr(Pf,n),i=jr(Pf,n);return s.open&&i.position==="popper"?f.jsx(a0,{...o,...r,ref:t}):null});NI.displayName=Pf;function gb(e){return e===""||e===void 0}var yb=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=u.useRef(null),s=le(t,o),i=ex(n);return u.useEffect(()=>{const a=o.current,l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==n&&d){const p=new Event("change",{bubbles:!0});d.call(a,n),a.dispatchEvent(p)}},[i,n]),f.jsx(Hp,{asChild:!0,children:f.jsx("select",{...r,ref:s,defaultValue:n})})});yb.displayName="BubbleSelect";function wb(e){const t=he(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(i=>{const a=n.current+i;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function xb(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=RI(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function RI(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var kI=Z1,Sb=Y1,TI=q1,PI=Q1,AI=J1,bb=eb,OI=ob,Eb=ab,Cb=cb,MI=ub,jI=fb,_b=pb,Nb=mb,Rb=vb;const II=kI,DI=TI,kb=u.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(Sb,{ref:r,className:q("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,f.jsx(PI,{asChild:!0,children:f.jsx(Jp,{className:"h-4 w-4 opacity-50"})})]}));kb.displayName=Sb.displayName;const Tb=u.forwardRef(({className:e,...t},n)=>f.jsx(_b,{ref:n,className:q("flex cursor-default items-center justify-center py-1",e),...t,children:f.jsx(Gk,{className:"h-4 w-4"})}));Tb.displayName=_b.displayName;const Pb=u.forwardRef(({className:e,...t},n)=>f.jsx(Nb,{ref:n,className:q("flex cursor-default items-center justify-center py-1",e),...t,children:f.jsx(Jp,{className:"h-4 w-4"})}));Pb.displayName=Nb.displayName;const Ab=u.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>f.jsx(AI,{children:f.jsxs(bb,{ref:o,className:q("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground 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",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:[f.jsx(Tb,{}),f.jsx(OI,{className:q("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),f.jsx(Pb,{})]})}));Ab.displayName=bb.displayName;const LI=u.forwardRef(({className:e,...t},n)=>f.jsx(Eb,{ref:n,className:q("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));LI.displayName=Eb.displayName;const Ob=u.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(Cb,{ref:r,className:q("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-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(jI,{children:f.jsx(Qp,{className:"h-4 w-4"})})}),f.jsx(MI,{children:t})]}));Ob.displayName=Cb.displayName;const FI=u.forwardRef(({className:e,...t},n)=>f.jsx(Rb,{ref:n,className:q("-mx-1 my-1 h-px bg-muted",e),...t}));FI.displayName=Rb.displayName;var $I="Separator",rg="horizontal",VI=["horizontal","vertical"],Mb=u.forwardRef((e,t)=>{const{decorative:n,orientation:r=rg,...o}=e,s=UI(r)?r:rg,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return f.jsx(ee.div,{"data-orientation":s,...a,...o,ref:t})});Mb.displayName=$I;function UI(e){return VI.includes(e)}var jb=Mb;const Pm=u.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>f.jsx(jb,{ref:o,decorative:n,orientation:t,className:q("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Pm.displayName=jb.displayName;function Ib(e,t){return function(){return e.apply(t,arguments)}}const{toString:zI}=Object.prototype,{getPrototypeOf:Am}=Object,zc=(e=>t=>{const n=zI.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pn=e=>(e=e.toLowerCase(),t=>zc(t)===e),Bc=e=>t=>typeof t===e,{isArray:Ss}=Array,ki=Bc("undefined");function BI(e){return e!==null&&!ki(e)&&e.constructor!==null&&!ki(e.constructor)&&Dt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Db=pn("ArrayBuffer");function WI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Db(e.buffer),t}const HI=Bc("string"),Dt=Bc("function"),Lb=Bc("number"),Wc=e=>e!==null&&typeof e=="object",KI=e=>e===!0||e===!1,el=e=>{if(zc(e)!=="object")return!1;const t=Am(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ZI=pn("Date"),GI=pn("File"),YI=pn("Blob"),XI=pn("FileList"),qI=e=>Wc(e)&&Dt(e.pipe),QI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Dt(e.append)&&((t=zc(e))==="formdata"||t==="object"&&Dt(e.toString)&&e.toString()==="[object FormData]"))},JI=pn("URLSearchParams"),[eD,tD,nD,rD]=["ReadableStream","Request","Response","Headers"].map(pn),oD=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ss(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ur=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$b=e=>!ki(e)&&e!==Ur;function Af(){const{caseless:e}=$b(this)&&this||{},t={},n=(r,o)=>{const s=e&&Fb(t,o)||o;el(t[s])&&el(r)?t[s]=Af(t[s],r):el(r)?t[s]=Af({},r):Ss(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(sa(t,(o,s)=>{n&&Dt(o)?e[s]=Ib(o,n):e[s]=o},{allOwnKeys:r}),e),iD=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aD=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},lD=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Am(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cD=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},uD=e=>{if(!e)return null;if(Ss(e))return e;let t=e.length;if(!Lb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dD=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Am(Uint8Array)),fD=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},pD=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mD=pn("HTMLFormElement"),hD=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),og=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vD=pn("RegExp"),Vb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};sa(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},gD=e=>{Vb(e,(t,n)=>{if(Dt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Dt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},yD=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Ss(e)?r(e):r(String(e).split(t)),n},wD=()=>{},xD=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Hu="abcdefghijklmnopqrstuvwxyz",sg="0123456789",Ub={DIGIT:sg,ALPHA:Hu,ALPHA_DIGIT:Hu+Hu.toUpperCase()+sg},SD=(e=16,t=Ub.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function bD(e){return!!(e&&Dt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ED=e=>{const t=new Array(10),n=(r,o)=>{if(Wc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=Ss(r)?[]:{};return sa(r,(i,a)=>{const l=n(i,o+1);!ki(l)&&(s[a]=l)}),t[o]=void 0,s}}return r};return n(e,0)},CD=pn("AsyncFunction"),_D=e=>e&&(Wc(e)||Dt(e))&&Dt(e.then)&&Dt(e.catch),zb=((e,t)=>e?setImmediate:t?((n,r)=>(Ur.addEventListener("message",({source:o,data:s})=>{o===Ur&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ur.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Dt(Ur.postMessage)),ND=typeof queueMicrotask<"u"?queueMicrotask.bind(Ur):typeof process<"u"&&process.nextTick||zb,T={isArray:Ss,isArrayBuffer:Db,isBuffer:BI,isFormData:QI,isArrayBufferView:WI,isString:HI,isNumber:Lb,isBoolean:KI,isObject:Wc,isPlainObject:el,isReadableStream:eD,isRequest:tD,isResponse:nD,isHeaders:rD,isUndefined:ki,isDate:ZI,isFile:GI,isBlob:YI,isRegExp:vD,isFunction:Dt,isStream:qI,isURLSearchParams:JI,isTypedArray:dD,isFileList:XI,forEach:sa,merge:Af,extend:sD,trim:oD,stripBOM:iD,inherits:aD,toFlatObject:lD,kindOf:zc,kindOfTest:pn,endsWith:cD,toArray:uD,forEachEntry:fD,matchAll:pD,isHTMLForm:mD,hasOwnProperty:og,hasOwnProp:og,reduceDescriptors:Vb,freezeMethods:gD,toObjectSet:yD,toCamelCase:hD,noop:wD,toFiniteNumber:xD,findKey:Fb,global:Ur,isContextDefined:$b,ALPHABET:Ub,generateString:SD,isSpecCompliantForm:bD,toJSONObject:ED,isAsyncFn:CD,isThenable:_D,setImmediate:zb,asap:ND};function ce(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}T.inherits(ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:T.toJSONObject(this.config),code:this.code,status:this.status}}});const Bb=ce.prototype,Wb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Wb[e]={value:e}});Object.defineProperties(ce,Wb);Object.defineProperty(Bb,"isAxiosError",{value:!0});ce.from=(e,t,n,r,o,s)=>{const i=Object.create(Bb);return T.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),ce.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const RD=null;function Of(e){return T.isPlainObject(e)||T.isArray(e)}function Hb(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function ig(e,t,n){return e?e.concat(t).map(function(o,s){return o=Hb(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function kD(e){return T.isArray(e)&&!e.some(Of)}const TD=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function Hc(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,x){return!T.isUndefined(x[h])});const r=n.metaTokens,o=n.visitor||d,s=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&T.isSpecCompliantForm(t);if(!T.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(T.isDate(g))return g.toISOString();if(!l&&T.isBlob(g))throw new ce("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(g)||T.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,h,x){let y=g;if(g&&!x&&typeof g=="object"){if(T.endsWith(h,"{}"))h=r?h:h.slice(0,-2),g=JSON.stringify(g);else if(T.isArray(g)&&kD(g)||(T.isFileList(g)||T.endsWith(h,"[]"))&&(y=T.toArray(g)))return h=Hb(h),y.forEach(function(S,E){!(T.isUndefined(S)||S===null)&&t.append(i===!0?ig([h],E,s):i===null?h:h+"[]",c(S))}),!1}return Of(g)?!0:(t.append(ig(x,h,s),c(g)),!1)}const p=[],m=Object.assign(TD,{defaultVisitor:d,convertValue:c,isVisitable:Of});function w(g,h){if(!T.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(g),T.forEach(g,function(y,v){(!(T.isUndefined(y)||y===null)&&o.call(t,y,T.isString(v)?v.trim():v,h,m))===!0&&w(y,h?h.concat(v):[v])}),p.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return w(e),t}function ag(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Om(e,t){this._pairs=[],e&&Hc(e,this,t)}const Kb=Om.prototype;Kb.append=function(t,n){this._pairs.push([t,n])};Kb.toString=function(t){const n=t?function(r){return t.call(this,r,ag)}:ag;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function PD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zb(e,t,n){if(!t)return e;const r=n&&n.encode||PD,o=n&&n.serialize;let s;if(o?s=o(t,n):s=T.isURLSearchParams(t)?t.toString():new Om(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class lg{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){T.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Gb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},AD=typeof URLSearchParams<"u"?URLSearchParams:Om,OD=typeof FormData<"u"?FormData:null,MD=typeof Blob<"u"?Blob:null,jD={isBrowser:!0,classes:{URLSearchParams:AD,FormData:OD,Blob:MD},protocols:["http","https","file","blob","url","data"]},Mm=typeof window<"u"&&typeof document<"u",Mf=typeof navigator=="object"&&navigator||void 0,ID=Mm&&(!Mf||["ReactNative","NativeScript","NS"].indexOf(Mf.product)<0),DD=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",LD=Mm&&window.location.href||"http://localhost",FD=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mm,hasStandardBrowserEnv:ID,hasStandardBrowserWebWorkerEnv:DD,navigator:Mf,origin:LD},Symbol.toStringTag,{value:"Module"})),Rt={...FD,...jD};function $D(e,t){return Hc(e,new Rt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Rt.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function VD(e){return T.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function UD(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&T.isArray(o)?o.length:i,l?(T.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!T.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&T.isArray(o[i])&&(o[i]=UD(o[i])),!a)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,o)=>{t(VD(r),o,n,0)}),n}return null}function zD(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const ia={transitional:Gb,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=T.isObject(t);if(s&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return o?JSON.stringify(Yb(t)):t;if(T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t)||T.isReadableStream(t))return t;if(T.isArrayBufferView(t))return t.buffer;if(T.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $D(t,this.formSerializer).toString();if((a=T.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Hc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),zD(t)):t}],transformResponse:[function(t){const n=this.transitional||ia.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(T.isResponse(t)||T.isReadableStream(t))return t;if(t&&T.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?ce.from(a,ce.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch"],e=>{ia.headers[e]={}});const BD=T.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),WD=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&BD[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},cg=Symbol("internals");function Ms(e){return e&&String(e).trim().toLowerCase()}function tl(e){return e===!1||e==null?e:T.isArray(e)?e.map(tl):String(e)}function HD(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const KD=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ku(e,t,n,r,o){if(T.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function ZD(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function GD(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class kt{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,c){const d=Ms(l);if(!d)throw new Error("header name must be a non-empty string");const p=T.findKey(o,d);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||l]=tl(a))}const i=(a,l)=>T.forEach(a,(c,d)=>s(c,d,l));if(T.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(T.isString(t)&&(t=t.trim())&&!KD(t))i(WD(t),n);else if(T.isHeaders(t))for(const[a,l]of t.entries())s(l,a,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=Ms(t),t){const r=T.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return HD(o);if(T.isFunction(n))return n.call(this,o,r);if(T.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ms(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ku(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Ms(i),i){const a=T.findKey(r,i);a&&(!n||Ku(r,r[a],a,n))&&(delete r[a],o=!0)}}return T.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Ku(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return T.forEach(this,(o,s)=>{const i=T.findKey(r,s);if(i){n[i]=tl(o),delete n[s];return}const a=t?ZD(s):String(s).trim();a!==s&&delete n[s],n[a]=tl(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&T.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[cg]=this[cg]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Ms(i);r[a]||(GD(o,i),r[a]=!0)}return T.isArray(t)?t.forEach(s):s(t),this}}kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(kt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});T.freezeMethods(kt);function Zu(e,t){const n=this||ia,r=t||n,o=kt.from(r.headers);let s=r.data;return T.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Xb(e){return!!(e&&e.__CANCEL__)}function bs(e,t,n){ce.call(this,e??"canceled",ce.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(bs,ce,{__CANCEL__:!0});function qb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ce("Request failed with status code "+n.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function YD(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function XD(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[s];i||(i=c),n[o]=l,r[o]=c;let p=s,m=0;for(;p!==o;)m+=n[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i{n=d,o=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),p=d-n;p>=r?i(c,d):(o=c,s||(s=setTimeout(()=>{s=null,i(o)},r-p)))},()=>o&&i(o)]}const $l=(e,t,n=3)=>{let r=0;const o=XD(50,250);return qD(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=i-r,c=o(l),d=i<=a;r=i;const p={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&d?(a-i)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},ug=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},dg=e=>(...t)=>T.asap(()=>e(...t)),QD=Rt.hasStandardBrowserEnv?function(){const t=Rt.navigator&&/(msie|trident)/i.test(Rt.navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=T.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),JD=Rt.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];T.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),T.isString(r)&&i.push("path="+r),T.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function e2(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function t2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Qb(e,t){return e&&!e2(t)?t2(e,t):t}const fg=e=>e instanceof kt?{...e}:e;function to(e,t){t=t||{};const n={};function r(c,d,p){return T.isPlainObject(c)&&T.isPlainObject(d)?T.merge.call({caseless:p},c,d):T.isPlainObject(d)?T.merge({},d):T.isArray(d)?d.slice():d}function o(c,d,p){if(T.isUndefined(d)){if(!T.isUndefined(c))return r(void 0,c,p)}else return r(c,d,p)}function s(c,d){if(!T.isUndefined(d))return r(void 0,d)}function i(c,d){if(T.isUndefined(d)){if(!T.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,p){if(p in t)return r(c,d);if(p in e)return r(void 0,c)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,d)=>o(fg(c),fg(d),!0)};return T.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=l[d]||o,m=p(e[d],t[d],d);T.isUndefined(m)&&p!==a||(n[d]=m)}),n}const Jb=e=>{const t=to({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;t.headers=i=kt.from(i),t.url=Zb(Qb(t.baseURL,t.url),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(T.isFormData(n)){if(Rt.hasStandardBrowserEnv||Rt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[c,...d]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Rt.hasStandardBrowserEnv&&(r&&T.isFunction(r)&&(r=r(t)),r||r!==!1&&QD(t.url))){const c=o&&s&&JD.read(s);c&&i.set(o,c)}return t},n2=typeof XMLHttpRequest<"u",r2=n2&&function(e){return new Promise(function(n,r){const o=Jb(e);let s=o.data;const i=kt.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,d,p,m,w,g;function h(){w&&w(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function y(){if(!x)return;const S=kt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:S,config:e,request:x};qb(function(C){n(C),h()},function(C){r(C),h()},b),x=null}"onloadend"in x?x.onloadend=y:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(y)},x.onabort=function(){x&&(r(new ce("Request aborted",ce.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(new ce("Network Error",ce.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||Gb;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),r(new ce(E,b.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,e,x)),x=null},s===void 0&&i.setContentType(null),"setRequestHeader"in x&&T.forEach(i.toJSON(),function(E,b){x.setRequestHeader(b,E)}),T.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),a&&a!=="json"&&(x.responseType=o.responseType),c&&([m,g]=$l(c,!0),x.addEventListener("progress",m)),l&&x.upload&&([p,w]=$l(l),x.upload.addEventListener("progress",p),x.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(d=S=>{x&&(r(!S||S.type?new bs(null,e,x):S),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const v=YD(o.url);if(v&&Rt.protocols.indexOf(v)===-1){r(new ce("Unsupported protocol "+v+":",ce.ERR_BAD_REQUEST,e));return}x.send(s||null)})},o2=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(c){if(!o){o=!0,a();const d=c instanceof Error?c:this.reason;r.abort(d instanceof ce?d:new bs(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,s(new ce(`timeout ${t} of ms exceeded`,ce.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>T.asap(a),l}},s2=function*(e,t){let n=e.byteLength;if(n{const o=i2(e,t);let s=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await o.next();if(c){a(),l.close();return}let p=d.byteLength;if(n){let m=s+=p;n(m)}l.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Kc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",eE=Kc&&typeof ReadableStream=="function",l2=Kc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),tE=(e,...t)=>{try{return!!e(...t)}catch{return!1}},c2=eE&&tE(()=>{let e=!1;const t=new Request(Rt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),mg=64*1024,jf=eE&&tE(()=>T.isReadableStream(new Response("").body)),Vl={stream:jf&&(e=>e.body)};Kc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vl[t]&&(Vl[t]=T.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ce(`Response type '${t}' is not supported`,ce.ERR_NOT_SUPPORT,r)})})})(new Response);const u2=async e=>{if(e==null)return 0;if(T.isBlob(e))return e.size;if(T.isSpecCompliantForm(e))return(await new Request(Rt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(T.isArrayBufferView(e)||T.isArrayBuffer(e))return e.byteLength;if(T.isURLSearchParams(e)&&(e=e+""),T.isString(e))return(await l2(e)).byteLength},d2=async(e,t)=>{const n=T.toFiniteNumber(e.getContentLength());return n??u2(t)},f2=Kc&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:d,withCredentials:p="same-origin",fetchOptions:m}=Jb(e);c=c?(c+"").toLowerCase():"text";let w=o2([o,s&&s.toAbortSignal()],i),g;const h=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let x;try{if(l&&c2&&n!=="get"&&n!=="head"&&(x=await d2(d,r))!==0){let b=new Request(t,{method:"POST",body:r,duplex:"half"}),N;if(T.isFormData(r)&&(N=b.headers.get("content-type"))&&d.setContentType(N),b.body){const[C,R]=ug(x,$l(dg(l)));r=pg(b.body,mg,C,R)}}T.isString(p)||(p=p?"include":"omit");const y="credentials"in Request.prototype;g=new Request(t,{...m,signal:w,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:y?p:void 0});let v=await fetch(g);const S=jf&&(c==="stream"||c==="response");if(jf&&(a||S&&h)){const b={};["status","statusText","headers"].forEach(P=>{b[P]=v[P]});const N=T.toFiniteNumber(v.headers.get("content-length")),[C,R]=a&&ug(N,$l(dg(a),!0))||[];v=new Response(pg(v.body,mg,C,()=>{R&&R(),h&&h()}),b)}c=c||"text";let E=await Vl[T.findKey(Vl,c)||"text"](v,e);return!S&&h&&h(),await new Promise((b,N)=>{qb(b,N,{data:E,headers:kt.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:g})})}catch(y){throw h&&h(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new ce("Network Error",ce.ERR_NETWORK,e,g),{cause:y.cause||y}):ce.from(y,y&&y.code,e,g)}}),If={http:RD,xhr:r2,fetch:f2};T.forEach(If,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hg=e=>`- ${e}`,p2=e=>T.isFunction(e)||e===null||e===!1,nE={getAdapter:e=>{e=T.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since : +`+s.map(hg).join(` +`):" "+hg(s[0]):"as no adapter specified";throw new ce("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:If};function Gu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bs(null,e)}function vg(e){return Gu(e),e.headers=kt.from(e.headers),e.data=Zu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nE.getAdapter(e.adapter||ia.adapter)(e).then(function(r){return Gu(e),r.data=Zu.call(e,e.transformResponse,r),r.headers=kt.from(r.headers),r},function(r){return Xb(r)||(Gu(e),r&&r.response&&(r.response.data=Zu.call(e,e.transformResponse,r.response),r.response.headers=kt.from(r.response.headers))),Promise.reject(r)})}const rE="1.7.7",jm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{jm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const gg={};jm.transitional=function(t,n,r){function o(s,i){return"[Axios v"+rE+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new ce(o(i," has been removed"+(n?" in "+n:"")),ce.ERR_DEPRECATED);return n&&!gg[i]&&(gg[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}};function m2(e,t,n){if(typeof e!="object")throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new ce("option "+s+" must be "+l,ce.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ce("Unknown option "+s,ce.ERR_BAD_OPTION)}}const Df={assertOptions:m2,validators:jm},er=Df.validators;class Wr{constructor(t){this.defaults=t,this.interceptors={request:new lg,response:new lg}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=to(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Df.assertOptions(r,{silentJSONParsing:er.transitional(er.boolean),forcedJSONParsing:er.transitional(er.boolean),clarifyTimeoutError:er.transitional(er.boolean)},!1),o!=null&&(T.isFunction(o)?n.paramsSerializer={serialize:o}:Df.assertOptions(o,{encode:er.function,serialize:er.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&T.merge(s.common,s[n.method]);s&&T.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=kt.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let d,p=0,m;if(!l){const g=[vg.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,c),m=g.length,d=Promise.resolve(n);p{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new bs(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Im(function(o){t=o}),cancel:t}}}function h2(e){return function(n){return e.apply(null,n)}}function v2(e){return T.isObject(e)&&e.isAxiosError===!0}const Lf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Lf).forEach(([e,t])=>{Lf[t]=e});function oE(e){const t=new Wr(e),n=Ib(Wr.prototype.request,t);return T.extend(n,Wr.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return oE(to(e,o))},n}const Pe=oE(ia);Pe.Axios=Wr;Pe.CanceledError=bs;Pe.CancelToken=Im;Pe.isCancel=Xb;Pe.VERSION=rE;Pe.toFormData=Hc;Pe.AxiosError=ce;Pe.Cancel=Pe.CanceledError;Pe.all=function(t){return Promise.all(t)};Pe.spread=h2;Pe.isAxiosError=v2;Pe.mergeConfig=to;Pe.AxiosHeaders=kt;Pe.formToJSON=e=>Yb(T.isHTMLForm(e)?new FormData(e):e);Pe.getAdapter=nE.getAdapter;Pe.HttpStatusCode=Lf;Pe.default=Pe;const sE=(e,t)=>{const[n,r]=u.useState(null),[o,s]=u.useState(!0),[i,a]=u.useState(null),[l,c]=u.useState(null);return u.useEffect(()=>{(async()=>{var p;try{const m=await Pe.get(e,{headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}});r(m.data)}catch(m){Pe.isAxiosError(m)?(a(m),c(((p=m.response)==null?void 0:p.status)||null)):a(null),a(m)}finally{s(!1)}})()},[e]),{data:n,loading:o,error:i,errorCode:l}};var aa=e=>e.type==="checkbox",Lo=e=>e instanceof Date,ft=e=>e==null;const iE=e=>typeof e=="object";var Ke=e=>!ft(e)&&!Array.isArray(e)&&iE(e)&&!Lo(e),aE=e=>Ke(e)&&e.target?aa(e.target)?e.target.checked:e.target.value:e,g2=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,lE=(e,t)=>e.has(g2(t)),y2=e=>{const t=e.constructor&&e.constructor.prototype;return Ke(t)&&t.hasOwnProperty("isPrototypeOf")},Dm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function wt(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Dm&&(e instanceof Blob||e instanceof FileList))&&(n||Ke(e)))if(t=n?[]:{},!n&&!y2(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=wt(e[r]));else return e;return t}var Zc=e=>Array.isArray(e)?e.filter(Boolean):[],Ue=e=>e===void 0,U=(e,t,n)=>{if(!t||!Ke(e))return n;const r=Zc(t.split(/[,[\].]+?/)).reduce((o,s)=>ft(o)?o:o[s],e);return Ue(r)||r===e?Ue(e[t])?n:e[t]:r},Ut=e=>typeof e=="boolean",Lm=e=>/^\w*$/.test(e),cE=e=>Zc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ce=(e,t,n)=>{let r=-1;const o=Lm(t)?[t]:cE(t),s=o.length,i=s-1;for(;++rae.useContext(uE),w2=e=>{const{children:t,...n}=e;return ae.createElement(uE.Provider,{value:n},t)};var dE=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const i=s;return t._proxyFormState[i]!==nn.all&&(t._proxyFormState[i]=!r||nn.all),n&&(n[i]=!0),e[i]}});return o},xt=e=>Ke(e)&&!Object.keys(e).length,fE=(e,t,n,r)=>{n(e);const{name:o,...s}=e;return xt(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(i=>t[i]===(!r||nn.all))},ti=e=>Array.isArray(e)?e:[e],pE=(e,t,n)=>!e||!t||e===t||ti(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Fm(e){const t=ae.useRef(e);t.current=e,ae.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function x2(e){const t=Gc(),{control:n=t.control,disabled:r,name:o,exact:s}=e||{},[i,a]=ae.useState(n._formState),l=ae.useRef(!0),c=ae.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=ae.useRef(o);return d.current=o,Fm({disabled:r,next:p=>l.current&&pE(d.current,p.name,s)&&fE(p,c.current,n._updateFormState)&&a({...n._formState,...p}),subject:n._subjects.state}),ae.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),dE(i,n,c.current,!1)}var yn=e=>typeof e=="string",mE=(e,t,n,r,o)=>yn(e)?(r&&t.watch.add(e),U(n,e,o)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),U(n,s))):(r&&(t.watchAll=!0),n);function S2(e){const t=Gc(),{control:n=t.control,name:r,defaultValue:o,disabled:s,exact:i}=e||{},a=ae.useRef(r);a.current=r,Fm({disabled:s,subject:n._subjects.values,next:d=>{pE(a.current,d.name,i)&&c(wt(mE(a.current,n._names,d.values||n._formValues,!1,o)))}});const[l,c]=ae.useState(n._getWatch(r,o));return ae.useEffect(()=>n._removeUnmounted()),l}function b2(e){const t=Gc(),{name:n,disabled:r,control:o=t.control,shouldUnregister:s}=e,i=lE(o._names.array,n),a=S2({control:o,name:n,defaultValue:U(o._formValues,n,U(o._defaultValues,n,e.defaultValue)),exact:!0}),l=x2({control:o,name:n,exact:!0}),c=ae.useRef(o.register(n,{...e.rules,value:a,...Ut(e.disabled)?{disabled:e.disabled}:{}}));return ae.useEffect(()=>{const d=o._options.shouldUnregister||s,p=(m,w)=>{const g=U(o._fields,m);g&&g._f&&(g._f.mount=w)};if(p(n,!0),d){const m=wt(U(o._options.defaultValues,n));Ce(o._defaultValues,n,m),Ue(U(o._formValues,n))&&Ce(o._formValues,n,m)}return()=>{(i?d&&!o._state.action:d)?o.unregister(n):p(n,!1)}},[n,o,i,s]),ae.useEffect(()=>{U(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:U(o._fields,n)._f.value})},[r,n,o]),{field:{name:n,value:a,...Ut(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:ae.useCallback(d=>c.current.onChange({target:{value:aE(d),name:n},type:Ul.CHANGE}),[n]),onBlur:ae.useCallback(()=>c.current.onBlur({target:{value:U(o._formValues,n),name:n},type:Ul.BLUR}),[n,o]),ref:ae.useCallback(d=>{const p=U(o._fields,n);p&&d&&(p._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:m=>d.setCustomValidity(m),reportValidity:()=>d.reportValidity()})},[o._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!U(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!U(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!U(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!U(l.validatingFields,n)},error:{enumerable:!0,get:()=>U(l.errors,n)}})}}const E2=e=>e.render(b2(e));var hE=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},yg=e=>({isOnSubmit:!e||e===nn.onSubmit,isOnBlur:e===nn.onBlur,isOnChange:e===nn.onChange,isOnAll:e===nn.all,isOnTouch:e===nn.onTouched}),wg=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ni=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const s=U(e,o);if(s){const{_f:i,...a}=s;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],o)&&!r)return!0;if(i.ref&&t(i.ref,i.name)&&!r)return!0;if(ni(a,t))break}else if(Ke(a)&&ni(a,t))break}}};var C2=(e,t,n)=>{const r=ti(U(e,n));return Ce(r,"root",t[n]),Ce(e,n,r),e},$m=e=>e.type==="file",Dn=e=>typeof e=="function",zl=e=>{if(!Dm)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},nl=e=>yn(e),Vm=e=>e.type==="radio",Bl=e=>e instanceof RegExp;const xg={value:!1,isValid:!1},Sg={value:!0,isValid:!0};var vE=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ue(e[0].attributes.value)?Ue(e[0].value)||e[0].value===""?Sg:{value:e[0].value,isValid:!0}:Sg:xg}return xg};const bg={isValid:!1,value:null};var gE=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,bg):bg;function Eg(e,t,n="validate"){if(nl(e)||Array.isArray(e)&&e.every(nl)||Ut(e)&&!e)return{type:n,message:nl(e)?e:"",ref:t}}var Eo=e=>Ke(e)&&!Bl(e)?e:{value:e,message:""},Cg=async(e,t,n,r,o)=>{const{ref:s,refs:i,required:a,maxLength:l,minLength:c,min:d,max:p,pattern:m,validate:w,name:g,valueAsNumber:h,mount:x,disabled:y}=e._f,v=U(t,g);if(!x||y)return{};const S=i?i[0]:s,E=I=>{r&&S.reportValidity&&(S.setCustomValidity(Ut(I)?"":I||""),S.reportValidity())},b={},N=Vm(s),C=aa(s),R=N||C,P=(h||$m(s))&&Ue(s.value)&&Ue(v)||zl(s)&&s.value===""||v===""||Array.isArray(v)&&!v.length,j=hE.bind(null,g,n,b),Y=(I,z,D,X=Tn.maxLength,K=Tn.minLength)=>{const re=I?z:D;b[g]={type:I?X:K,message:re,ref:s,...j(I?X:K,re)}};if(o?!Array.isArray(v)||!v.length:a&&(!R&&(P||ft(v))||Ut(v)&&!v||C&&!vE(i).isValid||N&&!gE(i).isValid)){const{value:I,message:z}=nl(a)?{value:!!a,message:a}:Eo(a);if(I&&(b[g]={type:Tn.required,message:z,ref:S,...j(Tn.required,z)},!n))return E(z),b}if(!P&&(!ft(d)||!ft(p))){let I,z;const D=Eo(p),X=Eo(d);if(!ft(v)&&!isNaN(v)){const K=s.valueAsNumber||v&&+v;ft(D.value)||(I=K>D.value),ft(X.value)||(z=Knew Date(new Date().toDateString()+" "+B),A=s.type=="time",O=s.type=="week";yn(D.value)&&v&&(I=A?re(v)>re(D.value):O?v>D.value:K>new Date(D.value)),yn(X.value)&&v&&(z=A?re(v)+I.value,X=!ft(z.value)&&v.length<+z.value;if((D||X)&&(Y(D,I.message,z.message),!n))return E(b[g].message),b}if(m&&!P&&yn(v)){const{value:I,message:z}=Eo(m);if(Bl(I)&&!v.match(I)&&(b[g]={type:Tn.pattern,message:z,ref:s,...j(Tn.pattern,z)},!n))return E(z),b}if(w){if(Dn(w)){const I=await w(v,t),z=Eg(I,S);if(z&&(b[g]={...z,...j(Tn.validate,z.message)},!n))return E(z.message),b}else if(Ke(w)){let I={};for(const z in w){if(!xt(I)&&!n)break;const D=Eg(await w[z](v,t),S,z);D&&(I={...D,...j(z,D.message)},E(D.message),n&&(b[g]=I))}if(!xt(I)&&(b[g]={ref:S,...I},!n))return b}}return E(!0),b};function _2(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:o=>{for(const s of e)s.next&&s.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(s=>s!==o)}}),unsubscribe:()=>{e=[]}}},Wl=e=>ft(e)||!iE(e);function ir(e,t){if(Wl(e)||Wl(t))return e===t;if(Lo(e)&&Lo(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const s=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const i=t[o];if(Lo(s)&&Lo(i)||Ke(s)&&Ke(i)||Array.isArray(s)&&Array.isArray(i)?!ir(s,i):s!==i)return!1}}return!0}var yE=e=>e.type==="select-multiple",R2=e=>Vm(e)||aa(e),Xu=e=>zl(e)&&e.isConnected,wE=e=>{for(const t in e)if(Dn(e[t]))return!0;return!1};function Hl(e,t={}){const n=Array.isArray(e);if(Ke(e)||n)for(const r in e)Array.isArray(e[r])||Ke(e[r])&&!wE(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Hl(e[r],t[r])):ft(e[r])||(t[r]=!0);return t}function xE(e,t,n){const r=Array.isArray(e);if(Ke(e)||r)for(const o in e)Array.isArray(e[o])||Ke(e[o])&&!wE(e[o])?Ue(t)||Wl(n[o])?n[o]=Array.isArray(e[o])?Hl(e[o],[]):{...Hl(e[o])}:xE(e[o],ft(t)?{}:t[o],n[o]):n[o]=!ir(e[o],t[o]);return n}var La=(e,t)=>xE(e,t,Hl(t)),SE=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ue(e)?e:t?e===""?NaN:e&&+e:n&&yn(e)?new Date(e):r?r(e):e;function qu(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return $m(t)?t.files:Vm(t)?gE(e.refs).value:yE(t)?[...t.selectedOptions].map(({value:n})=>n):aa(t)?vE(e.refs).value:SE(Ue(t.value)?e.ref.value:t.value,e)}var k2=(e,t,n,r)=>{const o={};for(const s of e){const i=U(t,s);i&&Ce(o,s,i._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},js=e=>Ue(e)?e:Bl(e)?e.source:Ke(e)?Bl(e.value)?e.value.source:e.value:e;const _g="AsyncFunction";var T2=e=>(!e||!e.validate)&&!!(Dn(e.validate)&&e.validate.constructor.name===_g||Ke(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===_g)),P2=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Ng(e,t,n){const r=U(e,n);if(r||Lm(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const s=o.join("."),i=U(t,s),a=U(e,s);if(i&&!Array.isArray(i)&&n!==s)return{name:n};if(a&&a.type)return{name:s,error:a};o.pop()}return{name:n}}var A2=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,O2=(e,t)=>!Zc(U(e,t)).length&&Ze(e,t);const M2={mode:nn.onSubmit,reValidateMode:nn.onChange,shouldFocusError:!0};function j2(e={}){let t={...M2,...e},n={submitCount:0,isDirty:!1,isLoading:Dn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=Ke(t.defaultValues)||Ke(t.values)?wt(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:wt(o),i={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Yu(),array:Yu(),state:Yu()},m=yg(t.mode),w=yg(t.reValidateMode),g=t.criteriaMode===nn.all,h=_=>k=>{clearTimeout(c),c=setTimeout(_,k)},x=async _=>{if(d.isValid||_){const k=t.resolver?xt((await R()).errors):await j(r,!0);k!==n.isValid&&p.state.next({isValid:k})}},y=(_,k)=>{(d.isValidating||d.validatingFields)&&((_||Array.from(a.mount)).forEach(M=>{M&&(k?Ce(n.validatingFields,M,k):Ze(n.validatingFields,M))}),p.state.next({validatingFields:n.validatingFields,isValidating:!xt(n.validatingFields)}))},v=(_,k=[],M,Z,W=!0,V=!0)=>{if(Z&&M){if(i.action=!0,V&&Array.isArray(U(r,_))){const oe=M(U(r,_),Z.argA,Z.argB);W&&Ce(r,_,oe)}if(V&&Array.isArray(U(n.errors,_))){const oe=M(U(n.errors,_),Z.argA,Z.argB);W&&Ce(n.errors,_,oe),O2(n.errors,_)}if(d.touchedFields&&V&&Array.isArray(U(n.touchedFields,_))){const oe=M(U(n.touchedFields,_),Z.argA,Z.argB);W&&Ce(n.touchedFields,_,oe)}d.dirtyFields&&(n.dirtyFields=La(o,s)),p.state.next({name:_,isDirty:I(_,k),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ce(s,_,k)},S=(_,k)=>{Ce(n.errors,_,k),p.state.next({errors:n.errors})},E=_=>{n.errors=_,p.state.next({errors:n.errors,isValid:!1})},b=(_,k,M,Z)=>{const W=U(r,_);if(W){const V=U(s,_,Ue(M)?U(o,_):M);Ue(V)||Z&&Z.defaultChecked||k?Ce(s,_,k?V:qu(W._f)):X(_,V),i.mount&&x()}},N=(_,k,M,Z,W)=>{let V=!1,oe=!1;const be={name:_},Xe=!!(U(r,_)&&U(r,_)._f&&U(r,_)._f.disabled);if(!M||Z){d.isDirty&&(oe=n.isDirty,n.isDirty=be.isDirty=I(),V=oe!==be.isDirty);const qe=Xe||ir(U(o,_),k);oe=!!(!Xe&&U(n.dirtyFields,_)),qe||Xe?Ze(n.dirtyFields,_):Ce(n.dirtyFields,_,!0),be.dirtyFields=n.dirtyFields,V=V||d.dirtyFields&&oe!==!qe}if(M){const qe=U(n.touchedFields,_);qe||(Ce(n.touchedFields,_,M),be.touchedFields=n.touchedFields,V=V||d.touchedFields&&qe!==M)}return V&&W&&p.state.next(be),V?be:{}},C=(_,k,M,Z)=>{const W=U(n.errors,_),V=d.isValid&&Ut(k)&&n.isValid!==k;if(e.delayError&&M?(l=h(()=>S(_,M)),l(e.delayError)):(clearTimeout(c),l=null,M?Ce(n.errors,_,M):Ze(n.errors,_)),(M?!ir(W,M):W)||!xt(Z)||V){const oe={...Z,...V&&Ut(k)?{isValid:k}:{},errors:n.errors,name:_};n={...n,...oe},p.state.next(oe)}},R=async _=>{y(_,!0);const k=await t.resolver(s,t.context,k2(_||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return y(_),k},P=async _=>{const{errors:k}=await R(_);if(_)for(const M of _){const Z=U(k,M);Z?Ce(n.errors,M,Z):Ze(n.errors,M)}else n.errors=k;return k},j=async(_,k,M={valid:!0})=>{for(const Z in _){const W=_[Z];if(W){const{_f:V,...oe}=W;if(V){const be=a.array.has(V.name),Xe=W._f&&T2(W._f);Xe&&d.validatingFields&&y([Z],!0);const qe=await Cg(W,s,g,t.shouldUseNativeValidation&&!k,be);if(Xe&&d.validatingFields&&y([Z]),qe[V.name]&&(M.valid=!1,k))break;!k&&(U(qe,V.name)?be?C2(n.errors,qe,V.name):Ce(n.errors,V.name,qe[V.name]):Ze(n.errors,V.name))}!xt(oe)&&await j(oe,k,M)}}return M.valid},Y=()=>{for(const _ of a.unMount){const k=U(r,_);k&&(k._f.refs?k._f.refs.every(M=>!Xu(M)):!Xu(k._f.ref))&&Ae(_)}a.unMount=new Set},I=(_,k)=>(_&&k&&Ce(s,_,k),!ir(te(),o)),z=(_,k,M)=>mE(_,a,{...i.mount?s:Ue(k)?o:yn(_)?{[_]:k}:k},M,k),D=_=>Zc(U(i.mount?s:o,_,e.shouldUnregister?U(o,_,[]):[])),X=(_,k,M={})=>{const Z=U(r,_);let W=k;if(Z){const V=Z._f;V&&(!V.disabled&&Ce(s,_,SE(k,V)),W=zl(V.ref)&&ft(k)?"":k,yE(V.ref)?[...V.ref.options].forEach(oe=>oe.selected=W.includes(oe.value)):V.refs?aa(V.ref)?V.refs.length>1?V.refs.forEach(oe=>(!oe.defaultChecked||!oe.disabled)&&(oe.checked=Array.isArray(W)?!!W.find(be=>be===oe.value):W===oe.value)):V.refs[0]&&(V.refs[0].checked=!!W):V.refs.forEach(oe=>oe.checked=oe.value===W):$m(V.ref)?V.ref.value="":(V.ref.value=W,V.ref.type||p.values.next({name:_,values:{...s}})))}(M.shouldDirty||M.shouldTouch)&&N(_,W,M.shouldTouch,M.shouldDirty,!0),M.shouldValidate&&B(_)},K=(_,k,M)=>{for(const Z in k){const W=k[Z],V=`${_}.${Z}`,oe=U(r,V);(a.array.has(_)||!Wl(W)||oe&&!oe._f)&&!Lo(W)?K(V,W,M):X(V,W,M)}},re=(_,k,M={})=>{const Z=U(r,_),W=a.array.has(_),V=wt(k);Ce(s,_,V),W?(p.array.next({name:_,values:{...s}}),(d.isDirty||d.dirtyFields)&&M.shouldDirty&&p.state.next({name:_,dirtyFields:La(o,s),isDirty:I(_,V)})):Z&&!Z._f&&!ft(V)?K(_,V,M):X(_,V,M),wg(_,a)&&p.state.next({...n}),p.values.next({name:i.mount?_:void 0,values:{...s}})},A=async _=>{i.mount=!0;const k=_.target;let M=k.name,Z=!0;const W=U(r,M),V=()=>k.type?qu(W._f):aE(_),oe=be=>{Z=Number.isNaN(be)||ir(be,U(s,M,be))};if(W){let be,Xe;const qe=V(),Ir=_.type===Ul.BLUR||_.type===Ul.FOCUS_OUT,k_=!P2(W._f)&&!t.resolver&&!U(n.errors,M)&&!W._f.deps||A2(Ir,U(n.touchedFields,M),n.isSubmitted,w,m),nu=wg(M,a,Ir);Ce(s,M,qe),Ir?(W._f.onBlur&&W._f.onBlur(_),l&&l(0)):W._f.onChange&&W._f.onChange(_);const ru=N(M,qe,Ir,!1),T_=!xt(ru)||nu;if(!Ir&&p.values.next({name:M,type:_.type,values:{...s}}),k_)return d.isValid&&(e.mode==="onBlur"?Ir&&x():x()),T_&&p.state.next({name:M,...nu?{}:ru});if(!Ir&&nu&&p.state.next({...n}),t.resolver){const{errors:nh}=await R([M]);if(oe(qe),Z){const P_=Ng(n.errors,r,M),rh=Ng(nh,r,P_.name||M);be=rh.error,M=rh.name,Xe=xt(nh)}}else y([M],!0),be=(await Cg(W,s,g,t.shouldUseNativeValidation))[M],y([M]),oe(qe),Z&&(be?Xe=!1:d.isValid&&(Xe=await j(r,!0)));Z&&(W._f.deps&&B(W._f.deps),C(M,Xe,be,ru))}},O=(_,k)=>{if(U(n.errors,k)&&_.focus)return _.focus(),1},B=async(_,k={})=>{let M,Z;const W=ti(_);if(t.resolver){const V=await P(Ue(_)?_:W);M=xt(V),Z=_?!W.some(oe=>U(V,oe)):M}else _?(Z=(await Promise.all(W.map(async V=>{const oe=U(r,V);return await j(oe&&oe._f?{[V]:oe}:oe)}))).every(Boolean),!(!Z&&!n.isValid)&&x()):Z=M=await j(r);return p.state.next({...!yn(_)||d.isValid&&M!==n.isValid?{}:{name:_},...t.resolver||!_?{isValid:M}:{},errors:n.errors}),k.shouldFocus&&!Z&&ni(r,O,_?W:a.mount),Z},te=_=>{const k={...i.mount?s:o};return Ue(_)?k:yn(_)?U(k,_):_.map(M=>U(k,M))},fe=(_,k)=>({invalid:!!U((k||n).errors,_),isDirty:!!U((k||n).dirtyFields,_),error:U((k||n).errors,_),isValidating:!!U(n.validatingFields,_),isTouched:!!U((k||n).touchedFields,_)}),ze=_=>{_&&ti(_).forEach(k=>Ze(n.errors,k)),p.state.next({errors:_?n.errors:{}})},ke=(_,k,M)=>{const Z=(U(r,_,{_f:{}})._f||{}).ref,W=U(n.errors,_)||{},{ref:V,message:oe,type:be,...Xe}=W;Ce(n.errors,_,{...Xe,...k,ref:Z}),p.state.next({name:_,errors:n.errors,isValid:!1}),M&&M.shouldFocus&&Z&&Z.focus&&Z.focus()},ut=(_,k)=>Dn(_)?p.values.subscribe({next:M=>_(z(void 0,k),M)}):z(_,k,!0),Ae=(_,k={})=>{for(const M of _?ti(_):a.mount)a.mount.delete(M),a.array.delete(M),k.keepValue||(Ze(r,M),Ze(s,M)),!k.keepError&&Ze(n.errors,M),!k.keepDirty&&Ze(n.dirtyFields,M),!k.keepTouched&&Ze(n.touchedFields,M),!k.keepIsValidating&&Ze(n.validatingFields,M),!t.shouldUnregister&&!k.keepDefaultValue&&Ze(o,M);p.values.next({values:{...s}}),p.state.next({...n,...k.keepDirty?{isDirty:I()}:{}}),!k.keepIsValid&&x()},J=({disabled:_,name:k,field:M,fields:Z,value:W})=>{if(Ut(_)&&i.mount||_){const V=_?void 0:Ue(W)?qu(M?M._f:U(Z,k)._f):W;Ce(s,k,V),N(k,V,!1,!1,!0)}},ye=(_,k={})=>{let M=U(r,_);const Z=Ut(k.disabled)||Ut(e.disabled);return Ce(r,_,{...M||{},_f:{...M&&M._f?M._f:{ref:{name:_}},name:_,mount:!0,...k}}),a.mount.add(_),M?J({field:M,disabled:Ut(k.disabled)?k.disabled:e.disabled,name:_,value:k.value}):b(_,!0,k.value),{...Z?{disabled:k.disabled||e.disabled}:{},...t.progressive?{required:!!k.required,min:js(k.min),max:js(k.max),minLength:js(k.minLength),maxLength:js(k.maxLength),pattern:js(k.pattern)}:{},name:_,onChange:A,onBlur:A,ref:W=>{if(W){ye(_,k),M=U(r,_);const V=Ue(W.value)&&W.querySelectorAll&&W.querySelectorAll("input,select,textarea")[0]||W,oe=R2(V),be=M._f.refs||[];if(oe?be.find(Xe=>Xe===V):V===M._f.ref)return;Ce(r,_,{_f:{...M._f,...oe?{refs:[...be.filter(Xu),V,...Array.isArray(U(o,_))?[{}]:[]],ref:{type:V.type,name:_}}:{ref:V}}}),b(_,!1,void 0,V)}else M=U(r,_,{}),M._f&&(M._f.mount=!1),(t.shouldUnregister||k.shouldUnregister)&&!(lE(a.array,_)&&i.action)&&a.unMount.add(_)}}},_e=()=>t.shouldFocusError&&ni(r,O,a.mount),we=_=>{Ut(_)&&(p.state.next({disabled:_}),ni(r,(k,M)=>{const Z=U(r,M);Z&&(k.disabled=Z._f.disabled||_,Array.isArray(Z._f.refs)&&Z._f.refs.forEach(W=>{W.disabled=Z._f.disabled||_}))},0,!1))},xe=(_,k)=>async M=>{let Z;M&&(M.preventDefault&&M.preventDefault(),M.persist&&M.persist());let W=wt(s);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:V,values:oe}=await R();n.errors=V,W=oe}else await j(r);if(Ze(n.errors,"root"),xt(n.errors)){p.state.next({errors:{}});try{await _(W,M)}catch(V){Z=V}}else k&&await k({...n.errors},M),_e(),setTimeout(_e);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:xt(n.errors)&&!Z,submitCount:n.submitCount+1,errors:n.errors}),Z)throw Z},Se=(_,k={})=>{U(r,_)&&(Ue(k.defaultValue)?re(_,wt(U(o,_))):(re(_,k.defaultValue),Ce(o,_,wt(k.defaultValue))),k.keepTouched||Ze(n.touchedFields,_),k.keepDirty||(Ze(n.dirtyFields,_),n.isDirty=k.defaultValue?I(_,wt(U(o,_))):I()),k.keepError||(Ze(n.errors,_),d.isValid&&x()),p.state.next({...n}))},rt=(_,k={})=>{const M=_?wt(_):o,Z=wt(M),W=xt(_),V=W?o:Z;if(k.keepDefaultValues||(o=M),!k.keepValues){if(k.keepDirtyValues)for(const oe of a.mount)U(n.dirtyFields,oe)?Ce(V,oe,U(s,oe)):re(oe,U(V,oe));else{if(Dm&&Ue(_))for(const oe of a.mount){const be=U(r,oe);if(be&&be._f){const Xe=Array.isArray(be._f.refs)?be._f.refs[0]:be._f.ref;if(zl(Xe)){const qe=Xe.closest("form");if(qe){qe.reset();break}}}}r={}}s=e.shouldUnregister?k.keepDefaultValues?wt(o):{}:wt(V),p.array.next({values:{...V}}),p.values.next({values:{...V}})}a={mount:k.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!d.isValid||!!k.keepIsValid||!!k.keepDirtyValues,i.watch=!!e.shouldUnregister,p.state.next({submitCount:k.keepSubmitCount?n.submitCount:0,isDirty:W?!1:k.keepDirty?n.isDirty:!!(k.keepDefaultValues&&!ir(_,o)),isSubmitted:k.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:W?{}:k.keepDirtyValues?k.keepDefaultValues&&s?La(o,s):n.dirtyFields:k.keepDefaultValues&&_?La(o,_):k.keepDirty?n.dirtyFields:{},touchedFields:k.keepTouched?n.touchedFields:{},errors:k.keepErrors?n.errors:{},isSubmitSuccessful:k.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Tt=(_,k)=>rt(Dn(_)?_(s):_,k);return{control:{register:ye,unregister:Ae,getFieldState:fe,handleSubmit:xe,setError:ke,_executeSchema:R,_getWatch:z,_getDirty:I,_updateValid:x,_removeUnmounted:Y,_updateFieldArray:v,_updateDisabledField:J,_getFieldArray:D,_reset:rt,_resetDefaultValues:()=>Dn(t.defaultValues)&&t.defaultValues().then(_=>{Tt(_,t.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:_=>{n={...n,..._}},_disableForm:we,_subjects:p,_proxyFormState:d,_setErrors:E,get _fields(){return r},get _formValues(){return s},get _state(){return i},set _state(_){i=_},get _defaultValues(){return o},get _names(){return a},set _names(_){a=_},get _formState(){return n},set _formState(_){n=_},get _options(){return t},set _options(_){t={...t,..._}}},trigger:B,register:ye,handleSubmit:xe,watch:ut,setValue:re,getValues:te,reset:Tt,resetField:Se,clearErrors:ze,unregister:Ae,setError:ke,setFocus:(_,k={})=>{const M=U(r,_),Z=M&&M._f;if(Z){const W=Z.refs?Z.refs[0]:Z.ref;W.focus&&(W.focus(),k.shouldSelect&&W.select())}},getFieldState:fe}}function bE(e={}){const t=ae.useRef(),n=ae.useRef(),[r,o]=ae.useState({isDirty:!1,isValidating:!1,isLoading:Dn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Dn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...j2(e),formState:r});const s=t.current.control;return s._options=e,Fm({subject:s._subjects.state,next:i=>{fE(i,s._proxyFormState,s._updateFormState,!0)&&o({...s._formState})}}),ae.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),ae.useEffect(()=>{if(s._proxyFormState.isDirty){const i=s._getDirty();i!==r.isDirty&&s._subjects.state.next({isDirty:i})}},[s,r.isDirty]),ae.useEffect(()=>{e.values&&!ir(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,o(i=>({...i}))):s._resetDefaultValues()},[e.values,s]),ae.useEffect(()=>{e.errors&&s._setErrors(e.errors)},[e.errors,s]),ae.useEffect(()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),ae.useEffect(()=>{e.shouldUnregister&&s._subjects.values.next({values:s._getWatch()})},[e.shouldUnregister,s]),t.current.formState=dE(r,s),t.current}const Rg=(e,t,n)=>{if(e&&"reportValidity"in e){const r=U(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},EE=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Rg(r.ref,n,e):r.refs&&r.refs.forEach(o=>Rg(o,n,e))}},I2=(e,t)=>{t.shouldUseNativeValidation&&EE(e,t);const n={};for(const r in e){const o=U(t.fields,r),s=Object.assign(e[r]||{},{ref:o&&o.ref});if(D2(t.names||Object.keys(e),r)){const i=Object.assign({},U(n,r));Ce(i,"root",s),Ce(n,r,i)}else Ce(n,r,s)}return n},D2=(e,t)=>e.some(n=>n.startsWith(t+"."));var L2=function(e,t){for(var n={};e.length;){var r=e[0],o=r.code,s=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[i]={message:a.message,type:a.code}}else n[i]={message:s,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(d){return d.errors.forEach(function(p){return e.push(p)})}),t){var l=n[i].types,c=l&&l[r.code];n[i]=hE(i,t,n,o,c?[].concat(c,r.message):r.message)}e.shift()}return n},CE=function(e,t,n){return n===void 0&&(n={}),function(r,o,s){try{return Promise.resolve(function(i,a){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return s.shouldUseNativeValidation&&EE({},s),{errors:{},values:n.raw?r:c}})}catch(c){return a(c)}return l&&l.then?l.then(void 0,a):l}(0,function(i){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(i))return{values:{},errors:I2(L2(i.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw i}))}catch(i){return Promise.reject(i)}}},ve;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(ve||(ve={}));var Ff;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Ff||(Ff={}));const G=ve.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ar=e=>{switch(typeof e){case"undefined":return G.undefined;case"string":return G.string;case"number":return isNaN(e)?G.nan:G.number;case"boolean":return G.boolean;case"function":return G.function;case"bigint":return G.bigint;case"symbol":return G.symbol;case"object":return Array.isArray(e)?G.array:e===null?G.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?G.promise:typeof Map<"u"&&e instanceof Map?G.map:typeof Set<"u"&&e instanceof Set?G.set:typeof Date<"u"&&e instanceof Date?G.date:G.object;default:return G.unknown}},F=ve.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),F2=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Lt extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;ln.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Lt.create=e=>new Lt(e);const is=(e,t)=>{let n;switch(e.code){case F.invalid_type:e.received===G.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case F.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ve.jsonStringifyReplacer)}`;break;case F.unrecognized_keys:n=`Unrecognized key(s) in object: ${ve.joinValues(e.keys,", ")}`;break;case F.invalid_union:n="Invalid input";break;case F.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ve.joinValues(e.options)}`;break;case F.invalid_enum_value:n=`Invalid enum value. Expected ${ve.joinValues(e.options)}, received '${e.received}'`;break;case F.invalid_arguments:n="Invalid function arguments";break;case F.invalid_return_type:n="Invalid function return type";break;case F.invalid_date:n="Invalid date";break;case F.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ve.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case F.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case F.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case F.custom:n="Invalid input";break;case F.invalid_intersection_types:n="Intersection results could not be merged";break;case F.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case F.not_finite:n="Number must be finite";break;default:n=t.defaultError,ve.assertNever(e)}return{message:n}};let _E=is;function $2(e){_E=e}function Kl(){return _E}const Zl=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,s=[...n,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},V2=[];function H(e,t){const n=Kl(),r=Zl({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===is?void 0:is].filter(o=>!!o)});e.common.issues.push(r)}class ct{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return ie;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const s=await o.key,i=await o.value;r.push({key:s,value:i})}return ct.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return ie;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const ie=Object.freeze({status:"aborted"}),Fo=e=>({status:"dirty",value:e}),mt=e=>({status:"valid",value:e}),$f=e=>e.status==="aborted",Vf=e=>e.status==="dirty",Ti=e=>e.status==="valid",Pi=e=>typeof Promise<"u"&&e instanceof Promise;function Gl(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function NE(e,t,n,r,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ne;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ne||(ne={}));var zs,Bs;class En{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const kg=(e,t)=>{if(Ti(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Lt(e.common.issues);return this._error=n,this._error}}};function ue(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>{var l,c;const{message:d}=e;return i.code==="invalid_enum_value"?{message:d??a.defaultError}:typeof a.data>"u"?{message:(l=d??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=d??n)!==null&&c!==void 0?c:a.defaultError}},description:o}}class pe{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return ar(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ar(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ct,ctx:{common:t.parent.common,data:t.data,parsedType:ar(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Pi(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ar(t)},s=this._parseSync({data:t,path:o.path,parent:o});return kg(o,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ar(t)},o=this._parse({data:t,path:r.path,parent:r}),s=await(Pi(o)?o:Promise.resolve(o));return kg(r,s)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:F.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new fn({schema:this,typeName:se.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Sn.create(this,this._def)}nullable(){return Tr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ln.create(this,this._def)}promise(){return ls.create(this,this._def)}or(t){return ji.create([this,t],this._def)}and(t){return Ii.create(this,t,this._def)}transform(t){return new fn({...ue(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Vi({...ue(this._def),innerType:this,defaultValue:n,typeName:se.ZodDefault})}brand(){return new Um({typeName:se.ZodBranded,type:this,...ue(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ui({...ue(this._def),innerType:this,catchValue:n,typeName:se.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return la.create(this,t)}readonly(){return zi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const U2=/^c[^\s-]{8,}$/i,z2=/^[0-9a-z]+$/,B2=/^[0-9A-HJKMNP-TV-Z]{26}$/,W2=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,H2=/^[a-z0-9_-]{21}$/i,K2=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Z2=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,G2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Qu;const Y2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,X2=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,q2=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,RE="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Q2=new RegExp(`^${RE}$`);function kE(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function J2(e){return new RegExp(`^${kE(e)}$`)}function TE(e){let t=`${RE}T${kE(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function eL(e,t){return!!((t==="v4"||!t)&&Y2.test(e)||(t==="v6"||!t)&&X2.test(e))}class rn extends pe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==G.string){const s=this._getOrReturnCtx(t);return H(s,{code:F.invalid_type,expected:G.string,received:s.parsedType}),ie}const r=new ct;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.lengths.value&&(o=this._getOrReturnCtx(t,o),H(o,{code:F.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.lengtht.test(o),{validation:n,code:F.invalid_string,...ne.errToObj(r)})}_addCheck(t){return new rn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ne.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ne.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ne.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ne.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ne.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ne.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ne.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ne.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ne.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ne.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ne.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ne.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ne.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ne.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ne.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ne.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ne.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ne.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ne.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ne.errToObj(n)})}nonempty(t){return this.min(1,ne.errToObj(t))}trim(){return new rn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new rn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new rn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new rn({checks:[],typeName:se.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ue(e)})};function tL(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class Nr extends pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==G.number){const s=this._getOrReturnCtx(t);return H(s,{code:F.invalid_type,expected:G.number,received:s.parsedType}),ie}let r;const o=new ct;for(const s of this._def.checks)s.kind==="int"?ve.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:F.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:F.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?tL(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),H(r,{code:F.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:F.not_finite,message:s.message}),o.dirty()):ve.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ne.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ne.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ne.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ne.toString(n))}setLimit(t,n,r,o){return new Nr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ne.toString(o)}]})}_addCheck(t){return new Nr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ne.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ne.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ne.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ne.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ne.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ne.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ne.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ne.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ne.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&ve.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Nr({checks:[],typeName:se.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ue(e)});class Rr extends pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==G.bigint){const s=this._getOrReturnCtx(t);return H(s,{code:F.invalid_type,expected:G.bigint,received:s.parsedType}),ie}let r;const o=new ct;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:F.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),H(r,{code:F.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):ve.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ne.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ne.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ne.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ne.toString(n))}setLimit(t,n,r,o){return new Rr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ne.toString(o)}]})}_addCheck(t){return new Rr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ne.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ne.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ne.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ne.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ne.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Rr({checks:[],typeName:se.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ue(e)})};class Ai extends pe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==G.boolean){const r=this._getOrReturnCtx(t);return H(r,{code:F.invalid_type,expected:G.boolean,received:r.parsedType}),ie}return mt(t.data)}}Ai.create=e=>new Ai({typeName:se.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ue(e)});class no extends pe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==G.date){const s=this._getOrReturnCtx(t);return H(s,{code:F.invalid_type,expected:G.date,received:s.parsedType}),ie}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return H(s,{code:F.invalid_date}),ie}const r=new ct;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()s.value&&(o=this._getOrReturnCtx(t,o),H(o,{code:F.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):ve.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new no({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ne.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ne.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew no({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:se.ZodDate,...ue(e)});class Yl extends pe{_parse(t){if(this._getType(t)!==G.symbol){const r=this._getOrReturnCtx(t);return H(r,{code:F.invalid_type,expected:G.symbol,received:r.parsedType}),ie}return mt(t.data)}}Yl.create=e=>new Yl({typeName:se.ZodSymbol,...ue(e)});class Oi extends pe{_parse(t){if(this._getType(t)!==G.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:F.invalid_type,expected:G.undefined,received:r.parsedType}),ie}return mt(t.data)}}Oi.create=e=>new Oi({typeName:se.ZodUndefined,...ue(e)});class Mi extends pe{_parse(t){if(this._getType(t)!==G.null){const r=this._getOrReturnCtx(t);return H(r,{code:F.invalid_type,expected:G.null,received:r.parsedType}),ie}return mt(t.data)}}Mi.create=e=>new Mi({typeName:se.ZodNull,...ue(e)});class as extends pe{constructor(){super(...arguments),this._any=!0}_parse(t){return mt(t.data)}}as.create=e=>new as({typeName:se.ZodAny,...ue(e)});class Hr extends pe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return mt(t.data)}}Hr.create=e=>new Hr({typeName:se.ZodUnknown,...ue(e)});class Kn extends pe{_parse(t){const n=this._getOrReturnCtx(t);return H(n,{code:F.invalid_type,expected:G.never,received:n.parsedType}),ie}}Kn.create=e=>new Kn({typeName:se.ZodNever,...ue(e)});class Xl extends pe{_parse(t){if(this._getType(t)!==G.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:F.invalid_type,expected:G.void,received:r.parsedType}),ie}return mt(t.data)}}Xl.create=e=>new Xl({typeName:se.ZodVoid,...ue(e)});class ln extends pe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==G.array)return H(n,{code:F.invalid_type,expected:G.array,received:n.parsedType}),ie;if(o.exactLength!==null){const i=n.data.length>o.exactLength.value,a=n.data.lengtho.maxLength.value&&(H(n,{code:F.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new En(n,i,n.path,a)))).then(i=>ct.mergeArray(r,i));const s=[...n.data].map((i,a)=>o.type._parseSync(new En(n,i,n.path,a)));return ct.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new ln({...this._def,minLength:{value:t,message:ne.toString(n)}})}max(t,n){return new ln({...this._def,maxLength:{value:t,message:ne.toString(n)}})}length(t,n){return new ln({...this._def,exactLength:{value:t,message:ne.toString(n)}})}nonempty(t){return this.min(1,t)}}ln.create=(e,t)=>new ln({type:e,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...ue(t)});function Co(e){if(e instanceof De){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Sn.create(Co(r))}return new De({...e._def,shape:()=>t})}else return e instanceof ln?new ln({...e._def,type:Co(e.element)}):e instanceof Sn?Sn.create(Co(e.unwrap())):e instanceof Tr?Tr.create(Co(e.unwrap())):e instanceof Cn?Cn.create(e.items.map(t=>Co(t))):e}class De extends pe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ve.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==G.object){const c=this._getOrReturnCtx(t);return H(c,{code:F.invalid_type,expected:G.object,received:c.parsedType}),ie}const{status:r,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Kn&&this._def.unknownKeys==="strip"))for(const c in o.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const d=s[c],p=o.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new En(o,p,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof Kn){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of a)l.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(c==="strict")a.length>0&&(H(o,{code:F.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of a){const p=o.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new En(o,p,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of l){const p=await d.key,m=await d.value;c.push({key:p,value:m,alwaysSet:d.alwaysSet})}return c}).then(c=>ct.mergeObjectSync(r,c)):ct.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ne.errToObj,new De({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=ne.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new De({...this._def,unknownKeys:"strip"})}passthrough(){return new De({...this._def,unknownKeys:"passthrough"})}extend(t){return new De({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new De({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:se.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new De({...this._def,catchall:t})}pick(t){const n={};return ve.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new De({...this._def,shape:()=>n})}omit(t){const n={};return ve.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new De({...this._def,shape:()=>n})}deepPartial(){return Co(this)}partial(t){const n={};return ve.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new De({...this._def,shape:()=>n})}required(t){const n={};return ve.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Sn;)s=s._def.innerType;n[r]=s}}),new De({...this._def,shape:()=>n})}keyof(){return PE(ve.objectKeys(this.shape))}}De.create=(e,t)=>new De({shape:()=>e,unknownKeys:"strip",catchall:Kn.create(),typeName:se.ZodObject,...ue(t)});De.strictCreate=(e,t)=>new De({shape:()=>e,unknownKeys:"strict",catchall:Kn.create(),typeName:se.ZodObject,...ue(t)});De.lazycreate=(e,t)=>new De({shape:e,unknownKeys:"strip",catchall:Kn.create(),typeName:se.ZodObject,...ue(t)});class ji extends pe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new Lt(a.ctx.common.issues));return H(n,{code:F.invalid_union,unionErrors:i}),ie}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!s&&(s={result:d,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new Lt(l));return H(n,{code:F.invalid_union,unionErrors:a}),ie}}get options(){return this._def.options}}ji.create=(e,t)=>new ji({options:e,typeName:se.ZodUnion,...ue(t)});const Pn=e=>e instanceof Li?Pn(e.schema):e instanceof fn?Pn(e.innerType()):e instanceof Fi?[e.value]:e instanceof kr?e.options:e instanceof $i?ve.objectValues(e.enum):e instanceof Vi?Pn(e._def.innerType):e instanceof Oi?[void 0]:e instanceof Mi?[null]:e instanceof Sn?[void 0,...Pn(e.unwrap())]:e instanceof Tr?[null,...Pn(e.unwrap())]:e instanceof Um||e instanceof zi?Pn(e.unwrap()):e instanceof Ui?Pn(e._def.innerType):[];class Yc extends pe{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==G.object)return H(n,{code:F.invalid_type,expected:G.object,received:n.parsedType}),ie;const r=this.discriminator,o=n.data[r],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(H(n,{code:F.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ie)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const s of n){const i=Pn(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new Yc({typeName:se.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...ue(r)})}}function Uf(e,t){const n=ar(e),r=ar(t);if(e===t)return{valid:!0,data:e};if(n===G.object&&r===G.object){const o=ve.objectKeys(t),s=ve.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const l=Uf(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===G.array&&r===G.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s{if($f(s)||$f(i))return ie;const a=Uf(s.value,i.value);return a.valid?((Vf(s)||Vf(i))&&n.dirty(),{status:n.value,value:a.data}):(H(r,{code:F.invalid_intersection_types}),ie)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ii.create=(e,t,n)=>new Ii({left:e,right:t,typeName:se.ZodIntersection,...ue(n)});class Cn extends pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==G.array)return H(r,{code:F.invalid_type,expected:G.array,received:r.parsedType}),ie;if(r.data.lengththis._def.items.length&&(H(r,{code:F.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new En(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>ct.mergeArray(n,i)):ct.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new Cn({...this._def,rest:t})}}Cn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Cn({items:e,typeName:se.ZodTuple,rest:null,...ue(t)})};class Di extends pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==G.object)return H(r,{code:F.invalid_type,expected:G.object,received:r.parsedType}),ie;const o=[],s=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:s._parse(new En(r,a,r.path,a)),value:i._parse(new En(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?ct.mergeObjectAsync(n,o):ct.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof pe?new Di({keyType:t,valueType:n,typeName:se.ZodRecord,...ue(r)}):new Di({keyType:rn.create(),valueType:t,typeName:se.ZodRecord,...ue(n)})}}class ql extends pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==G.map)return H(r,{code:F.invalid_type,expected:G.map,received:r.parsedType}),ie;const o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:o._parse(new En(r,a,r.path,[c,"key"])),value:s._parse(new En(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return ie;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(c.value,d.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return ie;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(c.value,d.value)}return{status:n.value,value:a}}}}ql.create=(e,t,n)=>new ql({valueType:t,keyType:e,typeName:se.ZodMap,...ue(n)});class ro extends pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==G.set)return H(r,{code:F.invalid_type,expected:G.set,received:r.parsedType}),ie;const o=this._def;o.minSize!==null&&r.data.sizeo.maxSize.value&&(H(r,{code:F.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function i(l){const c=new Set;for(const d of l){if(d.status==="aborted")return ie;d.status==="dirty"&&n.dirty(),c.add(d.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>s._parse(new En(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new ro({...this._def,minSize:{value:t,message:ne.toString(n)}})}max(t,n){return new ro({...this._def,maxSize:{value:t,message:ne.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ro.create=(e,t)=>new ro({valueType:e,minSize:null,maxSize:null,typeName:se.ZodSet,...ue(t)});class Go extends pe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==G.function)return H(n,{code:F.invalid_type,expected:G.function,received:n.parsedType}),ie;function r(a,l){return Zl({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Kl(),is].filter(c=>!!c),issueData:{code:F.invalid_arguments,argumentsError:l}})}function o(a,l){return Zl({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Kl(),is].filter(c=>!!c),issueData:{code:F.invalid_return_type,returnTypeError:l}})}const s={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof ls){const a=this;return mt(async function(...l){const c=new Lt([]),d=await a._def.args.parseAsync(l,s).catch(w=>{throw c.addIssue(r(l,w)),c}),p=await Reflect.apply(i,this,d);return await a._def.returns._def.type.parseAsync(p,s).catch(w=>{throw c.addIssue(o(p,w)),c})})}else{const a=this;return mt(function(...l){const c=a._def.args.safeParse(l,s);if(!c.success)throw new Lt([r(l,c.error)]);const d=Reflect.apply(i,this,c.data),p=a._def.returns.safeParse(d,s);if(!p.success)throw new Lt([o(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Go({...this._def,args:Cn.create(t).rest(Hr.create())})}returns(t){return new Go({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Go({args:t||Cn.create([]).rest(Hr.create()),returns:n||Hr.create(),typeName:se.ZodFunction,...ue(r)})}}class Li extends pe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Li.create=(e,t)=>new Li({getter:e,typeName:se.ZodLazy,...ue(t)});class Fi extends pe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return H(n,{received:n.data,code:F.invalid_literal,expected:this._def.value}),ie}return{status:"valid",value:t.data}}get value(){return this._def.value}}Fi.create=(e,t)=>new Fi({value:e,typeName:se.ZodLiteral,...ue(t)});function PE(e,t){return new kr({values:e,typeName:se.ZodEnum,...ue(t)})}class kr extends pe{constructor(){super(...arguments),zs.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{expected:ve.joinValues(r),received:n.parsedType,code:F.invalid_type}),ie}if(Gl(this,zs)||NE(this,zs,new Set(this._def.values)),!Gl(this,zs).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{received:n.data,code:F.invalid_enum_value,options:r}),ie}return mt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return kr.create(t,{...this._def,...n})}exclude(t,n=this._def){return kr.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}zs=new WeakMap;kr.create=PE;class $i extends pe{constructor(){super(...arguments),Bs.set(this,void 0)}_parse(t){const n=ve.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==G.string&&r.parsedType!==G.number){const o=ve.objectValues(n);return H(r,{expected:ve.joinValues(o),received:r.parsedType,code:F.invalid_type}),ie}if(Gl(this,Bs)||NE(this,Bs,new Set(ve.getValidEnumValues(this._def.values))),!Gl(this,Bs).has(t.data)){const o=ve.objectValues(n);return H(r,{received:r.data,code:F.invalid_enum_value,options:o}),ie}return mt(t.data)}get enum(){return this._def.values}}Bs=new WeakMap;$i.create=(e,t)=>new $i({values:e,typeName:se.ZodNativeEnum,...ue(t)});class ls extends pe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==G.promise&&n.common.async===!1)return H(n,{code:F.invalid_type,expected:G.promise,received:n.parsedType}),ie;const r=n.parsedType===G.promise?n.data:Promise.resolve(n.data);return mt(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ls.create=(e,t)=>new ls({type:e,typeName:se.ZodPromise,...ue(t)});class fn extends pe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{H(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return ie;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ie:l.status==="dirty"||n.value==="dirty"?Fo(l.value):l});{if(n.value==="aborted")return ie;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?ie:a.status==="dirty"||n.value==="dirty"?Fo(a.value):a}}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ie:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ie:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ti(i))return i;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>Ti(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):i);ve.assertNever(o)}}fn.create=(e,t,n)=>new fn({schema:e,typeName:se.ZodEffects,effect:t,...ue(n)});fn.createWithPreprocess=(e,t,n)=>new fn({schema:t,effect:{type:"preprocess",transform:e},typeName:se.ZodEffects,...ue(n)});class Sn extends pe{_parse(t){return this._getType(t)===G.undefined?mt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Sn.create=(e,t)=>new Sn({innerType:e,typeName:se.ZodOptional,...ue(t)});class Tr extends pe{_parse(t){return this._getType(t)===G.null?mt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Tr.create=(e,t)=>new Tr({innerType:e,typeName:se.ZodNullable,...ue(t)});class Vi extends pe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===G.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Vi.create=(e,t)=>new Vi({innerType:e,typeName:se.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ue(t)});class Ui extends pe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Pi(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Lt(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Lt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ui.create=(e,t)=>new Ui({innerType:e,typeName:se.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ue(t)});class Ql extends pe{_parse(t){if(this._getType(t)!==G.nan){const r=this._getOrReturnCtx(t);return H(r,{code:F.invalid_type,expected:G.nan,received:r.parsedType}),ie}return{status:"valid",value:t.data}}}Ql.create=e=>new Ql({typeName:se.ZodNaN,...ue(e)});const nL=Symbol("zod_brand");class Um extends pe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class la extends pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ie:s.status==="dirty"?(n.dirty(),Fo(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ie:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new la({in:t,out:n,typeName:se.ZodPipeline})}}class zi extends pe{_parse(t){const n=this._def.innerType._parse(t),r=o=>(Ti(o)&&(o.value=Object.freeze(o.value)),o);return Pi(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}zi.create=(e,t)=>new zi({innerType:e,typeName:se.ZodReadonly,...ue(t)});function AE(e,t={},n){return e?as.create().superRefine((r,o)=>{var s,i;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:n)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...c,fatal:l})}}):as.create()}const rL={object:De.lazycreate};var se;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(se||(se={}));const oL=(e,t={message:`Input not instance of ${e.name}`})=>AE(n=>n instanceof e,t),OE=rn.create,ME=Nr.create,sL=Ql.create,iL=Rr.create,jE=Ai.create,aL=no.create,lL=Yl.create,cL=Oi.create,uL=Mi.create,dL=as.create,fL=Hr.create,pL=Kn.create,mL=Xl.create,hL=ln.create,vL=De.create,gL=De.strictCreate,yL=ji.create,wL=Yc.create,xL=Ii.create,SL=Cn.create,bL=Di.create,EL=ql.create,CL=ro.create,_L=Go.create,NL=Li.create,RL=Fi.create,kL=kr.create,TL=$i.create,PL=ls.create,Tg=fn.create,AL=Sn.create,OL=Tr.create,ML=fn.createWithPreprocess,jL=la.create,IL=()=>OE().optional(),DL=()=>ME().optional(),LL=()=>jE().optional(),FL={string:e=>rn.create({...e,coerce:!0}),number:e=>Nr.create({...e,coerce:!0}),boolean:e=>Ai.create({...e,coerce:!0}),bigint:e=>Rr.create({...e,coerce:!0}),date:e=>no.create({...e,coerce:!0})},$L=ie;var Yo=Object.freeze({__proto__:null,defaultErrorMap:is,setErrorMap:$2,getErrorMap:Kl,makeIssue:Zl,EMPTY_PATH:V2,addIssueToContext:H,ParseStatus:ct,INVALID:ie,DIRTY:Fo,OK:mt,isAborted:$f,isDirty:Vf,isValid:Ti,isAsync:Pi,get util(){return ve},get objectUtil(){return Ff},ZodParsedType:G,getParsedType:ar,ZodType:pe,datetimeRegex:TE,ZodString:rn,ZodNumber:Nr,ZodBigInt:Rr,ZodBoolean:Ai,ZodDate:no,ZodSymbol:Yl,ZodUndefined:Oi,ZodNull:Mi,ZodAny:as,ZodUnknown:Hr,ZodNever:Kn,ZodVoid:Xl,ZodArray:ln,ZodObject:De,ZodUnion:ji,ZodDiscriminatedUnion:Yc,ZodIntersection:Ii,ZodTuple:Cn,ZodRecord:Di,ZodMap:ql,ZodSet:ro,ZodFunction:Go,ZodLazy:Li,ZodLiteral:Fi,ZodEnum:kr,ZodNativeEnum:$i,ZodPromise:ls,ZodEffects:fn,ZodTransformer:fn,ZodOptional:Sn,ZodNullable:Tr,ZodDefault:Vi,ZodCatch:Ui,ZodNaN:Ql,BRAND:nL,ZodBranded:Um,ZodPipeline:la,ZodReadonly:zi,custom:AE,Schema:pe,ZodSchema:pe,late:rL,get ZodFirstPartyTypeKind(){return se},coerce:FL,any:dL,array:hL,bigint:iL,boolean:jE,date:aL,discriminatedUnion:wL,effect:Tg,enum:kL,function:_L,instanceof:oL,intersection:xL,lazy:NL,literal:RL,map:EL,nan:sL,nativeEnum:TL,never:pL,null:uL,nullable:OL,number:ME,object:vL,oboolean:LL,onumber:DL,optional:AL,ostring:IL,pipeline:jL,preprocess:ML,promise:PL,record:bL,set:CL,strictObject:gL,string:OE,symbol:lL,transformer:Tg,tuple:SL,undefined:cL,union:yL,unknown:fL,void:mL,NEVER:$L,ZodIssueCode:F,quotelessJson:F2,ZodError:Lt}),zm="Dialog",[IE,DE]=Yn(zm),[VL,mn]=IE(zm),LE=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=u.useRef(null),l=u.useRef(null),[c=!1,d]=Bn({prop:r,defaultProp:o,onChange:s});return f.jsx(VL,{scope:t,triggerRef:a,contentRef:l,contentId:Nt(),titleId:Nt(),descriptionId:Nt(),open:c,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(p=>!p),[d]),modal:i,children:n})};LE.displayName=zm;var FE="DialogTrigger",$E=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=mn(FE,n),s=le(t,o.triggerRef);return f.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Hm(o.open),...r,ref:s,onClick:$(e.onClick,o.onOpenToggle)})});$E.displayName=FE;var Bm="DialogPortal",[UL,VE]=IE(Bm,{forceMount:void 0}),UE=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=mn(Bm,t);return f.jsx(UL,{scope:t,forceMount:n,children:u.Children.map(r,i=>f.jsx(Yt,{present:n||s.open,children:f.jsx(Rm,{asChild:!0,container:o,children:i})}))})};UE.displayName=Bm;var Jl="DialogOverlay",zE=u.forwardRef((e,t)=>{const n=VE(Jl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=mn(Jl,e.__scopeDialog);return s.modal?f.jsx(Yt,{present:r||s.open,children:f.jsx(zL,{...o,ref:t})}):null});zE.displayName=Jl;var zL=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=mn(Jl,n);return f.jsx(km,{as:zn,allowPinchZoom:!0,shards:[o.contentRef],children:f.jsx(ee.div,{"data-state":Hm(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),oo="DialogContent",BE=u.forwardRef((e,t)=>{const n=VE(oo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=mn(oo,e.__scopeDialog);return f.jsx(Yt,{present:r||s.open,children:s.modal?f.jsx(BL,{...o,ref:t}):f.jsx(WL,{...o,ref:t})})});BE.displayName=oo;var BL=u.forwardRef((e,t)=>{const n=mn(oo,e.__scopeDialog),r=u.useRef(null),o=le(t,n.contentRef,r);return u.useEffect(()=>{const s=r.current;if(s)return um(s)},[]),f.jsx(WE,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:$(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:$(e.onFocusOutside,s=>s.preventDefault())})}),WL=u.forwardRef((e,t)=>{const n=mn(oo,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return f.jsx(WE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),WE=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=mn(oo,n),l=u.useRef(null),c=le(t,l);return z1(),f.jsxs(f.Fragment,{children:[f.jsx(_c,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:f.jsx(Cc,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Hm(a.open),...i,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(KL,{titleId:a.titleId}),f.jsx(GL,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Wm="DialogTitle",HE=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=mn(Wm,n);return f.jsx(ee.h2,{id:o.titleId,...r,ref:t})});HE.displayName=Wm;var KE="DialogDescription",ZE=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=mn(KE,n);return f.jsx(ee.p,{id:o.descriptionId,...r,ref:t})});ZE.displayName=KE;var GE="DialogClose",YE=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=mn(GE,n);return f.jsx(ee.button,{type:"button",...r,ref:t,onClick:$(e.onClick,()=>o.onOpenChange(!1))})});YE.displayName=GE;function Hm(e){return e?"open":"closed"}var XE="DialogTitleWarning",[HL,qE]=rk(XE,{contentName:oo,titleName:Wm,docsSlug:"dialog"}),KL=({titleId:e})=>{const t=qE(XE),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ZL="DialogDescriptionWarning",GL=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qE(ZL).contentName}}.`;return u.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},YL=LE,XL=$E,qL=UE,QL=zE,JL=BE,eF=HE,tF=ZE,QE=YE,JE="AlertDialog",[nF,Y$]=Yn(JE,[DE]),Xn=DE(),eC=e=>{const{__scopeAlertDialog:t,...n}=e,r=Xn(t);return f.jsx(YL,{...r,...n,modal:!0})};eC.displayName=JE;var rF="AlertDialogTrigger",tC=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Xn(n);return f.jsx(XL,{...o,...r,ref:t})});tC.displayName=rF;var oF="AlertDialogPortal",nC=e=>{const{__scopeAlertDialog:t,...n}=e,r=Xn(t);return f.jsx(qL,{...r,...n})};nC.displayName=oF;var sF="AlertDialogOverlay",rC=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Xn(n);return f.jsx(QL,{...o,...r,ref:t})});rC.displayName=sF;var Xo="AlertDialogContent",[iF,aF]=nF(Xo),oC=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,s=Xn(n),i=u.useRef(null),a=le(t,i),l=u.useRef(null);return f.jsx(HL,{contentName:Xo,titleName:sC,docsSlug:"alert-dialog",children:f.jsx(iF,{scope:n,cancelRef:l,children:f.jsxs(JL,{role:"alertdialog",...s,...o,ref:a,onOpenAutoFocus:$(o.onOpenAutoFocus,c=>{var d;c.preventDefault(),(d=l.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[f.jsx(qw,{children:r}),f.jsx(cF,{contentRef:i})]})})})});oC.displayName=Xo;var sC="AlertDialogTitle",iC=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Xn(n);return f.jsx(eF,{...o,...r,ref:t})});iC.displayName=sC;var aC="AlertDialogDescription",lC=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Xn(n);return f.jsx(tF,{...o,...r,ref:t})});lC.displayName=aC;var lF="AlertDialogAction",cC=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Xn(n);return f.jsx(QE,{...o,...r,ref:t})});cC.displayName=lF;var uC="AlertDialogCancel",dC=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=aF(uC,n),s=Xn(n),i=le(t,o);return f.jsx(QE,{...s,...r,ref:i})});dC.displayName=uC;var cF=({contentRef:e})=>{const t=`\`${Xo}\` requires a description for the component to be accessible for screen reader users. + +You can add a description to the \`${Xo}\` by passing a \`${aC}\` component as a child, which also benefits sighted users by adding visible context to the dialog. + +Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Xo}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. + +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return u.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},uF=eC,dF=tC,fF=nC,fC=rC,pC=oC,mC=cC,hC=dC,vC=iC,gC=lC;const Xc=Qi("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Km=u.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?zn:"button";return f.jsx(i,{className:q(Xc({variant:t,size:n,className:e})),ref:s,...o})});Km.displayName="Button";const zf=uF,Bf=dF,pF=fF,yC=u.forwardRef(({className:e,...t},n)=>f.jsx(fC,{className:q("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));yC.displayName=fC.displayName;const ec=u.forwardRef(({className:e,...t},n)=>f.jsxs(pF,{children:[f.jsx(yC,{}),f.jsx(pC,{ref:n,className:q("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));ec.displayName=pC.displayName;const wC=({className:e,...t})=>f.jsx("div",{className:q("flex flex-col space-y-2 text-center sm:text-left",e),...t});wC.displayName="AlertDialogHeader";const xC=({className:e,...t})=>f.jsx("div",{className:q("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xC.displayName="AlertDialogFooter";const SC=u.forwardRef(({className:e,...t},n)=>f.jsx(vC,{ref:n,className:q("text-lg font-semibold",e),...t}));SC.displayName=vC.displayName;const bC=u.forwardRef(({className:e,...t},n)=>f.jsx(gC,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));bC.displayName=gC.displayName;const tc=u.forwardRef(({className:e,...t},n)=>f.jsx(mC,{ref:n,className:q(Xc(),e),...t}));tc.displayName=mC.displayName;const nc=u.forwardRef(({className:e,...t},n)=>f.jsx(hC,{ref:n,className:q(Xc({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));nc.displayName=hC.displayName;var mF="Label",EC=u.forwardRef((e,t)=>f.jsx(ee.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));EC.displayName=mF;var CC=EC;const hF=Qi("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),_C=u.forwardRef(({className:e,...t},n)=>f.jsx(CC,{ref:n,className:q(hF(),e),...t}));_C.displayName=CC.displayName;const NC=w2,RC=u.createContext({}),rc=({...e})=>f.jsx(RC.Provider,{value:{name:e.name},children:f.jsx(E2,{...e})}),qc=()=>{const e=u.useContext(RC),t=u.useContext(kC),{getFieldState:n,formState:r}=Gc(),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...o}},kC=u.createContext({}),Bi=u.forwardRef(({className:e,...t},n)=>{const r=u.useId();return f.jsx(kC.Provider,{value:{id:r},children:f.jsx("div",{ref:n,className:q("space-y-2",e),...t})})});Bi.displayName="FormItem";const Wi=u.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:o}=qc();return f.jsx(_C,{ref:n,className:q(r&&"text-destructive",e),htmlFor:o,...t})});Wi.displayName="FormLabel";const Kr=u.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:s}=qc();return f.jsx(zn,{ref:t,id:r,"aria-describedby":n?`${o} ${s}`:`${o}`,"aria-invalid":!!n,...e})});Kr.displayName="FormControl";const vF=u.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=qc();return f.jsx("p",{ref:n,id:r,className:q("text-sm text-muted-foreground",e),...t})});vF.displayName="FormDescription";const Hi=u.forwardRef(({className:e,children:t,...n},r)=>{const{error:o,formMessageId:s}=qc(),i=o?String(o==null?void 0:o.message):t;return i?f.jsx("p",{ref:r,id:s,className:q("text-sm font-medium text-destructive",e),...n,children:i}):null});Hi.displayName="FormMessage";const Zr=u.forwardRef(({className:e,type:t,...n},r)=>f.jsx("input",{type:t,className:q("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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:r,...n}));Zr.displayName="Input";const gF=Yo.object({longLink:Yo.string(),shortLink:Yo.string()}),yF=({linkID:e})=>{const[t]=an(["currentToken"]),n=t.currentToken,r=bE({resolver:CE(gF),defaultValues:{longLink:"",shortLink:""}});console.log(e);const o=i=>{console.log(i),(async()=>{try{const l=await Pe.put("https://lscs.info/admin/links/"+e,{longlink:i.longLink,shortlink:i.shortLink},{headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}});console.log(l),l.data.status=="ok"&&window.location.replace("/")}catch(l){console.log(l)}})()},s=()=>{console.log(e),(async()=>{try{(await Pe.delete("https://lscs.info/admin/links/"+e,{headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}})).data.status=="ok"&&window.location.replace("/")}catch(a){console.log(a)}})()};return f.jsx(f.Fragment,{children:f.jsxs(zf,{children:[f.jsx(Bf,{children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})})}),f.jsxs(ec,{className:"bg-transparent border-none",children:[f.jsx("p",{className:"font-bold text-3xl text-white px-8",children:"Edit Short Link"}),f.jsx("div",{className:"space-y-8 bg-[#030711] border-2 border-[#1D283A] rounded-lg px-8 py-6 flex flex-col",children:f.jsx(NC,{...r,children:f.jsxs("form",{onSubmit:r.handleSubmit(o),className:"space-y-8 flex flex-col",children:[f.jsx(rc,{control:r.control,name:"shortLink",render:({field:i})=>f.jsx(f.Fragment,{children:f.jsxs(Bi,{children:[f.jsx(Wi,{className:"text-white",children:"Short Link"}),f.jsxs("div",{className:"flex space-x-1",children:[f.jsx(Kr,{children:f.jsx(Zr,{...i,disabled:!0,value:"lscs.info/",className:"text-white bg-[#333437] border-2 border-[#1D283A] rounded-l-lg w-1/4"})}),f.jsx(Kr,{children:f.jsx(Zr,{...i,className:"text-white bg-[#030711] border-2 border-[#1D283A] rounded-lg"})})]}),f.jsx(Hi,{})]})})}),f.jsx(rc,{control:r.control,name:"longLink",render:({field:i})=>f.jsx(f.Fragment,{children:f.jsxs(Bi,{children:[f.jsx(Wi,{className:"text-white",children:"Long Link"}),f.jsx(Kr,{children:f.jsx(Zr,{...i,className:"text-white bg-[#030711] border-2 border-[#1D283A] rounded-lg"})}),f.jsx(Hi,{})]})})}),f.jsxs("div",{className:"space-x-6 flex justify-between items-center",children:[f.jsxs("div",{className:"space-x-6",children:[f.jsx(tc,{type:"submit",className:"text-black bg-white",children:"Continue"}),f.jsx(nc,{className:"bg-transparent border-transparent text-white",children:"Cancel"})]}),f.jsx("div",{children:f.jsxs(zf,{children:[f.jsx(Bf,{className:"bg-red-500 rounded-full p-2 text-white",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})}),f.jsxs(ec,{className:"space-y-8 bg-[#030711] border-2 border-[#1D283A] rounded-lg px-8 py-6 flex flex-col",children:[f.jsxs(wC,{children:[f.jsx(SC,{children:"Are you absolutely sure?"}),f.jsx(bC,{children:"This action cannot be undone. This will permanently delete your link from our servers."})]}),f.jsxs(xC,{children:[f.jsx(nc,{children:"Cancel"}),f.jsx(tc,{onClick:s,className:"bg-red-500",children:"Delete"})]})]})]})})]})]})})})]})]})})},wF=Qi("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function xF({className:e,variant:t,...n}){return f.jsx("div",{className:q(wF({variant:t}),e),...n})}const SF=({linkID:e,createdBy:t,longLink:n,shortLink:r,qr_preview:o,qr_download:s})=>{const[i]=an(["currentLinksToken"]),a=i.currentLinksToken,{data:l,loading:c}=sE(`https://linksapidev.app.dlsu-lscs.org/analytics/${r}`,a),d=l;return c?f.jsx(f.Fragment,{children:f.jsx("p",{className:"text-white"})}):f.jsx(f.Fragment,{children:f.jsxs("div",{className:"mb-6",children:[f.jsxs("div",{className:"flex flex-wrap justify-between mb-6",children:[f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center space-x-3",children:[f.jsxs("h1",{className:"text-2xl cursor-pointer",onClick:async()=>{try{await navigator.clipboard.writeText(`lscs.info/${r}`)}catch(p){console.log(p)}},children:[f.jsx("span",{className:"font-bold",children:"lscs.info"}),"/",r]}),f.jsx(yF,{linkID:e}),f.jsx(xF,{className:"text-black bg-white font-bold",children:"rnd"})]}),f.jsxs("div",{className:"text-slate-500 flex items-center space-x-2 mt-1",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})}),f.jsx("p",{className:"text-xl cursor-pointer ",onClick:async()=>{try{await navigator.clipboard.writeText(n)}catch(p){console.log(p)}},children:n})]}),f.jsxs("div",{className:"my-3",children:[(d==null?void 0:d.count)??0," clicks"]}),f.jsxs("div",{className:"flex items-center space-x-3 my-3",children:[f.jsx(C1,{email:t}),f.jsxs("p",{children:["Created by ",t]})]})]}),f.jsx("div",{className:"mx-4 mt-8 md:mt-0 md:px-8",children:o?f.jsx(f.Fragment,{children:f.jsxs("div",{className:"flex justify-center flex-col items-center space-y-3",children:[f.jsx("img",{src:o,className:"rounded-md w-32",alt:""}),f.jsx("a",{href:s,className:"underline text-[#7F8EA3]",children:"Download"})]})}):null})]}),f.jsx(Pm,{className:"bg-[#1D283A] my-2`"})]})})};function bF(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Zm="ScrollArea",[TC,X$]=Yn(Zm),[EF,qt]=TC(Zm),PC=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:s=600,...i}=e,[a,l]=u.useState(null),[c,d]=u.useState(null),[p,m]=u.useState(null),[w,g]=u.useState(null),[h,x]=u.useState(null),[y,v]=u.useState(0),[S,E]=u.useState(0),[b,N]=u.useState(!1),[C,R]=u.useState(!1),P=le(t,Y=>l(Y)),j=ps(o);return f.jsx(EF,{scope:n,type:r,dir:j,scrollHideDelay:s,scrollArea:a,viewport:c,onViewportChange:d,content:p,onContentChange:m,scrollbarX:w,onScrollbarXChange:g,scrollbarXEnabled:b,onScrollbarXEnabledChange:N,scrollbarY:h,onScrollbarYChange:x,scrollbarYEnabled:C,onScrollbarYEnabledChange:R,onCornerWidthChange:v,onCornerHeightChange:E,children:f.jsx(ee.div,{dir:j,...i,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});PC.displayName=Zm;var AC="ScrollAreaViewport",OC=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...s}=e,i=qt(AC,n),a=u.useRef(null),l=le(t,a,i.onViewportChange);return f.jsxs(f.Fragment,{children:[f.jsx("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}"},nonce:o}),f.jsx(ee.div,{"data-radix-scroll-area-viewport":"",...s,ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:f.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});OC.displayName=AC;var Nn="ScrollAreaScrollbar",Gm=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=qt(Nn,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=o,a=e.orientation==="horizontal";return u.useEffect(()=>(a?s(!0):i(!0),()=>{a?s(!1):i(!1)}),[a,s,i]),o.type==="hover"?f.jsx(CF,{...r,ref:t,forceMount:n}):o.type==="scroll"?f.jsx(_F,{...r,ref:t,forceMount:n}):o.type==="auto"?f.jsx(MC,{...r,ref:t,forceMount:n}):o.type==="always"?f.jsx(Ym,{...r,ref:t}):null});Gm.displayName=Nn;var CF=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=qt(Nn,e.__scopeScrollArea),[s,i]=u.useState(!1);return u.useEffect(()=>{const a=o.scrollArea;let l=0;if(a){const c=()=>{window.clearTimeout(l),i(!0)},d=()=>{l=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),f.jsx(Yt,{present:n||s,children:f.jsx(MC,{"data-state":s?"visible":"hidden",...r,ref:t})})}),_F=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=qt(Nn,e.__scopeScrollArea),s=e.orientation==="horizontal",i=Jc(()=>l("SCROLL_END"),100),[a,l]=bF("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 u.useEffect(()=>{if(a==="idle"){const c=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[a,o.scrollHideDelay,l]),u.useEffect(()=>{const c=o.viewport,d=s?"scrollLeft":"scrollTop";if(c){let p=c[d];const m=()=>{const w=c[d];p!==w&&(l("SCROLL"),i()),p=w};return c.addEventListener("scroll",m),()=>c.removeEventListener("scroll",m)}},[o.viewport,s,l,i]),f.jsx(Yt,{present:n||a!=="hidden",children:f.jsx(Ym,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:$(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:$(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),MC=u.forwardRef((e,t)=>{const n=qt(Nn,e.__scopeScrollArea),{forceMount:r,...o}=e,[s,i]=u.useState(!1),a=e.orientation==="horizontal",l=Jc(()=>{if(n.viewport){const c=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,o=qt(Nn,e.__scopeScrollArea),s=u.useRef(null),i=u.useRef(0),[a,l]=u.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=FC(a.viewport,a.content),d={...r,sizes:a,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:m=>s.current=m,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:m=>i.current=m};function p(m,w){return AF(m,i.current,a,w)}return n==="horizontal"?f.jsx(NF,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const m=o.viewport.scrollLeft,w=Pg(m,a,o.dir);s.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=p(m,o.dir))}}):n==="vertical"?f.jsx(RF,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const m=o.viewport.scrollTop,w=Pg(m,a);s.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=p(m))}}):null}),NF=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=qt(Nn,e.__scopeScrollArea),[i,a]=u.useState(),l=u.useRef(null),c=le(t,l,s.onScrollbarXChange);return u.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),f.jsx(IC,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Qc(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,p)=>{if(s.viewport){const m=s.viewport.scrollLeft+d.deltaX;e.onWheelScroll(m),VC(m,p)&&d.preventDefault()}},onResize:()=>{l.current&&s.viewport&&i&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:sc(i.paddingLeft),paddingEnd:sc(i.paddingRight)}})}})}),RF=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=qt(Nn,e.__scopeScrollArea),[i,a]=u.useState(),l=u.useRef(null),c=le(t,l,s.onScrollbarYChange);return u.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),f.jsx(IC,{"data-orientation":"vertical",...o,ref:c,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Qc(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,p)=>{if(s.viewport){const m=s.viewport.scrollTop+d.deltaY;e.onWheelScroll(m),VC(m,p)&&d.preventDefault()}},onResize:()=>{l.current&&s.viewport&&i&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:sc(i.paddingTop),paddingEnd:sc(i.paddingBottom)}})}})}),[kF,jC]=TC(Nn),IC=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:s,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:d,onResize:p,...m}=e,w=qt(Nn,n),[g,h]=u.useState(null),x=le(t,P=>h(P)),y=u.useRef(null),v=u.useRef(""),S=w.viewport,E=r.content-r.viewport,b=he(d),N=he(l),C=Jc(p,10);function R(P){if(y.current){const j=P.clientX-y.current.left,Y=P.clientY-y.current.top;c({x:j,y:Y})}}return u.useEffect(()=>{const P=j=>{const Y=j.target;(g==null?void 0:g.contains(Y))&&b(j,E)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[S,g,E,b]),u.useEffect(N,[r,N]),cs(g,C),cs(w.content,C),f.jsx(kF,{scope:n,scrollbar:g,hasThumb:o,onThumbChange:he(s),onThumbPointerUp:he(i),onThumbPositionChange:N,onThumbPointerDown:he(a),children:f.jsx(ee.div,{...m,ref:x,style:{position:"absolute",...m.style},onPointerDown:$(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),y.current=g.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),R(P))}),onPointerMove:$(e.onPointerMove,R),onPointerUp:$(e.onPointerUp,P=>{const j=P.target;j.hasPointerCapture(P.pointerId)&&j.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=v.current,w.viewport&&(w.viewport.style.scrollBehavior=""),y.current=null})})})}),oc="ScrollAreaThumb",DC=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=jC(oc,e.__scopeScrollArea);return f.jsx(Yt,{present:n||o.hasThumb,children:f.jsx(TF,{ref:t,...r})})}),TF=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,s=qt(oc,n),i=jC(oc,n),{onThumbPositionChange:a}=i,l=le(t,p=>i.onThumbChange(p)),c=u.useRef(),d=Jc(()=>{c.current&&(c.current(),c.current=void 0)},100);return u.useEffect(()=>{const p=s.viewport;if(p){const m=()=>{if(d(),!c.current){const w=OF(p,a);c.current=w,a()}};return a(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[s.viewport,d,a]),f.jsx(ee.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:$(e.onPointerDownCapture,p=>{const w=p.target.getBoundingClientRect(),g=p.clientX-w.left,h=p.clientY-w.top;i.onThumbPointerDown({x:g,y:h})}),onPointerUp:$(e.onPointerUp,i.onThumbPointerUp)})});DC.displayName=oc;var Xm="ScrollAreaCorner",LC=u.forwardRef((e,t)=>{const n=qt(Xm,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?f.jsx(PF,{...e,ref:t}):null});LC.displayName=Xm;var PF=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=qt(Xm,n),[s,i]=u.useState(0),[a,l]=u.useState(0),c=!!(s&&a);return cs(o.scrollbarX,()=>{var p;const d=((p=o.scrollbarX)==null?void 0:p.offsetHeight)||0;o.onCornerHeightChange(d),l(d)}),cs(o.scrollbarY,()=>{var p;const d=((p=o.scrollbarY)==null?void 0:p.offsetWidth)||0;o.onCornerWidthChange(d),i(d)}),c?f.jsx(ee.div,{...r,ref:t,style:{width:s,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function sc(e){return e?parseInt(e,10):0}function FC(e,t){const n=e/t;return isNaN(n)?0:n}function Qc(e){const t=FC(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function AF(e,t,n,r="ltr"){const o=Qc(n),s=o/2,i=t||s,a=o-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-a,d=n.content-n.viewport,p=r==="ltr"?[0,d]:[d*-1,0];return $C([l,c],p)(e)}function Pg(e,t,n="ltr"){const r=Qc(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,i=t.content-t.viewport,a=s-r,l=n==="ltr"?[0,i]:[i*-1,0],c=Cf(e,l);return $C([0,i],[0,a])(c)}function $C(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function VC(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,a=n.top!==s.top;(i||a)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Jc(e,t){const n=he(e),r=u.useRef(0);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),u.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function cs(e,t){const n=he(t);Re(()=>{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])}var UC=PC,MF=OC,jF=LC;const zC=u.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(UC,{ref:r,className:q("relative overflow-hidden",e),...n,children:[f.jsx(MF,{className:"h-full w-full rounded-[inherit]",children:t}),f.jsx(BC,{}),f.jsx(jF,{})]}));zC.displayName=UC.displayName;const BC=u.forwardRef(({className:e,orientation:t="vertical",...n},r)=>f.jsx(Gm,{ref:r,orientation:t,className:q("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 flex-col border-t border-t-transparent p-[1px]",e),...n,children:f.jsx(DC,{className:"relative flex-1 rounded-full bg-border"})}));BC.displayName=Gm.displayName;const WC=({className:e,...t})=>f.jsx("nav",{role:"navigation","aria-label":"pagination",className:q("mx-auto flex w-full justify-center",e),...t});WC.displayName="Pagination";const HC=u.forwardRef(({className:e,...t},n)=>f.jsx("ul",{ref:n,className:q("flex flex-row items-center gap-1",e),...t}));HC.displayName="PaginationContent";const Wf=u.forwardRef(({className:e,...t},n)=>f.jsx("li",{ref:n,className:q("",e),...t}));Wf.displayName="PaginationItem";const qm=({className:e,isActive:t,size:n="icon",...r})=>f.jsx("a",{"aria-current":t?"page":void 0,className:q(Xc({variant:t?"outline":"ghost",size:n}),e),...r});qm.displayName="PaginationLink";const KC=({className:e,...t})=>f.jsxs(qm,{"aria-label":"Go to previous page",size:"default",className:q("gap-1 pl-2.5",e),...t,children:[f.jsx(Zk,{className:"h-4 w-4"}),f.jsx("span",{children:"Previous"})]});KC.displayName="PaginationPrevious";const ZC=({className:e,...t})=>f.jsxs(qm,{"aria-label":"Go to next page",size:"default",className:q("gap-1 pr-2.5",e),...t,children:[f.jsx("span",{children:"Next"}),f.jsx(em,{className:"h-4 w-4"})]});ZC.displayName="PaginationNext";const IF=()=>{const[e,,]=an(["currentLinksToken"]),[t,n]=u.useState(1),{data:r,loading:o,error:s}=sE("https://linksapidev.app.dlsu-lscs.org/admin/links?limit=10&page="+t,e.currentLinksToken),i=r,a=(i==null?void 0:i.totalPages)??1;return s?f.jsx(f.Fragment,{children:f.jsxs("p",{children:["Error ",s.message]})}):o?f.jsx(f.Fragment,{children:f.jsxs("div",{role:"status",className:"flex justify-center my-24",children:[f.jsxs("svg",{"aria-hidden":"true",className:"w-12 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-white",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),f.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),f.jsx("span",{className:"sr-only",children:"Loading..."})]})}):s?f.jsx(f.Fragment,{children:f.jsxs("p",{className:"text-white",children:["Error.... ",s," ",":((("]})}):f.jsx(f.Fragment,{children:f.jsxs("div",{className:"flex md:justify-center flex-col items-center space-y-3",children:[f.jsx(zC,{className:"md:h-[400px] md:w-[720px] rounded-md space-y-3",children:i==null?void 0:i.data.map(l=>f.jsx(f.Fragment,{children:f.jsx(SF,{linkID:l._id,createdBy:l.created_by,longLink:l.longlink,shortLink:l.shortlink,qr_preview:l.qr_preview,qr_download:l.qr_download})}))}),(i==null?void 0:i.data.length)!=0&&a>1?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"flex justify-center",children:f.jsx(WC,{children:f.jsxs(HC,{children:[f.jsx(Wf,{children:f.jsx(KC,{onClick:()=>{t>1&&n(t-1)}})}),f.jsx(Wf,{children:f.jsx(ZC,{onClick:()=>{t{const[e]=an(["currentToken"]),t=e.currentToken,n=bE({resolver:CE(DF),defaultValues:{longLink:"",shortLink:""}}),r=o=>{console.log(o),(async()=>{try{const i=await Pe.post("https://lscs.info/admin/create",{longlink:o.longLink,shortlink:o.shortLink},{headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}});console.log(i),i.data.status=="ok"&&window.location.replace("/")}catch(i){console.log(i)}})()};return f.jsx(f.Fragment,{children:f.jsxs(zf,{children:[f.jsx(Bf,{children:f.jsx(Km,{variant:"outline",className:"text-black",children:"Create New"})}),f.jsxs(ec,{className:"bg-transparent border-none",children:[f.jsx("p",{className:"font-bold text-3xl text-white px-8",children:"Create Short Link"}),f.jsx("div",{className:"space-y-8 bg-[#030711] border-2 border-[#1D283A] rounded-lg px-8 py-6 flex flex-col",children:f.jsx(NC,{...n,children:f.jsxs("form",{onSubmit:n.handleSubmit(r),className:"space-y-8 flex flex-col",children:[f.jsx(rc,{control:n.control,name:"shortLink",render:({field:o})=>f.jsx(f.Fragment,{children:f.jsxs(Bi,{children:[f.jsx(Wi,{className:"text-white",children:"Short Link"}),f.jsxs("div",{className:"flex space-x-1",children:[f.jsx(Kr,{children:f.jsx(Zr,{...o,disabled:!0,value:"lscs.info/",className:"text-white bg-[#333437] border-2 border-[#1D283A] rounded-l-lg w-1/4"})}),f.jsx(Kr,{children:f.jsx(Zr,{...o,className:"text-white bg-[#030711] border-2 border-[#1D283A] rounded-lg"})})]}),f.jsx(Hi,{})]})})}),f.jsx(rc,{control:n.control,name:"longLink",render:({field:o})=>f.jsx(f.Fragment,{children:f.jsxs(Bi,{children:[f.jsx(Wi,{className:"text-white",children:"Long Link"}),f.jsx(Kr,{children:f.jsx(Zr,{...o,className:"text-white bg-[#030711] border-2 border-[#1D283A] rounded-lg"})}),f.jsx(Hi,{})]})})}),f.jsxs("div",{className:"space-x-6",children:[f.jsx(tc,{type:"submit",className:"text-black bg-white",children:"Continue"}),f.jsx(nc,{className:"bg-transparent border-transparent text-white",children:"Cancel"})]})]})})})]})]})})},FF=()=>{const e=[{name:"Research and Development",abbreviation:"rnd"},{name:"Academics",abbreviation:"acads"}],[t,,]=an(["currentToken"]);return"currentToken"in t||window.location.replace("/accessAccount"),f.jsx(f.Fragment,{children:f.jsxs("div",{className:"min-h-screen bg-[#000000] text-white md:px-28 py-8",children:[f.jsxs("div",{className:"flex flex-wrap items-end space-x-5 space-y-6",children:[f.jsx("h1",{className:"font-bold text-4xl",children:"Shortened Links"}),f.jsx(LF,{}),f.jsxs(II,{children:[f.jsx(kb,{className:"w-[180px] border-2 border-[#1D283A] bg-[#030711] text-white",children:f.jsx(DI,{placeholder:"Committee"})}),f.jsx(Ab,{children:e.map((n,r)=>f.jsx(f.Fragment,{children:f.jsx(Ob,{value:n.abbreviation,children:n.name},r)}))})]})]}),f.jsx(Pm,{className:"my-6 bg-[#1D283A]"}),f.jsx(IF,{})]})})};function $F(e={}){const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}=e,[o,s]=u.useState(!1),i=u.useRef(n);i.current=n;const a=u.useRef(r);return a.current=r,u.useEffect(()=>{const l=document.createElement("script");return l.src="https://accounts.google.com/gsi/client",l.async=!0,l.defer=!0,l.nonce=t,l.onload=()=>{var c;s(!0),(c=i.current)===null||c===void 0||c.call(i)},l.onerror=()=>{var c;s(!1),(c=a.current)===null||c===void 0||c.call(a)},document.body.appendChild(l),()=>{document.body.removeChild(l)}},[t]),o}const GC=u.createContext(null);function VF({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r,children:o}){const s=$F({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}),i=u.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:s}),[e,s]);return ae.createElement(GC.Provider,{value:i},o)}function UF(){const e=u.useContext(GC);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function zF({flow:e="implicit",scope:t="",onSuccess:n,onError:r,onNonOAuthError:o,overrideScope:s,state:i,...a}){const{clientId:l,scriptLoadedSuccessfully:c}=UF(),d=u.useRef(),p=u.useRef(n);p.current=n;const m=u.useRef(r);m.current=r;const w=u.useRef(o);w.current=o,u.useEffect(()=>{var x,y;if(!c)return;const v=e==="implicit"?"initTokenClient":"initCodeClient",S=(y=(x=window==null?void 0:window.google)===null||x===void 0?void 0:x.accounts)===null||y===void 0?void 0:y.oauth2[v]({client_id:l,scope:s?t:`openid profile email ${t}`,callback:E=>{var b,N;if(E.error)return(b=m.current)===null||b===void 0?void 0:b.call(m,E);(N=p.current)===null||N===void 0||N.call(p,E)},error_callback:E=>{var b;(b=w.current)===null||b===void 0||b.call(w,E)},state:i,...a});d.current=S},[l,c,e,t,i]);const g=u.useCallback(x=>{var y;return(y=d.current)===null||y===void 0?void 0:y.requestAccessToken(x)},[]),h=u.useCallback(()=>{var x;return(x=d.current)===null||x===void 0?void 0:x.requestCode()},[]);return e==="implicit"?g:h}const BF=()=>{const[e,t]=u.useState(),[,n]=an(["currentUser"]),[,r]=an(["currentToken"]),[,o]=an(["currentLinksToken"]),s=zF({onSuccess:i=>t(i),onError:i=>{console.log(i),t(null)}});return u.useEffect(()=>{e&&(async()=>{try{const a=await Pe.get(`https://www.googleapis.com/oauth2/v1/userinfo?access_token=${e.access_token}`,{headers:{Authorization:`Bearer ${e.access_token}`,Accept:"application/json"}});(async(c,d)=>{try{const p=await Pe.post("https://linksapidev.app.dlsu-lscs.org/auth/login",{token:c},{headers:{"Content-Type":"application/json"}});console.log(p.data),p.data.status=="success"&&(o("currentLinksToken",p.data.jwt_token),n("currentUser",d,{path:"/"}),r("currentToken",e.access_token,{path:"/"}),window.location.reload(),window.location.replace("/"))}catch(p){console.log("Log In Error: "+p)}})(e.access_token,a.data.email)}catch(a){console.log(a)}})()},e),f.jsx(f.Fragment,{children:f.jsxs(Km,{variant:"outline",className:"flex justify-center items-center hover:brightness-50",onClick:()=>{t(null),s()},children:[f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"0.98em",height:"1em",viewBox:"0 0 256 262",className:"mr-3",children:[f.jsx("path",{fill:"black",d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622l38.755 30.023l2.685.268c24.659-22.774 38.875-56.282 38.875-96.027"}),f.jsx("path",{fill:"black",d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055c-34.523 0-63.824-22.773-74.269-54.25l-1.531.13l-40.298 31.187l-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1"}),f.jsx("path",{fill:"black",d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82c0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602z"}),f.jsx("path",{fill:"black",d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0C79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251"})]}),"Log In using Gmail"]})})},WF=()=>{const[e,,]=an(["currentToken"]);return"currentToken"in e&&window.location.replace("/"),f.jsx(f.Fragment,{children:f.jsx("div",{className:"min-h-screen bg-[#000000] text-white px-28 py-8",children:f.jsx("div",{className:"flex flex-col items-center justify-center my-20",children:f.jsxs("div",{className:"bg-[#030711] border-2 border-[#1D283A] rounded-lg px-12 py-8 flex flex-col items-center justify-center space-y-5",children:[f.jsx("p",{className:"font-bold text-2xl",children:"LSCS Link Shortener"}),f.jsx("span",{className:"text-black",children:f.jsx(BF,{})})]})})})})},HF=()=>f.jsx(f.Fragment,{children:f.jsxs(wj,{children:[f.jsx(Sf,{path:"/",element:f.jsx(FF,{})}),f.jsx(Sf,{path:"/accessAccount",element:f.jsx(WF,{})})]})}),KF=()=>f.jsxs(f.Fragment,{children:[f.jsx(Gj,{}),f.jsx(HF,{})]}),ZF=1,GF=1e6;let Ju=0;function YF(){return Ju=(Ju+1)%Number.MAX_SAFE_INTEGER,Ju.toString()}const ed=new Map,Ag=e=>{if(ed.has(e))return;const t=setTimeout(()=>{ed.delete(e),ri({type:"REMOVE_TOAST",toastId:e})},GF);ed.set(e,t)},XF=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ZF)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Ag(n):e.toasts.forEach(r=>{Ag(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},rl=[];let ol={toasts:[]};function ri(e){ol=XF(ol,e),rl.forEach(t=>{t(ol)})}function qF({...e}){const t=YF(),n=o=>ri({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>ri({type:"DISMISS_TOAST",toastId:t});return ri({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function QF(){const[e,t]=u.useState(ol);return u.useEffect(()=>(rl.push(t),()=>{const n=rl.indexOf(t);n>-1&&rl.splice(n,1)}),[e]),{...e,toast:qF,dismiss:n=>ri({type:"DISMISS_TOAST",toastId:n})}}function Ot(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 Og(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function YC(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Og(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o{var y;const{scope:m,children:w,...g}=p,h=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,x=u.useMemo(()=>g,Object.values(g));return f.jsx(h.Provider,{value:x,children:w})};c.displayName=s+"Provider";function d(p,m){var h;const w=((h=m==null?void 0:m[e])==null?void 0:h[l])||a,g=u.useContext(w);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,JF(o,...t)]}function JF(...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(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const p=l(s)[`__scope${c}`];return{...a,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var ic=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),s=o.find(t$);if(s){const i=s.props.children,a=o.map(l=>l===s?u.Children.count(i)>1?u.Children.only(null):u.isValidElement(i)?i.props.children:null:l);return f.jsx(Hf,{...r,ref:t,children:u.isValidElement(i)?u.cloneElement(i,void 0,a):null})}return f.jsx(Hf,{...r,ref:t,children:n})});ic.displayName="Slot";var Hf=u.forwardRef((e,t)=>{const{children:n,...r}=e;if(u.isValidElement(n)){const o=r$(n);return u.cloneElement(n,{...n$(r,n.props),ref:t?YC(t,o):o})}return u.Children.count(n)>1?u.Children.only(null):null});Hf.displayName="SlotClone";var e$=({children:e})=>f.jsx(f.Fragment,{children:e});function t$(e){return u.isValidElement(e)&&e.type===e$}function n$(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{s(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function r$(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function o$(e){const t=e+"CollectionProvider",[n,r]=XC(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=w=>{const{scope:g,children:h}=w,x=ae.useRef(null),y=ae.useRef(new Map).current;return f.jsx(o,{scope:g,itemMap:y,collectionRef:x,children:h})};i.displayName=t;const a=e+"CollectionSlot",l=ae.forwardRef((w,g)=>{const{scope:h,children:x}=w,y=s(a,h),v=so(g,y.collectionRef);return f.jsx(ic,{ref:v,children:x})});l.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",p=ae.forwardRef((w,g)=>{const{scope:h,children:x,...y}=w,v=ae.useRef(null),S=so(g,v),E=s(c,h);return ae.useEffect(()=>(E.itemMap.set(v,{ref:v,...y}),()=>void E.itemMap.delete(v))),f.jsx(ic,{[d]:"",ref:S,children:x})});p.displayName=c;function m(w){const g=s(e+"CollectionConsumer",w);return ae.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const y=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((E,b)=>y.indexOf(E.ref.current)-y.indexOf(b.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:l,ItemSlot:p},m,r]}var s$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Rn=s$.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:s,...i}=r,a=s?ic:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function qC(e,t){e&&Gn.flushSync(()=>e.dispatchEvent(t))}var i$="DismissableLayer",Kf="dismissableLayer.update",a$="dismissableLayer.pointerDownOutside",l$="dismissableLayer.focusOutside",Mg,QC=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),JC=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=u.useContext(QC),[d,p]=u.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=u.useState({}),g=so(t,C=>p(C)),h=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(x),v=d?h.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,E=v>=y,b=u$(C=>{const R=C.target,P=[...c.branches].some(j=>j.contains(R));!E||P||(o==null||o(C),i==null||i(C),C.defaultPrevented||a==null||a())},m),N=d$(C=>{const R=C.target;[...c.branches].some(j=>j.contains(R))||(s==null||s(C),i==null||i(C),C.defaultPrevented||a==null||a())},m);return Wp(C=>{v===c.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},m),u.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Mg=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),jg(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Mg)}},[d,m,n,c]),u.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),jg())},[d,c]),u.useEffect(()=>{const C=()=>w({});return document.addEventListener(Kf,C),()=>document.removeEventListener(Kf,C)},[]),f.jsx(Rn.div,{...l,ref:g,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:Ot(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Ot(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Ot(e.onPointerDownCapture,b.onPointerDownCapture)})});JC.displayName=i$;var c$="DismissableLayerBranch",e_=u.forwardRef((e,t)=>{const n=u.useContext(QC),r=u.useRef(null),o=so(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),f.jsx(Rn.div,{...e,ref:o})});e_.displayName=c$;function u$(e,t=globalThis==null?void 0:globalThis.document){const n=he(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){t_(a$,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function d$(e,t=globalThis==null?void 0:globalThis.document){const n=he(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&t_(l$,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function jg(){const e=new CustomEvent(Kf);document.dispatchEvent(e)}function t_(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qC(o,s):o.dispatchEvent(s)}var f$=JC,p$=e_,m$="Portal",n_=u.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=u.useState(!1);Re(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Ec.createPortal(f.jsx(Rn.div,{...r,ref:t}),i):null});n_.displayName=m$;function h$(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var r_=e=>{const{present:t,children:n}=e,r=v$(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=so(r.ref,g$(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};r_.displayName="Presence";function v$(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[a,l]=h$(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=Fa(r.current);s.current=a==="mounted"?c:"none"},[a]),Re(()=>{const c=r.current,d=o.current;if(d!==e){const m=s.current,w=Fa(c);e?l("MOUNT"):w==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&m!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Re(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=w=>{const h=Fa(r.current).includes(w.animationName);if(w.target===t&&h&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=w=>{w.target===t&&(s.current=Fa(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Fa(e){return(e==null?void 0:e.animationName)||"none"}function g$(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var y$="VisuallyHidden",Qm=u.forwardRef((e,t)=>f.jsx(Rn.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Qm.displayName=y$;var Jm="ToastProvider",[eh,w$,x$]=o$("Toast"),[o_,q$]=XC("Toast",[x$]),[S$,eu]=o_(Jm),s_=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=u.useState(null),[c,d]=u.useState(0),p=u.useRef(!1),m=u.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Jm}\`. Expected non-empty \`string\`.`),f.jsx(eh.Provider,{scope:t,children:f.jsx(S$,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:u.useCallback(()=>d(w=>w+1),[]),onToastRemove:u.useCallback(()=>d(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:i})})};s_.displayName=Jm;var i_="ToastViewport",b$=["F8"],Zf="toast.viewportPause",Gf="toast.viewportResume",a_=u.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=b$,label:o="Notifications ({hotkey})",...s}=e,i=eu(i_,n),a=w$(n),l=u.useRef(null),c=u.useRef(null),d=u.useRef(null),p=u.useRef(null),m=so(t,p,i.onViewportChange),w=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=i.toastCount>0;u.useEffect(()=>{const x=y=>{var S;r.length!==0&&r.every(E=>y[E]||y.code===E)&&((S=p.current)==null||S.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),u.useEffect(()=>{const x=l.current,y=p.current;if(g&&x&&y){const v=()=>{if(!i.isClosePausedRef.current){const N=new CustomEvent(Zf);y.dispatchEvent(N),i.isClosePausedRef.current=!0}},S=()=>{if(i.isClosePausedRef.current){const N=new CustomEvent(Gf);y.dispatchEvent(N),i.isClosePausedRef.current=!1}},E=N=>{!x.contains(N.relatedTarget)&&S()},b=()=>{x.contains(document.activeElement)||S()};return x.addEventListener("focusin",v),x.addEventListener("focusout",E),x.addEventListener("pointermove",v),x.addEventListener("pointerleave",b),window.addEventListener("blur",v),window.addEventListener("focus",S),()=>{x.removeEventListener("focusin",v),x.removeEventListener("focusout",E),x.removeEventListener("pointermove",v),x.removeEventListener("pointerleave",b),window.removeEventListener("blur",v),window.removeEventListener("focus",S)}}},[g,i.isClosePausedRef]);const h=u.useCallback(({tabbingDirection:x})=>{const v=a().map(S=>{const E=S.ref.current,b=[E,...I$(E)];return x==="forwards"?b:b.reverse()});return(x==="forwards"?v.reverse():v).flat()},[a]);return u.useEffect(()=>{const x=p.current;if(x){const y=v=>{var b,N,C;const S=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!S){const R=document.activeElement,P=v.shiftKey;if(v.target===x&&P){(b=c.current)==null||b.focus();return}const I=h({tabbingDirection:P?"backwards":"forwards"}),z=I.findIndex(D=>D===R);td(I.slice(z+1))?v.preventDefault():P?(N=c.current)==null||N.focus():(C=d.current)==null||C.focus()}};return x.addEventListener("keydown",y),()=>x.removeEventListener("keydown",y)}},[a,h]),f.jsxs(p$,{ref:l,role:"region","aria-label":o.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&f.jsx(Yf,{ref:c,onFocusFromOutsideViewport:()=>{const x=h({tabbingDirection:"forwards"});td(x)}}),f.jsx(eh.Slot,{scope:n,children:f.jsx(Rn.ol,{tabIndex:-1,...s,ref:m})}),g&&f.jsx(Yf,{ref:d,onFocusFromOutsideViewport:()=>{const x=h({tabbingDirection:"backwards"});td(x)}})]})});a_.displayName=i_;var l_="ToastFocusProxy",Yf=u.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=eu(l_,n);return f.jsx(Qm,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const a=i.relatedTarget;!((c=s.viewport)!=null&&c.contains(a))&&r()}})});Yf.displayName=l_;var tu="Toast",E$="toast.swipeStart",C$="toast.swipeMove",_$="toast.swipeCancel",N$="toast.swipeEnd",c_=u.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a=!0,l]=Bn({prop:r,defaultProp:o,onChange:s});return f.jsx(r_,{present:n||a,children:f.jsx(T$,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:he(e.onPause),onResume:he(e.onResume),onSwipeStart:Ot(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ot(e.onSwipeMove,c=>{const{x:d,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:Ot(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ot(e.onSwipeEnd,c=>{const{x:d,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});c_.displayName=tu;var[R$,k$]=o_(tu,{onClose(){}}),T$=u.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:m,onSwipeEnd:w,...g}=e,h=eu(tu,n),[x,y]=u.useState(null),v=so(t,D=>y(D)),S=u.useRef(null),E=u.useRef(null),b=o||h.duration,N=u.useRef(0),C=u.useRef(b),R=u.useRef(0),{onToastAdd:P,onToastRemove:j}=h,Y=he(()=>{var X;(x==null?void 0:x.contains(document.activeElement))&&((X=h.viewport)==null||X.focus()),i()}),I=u.useCallback(D=>{!D||D===1/0||(window.clearTimeout(R.current),N.current=new Date().getTime(),R.current=window.setTimeout(Y,D))},[Y]);u.useEffect(()=>{const D=h.viewport;if(D){const X=()=>{I(C.current),c==null||c()},K=()=>{const re=new Date().getTime()-N.current;C.current=C.current-re,window.clearTimeout(R.current),l==null||l()};return D.addEventListener(Zf,K),D.addEventListener(Gf,X),()=>{D.removeEventListener(Zf,K),D.removeEventListener(Gf,X)}}},[h.viewport,b,l,c,I]),u.useEffect(()=>{s&&!h.isClosePausedRef.current&&I(b)},[s,b,h.isClosePausedRef,I]),u.useEffect(()=>(P(),()=>j()),[P,j]);const z=u.useMemo(()=>x?v_(x):null,[x]);return h.viewport?f.jsxs(f.Fragment,{children:[z&&f.jsx(P$,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:z}),f.jsx(R$,{scope:n,onClose:Y,children:Gn.createPortal(f.jsx(eh.ItemSlot,{scope:n,children:f.jsx(f$,{asChild:!0,onEscapeKeyDown:Ot(a,()=>{h.isFocusedToastEscapeKeyDownRef.current||Y(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(Rn.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":h.swipeDirection,...g,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ot(e.onKeyDown,D=>{D.key==="Escape"&&(a==null||a(D.nativeEvent),D.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,Y()))}),onPointerDown:Ot(e.onPointerDown,D=>{D.button===0&&(S.current={x:D.clientX,y:D.clientY})}),onPointerMove:Ot(e.onPointerMove,D=>{if(!S.current)return;const X=D.clientX-S.current.x,K=D.clientY-S.current.y,re=!!E.current,A=["left","right"].includes(h.swipeDirection),O=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,B=A?O(0,X):0,te=A?0:O(0,K),fe=D.pointerType==="touch"?10:2,ze={x:B,y:te},ke={originalEvent:D,delta:ze};re?(E.current=ze,$a(C$,p,ke,{discrete:!1})):Ig(ze,h.swipeDirection,fe)?(E.current=ze,$a(E$,d,ke,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs(X)>fe||Math.abs(K)>fe)&&(S.current=null)}),onPointerUp:Ot(e.onPointerUp,D=>{const X=E.current,K=D.target;if(K.hasPointerCapture(D.pointerId)&&K.releasePointerCapture(D.pointerId),E.current=null,S.current=null,X){const re=D.currentTarget,A={originalEvent:D,delta:X};Ig(X,h.swipeDirection,h.swipeThreshold)?$a(N$,w,A,{discrete:!0}):$a(_$,m,A,{discrete:!0}),re.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),P$=e=>{const{__scopeToast:t,children:n,...r}=e,o=eu(tu,t),[s,i]=u.useState(!1),[a,l]=u.useState(!1);return M$(()=>i(!0)),u.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:f.jsx(n_,{asChild:!0,children:f.jsx(Qm,{...r,children:s&&f.jsxs(f.Fragment,{children:[o.label," ",n]})})})},A$="ToastTitle",u_=u.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(Rn.div,{...r,ref:t})});u_.displayName=A$;var O$="ToastDescription",d_=u.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(Rn.div,{...r,ref:t})});d_.displayName=O$;var f_="ToastAction",p_=u.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?f.jsx(h_,{altText:n,asChild:!0,children:f.jsx(th,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${f_}\`. Expected non-empty \`string\`.`),null)});p_.displayName=f_;var m_="ToastClose",th=u.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=k$(m_,n);return f.jsx(h_,{asChild:!0,children:f.jsx(Rn.button,{type:"button",...r,ref:t,onClick:Ot(e.onClick,o.onClose)})})});th.displayName=m_;var h_=u.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return f.jsx(Rn.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function v_(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),j$(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...v_(r))}}),t}function $a(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qC(o,s):o.dispatchEvent(s)}var Ig=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function M$(e=()=>{}){const t=he(e);Re(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function j$(e){return e.nodeType===e.ELEMENT_NODE}function I$(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 td(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var D$=s_,g_=a_,y_=c_,w_=u_,x_=d_,S_=p_,b_=th;const L$=D$,E_=u.forwardRef(({className:e,...t},n)=>f.jsx(g_,{ref:n,className:q("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));E_.displayName=g_.displayName;const F$=Qi("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),C_=u.forwardRef(({className:e,variant:t,...n},r)=>f.jsx(y_,{ref:r,className:q(F$({variant:t}),e),...n}));C_.displayName=y_.displayName;const $$=u.forwardRef(({className:e,...t},n)=>f.jsx(S_,{ref:n,className:q("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));$$.displayName=S_.displayName;const __=u.forwardRef(({className:e,...t},n)=>f.jsx(b_,{ref:n,className:q("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:f.jsx(Yk,{className:"h-4 w-4"})}));__.displayName=b_.displayName;const N_=u.forwardRef(({className:e,...t},n)=>f.jsx(w_,{ref:n,className:q("text-sm font-semibold",e),...t}));N_.displayName=w_.displayName;const R_=u.forwardRef(({className:e,...t},n)=>f.jsx(x_,{ref:n,className:q("text-sm opacity-90",e),...t}));R_.displayName=x_.displayName;function V$(){const{toasts:e}=QF();return f.jsxs(L$,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return f.jsxs(C_,{...s,children:[f.jsxs("div",{className:"grid gap-1",children:[n&&f.jsx(N_,{children:n}),r&&f.jsx(R_,{children:r})]}),o,f.jsx(__,{})]},t)}),f.jsx(E_,{})]})}const U$=()=>f.jsx(f.Fragment,{children:f.jsx(Uj,{children:f.jsx(VF,{clientId:"631323246333-a20r4lll1rs1k93viaobh6f2neushf2t.apps.googleusercontent.com",children:f.jsxs(Nj,{children:[f.jsx(KF,{}),f.jsx(V$,{})]})})})});Xw(document.getElementById("root")).render(f.jsx(u.StrictMode,{children:f.jsx(U$,{})})); diff --git a/dist/assets/index-wlaMX1-3.css b/dist/assets/index-wlaMX1-3.css deleted file mode 100644 index cbcbdd3..0000000 --- a/dist/assets/index-wlaMX1-3.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--radius: .5rem;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.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}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.top-0{top:0}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\[1\]{z-index:1}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-24{margin-top:6rem;margin-bottom:6rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-8{margin-top:2rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-6{width:1.5rem;height:1.5rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.min-h-screen{min-height:100vh}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-9{width:2.25rem}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[400px\]{width:400px}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.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}.max-w-max{max-width:-moz-max-content;max-width:max-content}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.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))}.rotate-45{--tw-rotate: 45deg;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))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.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}.list-none{list-style-type:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-4{gap:1rem}.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-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-10>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2.5rem * 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-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.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-sm{border-radius:calc(var(--radius) - 4px)}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-\[\#1D283A\]{--tw-border-opacity: 1;border-color:rgb(29 40 58 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[\#000000\]{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-\[\#030711\]{--tw-bg-opacity: 1;background-color:rgb(3 7 17 / var(--tw-bg-opacity))}.bg-\[\#1D283A\]{--tw-bg-opacity: 1;background-color:rgb(29 40 58 / var(--tw-bg-opacity))}.bg-\[\#333437\]{--tw-bg-opacity: 1;background-color:rgb(51 52 55 / var(--tw-bg-opacity))}.bg-\[\#F8FAFC\]{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-\[black\]{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:#000c}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.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-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fill-current{fill:currentColor}.fill-white{fill:#fff}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-28{padding-left:7rem;padding-right:7rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-2\.5{padding-left:.625rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-widest{letter-spacing:.1em}.text-\[\#7F8EA3\]{--tw-text-opacity: 1;color:rgb(127 142 163 / var(--tw-text-opacity))}.text-\[\#FFFFFF\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}.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}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.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-ring:focus{--tw-ring-color: hsl(var(--ring))}.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-offset-2:focus-visible{--tw-ring-offset-width: 2px}.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}.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-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.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-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{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-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden]{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-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed],.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.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%}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;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))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.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\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:absolute{position:absolute}.md\:mt-0{margin-top:0}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-\[400px\]{height:400px}.md\:w-20{width:5rem}.md\:w-\[720px\]{width:720px}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:justify-center{justify-content:center}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:px-24{padding-left:6rem;padding-right:6rem}.md\:px-28{padding-left:7rem;padding-right:7rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-base{font-size:1rem;line-height:1.5rem}}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1} diff --git a/dist/index.html b/dist/index.html index cbaef64..5d5ac2b 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,19 +1,19 @@ - - - - - - - - - LSCS Links - - - - -
- - + + + + + + + + + LSCS Links + + + + +
+ + diff --git a/package-lock.json b/package-lock.json index 7e194e7..4be2ce6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,9 +21,13 @@ "@radix-ui/react-separator": "^1.1.0", "@radix-ui/react-slot": "^1.1.0", "@radix-ui/react-tabs": "^1.1.0", + "@radix-ui/react-toast": "^1.2.2", + "@react-oauth/google": "^0.12.1", "axios": "^1.7.7", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", + "dotenv": "^16.4.5", + "jwt-decode": "^4.0.0", "lucide-react": "^0.445.0", "react": "^18.3.1", "react-cookie": "^7.2.0", @@ -1903,6 +1907,125 @@ } } }, + "node_modules/@radix-ui/react-toast": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-toast/-/react-toast-1.2.2.tgz", + "integrity": "sha512-Z6pqSzmAP/bFJoqMAston4eSNa+ud44NSZTiZUmUen+IOZ5nBY8kzuU5WDBVyFXPtcW6yUalOHsxM/BP6Sv8ww==", + "dependencies": { + "@radix-ui/primitive": "1.1.0", + "@radix-ui/react-collection": "1.1.0", + "@radix-ui/react-compose-refs": "1.1.0", + "@radix-ui/react-context": "1.1.1", + "@radix-ui/react-dismissable-layer": "1.1.1", + "@radix-ui/react-portal": "1.1.2", + "@radix-ui/react-presence": "1.1.1", + "@radix-ui/react-primitive": "2.0.0", + "@radix-ui/react-use-callback-ref": "1.1.0", + "@radix-ui/react-use-controllable-state": "1.1.0", + "@radix-ui/react-use-layout-effect": "1.1.0", + "@radix-ui/react-visually-hidden": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-context": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.1.tgz", + "integrity": "sha512-UASk9zi+crv9WteK/NU4PLvOoL3OuE6BWVKNF6hPRBtYBDXQ2u5iu3O59zUlJiTVvkyuycnqrztsHVJwcK9K+Q==", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-dismissable-layer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.1.tgz", + "integrity": "sha512-QSxg29lfr/xcev6kSz7MAlmDnzbP1eI/Dwn3Tp1ip0KT5CUELsxkekFEMVBEoykI3oV39hKT4TKZzBNMbcTZYQ==", + "dependencies": { + "@radix-ui/primitive": "1.1.0", + "@radix-ui/react-compose-refs": "1.1.0", + "@radix-ui/react-primitive": "2.0.0", + "@radix-ui/react-use-callback-ref": "1.1.0", + "@radix-ui/react-use-escape-keydown": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-portal": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.2.tgz", + "integrity": "sha512-WeDYLGPxJb/5EGBoedyJbT0MpoULmwnIPMJMSldkuiMsBAv7N1cRdsTWZWht9vpPOiN3qyiGAtbK2is47/uMFg==", + "dependencies": { + "@radix-ui/react-primitive": "2.0.0", + "@radix-ui/react-use-layout-effect": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-presence": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.1.tgz", + "integrity": "sha512-IeFXVi4YS1K0wVZzXNrbaaUvIJ3qdY+/Ih4eHFhWA9SwGR9UDX7Ck8abvL57C4cv3wwMvUE0OG69Qc3NCcTe/A==", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.0", + "@radix-ui/react-use-layout-effect": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, "node_modules/@radix-ui/react-use-callback-ref": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.0.tgz", @@ -2040,6 +2163,15 @@ "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.0.tgz", "integrity": "sha512-A9+lCBZoaMJlVKcRBz2YByCG+Cp2t6nAnMnNba+XiWxnj6r4JUFqfsgwocMBZU9LPtdxC6wB56ySYpc7LQIoJg==" }, + "node_modules/@react-oauth/google": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@react-oauth/google/-/google-0.12.1.tgz", + "integrity": "sha512-qagsy22t+7UdkYAiT5ZhfM4StXi9PPNvw0zuwNmabrWyMKddczMtBIOARflbaIj+wHiQjnMAsZmzsUYuXeyoSg==", + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, "node_modules/@remix-run/router": { "version": "1.19.2", "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.19.2.tgz", @@ -3062,6 +3194,17 @@ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" }, + "node_modules/dotenv": { + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -3889,6 +4032,14 @@ "node": ">=6" } }, + "node_modules/jwt-decode": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-4.0.0.tgz", + "integrity": "sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==", + "engines": { + "node": ">=18" + } + }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", diff --git a/package.json b/package.json index 670e585..5ea092a 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,13 @@ "@radix-ui/react-separator": "^1.1.0", "@radix-ui/react-slot": "^1.1.0", "@radix-ui/react-tabs": "^1.1.0", + "@radix-ui/react-toast": "^1.2.2", + "@react-oauth/google": "^0.12.1", "axios": "^1.7.7", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", + "dotenv": "^16.4.5", + "jwt-decode": "^4.0.0", "lucide-react": "^0.445.0", "react": "^18.3.1", "react-cookie": "^7.2.0", diff --git a/src/App.tsx b/src/App.tsx index f39a2c4..57dc2f3 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,14 +1,19 @@ import { Layout } from "./layout/Layout"; import { BrowserRouter as Router } from "react-router-dom"; import { CookiesProvider } from "react-cookie"; +import { GoogleOAuthProvider } from "@react-oauth/google"; +import { Toaster } from "@/components/ui/toaster"; const App = () => { return ( <> - - - + + + + + + ); diff --git a/src/components/Forms/LogIn.tsx b/src/components/Forms/LogIn.tsx deleted file mode 100644 index 432a683..0000000 --- a/src/components/Forms/LogIn.tsx +++ /dev/null @@ -1,135 +0,0 @@ -"use client"; - -import axios from "axios"; -import { zodResolver } from "@hookform/resolvers/zod"; -import { useForm } from "react-hook-form"; -import { z } from "zod"; - -import { Button } from "@/components/ui/button"; -import { - Form, - FormControl, - FormDescription, - FormField, - FormItem, - FormLabel, - FormMessage, -} from "@/components/ui/form"; -import { Input } from "@/components/ui/input"; - -import { useCookies } from "react-cookie"; -import { useState } from "react"; - -const loginSchema = z.object({ - email: z - .string() - .email() // Validates that the string is a valid email format - .refine((email) => email.endsWith("@dlsu.edu.ph"), { - message: "Email must end with '@dlsu.edu.ph'", - }), - password: z.string(), -}); - -export const LogIn = () => { - const [, setCurrentUser] = useCookies(["currentUser"]); - const [, setCurrentToken] = useCookies(["currentToken"]); - const [error, setError] = useState(null); - - const form = useForm>({ - resolver: zodResolver(loginSchema), - defaultValues: { - email: "", - password: "", - }, - }); - - const onSubmit = (values: z.infer) => { - const postData = async () => { - try { - const response = await axios.post( - "https://lscs.info/auth/login", - { email: values.email, password: values.password }, - { - headers: { - "Content-Type": "application/json", - }, - } - ); - if (response.data.status == "success") { - window.location.replace("/"); - } - setCurrentUser("currentUser", response.data.user, { path: "/" }); - console.log(response.data.token); - setCurrentToken("currentToken", response.data.token, { path: "/" }); - } catch (e: unknown) { - const error = - (e as any)?.response?.data?.error || - (e as Error)?.message || - "An unknown error occurred"; - - console.log(e); - setError(error); - } - }; - postData(); - }; - - return ( - <> -
-
- - ( - <> - - Email - - - - Input Email - - - - )} - /> - ( - <> - - Password - - - - Input Password - - - - )} - /> - {error ?

{error}

: null} - - - -
- - ); -}; diff --git a/src/components/Forms/Register.tsx b/src/components/Forms/Register.tsx deleted file mode 100644 index 1d06039..0000000 --- a/src/components/Forms/Register.tsx +++ /dev/null @@ -1,123 +0,0 @@ -"use client"; - -import axios from "axios"; -import { zodResolver } from "@hookform/resolvers/zod"; -import { useForm } from "react-hook-form"; -import { z } from "zod"; - -import { Button } from "@/components/ui/button"; -import { - Form, - FormControl, - FormDescription, - FormField, - FormItem, - FormLabel, - FormMessage, -} from "@/components/ui/form"; -import { Input } from "@/components/ui/input"; - -const registerSchema = z.object({ - email: z - .string() - .email() // Validates that the string is a valid email format - .refine((email) => email.endsWith("@dlsu.edu.ph"), { - message: "Email must end with '@dlsu.edu.ph'", - }), - password: z.string().min(8, "Password must be at least 8 characters long"), -}); - -export const Register = () => { - const form = useForm>({ - resolver: zodResolver(registerSchema), - defaultValues: { - email: "", - password: "", - }, - }); - - const onSubmit = (values: z.infer) => { - const postData = async () => { - try { - const response = await axios.post( - "https://lscs.info/auth/register", - { email: values.email, password: values.password }, - { - headers: { - "Content-Type": "application/json", - }, - } - ); - console.log(response.data); - if (response.data.status == "success") { - window.location.replace("/accessAccount"); - } - } catch (e) { - console.log(e); - } - }; - postData(); - }; - - return ( - <> -
-
- - ( - <> - - Email - - - - - Input DLSU email must include @dlsu.edu.ph - - - - - )} - /> - ( - <> - - Password - - - - - Password must be at least 8 characters long - - - - - )} - /> - - - -
- - ); -}; diff --git a/src/components/GoogleLogIn/GoogleLogIn.tsx b/src/components/GoogleLogIn/GoogleLogIn.tsx new file mode 100644 index 0000000..946ddd6 --- /dev/null +++ b/src/components/GoogleLogIn/GoogleLogIn.tsx @@ -0,0 +1,155 @@ +import { Button } from "@/components/ui/button"; +import { useGoogleLogin } from "@react-oauth/google"; +import { useEffect, useState } from "react"; +import axios from "axios"; +import { useCookies } from "react-cookie"; +// import { useToast } from "@/hooks/use-toast"; +// import { ToastAction } from "@/components/ui/toast"; + +export const GoogleLogIn = () => { + const [user, setUser] = useState(); + const [, setCurrentUser] = useCookies(["currentUser"]); + const [, setCurrentToken] = useCookies(["currentToken"]); + const [, setCurrentLinksToken] = useCookies(["currentLinksToken"]); + + const logIn = useGoogleLogin({ + onSuccess: (response) => setUser(response), + onError: (error) => { + console.log(error); + setUser(null); + }, + }); + + // const { toast } = useToast(); + + useEffect(() => { + const getGoogleAccount = async () => { + try { + const response = await axios.get( + `https://www.googleapis.com/oauth2/v1/userinfo?access_token=${user.access_token}`, + { + headers: { + Authorization: `Bearer ${user.access_token}`, + Accept: "application/json", + }, + } + ); + + const getLogin = async (token: string, email: string) => { + try { + const response = await axios.post( + "https://linksapidev.app.dlsu-lscs.org/auth/login", + { token: token }, + { + headers: { + "Content-Type": "application/json", + }, + } + ); + console.log(response.data); + if (response.data.status == "success") { + setCurrentLinksToken( + "currentLinksToken", + response.data.jwt_token + ); + setCurrentUser("currentUser", email, { path: "/" }); + setCurrentToken("currentToken", user.access_token, { path: "/" }); + window.location.reload(); + window.location.replace("/"); + } + } catch (e) { + console.log("Log In Error: " + e); + } + }; + + // const checkEmail = async (email: string) => { + // try { + // const response = await axios.post( + // "/auth/check-email", + // { email: email }, + // { + // headers: { + // "Content-Type": "application/json", + // }, + // } + // ); + // if (response.data.state == "present") { + // setCurrentUser("currentUser", email, { path: "/" }); + // setCurrentToken("currentToken", user.access_token, { path: "/" }); + // getLogin(currentToken.currentToken); + // } else if (response.data.state == "absent") { + // toast({ + // variant: "destructive", + // title: "bossing d ka member ng lscs", + // description: "sino ka ba hahahaah", + // action: ( + // + // try mo ulet hehehe + // + // ), + // }); + // } + // } catch (e) { + // console.log(e); + // toast({ + // variant: "destructive", + // title: "bossing d ka member ng lscs", + // description: "sino ka ba hahahaah", + // action: ( + // + // try mo ulet hehehe + // + // ), + // }); + // } + // }; + // checkEmail(response.data.email); + getLogin(user.access_token, response.data.email); + } catch (e) { + console.log(e); + } + }; + if (user) { + getGoogleAccount(); + } + }, user); + + return ( + <> + + + ); +}; diff --git a/src/components/Links/Link.tsx b/src/components/Links/Link.tsx index f428880..70fbd47 100644 --- a/src/components/Links/Link.tsx +++ b/src/components/Links/Link.tsx @@ -28,10 +28,10 @@ export const Link = ({ qr_preview, qr_download, }: linkData) => { - const [currentToken] = useCookies(["currentToken"]); - const token = currentToken.currentToken; + const [currentLinksToken] = useCookies(["currentLinksToken"]); + const token = currentLinksToken.currentLinksToken; const { data, loading } = useFetch( - `https://lscs.info/analytics/${shortLink}`, + `https://linksapidev.app.dlsu-lscs.org/analytics/${shortLink}`, token ); diff --git a/src/components/Links/Links.tsx b/src/components/Links/Links.tsx index f736ad3..7effc6a 100644 --- a/src/components/Links/Links.tsx +++ b/src/components/Links/Links.tsx @@ -29,19 +29,19 @@ type Data = { }; export const Links = () => { - const [currentToken, , removeCurrentToken] = useCookies(["currentToken"]); + const [currentLinksToken, ,] = useCookies(["currentLinksToken"]); const [page, setPage] = useState(1); - const { data, loading, error, errorCode } = useFetch( - "https://lscs.info/admin/links?limit=10&page=" + page, - currentToken.currentToken + const { data, loading, error } = useFetch( + "https://linksapidev.app.dlsu-lscs.org/admin/links?limit=10&page=" + page, + currentLinksToken.currentLinksToken ); const fetchedData: Data | null = data as Data | null; const totalPage = fetchedData?.totalPages ?? 1; if (error) { - if (errorCode == 403) removeCurrentToken("currentToken"); + // if (errorCode == 403) removeCurrentToken("currentToken"); return ( <>

Error {error.message}

diff --git a/src/components/NavBar/NavBar.tsx b/src/components/NavBar/NavBar.tsx index 8504934..22285aa 100644 --- a/src/components/NavBar/NavBar.tsx +++ b/src/components/NavBar/NavBar.tsx @@ -94,7 +94,7 @@ export const NavBar = () => { {"currentToken" in currentToken ? ( - {" "} + {" "} My Account @@ -108,9 +108,7 @@ export const NavBar = () => { - ) : ( - - )} + ) : null} {"currentToken" in currentToken ? (
diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx new file mode 100644 index 0000000..f62edea --- /dev/null +++ b/src/components/ui/card.tsx @@ -0,0 +1,79 @@ +import * as React from "react" + +import { cn } from "@/lib/utils" + +const Card = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +Card.displayName = "Card" + +const CardHeader = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +CardHeader.displayName = "CardHeader" + +const CardTitle = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +CardTitle.displayName = "CardTitle" + +const CardDescription = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +CardDescription.displayName = "CardDescription" + +const CardContent = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +CardContent.displayName = "CardContent" + +const CardFooter = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +CardFooter.displayName = "CardFooter" + +export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } diff --git a/src/components/ui/toast.tsx b/src/components/ui/toast.tsx new file mode 100644 index 0000000..a822477 --- /dev/null +++ b/src/components/ui/toast.tsx @@ -0,0 +1,127 @@ +import * as React from "react" +import * as ToastPrimitives from "@radix-ui/react-toast" +import { cva, type VariantProps } from "class-variance-authority" +import { X } from "lucide-react" + +import { cn } from "@/lib/utils" + +const ToastProvider = ToastPrimitives.Provider + +const ToastViewport = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +ToastViewport.displayName = ToastPrimitives.Viewport.displayName + +const toastVariants = cva( + "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", + { + variants: { + variant: { + default: "border bg-background text-foreground", + destructive: + "destructive group border-destructive bg-destructive text-destructive-foreground", + }, + }, + defaultVariants: { + variant: "default", + }, + } +) + +const Toast = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef & + VariantProps +>(({ className, variant, ...props }, ref) => { + return ( + + ) +}) +Toast.displayName = ToastPrimitives.Root.displayName + +const ToastAction = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +ToastAction.displayName = ToastPrimitives.Action.displayName + +const ToastClose = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + + + +)) +ToastClose.displayName = ToastPrimitives.Close.displayName + +const ToastTitle = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +ToastTitle.displayName = ToastPrimitives.Title.displayName + +const ToastDescription = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +ToastDescription.displayName = ToastPrimitives.Description.displayName + +type ToastProps = React.ComponentPropsWithoutRef + +type ToastActionElement = React.ReactElement + +export { + type ToastProps, + type ToastActionElement, + ToastProvider, + ToastViewport, + Toast, + ToastTitle, + ToastDescription, + ToastClose, + ToastAction, +} diff --git a/src/components/ui/toaster.tsx b/src/components/ui/toaster.tsx new file mode 100644 index 0000000..6c67edf --- /dev/null +++ b/src/components/ui/toaster.tsx @@ -0,0 +1,33 @@ +import { useToast } from "@/hooks/use-toast" +import { + Toast, + ToastClose, + ToastDescription, + ToastProvider, + ToastTitle, + ToastViewport, +} from "@/components/ui/toast" + +export function Toaster() { + const { toasts } = useToast() + + return ( + + {toasts.map(function ({ id, title, description, action, ...props }) { + return ( + +
+ {title && {title}} + {description && ( + {description} + )} +
+ {action} + +
+ ) + })} + +
+ ) +} diff --git a/src/hooks/use-toast.ts b/src/hooks/use-toast.ts new file mode 100644 index 0000000..02e111d --- /dev/null +++ b/src/hooks/use-toast.ts @@ -0,0 +1,194 @@ +"use client" + +// Inspired by react-hot-toast library +import * as React from "react" + +import type { + ToastActionElement, + ToastProps, +} from "@/components/ui/toast" + +const TOAST_LIMIT = 1 +const TOAST_REMOVE_DELAY = 1000000 + +type ToasterToast = ToastProps & { + id: string + title?: React.ReactNode + description?: React.ReactNode + action?: ToastActionElement +} + +const actionTypes = { + ADD_TOAST: "ADD_TOAST", + UPDATE_TOAST: "UPDATE_TOAST", + DISMISS_TOAST: "DISMISS_TOAST", + REMOVE_TOAST: "REMOVE_TOAST", +} as const + +let count = 0 + +function genId() { + count = (count + 1) % Number.MAX_SAFE_INTEGER + return count.toString() +} + +type ActionType = typeof actionTypes + +type Action = + | { + type: ActionType["ADD_TOAST"] + toast: ToasterToast + } + | { + type: ActionType["UPDATE_TOAST"] + toast: Partial + } + | { + type: ActionType["DISMISS_TOAST"] + toastId?: ToasterToast["id"] + } + | { + type: ActionType["REMOVE_TOAST"] + toastId?: ToasterToast["id"] + } + +interface State { + toasts: ToasterToast[] +} + +const toastTimeouts = new Map>() + +const addToRemoveQueue = (toastId: string) => { + if (toastTimeouts.has(toastId)) { + return + } + + const timeout = setTimeout(() => { + toastTimeouts.delete(toastId) + dispatch({ + type: "REMOVE_TOAST", + toastId: toastId, + }) + }, TOAST_REMOVE_DELAY) + + toastTimeouts.set(toastId, timeout) +} + +export const reducer = (state: State, action: Action): State => { + switch (action.type) { + case "ADD_TOAST": + return { + ...state, + toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT), + } + + case "UPDATE_TOAST": + return { + ...state, + toasts: state.toasts.map((t) => + t.id === action.toast.id ? { ...t, ...action.toast } : t + ), + } + + case "DISMISS_TOAST": { + const { toastId } = action + + // ! Side effects ! - This could be extracted into a dismissToast() action, + // but I'll keep it here for simplicity + if (toastId) { + addToRemoveQueue(toastId) + } else { + state.toasts.forEach((toast) => { + addToRemoveQueue(toast.id) + }) + } + + return { + ...state, + toasts: state.toasts.map((t) => + t.id === toastId || toastId === undefined + ? { + ...t, + open: false, + } + : t + ), + } + } + case "REMOVE_TOAST": + if (action.toastId === undefined) { + return { + ...state, + toasts: [], + } + } + return { + ...state, + toasts: state.toasts.filter((t) => t.id !== action.toastId), + } + } +} + +const listeners: Array<(state: State) => void> = [] + +let memoryState: State = { toasts: [] } + +function dispatch(action: Action) { + memoryState = reducer(memoryState, action) + listeners.forEach((listener) => { + listener(memoryState) + }) +} + +type Toast = Omit + +function toast({ ...props }: Toast) { + const id = genId() + + const update = (props: ToasterToast) => + dispatch({ + type: "UPDATE_TOAST", + toast: { ...props, id }, + }) + const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id }) + + dispatch({ + type: "ADD_TOAST", + toast: { + ...props, + id, + open: true, + onOpenChange: (open) => { + if (!open) dismiss() + }, + }, + }) + + return { + id: id, + dismiss, + update, + } +} + +function useToast() { + const [state, setState] = React.useState(memoryState) + + React.useEffect(() => { + listeners.push(setState) + return () => { + const index = listeners.indexOf(setState) + if (index > -1) { + listeners.splice(index, 1) + } + } + }, [state]) + + return { + ...state, + toast, + dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }), + } +} + +export { useToast, toast } diff --git a/src/main.tsx b/src/main.tsx index 6f4ac9b..0ebf5a7 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,10 +1,10 @@ -import { StrictMode } from 'react' -import { createRoot } from 'react-dom/client' -import App from './App.tsx' -import './index.css' +import { StrictMode } from "react"; +import { createRoot } from "react-dom/client"; +import App from "./App.tsx"; +import "./index.css"; -createRoot(document.getElementById('root')!).render( +createRoot(document.getElementById("root")!).render( - , -) + +); diff --git a/src/pages/accessAccount.tsx b/src/pages/accessAccount.tsx index efdccfd..b3b4295 100644 --- a/src/pages/accessAccount.tsx +++ b/src/pages/accessAccount.tsx @@ -1,34 +1,21 @@ -import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; - -import { LogIn } from "@/components/Forms/LogIn"; -import { Register } from "@/components/Forms/Register"; +import { GoogleLogIn } from "@/components/GoogleLogIn/GoogleLogIn"; +import { useCookies } from "react-cookie"; export const AccessAccount = () => { + //check if there is current token + const [currentToken, ,] = useCookies(["currentToken"]); + if ("currentToken" in currentToken) window.location.replace("/"); + return ( <>
-
- - - - Log-In - - - Register - - - -

Log-In

- -
- -

Register

- -
-
+
+
+

LSCS Link Shortener

+ + + +
diff --git a/tsconfig.app.tsbuildinfo b/tsconfig.app.tsbuildinfo index 9ad49b3..6e11b8a 100644 --- a/tsconfig.app.tsbuildinfo +++ b/tsconfig.app.tsbuildinfo @@ -1 +1 @@ -{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/pagerouter.tsx","./src/components/forms/createlink.tsx","./src/components/forms/editlink.tsx","./src/components/forms/login.tsx","./src/components/forms/register.tsx","./src/components/links/link.tsx","./src/components/links/links.tsx","./src/components/navbar/navbar.tsx","./src/components/user_icon/usericon.tsx","./src/components/ui/alert-dialog.tsx","./src/components/ui/avatar.tsx","./src/components/ui/badge.tsx","./src/components/ui/button.tsx","./src/components/ui/dropdown-menu.tsx","./src/components/ui/form.tsx","./src/components/ui/input.tsx","./src/components/ui/label.tsx","./src/components/ui/menubar.tsx","./src/components/ui/navigation-menu.tsx","./src/components/ui/pagination.tsx","./src/components/ui/scroll-area.tsx","./src/components/ui/select.tsx","./src/components/ui/separator.tsx","./src/components/ui/tabs.tsx","./src/hooks/usefetch.tsx","./src/layout/layout.tsx","./src/lib/utils.ts","./src/pages/accessaccount.tsx","./src/pages/linkshortener.tsx"],"version":"5.6.2"} \ No newline at end of file +{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/pagerouter.tsx","./src/components/forms/createlink.tsx","./src/components/forms/editlink.tsx","./src/components/googlelogin/googlelogin.tsx","./src/components/links/link.tsx","./src/components/links/links.tsx","./src/components/navbar/navbar.tsx","./src/components/user_icon/usericon.tsx","./src/components/ui/alert-dialog.tsx","./src/components/ui/avatar.tsx","./src/components/ui/badge.tsx","./src/components/ui/button.tsx","./src/components/ui/card.tsx","./src/components/ui/dropdown-menu.tsx","./src/components/ui/form.tsx","./src/components/ui/input.tsx","./src/components/ui/label.tsx","./src/components/ui/menubar.tsx","./src/components/ui/navigation-menu.tsx","./src/components/ui/pagination.tsx","./src/components/ui/scroll-area.tsx","./src/components/ui/select.tsx","./src/components/ui/separator.tsx","./src/components/ui/tabs.tsx","./src/components/ui/toast.tsx","./src/components/ui/toaster.tsx","./src/hooks/use-toast.ts","./src/hooks/usefetch.tsx","./src/layout/layout.tsx","./src/lib/utils.ts","./src/pages/accessaccount.tsx","./src/pages/linkshortener.tsx"],"version":"5.6.2"} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index d36c010..18c37d4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,6 +4,15 @@ import { defineConfig } from "vite" export default defineConfig({ plugins: [react()], + server: { + proxy: { + "/auth": { + target: "https://auth.app.dlsu-lscs.org", + changeOrigin: true, + rewrite: (path) => path.replace(/^\/auth/, ""), + }, + }, + }, resolve: { alias: { "@": path.resolve(__dirname, "./src"),