diff --git a/build.ts b/build.ts index ecf5296..721cd3d 100644 --- a/build.ts +++ b/build.ts @@ -3,7 +3,17 @@ import { join } from "path" import { refreshTemplateWorkerCommand } from "@kksh/api/dev" import { $ } from "bun" -const entrypoints = ["./src/index-github.ts", "./src/index-nostrcom.ts"] +// Define an empty array to store entrypoints +const entrypoints: string[] = []; + + +if (Bun.argv.includes("--headless")) { + entrypoints.push("./src/index-github.ts", "./src/index-nostrcom.ts") +} + +if (Bun.argv.includes("--template")) { + entrypoints.push("./src/index-nip.ts") +} async function build() { try { diff --git a/dist/assets/index-B-iQgq6W.css b/dist/assets/index-B-iQgq6W.css deleted file mode 100644 index 32857a6..0000000 --- a/dist/assets/index-B-iQgq6W.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 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}.dark{--background: 0 0% 3.9%;--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--ring: 0 0% 83.1%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.bottom-0{bottom:0}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.block{display:block}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\[1\.2rem\]{height:1.2rem}.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-auto{height:auto}.h-px{height:1px}.max-h-96{max-height:24rem}.max-h-screen{max-height:100vh}.min-h-\[60px\]{min-height:60px}.w-0{width:0px}.w-1{width:.25rem}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-5{width:1.25rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[340px\]{width:340px}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.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}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.-translate-x-1{--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))}.-translate-x-1\/2{--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-1\/2{--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))}.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-0{--tw-rotate: 0deg;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))}.rotate-90{--tw-rotate: 90deg;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))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;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))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.transform{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 pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) 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}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.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-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-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-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded-\[0\.5rem\]{border-radius:.5rem}.rounded-\[2px\]{border-radius:2px}.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-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t,.border-t-\[1px\]{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-border\/50{border-color:hsl(var(--border) / .5)}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-primary\/50{border-color:hsl(var(--primary) / .5)}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-\[--theme-primary\]{background-color:var(--theme-primary)}.bg-accent{background-color:hsl(var(--accent))}.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-foreground{background-color:hsl(var(--foreground))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.fill-current{fill:currentColor}.fill-primary{fill:hsl(var(--primary))}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-\[0\.8rem\]{font-size:.8rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.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-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-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.accent-foreground{accent-color:hsl(var(--foreground))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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-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)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px 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{--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(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-ring{--tw-ring-color: hsl(var(--ring))}.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}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-1000{animation-duration:1s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.dark{color-scheme:dark}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-1:after{content:var(--tw-content);width:.25rem}.after\:-translate-x-1\/2:after{content:var(--tw-content);--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))}.first\:rounded-l-md:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.first\:border-l:first-child{border-left-width:1px}.last\:rounded-r-md:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary:hover{background-color:hsl(var(--primary))}.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\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1: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(1px + 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-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-1: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(1px + 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-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-1:focus-visible{--tw-ring-offset-width: 1px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted) / .4)}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.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}.has-\[\:disabled\]\:opacity-50:has(:disabled){opacity:.5}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:bg-accent\/50[aria-selected=true]{background-color:hsl(var(--accent) / .5)}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.aria-selected\:opacity-30[aria-selected=true]{opacity:.3}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.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))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.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\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on],.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\=true\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.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-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.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%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--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))}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--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))}.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\:-rotate-90:is(.dark *){--tw-rotate: -90deg;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\:rotate-0:is(.dark *){--tw-rotate: 0deg;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\:scale-0:is(.dark *){--tw-scale-x: 0;--tw-scale-y: 0;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\:scale-100:is(.dark *){--tw-scale-x: 1;--tw-scale-y: 1;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\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}@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\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.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\: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\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\: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))}.md\:pt-0{padding-top:0}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:has\(\>\.day-range-end\)\]\:rounded-r-md:has(>.day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\>\.day-range-start\)\]\:rounded-l-md:has(>.day-range-start){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:rounded-md:has([aria-selected]){border-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50:has([aria-selected].day-outside){background-color:hsl(var(--accent) / .5)}.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y: 2px;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))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;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))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--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))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border) / .5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}.theme-zinc{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--ring: 240 5.9% 10%;--radius: .5rem}.dark .theme-zinc{--background: 240 10% 3.9%;--foreground: 0 0% 98%;--muted: 240 3.7% 15.9%;--muted-foreground: 240 5% 64.9%;--popover: 240 10% 3.9%;--popover-foreground: 0 0% 98%;--card: 240 10% 3.9%;--card-foreground: 0 0% 98%;--border: 240 3.7% 15.9%;--input: 240 3.7% 15.9%;--primary: 0 0% 98%;--primary-foreground: 240 5.9% 10%;--secondary: 240 3.7% 15.9%;--secondary-foreground: 0 0% 98%;--accent: 240 3.7% 15.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--ring: 240 4.9% 83.9%}.theme-slate{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--ring: 222.2 84% 4.9%;--radius: .5rem}.dark .theme-slate{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--ring: 212.7 26.8% 83.9}.theme-stone{--background: 0 0% 100%;--foreground: 20 14.3% 4.1%;--muted: 60 4.8% 95.9%;--muted-foreground: 25 5.3% 44.7%;--popover: 0 0% 100%;--popover-foreground: 20 14.3% 4.1%;--card: 0 0% 100%;--card-foreground: 20 14.3% 4.1%;--border: 20 5.9% 90%;--input: 20 5.9% 90%;--primary: 24 9.8% 10%;--primary-foreground: 60 9.1% 97.8%;--secondary: 60 4.8% 95.9%;--secondary-foreground: 24 9.8% 10%;--accent: 60 4.8% 95.9%;--accent-foreground: 24 9.8% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 60 9.1% 97.8%;--ring: 20 14.3% 4.1%;--radius: .95rem}.dark .theme-stone{--background: 20 14.3% 4.1%;--foreground: 60 9.1% 97.8%;--muted: 12 6.5% 15.1%;--muted-foreground: 24 5.4% 63.9%;--popover: 20 14.3% 4.1%;--popover-foreground: 60 9.1% 97.8%;--card: 20 14.3% 4.1%;--card-foreground: 60 9.1% 97.8%;--border: 12 6.5% 15.1%;--input: 12 6.5% 15.1%;--primary: 60 9.1% 97.8%;--primary-foreground: 24 9.8% 10%;--secondary: 12 6.5% 15.1%;--secondary-foreground: 60 9.1% 97.8%;--accent: 12 6.5% 15.1%;--accent-foreground: 60 9.1% 97.8%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 60 9.1% 97.8%;--ring: 24 5.7% 82.9%}.theme-gray{--background: 0 0% 100%;--foreground: 224 71.4% 4.1%;--muted: 220 14.3% 95.9%;--muted-foreground: 220 8.9% 46.1%;--popover: 0 0% 100%;--popover-foreground: 224 71.4% 4.1%;--card: 0 0% 100%;--card-foreground: 224 71.4% 4.1%;--border: 220 13% 91%;--input: 220 13% 91%;--primary: 220.9 39.3% 11%;--primary-foreground: 210 20% 98%;--secondary: 220 14.3% 95.9%;--secondary-foreground: 220.9 39.3% 11%;--accent: 220 14.3% 95.9%;--accent-foreground: 220.9 39.3% 11%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 20% 98%;--ring: 224 71.4% 4.1%;--radius: .35rem}.dark .theme-gray{--background: 224 71.4% 4.1%;--foreground: 210 20% 98%;--muted: 215 27.9% 16.9%;--muted-foreground: 217.9 10.6% 64.9%;--popover: 224 71.4% 4.1%;--popover-foreground: 210 20% 98%;--card: 224 71.4% 4.1%;--card-foreground: 210 20% 98%;--border: 215 27.9% 16.9%;--input: 215 27.9% 16.9%;--primary: 210 20% 98%;--primary-foreground: 220.9 39.3% 11%;--secondary: 215 27.9% 16.9%;--secondary-foreground: 210 20% 98%;--accent: 215 27.9% 16.9%;--accent-foreground: 210 20% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 20% 98%;--ring: 216 12.2% 83.9%}.theme-neutral{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--ring: 0 0% 3.9%;--radius: }.dark .theme-neutral{--background: 0 0% 3.9%;--foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--ring: 0 0% 83.1%}.theme-red{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--primary: 0 72.2% 50.6%;--primary-foreground: 0 85.7% 97.3%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--ring: 0 72.2% 50.6%;--radius: .4rem}.dark .theme-red{--background: 0 0% 3.9%;--foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--primary: 0 72.2% 50.6%;--primary-foreground: 0 85.7% 97.3%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--ring: 0 72.2% 50.6%}.theme-rose{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--primary: 346.8 77.2% 49.8%;--primary-foreground: 355.7 100% 97.3%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--ring: 346.8 77.2% 49.8%;--radius: .5rem}.dark .theme-rose{--background: 20 14.3% 4.1%;--foreground: 0 0% 95%;--muted: 0 0% 15%;--muted-foreground: 240 5% 64.9%;--popover: 0 0% 9%;--popover-foreground: 0 0% 95%;--card: 24 9.8% 10%;--card-foreground: 0 0% 95%;--border: 240 3.7% 15.9%;--input: 240 3.7% 15.9%;--primary: 346.8 77.2% 49.8%;--primary-foreground: 355.7 100% 97.3%;--secondary: 240 3.7% 15.9%;--secondary-foreground: 0 0% 98%;--accent: 12 6.5% 15.1%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 85.7% 97.3%;--ring: 346.8 77.2% 49.8%}.theme-orange{--background: 0 0% 100%;--foreground: 20 14.3% 4.1%;--muted: 60 4.8% 95.9%;--muted-foreground: 25 5.3% 44.7%;--popover: 0 0% 100%;--popover-foreground: 20 14.3% 4.1%;--card: 0 0% 100%;--card-foreground: 20 14.3% 4.1%;--border: 20 5.9% 90%;--input: 20 5.9% 90%;--primary: 24.6 95% 53.1%;--primary-foreground: 60 9.1% 97.8%;--secondary: 60 4.8% 95.9%;--secondary-foreground: 24 9.8% 10%;--accent: 60 4.8% 95.9%;--accent-foreground: 24 9.8% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 60 9.1% 97.8%;--ring: 24.6 95% 53.1%;--radius: .95rem}.dark .theme-orange{--background: 20 14.3% 4.1%;--foreground: 60 9.1% 97.8%;--muted: 12 6.5% 15.1%;--muted-foreground: 24 5.4% 63.9%;--popover: 20 14.3% 4.1%;--popover-foreground: 60 9.1% 97.8%;--card: 20 14.3% 4.1%;--card-foreground: 60 9.1% 97.8%;--border: 12 6.5% 15.1%;--input: 12 6.5% 15.1%;--primary: 20.5 90.2% 48.2%;--primary-foreground: 60 9.1% 97.8%;--secondary: 12 6.5% 15.1%;--secondary-foreground: 60 9.1% 97.8%;--accent: 12 6.5% 15.1%;--accent-foreground: 60 9.1% 97.8%;--destructive: 0 72.2% 50.6%;--destructive-foreground: 60 9.1% 97.8%;--ring: 20.5 90.2% 48.2%}.theme-green{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--primary: 142.1 76.2% 36.3%;--primary-foreground: 355.7 100% 97.3%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--ring: 142.1 76.2% 36.3%;--radius: }.dark .theme-green{--background: 20 14.3% 4.1%;--foreground: 0 0% 95%;--muted: 0 0% 15%;--muted-foreground: 240 5% 64.9%;--popover: 0 0% 9%;--popover-foreground: 0 0% 95%;--card: 24 9.8% 10%;--card-foreground: 0 0% 95%;--border: 240 3.7% 15.9%;--input: 240 3.7% 15.9%;--primary: 142.1 70.6% 45.3%;--primary-foreground: 144.9 80.4% 10%;--secondary: 240 3.7% 15.9%;--secondary-foreground: 0 0% 98%;--accent: 12 6.5% 15.1%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 85.7% 97.3%;--ring: 142.4 71.8% 29.2%}.theme-blue{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--primary: 221.2 83.2% 53.3%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--ring: 221.2 83.2% 53.3%;--radius: }.dark .theme-blue{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--primary: 217.2 91.2% 59.8%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--ring: 224.3 76.3% 48%}.theme-yellow{--background: 0 0% 100%;--foreground: 20 14.3% 4.1%;--muted: 60 4.8% 95.9%;--muted-foreground: 25 5.3% 44.7%;--popover: 0 0% 100%;--popover-foreground: 20 14.3% 4.1%;--card: 0 0% 100%;--card-foreground: 20 14.3% 4.1%;--border: 20 5.9% 90%;--input: 20 5.9% 90%;--primary: 47.9 95.8% 53.1%;--primary-foreground: 26 83.3% 14.1%;--secondary: 60 4.8% 95.9%;--secondary-foreground: 24 9.8% 10%;--accent: 60 4.8% 95.9%;--accent-foreground: 24 9.8% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 60 9.1% 97.8%;--ring: 20 14.3% 4.1%;--radius: .95rem}.dark .theme-yellow{--background: 20 14.3% 4.1%;--foreground: 60 9.1% 97.8%;--muted: 12 6.5% 15.1%;--muted-foreground: 24 5.4% 63.9%;--popover: 20 14.3% 4.1%;--popover-foreground: 60 9.1% 97.8%;--card: 20 14.3% 4.1%;--card-foreground: 60 9.1% 97.8%;--border: 12 6.5% 15.1%;--input: 12 6.5% 15.1%;--primary: 47.9 95.8% 53.1%;--primary-foreground: 26 83.3% 14.1%;--secondary: 12 6.5% 15.1%;--secondary-foreground: 60 9.1% 97.8%;--accent: 12 6.5% 15.1%;--accent-foreground: 60 9.1% 97.8%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 60 9.1% 97.8%;--ring: 35.5 91.7% 32.9%}.theme-violet{--background: 0 0% 100%;--foreground: 224 71.4% 4.1%;--muted: 220 14.3% 95.9%;--muted-foreground: 220 8.9% 46.1%;--popover: 0 0% 100%;--popover-foreground: 224 71.4% 4.1%;--card: 0 0% 100%;--card-foreground: 224 71.4% 4.1%;--border: 220 13% 91%;--input: 220 13% 91%;--primary: 262.1 83.3% 57.8%;--primary-foreground: 210 20% 98%;--secondary: 220 14.3% 95.9%;--secondary-foreground: 220.9 39.3% 11%;--accent: 220 14.3% 95.9%;--accent-foreground: 220.9 39.3% 11%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 20% 98%;--ring: 262.1 83.3% 57.8%;--radius: }.dark .theme-violet{--background: 224 71.4% 4.1%;--foreground: 210 20% 98%;--muted: 215 27.9% 16.9%;--muted-foreground: 217.9 10.6% 64.9%;--popover: 224 71.4% 4.1%;--popover-foreground: 210 20% 98%;--card: 224 71.4% 4.1%;--card-foreground: 210 20% 98%;--border: 215 27.9% 16.9%;--input: 215 27.9% 16.9%;--primary: 263.4 70% 50.4%;--primary-foreground: 210 20% 98%;--secondary: 215 27.9% 16.9%;--secondary-foreground: 210 20% 98%;--accent: 215 27.9% 16.9%;--accent-foreground: 210 20% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 20% 98%;--ring: 263.4 70% 50.4%}.ml-2{margin-left:.5rem}.flex{display:flex}.h-12{height:3rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.w-8{width:2rem}.w-full{width:100%}.items-center{align-items:center}.justify-between{justify-content:space-between}.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)))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.p-4{padding:1rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.text-center{text-align:center}.font-bold{font-weight:700}.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)}@media (prefers-color-scheme: dark){.dark\:bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}} diff --git a/dist/assets/index-BZYRh09w.js b/dist/assets/index-BZYRh09w.js deleted file mode 100644 index 535fa8c..0000000 --- a/dist/assets/index-BZYRh09w.js +++ /dev/null @@ -1,58 +0,0 @@ -var zi=Object.defineProperty;var Vi=(e,t,n)=>t in e?zi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var K=(e,t,n)=>Vi(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ct,A,Yr,xe,Kn,Qr,Xr,Zr,wn,nn,rn,Jr,it={},eo=[],Hi=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,lt=Array.isArray;function oe(e,t){for(var n in t)e[n]=t[n];return e}function xn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function E(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ct.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return nt(e,s,r,o,null)}function nt(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Yr,__i:-1,__u:0};return o==null&&A.vnode!=null&&A.vnode(i),i}function to(){return{current:null}}function B(e){return e.children}function ee(e,t){this.props=e,this.context=t}function Ve(e,t){if(t==null)return e.__?Ve(e.__,e.__i+1):null;for(var n;ta&&xe.sort(Xr),e=xe.shift(),a=xe.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=oe({},r)).__v=r.__v+1,A.vnode&&A.vnode(n),Sn(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Ve(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,io(i,n,s),n.__e!=o&&no(n)));Pt.__r=0}function ro(e,t,n,r,o,i,s,a,l,c,d){var u,f,h,v,g,m,p=r&&r.__k||eo,b=t.length;for(l=Gi(n,t,p,l,b),u=0;u0?nt(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(c=s.__i=Bi(s,n,l,u))!==-1&&(u--,(a=n[c])&&(a.__u|=2)),a==null||a.__v===null?(c==-1&&(o>d?f--:ol?f--:f++,s.__u|=4))):e.__k[i]=null;if(u)for(i=0;i(l!=null&&!(2&l.__u)?1:0))for(o=n-1,i=n+1;o>=0||i=0){if((l=t[o])&&!(2&l.__u)&&s==l.key&&a===l.type)return o;o--}if(i2&&(a.children=arguments.length>3?ct.call(arguments,2):n),nt(e.type,a,r||e.key,o||e.ref,null)}function de(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&r.forEach(function(s){s.__e=!0,on(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),n.children}return t.__c="__cC"+Jr++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}ct=eo.slice,A={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},Yr=0,ee.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=oe({},this.state),typeof e=="function"&&(e=e(oe({},n),this.props)),e&&oe(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),on(this))},ee.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),on(this))},ee.prototype.render=B,xe=[],Qr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xr=function(e,t){return e.__v.__b-t.__v.__b},Pt.__r=0,Zr=/(PointerCapture)$|Capture$/i,wn=0,nn=Qn(!1),rn=Qn(!0),Jr=0;var Qi=0;function C(e,t,n,r,o,i){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Qi,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return A.vnode&&A.vnode(c),c}var fe,$,$t,Xn,Ge=0,lo=[],H=A,Zn=H.__b,Jn=H.__r,er=H.diffed,tr=H.__c,nr=H.unmount,rr=H.__;function Ne(e,t){H.__h&&H.__h($,e,Ge||t),Ge=0;var n=$.__H||($.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function U(e){return Ge=1,ut(uo,e)}function ut(e,t,n){var r=Ne(fe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):uo(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=$,!$.__f)){var o=function(a,l,c){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!i||i.call(this,a,l,c);var u=r.__c.props!==a;return d.forEach(function(f){if(f.__N){var h=f.__[0];f.__=f.__N,f.__N=void 0,h!==f.__[0]&&(u=!0)}}),i&&i.call(this,a,l,c)||u};$.__f=!0;var i=$.shouldComponentUpdate,s=$.componentWillUpdate;$.componentWillUpdate=function(a,l,c){if(this.__e){var d=i;i=void 0,o(a,l,c),i=d}s&&s.call(this,a,l,c)},$.shouldComponentUpdate=o}return r.__N||r.__}function M(e,t){var n=Ne(fe++,3);!H.__s&&Nn(n.__H,t)&&(n.__=e,n.u=t,$.__H.__h.push(n))}function pe(e,t){var n=Ne(fe++,4);!H.__s&&Nn(n.__H,t)&&(n.__=e,n.u=t,$.__h.push(n))}function O(e){return Ge=5,Y(function(){return{current:e}},[])}function En(e,t,n){Ge=6,pe(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Y(e,t){var n=Ne(fe++,7);return Nn(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Q(e,t){return Ge=8,Y(function(){return e},t)}function ae(e){var t=$.context[e.__c],n=Ne(fe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub($)),t.props.value):e.__}function kn(e,t){H.useDebugValue&&H.useDebugValue(t?t(e):e)}function Xi(e){var t=Ne(fe++,10),n=U();return t.__=e,$.componentDidCatch||($.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Pn(){var e=Ne(fe++,11);if(!e.__){for(var t=$.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Zi(){for(var e;e=lo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(xt),e.__H.__h.forEach(sn),e.__H.__h=[]}catch(t){e.__H.__h=[],H.__e(t,e.__v)}}H.__b=function(e){$=null,Zn&&Zn(e)},H.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),rr&&rr(e,t)},H.__r=function(e){Jn&&Jn(e),fe=0;var t=($=e.__c).__H;t&&($t===$?(t.__h=[],$.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(xt),t.__h.forEach(sn),t.__h=[],fe=0)),$t=$},H.diffed=function(e){er&&er(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(lo.push(t)!==1&&Xn===H.requestAnimationFrame||((Xn=H.requestAnimationFrame)||Ji)(Zi)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),$t=$=null},H.__c=function(e,t){t.some(function(n){try{n.__h.forEach(xt),n.__h=n.__h.filter(function(r){return!r.__||sn(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],H.__e(r,n.__v)}}),tr&&tr(e,t)},H.unmount=function(e){nr&&nr(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{xt(r)}catch(o){t=o}}),n.__H=void 0,t&&H.__e(t,n.__v))};var or=typeof requestAnimationFrame=="function";function Ji(e){var t,n=function(){clearTimeout(r),or&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);or&&(t=requestAnimationFrame(n))}function xt(e){var t=$,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),$=t}function sn(e){var t=$;e.__c=e.__(),$=t}function Nn(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function uo(e,t){return typeof t=="function"?t(e):t}function es(e,t){return t instanceof Uint8Array?{type:"Uint8Array",data:Array.from(t)}:t}function ts(e,t){return t&&t.type==="Uint8Array"&&Array.isArray(t.data)?new Uint8Array(t.data):t}function ht(e){return JSON.stringify(e,es)+` -`}function ns(e){return new Promise((t,n)=>{try{const r=JSON.parse(e,ts);t(r)}catch(r){console.error("failed to parse message",typeof e,e,r),n(r)}})}function Ft(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var an=class{constructor(e,t){K(this,"pendingRequests",{});K(this,"callbacks",{});K(this,"callbackCache",new Map);K(this,"count",0);K(this,"messageStr","");K(this,"apiImplementation");this.io=e,this.apiImplementation=t==null?void 0:t.expose,this.listen()}expose(e){this.apiImplementation=e}getIO(){return this.io}async listen(){for(;;){const e=await this.io.read();if(!e)continue;const t=e.toString("utf-8");if(t.trim().length===0)continue;this.messageStr+=t;const n=this.messageStr[this.messageStr.length-1],r=this.messageStr.split(` -`),o=n===` -`?r:r.slice(0,-1);this.messageStr=n===` -`?"":r.at(-1)??"";for(const i of o.map(s=>s.trim()).filter(Boolean))i.startsWith("{")?this.handleMessageStr(i):console.log("(kkrpc stdout passthrough):",i)}}async handleMessageStr(e){return this.count++,ns(e).then(t=>{t.type==="response"?this.handleResponse(t):t.type==="request"?this.handleRequest(t):t.type==="callback"?this.handleCallback(t):console.error("received unknown message type",t,typeof t)}).catch(t=>{console.log("(kkrpc stdout passthrough):",e)})}callMethod(e,t){return new Promise((n,r)=>{const o=Ft();this.pendingRequests[o]={resolve:n,reject:r};const i=[],s=t.map(l=>{if(typeof l=="function"){let c=this.callbackCache.get(l);return c||(c=Ft(),this.callbacks[c]=l,this.callbackCache.set(l,c)),i.push(c),`__callback__${c}`}return l}),a={id:o,method:e,args:s,type:"request",callbackIds:i.length>0?i:void 0};this.io.write(ht(a))})}handleResponse(e){const{id:t}=e,{result:n,error:r}=e.args;this.pendingRequests[t]&&(r?this.pendingRequests[t].reject(new Error(r)):this.pendingRequests[t].resolve(n),delete this.pendingRequests[t])}handleRequest(e){const{id:t,method:n,args:r}=e,o=n.split(".");if(!this.apiImplementation)return;let i=this.apiImplementation;for(let c=0;c{if(typeof c=="string"&&c.startsWith("__callback__")){const d=c.slice(12);return(...u)=>{this.invokeCallback(d,u)}}return c});try{const c=a.apply(i,l);Promise.resolve(c).then(d=>this.sendResponse(t,d)).catch(d=>this.sendError(t,d.message))}catch(c){this.sendError(t,c.message??c.toString())}}invokeCallback(e,t){const n={id:Ft(),method:e,args:t,type:"callback"};this.io.write(ht(n))}handleCallback(e){const{method:t,args:n}=e,r=this.callbacks[t];r?r(...n):console.error(`Callback with id ${t} not found`)}sendResponse(e,t){const n={id:e,method:"",args:{result:t},type:"response"};this.io.write(ht(n))}sendError(e,t){const n={id:e,method:"",args:{error:t},type:"response"};this.io.write(ht(n))}createNestedProxy(e=[]){return new Proxy(()=>{},{get:(t,n)=>{if(typeof n=="string"&&n!=="then")return this.createNestedProxy([...e,n])},apply:(t,n,r)=>{const o=e.join(".");return this.callMethod(o,r)}})}getAPI(){return this.createNestedProxy()}freeCallbacks(){this.callbacks={},this.callbackCache.clear()}},mt="__DESTROY__",rs="__PORT_INIT__",os=class{constructor(){K(this,"name","iframe-child-io");K(this,"messageQueue",[]);K(this,"resolveRead",null);K(this,"port",null);K(this,"pendingMessages",[]);K(this,"initialized");K(this,"channel");K(this,"handleMessage",e=>{const t=e.data;if(t===mt){this.destroy();return}this.resolveRead?(this.resolveRead(t),this.resolveRead=null):this.messageQueue.push(t)});this.channel=new MessageChannel,this.port=this.channel.port1,this.port.onmessage=this.handleMessage,window.parent.postMessage(rs,"*",[this.channel.port2]),this.initialized=Promise.resolve()}async read(){return await this.initialized,this.messageQueue.length>0?this.messageQueue.shift()??null:new Promise(e=>{this.resolveRead=e})}async write(e){await this.initialized,this.port?this.port.postMessage(e):this.pendingMessages.push(e)}destroy(){this.port&&(this.port.postMessage(mt),this.port.close())}signalDestroy(){this.port?this.port.postMessage(mt):this.pendingMessages.push(mt)}};var ir;(function(e){e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_CREATED="tauri://window-created",e.WEBVIEW_CREATED="tauri://webview-created",e.DRAG_ENTER="tauri://drag-enter",e.DRAG_OVER="tauri://drag-over",e.DRAG_DROP="tauri://drag-drop",e.DRAG_LEAVE="tauri://drag-leave"})(ir||(ir={}));var cn;(function(e){e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Document=6]="Document",e[e.Download=7]="Download",e[e.Picture=8]="Picture",e[e.Public=9]="Public",e[e.Video=10]="Video",e[e.Resource=11]="Resource",e[e.Temp=12]="Temp",e[e.AppConfig=13]="AppConfig",e[e.AppData=14]="AppData",e[e.AppLocalData=15]="AppLocalData",e[e.AppCache=16]="AppCache",e[e.AppLog=17]="AppLog",e[e.Desktop=18]="Desktop",e[e.Executable=19]="Executable",e[e.Font=20]="Font",e[e.Home=21]="Home",e[e.Runtime=22]="Runtime",e[e.Template=23]="Template"})(cn||(cn={}));var sr;(function(e){e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warn=4]="Warn",e[e.Error=5]="Error"})(sr||(sr={}));function is(e){return async function(n,r){console.log("fetch",n,r);const o=r==null?void 0:r.maxRedirections,i=r==null?void 0:r.connectTimeout,s=r==null?void 0:r.proxy;r!=null&&(delete r.maxRedirections,delete r.connectTimeout,delete r.proxy);const a=r==null?void 0:r.signal,c=((r==null?void 0:r.headers)==null?[]:r.headers instanceof Headers?Array.from(r.headers.entries()):Array.isArray(r.headers)?r.headers:Object.entries(r.headers)).map(([P,y])=>[P,typeof y=="string"?y:y.toString()]),d=new Request(n,r),u=await d.arrayBuffer(),f=u.byteLength!==0?Array.from(new Uint8Array(u)):null,h=await e.rawFetch({clientConfig:{method:d.method,url:d.url,headers:c,data:f,maxRedirections:o,connectTimeout:i,proxy:s}});a==null||a.addEventListener("abort",()=>{e.fetchCancel(h)});const{status:v,statusText:g,url:m,headers:p,rid:b}=await e.fetchSend(h),w=await e.fetchReadBody(b),x=new Response(w instanceof ArrayBuffer&&w.byteLength!==0?w:w instanceof Array&&w.length>0?new Uint8Array(w):null,{headers:p,status:v,statusText:g});return Object.defineProperty(x,"url",{value:m}),x}}class Wt{constructor(){this.eventListeners=Object.create(null)}addListener(t,n){return this.on(t,n)}removeListener(t,n){return this.off(t,n)}on(t,n){return t in this.eventListeners?this.eventListeners[t].push(n):this.eventListeners[t]=[n],this}once(t,n){const r=o=>{this.removeListener(t,r),n(o)};return this.addListener(t,r)}off(t,n){return t in this.eventListeners&&(this.eventListeners[t]=this.eventListeners[t].filter(r=>r!==n)),this}removeAllListeners(t){return t?delete this.eventListeners[t]:this.eventListeners=Object.create(null),this}emit(t,n){if(t in this.eventListeners){const r=this.eventListeners[t];for(const o of r)o(n);return!0}return!1}listenerCount(t){return t in this.eventListeners?this.eventListeners[t].length:0}prependListener(t,n){return t in this.eventListeners?this.eventListeners[t].unshift(n):this.eventListeners[t]=[n],this}prependOnceListener(t,n){const r=o=>{this.removeListener(t,r),n(o)};return this.prependListener(t,r)}}function ss(e){return{upload:(t,n,r,o)=>e.upload(t,n,r||void 0,o),download:(t,n,r,o)=>e.download(t,n,r||void 0,o)}}function as(e){return{onDragDrop:t=>e.onDragDrop(t),onDragEnter:t=>e.onDragEnter(t),onDragLeave:t=>e.onDragLeave(t),onDragOver:t=>e.onDragOver(t),onWindowBlur:t=>e.onWindowBlur(t),onWindowCloseRequested:t=>e.onWindowCloseRequested(t),onWindowFocus:t=>e.onWindowFocus(t)}}const gt="data-kunkun-drag-region";function cs(e){return{goBack:e.iframeUi.goBack,hideBackButton:e.iframeUi.hideBackButton,hideMoveButton:e.iframeUi.hideMoveButton,hideRefreshButton:e.iframeUi.hideRefreshButton,showBackButton:e.iframeUi.showBackButton,showMoveButton:e.iframeUi.showMoveButton,showRefreshButton:e.iframeUi.showRefreshButton,getTheme:e.iframeUi.getTheme,reloadPage:e.iframeUi.reloadPage,toggleMaximize:e.iframeUi.toggleMaximize,startDragging:e.iframeUi.startDragging,internalToggleMaximize:e.iframeUi.internalToggleMaximize,setTransparentWindowBackground:e.iframeUi.setTransparentWindowBackground,registerDragRegion:async()=>{const t=await e.os.platform();let n=0,r=0;document.addEventListener("mousedown",o=>{const i=o.target;if((i.classList.contains(gt)||i.hasAttribute(gt))&&o.button===0&&(o.detail===1||o.detail===2)){if(t==="macos"&&o.detail==2){n=o.clientX,r=o.clientY;return}o.preventDefault(),o.stopImmediatePropagation(),o.detail===2?e.iframeUi.internalToggleMaximize():e.iframeUi.startDragging()}}),t==="macos"&&document.addEventListener("mouseup",o=>{const i=o.target;(i.classList.contains(gt)||i.hasAttribute(gt))&&o.button===0&&o.detail===2&&o.clientX===n&&o.clientY===r&&e.iframeUi.internalToggleMaximize()})}}}function ls(e){return{BaseDirectory:cn,appCacheDir:e.appCacheDir,appConfigDir:e.appConfigDir,appDataDir:e.appDataDir,appLocalDataDir:e.appLocalDataDir,appLogDir:e.appLogDir,audioDir:e.audioDir,basename:e.basename,cacheDir:e.cacheDir,configDir:e.configDir,dataDir:e.dataDir,delimiter:e.delimiter,desktopDir:e.desktopDir,dirname:e.dirname,documentDir:e.documentDir,downloadDir:e.downloadDir,executableDir:e.executableDir,extname:e.extname,fontDir:e.fontDir,homeDir:e.homeDir,isAbsolute:e.isAbsolute,join:e.join,localDataDir:e.localDataDir,normalize:e.normalize,pictureDir:e.pictureDir,publicDir:e.publicDir,resolve:e.resolve,resolveResource:e.resolveResource,resourceDir:e.resourceDir,runtimeDir:e.runtimeDir,sep:e.sep,tempDir:e.tempDir,templateDir:e.templateDir,videoDir:e.videoDir,extensionDir:e.extensionDir,extensionSupportDir:e.extensionSupportDir}}class In{constructor(t,n){this.pid=t,this.api=n}async write(t){this.api.stdinWrite(t.toString(),this.pid)}kill(){return this.api.kill(this.pid)}}class fo extends Wt{constructor(t,n=[],r){super(),this.stdout=new Wt,this.stderr=new Wt,this.program=t,this.args=typeof n=="string"?[n]:n,this.options=r??{}}}class us extends fo{constructor(t,n=[],r,o){super(t,n,o),this.api=r}async spawn(){const t=this.args;return typeof t=="object"&&Object.freeze(t),this.api.rawSpawn(this.program,t,this.options,n=>{switch(n.event){case"Error":this.emit("error",n.payload);break;case"Terminated":this.emit("close",n.payload);break;case"Stdout":this.stdout.emit("data",n.payload);break;case"Stderr":this.stderr.emit("data",n.payload);break}}).then(async n=>(await this.api.recordSpawnedProcess(n),new In(n,this.api)))}async execute(){const t=this.args;return typeof t=="object"&&Object.freeze(t),this.api.execute(this.program,this.args,this.options)}}class ds extends fo{constructor(t,n,r,o){super("deno",n),this.config=r,this.scriptPath=t,this.api=o}execute(){return this.api.denoExecute(this.scriptPath,this.config,this.args)}spawn(){return this.api.denoRawSpawn(this.scriptPath,this.config,this.args,t=>{switch(t.event){case"Error":this.emit("error",t.payload);break;case"Terminated":this.emit("close",t.payload);break;case"Stdout":this.stdout.emit("data",t.payload);break;case"Stderr":this.stderr.emit("data",t.payload);break}}).then(async t=>(console.log("spawned deno process",t),await this.api.recordSpawnedProcess(t),new In(t,this.api)))}}class ar{constructor(t,n){this.readStream=t,this.childProcess=n,this.name="tauri-shell-stdio"}read(){return new Promise((t,n)=>{this.readStream.on("data",r=>{t(r)})})}async write(t){return this.childProcess.write(t+` -`)}}function fs(e){function t(p,b=[],w){return new us(p,b,e,w)}function n(p,b,w){return new ds(p,b,w,e)}async function r(p,b,w,x){const P=n(p,b,w),y=await P.spawn(),S=new ar(P.stdout,y);return{rpcChannel:new an(S,{expose:x}),process:y,command:P}}function o(p){return t("bash",["-c",p])}function i(p){return t("powershell",["-Command",p])}function s(p){return t("osascript",["-e",p])}function a(p){return t("python",["-c",p])}function l(p){return t("zsh",["-c",p])}function c(p){return t("node",["-e",p])}async function d(p){return o(p).execute()}async function u(p){return i(p).execute()}async function f(p){return s(p).execute()}async function h(p){return a(p).execute()}async function v(p){return l(p).execute()}async function g(p){return c(p).execute()}function m(){return e.likelyOnWindows()}return{open:e.open,killPid:e.killPid,makeBashScript:o,makePowershellScript:i,makeAppleScript:s,makePythonScript:a,makeZshScript:l,makeNodeScript:c,executeBashScript:d,executePowershellScript:u,executeAppleScript:f,executePythonScript:h,executeZshScript:v,executeNodeScript:g,hasCommand:e.hasCommand,likelyOnWindows:m,createCommand:t,createDenoCommand:n,Child:In,TauriShellStdio:ar,createDenoRpcChannel:r,RPCChannel:an,whereIsCommand:e.whereIsCommand}}const ps=new os,hs=new an(ps,{}),Ie=hs.getAPI();as(Ie.event);is(Ie.fetch);ls(Ie.path);fs(Ie.shell);ss(Ie.updownload);const Ut=cs(Ie),{db:$u,os:Fu,clipboard:Wu,kv:Uu,dialog:ju,fs:zu,log:Vu,notification:Hu,sysInfo:Gu,network:Bu,system:qu,toast:Ku,utils:Yu,open:cr,app:Qu,helper:Xu}=Ie;function po(e,t){for(var n in t)e[n]=t[n];return e}function ln(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function An(e,t){var n=t(),r=U({t:{__:n,u:t}}),o=r[0].t,i=r[1];return pe(function(){o.__=n,o.u=t,jt(o)&&i({t:o})},[e,n,t]),M(function(){return jt(o)&&i({t:o}),e(function(){jt(o)&&i({t:o})})},[e]),n}function jt(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function Dn(e){e()}function On(e){return e}function Rn(){return[!1,Dn]}var Tn=pe;function Nt(e,t){this.props=e,this.context=t}function ho(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:ln(this.props,o)}function r(o){return this.shouldComponentUpdate=n,E(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Nt.prototype=new ee).isPureReactComponent=!0,Nt.prototype.shouldComponentUpdate=function(e,t){return ln(this.props,e)||ln(this.state,t)};var lr=A.__b;A.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),lr&&lr(e)};var ms=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function D(e){function t(n){var r=po({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=ms,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ur=function(e,t){return e==null?null:le(le(e).map(t))},ie={map:ur,forEach:ur,count:function(e){return e?le(e).length:0},only:function(e){var t=le(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:le},gs=A.__e;A.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}gs(e,t,n,r)};var dr=A.unmount;function mo(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=po({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return mo(r,t,n)})),e}function go(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return go(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function rt(){this.__u=0,this.o=null,this.__b=null}function vo(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _o(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return E(n,i)}return o.displayName="Lazy",o.__f=!0,o}function We(){this.i=null,this.l=null}A.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),dr&&dr(e)},(rt.prototype=new ee).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=vo(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=go(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},rt.prototype.componentWillUnmount=function(){this.o=[]},rt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=mo(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&E(B,null,e.fallback);return o&&(o.__u&=-33),[E(B,null,t.__a?null:e.children),o]};var fr=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.h.removeChild(r)}}),He(E(vs,{context:t.context},e.__v),t.v)}function bo(e,t){var n=E(_s,{__v:e,h:t});return n.containerInfo=t,n}(We.prototype=new ee).__a=function(e){var t=this,n=vo(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),fr(t,e,r)):o()};n?n(i):i()}},We.prototype.render=function(e){this.i=null,this.l=new Map;var t=le(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},We.prototype.componentDidUpdate=We.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){fr(e,n,t)})};var yo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,bs=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ys=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ws=/[A-Z0-9]/g,xs=typeof document<"u",Ss=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function wo(e,t,n){return t.__k==null&&(t.textContent=""),He(e,t),typeof n=="function"&&n(),e?e.__c:null}function xo(e,t,n){return co(e,t),typeof n=="function"&&n(),e?e.__c:null}ee.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ee.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var pr=A.event;function Cs(){}function Es(){return this.cancelBubble}function ks(){return this.defaultPrevented}A.event=function(e){return pr&&(e=pr(e)),e.persist=Cs,e.isPropagationStopped=Es,e.isDefaultPrevented=ks,e.nativeEvent=e};var Mn,Ps={enumerable:!1,configurable:!0,get:function(){return this.class}},hr=A.vnode;A.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||xs&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Ss(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":ys.test(s)&&(s=l):l=s="oninput":i&&bs.test(s)?s=s.replace(ws,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=le(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=le(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Ps)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=yo,hr&&hr(e)};var mr=A.__r;A.__r=function(e){mr&&mr(e),Mn=e.__c};var gr=A.diffed;A.diffed=function(e){gr&&gr(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Mn=null};var So={ReactCurrentDispatcher:{current:{readContext:function(e){return Mn.__n[e.__c].props.value},useCallback:Q,useContext:ae,useDebugValue:kn,useDeferredValue:On,useEffect:M,useId:Pn,useImperativeHandle:En,useInsertionEffect:Tn,useLayoutEffect:pe,useMemo:Y,useReducer:ut,useRef:O,useState:U,useSyncExternalStore:An,useTransition:Rn}}},Ns="18.3.1";function Co(e){return E.bind(null,e)}function se(e){return!!e&&e.$$typeof===yo}function Eo(e){return se(e)&&e.type===B}function ko(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ae(e){return se(e)?Yi.apply(null,arguments):e}function Po(e){return!!e.__k&&(He(null,e),!0)}function No(e){return e&&(e.base||e.nodeType===1&&e)||null}var Io=function(e,t){return e(t)},Ln=function(e,t){return e(t)},Ao=B,Do=se,Ue={useState:U,useId:Pn,useReducer:ut,useEffect:M,useLayoutEffect:pe,useInsertionEffect:Tn,useTransition:Rn,useDeferredValue:On,useSyncExternalStore:An,startTransition:Dn,useRef:O,useImperativeHandle:En,useMemo:Y,useCallback:Q,useContext:ae,useDebugValue:kn,version:"18.3.1",Children:ie,render:wo,hydrate:xo,unmountComponentAtNode:Po,createPortal:bo,createElement:E,createContext:de,createFactory:Co,cloneElement:Ae,createRef:to,Fragment:B,isValidElement:se,isElement:Do,isFragment:Eo,isMemo:ko,findDOMNode:No,Component:ee,PureComponent:Nt,memo:ho,forwardRef:D,flushSync:Ln,unstable_batchedUpdates:Io,StrictMode:Ao,Suspense:rt,SuspenseList:We,lazy:_o,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:So};const Oo=Object.freeze(Object.defineProperty({__proto__:null,Children:ie,Component:ee,Fragment:B,PureComponent:Nt,StrictMode:Ao,Suspense:rt,SuspenseList:We,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:So,cloneElement:Ae,createContext:de,createElement:E,createFactory:Co,createPortal:bo,createRef:to,default:Ue,findDOMNode:No,flushSync:Ln,forwardRef:D,hydrate:xo,isElement:Do,isFragment:Eo,isMemo:ko,isValidElement:se,lazy:_o,memo:ho,render:wo,startTransition:Dn,unmountComponentAtNode:Po,unstable_batchedUpdates:Io,useCallback:Q,useContext:ae,useDebugValue:kn,useDeferredValue:On,useEffect:M,useErrorBoundary:Xi,useId:Pn,useImperativeHandle:En,useInsertionEffect:Tn,useLayoutEffect:pe,useMemo:Y,useReducer:ut,useRef:O,useState:U,useSyncExternalStore:An,useTransition:Rn,version:Ns},Symbol.toStringTag,{value:"Module"}));function Is(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var As=["color"],Ds=D(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Is(e,As);return E("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),E("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function vr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ro(...e){return t=>{let n=!1;const r=e.map(o=>{const i=vr(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{const{children:n,...r}=e,o=ie.toArray(n),i=o.find(Rs);if(i){const s=i.props.children,a=o.map(l=>l===i?ie.count(s)>1?ie.only(null):se(s)?s.props.children:null:l);return C(un,{...r,ref:t,children:se(s)?Ae(s,void 0,a):null})}return C(un,{...r,ref:t,children:n})});Ot.displayName="Slot";var un=D((e,t)=>{const{children:n,...r}=e;if(se(n)){const o=Ms(n),i=Ts(r,n.props);return n.type!==B&&(i.ref=t?Ro(t,o):o),Ae(n,i)}return ie.count(n)>1?ie.only(null):null});un.displayName="SlotClone";var Os=({children:e})=>C(B,{children:e});function Rs(e){return se(e)&&e.type===Os}function Ts(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Ms(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 To(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;ttypeof e=="boolean"?`${e}`:e===0?"0":e,br=Mo,Ls=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return br(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],u=i==null?void 0:i[c];if(d===null)return null;const f=_r(d)||_r(u);return o[c][f]}),a=n&&Object.entries(n).reduce((c,d)=>{let[u,f]=d;return f===void 0||(c[u]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:u,className:f,...h}=d;return Object.entries(h).every(v=>{let[g,m]=v;return Array.isArray(m)?m.includes({...i,...a}[g]):{...i,...a}[g]===m})?[...c,u,f]:c},[]);return br(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},$n="-",$s=e=>{const t=Ws(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split($n);return a[0]===""&&a.length!==1&&a.shift(),Lo(a,t)||Fs(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},Lo=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Lo(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join($n);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},yr=/^\[(.+)\]$/,Fs=e=>{if(yr.test(e)){const t=yr.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ws=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return js(Object.entries(e.classGroups),n).forEach(([i,s])=>{dn(s,r,i,t)}),r},dn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:wr(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Us(o)){dn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{dn(s,wr(t,i),n,r)})})},wr=(e,t)=>{let n=e;return t.split($n).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Us=e=>e.isThemeGetter,js=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,zs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},$o="!",Vs=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let c=0,d=0,u;for(let m=0;md?u-d:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:s}):s},Hs=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},Gs=e=>({cache:zs(e.cacheSize),parseClassName:Vs(e),...$s(e)}),Bs=/\s+/,qs=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Bs);let a="";for(let l=s.length-1;l>=0;l-=1){const c=s[l],{modifiers:d,hasImportantModifier:u,baseClassName:f,maybePostfixModifierPosition:h}=n(c);let v=!!h,g=r(v?f.substring(0,h):f);if(!g){if(!v){a=c+(a.length>0?" "+a:a);continue}if(g=r(f),!g){a=c+(a.length>0?" "+a:a);continue}v=!1}const m=Hs(d).join(":"),p=u?m+$o:m,b=p+g;if(i.includes(b))continue;i.push(b);const w=o(g,v);for(let x=0;x0?" "+a:a)}return a};function Ks(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;ru(d),e());return n=Gs(c),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=qs(l,n);return o(l,d),d}return function(){return i(Ks.apply(null,arguments))}}const W=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Wo=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qs=/^\d+\/\d+$/,Xs=new Set(["px","full","screen"]),Zs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Js=/\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$/,ea=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ta=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,na=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=e=>je(e)||Xs.has(e)||Qs.test(e),ve=e=>Ke(e,"length",ua),je=e=>!!e&&!Number.isNaN(Number(e)),zt=e=>Ke(e,"number",je),Xe=e=>!!e&&Number.isInteger(Number(e)),ra=e=>e.endsWith("%")&&je(e.slice(0,-1)),I=e=>Wo.test(e),_e=e=>Zs.test(e),oa=new Set(["length","size","percentage"]),ia=e=>Ke(e,oa,Uo),sa=e=>Ke(e,"position",Uo),aa=new Set(["image","url"]),ca=e=>Ke(e,aa,fa),la=e=>Ke(e,"",da),Ze=()=>!0,Ke=(e,t,n)=>{const r=Wo.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},ua=e=>Js.test(e)&&!ea.test(e),Uo=()=>!1,da=e=>ta.test(e),fa=e=>na.test(e),pa=()=>{const e=W("colors"),t=W("spacing"),n=W("blur"),r=W("brightness"),o=W("borderColor"),i=W("borderRadius"),s=W("borderSpacing"),a=W("borderWidth"),l=W("contrast"),c=W("grayscale"),d=W("hueRotate"),u=W("invert"),f=W("gap"),h=W("gradientColorStops"),v=W("gradientColorStopPositions"),g=W("inset"),m=W("margin"),p=W("opacity"),b=W("padding"),w=W("saturate"),x=W("scale"),P=W("sepia"),y=W("skew"),S=W("space"),L=W("translate"),j=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",I,t],R=()=>[I,t],Ye=()=>["",ce,ve],ne=()=>["auto",je,I],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],me=()=>["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"],Te=()=>["start","end","center","between","around","evenly","stretch"],ge=()=>["","0",I],Qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[je,I];return{cacheSize:500,separator:":",theme:{colors:[Ze],spacing:[ce,ve],blur:["none","",_e,I],brightness:Z(),borderColor:[e],borderRadius:["none","","full",_e,I],borderSpacing:R(),borderWidth:Ye(),contrast:Z(),grayscale:ge(),hueRotate:Z(),invert:ge(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[ra,ve],inset:G(),margin:G(),opacity:Z(),padding:R(),saturate:Z(),scale:Z(),sepia:ge(),skew:Z(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[_e]}],"break-after":[{"break-after":Qe()}],"break-before":[{"break-before":Qe()}],"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:[...he(),I]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],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",Xe,I]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:ge()}],shrink:[{shrink:ge()}],order:[{order:["first","last","none",Xe,I]}],"grid-cols":[{"grid-cols":[Ze]}],"col-start-end":[{col:["auto",{span:["full",Xe,I]},I]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[Ze]}],"row-start-end":[{row:["auto",{span:[Xe,I]},I]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[_e]},_e]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",_e,ve]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",zt]}],"font-family":[{font:[Ze]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",je,zt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ce,ve]}],"underline-offset":[{"underline-offset":["auto",ce,I]}],"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:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],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",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...he(),sa]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ia]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ca]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[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":[p]}],"border-style":[{border:[...me(),"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":[p]}],"divide-style":[{divide:me()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...me()]}],"outline-offset":[{"outline-offset":[ce,I]}],"outline-w":[{outline:[ce,ve]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[ce,ve]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_e,la]}],"shadow-color":[{shadow:[Ze]}],opacity:[{opacity:[p]}],"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",_e,I]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[w]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Xe,I]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[y]}],"skew-y":[{"skew-y":[y]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],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",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ce,ve,zt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},ha=Ys(pa);function Oe(...e){return ha(Mo(e))}const ma=Ls("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),fn=D(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>E(r?Ot:"button",{className:Oe(ma({variant:t,size:n,className:e})),ref:i,...o}));fn.displayName="Button";function ye(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 ga(e,t){const n=de(t),r=i=>{const{children:s,...a}=i,l=Y(()=>a,Object.values(a));return C(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(i){const s=ae(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function va(e,t=[]){let n=[];function r(i,s){const a=de(s),l=n.length;n=[...n,s];const c=u=>{var p;const{scope:f,children:h,...v}=u,g=((p=f==null?void 0:f[e])==null?void 0:p[l])||a,m=Y(()=>v,Object.values(v));return C(g.Provider,{value:m,children:h})};c.displayName=i+"Provider";function d(u,f){var g;const h=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,v=ae(h);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${i}\``)}return[c,d]}const o=()=>{const i=n.map(s=>de(s));return function(a){const l=(a==null?void 0:a[e])||i;return Y(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,_a(o,...t)]}function _a(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(i)[`__scope${c}`];return{...a,...u}},{});return Y(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ce(e){const t=O(e);return M(()=>{t.current=e}),Y(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ba({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=ya({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Ce(n),l=Q(c=>{if(i){const u=typeof c=="function"?c(e):c;u!==e&&a(u)}else o(c)},[i,e,o,a]);return[s,l]}function ya({defaultProp:e,onChange:t}){const n=U(e),[r]=n,o=O(r),i=Ce(t);return M(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var wa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],q=wa.reduce((e,t)=>{const n=D((r,o)=>{const{asChild:i,...s}=r,a=i?Ot:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C(a,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function xa(e,t){e&&Ln(()=>e.dispatchEvent(t))}function Sa(e,t=globalThis==null?void 0:globalThis.document){const n=Ce(e);M(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ca="DismissableLayer",pn="dismissableLayer.update",Ea="dismissableLayer.pointerDownOutside",ka="dismissableLayer.focusOutside",xr,jo=de({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zo=D((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,c=ae(jo),[d,u]=U(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=U({}),v=De(t,S=>u(S)),g=Array.from(c.layers),[m]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),p=g.indexOf(m),b=d?g.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=p,P=Ia(S=>{const L=S.target,j=[...c.branches].some(z=>z.contains(L));!x||j||(o==null||o(S),s==null||s(S),S.defaultPrevented||a==null||a())},f),y=Aa(S=>{const L=S.target;[...c.branches].some(z=>z.contains(L))||(i==null||i(S),s==null||s(S),S.defaultPrevented||a==null||a())},f);return Sa(S=>{b===c.layers.size-1&&(r==null||r(S),!S.defaultPrevented&&a&&(S.preventDefault(),a()))},f),M(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(xr=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Sr(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=xr)}},[d,f,n,c]),M(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Sr())},[d,c]),M(()=>{const S=()=>h({});return document.addEventListener(pn,S),()=>document.removeEventListener(pn,S)},[]),C(q.div,{...l,ref:v,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,y.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,y.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,P.onPointerDownCapture)})});zo.displayName=Ca;var Pa="DismissableLayerBranch",Na=D((e,t)=>{const n=ae(jo),r=O(null),o=De(t,r);return M(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),C(q.div,{...e,ref:o})});Na.displayName=Pa;function Ia(e,t=globalThis==null?void 0:globalThis.document){const n=Ce(e),r=O(!1),o=O(()=>{});return M(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Vo(Ea,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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Aa(e,t=globalThis==null?void 0:globalThis.document){const n=Ce(e),r=O(!1);return M(()=>{const o=i=>{i.target&&!r.current&&Vo(ka,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sr(){const e=new CustomEvent(pn);document.dispatchEvent(e)}function Vo(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?xa(o,i):o.dispatchEvent(i)}var Vt=0;function Da(){M(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Cr()),document.body.insertAdjacentElement("beforeend",e[1]??Cr()),Vt++,()=>{Vt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vt--}},[])}function Cr(){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 Ht="focusScope.autoFocusOnMount",Gt="focusScope.autoFocusOnUnmount",Er={bubbles:!1,cancelable:!0},Oa="FocusScope",Ho=D((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=U(null),c=Ce(o),d=Ce(i),u=O(null),f=De(t,g=>l(g)),h=O({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M(()=>{if(r){let g=function(w){if(h.paused||!a)return;const x=w.target;a.contains(x)?u.current=x:be(u.current,{select:!0})},m=function(w){if(h.paused||!a)return;const x=w.relatedTarget;x!==null&&(a.contains(x)||be(u.current,{select:!0}))},p=function(w){if(document.activeElement===document.body)for(const P of w)P.removedNodes.length>0&&be(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",m);const b=new MutationObserver(p);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",m),b.disconnect()}}},[r,a,h.paused]),M(()=>{if(a){Pr.add(h);const g=document.activeElement;if(!a.contains(g)){const p=new CustomEvent(Ht,Er);a.addEventListener(Ht,c),a.dispatchEvent(p),p.defaultPrevented||(Ra(Fa(Go(a)),{select:!0}),document.activeElement===g&&be(a))}return()=>{a.removeEventListener(Ht,c),setTimeout(()=>{const p=new CustomEvent(Gt,Er);a.addEventListener(Gt,d),a.dispatchEvent(p),p.defaultPrevented||be(g??document.body,{select:!0}),a.removeEventListener(Gt,d),Pr.remove(h)},0)}}},[a,c,d,h]);const v=Q(g=>{if(!n&&!r||h.paused)return;const m=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,p=document.activeElement;if(m&&p){const b=g.currentTarget,[w,x]=Ta(b);w&&x?!g.shiftKey&&p===x?(g.preventDefault(),n&&be(w,{select:!0})):g.shiftKey&&p===w&&(g.preventDefault(),n&&be(x,{select:!0})):p===b&&g.preventDefault()}},[n,r,h.paused]);return C(q.div,{tabIndex:-1,...s,ref:f,onKeyDown:v})});Ho.displayName=Oa;function Ra(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(be(r,{select:t}),document.activeElement!==n)return}function Ta(e){const t=Go(e),n=kr(t,e),r=kr(t.reverse(),e);return[n,r]}function Go(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 kr(e,t){for(const n of e)if(!Ma(n,{upTo:t}))return n}function Ma(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 La(e){return e instanceof HTMLInputElement&&"select"in e}function be(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&La(e)&&t&&e.select()}}var Pr=$a();function $a(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Nr(e,t),e.unshift(t)},remove(t){var n;e=Nr(e,t),(n=e[0])==null||n.resume()}}}function Nr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Fa(e){return e.filter(t=>t.tagName!=="A")}var It=globalThis!=null&&globalThis.document?pe:()=>{},Wa=Oo.useId||(()=>{}),Ua=0;function ue(e){const[t,n]=U(Wa());return It(()=>{n(r=>r??String(Ua++))},[e]),t?`radix-${t}`:""}var ja="Portal",Bo=D((e,t)=>{var a;const{container:n,...r}=e,[o,i]=U(!1);It(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Ue.createPortal(C(q.div,{...r,ref:t}),s):null});Bo.displayName=ja;function za(e,t){return ut((n,r)=>t[n][r]??n,e)}var Rt=e=>{const{present:t,children:n}=e,r=Va(t),o=typeof n=="function"?n({present:r.isPresent}):ie.only(n),i=De(r.ref,Ha(o));return typeof n=="function"||r.isPresent?Ae(o,{ref:i}):null};Rt.displayName="Presence";function Va(e){const[t,n]=U(),r=O({}),o=O(e),i=O("none"),s=e?"mounted":"unmounted",[a,l]=za(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return M(()=>{const c=vt(r.current);i.current=a==="mounted"?c:"none"},[a]),It(()=>{const c=r.current,d=o.current;if(d!==e){const f=i.current,h=vt(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),It(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,u=h=>{const g=vt(r.current).includes(h.animationName);if(h.target===t&&g&&(l("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},f=h=>{h.target===t&&(i.current=vt(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:Q(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function vt(e){return(e==null?void 0:e.animationName)||"none"}function Ha(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 Ga=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Me=new WeakMap,_t=new WeakMap,bt={},Bt=0,qo=function(e){return e&&(e.host||qo(e.parentNode))},Ba=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=qo(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})},qa=function(e,t,n,r){var o=Ba(t,Array.isArray(e)?e:[e]);bt[n]||(bt[n]=new WeakMap);var i=bt[n],s=[],a=new Set,l=new Set(o),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};o.forEach(c);var d=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(f){if(a.has(f))d(f);else try{var h=f.getAttribute(r),v=h!==null&&h!=="false",g=(Me.get(f)||0)+1,m=(i.get(f)||0)+1;Me.set(f,g),i.set(f,m),s.push(f),g===1&&v&&_t.set(f,!0),m===1&&f.setAttribute(n,"true"),v||f.setAttribute(r,"true")}catch(p){console.error("aria-hidden: cannot operate on ",f,p)}})};return d(t),a.clear(),Bt++,function(){s.forEach(function(u){var f=Me.get(u)-1,h=i.get(u)-1;Me.set(u,f),i.set(u,h),f||(_t.has(u)||u.removeAttribute(r),_t.delete(u)),h||u.removeAttribute(n)}),Bt--,Bt||(Me=new WeakMap,Me=new WeakMap,_t=new WeakMap,bt={})}},Ka=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ga(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),qa(r,o,n,"aria-hidden")):function(){return null}},re=function(){return re=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return dc;var t=fc(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])}},hc=Xo(),ze="data-scroll-locked",mc=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(Qa,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(a,"px ").concat(r,`; - } - body[`).concat(ze,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(s,`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(St,` { - right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(Ct,` { - margin-right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(St," .").concat(St,` { - right: 0 `).concat(r,`; - } - - .`).concat(Ct," .").concat(Ct,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(ze,`] { - `).concat(Xa,": ").concat(a,`px; - } -`)},Ar=function(){var e=parseInt(document.body.getAttribute(ze)||"0",10);return isFinite(e)?e:0},gc=function(){M(function(){return document.body.setAttribute(ze,(Ar()+1).toString()),function(){var e=Ar()-1;e<=0?document.body.removeAttribute(ze):document.body.setAttribute(ze,e.toString())}},[])},vc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;gc();var i=Y(function(){return pc(o)},[o]);return E(hc,{styles:mc(i,!t,o,n?"":"!important")})},hn=!1;if(typeof window<"u")try{var yt=Object.defineProperty({},"passive",{get:function(){return hn=!0,!0}});window.addEventListener("test",yt,yt),window.removeEventListener("test",yt,yt)}catch{hn=!1}var Le=hn?{passive:!1}:!1,_c=function(e){return e.tagName==="TEXTAREA"},Zo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_c(e)&&n[t]==="visible")},bc=function(e){return Zo(e,"overflowY")},yc=function(e){return Zo(e,"overflowX")},Dr=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Jo(e,r);if(o){var i=ei(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},wc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},xc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Jo=function(e,t){return e==="v"?bc(t):yc(t)},ei=function(e,t){return e==="v"?wc(t):xc(t)},Sc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cc=function(e,t,n,r,o){var i=Sc(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),c=!1,d=s>0,u=0,f=0;do{var h=ei(e,a),v=h[0],g=h[1],m=h[2],p=g-m-i*v;(v||p)&&Jo(e,a)&&(u+=p,f+=v),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&Math.abs(u)<1||!d&&Math.abs(f)<1)&&(c=!0),c},wt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Or=function(e){return[e.deltaX,e.deltaY]},Rr=function(e){return e&&"current"in e?e.current:e},Ec=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kc=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Pc=0,$e=[];function Nc(e){var t=O([]),n=O([0,0]),r=O(),o=U(Pc++)[0],i=U(Xo)[0],s=O(e);M(function(){s.current=e},[e]),M(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Ya([e.lockRef.current],(e.shards||[]).map(Rr),!0).filter(Boolean);return g.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=Q(function(g,m){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var p=wt(g),b=n.current,w="deltaX"in g?g.deltaX:b[0]-p[0],x="deltaY"in g?g.deltaY:b[1]-p[1],P,y=g.target,S=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in g&&S==="h"&&y.type==="range")return!1;var L=Dr(S,y);if(!L)return!0;if(L?P=S:(P=S==="v"?"h":"v",L=Dr(S,y)),!L)return!1;if(!r.current&&"changedTouches"in g&&(w||x)&&(r.current=P),!P)return!0;var j=r.current||P;return Cc(j,m,g,j==="h"?w:x)},[]),l=Q(function(g){var m=g;if(!(!$e.length||$e[$e.length-1]!==i)){var p="deltaY"in m?Or(m):wt(m),b=t.current.filter(function(P){return P.name===m.type&&(P.target===m.target||m.target===P.shadowParent)&&Ec(P.delta,p)})[0];if(b&&b.should){m.cancelable&&m.preventDefault();return}if(!b){var w=(s.current.shards||[]).map(Rr).filter(Boolean).filter(function(P){return P.contains(m.target)}),x=w.length>0?a(m,w[0]):!s.current.noIsolation;x&&m.cancelable&&m.preventDefault()}}},[]),c=Q(function(g,m,p,b){var w={name:g,delta:m,target:p,should:b,shadowParent:Ic(p)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),d=Q(function(g){n.current=wt(g),r.current=void 0},[]),u=Q(function(g){c(g.type,Or(g),g.target,a(g,e.lockRef.current))},[]),f=Q(function(g){c(g.type,wt(g),g.target,a(g,e.lockRef.current))},[]);M(function(){return $e.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Le),document.addEventListener("touchmove",l,Le),document.addEventListener("touchstart",d,Le),function(){$e=$e.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,Le),document.removeEventListener("touchmove",l,Le),document.removeEventListener("touchstart",d,Le)}},[]);var h=e.removeScrollBar,v=e.inert;return E(B,null,v?E(i,{styles:kc(o)}):null,h?E(vc,{gapMode:e.gapMode}):null)}function Ic(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ac=oc(Qo,Nc);var ti=D(function(e,t){return E(Tt,re({},e,{ref:t,sideCar:Ac}))});ti.classNames=Tt.classNames;const Dc={theme:"system",setTheme:()=>null},Oc=Ue.createContext(Dc);function Rc({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[o,i]=Ue.useState(()=>localStorage.getItem(n)||t);Ue.useEffect(()=>{const a=window.document.documentElement;if(a.classList.remove("light","dark"),o==="system"){const l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";a.classList.add(l);return}a.classList.add(o)},[o]);const s={theme:o,setTheme:a=>{localStorage.setItem(n,a),i(a)}};return Ue.createElement(Oc.Provider,{...r,value:s},e)}var Fn="Dialog",[ni,Zu]=va(Fn),[Tc,te]=ni(Fn),ri=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=O(null),l=O(null),[c=!1,d]=ba({prop:r,defaultProp:o,onChange:i});return C(Tc,{scope:t,triggerRef:a,contentRef:l,contentId:ue(),titleId:ue(),descriptionId:ue(),open:c,onOpenChange:d,onOpenToggle:Q(()=>d(u=>!u),[d]),modal:s,children:n})};ri.displayName=Fn;var oi="DialogTrigger",Mc=D((e,t)=>{const{__scopeDialog:n,...r}=e,o=te(oi,n),i=De(t,o.triggerRef);return C(q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":jn(o.open),...r,ref:i,onClick:ye(e.onClick,o.onOpenToggle)})});Mc.displayName=oi;var Wn="DialogPortal",[Lc,ii]=ni(Wn,{forceMount:void 0}),si=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=te(Wn,t);return C(Lc,{scope:t,forceMount:n,children:ie.map(r,s=>C(Rt,{present:n||i.open,children:C(Bo,{asChild:!0,container:o,children:s})}))})};si.displayName=Wn;var At="DialogOverlay",ai=D((e,t)=>{const n=ii(At,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=te(At,e.__scopeDialog);return i.modal?C(Rt,{present:r||i.open,children:C($c,{...o,ref:t})}):null});ai.displayName=At;var $c=D((e,t)=>{const{__scopeDialog:n,...r}=e,o=te(At,n);return C(ti,{as:Ot,allowPinchZoom:!0,shards:[o.contentRef],children:C(q.div,{"data-state":jn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ee="DialogContent",ci=D((e,t)=>{const n=ii(Ee,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=te(Ee,e.__scopeDialog);return C(Rt,{present:r||i.open,children:i.modal?C(Fc,{...o,ref:t}):C(Wc,{...o,ref:t})})});ci.displayName=Ee;var Fc=D((e,t)=>{const n=te(Ee,e.__scopeDialog),r=O(null),o=De(t,n.contentRef,r);return M(()=>{const i=r.current;if(i)return Ka(i)},[]),C(li,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,i=>i.preventDefault())})}),Wc=D((e,t)=>{const n=te(Ee,e.__scopeDialog),r=O(!1),o=O(!1);return C(li,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),li=D((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=te(Ee,n),l=O(null),c=De(t,l);return Da(),C(B,{children:[C(Ho,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:C(zo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":jn(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),C(B,{children:[C(Vc,{titleId:a.titleId}),C(Gc,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Un="DialogTitle",Uc=D((e,t)=>{const{__scopeDialog:n,...r}=e,o=te(Un,n);return C(q.h2,{id:o.titleId,...r,ref:t})});Uc.displayName=Un;var ui="DialogDescription",jc=D((e,t)=>{const{__scopeDialog:n,...r}=e,o=te(ui,n);return C(q.p,{id:o.descriptionId,...r,ref:t})});jc.displayName=ui;var di="DialogClose",zc=D((e,t)=>{const{__scopeDialog:n,...r}=e,o=te(di,n);return C(q.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,()=>o.onOpenChange(!1))})});zc.displayName=di;function jn(e){return e?"open":"closed"}var fi="DialogTitleWarning",[Ju,pi]=ga(fi,{contentName:Ee,titleName:Un,docsSlug:"dialog"}),Vc=({titleId:e})=>{const t=pi(fi),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 M(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Hc="DialogDescriptionWarning",Gc=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pi(Hc).contentName}}.`;return M(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Bc=ri,qc=si,Kc=ai,Yc=ci;function Qc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Tr=1,Xc=.9,Zc=.8,Jc=.17,Qt=.1,Xt=.999,el=.9999,tl=.99,nl=/[\\\/_+.#"@\[\(\{&]/,rl=/[\\\/_+.#"@\[\(\{&]/g,ol=/[\s-]/,hi=/[\s-]/g;function mn(e,t,n,r,o,i,s){if(i===t.length)return o===e.length?Tr:tl;var a=`${o},${i}`;if(s[a]!==void 0)return s[a];for(var l=r.charAt(i),c=n.indexOf(l,o),d=0,u,f,h,v;c>=0;)u=mn(e,t,n,r,c+1,i+1,s),u>d&&(c===o?u*=Tr:nl.test(e.charAt(c-1))?(u*=Zc,h=e.slice(o,c-1).match(rl),h&&o>0&&(u*=Math.pow(Xt,h.length))):ol.test(e.charAt(c-1))?(u*=Xc,v=e.slice(o,c-1).match(hi),v&&o>0&&(u*=Math.pow(Xt,v.length))):(u*=Jc,o>0&&(u*=Math.pow(Xt,c-o))),e.charAt(c)!==t.charAt(i)&&(u*=el)),(uu&&(u=f*Qt)),u>d&&(d=u),c=n.indexOf(l,c+1);return s[a]=d,d}function Mr(e){return e.toLowerCase().replace(hi," ")}function il(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,mn(e,t,Mr(e),Mr(t),0,0,{})}var mi={exports:{}},gi={};const sl=Qc(Oo);/** - * @license React - * use-sync-external-store-shim.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Be=sl;function al(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cl=typeof Object.is=="function"?Object.is:al,ll=Be.useState,ul=Be.useEffect,dl=Be.useLayoutEffect,fl=Be.useDebugValue;function pl(e,t){var n=t(),r=ll({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return dl(function(){o.value=n,o.getSnapshot=t,Zt(o)&&i({inst:o})},[e,n,t]),ul(function(){return Zt(o)&&i({inst:o}),e(function(){Zt(o)&&i({inst:o})})},[e]),fl(n),n}function Zt(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cl(e,n)}catch{return!0}}function hl(e,t){return t()}var ml=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?hl:pl;gi.useSyncExternalStore=Be.useSyncExternalStore!==void 0?Be.useSyncExternalStore:ml;mi.exports=gi;var gl=mi.exports,Je='[cmdk-group=""]',Jt='[cmdk-group-items=""]',vl='[cmdk-group-heading=""]',zn='[cmdk-item=""]',Lr=`${zn}:not([aria-disabled="true"])`,gn="cmdk-item-select",Se="data-value",_l=(e,t,n)=>il(e,t,n),vi=de(void 0),dt=()=>ae(vi),_i=de(void 0),Vn=()=>ae(_i),bi=de(void 0),yi=D((e,t)=>{let n=Fe(()=>{var _,N;return{search:"",value:(N=(_=e.value)!=null?_:e.defaultValue)!=null?N:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=Fe(()=>new Set),o=Fe(()=>new Map),i=Fe(()=>new Map),s=Fe(()=>new Set),a=wi(e),{label:l,children:c,value:d,onValueChange:u,filter:f,shouldFilter:h,loop:v,disablePointerSelection:g=!1,vimBindings:m=!0,...p}=e,b=ue(),w=ue(),x=ue(),P=O(null),y=Il();ke(()=>{if(d!==void 0){let _=d.trim();n.current.value=_,S.emit()}},[d]),ke(()=>{y(6,Ye)},[]);let S=Y(()=>({subscribe:_=>(s.current.add(_),()=>s.current.delete(_)),snapshot:()=>n.current,setState:(_,N,T)=>{var k,F,V;if(!Object.is(n.current[_],N)){if(n.current[_]=N,_==="search")R(),z(),y(1,G);else if(_==="value"&&(T||y(5,Ye),((k=a.current)==null?void 0:k.value)!==void 0)){let J=N??"";(V=(F=a.current).onValueChange)==null||V.call(F,J);return}S.emit()}},emit:()=>{s.current.forEach(_=>_())}}),[]),L=Y(()=>({value:(_,N,T)=>{var k;N!==((k=i.current.get(_))==null?void 0:k.value)&&(i.current.set(_,{value:N,keywords:T}),n.current.filtered.items.set(_,j(N,T)),y(2,()=>{z(),S.emit()}))},item:(_,N)=>(r.current.add(_),N&&(o.current.has(N)?o.current.get(N).add(_):o.current.set(N,new Set([_]))),y(3,()=>{R(),z(),n.current.value||G(),S.emit()}),()=>{i.current.delete(_),r.current.delete(_),n.current.filtered.items.delete(_);let T=ne();y(4,()=>{R(),(T==null?void 0:T.getAttribute("id"))===_&&G(),S.emit()})}),group:_=>(o.current.has(_)||o.current.set(_,new Set),()=>{i.current.delete(_),o.current.delete(_)}),filter:()=>a.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:b,inputId:x,labelId:w,listInnerRef:P}),[]);function j(_,N){var T,k;let F=(k=(T=a.current)==null?void 0:T.filter)!=null?k:_l;return _?F(_,n.current.search,N):0}function z(){if(!n.current.search||a.current.shouldFilter===!1)return;let _=n.current.filtered.items,N=[];n.current.filtered.groups.forEach(k=>{let F=o.current.get(k),V=0;F.forEach(J=>{let we=_.get(J);V=Math.max(we,V)}),N.push([k,V])});let T=P.current;he().sort((k,F)=>{var V,J;let we=k.getAttribute("id"),ft=F.getAttribute("id");return((V=_.get(ft))!=null?V:0)-((J=_.get(we))!=null?J:0)}).forEach(k=>{let F=k.closest(Jt);F?F.appendChild(k.parentElement===F?k:k.closest(`${Jt} > *`)):T.appendChild(k.parentElement===T?k:k.closest(`${Jt} > *`))}),N.sort((k,F)=>F[1]-k[1]).forEach(k=>{var F;let V=(F=P.current)==null?void 0:F.querySelector(`${Je}[${Se}="${encodeURIComponent(k[0])}"]`);V==null||V.parentElement.appendChild(V)})}function G(){let _=he().find(T=>T.getAttribute("aria-disabled")!=="true"),N=_==null?void 0:_.getAttribute(Se);S.setState("value",N||void 0)}function R(){var _,N,T,k;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let F=0;for(let V of r.current){let J=(N=(_=i.current.get(V))==null?void 0:_.value)!=null?N:"",we=(k=(T=i.current.get(V))==null?void 0:T.keywords)!=null?k:[],ft=j(J,we);n.current.filtered.items.set(V,ft),ft>0&&F++}for(let[V,J]of o.current)for(let we of J)if(n.current.filtered.items.get(we)>0){n.current.filtered.groups.add(V);break}n.current.filtered.count=F}function Ye(){var _,N,T;let k=ne();k&&(((_=k.parentElement)==null?void 0:_.firstChild)===k&&((T=(N=k.closest(Je))==null?void 0:N.querySelector(vl))==null||T.scrollIntoView({block:"nearest"})),k.scrollIntoView({block:"nearest"}))}function ne(){var _;return(_=P.current)==null?void 0:_.querySelector(`${zn}[aria-selected="true"]`)}function he(){var _;return Array.from(((_=P.current)==null?void 0:_.querySelectorAll(Lr))||[])}function me(_){let N=he()[_];N&&S.setState("value",N.getAttribute(Se))}function Re(_){var N;let T=ne(),k=he(),F=k.findIndex(J=>J===T),V=k[F+_];(N=a.current)!=null&&N.loop&&(V=F+_<0?k[k.length-1]:F+_===k.length?k[0]:k[F+_]),V&&S.setState("value",V.getAttribute(Se))}function Te(_){let N=ne(),T=N==null?void 0:N.closest(Je),k;for(;T&&!k;)T=_>0?Pl(T,Je):Nl(T,Je),k=T==null?void 0:T.querySelector(Lr);k?S.setState("value",k.getAttribute(Se)):Re(_)}let ge=()=>me(he().length-1),Qe=_=>{_.preventDefault(),_.metaKey?ge():_.altKey?Te(1):Re(1)},Z=_=>{_.preventDefault(),_.metaKey?me(0):_.altKey?Te(-1):Re(-1)};return E(q.div,{ref:t,tabIndex:-1,...p,"cmdk-root":"",onKeyDown:_=>{var N;if((N=p.onKeyDown)==null||N.call(p,_),!_.defaultPrevented)switch(_.key){case"n":case"j":{m&&_.ctrlKey&&Qe(_);break}case"ArrowDown":{Qe(_);break}case"p":case"k":{m&&_.ctrlKey&&Z(_);break}case"ArrowUp":{Z(_);break}case"Home":{_.preventDefault(),me(0);break}case"End":{_.preventDefault(),ge();break}case"Enter":if(!_.nativeEvent.isComposing&&_.keyCode!==229){_.preventDefault();let T=ne();if(T){let k=new Event(gn);T.dispatchEvent(k)}}}}},E("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:Dl},l),Mt(e,_=>E(_i.Provider,{value:S},E(vi.Provider,{value:L},_))))}),bl=D((e,t)=>{var n,r;let o=ue(),i=O(null),s=ae(bi),a=dt(),l=wi(e),c=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;ke(()=>{if(!c)return a.item(o,s==null?void 0:s.id)},[c]);let d=xi(o,i,[e.value,e.children,i],e.keywords),u=Vn(),f=Pe(y=>y.value&&y.value===d.current),h=Pe(y=>c||a.filter()===!1?!0:y.search?y.filtered.items.get(o)>0:!0);M(()=>{let y=i.current;if(!(!y||e.disabled))return y.addEventListener(gn,v),()=>y.removeEventListener(gn,v)},[h,e.onSelect,e.disabled]);function v(){var y,S;g(),(S=(y=l.current).onSelect)==null||S.call(y,d.current)}function g(){u.setState("value",d.current,!0)}if(!h)return null;let{disabled:m,value:p,onSelect:b,forceMount:w,keywords:x,...P}=e;return E(q.div,{ref:st([i,t]),...P,id:o,"cmdk-item":"",role:"option","aria-disabled":!!m,"aria-selected":!!f,"data-disabled":!!m,"data-selected":!!f,onPointerMove:m||a.getDisablePointerSelection()?void 0:g,onClick:m?void 0:v},e.children)}),yl=D((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,s=ue(),a=O(null),l=O(null),c=ue(),d=dt(),u=Pe(h=>o||d.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);ke(()=>d.group(s),[]),xi(s,a,[e.value,e.heading,l]);let f=Y(()=>({id:s,forceMount:o}),[o]);return E(q.div,{ref:st([a,t]),...i,"cmdk-group":"",role:"presentation",hidden:u?void 0:!0},n&&E("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),Mt(e,h=>E("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},E(bi.Provider,{value:f},h))))}),wl=D((e,t)=>{let{alwaysRender:n,...r}=e,o=O(null),i=Pe(s=>!s.search);return!n&&!i?null:E(q.div,{ref:st([o,t]),...r,"cmdk-separator":"",role:"separator"})}),xl=D((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,i=Vn(),s=Pe(d=>d.search),a=Pe(d=>d.value),l=dt(),c=Y(()=>{var d;let u=(d=l.listInnerRef.current)==null?void 0:d.querySelector(`${zn}[${Se}="${encodeURIComponent(a)}"]`);return u==null?void 0:u.getAttribute("id")},[]);return M(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),E(q.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":c,id:l.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||i.setState("search",d.target.value),n==null||n(d.target.value)}})}),Sl=D((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=O(null),s=O(null),a=dt();return M(()=>{if(s.current&&i.current){let l=s.current,c=i.current,d,u=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let f=l.offsetHeight;c.style.setProperty("--cmdk-list-height",f.toFixed(1)+"px")})});return u.observe(l),()=>{cancelAnimationFrame(d),u.unobserve(l)}}},[]),E(q.div,{ref:st([i,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},Mt(e,l=>E("div",{ref:st([s,a.listInnerRef]),"cmdk-list-sizer":""},l)))}),Cl=D((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:s,...a}=e;return E(Bc,{open:n,onOpenChange:r},E(qc,{container:s},E(Kc,{"cmdk-overlay":"",className:o}),E(Yc,{"aria-label":e.label,"cmdk-dialog":"",className:i},E(yi,{ref:t,...a}))))}),El=D((e,t)=>Pe(n=>n.filtered.count===0)?E(q.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),kl=D((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return E(q.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Mt(e,s=>E("div",{"aria-hidden":!0},s)))}),X=Object.assign(yi,{List:Sl,Item:bl,Input:xl,Group:yl,Separator:wl,Dialog:Cl,Empty:El,Loading:kl});function Pl(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Nl(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function wi(e){let t=O(e);return ke(()=>{t.current=e}),t}var ke=typeof window>"u"?M:pe;function Fe(e){let t=O();return t.current===void 0&&(t.current=e()),t}function st(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function Pe(e){let t=Vn(),n=()=>e(t.snapshot());return gl.useSyncExternalStore(t.subscribe,n,n)}function xi(e,t,n,r=[]){let o=O(),i=dt();return ke(()=>{var s;let a=(()=>{var c;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(c=d.current.textContent)==null?void 0:c.trim():o.current}})(),l=r.map(c=>c.trim());i.value(e,a,l),(s=t.current)==null||s.setAttribute(Se,a),o.current=a}),o}var Il=()=>{let[e,t]=U(),n=Fe(()=>new Map);return ke(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function Al(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Mt({asChild:e,children:t},n){return e&&se(t)?Ae(Al(t),{ref:t.ref},n(t.props.children)):n(t)}var Dl={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Si=D(({className:e,...t},n)=>E(X,{ref:n,className:Oe("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Si.displayName=X.displayName;const Ci=D(({className:e,children:t,...n},r)=>E("div",{className:"flex items-center border-b px-3 gap-2","cmdk-input-wrapper":""},t||E(Ds,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),E(X.Input,{ref:r,className:Oe("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...n})));Ci.displayName=X.Input.displayName;const Ei=D(({className:e,...t},n)=>E(X.List,{ref:n,className:Oe("overflow-y-auto overflow-x-hidden",e),...t}));Ei.displayName=X.List.displayName;const ki=D((e,t)=>E(X.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));ki.displayName=X.Empty.displayName;const Pi=D(({className:e,...t},n)=>E(X.Group,{ref:n,className:Oe("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Pi.displayName=X.Group.displayName;const Ol=D(({className:e,...t},n)=>E(X.Separator,{ref:n,className:Oe("-mx-1 h-px bg-border",e),...t}));Ol.displayName=X.Separator.displayName;const Ni=D(({className:e,...t},n)=>E(X.Item,{ref:n,className:Oe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t}));Ni.displayName=X.Item.displayName;const Ii=Object.freeze({left:0,top:0,width:16,height:16}),Dt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Hn=Object.freeze({...Ii,...Dt}),vn=Object.freeze({...Hn,body:"",hidden:!1});function Rl(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function $r(e,t){const n=Rl(e,t);for(const r in vn)r in Dt?r in e&&!(r in n)&&(n[r]=Dt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Tl(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=r[s]&&r[s].parent,l=a&&i(a);l&&(o[s]=[a].concat(l))}return o[s]}return Object.keys(n).concat(Object.keys(r)).forEach(i),o}function Ml(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function s(a){i=$r(r[a]||o[a],i)}return s(t),n.forEach(s),$r(e,i)}function Ai(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Tl(e);for(const o in r){const i=r[o];i&&(t(o,Ml(e,o,i)),n.push(o))}return n}const Ll={provider:"",aliases:{},not_found:{},...Ii};function en(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Di(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!en(e,Ll))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o||typeof i.body!="string"||!en(i,vn))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o||typeof s!="string"||!n[s]&&!r[s]||!en(i,vn))return null}return t}const Oi=/^[a-z0-9]+(-[a-z0-9]+)*$/,Lt=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),c={provider:o.length>0?o[0]:r,prefix:l,name:a};return t&&!Et(c)?null:c}const i=o[0],s=i.split("-");if(s.length>1){const a={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!Et(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return t&&!Et(a,n)?null:a}return null},Et=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Fr=Object.create(null);function $l(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function qe(e,t){const n=Fr[e]||(Fr[e]=Object.create(null));return n[t]||(n[t]=$l(e,t))}function Ri(e,t){return Di(t)?Ai(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Fl(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let at=!1;function Ti(e){return typeof e=="boolean"&&(at=e),at}function Wr(e){const t=typeof e=="string"?Lt(e,!0,at):e;if(t){const n=qe(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Wl(e,t){const n=Lt(e,!0,at);if(!n)return!1;const r=qe(n.provider,n.prefix);return t?Fl(r,n.name,t):(r.missing.add(n.name),!0)}function Ul(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),at&&!t&&!e.prefix){let o=!1;return Di(e)&&(e.prefix="",Ai(e,(i,s)=>{Wl(i,s)&&(o=!0)})),o}const n=e.prefix;if(!Et({prefix:n,name:"a"}))return!1;const r=qe(t,n);return!!Ri(r,e)}const Mi=Object.freeze({width:null,height:null}),Li=Object.freeze({...Mi,...Dt}),jl=/(-?[0-9.]*[0-9]+[0-9.]*)/g,zl=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ur(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(jl);if(r===null||!r.length)return e;const o=[];let i=r.shift(),s=zl.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}function Vl(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),i=e.indexOf("",i);if(s===-1)break;n+=e.slice(o+1,i).trim(),e=e.slice(0,r).trim()+e.slice(s+1)}return{defs:n,content:e}}function Hl(e,t){return e?""+e+""+t:t}function Gl(e,t,n){const r=Vl(e);return Hl(r.defs,t+r.content+n)}const Bl=e=>e==="unset"||e==="undefined"||e==="none";function ql(e,t){const n={...Hn,...e},r={...Li,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(g=>{const m=[],p=g.hFlip,b=g.vFlip;let w=g.rotate;p?b?w+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):b&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let x;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:x=o.height/2+o.top,m.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:x=o.width/2+o.left,m.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}w%2===1&&(o.left!==o.top&&(x=o.left,o.left=o.top,o.top=x),o.width!==o.height&&(x=o.width,o.width=o.height,o.height=x)),m.length&&(i=Gl(i,'',""))});const s=r.width,a=r.height,l=o.width,c=o.height;let d,u;s===null?(u=a===null?"1em":a==="auto"?c:a,d=Ur(u,l/c)):(d=s==="auto"?l:s,u=a===null?Ur(d,c/l):a==="auto"?c:a);const f={},h=(g,m)=>{Bl(m)||(f[g]=m.toString())};h("width",d),h("height",u);const v=[o.left,o.top,l,c];return f.viewBox=v.join(" "),{attributes:f,viewBox:v,body:i}}const Kl=/\sid="(\S+)"/g,Yl="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ql=0;function Xl(e,t=Yl){const n=[];let r;for(;r=Kl.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof t=="function"?t(i):t+(Ql++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const _n=Object.create(null);function Zl(e,t){_n[e]=t}function bn(e){return _n[e]||_n[""]}function Gn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Bn=Object.create(null),et=["https://api.simplesvg.com","https://api.unisvg.com"],kt=[];for(;et.length>0;)et.length===1||Math.random()>.5?kt.push(et.shift()):kt.push(et.pop());Bn[""]=Gn({resources:["https://api.iconify.design"].concat(kt)});function Jl(e,t){const n=Gn(t);return n===null?!1:(Bn[e]=n,!0)}function qn(e){return Bn[e]}const eu=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let jr=eu();function tu(e,t){const n=qn(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function nu(e){return e===404}const ru=(e,t,n)=>{const r=[],o=tu(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(r.push(s),s={type:i,provider:e,prefix:t,icons:[]},a=l.length),s.icons.push(l)}),r.push(s),r};function ou(e){if(typeof e=="string"){const t=qn(e);if(t)return t.path}return"/"}const iu=(e,t,n)=>{if(!jr){n("abort",424);return}let r=ou(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;jr(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(nu(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},su={prepare:ru,send:iu};function au(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,s=o.prefix,a=o.name,l=n[i]||(n[i]=Object.create(null)),c=l[s]||(l[s]=qe(i,s));let d;a in c.icons?d=t.loaded:s===""||c.missing.has(a)?d=t.missing:d=t.pending;const u={provider:i,prefix:s,name:a};d.push(u)}),t}function $i(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function cu(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==o)return!0;const c=l.name;if(e.icons[c])s.loaded.push({provider:r,prefix:o,name:c});else if(e.missing.has(c))s.missing.push({provider:r,prefix:o,name:c});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||$i([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let lu=0;function uu(e,t,n){const r=lu++,o=$i.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function du(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?Lt(o,t,n):o;i&&r.push(i)}),r}var fu={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function pu(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let s;if(e.random){let y=e.resources.slice(0);for(s=[];y.length>1;){const S=Math.floor(Math.random()*y.length);s.push(y[S]),y=y.slice(0,S).concat(y.slice(S+1))}s=s.concat(y)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let l="pending",c=0,d,u=null,f=[],h=[];typeof r=="function"&&h.push(r);function v(){u&&(clearTimeout(u),u=null)}function g(){l==="pending"&&(l="aborted"),v(),f.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),f=[]}function m(y,S){S&&(h=[]),typeof y=="function"&&h.push(y)}function p(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:m,abort:g}}function b(){l="failed",h.forEach(y=>{y(void 0,d)})}function w(){f.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),f=[]}function x(y,S,L){const j=S!=="success";switch(f=f.filter(z=>z!==y),l){case"pending":break;case"failed":if(j||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){d=L,b();return}if(j){d=L,f.length||(s.length?P():b());return}if(v(),w(),!e.random){const z=e.resources.indexOf(y.resource);z!==-1&&z!==e.index&&(e.index=z)}l="completed",h.forEach(z=>{z(L)})}function P(){if(l!=="pending")return;v();const y=s.shift();if(y===void 0){if(f.length){u=setTimeout(()=>{v(),l==="pending"&&(w(),b())},e.timeout);return}b();return}const S={status:"pending",resource:y,callback:(L,j)=>{x(S,L,j)}};f.push(S),c++,u=setTimeout(P,e.rotate),n(y,t,S.callback)}return setTimeout(P),p}function Fi(e){const t={...fu,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,c){const d=pu(t,a,l,(u,f)=>{r(),c&&c(u,f)});return n.push(d),d}function i(a){return n.find(l=>a(l))||null}return{query:o,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function zr(){}const tn=Object.create(null);function hu(e){if(!tn[e]){const t=qn(e);if(!t)return;const n=Fi(t),r={config:t,redundancy:n};tn[e]=r}return tn[e]}function mu(e,t,n){let r,o;if(typeof e=="string"){const i=bn(e);if(!i)return n(void 0,424),zr;o=i.send;const s=hu(e);s&&(r=s.redundancy)}else{const i=Gn(e);if(i){r=Fi(i);const s=e.resources?e.resources[0]:"",a=bn(s);a&&(o=a.send)}}return!r||!o?(n(void 0,424),zr):r.query(t,o,n)().abort}function Vr(){}function gu(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,cu(e)}))}function vu(e){const t=[],n=[];return e.forEach(r=>{(r.match(Oi)?t:n).push(r)}),{valid:t,invalid:n}}function tt(e,t,n){function r(){const o=e.pendingIcons;t.forEach(i=>{o&&o.delete(i),e.icons[i]||e.missing.add(i)})}if(n&&typeof n=="object")try{if(!Ri(e,n).length){r();return}}catch(o){console.error(o)}r(),gu(e)}function Hr(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function _u(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;if(delete e.iconsToLoad,!o||!o.length)return;const i=e.loadIcon;if(e.loadIcons&&(o.length>1||!i)){Hr(e.loadIcons(o,r,n),d=>{tt(e,o,d)});return}if(i){o.forEach(d=>{const u=i(d,r,n);Hr(u,f=>{const h=f?{prefix:r,icons:{[d]:f}}:null;tt(e,[d],h)})});return}const{valid:s,invalid:a}=vu(o);if(a.length&&tt(e,a,null),!s.length)return;const l=r.match(Oi)?bn(n):null;if(!l){tt(e,s,null);return}l.prepare(n,r,s).forEach(d=>{mu(n,d,u=>{tt(e,d.icons,u)})})}))}const bu=(e,t)=>{const n=du(e,!0,Ti()),r=au(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Vr)}),()=>{l=!1}}const o=Object.create(null),i=[];let s,a;return r.pending.forEach(l=>{const{provider:c,prefix:d}=l;if(d===a&&c===s)return;s=c,a=d,i.push(qe(c,d));const u=o[c]||(o[c]=Object.create(null));u[d]||(u[d]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:d,name:u}=l,f=qe(c,d),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(u)||(h.add(u),o[c][d].push(u))}),i.forEach(l=>{const c=o[l.provider][l.prefix];c.length&&_u(l,c)}),t?uu(t,r,i):Vr};function yu(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in Mi?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const wu=/[\s,]+/;function xu(e,t){t.split(wu).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Su(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}function Cu(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function Eu(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function ku(e){return"data:image/svg+xml,"+Eu(e)}function Pu(e){return'url("'+ku(e)+'")'}let ot;function Nu(){try{ot=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ot=null}}function Iu(e){return ot===void 0&&Nu(),ot?ot.createHTML(e):e}const Wi={...Li,inline:!1},Au={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Du={display:"inline-block"},yn={backgroundColor:"currentColor"},Ui={backgroundColor:"transparent"},Gr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Br={WebkitMask:yn,mask:yn,background:Ui};for(const e in Br){const t=Br[e];for(const n in Gr)t[e+n]=Gr[n]}const Ou={...Wi,inline:!0};function qr(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ru=(e,t,n)=>{const r=t.inline?Ou:Wi,o=yu(r,t),i=t.mode||"svg",s={},a=t.style||{},l={...i==="svg"?Au:{}};if(n){const m=Lt(n,!1,!0);if(m){const p=["iconify"],b=["provider","prefix"];for(const w of b)m[w]&&p.push("iconify--"+m[w]);l.className=p.join(" ")}}for(let m in t){const p=t[m];if(p!==void 0)switch(m){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":break;case"_ref":l.ref=p;break;case"className":l[m]=(l[m]?l[m]+" ":"")+p;break;case"inline":case"hFlip":case"vFlip":o[m]=p===!0||p==="true"||p===1;break;case"flip":typeof p=="string"&&xu(o,p);break;case"color":s.color=p;break;case"rotate":typeof p=="string"?o[m]=Su(p):typeof p=="number"&&(o[m]=p);break;case"ariaHidden":case"aria-hidden":p!==!0&&p!=="true"&&delete l["aria-hidden"];break;default:r[m]===void 0&&(l[m]=p)}}const c=ql(e,o),d=c.attributes;if(o.inline&&(s.verticalAlign="-0.125em"),i==="svg"){l.style={...s,...a},Object.assign(l,d);let m=0,p=t.id;return typeof p=="string"&&(p=p.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:Iu(Xl(c.body,p?()=>p+"ID"+m++:"iconifyReact"))},E("svg",l)}const{body:u,width:f,height:h}=e,v=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),g=Cu(u,{...d,width:f+"",height:h+""});return l.style={...s,"--svg":Pu(g),width:qr(d.width),height:qr(d.height),...Du,...v?yn:Ui,...a},E("span",l)};Ti(!0);Zl("",su);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Ul(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Jl(n,o)||console.error(r)}catch{console.error(r)}}}}function ji(e){const[t,n]=U(!!e.ssr),[r,o]=U({});function i(h){if(h){const v=e.icon;if(typeof v=="object")return{name:"",data:v};const g=Wr(v);if(g)return{name:v,data:g}}return{name:""}}const[s,a]=U(i(!!e.ssr));function l(){const h=r.callback;h&&(h(),o({}))}function c(h){if(JSON.stringify(s)!==JSON.stringify(h))return l(),a(h),!0}function d(){var h;const v=e.icon;if(typeof v=="object"){c({name:"",data:v});return}const g=Wr(v);if(c({name:v,data:g}))if(g===void 0){const m=bu([v],d);o({callback:m})}else g&&((h=e.onLoad)===null||h===void 0||h.call(e,v))}M(()=>(n(!0),l),[]),M(()=>{t&&d()},[e.icon,t]);const{name:u,data:f}=s;return f?Ru({...Hn,...f},e,u):e.children?e.children:E("span",{})}const Kr=D((e,t)=>ji({...e,_ref:t}));D((e,t)=>ji({inline:!0,...e,_ref:t}));async function Tu(){try{const t=await(await fetch("https://api.github.com/repos/nostr-protocol/nips/contents/README.md")).json(),n=atob(t.content),r=/\- \[NIP-(\d+)\: (.*?)\]\((\d+\.md)\)/g,o=[];let i;for(;(i=r.exec(n))!==null;){const s=i[1].padStart(2,"0"),a=parseInt(s),l=C(B,{children:i[2].split(/`([^`]+)`/).map((d,u)=>u%2===0?d:C("code",{className:"bg-gray-100 dark:bg-gray-800 rounded px-1.5 py-0.5",children:d},u))}),c=i[3];o.push({nip:s,title:l,rawTitle:i[2],urlGithub:`https://github.com/nostr-protocol/nips/blob/master/${c}`,urlNostrCom:`https://nips.nostr.com/${a}`,content:`NIP-${s}: ${l}`})}return o.sort((s,a)=>parseInt(s.nip)-parseInt(a.nip))}catch(e){return console.error("Error fetching NIPs:",e),[]}}const Mu=()=>{const[e,t]=U("linear"),[n,r]=U("");O(null);const o=Onull,[i,s]=U([]),[a,l]=U(!1);M(()=>{Ut.registerDragRegion(),Ut.showMoveButton({bottom:.2,left:.2}),(async()=>{l(!0);try{const f=await Tu();s(f)}catch(f){console.error("Failed to load NIPs:",f)}finally{l(!1)}})()},[]);function c(u){u.key==="Escape"&&(n.length===0?Ut.goBack():r(""))}const d=n?i.filter(u=>u.rawTitle.toLowerCase().includes(n.toLowerCase())||u.nip.includes(n)||u.content.toLowerCase().includes(n.toLowerCase())):i;return console.log(i,d),C(Rc,{children:C("main",{className:"h-screen",children:C(Si,{onValueChange:u=>{t(u)},children:[C(Ci,{autoFocus:!0,ref:o,placeholder:"Search NIPs by number or title...",className:"h-12",onInput:u=>{r(u.target.value)},value:n,onKeyDown:c,children:C("div",{className:"h-8 w-8"})}),C(Ei,{className:"h-full",children:a?C("div",{className:"p-4 text-center",children:"Loading NIPs..."}):C(B,{children:[C(ki,{children:"No NIPs found."}),C(Pi,{heading:"Nostr Implementation Possibilities",children:d.map(u=>C(Ni,{children:C("div",{className:"flex items-center justify-between w-full",children:[C("div",{className:"truncate",children:[C("span",{className:"font-bold",children:["NIP-",u.nip]}),": ",u.title]}),C("div",{className:"flex space-x-2 ml-2",children:[C(fn,{style:{padding:".1em .4em"},onClick:f=>{f.stopPropagation(),cr.url(u.urlNostrCom)},title:"Open on nips.nostr.com",children:C(Kr,{icon:"game-icons:ostrich",width:"20",height:"20"})}),C(fn,{style:{padding:".1em .4em"},onClick:f=>{f.stopPropagation(),cr.url(u.urlGithub)},title:"Open on GitHub",children:C(Kr,{icon:"mdi:github",width:"20",height:"20"})})]})]})},u.nip))})]})})]})})})};He(C(Mu,{}),document.getElementById("root")); diff --git a/dist/extension.svg b/dist/extension.svg deleted file mode 100644 index 5994ca8..0000000 --- a/dist/extension.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/index-nip.js b/dist/index-nip.js new file mode 100644 index 0000000..faa244c --- /dev/null +++ b/dist/index-nip.js @@ -0,0 +1,6 @@ +var AF="__DESTROY__";var GF=class{name="worker-child-io";messageQueue=[];resolveRead=null;constructor(){self.onmessage=this.handleMessage}handleMessage=(F)=>{let Q=F.data;if(Q===AF){this.destroy();return}if(this.resolveRead)this.resolveRead(Q),this.resolveRead=null;else this.messageQueue.push(Q)};async read(){if(this.messageQueue.length>0)return this.messageQueue.shift()??null;return new Promise((F)=>{this.resolveRead=F})}async write(F){self.postMessage(F)}destroy(){self.postMessage(AF),self.close()}signalDestroy(){self.postMessage(AF)}};function yQ(F,Q){if(Q instanceof Uint8Array)return{type:"Uint8Array",data:Array.from(Q)};return Q}function vQ(F,Q){if(Q&&Q.type==="Uint8Array"&&Array.isArray(Q.data))return new Uint8Array(Q.data);return Q}function n(F){return JSON.stringify(F,yQ)+` +`}function rF(F){return new Promise((Q,$)=>{try{let Y=JSON.parse(F,vQ);Q(Y)}catch(Y){console.error("failed to parse message",typeof F,F,Y),$(Y)}})}function $F(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var k=class{constructor(F,Q){this.io=F,this.apiImplementation=Q?.expose,this.listen()}pendingRequests={};callbacks={};callbackCache=new Map;count=0;messageStr="";apiImplementation;expose(F){this.apiImplementation=F}getIO(){return this.io}async listen(){while(!0){let F=await this.io.read();if(!F)continue;let Q=F.toString("utf-8");if(Q.trim().length===0)continue;this.messageStr+=Q;let $=this.messageStr[this.messageStr.length-1],Y=this.messageStr.split(` +`),M=$===` +`?Y:Y.slice(0,-1);this.messageStr=$===` +`?"":Y.at(-1)??"";for(let w of M.map((T)=>T.trim()).filter(Boolean))if(w.startsWith("{"))this.handleMessageStr(w);else console.log("(kkrpc stdout passthrough):",w)}}async handleMessageStr(F){return this.count++,rF(F).then((Q)=>{if(Q.type==="response")this.handleResponse(Q);else if(Q.type==="request")this.handleRequest(Q);else if(Q.type==="callback")this.handleCallback(Q);else console.error("received unknown message type",Q,typeof Q)}).catch((Q)=>{console.log("(kkrpc stdout passthrough):",F)})}callMethod(F,Q){return new Promise(($,Y)=>{let M=$F();this.pendingRequests[M]={resolve:$,reject:Y};let w=[],T=Q.map((x)=>{if(typeof x==="function"){let R=this.callbackCache.get(x);if(!R)R=$F(),this.callbacks[R]=x,this.callbackCache.set(x,R);return w.push(R),`__callback__${R}`}return x}),X={id:M,method:F,args:T,type:"request",callbackIds:w.length>0?w:void 0};this.io.write(n(X))})}handleResponse(F){let{id:Q}=F,{result:$,error:Y}=F.args;if(this.pendingRequests[Q]){if(Y)this.pendingRequests[Q].reject(new Error(Y));else this.pendingRequests[Q].resolve($);delete this.pendingRequests[Q]}}handleRequest(F){let{id:Q,method:$,args:Y}=F,M=$.split(".");if(!this.apiImplementation)return;let w=this.apiImplementation;for(let R=0;R{if(typeof R==="string"&&R.startsWith("__callback__")){let A=R.slice(12);return(...b)=>{this.invokeCallback(A,b)}}return R});try{let R=X.apply(w,x);Promise.resolve(R).then((A)=>{return this.sendResponse(Q,A)}).catch((A)=>this.sendError(Q,A.message))}catch(R){this.sendError(Q,R.message??R.toString())}}invokeCallback(F,Q){let $={id:$F(),method:F,args:Q,type:"callback"};this.io.write(n($))}handleCallback(F){let{method:Q,args:$}=F,Y=this.callbacks[Q];if(Y)Y(...$);else console.error(`Callback with id ${Q} not found`)}sendResponse(F,Q){let $={id:F,method:"",args:{result:Q},type:"response"};this.io.write(n($))}sendError(F,Q){let $={id:F,method:"",args:{error:Q},type:"response"};this.io.write(n($))}createNestedProxy(F=[]){return new Proxy(()=>{},{get:(Q,$)=>{if(typeof $==="string"&&$!=="then")return this.createNestedProxy([...F,$]);return},apply:(Q,$,Y)=>{let M=F.join(".");return this.callMethod(M,Y)}})}getAPI(){return this.createNestedProxy()}freeCallbacks(){this.callbacks={},this.callbackCache.clear()}};function C(F,Q,$,Y){if($==="a"&&!Y)throw new TypeError("Private accessor was defined without a getter");if(typeof Q==="function"?F!==Q||!Y:!Q.has(F))throw new TypeError("Cannot read private member from an object whose class did not declare it");return $==="m"?Y:$==="a"?Y.call(F):Y?Y.value:Q.get(F)}function HF(F,Q,$,Y,M){if(Y==="m")throw new TypeError("Private method is not writable");if(Y==="a"&&!M)throw new TypeError("Private accessor was defined without a setter");if(typeof Q==="function"?F!==Q||!M:!Q.has(F))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Y==="a"?M.call(F,$):M?M.value=$:Q.set(F,$),$}var m,E,u,lQ,oF="__TAURI_TO_IPC_KEY__";function nF(F,Q=!1){return window.__TAURI_INTERNALS__.transformCallback(F,Q)}class NF{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,m.set(this,()=>{}),E.set(this,0),u.set(this,[]),this.id=nF(({message:F,id:Q})=>{if(Q==C(this,E,"f")){C(this,m,"f").call(this,F),HF(this,E,C(this,E,"f")+1,"f");while(C(this,E,"f")in C(this,u,"f")){let $=C(this,u,"f")[C(this,E,"f")];C(this,m,"f").call(this,$),delete C(this,u,"f")[C(this,E,"f")],HF(this,E,C(this,E,"f")+1,"f")}}else C(this,u,"f")[Q]=F})}set onmessage(F){HF(this,m,F,"f")}get onmessage(){return C(this,m,"f")}[(m=new WeakMap,E=new WeakMap,u=new WeakMap,oF)](){return`__CHANNEL__:${this.id}`}toJSON(){return this[oF]()}}lQ=new WeakMap;var iF;(function(F){F.WINDOW_RESIZED="tauri://resize",F.WINDOW_MOVED="tauri://move",F.WINDOW_CLOSE_REQUESTED="tauri://close-requested",F.WINDOW_DESTROYED="tauri://destroyed",F.WINDOW_FOCUS="tauri://focus",F.WINDOW_BLUR="tauri://blur",F.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",F.WINDOW_THEME_CHANGED="tauri://theme-changed",F.WINDOW_CREATED="tauri://window-created",F.WEBVIEW_CREATED="tauri://webview-created",F.DRAG_ENTER="tauri://drag-enter",F.DRAG_OVER="tauri://drag-over",F.DRAG_DROP="tauri://drag-drop",F.DRAG_LEAVE="tauri://drag-leave"})(iF||(iF={}));var d;(function(F){F[F.Audio=1]="Audio",F[F.Cache=2]="Cache",F[F.Config=3]="Config",F[F.Data=4]="Data",F[F.LocalData=5]="LocalData",F[F.Document=6]="Document",F[F.Download=7]="Download",F[F.Picture=8]="Picture",F[F.Public=9]="Public",F[F.Video=10]="Video",F[F.Resource=11]="Resource",F[F.Temp=12]="Temp",F[F.AppConfig=13]="AppConfig",F[F.AppData=14]="AppData",F[F.AppLocalData=15]="AppLocalData",F[F.AppCache=16]="AppCache",F[F.AppLog=17]="AppLog",F[F.Desktop=18]="Desktop",F[F.Executable=19]="Executable",F[F.Font=20]="Font",F[F.Home=21]="Home",F[F.Runtime=22]="Runtime",F[F.Template=23]="Template"})(d||(d={}));var dF;(function(F){F[F.Trace=1]="Trace",F[F.Debug=2]="Debug",F[F.Info=3]="Info",F[F.Warn=4]="Warn",F[F.Error=5]="Error"})(dF||(dF={}));function BF(F){return async function Q($,Y){console.log("fetch",$,Y);let M=Y?.maxRedirections,w=Y?.connectTimeout,T=Y?.proxy;if(Y!=null)delete Y.maxRedirections,delete Y.connectTimeout,delete Y.proxy;let X=Y?.signal,R=(Y?.headers==null?[]:Y.headers instanceof Headers?Array.from(Y.headers.entries()):Array.isArray(Y.headers)?Y.headers:Object.entries(Y.headers)).map(([j,g])=>[j,typeof g==="string"?g:g.toString()]),A=new Request($,Y),b=await A.arrayBuffer(),VF=b.byteLength!==0?Array.from(new Uint8Array(b)):null,FF=await F.rawFetch({clientConfig:{method:A.method,url:A.url,headers:R,data:VF,maxRedirections:M,connectTimeout:w,proxy:T}});X?.addEventListener("abort",()=>{F.fetchCancel(FF)});let{status:KF,statusText:LF,url:jF,headers:L,rid:f}=await F.fetchSend(FF),S=await F.fetchReadBody(f),QF=new Response(S instanceof ArrayBuffer&&S.byteLength!==0?S:S instanceof Array&&S.length>0?new Uint8Array(S):null,{headers:L,status:KF,statusText:LF});return Object.defineProperty(QF,"url",{value:jF}),QF}}class s{constructor(){this.eventListeners=Object.create(null)}addListener(F,Q){return this.on(F,Q)}removeListener(F,Q){return this.off(F,Q)}on(F,Q){if(F in this.eventListeners)this.eventListeners[F].push(Q);else this.eventListeners[F]=[Q];return this}once(F,Q){let $=(Y)=>{this.removeListener(F,$),Q(Y)};return this.addListener(F,$)}off(F,Q){if(F in this.eventListeners)this.eventListeners[F]=this.eventListeners[F].filter(($)=>$!==Q);return this}removeAllListeners(F){if(F)delete this.eventListeners[F];else this.eventListeners=Object.create(null);return this}emit(F,Q){if(F in this.eventListeners){let $=this.eventListeners[F];for(let Y of $)Y(Q);return!0}return!1}listenerCount(F){if(F in this.eventListeners)return this.eventListeners[F].length;return 0}prependListener(F,Q){if(F in this.eventListeners)this.eventListeners[F].unshift(Q);else this.eventListeners[F]=[Q];return this}prependOnceListener(F,Q){let $=(Y)=>{this.removeListener(F,$),Q(Y)};return this.prependListener(F,$)}}function bF(F){return{upload:(Q,$,Y,M)=>F.upload(Q,$,Y?Y:void 0,M),download:(Q,$,Y,M)=>F.download(Q,$,Y?Y:void 0,M)}}function sF(F){return{onDragDrop:(Q)=>F.onDragDrop(Q),onDragEnter:(Q)=>F.onDragEnter(Q),onDragLeave:(Q)=>F.onDragLeave(Q),onDragOver:(Q)=>F.onDragOver(Q),onWindowBlur:(Q)=>F.onWindowBlur(Q),onWindowCloseRequested:(Q)=>F.onWindowCloseRequested(Q),onWindowFocus:(Q)=>F.onWindowFocus(Q)}}function tF(F){return{BaseDirectory:d,appCacheDir:F.appCacheDir,appConfigDir:F.appConfigDir,appDataDir:F.appDataDir,appLocalDataDir:F.appLocalDataDir,appLogDir:F.appLogDir,audioDir:F.audioDir,basename:F.basename,cacheDir:F.cacheDir,configDir:F.configDir,dataDir:F.dataDir,delimiter:F.delimiter,desktopDir:F.desktopDir,dirname:F.dirname,documentDir:F.documentDir,downloadDir:F.downloadDir,executableDir:F.executableDir,extname:F.extname,fontDir:F.fontDir,homeDir:F.homeDir,isAbsolute:F.isAbsolute,join:F.join,localDataDir:F.localDataDir,normalize:F.normalize,pictureDir:F.pictureDir,publicDir:F.publicDir,resolve:F.resolve,resolveResource:F.resolveResource,resourceDir:F.resourceDir,runtimeDir:F.runtimeDir,sep:F.sep,tempDir:F.tempDir,templateDir:F.templateDir,videoDir:F.videoDir,extensionDir:F.extensionDir,extensionSupportDir:F.extensionSupportDir}}class t{pid;api;constructor(F,Q){this.pid=F,this.api=Q}async write(F){this.api.stdinWrite(F.toString(),this.pid)}kill(){return this.api.kill(this.pid)}}class PF extends s{program;args;options;stdout=new s;stderr=new s;constructor(F,Q=[],$){super();this.program=F,this.args=typeof Q==="string"?[Q]:Q,this.options=$??{}}}class qF extends PF{api;constructor(F,Q=[],$,Y){super(F,Q,Y);this.api=$}async spawn(){let F=this.args;if(typeof F==="object")Object.freeze(F);return this.api.rawSpawn(this.program,F,this.options,(Q)=>{switch(Q.event){case"Error":this.emit("error",Q.payload);break;case"Terminated":this.emit("close",Q.payload);break;case"Stdout":this.stdout.emit("data",Q.payload);break;case"Stderr":this.stderr.emit("data",Q.payload);break}}).then(async(Q)=>{return await this.api.recordSpawnedProcess(Q),new t(Q,this.api)})}async execute(){let F=this.args;if(typeof F==="object")Object.freeze(F);return this.api.execute(this.program,this.args,this.options)}}class SF extends PF{config;scriptPath;api;constructor(F,Q,$,Y){super("deno",Q);this.config=$,this.scriptPath=F,this.api=Y}execute(){return this.api.denoExecute(this.scriptPath,this.config,this.args)}spawn(){return this.api.denoRawSpawn(this.scriptPath,this.config,this.args,(F)=>{switch(F.event){case"Error":this.emit("error",F.payload);break;case"Terminated":this.emit("close",F.payload);break;case"Stdout":this.stdout.emit("data",F.payload);break;case"Stderr":this.stderr.emit("data",F.payload);break}}).then(async(F)=>{return console.log("spawned deno process",F),await this.api.recordSpawnedProcess(F),new t(F,this.api)})}}class CF{readStream;childProcess;name="tauri-shell-stdio";constructor(F,Q){this.readStream=F;this.childProcess=Q}read(){return new Promise((F,Q)=>{this.readStream.on("data",($)=>{F($)})})}async write(F){return this.childProcess.write(F+` +`)}}function eF(F){function Q(L,f=[],S){return new qF(L,f,F,S)}function $(L,f,S){return new SF(L,f,S,F)}async function Y(L,f,S,QF){let j=$(L,f,S),g=await j.spawn(),fQ=new CF(j.stdout,g);return{rpcChannel:new k(fQ,{expose:QF}),process:g,command:j}}function M(L){return Q("bash",["-c",L])}function w(L){return Q("powershell",["-Command",L])}function T(L){return Q("osascript",["-e",L])}function X(L){return Q("python",["-c",L])}function x(L){return Q("zsh",["-c",L])}function R(L){return Q("node",["-e",L])}async function A(L){return M(L).execute()}async function b(L){return w(L).execute()}async function VF(L){return T(L).execute()}async function FF(L){return X(L).execute()}async function KF(L){return x(L).execute()}async function LF(L){return R(L).execute()}function jF(){return F.likelyOnWindows()}return{open:F.open,killPid:F.killPid,makeBashScript:M,makePowershellScript:w,makeAppleScript:T,makePythonScript:X,makeZshScript:x,makeNodeScript:R,executeBashScript:A,executePowershellScript:b,executeAppleScript:VF,executePythonScript:FF,executeZshScript:KF,executeNodeScript:LF,hasCommand:F.hasCommand,likelyOnWindows:jF,createCommand:Q,createDenoCommand:$,Child:t,TauriShellStdio:CF,createDenoRpcChannel:Y,RPCChannel:k,whereIsCommand:F.whereIsCommand}}function aF(F){return{message:(Q,$,Y)=>F.message(Q,$,Y?Y:void 0),info:(Q,$,Y)=>F.info(Q,$,Y?Y:void 0),success:(Q,$,Y)=>F.success(Q,$,Y?Y:void 0),warning:(Q,$,Y)=>F.warning(Q,$,Y?Y:void 0),error:(Q,$,Y)=>F.error(Q,$,Y?Y:void 0)}}class YF{searchTerm="";highlightedListItemValue;onSearchTermChange(F){return this.searchTerm=F,Promise.resolve()}onActionSelected(F){return Promise.resolve()}onEnterPressedOnSearchBar(){return Promise.resolve()}onFilesDropped(F){return Promise.resolve()}onBeforeGoBack(){return Promise.resolve()}onListItemSelected(F){return Promise.resolve()}onListScrolledToBottom(){return Promise.resolve()}onHighlightedListItemChanged(F){return this.highlightedListItemValue=F,Promise.resolve()}onFormSubmit(F){return Promise.resolve()}}var EF;function pQ(F){return{lang:F?.lang??EF?.lang,message:F?.message,abortEarly:F?.abortEarly??EF?.abortEarly,abortPipeEarly:F?.abortPipeEarly??EF?.abortPipeEarly}}var gQ;function mQ(F){return gQ?.get(F)}var uQ;function cQ(F){return uQ?.get(F)}var rQ;function oQ(F,Q){return rQ?.get(F)?.get(Q)}function y(F){let Q=typeof F;if(Q==="string")return`"${F}"`;if(Q==="number"||Q==="bigint"||Q==="boolean")return`${F}`;if(Q==="object"||Q==="function")return(F&&Object.getPrototypeOf(F)?.constructor?.name)??"null";return Q}function G(F,Q,$,Y,M){let w=M&&"input"in M?M.input:$.value,T=M?.expected??F.expects??null,X=M?.received??y(w),x={kind:F.kind,type:F.type,input:w,expected:T,received:X,message:`Invalid ${Q}: ${T?`Expected ${T} but r`:"R"}eceived ${X}`,requirement:F.requirement,path:M?.path,issues:M?.issues,lang:Y.lang,abortEarly:Y.abortEarly,abortPipeEarly:Y.abortPipeEarly},R=F.kind==="schema",A=M?.message??F.message??oQ(F.reference,x.lang)??(R?cQ(x.lang):null)??Y.message??mQ(x.lang);if(A!==void 0)x.message=typeof A==="function"?A(x):A;if(R)$.typed=!1;if($.issues)$.issues.push(x);else $.issues=[x]}function N(F){return{version:1,vendor:"valibot",validate(Q){return F["~run"]({value:Q},pQ())}}}function nQ(F,Q){return Object.hasOwn(F,Q)&&Q!=="__proto__"&&Q!=="prototype"&&Q!=="constructor"}function QQ(F,Q){let $=[...new Set(F)];if($.length>1)return`(${$.join(` ${Q} `)})`;return $[0]??"never"}var iQ=/^#(?:[\da-fA-F]{3,4}|[\da-fA-F]{6}|[\da-fA-F]{8})$/u;function IF(F){return{kind:"validation",type:"hex_color",reference:IF,async:!1,expects:null,requirement:iQ,message:F,"~run"(Q,$){if(Q.typed&&!this.requirement.test(Q.value))G(this,"hex color",Q,$);return Q}}}function DF(F,Q){return{kind:"validation",type:"max_value",reference:DF,async:!1,expects:`<=${F instanceof Date?F.toJSON():y(F)}`,requirement:F,message:Q,"~run"($,Y){if($.typed&&!($.value<=this.requirement))G(this,"value",$,Y,{received:$.value instanceof Date?$.value.toJSON():y($.value)});return $}}}function kF(F,Q){return{kind:"validation",type:"min_value",reference:kF,async:!1,expects:`>=${F instanceof Date?F.toJSON():y(F)}`,requirement:F,message:Q,"~run"($,Y){if($.typed&&!($.value>=this.requirement))G(this,"value",$,Y,{received:$.value instanceof Date?$.value.toJSON():y($.value)});return $}}}function dQ(F,Q,$){return typeof F.fallback==="function"?F.fallback(Q,$):F.fallback}function hF(F,Q,$){return typeof F.default==="function"?F.default(Q,$):F.default}function e(){return{kind:"schema",type:"any",reference:e,expects:"any",async:!1,get "~standard"(){return N(this)},"~run"(F){return F.typed=!0,F}}}function O(F,Q){return{kind:"schema",type:"array",reference:O,expects:"Array",async:!1,item:F,message:Q,get "~standard"(){return N(this)},"~run"($,Y){let M=$.value;if(Array.isArray(M)){$.typed=!0,$.value=[];for(let w=0;w$.expects),"|"),async:!1,options:F,message:Q,get "~standard"(){return N(this)},"~run"($,Y){let M,w,T;for(let X of this.options){let x=X["~run"]({value:$.value},Y);if(x.typed)if(x.issues)if(w)w.push(x);else w=[x];else{M=x;break}else if(T)T.push(x);else T=[x]}if(M)return M;if(w){if(w.length===1)return w[0];G(this,"type",$,Y,{issues:FQ(w)}),$.typed=!0}else if(T?.length===1)return T[0];else G(this,"type",$,Y,{issues:FQ(T)});return $}}}function fF(...F){return{...F[0],pipe:F,get "~standard"(){return N(this)},"~run"(Q,$){for(let Y of F)if(Y.kind!=="metadata"){if(Q.issues&&(Y.kind==="schema"||Y.kind==="transformation")){Q.typed=!1;break}if(!Q.issues||!$.abortEarly&&!$.abortPipeEarly)Q=Y["~run"](Q,$)}return Q}}}var h;((j)=>{j.List="List";j.ListItem="ListItem";j.ListItemDetail="ListItemDetail";j.ListItemAccessory="ListItemAccessory";j.ListSection="ListSection";j.ListItemDetailMetadata="ListItemDetailMetadata";j.ListItemDetailMetadataLabel="ListItemDetailMetadataLabel";j.ListItemDetailMetadataLink="ListItemDetailMetadataLink";j.ListItemDetailMetadataTagList="ListItemDetailMetadataTagList";j.ListItemDetailMetadataTagListItem="ListItemDetailMetadataTagListItem";j.ListItemDetailMetadataSeparator="ListItemDetailMetadataSeparator";j.Icon="Icon";j.EmptyView="EmptyView";j.Dropdown="Dropdown";j.DropdownSection="DropdownSection";j.DropdownItem="DropdownItem";j.ActionPanel="ActionPanel";j.Action="Action";j.ActionPanelSection="ActionPanelSection";j.ActionPanelSubmenu="ActionPanelSubmenu";j.Markdown="Markdown"})(h||={});var q=P(h),UF;((x)=>{x.Base="Base";x.Number="Number";x.Select="Select";x.Boolean="Boolean";x.Input="Input";x.Date="Date";x.Array="Array";x.Form="Form"})(UF||={});var a=P(UF);var yF;((w)=>{w.Iconify="iconify";w.RemoteUrl="remote-url";w.Svg="svg";w.Base64PNG="base64-png";w.Text="text"})(yF||={});var $Q=P(yF),HQ=Z({type:$Q,value:J(),invert:U(K()),darkInvert:U(K()),hexColor:U(J()),bgColor:U(J())}),B=Z({...HQ.entries,fallback:U(D(()=>B))}),sQ=Z({...HQ.entries,nodeName:q,fallback:U(D(()=>B))});var c=fF(J(),IF()),kH=Z({top:U(V()),right:U(V()),bottom:U(V()),left:U(V())}),hH=z([H("light"),H("dark"),H("auto")]),_H=z([H("zinc"),H("slate"),H("stone"),H("gray"),H("neutral"),H("red"),H("rose"),H("orange"),H("green"),H("blue"),H("yellow"),H("violet")]),fH=fF(V(),kF(0),DF(1));var tQ=Z({nodeName:q,icon:U(B),title:J(),value:J()}),vF=Z({nodeName:q,title:U(J()),items:O(z([tQ]))});var ZF=Z({nodeName:q,content:J()});var wY=Z({nodeName:q,title:U(J()),description:U(J()),icon:U(B)}),eQ=Z({nodeName:q,title:J(),value:J(),icon:U(B),keywords:U(O(J()))}),aQ=Z({nodeName:q,title:J(),items:O(eQ)}),zY=Z({nodeName:q,tooltip:J(),sections:O(aQ),defaultValue:J()}),F$=Z({nodeName:q,tag:U(z([J(),Z({color:c,text:J()})])),text:U(z([J(),Z({color:c,text:J()})])),date:U(z([v(),Z({color:c,text:v()})])),icon:U(B),tooltip:U(J())}),Q$=Z({nodeName:H("ListItemDetailMetadataLabel"),title:J(),icon:U(B),text:U(z([J(),Z({color:c,text:J()})]))}),$$=Z({nodeName:H("ListItemDetailMetadataLink"),title:J(),text:J(),url:J()}),H$=Z({nodeName:H("ListItemDetailMetadataTagListItem"),text:U(J()),color:U(c)}),Y$=Z({nodeName:H("ListItemDetailMetadataTagList"),title:J(),tags:O(H$)}),J$=Z({nodeName:H("ListItemDetailMetadataSeparator")}),U$=z([Q$,$$,Y$,J$]),Z$=Z({nodeName:H("ListItemDetailMetadata"),items:O(U$)}),M$=Z({nodeName:H("ListItemDetail"),children:O(z([ZF,Z$])),width:U(V())}),JQ=Z({nodeName:H("ListItem"),title:J(),subTitle:U(J()),accessories:U(O(F$)),value:J(),defaultAction:U(J()),actions:U(vF),icon:U(B),keywords:U(O(J()))}),w$=Z({nodeName:H("ListSection"),title:U(J()),subtitle:U(J()),items:O(JQ)}),z$=z([H("items"),H("detail"),H("filter"),H("sections"),H("actions"),H("defaultAction")]),xY=Z({nodeName:H("List"),sections:U(O(w$)),items:U(O(JQ)),filter:z([H("none"),H("default")]),detail:U(M$),actions:U(vF),defaultAction:U(J()),inherits:U(O(z$))});var x$=z([H("color"),H("date"),H("datetime-local"),H("month"),H("number"),H("password"),H("text"),H("url"),H("week"),H("time"),H("search")]),r=Z({nodeName:a,key:J(),label:U(J()),hideLabel:U(K()),placeholder:U(J()),optional:U(K()),description:U(J()),default:U(e())}),UQ=Z({...r.entries,type:U(x$),component:U(z([H("textarea"),H("default")])),default:U(J())}),ZQ=Z({...r.entries,nodeName:a,default:U(V())}),MQ=Z({...r.entries,options:O(J()),default:U(J())}),wQ=Z({...r.entries,component:U(z([H("checkbox"),H("switch")]))}),zQ=Z({...r.entries,default:U(J())}),O$=z([UQ,ZQ,MQ,wQ,zQ]),W$=Z({...r.entries,content:O$}),R$=z([W$,MQ,UQ,ZQ,wQ,zQ]),T$=Z({nodeName:a,key:J(),showFormDataDebug:U(K()),fields:O(z([D(()=>T$),R$])),title:U(J()),description:U(J()),submitBtnText:U(J())});class OQ{nodeName="Icon";type;value;invert;darkInvert;hexColor;bgColor;constructor(F){this.type=F.type,this.value=F.value,this.invert=F.invert,this.darkInvert=F.darkInvert,this.hexColor=F.hexColor,this.bgColor=F.bgColor}toModel(){return{nodeName:this.nodeName,type:this.type,value:this.value,invert:this.invert,darkInvert:this.darkInvert,hexColor:this.hexColor,bgColor:this.bgColor}}}class X${nodeName="EmptyView";title;description;icon;constructor(F){this.title=F.title,this.description=F.description,this.icon=F.icon}toModel(){return{nodeName:this.nodeName,title:this.title,description:this.description,icon:this.icon?.toModel()}}}class V${nodeName="DropdownItem";title;value;icon;keywords;constructor(F){this.title=F.title,this.value=F.value,this.icon=F.icon,this.keywords=F.keywords}toModel(){return{nodeName:this.nodeName,title:this.title,value:this.value,icon:this.icon?.toModel(),keywords:this.keywords}}}class K${nodeName="DropdownSection";title;items;constructor(F){this.title=F.title,this.items=F.items}toModel(){return{nodeName:this.nodeName,title:this.title,items:this.items.map((F)=>F.toModel())}}}class L${nodeName="Dropdown";tooltip;sections;defaultValue;constructor(F){this.tooltip=F.tooltip,this.sections=F.sections,this.defaultValue=F.defaultValue}toModel(){return{nodeName:this.nodeName,tooltip:this.tooltip,sections:this.sections.map((F)=>F.toModel()),defaultValue:this.defaultValue}}}class j${nodeName="ListItemAccessory";tag;text;date;icon;tooltip;constructor(F){this.tag=F.tag,this.text=F.text,this.date=F.date,this.icon=F.icon,this.tooltip=F.tooltip}toModel(){return{nodeName:this.nodeName,tag:this.tag,text:this.text,date:this.date,icon:this.icon?.toModel(),tooltip:this.tooltip}}}class A${nodeName="ListItemDetailMetadataLabel";title;icon;text;constructor(F){this.title=F.title,this.icon=F.icon,this.text=F.text}toModel(){return{nodeName:this.nodeName,title:this.title,icon:this.icon?.toModel(),text:this.text}}}class G${nodeName="ListItemDetailMetadataLink";title;text;url;constructor(F){this.title=F.title,this.text=F.text,this.url=F.url}toModel(){return{nodeName:this.nodeName,title:this.title,text:this.text,url:this.url}}}class N${nodeName="ListItemDetailMetadataTagListItem";text;color;icon;constructor(F){this.text=F.text,this.color=F.color,this.icon=F.icon}toModel(){return{nodeName:this.nodeName,text:this.text,color:this.color}}}class B${nodeName="ListItemDetailMetadataTagList";title;tags;constructor(F){this.title=F.title,this.tags=F.tags}toModel(){return{nodeName:this.nodeName,title:this.title,tags:this.tags.map((F)=>F.toModel())}}}class b${nodeName="ListItemDetailMetadataSeparator";toModel(){return{nodeName:this.nodeName}}}class C${nodeName="ListItemDetailMetadata";items;constructor(F){this.items=F}toModel(){return{nodeName:this.nodeName,items:this.items.map((F)=>F.toModel())}}}class P${nodeName="ListItemDetail";children;width;constructor(F){this.children=F.children,this.width=F.width}toModel(){return{nodeName:this.nodeName,children:this.children.map((F)=>F.toModel()),width:this.width}}}class q${nodeName="ListItem";title;value;subTitle;accessories;icon;keywords;defaultAction;actions;constructor(F){this.title=F.title,this.value=F.value,this.actions=F.actions,this.defaultAction=F.defaultAction,this.subTitle=F.subTitle,this.accessories=F.accessories,this.icon=F.icon,this.keywords=F.keywords}toModel(){return{nodeName:this.nodeName,title:this.title,value:this.value,defaultAction:this.defaultAction,actions:this.actions?.toModel(),subTitle:this.subTitle,accessories:this.accessories?.map((F)=>F.toModel()),icon:this.icon?.toModel(),keywords:this.keywords}}}class S${nodeName="ListSection";title;items;constructor(F){this.title=F.title,this.items=F.items}toModel(){return{nodeName:this.nodeName,title:this.title,items:this.items.map((F)=>F.toModel())}}}class E${nodeName="List";sections;items;detail;filter;inherits;actions;defaultAction;constructor(F){this.sections=F.sections,this.items=F.items,this.detail=F.detail,this.filter=F.filter??"default",this.inherits=F.inherits??[],this.actions=F.actions,this.defaultAction=F.defaultAction}toModel(){return{nodeName:this.nodeName,sections:this.sections?.map((F)=>F.toModel()),items:this.items?.map((F)=>F.toModel()),filter:this.filter,detail:this.detail?.toModel(),inherits:this.inherits,actions:this.actions?.toModel(),defaultAction:this.defaultAction}}}class I${nodeName="Action";icon;title;value;constructor(F){this.icon=F.icon,this.title=F.title,this.value=F.value}toModel(){return{nodeName:this.nodeName,title:this.title,value:this.value,icon:this.icon}}}class D${nodeName="ActionPanel";title;items;constructor(F){this.title=F.title,this.items=F.items}toModel(){return{nodeName:this.nodeName,title:this.title,items:this.items.map((F)=>F.toModel())}}}var bY=Z({name:J(),icon_path:W(J()),app_path_exe:W(J()),app_desktop_path:J()});var SY=I(J("Window label"),Z({path:J("Path to the extension"),processes:O(V()),dist:U(W(J()))})),EY=Z({extId:V(),identifier:J(),version:J(),enabled:K(),installed_at:J(),path:W(J()),data:W(e())}),TQ;((X)=>{X.HeadlessWorker="headless_worker";X.Builtin="builtin";X.System="system";X.UiWorker="ui_worker";X.UiIframe="ui_iframe";X.QuickLink="quick_link";X.Remote="remote"})(TQ||={});var _=P(TQ),k$=Z({cmdId:V(),extId:V(),name:J(),type:_,data:J(),alias:W(U(J())),hotkey:W(U(J())),enabled:K()}),IY=Z({...k$.entries,data:Z({link:J(),icon:B})}),DY=Z({dataId:V(),extId:V(),dataType:J(),data:U(J()),searchText:U(J()),createdAt:v(),updatedAt:v()}),kY=Z({name:J(),value:J(),icon:W(B),keywords:W(O(J())),function:_F(),confirmRequired:K()});var XQ;(($)=>{$.Asc="ASC";$.Desc="DESC"})(XQ||={});var fY=P(XQ),VQ;((Y)=>{Y.ExactMatch="exact_match";Y.Like="like";Y.FTS="fts"})(VQ||={});var yY=P(VQ);var MF=z([H("clipboard:read-all"),H("clipboard:write-all"),H("clipboard:read-text"),H("clipboard:write-text"),H("clipboard:read-image"),H("clipboard:write-image"),H("clipboard:read-files"),H("clipboard:write-files")]),wF=z([H("dialog:all")]),zF=z([H("notification:all")]),xF=z([H("fs:read"),H("fs:write"),H("fs:exists")]),OF=H("os:all"),KQ=z([H("shell:open"),H("shell:execute"),H("shell:kill-any")]),WF=H("fetch:all"),RF=z([H("system-info:all"),H("system-info:memory"),H("system-info:cpu"),H("system-info:os"),H("system-info:disk"),H("system-info:network"),H("system-info:battery"),H("system-info:process"),H("system-info:components")]),TF=z([H("network:interface"),H("network:port")]),XF=z([H("updownload:download"),H("updownload:upload")]),h$=z([MF,wF,zF,xF,OF,KQ,WF,RF,TF,XF]);var pF={readText:["clipboard:read-text","clipboard:read-all"],writeText:["clipboard:write-text","clipboard:write-all"],readImageBase64:["clipboard:read-all","clipboard:read-image"],readImageBinary:["clipboard:read-all","clipboard:read-image"],writeImageBase64:["clipboard:write-all","clipboard:write-image"],writeImageBinary:["clipboard:write-all","clipboard:write-image"],readFiles:["clipboard:read-all","clipboard:read-files"],writeFiles:["clipboard:write-all","clipboard:write-files"],readRtf:["clipboard:read-all","clipboard:read-text"],writeRtf:["clipboard:write-all","clipboard:write-text"],readHtml:["clipboard:read-all","clipboard:read-text"],writeHtml:["clipboard:write-all","clipboard:write-text"],writeHtmlAndText:["clipboard:write-all","clipboard:write-text"],hasText:[],hasRTF:[],hasHTML:[],hasImage:[],hasFiles:[]};var g$=z([MF,H("clipboard:paste")]),LQ=z([H("system:volumn"),H("system:boot"),H("system:disk"),H("system:apps"),H("system:fs"),H("system:ui")]),jQ=z([xF,H("fs:read-dir"),H("fs:stat"),H("fs:search")]),m$=z([H("event:drag-drop"),H("event:drag-enter"),H("event:drag-leave"),H("event:drag-over"),H("event:window-blur"),H("event:window-close-requested"),H("event:window-focus")]),u$=z([H("security:mac:reveal-security-pane"),H("security:mac:verify-fingerprint"),H("security:mac:reset-screencapture-permission"),H("security:mac:request-permission"),H("security:mac:check-permission"),H("security:mac:all")]),c$=z([H("hostname"),H("osRelease"),H("osUptime"),H("loadavg"),H("networkInterfaces"),H("systemMemoryInfo"),H("uid"),H("gid"),H("cpus"),J()]),r$=Z({net:U(z([H("*"),O(J())])),env:U(z([H("*"),O(J())])),read:U(z([H("*"),O(J())])),write:U(z([H("*"),O(J())])),run:U(z([H("*"),O(J())])),ffi:U(z([H("*"),O(J())])),sys:U(z([H("*"),O(c$)]))}),o=Z({path:U(J()),url:U(J()),cmd:U(Z({program:J(),args:O(J())})),...r$.entries}),AQ=Z({permission:jQ,allow:U(O(o)),deny:U(O(o))}),GQ=z([H("open:url"),H("open:file"),H("open:folder")]),NQ=Z({permission:GQ,allow:U(O(o)),deny:U(O(o))}),BQ=z([H("shell:execute"),H("shell:deno:execute"),H("shell:spawn"),H("shell:deno:spawn"),H("shell:open"),H("shell:kill"),H("shell:kill-any"),H("shell:all"),H("shell:stdin-write")]),bQ=Z({permission:BQ,allow:U(O(o)),deny:U(O(o))}),gF=z([g$,m$,wF,zF,OF,BQ,WF,RF,TF,XF,LQ,u$]),o$=z([gF,jQ,GQ]);var Q8={...pF,paste:["clipboard:paste"]};var mF;((Y)=>{Y.linux="linux";Y.macos="macos";Y.windows="windows"})(mF||={});var n$=P(mF),CQ=Object.values(mF),i$=Z({type:z([H("text"),H("regex")]),value:J()}),qQ;((Y)=>{Y.visible="visible";Y.transparent="transparent";Y.overlay="overlay"})(qQ||={});var d$=P(qQ),SQ=Z({center:U(W(K())),x:U(W(V())),y:U(W(V())),width:U(W(V())),height:U(W(V())),minWidth:U(W(V())),minHeight:U(W(V())),maxWidth:U(W(V())),maxHeight:U(W(V())),resizable:U(W(K())),title:U(W(J())),fullscreen:U(W(K())),focus:U(W(K())),transparent:U(W(K())),maximized:U(W(K())),visible:U(W(K())),decorations:U(W(K())),alwaysOnTop:U(W(K())),alwaysOnBottom:U(W(K())),contentProtected:U(W(K())),skipTaskbar:U(W(K())),shadow:U(W(K())),titleBarStyle:U(W(d$)),hiddenTitle:U(W(K())),tabbingIdentifier:U(W(J())),maximizable:U(W(K())),minimizable:U(W(K())),closable:U(W(K())),parent:U(W(J())),visibleOnAllWorkspaces:U(W(K()))}),uF=Z({main:J("HTML file to load, e.g. dist/index.html"),description:U(W(J("Description of the Command"),""),""),name:J("Name of the command"),cmds:O(i$,"Commands to trigger the UI"),icon:U(B),platforms:U(W(O(n$,"Platforms available on. Leave empty for all platforms."),CQ),CQ)}),s$=Z({...uF.entries,type:U(_,_.enum.UiIframe),dist:J("Dist folder to load, e.g. dist, build, out"),devMain:J("URL to load in development to support live reload, e.g. http://localhost:5173/"),window:U(W(SQ))}),t$=Z({...uF.entries,type:U(_,_.enum.UiWorker),window:U(W(SQ))}),e$=Z({...uF.entries,type:U(_,_.enum.HeadlessWorker)}),a$=z([gF,AQ,NQ,bQ]),F1=Z({name:J("Name of the extension (Human Readable)"),shortDescription:J("Description of the extension (Will be displayed in store)"),longDescription:J("Long description of the extension (Will be displayed in store)"),identifier:J("Unique identifier for the extension, must be the same as extension folder name"),icon:B,permissions:O(a$,"Permissions Declared by the extension. e.g. clipboard-all. Not declared APIs will be blocked."),demoImages:O(J("Demo images for the extension")),customUiCmds:U(O(s$,"Custom UI Commands")),templateUiCmds:U(O(t$,"Template UI Commands")),headlessCmds:U(O(e$,"Headless Commands"))}),PQ=z([Z({name:J("GitHub Username"),email:U(W(J("Email of the person"))),url:U(W(J("URL of the person")))}),J("GitHub Username")]),Q1=z([H("AGPL-3.0-only"),H("Apache-2.0"),H("BSD-2-Clause"),H("BSD-3-Clause"),H("BSL-1.0"),H("CC0-1.0"),H("CDDL-1.0"),H("CDDL-1.1"),H("EPL-1.0"),H("EPL-2.0"),H("GPL-2.0-only"),H("GPL-3.0-only"),H("ISC"),H("LGPL-2.0-only"),H("LGPL-2.1-only"),H("LGPL-2.1-or-later"),H("LGPL-3.0-only"),H("LGPL-3.0-or-later"),H("MIT"),H("MPL-2.0"),H("MS-PL"),H("UNLICENSED")]),$1=Z({name:J("Package name for the extension (just a regular npm package name)"),version:J("Version of the extension"),readme:U(J("Custom README.md path of the extension")),license:Q1,author:U(PQ),draft:U(K("Whether the extension is a draft, draft will not be published")),contributors:U(O(PQ,"Contributors of the extension")),repository:U(z([J("URL of the repository"),Z({type:J("Type of the repository"),url:J("URL of the repository"),directory:U(J("Directory of the repository"))})])),dependencies:U(I(J(),J())),kunkun:F1,files:U(O(J("Files to include in the extension. e.g. ['dist']")))}),W8=Z({...$1.entries,...{extPath:J(),extFolderName:J()}});var H1=Z({addresses:O(J()),fullname:J(),hostname:J(),port:V(),service_type:J(),subType:U(J()),properties:U(I(J(),J())),publicKey:J(),sslCert:J()}),X8=I(J(),H1);var EQ=Z({filename:J(),fileSize:V(),id:J(),type:V(),children:O(D(()=>EQ))}),K8=Z({port:J(),code:J(),totalBytes:V(),totalFiles:V(),sslCert:J(),root:D(()=>EQ),ip:J()}),L8=Z({code:J(),idPathMap:I(J(),J())});class l{nodeName="Base";key;label;hideLabel;placeholder;optional;description;default;constructor(F){this.key=F.key,this.key=F.key,this.label=F.label,this.hideLabel=F.hideLabel,this.placeholder=F.placeholder,this.optional=F.optional,this.description=F.description,this.default=F.default}toModel(){return{nodeName:this.nodeName,key:this.key,label:this.label,hideLabel:this.hideLabel,placeholder:this.placeholder,optional:this.optional,description:this.description,default:this.default}}}class Y1 extends l{nodeName="Input";component;constructor(F){super(F);this.component=F.component}toModel(){return{...super.toModel(),component:this.component}}}class J1 extends l{nodeName="Number"}class U1 extends l{nodeName="Select";options;constructor(F){super(F);this.options=F.options}toModel(){return{...super.toModel(),options:this.options}}}class Z1 extends l{nodeName="Boolean";component;constructor(F){super(F);this.component=F.component??"checkbox"}toModel(){return{...super.toModel(),component:this.component}}}class M1 extends l{nodeName="Date"}class w1 extends l{nodeName="Array";content;constructor(F){super(F);this.content=F.content}toModel(){return{...super.toModel(),content:this.content.toModel()}}}class z1{nodeName="Form";fields;showFormDataDebug;key;title;description;submitBtnText;constructor(F){this.fields=F.fields,this.key=F.key,this.title=F.title,this.description=F.description,this.submitBtnText=F.submitBtnText,this.showFormDataDebug=F.showFormDataDebug}toModel(){return{nodeName:this.nodeName,key:this.key,title:this.title,description:this.description,submitBtnText:this.submitBtnText,fields:this.fields.map((F)=>F.toModel())}}}class cF{nodeName="Markdown";content;constructor(F){this.content=F}toModel(){return{nodeName:this.nodeName,content:this.content}}}var O1=new GF,DQ=new k(O1,{}),p=DQ.getAPI();function kQ(F){DQ.expose(F)}var d8=sF(p.event),s8=BF(p.fetch),t8=tF(p.path),e8=eF(p.shell),a8=aF(p.toast),F6=bF(p.updownload),{db:Q6,kv:$6,os:H6,clipboard:Y6,dialog:J6,fs:U6,log:Z6,notification:M6,sysInfo:w6,network:z6,system:x6,open:hQ,utils:O6,app:W6,security:R6,helper:T6,workerUi:X6}=p;class _Q extends YF{nips=[];loading=!1;searchQuery="";async load(){this.loading=!0,this.updateUI();try{this.nips=await this.fetchNostrNips()}catch(F){console.error("Failed to load NIPs:",F)}finally{this.loading=!1,this.updateUI()}}async fetchNostrNips(){return[]}getFilteredNips(){return[]}handleSearchInput(F){this.searchQuery=F,this.updateUI()}handleOpenUrl(F){hQ.url(F)}updateUI(){return"Nostr NIPs"}}kQ(new _Q); diff --git a/dist/index.html b/dist/index.html deleted file mode 100644 index 08e4567..0000000 --- a/dist/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - Kunkun Nostr Open Specific NIP - - - - -
- - diff --git a/index.html b/index.html deleted file mode 100644 index 8e405ff..0000000 --- a/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Kunkun Nostr Open Specific NIP - - -
- - - diff --git a/package.json b/package.json index 79bbb81..c9267c4 100644 --- a/package.json +++ b/package.json @@ -27,15 +27,6 @@ "type": "iconify", "value": "majesticons:open" }, - "customUiCmds": [ - { - "main": "/index-nip.js", - "dist": "dist", - "devMain": "http://localhost:5173", - "name": "Nostr Open Specific NIP", - "cmds": [] - } - ], "headlessCmds": [ { "name": "Nostr Open NIP Repository (github.com)", @@ -47,13 +38,19 @@ "main": "dist/index-nostrcom.js", "cmds": [] } + ], + "templateUiCmds": [ + { + "name": "Nostr Open Specific NIP", + "main": "dist/index-nip.js", + "cmds": [] + } ] }, "scripts": { + "dev:template": "bun build.ts dev --template", "dev:headless": "bun build.ts dev --headless", - "build:headless": "bun build.ts", - "dev:nip": "vite", - "build:nip": "vite build" + "build": "bun build.ts" }, "dependencies": { "@iconify/react": "^5.2.0", diff --git a/postcss.config.js b/postcss.config.js deleted file mode 100644 index 2e7af2b..0000000 --- a/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} diff --git a/src/index-nip.ts b/src/index-nip.ts index e69de29..23ebb6e 100644 --- a/src/index-nip.ts +++ b/src/index-nip.ts @@ -0,0 +1,67 @@ +import { + Action, + clipboard, + expose, + Icon, + IconEnum, + List, + open, + TemplateUiCommand, + toast, + ui, +} from "@kksh/api/ui/template"; + +interface Nip { + nip: string; + title: string; + rawTitle: string; + urlGithub: string; + urlNostrCom: string; + content: string; +} + +class NostrOpenSpecificNip extends TemplateUiCommand { + private nips: Nip[] = []; + private loading: boolean = false; + private searchQuery: string = ""; + + async load() { + this.loading = true; + this.updateUI(); + try { + this.nips = await this.fetchNostrNips(); + } catch (error) { + console.error('Failed to load NIPs:', error); + } finally { + this.loading = false; + this.updateUI(); + } + } + + // Function to fetch NIPs from GitHub + async fetchNostrNips(): Promise { + return []; + } + + // Filter NIPs based on search query + getFilteredNips(): Nip[] { + return []; + } + + // Handle search input change + handleSearchInput(query: string): void { + this.searchQuery = query; + this.updateUI(); + } + + // Open URL in browser + handleOpenUrl(url: string): void { + open.url(url); + } + + updateUI() { + return 'Nostr NIPs'; + } +} + +expose(new NostrOpenSpecificNip()); \ No newline at end of file diff --git a/src/index.css b/src/index.css deleted file mode 100644 index cbb8edf..0000000 --- a/src/index.css +++ /dev/null @@ -1,6 +0,0 @@ -@import url("@kksh/react/css"); -@import url("@kksh/react/themes"); -/* @tailwind base; */ -/* This adds white border to command components under dark mode */ -@tailwind components; -@tailwind utilities; \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js deleted file mode 100644 index 6266930..0000000 --- a/tailwind.config.js +++ /dev/null @@ -1,12 +0,0 @@ -/** @type {import('tailwindcss').Config} */ -export default { - content: [ - "./index.html", - "./src/**/*.jsx" - // "./node_modules/@kksh/react/dist/**/*.{js,ts,jsx,tsx}" - ], - theme: { - extend: {} - }, - plugins: [] -} diff --git a/vite.config.js b/vite.config.js deleted file mode 100644 index 17044d4..0000000 --- a/vite.config.js +++ /dev/null @@ -1,16 +0,0 @@ -import preact from "@preact/preset-vite" -import { defineConfig } from "vite" -import { resolve } from 'path' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [preact()], - resolve: { - alias: { - 'react': 'preact/compat', - 'react-dom/test-utils': 'preact/test-utils', - 'react-dom': 'preact/compat', - 'react/jsx-runtime': 'preact/jsx-runtime', - } - } -})