@ht-rnd/json-schema-editor 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--primary: 329 100% 44%;--primary-hover: 329 100% 38%;--primary-pressed: 329 100% 31%;--primary-foreground: 0 0% 100%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 3.8% 80%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 100% 50%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--radius: .75rem}.dark{--background: 240 5.9% 10%;--foreground: 0 0% 92%;--primary: 330 96% 35%;--primary-hover: 330 96% 41%;--primary-pressed: 330 96% 48%;--primary-foreground: 240 17.1% 92%;--secondary: 240 3.7% 15.9%;--secondary-foreground: 0 0% 92%;--muted: 240 3.8% 40%;--muted-foreground: 240 5% 64.9%;--accent: 240 3.7% 15.9%;--accent-foreground: 0 0% 92%;--destructive: 0 100% 60%;--destructive-foreground: 0 0% 98%;--border: 240 3.7% 30%;--input: 240 3.7% 30%}.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}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-1\/2,.left-\[50\%\]{left:50%}.right-2{right:.5rem}.right-4{right:1rem}.top-1\/2{top:50%}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-50{z-index:50}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2 / span 2}.row-start-1{grid-row-start:1}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mr-11{margin-right:2.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.aspect-square{aspect-ratio:1 / 1}.size-2{width:.5rem;height:.5rem}.size-2\.5{width:.625rem;height:.625rem}.size-3\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-9{width:2.25rem;height:2.25rem}.h-10{height:2.5rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-px{height:1px}.max-h-\[300px\]{max-height:300px}.max-h-\[500px\]{max-height:500px}.max-h-\[800px\]{max-height:800px}.max-h-full{max-height:100%}.min-h-16{min-height:4rem}.w-4{width:1rem}.w-40{width:10rem}.w-72{width:18rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.max-w-\[1200px\]{max-width:1200px}.max-w-\[600px\]{max-width:600px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-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))}.translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y: calc(-50% - 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))}.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))}.cursor-default{cursor:default}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.scroll-my-1{scroll-margin-top:.25rem;scroll-margin-bottom:.25rem}.auto-rows-min{grid-auto-rows:min-content}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-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))}.self-start{align-self:flex-start}.justify-self-end{justify-self:end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.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:calc(var(--radius) + 4px)}.rounded-xs{border-radius:calc(var(--radius) - 5px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-input{border-color:hsl(var(--input))}.border-transparent{border-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black\/50{background-color:#00000080}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{--tw-bg-opacity: 1;background-color:hsl(var(--destructive) / var(--tw-bg-opacity, 1))}.bg-foreground{background-color:hsl(var(--foreground))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.fill-foreground{fill:hsl(var(--foreground))}.fill-primary{fill:hsl(var(--primary))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pl-2{padding-left:.5rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-base{font-size:1rem;line-height:1.5rem}.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}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.text-background{color:hsl(var(--background))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{--tw-text-opacity: 1;color:hsl(var(--destructive) / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.caret-transparent{caret-color:transparent}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-2{--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)}.ring-muted-foreground{--tw-ring-color: hsl(var(--muted-foreground))}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;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-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}*{scrollbar-color:hsl(var(--muted)) hsl(var(--background))}.selection\:bg-primary *::-moz-selection{background-color:hsl(var(--primary))}.selection\:bg-primary *::selection{background-color:hsl(var(--primary))}.selection\:text-primary-foreground *::-moz-selection{color:hsl(var(--primary-foreground))}.selection\:text-primary-foreground *::selection{color:hsl(var(--primary-foreground))}.selection\:bg-primary::-moz-selection{background-color:hsl(var(--primary))}.selection\:bg-primary::selection{background-color:hsl(var(--primary))}.selection\:text-primary-foreground::-moz-selection{color:hsl(var(--primary-foreground))}.selection\:text-primary-foreground::selection{color:hsl(var(--primary-foreground))}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:1.75rem}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.focus-within\:ring-ring:focus-within{--tw-ring-color: hsl(var(--ring))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:stroke-destructive:hover{stroke:hsl(var(--destructive) / 1)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.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\:border-ring:focus-visible{border-color:hsl(var(--ring))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-0:focus-visible{outline-width:0px}.focus-visible\:ring-0: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(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)}.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-\[3px\]: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(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)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color: hsl(var(--destructive) / .2)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color: hsl(var(--ring) / .5)}.focus-visible\:ring-offset-0:focus-visible{--tw-ring-offset-width: 0px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-50{opacity:.5}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-left:.625rem;padding-right:.625rem}.has-\[\>svg\]\:px-3:has(>svg){padding-left:.75rem;padding-right:.75rem}.has-\[\>svg\]\:px-4:has(>svg){padding-left:1rem;padding-right:1rem}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[size\=default\]\:h-9[data-size=default]{height:2.25rem}.data-\[size\=sm\]\:h-8[data-size=sm]{height:2rem}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.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\]\:border-primary[data-state=checked]{border-color:hsl(var(--primary))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[error\=true\]\:text-destructive[data-error=true]{--tw-text-opacity: 1;color:hsl(var(--destructive) / var(--tw-text-opacity, 1))}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:hsl(var(--muted-foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[active\=\'true\'\]\:ring-2[data-active=true]{--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)}.data-\[active\=\'true\'\]\:ring-muted-foreground[data-active=true]{--tw-ring-color: hsl(var(--muted-foreground))}.\*\:data-\[slot\=select-value\]\:line-clamp-1[data-slot=select-value]>*{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\*\:data-\[slot\=select-value\]\:flex[data-slot=select-value]>*{display:flex}.\*\:data-\[slot\=select-value\]\:items-center[data-slot=select-value]>*{align-items:center}.\*\:data-\[slot\=select-value\]\:gap-2[data-slot=select-value]>*{gap:.5rem}.group[data-disabled=true] .group-data-\[disabled\=true\]\:pointer-events-none{pointer-events:none}.group[data-disabled=true] .group-data-\[disabled\=true\]\:opacity-50{opacity:.5}.dark\:border-input:is(.dark *){border-color:hsl(var(--input))}.dark\:bg-destructive\/60:is(.dark *){background-color:hsl(var(--destructive) / .6)}.dark\:bg-input\/30:is(.dark *){background-color:hsl(var(--input) / .3)}.dark\:hover\:bg-accent\/50:hover:is(.dark *){background-color:hsl(var(--accent) / .5)}.dark\:hover\:bg-input\/50:hover:is(.dark *){background-color:hsl(var(--input) / .5)}.dark\:focus-visible\:ring-destructive\/40:focus-visible:is(.dark *){--tw-ring-color: hsl(var(--destructive) / .4)}.dark\:data-\[state\=checked\]\:bg-primary[data-state=checked]:is(.dark *){background-color:hsl(var(--primary))}@media(min-width:640px){.sm\:max-w-\[1000px\]{max-width:1000px}.sm\:max-w-\[500px\]{max-width:500px}.sm\:max-w-\[700px\]{max-width:700px}.sm\:max-w-full{max-width:100%}.sm\:max-w-lg{max-width:32rem}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:text-left{text-align:left}}@media(min-width:768px){.md\:text-sm{font-size:.875rem;line-height:1.25rem}}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:.75rem;height:.75rem}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:1rem;height:1rem}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:hsl(var(--muted-foreground))}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}a.\[a\&\]\:hover\:bg-accent:hover{background-color:hsl(var(--accent))}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:hsl(var(--secondary) / .9)}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--primary: 329 100% 44%;--primary-hover: 329 100% 38%;--primary-pressed: 329 100% 31%;--primary-foreground: 0 0% 100%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 3.8% 80%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 100% 50%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--radius: .75rem}.dark{--background: 240 5.9% 10%;--foreground: 0 0% 92%;--primary: 330 96% 35%;--primary-hover: 330 96% 41%;--primary-pressed: 330 96% 48%;--primary-foreground: 240 17.1% 92%;--secondary: 240 3.7% 15.9%;--secondary-foreground: 0 0% 92%;--muted: 240 3.8% 40%;--muted-foreground: 240 5% 64.9%;--accent: 240 3.7% 15.9%;--accent-foreground: 0 0% 92%;--destructive: 0 100% 60%;--destructive-foreground: 0 0% 98%;--border: 240 3.7% 30%;--input: 240 3.7% 30%}.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}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-1\/2,.left-\[50\%\]{left:50%}.right-2{right:.5rem}.right-4{right:1rem}.top-1\/2{top:50%}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-50{z-index:50}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2 / span 2}.row-start-1{grid-row-start:1}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mr-11{margin-right:2.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.aspect-square{aspect-ratio:1 / 1}.size-2{width:.5rem;height:.5rem}.size-2\.5{width:.625rem;height:.625rem}.size-3\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-9{width:2.25rem;height:2.25rem}.h-10{height:2.5rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-px{height:1px}.max-h-48{max-height:12rem}.max-h-52{max-height:13rem}.max-h-\[300px\]{max-height:300px}.max-h-\[500px\]{max-height:500px}.max-h-\[800px\]{max-height:800px}.max-h-full{max-height:100%}.min-h-16{min-height:4rem}.w-4{width:1rem}.w-40{width:10rem}.w-72{width:18rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.max-w-\[1200px\]{max-width:1200px}.max-w-\[600px\]{max-width:600px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-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))}.translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y: calc(-50% - 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))}.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))}.cursor-default{cursor:default}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.scroll-my-1{scroll-margin-top:.25rem;scroll-margin-bottom:.25rem}.auto-rows-min{grid-auto-rows:min-content}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-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))}.self-start{align-self:flex-start}.justify-self-end{justify-self:end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.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:calc(var(--radius) + 4px)}.rounded-xs{border-radius:calc(var(--radius) - 5px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-input{border-color:hsl(var(--input))}.border-transparent{border-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black\/50{background-color:#00000080}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{--tw-bg-opacity: 1;background-color:hsl(var(--destructive) / var(--tw-bg-opacity, 1))}.bg-foreground{background-color:hsl(var(--foreground))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.fill-foreground{fill:hsl(var(--foreground))}.fill-primary{fill:hsl(var(--primary))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pl-2{padding-left:.5rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-base{font-size:1rem;line-height:1.5rem}.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}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.text-background{color:hsl(var(--background))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{--tw-text-opacity: 1;color:hsl(var(--destructive) / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.caret-transparent{caret-color:transparent}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-2{--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)}.ring-muted-foreground{--tw-ring-color: hsl(var(--muted-foreground))}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;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-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}*{scrollbar-color:hsl(var(--muted)) hsl(var(--background))}.selection\:bg-primary *::-moz-selection{background-color:hsl(var(--primary))}.selection\:bg-primary *::selection{background-color:hsl(var(--primary))}.selection\:text-primary-foreground *::-moz-selection{color:hsl(var(--primary-foreground))}.selection\:text-primary-foreground *::selection{color:hsl(var(--primary-foreground))}.selection\:bg-primary::-moz-selection{background-color:hsl(var(--primary))}.selection\:bg-primary::selection{background-color:hsl(var(--primary))}.selection\:text-primary-foreground::-moz-selection{color:hsl(var(--primary-foreground))}.selection\:text-primary-foreground::selection{color:hsl(var(--primary-foreground))}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:1.75rem}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.focus-within\:ring-ring:focus-within{--tw-ring-color: hsl(var(--ring))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:stroke-destructive:hover{stroke:hsl(var(--destructive) / 1)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.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\:border-ring:focus-visible{border-color:hsl(var(--ring))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-0:focus-visible{outline-width:0px}.focus-visible\:ring-0: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(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)}.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-\[3px\]: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(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)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color: hsl(var(--destructive) / .2)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color: hsl(var(--ring) / .5)}.focus-visible\:ring-offset-0:focus-visible{--tw-ring-offset-width: 0px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-50{opacity:.5}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-left:.625rem;padding-right:.625rem}.has-\[\>svg\]\:px-3:has(>svg){padding-left:.75rem;padding-right:.75rem}.has-\[\>svg\]\:px-4:has(>svg){padding-left:1rem;padding-right:1rem}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[size\=default\]\:h-9[data-size=default]{height:2.25rem}.data-\[size\=sm\]\:h-8[data-size=sm]{height:2rem}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.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\]\:border-primary[data-state=checked]{border-color:hsl(var(--primary))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[error\=true\]\:text-destructive[data-error=true]{--tw-text-opacity: 1;color:hsl(var(--destructive) / var(--tw-text-opacity, 1))}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:hsl(var(--muted-foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[active\=\'true\'\]\:ring-2[data-active=true]{--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)}.data-\[active\=\'true\'\]\:ring-muted-foreground[data-active=true]{--tw-ring-color: hsl(var(--muted-foreground))}.\*\:data-\[slot\=select-value\]\:line-clamp-1[data-slot=select-value]>*{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\*\:data-\[slot\=select-value\]\:flex[data-slot=select-value]>*{display:flex}.\*\:data-\[slot\=select-value\]\:items-center[data-slot=select-value]>*{align-items:center}.\*\:data-\[slot\=select-value\]\:gap-2[data-slot=select-value]>*{gap:.5rem}.group[data-disabled=true] .group-data-\[disabled\=true\]\:pointer-events-none{pointer-events:none}.group[data-disabled=true] .group-data-\[disabled\=true\]\:opacity-50{opacity:.5}.dark\:border-input:is(.dark *){border-color:hsl(var(--input))}.dark\:bg-destructive\/60:is(.dark *){background-color:hsl(var(--destructive) / .6)}.dark\:bg-input\/30:is(.dark *){background-color:hsl(var(--input) / .3)}.dark\:hover\:bg-accent\/50:hover:is(.dark *){background-color:hsl(var(--accent) / .5)}.dark\:hover\:bg-input\/50:hover:is(.dark *){background-color:hsl(var(--input) / .5)}.dark\:focus-visible\:ring-destructive\/40:focus-visible:is(.dark *){--tw-ring-color: hsl(var(--destructive) / .4)}.dark\:data-\[state\=checked\]\:bg-primary[data-state=checked]:is(.dark *){background-color:hsl(var(--primary))}@media(min-width:640px){.sm\:max-w-\[1000px\]{max-width:1000px}.sm\:max-w-\[500px\]{max-width:500px}.sm\:max-w-\[700px\]{max-width:700px}.sm\:max-w-full{max-width:100%}.sm\:max-w-lg{max-width:32rem}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:text-left{text-align:left}}@media(min-width:768px){.md\:text-sm{font-size:.875rem;line-height:1.25rem}}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:.75rem;height:.75rem}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:1rem;height:1rem}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:hsl(var(--muted-foreground))}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}a.\[a\&\]\:hover\:bg-accent:hover{background-color:hsl(var(--accent))}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:hsl(var(--secondary) / .9)}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}
|
package/dist/lib/main.es.js
CHANGED
|
@@ -8937,7 +8937,7 @@ const p_ = ({
|
|
|
8937
8937
|
/* @__PURE__ */ d.jsx(
|
|
8938
8938
|
vn,
|
|
8939
8939
|
{
|
|
8940
|
-
className: `${e} bg-background text-foreground border-input`,
|
|
8940
|
+
className: `${e} max-h-52 bg-background text-foreground border-input`,
|
|
8941
8941
|
children: /* @__PURE__ */ d.jsx(Vt, { value: r, children: r })
|
|
8942
8942
|
}
|
|
8943
8943
|
)
|
|
@@ -9567,7 +9567,7 @@ const u0 = ({
|
|
|
9567
9567
|
/* @__PURE__ */ d.jsx(
|
|
9568
9568
|
vn,
|
|
9569
9569
|
{
|
|
9570
|
-
className: `${e} bg-background text-foreground border-input`,
|
|
9570
|
+
className: `${e} max-h-52 bg-background text-foreground border-input`,
|
|
9571
9571
|
children: b_.map((p) => /* @__PURE__ */ d.jsx(Vt, { value: p, children: p }, p))
|
|
9572
9572
|
}
|
|
9573
9573
|
)
|
|
@@ -10488,7 +10488,7 @@ const $0 = ({
|
|
|
10488
10488
|
/* @__PURE__ */ d.jsxs(
|
|
10489
10489
|
vn,
|
|
10490
10490
|
{
|
|
10491
|
-
className: `${e} bg-background text-foreground border-input`,
|
|
10491
|
+
className: `${e} max-h-48 bg-background text-foreground border-input`,
|
|
10492
10492
|
children: [
|
|
10493
10493
|
/* @__PURE__ */ d.jsx(Vt, { value: "none", children: "none" }),
|
|
10494
10494
|
x_.map((i) => /* @__PURE__ */ d.jsx(Vt, { value: i, children: i }, i))
|
|
@@ -10638,7 +10638,7 @@ const $0 = ({
|
|
|
10638
10638
|
/* @__PURE__ */ d.jsxs(
|
|
10639
10639
|
vn,
|
|
10640
10640
|
{
|
|
10641
|
-
className: `${e} bg-background text-foreground border-input`,
|
|
10641
|
+
className: `${e} max-h-48 bg-background text-foreground border-input`,
|
|
10642
10642
|
children: [
|
|
10643
10643
|
/* @__PURE__ */ d.jsx(Vt, { value: "none", children: "none" }),
|
|
10644
10644
|
w_.map((i) => /* @__PURE__ */ d.jsx(Vt, { value: i, children: i }, i))
|
|
@@ -10717,7 +10717,7 @@ const $0 = ({
|
|
|
10717
10717
|
/* @__PURE__ */ d.jsxs(
|
|
10718
10718
|
vn,
|
|
10719
10719
|
{
|
|
10720
|
-
className: `${e} bg-background text-foreground border-input`,
|
|
10720
|
+
className: `${e} max-h-48 bg-background text-foreground border-input`,
|
|
10721
10721
|
children: [
|
|
10722
10722
|
/* @__PURE__ */ d.jsx(Vt, { value: "true", children: "True" }),
|
|
10723
10723
|
/* @__PURE__ */ d.jsx(Vt, { value: "false", children: "False" })
|
|
@@ -11011,7 +11011,7 @@ const $0 = ({
|
|
|
11011
11011
|
/* @__PURE__ */ d.jsxs(
|
|
11012
11012
|
vn,
|
|
11013
11013
|
{
|
|
11014
|
-
className: `${e} bg-background text-foreground border-input`,
|
|
11014
|
+
className: `${e} max-h-48 bg-background text-foreground border-input`,
|
|
11015
11015
|
children: [
|
|
11016
11016
|
/* @__PURE__ */ d.jsx(Vt, { value: "none", children: "none" }),
|
|
11017
11017
|
__.map((i) => /* @__PURE__ */ d.jsx(Vt, { value: i, children: i }, i))
|
package/dist/lib/main.umd.js
CHANGED
|
@@ -132,7 +132,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
132
132
|
*
|
|
133
133
|
* This source code is licensed under the ISC license.
|
|
134
134
|
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const vu=Gt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function yu(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=yu(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function bu(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=yu(e))&&(n&&(n+=" "),n+=t);return n}const Wa="-",Oy=e=>{const t=Dy(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const i=a.split(Wa);return i[0]===""&&i.length!==1&&i.shift(),_u(i,t)||Iy(a)},getConflictingClassGroupIds:(a,i)=>{const c=r[a]||[];return i&&n[a]?[...c,...n[a]]:c}}},_u=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?_u(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Wa);return(a=t.validators.find(({validator:i})=>i(o)))==null?void 0:a.classGroupId},xu=/^\[(.+)\]$/,Iy=e=>{if(xu.test(e)){const t=xu.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Dy=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const s in r)Ha(r[s],n,s,t);return n},Ha=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:wu(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(My(s)){Ha(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,a])=>{Ha(a,wu(t,o),r,n)})})},wu=(e,t)=>{let r=e;return t.split(Wa).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},My=e=>e.isThemeGetter,Fy=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(o,a)=>{r.set(o,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let a=r.get(o);if(a!==void 0)return a;if((a=n.get(o))!==void 0)return s(o,a),a},set(o,a){r.has(o)?r.set(o,a):s(o,a)}}},Ga="!",Ka=":",Vy=Ka.length,Ly=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=s=>{const o=[];let a=0,i=0,c=0,l;for(let x=0;x<s.length;x++){let y=s[x];if(a===0&&i===0){if(y===Ka){o.push(s.slice(c,x)),c=x+Vy;continue}if(y==="/"){l=x;continue}}y==="["?a++:y==="]"?a--:y==="("?i++:y===")"&&i--}const u=o.length===0?s:s.substring(c),p=zy(u),m=p!==u,v=l&&l>c?l-c:void 0;return{modifiers:o,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:v}};if(t){const s=t+Ka,o=n;n=a=>a.startsWith(s)?o(a.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const s=n;n=o=>r({className:o,parseClassName:s})}return n},zy=e=>e.endsWith(Ga)?e.substring(0,e.length-1):e.startsWith(Ga)?e.substring(1):e,qy=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const s=[];let o=[];return n.forEach(a=>{a[0]==="["||t[a]?(s.push(...o.sort(),a),o=[]):o.push(a)}),s.push(...o.sort()),s}},Uy=e=>({cache:Fy(e.cacheSize),parseClassName:Ly(e),sortModifiers:qy(e),...Oy(e)}),By=/\s+/,Wy=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s,sortModifiers:o}=t,a=[],i=e.trim().split(By);let c="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{isExternal:p,modifiers:m,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:y}=r(u);if(p){c=u+(c.length>0?" "+c:c);continue}let h=!!y,_=n(h?x.substring(0,y):x);if(!_){if(!h){c=u+(c.length>0?" "+c:c);continue}if(_=n(x),!_){c=u+(c.length>0?" "+c:c);continue}h=!1}const f=o(m).join(":"),b=v?f+Ga:f,w=b+_;if(a.includes(w))continue;a.push(w);const g=s(_,h);for(let $=0;$<g.length;++$){const S=g[$];a.push(b+S)}c=u+(c.length>0?" "+c:c)}return c};function Hy(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=$u(t))&&(n&&(n+=" "),n+=r);return n}const $u=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=$u(e[n]))&&(r&&(r+=" "),r+=t);return r};function Gy(e,...t){let r,n,s,o=a;function a(c){const l=t.reduce((u,p)=>p(u),e());return r=Uy(l),n=r.cache.get,s=r.cache.set,o=i,i(c)}function i(c){const l=n(c);if(l)return l;const u=Wy(c,r);return s(c,u),u}return function(){return o(Hy.apply(null,arguments))}}const rt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Su=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Eu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ky=/^\d+\/\d+$/,Zy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yy=/\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$/,Jy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gr=e=>Ky.test(e),Ce=e=>!!e&&!Number.isNaN(Number(e)),fr=e=>!!e&&Number.isInteger(Number(e)),Za=e=>e.endsWith("%")&&Ce(e.slice(0,-1)),Kt=e=>Zy.test(e),eb=()=>!0,tb=e=>Yy.test(e)&&!Jy.test(e),ku=()=>!1,rb=e=>Xy.test(e),nb=e=>Qy.test(e),sb=e=>!de(e)&&!fe(e),ob=e=>Kr(e,Nu,ku),de=e=>Su.test(e),Er=e=>Kr(e,Au,tb),Ya=e=>Kr(e,ub,Ce),ju=e=>Kr(e,Ru,ku),ab=e=>Kr(e,Pu,nb),_s=e=>Kr(e,Tu,rb),fe=e=>Eu.test(e),kn=e=>Zr(e,Au),ib=e=>Zr(e,db),Cu=e=>Zr(e,Ru),cb=e=>Zr(e,Nu),lb=e=>Zr(e,Pu),xs=e=>Zr(e,Tu,!0),Kr=(e,t,r)=>{const n=Su.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Zr=(e,t,r=!1)=>{const n=Eu.exec(e);return n?n[1]?t(n[1]):r:!1},Ru=e=>e==="position"||e==="percentage",Pu=e=>e==="image"||e==="url",Nu=e=>e==="length"||e==="size"||e==="bg-size",Au=e=>e==="length",ub=e=>e==="number",db=e=>e==="family-name",Tu=e=>e==="shadow",fb=Gy(()=>{const e=rt("color"),t=rt("font"),r=rt("text"),n=rt("font-weight"),s=rt("tracking"),o=rt("leading"),a=rt("breakpoint"),i=rt("container"),c=rt("spacing"),l=rt("radius"),u=rt("shadow"),p=rt("inset-shadow"),m=rt("text-shadow"),v=rt("drop-shadow"),x=rt("blur"),y=rt("perspective"),h=rt("aspect"),_=rt("ease"),f=rt("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],g=()=>[...w(),fe,de],$=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],j=()=>[fe,de,c],I=()=>[Gr,"full","auto",...j()],z=()=>[fr,"none","subgrid",fe,de],M=()=>["auto",{span:["full",fr,fe,de]},fr,fe,de],F=()=>[fr,"auto",fe,de],V=()=>["auto","min","max","fr",fe,de],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...j()],ae=()=>[Gr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],L=()=>[e,fe,de],ve=()=>[...w(),Cu,ju,{position:[fe,de]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",cb,ob,{size:[fe,de]}],K=()=>[Za,kn,Er],O=()=>["","none","full",l,fe,de],k=()=>["",Ce,kn,Er],R=()=>["solid","dashed","dotted","double"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[Ce,Za,Cu,ju],Q=()=>["","none",x,fe,de],pe=()=>["none",Ce,fe,de],ie=()=>["none",Ce,fe,de],N=()=>[Ce,fe,de],A=()=>[Gr,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kt],breakpoint:[Kt],color:[eb],container:[Kt],"drop-shadow":[Kt],ease:["in","out","in-out"],font:[sb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kt],shadow:[Kt],spacing:["px",Ce],text:[Kt],"text-shadow":[Kt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Gr,de,fe,h]}],container:["container"],columns:[{columns:[Ce,de,fe,i]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],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:g()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[fr,"auto",fe,de]}],basis:[{basis:[Gr,"full","auto",i,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,Gr,"auto","initial","none",de]}],grow:[{grow:["",Ce,fe,de]}],shrink:[{shrink:["",Ce,fe,de]}],order:[{order:[fr,"first","last","none",fe,de]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:M()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:M()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:ae()}],w:[{w:[i,"screen",...ae()]}],"min-w":[{"min-w":[i,"screen","none",...ae()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...ae()]}],h:[{h:["screen","lh",...ae()]}],"min-h":[{"min-h":["screen","lh","none",...ae()]}],"max-h":[{"max-h":["screen","lh",...ae()]}],"font-size":[{text:["base",r,kn,Er]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,fe,Ya]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Za,de]}],"font-family":[{font:[ib,de,t]}],"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:[s,fe,de]}],"line-clamp":[{"line-clamp":[Ce,"none",fe,Ya]}],leading:[{leading:[o,...j()]}],"list-image":[{"list-image":["none",fe,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",fe,Er]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[Ce,"auto",fe,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},fr,fe,de],radial:["",fe,de],conic:[fr,fe,de]},lb,ab]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...R(),"hidden","none"]}],"divide-style":[{divide:[...R(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...R(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,fe,de]}],"outline-w":[{outline:["",Ce,kn,Er]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",u,xs,_s]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",p,xs,_s]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[Ce,Er]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",m,xs,_s]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[Ce,fe,de]}],"mix-blend":[{"mix-blend":[...q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[fe,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,de]}],filter:[{filter:["","none",fe,de]}],blur:[{blur:Q()}],brightness:[{brightness:[Ce,fe,de]}],contrast:[{contrast:[Ce,fe,de]}],"drop-shadow":[{"drop-shadow":["","none",v,xs,_s]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",Ce,fe,de]}],"hue-rotate":[{"hue-rotate":[Ce,fe,de]}],invert:[{invert:["",Ce,fe,de]}],saturate:[{saturate:[Ce,fe,de]}],sepia:[{sepia:["",Ce,fe,de]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,de]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,fe,de]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,fe,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,fe,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,fe,de]}],"backdrop-invert":[{"backdrop-invert":["",Ce,fe,de]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,fe,de]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,fe,de]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,fe,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",fe,de]}],ease:[{ease:["linear","initial",_,fe,de]}],delay:[{delay:[Ce,fe,de]}],animate:[{animate:["none",f,fe,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,fe,de]}],"perspective-origin":[{"perspective-origin":g()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:N()}],"skew-x":[{"skew-x":N()}],"skew-y":[{"skew-y":N()}],transform:[{transform:[fe,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:g()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:A()}],"translate-x":[{"translate-x":A()}],"translate-y":[{"translate-y":A()}],"translate-z":[{"translate-z":A()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",fe,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",fe,de]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[Ce,kn,Er,Ya]}],stroke:[{stroke:["none",...L()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Se(...e){return fb(bu(e))}function Yr({...e}){return d.jsx(hy,{"data-slot":"select",...e})}function Jr({...e}){return d.jsx(gy,{"data-slot":"select-value",...e})}function Xr({className:e,size:t="default",children:r,...n}){return d.jsxs(py,{"data-slot":"select-trigger","data-size":t,className:Se("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,d.jsx(vy,{asChild:!0,children:d.jsx(mu,{className:"size-4 opacity-50"})})]})}function Qr({className:e,children:t,position:r="popper",...n}){return d.jsx(yy,{children:d.jsxs(by,{"data-slot":"select-content",className:Se("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[d.jsx(mb,{}),d.jsx(_y,{className:Se("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),d.jsx(hb,{})]})})}function Vt({className:e,children:t,...r}){return d.jsxs(xy,{"data-slot":"select-item",className:Se("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx($y,{children:d.jsx(fu,{className:"size-4"})})}),d.jsx(wy,{children:t})]})}function mb({className:e,...t}){return d.jsx(Sy,{"data-slot":"select-scroll-up-button",className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Ny,{className:"size-4"})})}function hb({className:e,...t}){return d.jsx(Ey,{"data-slot":"select-scroll-down-button",className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(mu,{className:"size-4"})})}const Ve=Y.forwardRef(({className:e,type:t,...r},n)=>d.jsx("input",{type:t,"data-slot":"input",className:Se("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r}));Ve.displayName="Input";const Ou=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Iu=bu,Du=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Iu(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=t,a=Object.keys(s).map(l=>{const u=r==null?void 0:r[l],p=o==null?void 0:o[l];if(u===null)return null;const m=Ou(u)||Ou(p);return s[l][m]}),i=r&&Object.entries(r).reduce((l,u)=>{let[p,m]=u;return m===void 0||(l[p]=m),l},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,u)=>{let{class:p,className:m,...v}=u;return Object.entries(v).every(x=>{let[y,h]=x;return Array.isArray(h)?h.includes({...o,...i}[y]):{...o,...i}[y]===h})?[...l,p,m]:l},[]);return Iu(e,a,c,r==null?void 0:r.class,r==null?void 0:r.className)},Ja=Du("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),mr=Y.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},o)=>{const a=n?da:"button";return d.jsx(a,{"data-slot":"button",ref:o,className:Se(Ja({variant:t,size:r,className:e})),...s})});function pb(e,t){return E.useReducer((r,n)=>t[r][n]??r,e)}var hr=e=>{const{present:t,children:r}=e,n=gb(t),s=typeof r=="function"?r({present:n.isPresent}):E.Children.only(r),o=qe(n.ref,vb(s));return typeof r=="function"||n.isPresent?E.cloneElement(s,{ref:o}):null};hr.displayName="Presence";function gb(e){const[t,r]=E.useState(),n=E.useRef(null),s=E.useRef(e),o=E.useRef("none"),a=e?"mounted":"unmounted",[i,c]=pb(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const l=ws(n.current);o.current=i==="mounted"?l:"none"},[i]),it(()=>{const l=n.current,u=s.current;if(u!==e){const m=o.current,v=ws(l);e?c("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),it(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=v=>{const y=ws(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&y&&(c("ANIMATION_END"),!s.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},m=v=>{v.target===t&&(o.current=ws(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:E.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function ws(e){return(e==null?void 0:e.animationName)||"none"}function vb(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var[$s]=Tt("Tooltip",[is]),Ss=is(),Mu="TooltipProvider",yb=700,Xa="tooltip.open",[bb,Qa]=$s(Mu),Fu=e=>{const{__scopeTooltip:t,delayDuration:r=yb,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:o}=e,a=E.useRef(!0),i=E.useRef(!1),c=E.useRef(0);return E.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),d.jsx(bb,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:E.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:E.useCallback(l=>{i.current=l},[]),disableHoverableContent:s,children:o})};Fu.displayName=Mu;var jn="Tooltip",[_b,Cn]=$s(jn),Vu=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:s,onOpenChange:o,disableHoverableContent:a,delayDuration:i}=e,c=Qa(jn,e.__scopeTooltip),l=Ss(t),[u,p]=E.useState(null),m=ir(),v=E.useRef(0),x=a??c.disableHoverableContent,y=i??c.delayDuration,h=E.useRef(!1),[_,f]=wr({prop:n,defaultProp:s??!1,onChange:S=>{S?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xa))):c.onClose(),o==null||o(S)},caller:jn}),b=E.useMemo(()=>_?h.current?"delayed-open":"instant-open":"closed",[_]),w=E.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h.current=!1,f(!0)},[f]),g=E.useCallback(()=>{window.clearTimeout(v.current),v.current=0,f(!1)},[f]),$=E.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{h.current=!0,f(!0),v.current=0},y)},[y,f]);return E.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),d.jsx(yl,{...l,children:d.jsx(_b,{scope:t,contentId:m,open:_,stateAttribute:b,trigger:u,onTriggerChange:p,onTriggerEnter:E.useCallback(()=>{c.isOpenDelayedRef.current?$():w()},[c.isOpenDelayedRef,$,w]),onTriggerLeave:E.useCallback(()=>{x?g():(window.clearTimeout(v.current),v.current=0)},[g,x]),onOpen:w,onClose:g,disableHoverableContent:x,children:r})})};Vu.displayName=jn;var ei="TooltipTrigger",Lu=E.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Cn(ei,r),o=Qa(ei,r),a=Ss(r),i=E.useRef(null),c=qe(t,i,s.onTriggerChange),l=E.useRef(!1),u=E.useRef(!1),p=E.useCallback(()=>l.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),d.jsx(bl,{asChild:!0,...a,children:d.jsx(Pe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:$e(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:$e(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:$e(e.onPointerDown,()=>{s.open&&s.onClose(),l.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:$e(e.onFocus,()=>{l.current||s.onOpen()}),onBlur:$e(e.onBlur,s.onClose),onClick:$e(e.onClick,s.onClose)})})});Lu.displayName=ei;var ti="TooltipPortal",[xb,wb]=$s(ti,{forceMount:void 0}),zu=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:s}=e,o=Cn(ti,t);return d.jsx(xb,{scope:t,forceMount:r,children:d.jsx(hr,{present:r||o.open,children:d.jsx(cs,{asChild:!0,container:s,children:n})})})};zu.displayName=ti;var en="TooltipContent",qu=E.forwardRef((e,t)=>{const r=wb(en,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...o}=e,a=Cn(en,e.__scopeTooltip);return d.jsx(hr,{present:n||a.open,children:a.disableHoverableContent?d.jsx(Uu,{side:s,...o,ref:t}):d.jsx($b,{side:s,...o,ref:t})})}),$b=E.forwardRef((e,t)=>{const r=Cn(en,e.__scopeTooltip),n=Qa(en,e.__scopeTooltip),s=E.useRef(null),o=qe(t,s),[a,i]=E.useState(null),{trigger:c,onClose:l}=r,u=s.current,{onPointerInTransitChange:p}=n,m=E.useCallback(()=>{i(null),p(!1)},[p]),v=E.useCallback((x,y)=>{const h=x.currentTarget,_={x:x.clientX,y:x.clientY},f=jb(_,h.getBoundingClientRect()),b=Cb(_,f),w=Rb(y.getBoundingClientRect()),g=Nb([...b,...w]);i(g),p(!0)},[p]);return E.useEffect(()=>()=>m(),[m]),E.useEffect(()=>{if(c&&u){const x=h=>v(h,u),y=h=>v(h,c);return c.addEventListener("pointerleave",x),u.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",x),u.removeEventListener("pointerleave",y)}}},[c,u,v,m]),E.useEffect(()=>{if(a){const x=y=>{const h=y.target,_={x:y.clientX,y:y.clientY},f=(c==null?void 0:c.contains(h))||(u==null?void 0:u.contains(h)),b=!Pb(_,a);f?m():b&&(m(),l())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,u,a,l,m]),d.jsx(Uu,{...e,ref:o})}),[Sb,Eb]=$s(jn,{isInside:!1}),kb=jc("TooltipContent"),Uu=E.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:a,...i}=e,c=Cn(en,r),l=Ss(r),{onClose:u}=c;return E.useEffect(()=>(document.addEventListener(Xa,u),()=>document.removeEventListener(Xa,u)),[u]),E.useEffect(()=>{if(c.trigger){const p=m=>{const v=m.target;v!=null&&v.contains(c.trigger)&&u()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,u]),d.jsx(Yn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:u,children:d.jsxs(_l,{"data-state":c.stateAttribute,...l,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(kb,{children:n}),d.jsx(Sb,{scope:r,isInside:!0,children:d.jsx(ov,{id:c.contentId,role:"tooltip",children:s||n})})]})})});qu.displayName=en;var Bu="TooltipArrow",Wu=E.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Ss(r);return Eb(Bu,r).isInside?null:d.jsx(xl,{...s,...n,ref:t})});Wu.displayName=Bu;function jb(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,s,o)){case o:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Cb(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Rb(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function Pb(e,t){const{x:r,y:n}=e;let s=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const i=t[o],c=t[a],l=i.x,u=i.y,p=c.x,m=c.y;u>n!=m>n&&r<(p-l)*(n-u)/(m-u)+l&&(s=!s)}return s}function Nb(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Ab(t)}function Ab(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(s.y-a.y)>=(o.y-a.y)*(s.x-a.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const o=r[r.length-1],a=r[r.length-2];if((o.x-a.x)*(s.y-a.y)>=(o.y-a.y)*(s.x-a.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Tb=Fu,Ob=Vu,Ib=Lu,Db=zu,Mb=qu,Fb=Wu;function Vb({delayDuration:e=0,...t}){return d.jsx(Tb,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Hu({...e}){return d.jsx(Vb,{children:d.jsx(Ob,{"data-slot":"tooltip",...e})})}function Gu({...e}){return d.jsx(Ib,{"data-slot":"tooltip-trigger",...e})}function Ku({className:e,sideOffset:t=0,children:r,...n}){return d.jsx(Db,{children:d.jsxs(Mb,{"data-slot":"tooltip-content",sideOffset:t,className:Se("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...n,children:[r,d.jsx(Fb,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Lb=({theme:e,readOnly:t,rootType:r,onAddField:n,onOpenSettings:s})=>{const{control:o}=at();return d.jsxs("div",{className:"flex gap-2",children:[d.jsx(Ve,{value:"root",disabled:!0,className:"w-40"}),d.jsxs(Yr,{disabled:!0,value:r,children:[d.jsx(Xr,{className:"w-40",children:d.jsx(Jr,{})}),d.jsx(Qr,{className:`${e} bg-background text-foreground border-input`,children:d.jsx(Vt,{value:r,children:r})})]}),d.jsx(nr,{control:o,name:"root.title",render:({field:a})=>d.jsx(Ve,{placeholder:"Title",disabled:t,className:"flex-1",...a})}),d.jsx(nr,{control:o,name:"root.description",render:({field:a})=>d.jsx(Ve,{placeholder:"Description",disabled:t,className:"flex-1",...a})}),d.jsxs(Hu,{children:[d.jsx(Gu,{asChild:!0,children:d.jsx(mr,{disabled:!0,size:"icon",children:d.jsx(gu,{})})}),d.jsx(Ku,{children:d.jsx("p",{children:"Required"})})]}),d.jsx("div",{className:"border-l-2 border-input"}),d.jsx(mr,{size:"icon",variant:"ghost",onClick:()=>s("root"),children:d.jsx(pu,{className:"text-blue-500"})}),r==="object"&&d.jsx(mr,{size:"icon",variant:"ghost",disabled:t,onClick:n,children:d.jsx(hu,{className:"text-green-500"})}),d.jsx("div",{})]})},Es={form:{width:"full",height:"md"},output:{position:"bottom",showJson:!0,width:"full",height:"md"},settings:{width:"md"},spacing:"md"},Zu={sm:"max-h-[300px]",md:"max-h-[500px]",lg:"max-h-[800px]",full:"max-h-full"},zb={sm:300,md:500,lg:800,full:void 0},ri={sm:"w-full max-w-[600px]",md:"w-full max-w-[800px]",lg:"w-full max-w-[1200px]",full:"w-full"},qb={sm:"sm:max-w-[500px]",md:"sm:max-w-[700px]",lg:"sm:max-w-[1000px]",full:"w-full sm:max-w-full"},Ub={top:"flex-col-reverse",bottom:"flex-col",left:"flex-row-reverse",right:"flex-row"},Yu={sm:"gap-2",md:"gap-4",lg:"gap-6"},Bb=["string","integer","number","boolean","object","array"],Wb=["int-32","int-64"],Hb=["float","double","big-decimal"],Gb=["date","date-time","local-date-time","time","duration","email","hostname","ipv4","ipv6","password","html","json","json-path","uri","uri-refrence","uri-template","relative-json-pointer","json-pointer","regex","uuid"];var ks="Dialog",[Ju,Xu]=Tt(ks),[Kb,Ct]=Ju(ks),Qu=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:s,onOpenChange:o,modal:a=!0}=e,i=E.useRef(null),c=E.useRef(null),[l,u]=wr({prop:n,defaultProp:s??!1,onChange:o,caller:ks});return d.jsx(Kb,{scope:t,triggerRef:i,contentRef:c,contentId:ir(),titleId:ir(),descriptionId:ir(),open:l,onOpenChange:u,onOpenToggle:E.useCallback(()=>u(p=>!p),[u]),modal:a,children:r})};Qu.displayName=ks;var ed="DialogTrigger",td=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ct(ed,r),o=qe(t,s.triggerRef);return d.jsx(Pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":oi(s.open),...n,ref:o,onClick:$e(e.onClick,s.onOpenToggle)})});td.displayName=ed;var ni="DialogPortal",[Zb,rd]=Ju(ni,{forceMount:void 0}),nd=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:s}=e,o=Ct(ni,t);return d.jsx(Zb,{scope:t,forceMount:r,children:E.Children.map(n,a=>d.jsx(hr,{present:r||o.open,children:d.jsx(cs,{asChild:!0,container:s,children:a})}))})};nd.displayName=ni;var js="DialogOverlay",sd=E.forwardRef((e,t)=>{const r=rd(js,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=Ct(js,e.__scopeDialog);return o.modal?d.jsx(hr,{present:n||o.open,children:d.jsx(Jb,{...s,ref:t})}):null});sd.displayName=js;var Yb=Mr("DialogOverlay.RemoveScroll"),Jb=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ct(js,r);return d.jsx(Fa,{as:Yb,allowPinchZoom:!0,shards:[s.contentRef],children:d.jsx(Pe.div,{"data-state":oi(s.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),kr="DialogContent",od=E.forwardRef((e,t)=>{const r=rd(kr,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=Ct(kr,e.__scopeDialog);return d.jsx(hr,{present:n||o.open,children:o.modal?d.jsx(Xb,{...s,ref:t}):d.jsx(Qb,{...s,ref:t})})});od.displayName=kr;var Xb=E.forwardRef((e,t)=>{const r=Ct(kr,e.__scopeDialog),n=E.useRef(null),s=qe(t,r.contentRef,n);return E.useEffect(()=>{const o=n.current;if(o)return El(o)},[]),d.jsx(ad,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$e(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:$e(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&o.preventDefault()}),onFocusOutside:$e(e.onFocusOutside,o=>o.preventDefault())})}),Qb=E.forwardRef((e,t)=>{const r=Ct(kr,e.__scopeDialog),n=E.useRef(!1),s=E.useRef(!1);return d.jsx(ad,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,o),o.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),o.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:o=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=o.target;((l=r.triggerRef.current)==null?void 0:l.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),ad=E.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:o,...a}=e,i=Ct(kr,r),c=E.useRef(null),l=qe(t,c);return Tc(),d.jsxs(d.Fragment,{children:[d.jsx(va,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:o,children:d.jsx(Yn,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":oi(i.open),...a,ref:l,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(t_,{titleId:i.titleId}),d.jsx(n_,{contentRef:c,descriptionId:i.descriptionId})]})]})}),si="DialogTitle",id=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ct(si,r);return d.jsx(Pe.h2,{id:s.titleId,...n,ref:t})});id.displayName=si;var cd="DialogDescription",ld=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ct(cd,r);return d.jsx(Pe.p,{id:s.descriptionId,...n,ref:t})});ld.displayName=cd;var ud="DialogClose",dd=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ct(ud,r);return d.jsx(Pe.button,{type:"button",...n,ref:t,onClick:$e(e.onClick,()=>s.onOpenChange(!1))})});dd.displayName=ud;function oi(e){return e?"open":"closed"}var fd="DialogTitleWarning",[e_,md]=up(fd,{contentName:kr,titleName:si,docsSlug:"dialog"}),t_=({titleId:e})=>{const t=md(fd),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
135
|
+
*/const vu=Gt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function yu(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=yu(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function bu(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=yu(e))&&(n&&(n+=" "),n+=t);return n}const Wa="-",Oy=e=>{const t=Dy(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const i=a.split(Wa);return i[0]===""&&i.length!==1&&i.shift(),_u(i,t)||Iy(a)},getConflictingClassGroupIds:(a,i)=>{const c=r[a]||[];return i&&n[a]?[...c,...n[a]]:c}}},_u=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?_u(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Wa);return(a=t.validators.find(({validator:i})=>i(o)))==null?void 0:a.classGroupId},xu=/^\[(.+)\]$/,Iy=e=>{if(xu.test(e)){const t=xu.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Dy=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const s in r)Ha(r[s],n,s,t);return n},Ha=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:wu(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(My(s)){Ha(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,a])=>{Ha(a,wu(t,o),r,n)})})},wu=(e,t)=>{let r=e;return t.split(Wa).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},My=e=>e.isThemeGetter,Fy=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(o,a)=>{r.set(o,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let a=r.get(o);if(a!==void 0)return a;if((a=n.get(o))!==void 0)return s(o,a),a},set(o,a){r.has(o)?r.set(o,a):s(o,a)}}},Ga="!",Ka=":",Vy=Ka.length,Ly=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=s=>{const o=[];let a=0,i=0,c=0,l;for(let x=0;x<s.length;x++){let y=s[x];if(a===0&&i===0){if(y===Ka){o.push(s.slice(c,x)),c=x+Vy;continue}if(y==="/"){l=x;continue}}y==="["?a++:y==="]"?a--:y==="("?i++:y===")"&&i--}const u=o.length===0?s:s.substring(c),p=zy(u),m=p!==u,v=l&&l>c?l-c:void 0;return{modifiers:o,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:v}};if(t){const s=t+Ka,o=n;n=a=>a.startsWith(s)?o(a.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const s=n;n=o=>r({className:o,parseClassName:s})}return n},zy=e=>e.endsWith(Ga)?e.substring(0,e.length-1):e.startsWith(Ga)?e.substring(1):e,qy=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const s=[];let o=[];return n.forEach(a=>{a[0]==="["||t[a]?(s.push(...o.sort(),a),o=[]):o.push(a)}),s.push(...o.sort()),s}},Uy=e=>({cache:Fy(e.cacheSize),parseClassName:Ly(e),sortModifiers:qy(e),...Oy(e)}),By=/\s+/,Wy=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s,sortModifiers:o}=t,a=[],i=e.trim().split(By);let c="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{isExternal:p,modifiers:m,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:y}=r(u);if(p){c=u+(c.length>0?" "+c:c);continue}let h=!!y,_=n(h?x.substring(0,y):x);if(!_){if(!h){c=u+(c.length>0?" "+c:c);continue}if(_=n(x),!_){c=u+(c.length>0?" "+c:c);continue}h=!1}const f=o(m).join(":"),b=v?f+Ga:f,w=b+_;if(a.includes(w))continue;a.push(w);const g=s(_,h);for(let $=0;$<g.length;++$){const S=g[$];a.push(b+S)}c=u+(c.length>0?" "+c:c)}return c};function Hy(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=$u(t))&&(n&&(n+=" "),n+=r);return n}const $u=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=$u(e[n]))&&(r&&(r+=" "),r+=t);return r};function Gy(e,...t){let r,n,s,o=a;function a(c){const l=t.reduce((u,p)=>p(u),e());return r=Uy(l),n=r.cache.get,s=r.cache.set,o=i,i(c)}function i(c){const l=n(c);if(l)return l;const u=Wy(c,r);return s(c,u),u}return function(){return o(Hy.apply(null,arguments))}}const rt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Su=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Eu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ky=/^\d+\/\d+$/,Zy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yy=/\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$/,Jy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gr=e=>Ky.test(e),Ce=e=>!!e&&!Number.isNaN(Number(e)),fr=e=>!!e&&Number.isInteger(Number(e)),Za=e=>e.endsWith("%")&&Ce(e.slice(0,-1)),Kt=e=>Zy.test(e),eb=()=>!0,tb=e=>Yy.test(e)&&!Jy.test(e),ku=()=>!1,rb=e=>Xy.test(e),nb=e=>Qy.test(e),sb=e=>!de(e)&&!fe(e),ob=e=>Kr(e,Nu,ku),de=e=>Su.test(e),Er=e=>Kr(e,Au,tb),Ya=e=>Kr(e,ub,Ce),ju=e=>Kr(e,Ru,ku),ab=e=>Kr(e,Pu,nb),_s=e=>Kr(e,Tu,rb),fe=e=>Eu.test(e),kn=e=>Zr(e,Au),ib=e=>Zr(e,db),Cu=e=>Zr(e,Ru),cb=e=>Zr(e,Nu),lb=e=>Zr(e,Pu),xs=e=>Zr(e,Tu,!0),Kr=(e,t,r)=>{const n=Su.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Zr=(e,t,r=!1)=>{const n=Eu.exec(e);return n?n[1]?t(n[1]):r:!1},Ru=e=>e==="position"||e==="percentage",Pu=e=>e==="image"||e==="url",Nu=e=>e==="length"||e==="size"||e==="bg-size",Au=e=>e==="length",ub=e=>e==="number",db=e=>e==="family-name",Tu=e=>e==="shadow",fb=Gy(()=>{const e=rt("color"),t=rt("font"),r=rt("text"),n=rt("font-weight"),s=rt("tracking"),o=rt("leading"),a=rt("breakpoint"),i=rt("container"),c=rt("spacing"),l=rt("radius"),u=rt("shadow"),p=rt("inset-shadow"),m=rt("text-shadow"),v=rt("drop-shadow"),x=rt("blur"),y=rt("perspective"),h=rt("aspect"),_=rt("ease"),f=rt("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],g=()=>[...w(),fe,de],$=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],j=()=>[fe,de,c],I=()=>[Gr,"full","auto",...j()],z=()=>[fr,"none","subgrid",fe,de],M=()=>["auto",{span:["full",fr,fe,de]},fr,fe,de],F=()=>[fr,"auto",fe,de],V=()=>["auto","min","max","fr",fe,de],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...j()],ae=()=>[Gr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],L=()=>[e,fe,de],ve=()=>[...w(),Cu,ju,{position:[fe,de]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",cb,ob,{size:[fe,de]}],K=()=>[Za,kn,Er],O=()=>["","none","full",l,fe,de],k=()=>["",Ce,kn,Er],R=()=>["solid","dashed","dotted","double"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[Ce,Za,Cu,ju],Q=()=>["","none",x,fe,de],pe=()=>["none",Ce,fe,de],ie=()=>["none",Ce,fe,de],N=()=>[Ce,fe,de],A=()=>[Gr,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kt],breakpoint:[Kt],color:[eb],container:[Kt],"drop-shadow":[Kt],ease:["in","out","in-out"],font:[sb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kt],shadow:[Kt],spacing:["px",Ce],text:[Kt],"text-shadow":[Kt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Gr,de,fe,h]}],container:["container"],columns:[{columns:[Ce,de,fe,i]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],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:g()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[fr,"auto",fe,de]}],basis:[{basis:[Gr,"full","auto",i,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,Gr,"auto","initial","none",de]}],grow:[{grow:["",Ce,fe,de]}],shrink:[{shrink:["",Ce,fe,de]}],order:[{order:[fr,"first","last","none",fe,de]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:M()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:M()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:ae()}],w:[{w:[i,"screen",...ae()]}],"min-w":[{"min-w":[i,"screen","none",...ae()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...ae()]}],h:[{h:["screen","lh",...ae()]}],"min-h":[{"min-h":["screen","lh","none",...ae()]}],"max-h":[{"max-h":["screen","lh",...ae()]}],"font-size":[{text:["base",r,kn,Er]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,fe,Ya]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Za,de]}],"font-family":[{font:[ib,de,t]}],"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:[s,fe,de]}],"line-clamp":[{"line-clamp":[Ce,"none",fe,Ya]}],leading:[{leading:[o,...j()]}],"list-image":[{"list-image":["none",fe,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",fe,Er]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[Ce,"auto",fe,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},fr,fe,de],radial:["",fe,de],conic:[fr,fe,de]},lb,ab]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...R(),"hidden","none"]}],"divide-style":[{divide:[...R(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...R(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,fe,de]}],"outline-w":[{outline:["",Ce,kn,Er]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",u,xs,_s]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",p,xs,_s]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[Ce,Er]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",m,xs,_s]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[Ce,fe,de]}],"mix-blend":[{"mix-blend":[...q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[fe,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,de]}],filter:[{filter:["","none",fe,de]}],blur:[{blur:Q()}],brightness:[{brightness:[Ce,fe,de]}],contrast:[{contrast:[Ce,fe,de]}],"drop-shadow":[{"drop-shadow":["","none",v,xs,_s]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",Ce,fe,de]}],"hue-rotate":[{"hue-rotate":[Ce,fe,de]}],invert:[{invert:["",Ce,fe,de]}],saturate:[{saturate:[Ce,fe,de]}],sepia:[{sepia:["",Ce,fe,de]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,de]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,fe,de]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,fe,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,fe,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,fe,de]}],"backdrop-invert":[{"backdrop-invert":["",Ce,fe,de]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,fe,de]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,fe,de]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,fe,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",fe,de]}],ease:[{ease:["linear","initial",_,fe,de]}],delay:[{delay:[Ce,fe,de]}],animate:[{animate:["none",f,fe,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,fe,de]}],"perspective-origin":[{"perspective-origin":g()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:N()}],"skew-x":[{"skew-x":N()}],"skew-y":[{"skew-y":N()}],transform:[{transform:[fe,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:g()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:A()}],"translate-x":[{"translate-x":A()}],"translate-y":[{"translate-y":A()}],"translate-z":[{"translate-z":A()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",fe,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",fe,de]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[Ce,kn,Er,Ya]}],stroke:[{stroke:["none",...L()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Se(...e){return fb(bu(e))}function Yr({...e}){return d.jsx(hy,{"data-slot":"select",...e})}function Jr({...e}){return d.jsx(gy,{"data-slot":"select-value",...e})}function Xr({className:e,size:t="default",children:r,...n}){return d.jsxs(py,{"data-slot":"select-trigger","data-size":t,className:Se("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,d.jsx(vy,{asChild:!0,children:d.jsx(mu,{className:"size-4 opacity-50"})})]})}function Qr({className:e,children:t,position:r="popper",...n}){return d.jsx(yy,{children:d.jsxs(by,{"data-slot":"select-content",className:Se("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[d.jsx(mb,{}),d.jsx(_y,{className:Se("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),d.jsx(hb,{})]})})}function Vt({className:e,children:t,...r}){return d.jsxs(xy,{"data-slot":"select-item",className:Se("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx($y,{children:d.jsx(fu,{className:"size-4"})})}),d.jsx(wy,{children:t})]})}function mb({className:e,...t}){return d.jsx(Sy,{"data-slot":"select-scroll-up-button",className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Ny,{className:"size-4"})})}function hb({className:e,...t}){return d.jsx(Ey,{"data-slot":"select-scroll-down-button",className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(mu,{className:"size-4"})})}const Ve=Y.forwardRef(({className:e,type:t,...r},n)=>d.jsx("input",{type:t,"data-slot":"input",className:Se("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r}));Ve.displayName="Input";const Ou=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Iu=bu,Du=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Iu(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=t,a=Object.keys(s).map(l=>{const u=r==null?void 0:r[l],p=o==null?void 0:o[l];if(u===null)return null;const m=Ou(u)||Ou(p);return s[l][m]}),i=r&&Object.entries(r).reduce((l,u)=>{let[p,m]=u;return m===void 0||(l[p]=m),l},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,u)=>{let{class:p,className:m,...v}=u;return Object.entries(v).every(x=>{let[y,h]=x;return Array.isArray(h)?h.includes({...o,...i}[y]):{...o,...i}[y]===h})?[...l,p,m]:l},[]);return Iu(e,a,c,r==null?void 0:r.class,r==null?void 0:r.className)},Ja=Du("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),mr=Y.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},o)=>{const a=n?da:"button";return d.jsx(a,{"data-slot":"button",ref:o,className:Se(Ja({variant:t,size:r,className:e})),...s})});function pb(e,t){return E.useReducer((r,n)=>t[r][n]??r,e)}var hr=e=>{const{present:t,children:r}=e,n=gb(t),s=typeof r=="function"?r({present:n.isPresent}):E.Children.only(r),o=qe(n.ref,vb(s));return typeof r=="function"||n.isPresent?E.cloneElement(s,{ref:o}):null};hr.displayName="Presence";function gb(e){const[t,r]=E.useState(),n=E.useRef(null),s=E.useRef(e),o=E.useRef("none"),a=e?"mounted":"unmounted",[i,c]=pb(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const l=ws(n.current);o.current=i==="mounted"?l:"none"},[i]),it(()=>{const l=n.current,u=s.current;if(u!==e){const m=o.current,v=ws(l);e?c("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),it(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,p=v=>{const y=ws(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&y&&(c("ANIMATION_END"),!s.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},m=v=>{v.target===t&&(o.current=ws(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:E.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function ws(e){return(e==null?void 0:e.animationName)||"none"}function vb(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var[$s]=Tt("Tooltip",[is]),Ss=is(),Mu="TooltipProvider",yb=700,Xa="tooltip.open",[bb,Qa]=$s(Mu),Fu=e=>{const{__scopeTooltip:t,delayDuration:r=yb,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:o}=e,a=E.useRef(!0),i=E.useRef(!1),c=E.useRef(0);return E.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),d.jsx(bb,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:E.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:E.useCallback(l=>{i.current=l},[]),disableHoverableContent:s,children:o})};Fu.displayName=Mu;var jn="Tooltip",[_b,Cn]=$s(jn),Vu=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:s,onOpenChange:o,disableHoverableContent:a,delayDuration:i}=e,c=Qa(jn,e.__scopeTooltip),l=Ss(t),[u,p]=E.useState(null),m=ir(),v=E.useRef(0),x=a??c.disableHoverableContent,y=i??c.delayDuration,h=E.useRef(!1),[_,f]=wr({prop:n,defaultProp:s??!1,onChange:S=>{S?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xa))):c.onClose(),o==null||o(S)},caller:jn}),b=E.useMemo(()=>_?h.current?"delayed-open":"instant-open":"closed",[_]),w=E.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h.current=!1,f(!0)},[f]),g=E.useCallback(()=>{window.clearTimeout(v.current),v.current=0,f(!1)},[f]),$=E.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{h.current=!0,f(!0),v.current=0},y)},[y,f]);return E.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),d.jsx(yl,{...l,children:d.jsx(_b,{scope:t,contentId:m,open:_,stateAttribute:b,trigger:u,onTriggerChange:p,onTriggerEnter:E.useCallback(()=>{c.isOpenDelayedRef.current?$():w()},[c.isOpenDelayedRef,$,w]),onTriggerLeave:E.useCallback(()=>{x?g():(window.clearTimeout(v.current),v.current=0)},[g,x]),onOpen:w,onClose:g,disableHoverableContent:x,children:r})})};Vu.displayName=jn;var ei="TooltipTrigger",Lu=E.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Cn(ei,r),o=Qa(ei,r),a=Ss(r),i=E.useRef(null),c=qe(t,i,s.onTriggerChange),l=E.useRef(!1),u=E.useRef(!1),p=E.useCallback(()=>l.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),d.jsx(bl,{asChild:!0,...a,children:d.jsx(Pe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:$e(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:$e(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:$e(e.onPointerDown,()=>{s.open&&s.onClose(),l.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:$e(e.onFocus,()=>{l.current||s.onOpen()}),onBlur:$e(e.onBlur,s.onClose),onClick:$e(e.onClick,s.onClose)})})});Lu.displayName=ei;var ti="TooltipPortal",[xb,wb]=$s(ti,{forceMount:void 0}),zu=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:s}=e,o=Cn(ti,t);return d.jsx(xb,{scope:t,forceMount:r,children:d.jsx(hr,{present:r||o.open,children:d.jsx(cs,{asChild:!0,container:s,children:n})})})};zu.displayName=ti;var en="TooltipContent",qu=E.forwardRef((e,t)=>{const r=wb(en,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...o}=e,a=Cn(en,e.__scopeTooltip);return d.jsx(hr,{present:n||a.open,children:a.disableHoverableContent?d.jsx(Uu,{side:s,...o,ref:t}):d.jsx($b,{side:s,...o,ref:t})})}),$b=E.forwardRef((e,t)=>{const r=Cn(en,e.__scopeTooltip),n=Qa(en,e.__scopeTooltip),s=E.useRef(null),o=qe(t,s),[a,i]=E.useState(null),{trigger:c,onClose:l}=r,u=s.current,{onPointerInTransitChange:p}=n,m=E.useCallback(()=>{i(null),p(!1)},[p]),v=E.useCallback((x,y)=>{const h=x.currentTarget,_={x:x.clientX,y:x.clientY},f=jb(_,h.getBoundingClientRect()),b=Cb(_,f),w=Rb(y.getBoundingClientRect()),g=Nb([...b,...w]);i(g),p(!0)},[p]);return E.useEffect(()=>()=>m(),[m]),E.useEffect(()=>{if(c&&u){const x=h=>v(h,u),y=h=>v(h,c);return c.addEventListener("pointerleave",x),u.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",x),u.removeEventListener("pointerleave",y)}}},[c,u,v,m]),E.useEffect(()=>{if(a){const x=y=>{const h=y.target,_={x:y.clientX,y:y.clientY},f=(c==null?void 0:c.contains(h))||(u==null?void 0:u.contains(h)),b=!Pb(_,a);f?m():b&&(m(),l())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,u,a,l,m]),d.jsx(Uu,{...e,ref:o})}),[Sb,Eb]=$s(jn,{isInside:!1}),kb=jc("TooltipContent"),Uu=E.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:a,...i}=e,c=Cn(en,r),l=Ss(r),{onClose:u}=c;return E.useEffect(()=>(document.addEventListener(Xa,u),()=>document.removeEventListener(Xa,u)),[u]),E.useEffect(()=>{if(c.trigger){const p=m=>{const v=m.target;v!=null&&v.contains(c.trigger)&&u()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,u]),d.jsx(Yn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:u,children:d.jsxs(_l,{"data-state":c.stateAttribute,...l,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(kb,{children:n}),d.jsx(Sb,{scope:r,isInside:!0,children:d.jsx(ov,{id:c.contentId,role:"tooltip",children:s||n})})]})})});qu.displayName=en;var Bu="TooltipArrow",Wu=E.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Ss(r);return Eb(Bu,r).isInside?null:d.jsx(xl,{...s,...n,ref:t})});Wu.displayName=Bu;function jb(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,s,o)){case o:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Cb(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Rb(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function Pb(e,t){const{x:r,y:n}=e;let s=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const i=t[o],c=t[a],l=i.x,u=i.y,p=c.x,m=c.y;u>n!=m>n&&r<(p-l)*(n-u)/(m-u)+l&&(s=!s)}return s}function Nb(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Ab(t)}function Ab(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(s.y-a.y)>=(o.y-a.y)*(s.x-a.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const o=r[r.length-1],a=r[r.length-2];if((o.x-a.x)*(s.y-a.y)>=(o.y-a.y)*(s.x-a.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Tb=Fu,Ob=Vu,Ib=Lu,Db=zu,Mb=qu,Fb=Wu;function Vb({delayDuration:e=0,...t}){return d.jsx(Tb,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Hu({...e}){return d.jsx(Vb,{children:d.jsx(Ob,{"data-slot":"tooltip",...e})})}function Gu({...e}){return d.jsx(Ib,{"data-slot":"tooltip-trigger",...e})}function Ku({className:e,sideOffset:t=0,children:r,...n}){return d.jsx(Db,{children:d.jsxs(Mb,{"data-slot":"tooltip-content",sideOffset:t,className:Se("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...n,children:[r,d.jsx(Fb,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Lb=({theme:e,readOnly:t,rootType:r,onAddField:n,onOpenSettings:s})=>{const{control:o}=at();return d.jsxs("div",{className:"flex gap-2",children:[d.jsx(Ve,{value:"root",disabled:!0,className:"w-40"}),d.jsxs(Yr,{disabled:!0,value:r,children:[d.jsx(Xr,{className:"w-40",children:d.jsx(Jr,{})}),d.jsx(Qr,{className:`${e} max-h-52 bg-background text-foreground border-input`,children:d.jsx(Vt,{value:r,children:r})})]}),d.jsx(nr,{control:o,name:"root.title",render:({field:a})=>d.jsx(Ve,{placeholder:"Title",disabled:t,className:"flex-1",...a})}),d.jsx(nr,{control:o,name:"root.description",render:({field:a})=>d.jsx(Ve,{placeholder:"Description",disabled:t,className:"flex-1",...a})}),d.jsxs(Hu,{children:[d.jsx(Gu,{asChild:!0,children:d.jsx(mr,{disabled:!0,size:"icon",children:d.jsx(gu,{})})}),d.jsx(Ku,{children:d.jsx("p",{children:"Required"})})]}),d.jsx("div",{className:"border-l-2 border-input"}),d.jsx(mr,{size:"icon",variant:"ghost",onClick:()=>s("root"),children:d.jsx(pu,{className:"text-blue-500"})}),r==="object"&&d.jsx(mr,{size:"icon",variant:"ghost",disabled:t,onClick:n,children:d.jsx(hu,{className:"text-green-500"})}),d.jsx("div",{})]})},Es={form:{width:"full",height:"md"},output:{position:"bottom",showJson:!0,width:"full",height:"md"},settings:{width:"md"},spacing:"md"},Zu={sm:"max-h-[300px]",md:"max-h-[500px]",lg:"max-h-[800px]",full:"max-h-full"},zb={sm:300,md:500,lg:800,full:void 0},ri={sm:"w-full max-w-[600px]",md:"w-full max-w-[800px]",lg:"w-full max-w-[1200px]",full:"w-full"},qb={sm:"sm:max-w-[500px]",md:"sm:max-w-[700px]",lg:"sm:max-w-[1000px]",full:"w-full sm:max-w-full"},Ub={top:"flex-col-reverse",bottom:"flex-col",left:"flex-row-reverse",right:"flex-row"},Yu={sm:"gap-2",md:"gap-4",lg:"gap-6"},Bb=["string","integer","number","boolean","object","array"],Wb=["int-32","int-64"],Hb=["float","double","big-decimal"],Gb=["date","date-time","local-date-time","time","duration","email","hostname","ipv4","ipv6","password","html","json","json-path","uri","uri-refrence","uri-template","relative-json-pointer","json-pointer","regex","uuid"];var ks="Dialog",[Ju,Xu]=Tt(ks),[Kb,Ct]=Ju(ks),Qu=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:s,onOpenChange:o,modal:a=!0}=e,i=E.useRef(null),c=E.useRef(null),[l,u]=wr({prop:n,defaultProp:s??!1,onChange:o,caller:ks});return d.jsx(Kb,{scope:t,triggerRef:i,contentRef:c,contentId:ir(),titleId:ir(),descriptionId:ir(),open:l,onOpenChange:u,onOpenToggle:E.useCallback(()=>u(p=>!p),[u]),modal:a,children:r})};Qu.displayName=ks;var ed="DialogTrigger",td=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ct(ed,r),o=qe(t,s.triggerRef);return d.jsx(Pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":oi(s.open),...n,ref:o,onClick:$e(e.onClick,s.onOpenToggle)})});td.displayName=ed;var ni="DialogPortal",[Zb,rd]=Ju(ni,{forceMount:void 0}),nd=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:s}=e,o=Ct(ni,t);return d.jsx(Zb,{scope:t,forceMount:r,children:E.Children.map(n,a=>d.jsx(hr,{present:r||o.open,children:d.jsx(cs,{asChild:!0,container:s,children:a})}))})};nd.displayName=ni;var js="DialogOverlay",sd=E.forwardRef((e,t)=>{const r=rd(js,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=Ct(js,e.__scopeDialog);return o.modal?d.jsx(hr,{present:n||o.open,children:d.jsx(Jb,{...s,ref:t})}):null});sd.displayName=js;var Yb=Mr("DialogOverlay.RemoveScroll"),Jb=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ct(js,r);return d.jsx(Fa,{as:Yb,allowPinchZoom:!0,shards:[s.contentRef],children:d.jsx(Pe.div,{"data-state":oi(s.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),kr="DialogContent",od=E.forwardRef((e,t)=>{const r=rd(kr,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=Ct(kr,e.__scopeDialog);return d.jsx(hr,{present:n||o.open,children:o.modal?d.jsx(Xb,{...s,ref:t}):d.jsx(Qb,{...s,ref:t})})});od.displayName=kr;var Xb=E.forwardRef((e,t)=>{const r=Ct(kr,e.__scopeDialog),n=E.useRef(null),s=qe(t,r.contentRef,n);return E.useEffect(()=>{const o=n.current;if(o)return El(o)},[]),d.jsx(ad,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$e(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:$e(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&o.preventDefault()}),onFocusOutside:$e(e.onFocusOutside,o=>o.preventDefault())})}),Qb=E.forwardRef((e,t)=>{const r=Ct(kr,e.__scopeDialog),n=E.useRef(!1),s=E.useRef(!1);return d.jsx(ad,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,o),o.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),o.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:o=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=o.target;((l=r.triggerRef.current)==null?void 0:l.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),ad=E.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:o,...a}=e,i=Ct(kr,r),c=E.useRef(null),l=qe(t,c);return Tc(),d.jsxs(d.Fragment,{children:[d.jsx(va,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:o,children:d.jsx(Yn,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":oi(i.open),...a,ref:l,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(t_,{titleId:i.titleId}),d.jsx(n_,{contentRef:c,descriptionId:i.descriptionId})]})]})}),si="DialogTitle",id=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ct(si,r);return d.jsx(Pe.h2,{id:s.titleId,...n,ref:t})});id.displayName=si;var cd="DialogDescription",ld=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ct(cd,r);return d.jsx(Pe.p,{id:s.descriptionId,...n,ref:t})});ld.displayName=cd;var ud="DialogClose",dd=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ct(ud,r);return d.jsx(Pe.button,{type:"button",...n,ref:t,onClick:$e(e.onClick,()=>s.onOpenChange(!1))})});dd.displayName=ud;function oi(e){return e?"open":"closed"}var fd="DialogTitleWarning",[e_,md]=up(fd,{contentName:kr,titleName:si,docsSlug:"dialog"}),t_=({titleId:e})=>{const t=md(fd),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
136
136
|
|
|
137
137
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
138
138
|
|
|
@@ -142,7 +142,7 @@ You can add a description to the \`${tn}\` by passing a \`${jd}\` component as a
|
|
|
142
142
|
|
|
143
143
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${tn}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
144
144
|
|
|
145
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return E.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},p_=_d,g_=xd,v_=wd,y_=$d,b_=Sd,__=Rd,x_=Nd,w_=kd,$_=Cd;function S_({...e}){return d.jsx(p_,{"data-slot":"alert-dialog",...e})}function E_({...e}){return d.jsx(g_,{"data-slot":"alert-dialog-trigger",...e})}function k_({...e}){return d.jsx(v_,{"data-slot":"alert-dialog-portal",...e})}function j_({className:e,...t}){return d.jsx(y_,{"data-slot":"alert-dialog-overlay",className:Se("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function C_({className:e,...t}){return d.jsxs(k_,{children:[d.jsx(j_,{}),d.jsx(b_,{"data-slot":"alert-dialog-content",className:Se("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...t})]})}function R_({className:e,...t}){return d.jsx("div",{"data-slot":"alert-dialog-header",className:Se("flex flex-col gap-2 text-center sm:text-left",e),...t})}function P_({className:e,...t}){return d.jsx("div",{"data-slot":"alert-dialog-footer",className:Se("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function N_({className:e,...t}){return d.jsx(w_,{"data-slot":"alert-dialog-title",className:Se("text-lg font-semibold",e),...t})}function A_({className:e,...t}){return d.jsx($_,{"data-slot":"alert-dialog-description",className:Se("text-muted-foreground text-sm",e),...t})}function T_({className:e,...t}){return d.jsx(__,{className:Se(Ja(),e),...t})}function O_({className:e,...t}){return d.jsx(x_,{className:Se(Ja({variant:"outline"}),e),...t})}const I_=({theme:e,readOnly:t,control:r,fieldPath:n,isSimpleType:s,isRootLevel:o,onRemove:a,onOpenSettings:i,onTypeChange:c})=>{Ar({control:r,name:`${n}.schema.type`});const l=Ar({control:r,name:`${n}.key`});return d.jsxs("div",{className:"p-2 flex gap-2",children:[s&&d.jsx(nr,{control:r,name:`${n}.key`,render:({field:u})=>d.jsx(Ve,{placeholder:"field_name",disabled:t,className:"w-40",...u})}),d.jsx(nr,{control:r,name:`${n}.schema.type`,render:({field:u})=>d.jsxs(Yr,{disabled:t,onValueChange:p=>{u.onChange(p),c(p)},value:u.value,children:[d.jsx(Xr,{className:"w-40",children:d.jsx(Jr,{})}),d.jsx(Qr,{className:`${e} bg-background text-foreground border-input`,children:Bb.map(p=>d.jsx(Vt,{value:p,children:p},p))})]})}),d.jsx(nr,{control:r,name:`${n}.schema.title`,render:({field:u})=>d.jsx(Ve,{placeholder:"Title",disabled:t,className:"flex-1",...u})}),d.jsx(nr,{control:r,name:`${n}.schema.description`,render:({field:u})=>d.jsx(Ve,{placeholder:"Description",disabled:t,className:"flex-1",...u})}),s&&d.jsxs("div",{className:"flex gap-2",children:[d.jsx(nr,{control:r,name:`${n}.isRequired`,render:({field:u})=>d.jsxs(Hu,{children:[d.jsx(Gu,{asChild:!0,children:d.jsx(mr,{disabled:t,size:"icon",variant:u.value?"default":"outline",onClick:()=>{u.onChange(!u.value)},children:d.jsx(gu,{})})}),d.jsx(Ku,{children:d.jsx("p",{children:"Required"})})]})}),d.jsx("div",{className:"border-l-2 border-input"})]}),d.jsx(mr,{size:"icon",variant:"ghost",onClick:()=>i(`${n}.schema`),children:d.jsx(pu,{className:"text-blue-500"})}),o&&d.jsxs(S_,{children:[d.jsx(E_,{asChild:!0,children:d.jsx(mr,{size:"icon",variant:"ghost",disabled:t,children:d.jsx(Ty,{className:"text-red-500"})})}),d.jsxs(C_,{className:Se("border-input",e),children:[d.jsxs(R_,{children:[d.jsx(N_,{className:"text-foreground",children:"Are you absolutely sure?"}),d.jsxs(A_,{children:["This action cannot be undone. This will permanently delete field"," ",l,"."]})]}),d.jsxs(P_,{children:[d.jsx(O_,{className:"text-foreground",children:"Cancel"}),d.jsx(T_,{onClick:a,children:"Delete"})]})]})]})]})},Cs=({theme:e,readOnly:t,fieldPath:r,onRemove:n,onOpenSettings:s,isSimpleType:o=!0,isRootLevel:a=!1})=>{const{control:i,setValue:c}=at(),l=Ar({control:i,name:`${r}.schema.type`}),{fields:u,append:p,remove:m}=wc({control:i,name:`${r}.schema.properties`}),v=()=>{const y=xn(6);p({id:y,key:`field_${y}`,isRequired:!1,schema:{type:"string"}})},x=y=>{let h={};y==="object"?h={type:"object",properties:[],additionalProperties:!0}:y==="array"?h={type:"array"}:h={type:y},c(`${r}.schema`,h)};return d.jsxs("div",{children:[d.jsx(I_,{theme:e,readOnly:t,control:i,fieldPath:r,isSimpleType:o,isRootLevel:a,onRemove:n,onOpenSettings:s,onTypeChange:x}),l==="object"&&d.jsxs("div",{className:"ml-2 pl-2 border-l-2 border-input",children:[u.map((y,h)=>d.jsx(Cs,{readOnly:t,theme:e,fieldPath:`${r}.schema.properties.${h}`,onRemove:()=>m(h),onOpenSettings:s,isRootLevel:!0},y.id)),d.jsxs(mr,{disabled:t,size:"sm",variant:"outline",onClick:v,className:"ml-2 mt-2 mb-4 flex gap-2 text-green-500",children:[d.jsx(hu,{})," Add Field"]})]}),l==="array"&&d.jsx("div",{className:"ml-2 pl-2 border-l-2 border-input mr-11",children:d.jsx(Cs,{theme:e,readOnly:t,fieldPath:`${r}.schema.items`,onRemove:()=>{},onOpenSettings:s,isSimpleType:!1})})]},`${r}-${l}`)};function D_({theme:e,readOnly:t,fields:r,onRemove:n,onOpenSettings:s}){return d.jsx("div",{className:"pl-2 border-l-2 border-input",children:r.map((o,a)=>d.jsx(Cs,{readOnly:t,theme:e,fieldPath:`properties.${a}`,onRemove:()=>n(a),onOpenSettings:s,isRootLevel:!0},o.fieldId))})}var M_="Label",Ad=E.forwardRef((e,t)=>d.jsx(Pe.label,{...e,ref:t,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Ad.displayName=M_;var F_=Ad;function V_({className:e,...t}){return d.jsx(F_,{"data-slot":"label",className:Se("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const Td=Y.createContext({}),Te=({...e})=>d.jsx(Td.Provider,{value:{name:e.name},children:d.jsx(nr,{...e})}),ii=()=>{const e=Y.useContext(Td),t=Y.useContext(Od),{getFieldState:r}=at(),n=sc({name:e.name}),s=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:o}=t;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...s}},Od=Y.createContext({});function Ee({className:e,...t}){const r=Y.useId();return d.jsx(Od.Provider,{value:{id:r},children:d.jsx("div",{"data-slot":"form-item",className:Se("grid gap-2",e),...t})})}function ke({className:e,...t}){const{error:r,formItemId:n}=ii();return d.jsx(V_,{"data-slot":"form-label","data-error":!!r,className:Se("data-[error=true]:text-destructive",e),htmlFor:n,...t})}function Ne({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:s}=ii();return d.jsx(da,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${s}`:`${n}`,"aria-invalid":!!t,...e})}function Ae({className:e,...t}){const{error:r,formMessageId:n}=ii(),s=r?String((r==null?void 0:r.message)??""):t.children;return s?d.jsx("p",{"data-slot":"form-message",id:n,className:Se("text-destructive text-sm",e),...t,children:s}):null}var Rs="Checkbox",[L_]=Tt(Rs),[z_,ci]=L_(Rs);function q_(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:s,disabled:o,form:a,name:i,onCheckedChange:c,required:l,value:u="on",internal_do_not_use_render:p}=e,[m,v]=wr({prop:r,defaultProp:s??!1,onChange:c,caller:Rs}),[x,y]=E.useState(null),[h,_]=E.useState(null),f=E.useRef(!1),b=x?!!a||!!x.closest("form"):!0,w={checked:m,disabled:o,setChecked:v,control:x,setControl:y,name:i,form:a,value:u,hasConsumerStoppedPropagationRef:f,required:l,defaultChecked:pr(s)?!1:s,isFormControl:b,bubbleInput:h,setBubbleInput:_};return d.jsx(z_,{scope:t,...w,children:U_(p)?p(w):n})}var Id="CheckboxTrigger",Dd=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},s)=>{const{control:o,value:a,disabled:i,checked:c,required:l,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:v,bubbleInput:x}=ci(Id,e),y=qe(s,u),h=E.useRef(c);return E.useEffect(()=>{const _=o==null?void 0:o.form;if(_){const f=()=>p(h.current);return _.addEventListener("reset",f),()=>_.removeEventListener("reset",f)}},[o,p]),d.jsx(Pe.button,{type:"button",role:"checkbox","aria-checked":pr(c)?"mixed":c,"aria-required":l,"data-state":qd(c),"data-disabled":i?"":void 0,disabled:i,value:a,...n,ref:y,onKeyDown:$e(t,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:$e(r,_=>{p(f=>pr(f)?!0:!f),x&&v&&(m.current=_.isPropagationStopped(),m.current||_.stopPropagation())})})});Dd.displayName=Id;var Md=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:o,required:a,disabled:i,value:c,onCheckedChange:l,form:u,...p}=e;return d.jsx(q_,{__scopeCheckbox:r,checked:s,defaultChecked:o,disabled:i,required:a,onCheckedChange:l,name:n,form:u,value:c,internal_do_not_use_render:({isFormControl:m})=>d.jsxs(d.Fragment,{children:[d.jsx(Dd,{...p,ref:t,__scopeCheckbox:r}),m&&d.jsx(zd,{__scopeCheckbox:r})]})})});Md.displayName=Rs;var Fd="CheckboxIndicator",Vd=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...s}=e,o=ci(Fd,r);return d.jsx(hr,{present:n||pr(o.checked)||o.checked===!0,children:d.jsx(Pe.span,{"data-state":qd(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});Vd.displayName=Fd;var Ld="CheckboxBubbleInput",zd=E.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:o,defaultChecked:a,required:i,disabled:c,name:l,value:u,form:p,bubbleInput:m,setBubbleInput:v}=ci(Ld,e),x=qe(r,v),y=Aa(o),h=Ra(n);E.useEffect(()=>{const f=m;if(!f)return;const b=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(b,"checked").set,$=!s.current;if(y!==o&&g){const S=new Event("click",{bubbles:$});f.indeterminate=pr(o),g.call(f,pr(o)?!1:o),f.dispatchEvent(S)}},[m,y,o,s]);const _=E.useRef(pr(o)?!1:o);return d.jsx(Pe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??_.current,required:i,disabled:c,name:l,value:u,form:p,...t,tabIndex:-1,ref:x,style:{...t.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});zd.displayName=Ld;function U_(e){return typeof e=="function"}function pr(e){return e==="indeterminate"}function qd(e){return pr(e)?"indeterminate":e?"checked":"unchecked"}function Ps({className:e,...t}){return d.jsx(Md,{"data-slot":"checkbox",className:Se("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:d.jsx(Vd,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:d.jsx(fu,{className:"size-3.5"})})})}const B_=Du("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ud({className:e,variant:t,asChild:r=!1,...n}){const s=r?da:"span";return d.jsx(s,{"data-slot":"badge",className:Se(B_({variant:t}),e),...n})}const W_=/[\n#?=&\t,./-]+/,H_=/^[^a-zA-Z0-9]*|[^a-zA-Z0-9]*$/g,G_=Y.createContext(null),Rn=Y.forwardRef(({children:e,value:t,onValueChange:r,placeholder:n,maxItems:s,minItems:o,className:a,disabled:i=!1,dir:c,...l},u)=>{const[p,m]=Y.useState(-1),[v,x]=Y.useState(""),[y,h]=Y.useState(i),[_,f]=Y.useState(i),[b,w]=Y.useState(!1),[g,$]=Y.useState(""),S=o??0,j=s??1/0,I=Y.useCallback(Z=>{!t.includes(Z)&&t.length<j&&r([...t,Z])},[t]),z=Y.useCallback(Z=>{t.includes(Z)&&t.length>S&&r(t.filter(ae=>ae!==Z))},[t]),M=Y.useCallback(Z=>{Z.preventDefault();const ae=Z.clipboardData.getData("text").split(W_),L=[...t];ae.forEach(ve=>{const G=ve.replaceAll(H_,"").trim();G.length>0&&!L.includes(G)&&L.length<j&&L.push(G)}),r(L),x("")},[t]),F=Y.useCallback(Z=>{const ae=Z.currentTarget,L=ae.value.substring(ae.selectionStart??0,ae.selectionEnd??0);$(L),w(L===v)},[v]);Y.useEffect(()=>{(()=>{i==!1&&(t.length-1>=S?f(!1):f(!0),t.length+1<=j?h(!1):h(!0))})()},[t]);const V=Y.useCallback(async Z=>{Z.stopPropagation();const ae=()=>{const T=p+1>t.length-1?-1:p+1;m(T)},L=()=>{const T=p-1<0?t.length-1:p-1;m(T)},ve=()=>{const T=p-1<=0?t.length-1===0?-1:0:p-1;m(T)},G=Z.currentTarget;switch(Z.key){case"ArrowLeft":c==="rtl"?t.length>0&&p!==-1&&ae():t.length>0&&G.selectionStart===0&&L();break;case"ArrowRight":c==="rtl"?t.length>0&&G.selectionStart===0&&L():t.length>0&&p!==-1&&ae();break;case"Backspace":case"Delete":t.length>0&&(p!==-1&&p<t.length?(z(t[p]),ve()):G.selectionStart===0&&(g===v||b)&&z(t[t.length-1]));break;case"Escape":const T=p===-1?t.length-1:-1;m(T);break;case"Enter":v.trim()!==""&&(Z.preventDefault(),I(v),x(""));break}},[p,t,v,z]),W=Y.useCallback(Z=>{Z.preventDefault(),Z.stopPropagation()},[]),re=Y.useCallback(Z=>{x(Z.currentTarget.value)},[]);return d.jsx(G_.Provider,{value:{value:t,onValueChange:r,inputValue:v,setInputValue:x,activeIndex:p,setActiveIndex:m},children:d.jsxs("div",{...l,ref:u,dir:c,className:Se("flex items-center flex-wrap gap-1 rounded-lg bg-background overflow-hidden",{"focus-within:ring-ring":p===-1},a),children:[t.map((Z,ae)=>d.jsxs(Ud,{tabIndex:p!==-1?0:p,"aria-disabled":_,"data-active":p===ae,className:Se("relative px-1 rounded flex items-center gap-1 data-[active='true']:ring-2 data-[active='true']:ring-muted-foreground truncate aria-disabled:opacity-50 aria-disabled:cursor-not-allowed"),variant:"secondary",children:[d.jsx("span",{className:"text-xs",children:Z}),d.jsxs("button",{type:"button","aria-label":`Remove ${Z} option`,"aria-roledescription":"button to remove option",disabled:_,onMouseDown:W,onClick:()=>z(Z),className:"disabled:cursor-not-allowed",children:[d.jsxs("span",{className:"sr-only",children:["Remove ",Z," option"]}),d.jsx(vu,{className:"h-4 w-4 hover:stroke-destructive"})]})]},Z)),d.jsx(Ve,{tabIndex:0,"aria-label":"input tag",disabled:y,onKeyDown:V,onPaste:M,value:v,onSelect:F,onChange:p===-1?re:void 0,placeholder:n,onClick:()=>m(-1),className:Se("border border-input h-9 min-w-fit flex-1 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0 placeholder:text-muted-foreground px-2",p!==-1&&"caret-transparent")})]})})});Rn.displayName="TagsInput";const K_=({theme:e,basePath:t,readOnly:r})=>{const{control:n,watch:s}=at(),o=s(`${t}.enumEnabled`);return d.jsxs("form",{className:"flex flex-col gap-4",children:[d.jsx(Te,{control:n,name:`${t}.default`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Default Value"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsxs("div",{className:"flex gap-4 items-start",children:[d.jsx(Te,{control:n,name:`${t}.minimum`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Minimum Value"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.maximum`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Maximum Value"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx(Te,{control:n,name:`${t}.exclusiveMin`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Exclusive Minimum"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.exclusiveMax`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Exclusive Maximum"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsx(Te,{control:n,name:`${t}.multipleOf`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Multiple Of"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.format`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Format"}),d.jsxs(Yr,{onValueChange:a.onChange,defaultValue:a.value,disabled:r,children:[d.jsx(Ne,{children:d.jsx(Xr,{children:d.jsx(Jr,{placeholder:"Choose data type"})})}),d.jsxs(Qr,{className:`${e} bg-background text-foreground border-input`,children:[d.jsx(Vt,{value:"none",children:"none"}),Hb.map(i=>d.jsx(Vt,{value:i,children:i},i))]})]}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.enumEnabled`,render:({field:a})=>d.jsxs(Ee,{className:"p-4 flex border border-input rounded-md",children:[d.jsx(Ne,{children:d.jsx(Ps,{disabled:r,...a,checked:a.value,onCheckedChange:a.onChange})}),d.jsx(ke,{className:"ml-2",children:"Enable Enum"}),d.jsx(Ae,{})]})}),o&&d.jsx(Te,{control:n,name:`${t}.enumInput`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Enum Values"}),d.jsx(Ne,{children:d.jsx(Rn,{disabled:r,value:a.value||[],onValueChange:a.onChange,placeholder:"Enter your enums"})}),d.jsx(Ae,{})]})})]})},Z_=({theme:e,basePath:t,readOnly:r})=>{const{control:n,watch:s}=at(),o=s(`${t}.enumEnabled`);return d.jsxs("form",{className:"flex flex-col gap-4",children:[d.jsx(Te,{control:n,name:`${t}.default`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Default Value"}),d.jsx(Ne,{children:d.jsx(Ve,{disabled:r,...a})}),d.jsx(Ae,{})]})}),d.jsxs("div",{className:"flex gap-4 items-start",children:[d.jsx(Te,{control:n,name:`${t}.minLength`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Minimum Length"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.maxLength`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Maximum Length"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsx(Te,{control:n,name:`${t}.pattern`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Pattern (Regular Expression)"}),d.jsx(Ne,{children:d.jsx(Ve,{disabled:r,...a})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.format`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Format"}),d.jsxs(Yr,{onValueChange:a.onChange,defaultValue:a.value,disabled:r,children:[d.jsx(Ne,{children:d.jsx(Xr,{children:d.jsx(Jr,{placeholder:"Choose data type"})})}),d.jsxs(Qr,{className:`${e} bg-background text-foreground border-input`,children:[d.jsx(Vt,{value:"none",children:"none"}),Gb.map(i=>d.jsx(Vt,{value:i,children:i},i))]})]}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.enumEnabled`,render:({field:a})=>d.jsxs(Ee,{className:"p-4 flex border border-input rounded-md",children:[d.jsx(Ne,{children:d.jsx(Ps,{disabled:r,...a,checked:a.value,onCheckedChange:a.onChange})}),d.jsx(ke,{className:"ml-2",children:"Enable Enum"}),d.jsx(Ae,{})]})}),o&&d.jsx(Te,{control:n,name:`${t}.enumInput`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Enum Values"}),d.jsx(Ne,{children:d.jsx(Rn,{disabled:r,value:a.value||[],onValueChange:a.onChange,placeholder:"Enter your enums"})}),d.jsx(Ae,{})]})})]})},Y_=({theme:e,basePath:t,readOnly:r})=>{const{control:n}=at();return d.jsx("form",{children:d.jsx(Te,{control:n,name:`${t}.default`,render:({field:s})=>d.jsxs(Ee,{className:"flex gap-2",children:[d.jsx(ke,{children:"Default Value"}),d.jsxs(Yr,{onValueChange:s.onChange,defaultValue:s.value,disabled:r,children:[d.jsx(Ne,{children:d.jsx(Xr,{children:d.jsx(Jr,{placeholder:"False"})})}),d.jsxs(Qr,{className:`${e} bg-background text-foreground border-input`,children:[d.jsx(Vt,{value:"true",children:"True"}),d.jsx(Vt,{value:"false",children:"False"})]})]}),d.jsx(Ae,{})]})})})},J_=({basePath:e,readOnly:t})=>{const{control:r}=at();return d.jsxs("form",{className:"flex flex-col gap-4",children:[d.jsxs("div",{className:"flex gap-4 items-start",children:[d.jsx(Te,{control:r,name:`${e}.minItems`,render:({field:n})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Minimum Items"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:t,...n,value:n.value??"",onChange:s=>n.onChange(s.target.value===""?null:Number(s.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:r,name:`${e}.maxItems`,render:({field:n})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Maximum Items"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:t,...n,value:n.value??"",onChange:s=>n.onChange(s.target.value===""?null:Number(s.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx(Te,{control:r,name:`${e}.minContains`,render:({field:n})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Minimum Contains"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:t,...n,value:n.value??"",onChange:s=>n.onChange(s.target.value===""?null:Number(s.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:r,name:`${e}.maxContains`,render:({field:n})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Maximum Contains"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:t,...n,value:n.value??"",onChange:s=>n.onChange(s.target.value===""?null:Number(s.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsx(Te,{control:r,name:`${e}.uniqueItems`,render:({field:n})=>d.jsxs(Ee,{className:"p-4 flex border border-input rounded-md",children:[d.jsx(Ne,{children:d.jsx(Ps,{checked:n.value,onCheckedChange:n.onChange,disabled:t})}),d.jsx(ke,{className:"ml-2",children:"Unique Items"}),d.jsx(Ae,{})]})})]})},X_=({theme:e,basePath:t,readOnly:r})=>{const{control:n,watch:s}=at(),o=s(`${t}.enumEnabled`);return d.jsxs("form",{className:"flex flex-col gap-4",children:[d.jsx(Te,{control:n,name:`${t}.default`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Default Value"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsxs("div",{className:"flex gap-4 items-start",children:[d.jsx(Te,{control:n,name:`${t}.minimum`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Minimum Value"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.maximum`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Maximum Value"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx(Te,{control:n,name:`${t}.exclusiveMin`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Exclusive Minimum"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.exclusiveMax`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Exclusive Maximum"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsx(Te,{control:n,name:`${t}.multipleOf`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Multiple Of"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.format`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Format"}),d.jsxs(Yr,{onValueChange:a.onChange,defaultValue:a.value,disabled:r,children:[d.jsx(Ne,{children:d.jsx(Xr,{children:d.jsx(Jr,{placeholder:"Choose data type"})})}),d.jsxs(Qr,{className:`${e} bg-background text-foreground border-input`,children:[d.jsx(Vt,{value:"none",children:"none"}),Wb.map(i=>d.jsx(Vt,{value:i,children:i},i))]})]}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.enumEnabled`,render:({field:a})=>d.jsxs(Ee,{className:"p-4 flex border border-input rounded-md",children:[d.jsx(Ne,{children:d.jsx(Ps,{disabled:r,...a,checked:a.value,onCheckedChange:a.onChange})}),d.jsx(ke,{className:"ml-2",children:"Enable Enum"}),d.jsx(Ae,{})]})}),o&&d.jsx(Te,{control:n,name:`${t}.enumInput`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Enum Values"}),d.jsx(Ne,{children:d.jsx(Rn,{disabled:r,value:a.value||[],onValueChange:a.onChange,placeholder:"Enter your enums"})}),d.jsx(Ae,{})]})})]})};var Ns={exports:{}},li={},Yt={},jr={},ui={},di={},fi={},Bd;function As(){return Bd||(Bd=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(f){if(super(),!e.IDENTIFIER.test(f))throw new Error("CodeGen: name must be a valid identifier");this.str=f}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(f){super(),this._items=typeof f=="string"?[f]:f}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const f=this._items[0];return f===""||f==='""'}get str(){var f;return(f=this._str)!==null&&f!==void 0?f:this._str=this._items.reduce((b,w)=>`${b}${w}`,"")}get names(){var f;return(f=this._names)!==null&&f!==void 0?f:this._names=this._items.reduce((b,w)=>(w instanceof r&&(b[w.str]=(b[w.str]||0)+1),b),{})}}e._Code=n,e.nil=new n("");function s(_,...f){const b=[_[0]];let w=0;for(;w<f.length;)i(b,f[w]),b.push(_[++w]);return new n(b)}e._=s;const o=new n("+");function a(_,...f){const b=[v(_[0])];let w=0;for(;w<f.length;)b.push(o),i(b,f[w]),b.push(o,v(_[++w]));return c(b),new n(b)}e.str=a;function i(_,f){f instanceof n?_.push(...f._items):f instanceof r?_.push(f):_.push(p(f))}e.addCodeArg=i;function c(_){let f=1;for(;f<_.length-1;){if(_[f]===o){const b=l(_[f-1],_[f+1]);if(b!==void 0){_.splice(f-1,3,b);continue}_[f++]="+"}f++}}function l(_,f){if(f==='""')return _;if(_==='""')return f;if(typeof _=="string")return f instanceof r||_[_.length-1]!=='"'?void 0:typeof f!="string"?`${_.slice(0,-1)}${f}"`:f[0]==='"'?_.slice(0,-1)+f.slice(1):void 0;if(typeof f=="string"&&f[0]==='"'&&!(_ instanceof r))return`"${_}${f.slice(1)}`}function u(_,f){return f.emptyStr()?_:_.emptyStr()?f:a`${_}${f}`}e.strConcat=u;function p(_){return typeof _=="number"||typeof _=="boolean"||_===null?_:v(Array.isArray(_)?_.join(","):_)}function m(_){return new n(v(_))}e.stringify=m;function v(_){return JSON.stringify(_).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=v;function x(_){return typeof _=="string"&&e.IDENTIFIER.test(_)?new n(`.${_}`):s`[${_}]`}e.getProperty=x;function y(_){if(typeof _=="string"&&e.IDENTIFIER.test(_))return new n(`${_}`);throw new Error(`CodeGen: invalid export name: ${_}, use explicit $id name mapping`)}e.getEsmExportName=y;function h(_){return new n(_.toString())}e.regexpCode=h})(fi)),fi}var mi={},Wd;function Hd(){return Wd||(Wd=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=As();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class s{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,p;if(!((p=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||p===void 0)&&p.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=s;class o extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:p}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${p}]`}}e.ValueScopeName=o;const a=(0,t._)`\n`;class i extends s{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?a:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var p;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const m=this.toName(l),{prefix:v}=m,x=(p=u.key)!==null&&p!==void 0?p:u.ref;let y=this._values[v];if(y){const f=y.get(x);if(f)return f}else y=this._values[v]=new Map;y.set(x,m);const h=this._scope[v]||(this._scope[v]=[]),_=h.length;return h[_]=u.ref,m.setValue(u,{property:v,itemIndex:_}),m}getValue(l,u){const p=this._values[l];if(p)return p.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,p=>{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,t._)`${l}${p.scopePath}`})}scopeCode(l=this._values,u,p){return this._reduceValues(l,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},u,p)}_reduceValues(l,u,p={},m){let v=t.nil;for(const x in l){const y=l[x];if(!y)continue;const h=p[x]=p[x]||new Map;y.forEach(_=>{if(h.has(_))return;h.set(_,n.Started);let f=u(_);if(f){const b=this.opts.es5?e.varKinds.var:e.varKinds.const;v=(0,t._)`${v}${b} ${_} = ${f};${this.opts._n}`}else if(f=m==null?void 0:m(_))v=(0,t._)`${v}${f}${this.opts._n}`;else throw new r(_);h.set(_,n.Completed)})}return v}}e.ValueScope=i})(mi)),mi}var Gd;function we(){return Gd||(Gd=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=As(),r=Hd();var n=As();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var s=Hd();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(k,R){return this}}class a extends o{constructor(k,R,q){super(),this.varKind=k,this.name=R,this.rhs=q}render({es5:k,_n:R}){const q=k?r.varKinds.var:this.varKind,B=this.rhs===void 0?"":` = ${this.rhs}`;return`${q} ${this.name}${B};`+R}optimizeNames(k,R){if(k[this.name.str])return this.rhs&&(this.rhs=W(this.rhs,k,R)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class i extends o{constructor(k,R,q){super(),this.lhs=k,this.rhs=R,this.sideEffects=q}render({_n:k}){return`${this.lhs} = ${this.rhs};`+k}optimizeNames(k,R){if(!(this.lhs instanceof t.Name&&!k[this.lhs.str]&&!this.sideEffects))return this.rhs=W(this.rhs,k,R),this}get names(){const k=this.lhs instanceof t.Name?{}:{...this.lhs.names};return V(k,this.rhs)}}class c extends i{constructor(k,R,q,B){super(k,q,B),this.op=R}render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k}}class l extends o{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`${this.label}:`+k}}class u extends o{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k}}class p extends o{constructor(k){super(),this.error=k}render({_n:k}){return`throw ${this.error};`+k}get names(){return this.error.names}}class m extends o{constructor(k){super(),this.code=k}render({_n:k}){return`${this.code};`+k}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(k,R){return this.code=W(this.code,k,R),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class v extends o{constructor(k=[]){super(),this.nodes=k}render(k){return this.nodes.reduce((R,q)=>R+q.render(k),"")}optimizeNodes(){const{nodes:k}=this;let R=k.length;for(;R--;){const q=k[R].optimizeNodes();Array.isArray(q)?k.splice(R,1,...q):q?k[R]=q:k.splice(R,1)}return k.length>0?this:void 0}optimizeNames(k,R){const{nodes:q}=this;let B=q.length;for(;B--;){const Q=q[B];Q.optimizeNames(k,R)||(re(k,Q.names),q.splice(B,1))}return q.length>0?this:void 0}get names(){return this.nodes.reduce((k,R)=>F(k,R.names),{})}}class x extends v{render(k){return"{"+k._n+super.render(k)+"}"+k._n}}class y extends v{}class h extends x{}h.kind="else";class _ extends x{constructor(k,R){super(R),this.condition=k}render(k){let R=`if(${this.condition})`+super.render(k);return this.else&&(R+="else "+this.else.render(k)),R}optimizeNodes(){super.optimizeNodes();const k=this.condition;if(k===!0)return this.nodes;let R=this.else;if(R){const q=R.optimizeNodes();R=this.else=Array.isArray(q)?new h(q):q}if(R)return k===!1?R instanceof _?R:R.nodes:this.nodes.length?this:new _(Z(k),R instanceof _?[R]:R.nodes);if(!(k===!1||!this.nodes.length))return this}optimizeNames(k,R){var q;if(this.else=(q=this.else)===null||q===void 0?void 0:q.optimizeNames(k,R),!!(super.optimizeNames(k,R)||this.else))return this.condition=W(this.condition,k,R),this}get names(){const k=super.names;return V(k,this.condition),this.else&&F(k,this.else.names),k}}_.kind="if";class f extends x{}f.kind="for";class b extends f{constructor(k){super(),this.iteration=k}render(k){return`for(${this.iteration})`+super.render(k)}optimizeNames(k,R){if(super.optimizeNames(k,R))return this.iteration=W(this.iteration,k,R),this}get names(){return F(super.names,this.iteration.names)}}class w extends f{constructor(k,R,q,B){super(),this.varKind=k,this.name=R,this.from=q,this.to=B}render(k){const R=k.es5?r.varKinds.var:this.varKind,{name:q,from:B,to:Q}=this;return`for(${R} ${q}=${B}; ${q}<${Q}; ${q}++)`+super.render(k)}get names(){const k=V(super.names,this.from);return V(k,this.to)}}class g extends f{constructor(k,R,q,B){super(),this.loop=k,this.varKind=R,this.name=q,this.iterable=B}render(k){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(k)}optimizeNames(k,R){if(super.optimizeNames(k,R))return this.iterable=W(this.iterable,k,R),this}get names(){return F(super.names,this.iterable.names)}}class $ extends x{constructor(k,R,q){super(),this.name=k,this.args=R,this.async=q}render(k){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(k)}}$.kind="func";class S extends v{render(k){return"return "+super.render(k)}}S.kind="return";class j extends x{render(k){let R="try"+super.render(k);return this.catch&&(R+=this.catch.render(k)),this.finally&&(R+=this.finally.render(k)),R}optimizeNodes(){var k,R;return super.optimizeNodes(),(k=this.catch)===null||k===void 0||k.optimizeNodes(),(R=this.finally)===null||R===void 0||R.optimizeNodes(),this}optimizeNames(k,R){var q,B;return super.optimizeNames(k,R),(q=this.catch)===null||q===void 0||q.optimizeNames(k,R),(B=this.finally)===null||B===void 0||B.optimizeNames(k,R),this}get names(){const k=super.names;return this.catch&&F(k,this.catch.names),this.finally&&F(k,this.finally.names),k}}class I extends x{constructor(k){super(),this.error=k}render(k){return`catch(${this.error})`+super.render(k)}}I.kind="catch";class z extends x{render(k){return"finally"+super.render(k)}}z.kind="finally";class M{constructor(k,R={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...R,_n:R.lines?`
|
|
145
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return E.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},p_=_d,g_=xd,v_=wd,y_=$d,b_=Sd,__=Rd,x_=Nd,w_=kd,$_=Cd;function S_({...e}){return d.jsx(p_,{"data-slot":"alert-dialog",...e})}function E_({...e}){return d.jsx(g_,{"data-slot":"alert-dialog-trigger",...e})}function k_({...e}){return d.jsx(v_,{"data-slot":"alert-dialog-portal",...e})}function j_({className:e,...t}){return d.jsx(y_,{"data-slot":"alert-dialog-overlay",className:Se("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function C_({className:e,...t}){return d.jsxs(k_,{children:[d.jsx(j_,{}),d.jsx(b_,{"data-slot":"alert-dialog-content",className:Se("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...t})]})}function R_({className:e,...t}){return d.jsx("div",{"data-slot":"alert-dialog-header",className:Se("flex flex-col gap-2 text-center sm:text-left",e),...t})}function P_({className:e,...t}){return d.jsx("div",{"data-slot":"alert-dialog-footer",className:Se("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function N_({className:e,...t}){return d.jsx(w_,{"data-slot":"alert-dialog-title",className:Se("text-lg font-semibold",e),...t})}function A_({className:e,...t}){return d.jsx($_,{"data-slot":"alert-dialog-description",className:Se("text-muted-foreground text-sm",e),...t})}function T_({className:e,...t}){return d.jsx(__,{className:Se(Ja(),e),...t})}function O_({className:e,...t}){return d.jsx(x_,{className:Se(Ja({variant:"outline"}),e),...t})}const I_=({theme:e,readOnly:t,control:r,fieldPath:n,isSimpleType:s,isRootLevel:o,onRemove:a,onOpenSettings:i,onTypeChange:c})=>{Ar({control:r,name:`${n}.schema.type`});const l=Ar({control:r,name:`${n}.key`});return d.jsxs("div",{className:"p-2 flex gap-2",children:[s&&d.jsx(nr,{control:r,name:`${n}.key`,render:({field:u})=>d.jsx(Ve,{placeholder:"field_name",disabled:t,className:"w-40",...u})}),d.jsx(nr,{control:r,name:`${n}.schema.type`,render:({field:u})=>d.jsxs(Yr,{disabled:t,onValueChange:p=>{u.onChange(p),c(p)},value:u.value,children:[d.jsx(Xr,{className:"w-40",children:d.jsx(Jr,{})}),d.jsx(Qr,{className:`${e} max-h-52 bg-background text-foreground border-input`,children:Bb.map(p=>d.jsx(Vt,{value:p,children:p},p))})]})}),d.jsx(nr,{control:r,name:`${n}.schema.title`,render:({field:u})=>d.jsx(Ve,{placeholder:"Title",disabled:t,className:"flex-1",...u})}),d.jsx(nr,{control:r,name:`${n}.schema.description`,render:({field:u})=>d.jsx(Ve,{placeholder:"Description",disabled:t,className:"flex-1",...u})}),s&&d.jsxs("div",{className:"flex gap-2",children:[d.jsx(nr,{control:r,name:`${n}.isRequired`,render:({field:u})=>d.jsxs(Hu,{children:[d.jsx(Gu,{asChild:!0,children:d.jsx(mr,{disabled:t,size:"icon",variant:u.value?"default":"outline",onClick:()=>{u.onChange(!u.value)},children:d.jsx(gu,{})})}),d.jsx(Ku,{children:d.jsx("p",{children:"Required"})})]})}),d.jsx("div",{className:"border-l-2 border-input"})]}),d.jsx(mr,{size:"icon",variant:"ghost",onClick:()=>i(`${n}.schema`),children:d.jsx(pu,{className:"text-blue-500"})}),o&&d.jsxs(S_,{children:[d.jsx(E_,{asChild:!0,children:d.jsx(mr,{size:"icon",variant:"ghost",disabled:t,children:d.jsx(Ty,{className:"text-red-500"})})}),d.jsxs(C_,{className:Se("border-input",e),children:[d.jsxs(R_,{children:[d.jsx(N_,{className:"text-foreground",children:"Are you absolutely sure?"}),d.jsxs(A_,{children:["This action cannot be undone. This will permanently delete field"," ",l,"."]})]}),d.jsxs(P_,{children:[d.jsx(O_,{className:"text-foreground",children:"Cancel"}),d.jsx(T_,{onClick:a,children:"Delete"})]})]})]})]})},Cs=({theme:e,readOnly:t,fieldPath:r,onRemove:n,onOpenSettings:s,isSimpleType:o=!0,isRootLevel:a=!1})=>{const{control:i,setValue:c}=at(),l=Ar({control:i,name:`${r}.schema.type`}),{fields:u,append:p,remove:m}=wc({control:i,name:`${r}.schema.properties`}),v=()=>{const y=xn(6);p({id:y,key:`field_${y}`,isRequired:!1,schema:{type:"string"}})},x=y=>{let h={};y==="object"?h={type:"object",properties:[],additionalProperties:!0}:y==="array"?h={type:"array"}:h={type:y},c(`${r}.schema`,h)};return d.jsxs("div",{children:[d.jsx(I_,{theme:e,readOnly:t,control:i,fieldPath:r,isSimpleType:o,isRootLevel:a,onRemove:n,onOpenSettings:s,onTypeChange:x}),l==="object"&&d.jsxs("div",{className:"ml-2 pl-2 border-l-2 border-input",children:[u.map((y,h)=>d.jsx(Cs,{readOnly:t,theme:e,fieldPath:`${r}.schema.properties.${h}`,onRemove:()=>m(h),onOpenSettings:s,isRootLevel:!0},y.id)),d.jsxs(mr,{disabled:t,size:"sm",variant:"outline",onClick:v,className:"ml-2 mt-2 mb-4 flex gap-2 text-green-500",children:[d.jsx(hu,{})," Add Field"]})]}),l==="array"&&d.jsx("div",{className:"ml-2 pl-2 border-l-2 border-input mr-11",children:d.jsx(Cs,{theme:e,readOnly:t,fieldPath:`${r}.schema.items`,onRemove:()=>{},onOpenSettings:s,isSimpleType:!1})})]},`${r}-${l}`)};function D_({theme:e,readOnly:t,fields:r,onRemove:n,onOpenSettings:s}){return d.jsx("div",{className:"pl-2 border-l-2 border-input",children:r.map((o,a)=>d.jsx(Cs,{readOnly:t,theme:e,fieldPath:`properties.${a}`,onRemove:()=>n(a),onOpenSettings:s,isRootLevel:!0},o.fieldId))})}var M_="Label",Ad=E.forwardRef((e,t)=>d.jsx(Pe.label,{...e,ref:t,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Ad.displayName=M_;var F_=Ad;function V_({className:e,...t}){return d.jsx(F_,{"data-slot":"label",className:Se("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const Td=Y.createContext({}),Te=({...e})=>d.jsx(Td.Provider,{value:{name:e.name},children:d.jsx(nr,{...e})}),ii=()=>{const e=Y.useContext(Td),t=Y.useContext(Od),{getFieldState:r}=at(),n=sc({name:e.name}),s=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:o}=t;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...s}},Od=Y.createContext({});function Ee({className:e,...t}){const r=Y.useId();return d.jsx(Od.Provider,{value:{id:r},children:d.jsx("div",{"data-slot":"form-item",className:Se("grid gap-2",e),...t})})}function ke({className:e,...t}){const{error:r,formItemId:n}=ii();return d.jsx(V_,{"data-slot":"form-label","data-error":!!r,className:Se("data-[error=true]:text-destructive",e),htmlFor:n,...t})}function Ne({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:s}=ii();return d.jsx(da,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${s}`:`${n}`,"aria-invalid":!!t,...e})}function Ae({className:e,...t}){const{error:r,formMessageId:n}=ii(),s=r?String((r==null?void 0:r.message)??""):t.children;return s?d.jsx("p",{"data-slot":"form-message",id:n,className:Se("text-destructive text-sm",e),...t,children:s}):null}var Rs="Checkbox",[L_]=Tt(Rs),[z_,ci]=L_(Rs);function q_(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:s,disabled:o,form:a,name:i,onCheckedChange:c,required:l,value:u="on",internal_do_not_use_render:p}=e,[m,v]=wr({prop:r,defaultProp:s??!1,onChange:c,caller:Rs}),[x,y]=E.useState(null),[h,_]=E.useState(null),f=E.useRef(!1),b=x?!!a||!!x.closest("form"):!0,w={checked:m,disabled:o,setChecked:v,control:x,setControl:y,name:i,form:a,value:u,hasConsumerStoppedPropagationRef:f,required:l,defaultChecked:pr(s)?!1:s,isFormControl:b,bubbleInput:h,setBubbleInput:_};return d.jsx(z_,{scope:t,...w,children:U_(p)?p(w):n})}var Id="CheckboxTrigger",Dd=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},s)=>{const{control:o,value:a,disabled:i,checked:c,required:l,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:v,bubbleInput:x}=ci(Id,e),y=qe(s,u),h=E.useRef(c);return E.useEffect(()=>{const _=o==null?void 0:o.form;if(_){const f=()=>p(h.current);return _.addEventListener("reset",f),()=>_.removeEventListener("reset",f)}},[o,p]),d.jsx(Pe.button,{type:"button",role:"checkbox","aria-checked":pr(c)?"mixed":c,"aria-required":l,"data-state":qd(c),"data-disabled":i?"":void 0,disabled:i,value:a,...n,ref:y,onKeyDown:$e(t,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:$e(r,_=>{p(f=>pr(f)?!0:!f),x&&v&&(m.current=_.isPropagationStopped(),m.current||_.stopPropagation())})})});Dd.displayName=Id;var Md=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:o,required:a,disabled:i,value:c,onCheckedChange:l,form:u,...p}=e;return d.jsx(q_,{__scopeCheckbox:r,checked:s,defaultChecked:o,disabled:i,required:a,onCheckedChange:l,name:n,form:u,value:c,internal_do_not_use_render:({isFormControl:m})=>d.jsxs(d.Fragment,{children:[d.jsx(Dd,{...p,ref:t,__scopeCheckbox:r}),m&&d.jsx(zd,{__scopeCheckbox:r})]})})});Md.displayName=Rs;var Fd="CheckboxIndicator",Vd=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...s}=e,o=ci(Fd,r);return d.jsx(hr,{present:n||pr(o.checked)||o.checked===!0,children:d.jsx(Pe.span,{"data-state":qd(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});Vd.displayName=Fd;var Ld="CheckboxBubbleInput",zd=E.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:o,defaultChecked:a,required:i,disabled:c,name:l,value:u,form:p,bubbleInput:m,setBubbleInput:v}=ci(Ld,e),x=qe(r,v),y=Aa(o),h=Ra(n);E.useEffect(()=>{const f=m;if(!f)return;const b=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(b,"checked").set,$=!s.current;if(y!==o&&g){const S=new Event("click",{bubbles:$});f.indeterminate=pr(o),g.call(f,pr(o)?!1:o),f.dispatchEvent(S)}},[m,y,o,s]);const _=E.useRef(pr(o)?!1:o);return d.jsx(Pe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??_.current,required:i,disabled:c,name:l,value:u,form:p,...t,tabIndex:-1,ref:x,style:{...t.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});zd.displayName=Ld;function U_(e){return typeof e=="function"}function pr(e){return e==="indeterminate"}function qd(e){return pr(e)?"indeterminate":e?"checked":"unchecked"}function Ps({className:e,...t}){return d.jsx(Md,{"data-slot":"checkbox",className:Se("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:d.jsx(Vd,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:d.jsx(fu,{className:"size-3.5"})})})}const B_=Du("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ud({className:e,variant:t,asChild:r=!1,...n}){const s=r?da:"span";return d.jsx(s,{"data-slot":"badge",className:Se(B_({variant:t}),e),...n})}const W_=/[\n#?=&\t,./-]+/,H_=/^[^a-zA-Z0-9]*|[^a-zA-Z0-9]*$/g,G_=Y.createContext(null),Rn=Y.forwardRef(({children:e,value:t,onValueChange:r,placeholder:n,maxItems:s,minItems:o,className:a,disabled:i=!1,dir:c,...l},u)=>{const[p,m]=Y.useState(-1),[v,x]=Y.useState(""),[y,h]=Y.useState(i),[_,f]=Y.useState(i),[b,w]=Y.useState(!1),[g,$]=Y.useState(""),S=o??0,j=s??1/0,I=Y.useCallback(Z=>{!t.includes(Z)&&t.length<j&&r([...t,Z])},[t]),z=Y.useCallback(Z=>{t.includes(Z)&&t.length>S&&r(t.filter(ae=>ae!==Z))},[t]),M=Y.useCallback(Z=>{Z.preventDefault();const ae=Z.clipboardData.getData("text").split(W_),L=[...t];ae.forEach(ve=>{const G=ve.replaceAll(H_,"").trim();G.length>0&&!L.includes(G)&&L.length<j&&L.push(G)}),r(L),x("")},[t]),F=Y.useCallback(Z=>{const ae=Z.currentTarget,L=ae.value.substring(ae.selectionStart??0,ae.selectionEnd??0);$(L),w(L===v)},[v]);Y.useEffect(()=>{(()=>{i==!1&&(t.length-1>=S?f(!1):f(!0),t.length+1<=j?h(!1):h(!0))})()},[t]);const V=Y.useCallback(async Z=>{Z.stopPropagation();const ae=()=>{const T=p+1>t.length-1?-1:p+1;m(T)},L=()=>{const T=p-1<0?t.length-1:p-1;m(T)},ve=()=>{const T=p-1<=0?t.length-1===0?-1:0:p-1;m(T)},G=Z.currentTarget;switch(Z.key){case"ArrowLeft":c==="rtl"?t.length>0&&p!==-1&&ae():t.length>0&&G.selectionStart===0&&L();break;case"ArrowRight":c==="rtl"?t.length>0&&G.selectionStart===0&&L():t.length>0&&p!==-1&&ae();break;case"Backspace":case"Delete":t.length>0&&(p!==-1&&p<t.length?(z(t[p]),ve()):G.selectionStart===0&&(g===v||b)&&z(t[t.length-1]));break;case"Escape":const T=p===-1?t.length-1:-1;m(T);break;case"Enter":v.trim()!==""&&(Z.preventDefault(),I(v),x(""));break}},[p,t,v,z]),W=Y.useCallback(Z=>{Z.preventDefault(),Z.stopPropagation()},[]),re=Y.useCallback(Z=>{x(Z.currentTarget.value)},[]);return d.jsx(G_.Provider,{value:{value:t,onValueChange:r,inputValue:v,setInputValue:x,activeIndex:p,setActiveIndex:m},children:d.jsxs("div",{...l,ref:u,dir:c,className:Se("flex items-center flex-wrap gap-1 rounded-lg bg-background overflow-hidden",{"focus-within:ring-ring":p===-1},a),children:[t.map((Z,ae)=>d.jsxs(Ud,{tabIndex:p!==-1?0:p,"aria-disabled":_,"data-active":p===ae,className:Se("relative px-1 rounded flex items-center gap-1 data-[active='true']:ring-2 data-[active='true']:ring-muted-foreground truncate aria-disabled:opacity-50 aria-disabled:cursor-not-allowed"),variant:"secondary",children:[d.jsx("span",{className:"text-xs",children:Z}),d.jsxs("button",{type:"button","aria-label":`Remove ${Z} option`,"aria-roledescription":"button to remove option",disabled:_,onMouseDown:W,onClick:()=>z(Z),className:"disabled:cursor-not-allowed",children:[d.jsxs("span",{className:"sr-only",children:["Remove ",Z," option"]}),d.jsx(vu,{className:"h-4 w-4 hover:stroke-destructive"})]})]},Z)),d.jsx(Ve,{tabIndex:0,"aria-label":"input tag",disabled:y,onKeyDown:V,onPaste:M,value:v,onSelect:F,onChange:p===-1?re:void 0,placeholder:n,onClick:()=>m(-1),className:Se("border border-input h-9 min-w-fit flex-1 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0 placeholder:text-muted-foreground px-2",p!==-1&&"caret-transparent")})]})})});Rn.displayName="TagsInput";const K_=({theme:e,basePath:t,readOnly:r})=>{const{control:n,watch:s}=at(),o=s(`${t}.enumEnabled`);return d.jsxs("form",{className:"flex flex-col gap-4",children:[d.jsx(Te,{control:n,name:`${t}.default`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Default Value"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsxs("div",{className:"flex gap-4 items-start",children:[d.jsx(Te,{control:n,name:`${t}.minimum`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Minimum Value"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.maximum`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Maximum Value"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx(Te,{control:n,name:`${t}.exclusiveMin`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Exclusive Minimum"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.exclusiveMax`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Exclusive Maximum"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsx(Te,{control:n,name:`${t}.multipleOf`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Multiple Of"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.format`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Format"}),d.jsxs(Yr,{onValueChange:a.onChange,defaultValue:a.value,disabled:r,children:[d.jsx(Ne,{children:d.jsx(Xr,{children:d.jsx(Jr,{placeholder:"Choose data type"})})}),d.jsxs(Qr,{className:`${e} max-h-48 bg-background text-foreground border-input`,children:[d.jsx(Vt,{value:"none",children:"none"}),Hb.map(i=>d.jsx(Vt,{value:i,children:i},i))]})]}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.enumEnabled`,render:({field:a})=>d.jsxs(Ee,{className:"p-4 flex border border-input rounded-md",children:[d.jsx(Ne,{children:d.jsx(Ps,{disabled:r,...a,checked:a.value,onCheckedChange:a.onChange})}),d.jsx(ke,{className:"ml-2",children:"Enable Enum"}),d.jsx(Ae,{})]})}),o&&d.jsx(Te,{control:n,name:`${t}.enumInput`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Enum Values"}),d.jsx(Ne,{children:d.jsx(Rn,{disabled:r,value:a.value||[],onValueChange:a.onChange,placeholder:"Enter your enums"})}),d.jsx(Ae,{})]})})]})},Z_=({theme:e,basePath:t,readOnly:r})=>{const{control:n,watch:s}=at(),o=s(`${t}.enumEnabled`);return d.jsxs("form",{className:"flex flex-col gap-4",children:[d.jsx(Te,{control:n,name:`${t}.default`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Default Value"}),d.jsx(Ne,{children:d.jsx(Ve,{disabled:r,...a})}),d.jsx(Ae,{})]})}),d.jsxs("div",{className:"flex gap-4 items-start",children:[d.jsx(Te,{control:n,name:`${t}.minLength`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Minimum Length"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.maxLength`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Maximum Length"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsx(Te,{control:n,name:`${t}.pattern`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Pattern (Regular Expression)"}),d.jsx(Ne,{children:d.jsx(Ve,{disabled:r,...a})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.format`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Format"}),d.jsxs(Yr,{onValueChange:a.onChange,defaultValue:a.value,disabled:r,children:[d.jsx(Ne,{children:d.jsx(Xr,{children:d.jsx(Jr,{placeholder:"Choose data type"})})}),d.jsxs(Qr,{className:`${e} max-h-48 bg-background text-foreground border-input`,children:[d.jsx(Vt,{value:"none",children:"none"}),Gb.map(i=>d.jsx(Vt,{value:i,children:i},i))]})]}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.enumEnabled`,render:({field:a})=>d.jsxs(Ee,{className:"p-4 flex border border-input rounded-md",children:[d.jsx(Ne,{children:d.jsx(Ps,{disabled:r,...a,checked:a.value,onCheckedChange:a.onChange})}),d.jsx(ke,{className:"ml-2",children:"Enable Enum"}),d.jsx(Ae,{})]})}),o&&d.jsx(Te,{control:n,name:`${t}.enumInput`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Enum Values"}),d.jsx(Ne,{children:d.jsx(Rn,{disabled:r,value:a.value||[],onValueChange:a.onChange,placeholder:"Enter your enums"})}),d.jsx(Ae,{})]})})]})},Y_=({theme:e,basePath:t,readOnly:r})=>{const{control:n}=at();return d.jsx("form",{children:d.jsx(Te,{control:n,name:`${t}.default`,render:({field:s})=>d.jsxs(Ee,{className:"flex gap-2",children:[d.jsx(ke,{children:"Default Value"}),d.jsxs(Yr,{onValueChange:s.onChange,defaultValue:s.value,disabled:r,children:[d.jsx(Ne,{children:d.jsx(Xr,{children:d.jsx(Jr,{placeholder:"False"})})}),d.jsxs(Qr,{className:`${e} max-h-48 bg-background text-foreground border-input`,children:[d.jsx(Vt,{value:"true",children:"True"}),d.jsx(Vt,{value:"false",children:"False"})]})]}),d.jsx(Ae,{})]})})})},J_=({basePath:e,readOnly:t})=>{const{control:r}=at();return d.jsxs("form",{className:"flex flex-col gap-4",children:[d.jsxs("div",{className:"flex gap-4 items-start",children:[d.jsx(Te,{control:r,name:`${e}.minItems`,render:({field:n})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Minimum Items"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:t,...n,value:n.value??"",onChange:s=>n.onChange(s.target.value===""?null:Number(s.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:r,name:`${e}.maxItems`,render:({field:n})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Maximum Items"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:t,...n,value:n.value??"",onChange:s=>n.onChange(s.target.value===""?null:Number(s.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx(Te,{control:r,name:`${e}.minContains`,render:({field:n})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Minimum Contains"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:t,...n,value:n.value??"",onChange:s=>n.onChange(s.target.value===""?null:Number(s.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:r,name:`${e}.maxContains`,render:({field:n})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Maximum Contains"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:t,...n,value:n.value??"",onChange:s=>n.onChange(s.target.value===""?null:Number(s.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsx(Te,{control:r,name:`${e}.uniqueItems`,render:({field:n})=>d.jsxs(Ee,{className:"p-4 flex border border-input rounded-md",children:[d.jsx(Ne,{children:d.jsx(Ps,{checked:n.value,onCheckedChange:n.onChange,disabled:t})}),d.jsx(ke,{className:"ml-2",children:"Unique Items"}),d.jsx(Ae,{})]})})]})},X_=({theme:e,basePath:t,readOnly:r})=>{const{control:n,watch:s}=at(),o=s(`${t}.enumEnabled`);return d.jsxs("form",{className:"flex flex-col gap-4",children:[d.jsx(Te,{control:n,name:`${t}.default`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Default Value"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsxs("div",{className:"flex gap-4 items-start",children:[d.jsx(Te,{control:n,name:`${t}.minimum`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Minimum Value"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.maximum`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Maximum Value"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx(Te,{control:n,name:`${t}.exclusiveMin`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Exclusive Minimum"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.exclusiveMax`,render:({field:a})=>d.jsxs(Ee,{className:"flex-1",children:[d.jsx(ke,{children:"Exclusive Maximum"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})})]}),d.jsx(Te,{control:n,name:`${t}.multipleOf`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Multiple Of"}),d.jsx(Ne,{children:d.jsx(Ve,{type:"number",disabled:r,...a,onChange:i=>a.onChange(i.target.value===""?null:Number(i.target.value))})}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.format`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Format"}),d.jsxs(Yr,{onValueChange:a.onChange,defaultValue:a.value,disabled:r,children:[d.jsx(Ne,{children:d.jsx(Xr,{children:d.jsx(Jr,{placeholder:"Choose data type"})})}),d.jsxs(Qr,{className:`${e} max-h-48 bg-background text-foreground border-input`,children:[d.jsx(Vt,{value:"none",children:"none"}),Wb.map(i=>d.jsx(Vt,{value:i,children:i},i))]})]}),d.jsx(Ae,{})]})}),d.jsx(Te,{control:n,name:`${t}.enumEnabled`,render:({field:a})=>d.jsxs(Ee,{className:"p-4 flex border border-input rounded-md",children:[d.jsx(Ne,{children:d.jsx(Ps,{disabled:r,...a,checked:a.value,onCheckedChange:a.onChange})}),d.jsx(ke,{className:"ml-2",children:"Enable Enum"}),d.jsx(Ae,{})]})}),o&&d.jsx(Te,{control:n,name:`${t}.enumInput`,render:({field:a})=>d.jsxs(Ee,{children:[d.jsx(ke,{children:"Enum Values"}),d.jsx(Ne,{children:d.jsx(Rn,{disabled:r,value:a.value||[],onValueChange:a.onChange,placeholder:"Enter your enums"})}),d.jsx(Ae,{})]})})]})};var Ns={exports:{}},li={},Yt={},jr={},ui={},di={},fi={},Bd;function As(){return Bd||(Bd=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(f){if(super(),!e.IDENTIFIER.test(f))throw new Error("CodeGen: name must be a valid identifier");this.str=f}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(f){super(),this._items=typeof f=="string"?[f]:f}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const f=this._items[0];return f===""||f==='""'}get str(){var f;return(f=this._str)!==null&&f!==void 0?f:this._str=this._items.reduce((b,w)=>`${b}${w}`,"")}get names(){var f;return(f=this._names)!==null&&f!==void 0?f:this._names=this._items.reduce((b,w)=>(w instanceof r&&(b[w.str]=(b[w.str]||0)+1),b),{})}}e._Code=n,e.nil=new n("");function s(_,...f){const b=[_[0]];let w=0;for(;w<f.length;)i(b,f[w]),b.push(_[++w]);return new n(b)}e._=s;const o=new n("+");function a(_,...f){const b=[v(_[0])];let w=0;for(;w<f.length;)b.push(o),i(b,f[w]),b.push(o,v(_[++w]));return c(b),new n(b)}e.str=a;function i(_,f){f instanceof n?_.push(...f._items):f instanceof r?_.push(f):_.push(p(f))}e.addCodeArg=i;function c(_){let f=1;for(;f<_.length-1;){if(_[f]===o){const b=l(_[f-1],_[f+1]);if(b!==void 0){_.splice(f-1,3,b);continue}_[f++]="+"}f++}}function l(_,f){if(f==='""')return _;if(_==='""')return f;if(typeof _=="string")return f instanceof r||_[_.length-1]!=='"'?void 0:typeof f!="string"?`${_.slice(0,-1)}${f}"`:f[0]==='"'?_.slice(0,-1)+f.slice(1):void 0;if(typeof f=="string"&&f[0]==='"'&&!(_ instanceof r))return`"${_}${f.slice(1)}`}function u(_,f){return f.emptyStr()?_:_.emptyStr()?f:a`${_}${f}`}e.strConcat=u;function p(_){return typeof _=="number"||typeof _=="boolean"||_===null?_:v(Array.isArray(_)?_.join(","):_)}function m(_){return new n(v(_))}e.stringify=m;function v(_){return JSON.stringify(_).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=v;function x(_){return typeof _=="string"&&e.IDENTIFIER.test(_)?new n(`.${_}`):s`[${_}]`}e.getProperty=x;function y(_){if(typeof _=="string"&&e.IDENTIFIER.test(_))return new n(`${_}`);throw new Error(`CodeGen: invalid export name: ${_}, use explicit $id name mapping`)}e.getEsmExportName=y;function h(_){return new n(_.toString())}e.regexpCode=h})(fi)),fi}var mi={},Wd;function Hd(){return Wd||(Wd=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=As();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class s{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,p;if(!((p=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||p===void 0)&&p.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=s;class o extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:p}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${p}]`}}e.ValueScopeName=o;const a=(0,t._)`\n`;class i extends s{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?a:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var p;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const m=this.toName(l),{prefix:v}=m,x=(p=u.key)!==null&&p!==void 0?p:u.ref;let y=this._values[v];if(y){const f=y.get(x);if(f)return f}else y=this._values[v]=new Map;y.set(x,m);const h=this._scope[v]||(this._scope[v]=[]),_=h.length;return h[_]=u.ref,m.setValue(u,{property:v,itemIndex:_}),m}getValue(l,u){const p=this._values[l];if(p)return p.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,p=>{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,t._)`${l}${p.scopePath}`})}scopeCode(l=this._values,u,p){return this._reduceValues(l,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},u,p)}_reduceValues(l,u,p={},m){let v=t.nil;for(const x in l){const y=l[x];if(!y)continue;const h=p[x]=p[x]||new Map;y.forEach(_=>{if(h.has(_))return;h.set(_,n.Started);let f=u(_);if(f){const b=this.opts.es5?e.varKinds.var:e.varKinds.const;v=(0,t._)`${v}${b} ${_} = ${f};${this.opts._n}`}else if(f=m==null?void 0:m(_))v=(0,t._)`${v}${f}${this.opts._n}`;else throw new r(_);h.set(_,n.Completed)})}return v}}e.ValueScope=i})(mi)),mi}var Gd;function we(){return Gd||(Gd=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=As(),r=Hd();var n=As();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var s=Hd();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(k,R){return this}}class a extends o{constructor(k,R,q){super(),this.varKind=k,this.name=R,this.rhs=q}render({es5:k,_n:R}){const q=k?r.varKinds.var:this.varKind,B=this.rhs===void 0?"":` = ${this.rhs}`;return`${q} ${this.name}${B};`+R}optimizeNames(k,R){if(k[this.name.str])return this.rhs&&(this.rhs=W(this.rhs,k,R)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class i extends o{constructor(k,R,q){super(),this.lhs=k,this.rhs=R,this.sideEffects=q}render({_n:k}){return`${this.lhs} = ${this.rhs};`+k}optimizeNames(k,R){if(!(this.lhs instanceof t.Name&&!k[this.lhs.str]&&!this.sideEffects))return this.rhs=W(this.rhs,k,R),this}get names(){const k=this.lhs instanceof t.Name?{}:{...this.lhs.names};return V(k,this.rhs)}}class c extends i{constructor(k,R,q,B){super(k,q,B),this.op=R}render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k}}class l extends o{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`${this.label}:`+k}}class u extends o{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k}}class p extends o{constructor(k){super(),this.error=k}render({_n:k}){return`throw ${this.error};`+k}get names(){return this.error.names}}class m extends o{constructor(k){super(),this.code=k}render({_n:k}){return`${this.code};`+k}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(k,R){return this.code=W(this.code,k,R),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class v extends o{constructor(k=[]){super(),this.nodes=k}render(k){return this.nodes.reduce((R,q)=>R+q.render(k),"")}optimizeNodes(){const{nodes:k}=this;let R=k.length;for(;R--;){const q=k[R].optimizeNodes();Array.isArray(q)?k.splice(R,1,...q):q?k[R]=q:k.splice(R,1)}return k.length>0?this:void 0}optimizeNames(k,R){const{nodes:q}=this;let B=q.length;for(;B--;){const Q=q[B];Q.optimizeNames(k,R)||(re(k,Q.names),q.splice(B,1))}return q.length>0?this:void 0}get names(){return this.nodes.reduce((k,R)=>F(k,R.names),{})}}class x extends v{render(k){return"{"+k._n+super.render(k)+"}"+k._n}}class y extends v{}class h extends x{}h.kind="else";class _ extends x{constructor(k,R){super(R),this.condition=k}render(k){let R=`if(${this.condition})`+super.render(k);return this.else&&(R+="else "+this.else.render(k)),R}optimizeNodes(){super.optimizeNodes();const k=this.condition;if(k===!0)return this.nodes;let R=this.else;if(R){const q=R.optimizeNodes();R=this.else=Array.isArray(q)?new h(q):q}if(R)return k===!1?R instanceof _?R:R.nodes:this.nodes.length?this:new _(Z(k),R instanceof _?[R]:R.nodes);if(!(k===!1||!this.nodes.length))return this}optimizeNames(k,R){var q;if(this.else=(q=this.else)===null||q===void 0?void 0:q.optimizeNames(k,R),!!(super.optimizeNames(k,R)||this.else))return this.condition=W(this.condition,k,R),this}get names(){const k=super.names;return V(k,this.condition),this.else&&F(k,this.else.names),k}}_.kind="if";class f extends x{}f.kind="for";class b extends f{constructor(k){super(),this.iteration=k}render(k){return`for(${this.iteration})`+super.render(k)}optimizeNames(k,R){if(super.optimizeNames(k,R))return this.iteration=W(this.iteration,k,R),this}get names(){return F(super.names,this.iteration.names)}}class w extends f{constructor(k,R,q,B){super(),this.varKind=k,this.name=R,this.from=q,this.to=B}render(k){const R=k.es5?r.varKinds.var:this.varKind,{name:q,from:B,to:Q}=this;return`for(${R} ${q}=${B}; ${q}<${Q}; ${q}++)`+super.render(k)}get names(){const k=V(super.names,this.from);return V(k,this.to)}}class g extends f{constructor(k,R,q,B){super(),this.loop=k,this.varKind=R,this.name=q,this.iterable=B}render(k){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(k)}optimizeNames(k,R){if(super.optimizeNames(k,R))return this.iterable=W(this.iterable,k,R),this}get names(){return F(super.names,this.iterable.names)}}class $ extends x{constructor(k,R,q){super(),this.name=k,this.args=R,this.async=q}render(k){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(k)}}$.kind="func";class S extends v{render(k){return"return "+super.render(k)}}S.kind="return";class j extends x{render(k){let R="try"+super.render(k);return this.catch&&(R+=this.catch.render(k)),this.finally&&(R+=this.finally.render(k)),R}optimizeNodes(){var k,R;return super.optimizeNodes(),(k=this.catch)===null||k===void 0||k.optimizeNodes(),(R=this.finally)===null||R===void 0||R.optimizeNodes(),this}optimizeNames(k,R){var q,B;return super.optimizeNames(k,R),(q=this.catch)===null||q===void 0||q.optimizeNames(k,R),(B=this.finally)===null||B===void 0||B.optimizeNames(k,R),this}get names(){const k=super.names;return this.catch&&F(k,this.catch.names),this.finally&&F(k,this.finally.names),k}}class I extends x{constructor(k){super(),this.error=k}render(k){return`catch(${this.error})`+super.render(k)}}I.kind="catch";class z extends x{render(k){return"finally"+super.render(k)}}z.kind="finally";class M{constructor(k,R={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...R,_n:R.lines?`
|
|
146
146
|
`:""},this._extScope=k,this._scope=new r.Scope({parent:k}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(k){return this._scope.name(k)}scopeName(k){return this._extScope.name(k)}scopeValue(k,R){const q=this._extScope.value(k,R);return(this._values[q.prefix]||(this._values[q.prefix]=new Set)).add(q),q}getScopeValue(k,R){return this._extScope.getValue(k,R)}scopeRefs(k){return this._extScope.scopeRefs(k,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(k,R,q,B){const Q=this._scope.toName(R);return q!==void 0&&B&&(this._constants[Q.str]=q),this._leafNode(new a(k,Q,q)),Q}const(k,R,q){return this._def(r.varKinds.const,k,R,q)}let(k,R,q){return this._def(r.varKinds.let,k,R,q)}var(k,R,q){return this._def(r.varKinds.var,k,R,q)}assign(k,R,q){return this._leafNode(new i(k,R,q))}add(k,R){return this._leafNode(new c(k,e.operators.ADD,R))}code(k){return typeof k=="function"?k():k!==t.nil&&this._leafNode(new m(k)),this}object(...k){const R=["{"];for(const[q,B]of k)R.length>1&&R.push(","),R.push(q),(q!==B||this.opts.es5)&&(R.push(":"),(0,t.addCodeArg)(R,B));return R.push("}"),new t._Code(R)}if(k,R,q){if(this._blockNode(new _(k)),R&&q)this.code(R).else().code(q).endIf();else if(R)this.code(R).endIf();else if(q)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(k){return this._elseNode(new _(k))}else(){return this._elseNode(new h)}endIf(){return this._endBlockNode(_,h)}_for(k,R){return this._blockNode(k),R&&this.code(R).endFor(),this}for(k,R){return this._for(new b(k),R)}forRange(k,R,q,B,Q=this.opts.es5?r.varKinds.var:r.varKinds.let){const pe=this._scope.toName(k);return this._for(new w(Q,pe,R,q),()=>B(pe))}forOf(k,R,q,B=r.varKinds.const){const Q=this._scope.toName(k);if(this.opts.es5){const pe=R instanceof t.Name?R:this.var("_arr",R);return this.forRange("_i",0,(0,t._)`${pe}.length`,ie=>{this.var(Q,(0,t._)`${pe}[${ie}]`),q(Q)})}return this._for(new g("of",B,Q,R),()=>q(Q))}forIn(k,R,q,B=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(k,(0,t._)`Object.keys(${R})`,q);const Q=this._scope.toName(k);return this._for(new g("in",B,Q,R),()=>q(Q))}endFor(){return this._endBlockNode(f)}label(k){return this._leafNode(new l(k))}break(k){return this._leafNode(new u(k))}return(k){const R=new S;if(this._blockNode(R),this.code(k),R.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(k,R,q){if(!R&&!q)throw new Error('CodeGen: "try" without "catch" and "finally"');const B=new j;if(this._blockNode(B),this.code(k),R){const Q=this.name("e");this._currNode=B.catch=new I(Q),R(Q)}return q&&(this._currNode=B.finally=new z,this.code(q)),this._endBlockNode(I,z)}throw(k){return this._leafNode(new p(k))}block(k,R){return this._blockStarts.push(this._nodes.length),k&&this.code(k).endBlock(R),this}endBlock(k){const R=this._blockStarts.pop();if(R===void 0)throw new Error("CodeGen: not in self-balancing block");const q=this._nodes.length-R;if(q<0||k!==void 0&&q!==k)throw new Error(`CodeGen: wrong number of nodes: ${q} vs ${k} expected`);return this._nodes.length=R,this}func(k,R=t.nil,q,B){return this._blockNode(new $(k,R,q)),B&&this.code(B).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(k=1){for(;k-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(k){return this._currNode.nodes.push(k),this}_blockNode(k){this._currNode.nodes.push(k),this._nodes.push(k)}_endBlockNode(k,R){const q=this._currNode;if(q instanceof k||R&&q instanceof R)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${R?`${k.kind}/${R.kind}`:k.kind}"`)}_elseNode(k){const R=this._currNode;if(!(R instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=R.else=k,this}get _root(){return this._nodes[0]}get _currNode(){const k=this._nodes;return k[k.length-1]}set _currNode(k){const R=this._nodes;R[R.length-1]=k}}e.CodeGen=M;function F(O,k){for(const R in k)O[R]=(O[R]||0)+(k[R]||0);return O}function V(O,k){return k instanceof t._CodeOrName?F(O,k.names):O}function W(O,k,R){if(O instanceof t.Name)return q(O);if(!B(O))return O;return new t._Code(O._items.reduce((Q,pe)=>(pe instanceof t.Name&&(pe=q(pe)),pe instanceof t._Code?Q.push(...pe._items):Q.push(pe),Q),[]));function q(Q){const pe=R[Q.str];return pe===void 0||k[Q.str]!==1?Q:(delete k[Q.str],pe)}function B(Q){return Q instanceof t._Code&&Q._items.some(pe=>pe instanceof t.Name&&k[pe.str]===1&&R[pe.str]!==void 0)}}function re(O,k){for(const R in k)O[R]=(O[R]||0)-(k[R]||0)}function Z(O){return typeof O=="boolean"||typeof O=="number"||O===null?!O:(0,t._)`!${K(O)}`}e.not=Z;const ae=T(e.operators.AND);function L(...O){return O.reduce(ae)}e.and=L;const ve=T(e.operators.OR);function G(...O){return O.reduce(ve)}e.or=G;function T(O){return(k,R)=>k===t.nil?R:R===t.nil?k:(0,t._)`${K(k)} ${O} ${K(R)}`}function K(O){return O instanceof t.Name?O:(0,t._)`(${O})`}})(di)),di}var Re={},Kd;function Oe(){if(Kd)return Re;Kd=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.checkStrictMode=Re.getErrorPath=Re.Type=Re.useFunc=Re.setEvaluated=Re.evaluatedPropsToName=Re.mergeEvaluated=Re.eachItem=Re.unescapeJsonPointer=Re.escapeJsonPointer=Re.escapeFragment=Re.unescapeFragment=Re.schemaRefOrVal=Re.schemaHasRulesButRef=Re.schemaHasRules=Re.checkUnknownRules=Re.alwaysValidSchema=Re.toHash=void 0;const e=we(),t=As();function r(g){const $={};for(const S of g)$[S]=!0;return $}Re.toHash=r;function n(g,$){return typeof $=="boolean"?$:Object.keys($).length===0?!0:(s(g,$),!o($,g.self.RULES.all))}Re.alwaysValidSchema=n;function s(g,$=g.schema){const{opts:S,self:j}=g;if(!S.strictSchema||typeof $=="boolean")return;const I=j.RULES.keywords;for(const z in $)I[z]||w(g,`unknown keyword: "${z}"`)}Re.checkUnknownRules=s;function o(g,$){if(typeof g=="boolean")return!g;for(const S in g)if($[S])return!0;return!1}Re.schemaHasRules=o;function a(g,$){if(typeof g=="boolean")return!g;for(const S in g)if(S!=="$ref"&&$.all[S])return!0;return!1}Re.schemaHasRulesButRef=a;function i({topSchemaRef:g,schemaPath:$},S,j,I){if(!I){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${g}${$}${(0,e.getProperty)(j)}`}Re.schemaRefOrVal=i;function c(g){return p(decodeURIComponent(g))}Re.unescapeFragment=c;function l(g){return encodeURIComponent(u(g))}Re.escapeFragment=l;function u(g){return typeof g=="number"?`${g}`:g.replace(/~/g,"~0").replace(/\//g,"~1")}Re.escapeJsonPointer=u;function p(g){return g.replace(/~1/g,"/").replace(/~0/g,"~")}Re.unescapeJsonPointer=p;function m(g,$){if(Array.isArray(g))for(const S of g)$(S);else $(g)}Re.eachItem=m;function v({mergeNames:g,mergeToName:$,mergeValues:S,resultToName:j}){return(I,z,M,F)=>{const V=M===void 0?z:M instanceof e.Name?(z instanceof e.Name?g(I,z,M):$(I,z,M),M):z instanceof e.Name?($(I,M,z),z):S(z,M);return F===e.Name&&!(V instanceof e.Name)?j(I,V):V}}Re.mergeEvaluated={props:v({mergeNames:(g,$,S)=>g.if((0,e._)`${S} !== true && ${$} !== undefined`,()=>{g.if((0,e._)`${$} === true`,()=>g.assign(S,!0),()=>g.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${$})`))}),mergeToName:(g,$,S)=>g.if((0,e._)`${S} !== true`,()=>{$===!0?g.assign(S,!0):(g.assign(S,(0,e._)`${S} || {}`),y(g,S,$))}),mergeValues:(g,$)=>g===!0?!0:{...g,...$},resultToName:x}),items:v({mergeNames:(g,$,S)=>g.if((0,e._)`${S} !== true && ${$} !== undefined`,()=>g.assign(S,(0,e._)`${$} === true ? true : ${S} > ${$} ? ${S} : ${$}`)),mergeToName:(g,$,S)=>g.if((0,e._)`${S} !== true`,()=>g.assign(S,$===!0?!0:(0,e._)`${S} > ${$} ? ${S} : ${$}`)),mergeValues:(g,$)=>g===!0?!0:Math.max(g,$),resultToName:(g,$)=>g.var("items",$)})};function x(g,$){if($===!0)return g.var("props",!0);const S=g.var("props",(0,e._)`{}`);return $!==void 0&&y(g,S,$),S}Re.evaluatedPropsToName=x;function y(g,$,S){Object.keys(S).forEach(j=>g.assign((0,e._)`${$}${(0,e.getProperty)(j)}`,!0))}Re.setEvaluated=y;const h={};function _(g,$){return g.scopeValue("func",{ref:$,code:h[$.code]||(h[$.code]=new t._Code($.code))})}Re.useFunc=_;var f;(function(g){g[g.Num=0]="Num",g[g.Str=1]="Str"})(f||(Re.Type=f={}));function b(g,$,S){if(g instanceof e.Name){const j=$===f.Num;return S?j?(0,e._)`"[" + ${g} + "]"`:(0,e._)`"['" + ${g} + "']"`:j?(0,e._)`"/" + ${g}`:(0,e._)`"/" + ${g}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(g).toString():"/"+u(g)}Re.getErrorPath=b;function w(g,$,S=g.opts.strictSchema){if(S){if($=`strict mode: ${$}`,S===!0)throw new Error($);g.self.logger.warn($)}}return Re.checkStrictMode=w,Re}var Ts={},Zd;function Rt(){if(Zd)return Ts;Zd=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=we(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Ts.default=t,Ts}var Yd;function Os(){return Yd||(Yd=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=we(),r=Oe(),n=Rt();e.keywordError={message:({keyword:h})=>(0,t.str)`must pass "${h}" keyword validation`},e.keyword$DataError={message:({keyword:h,schemaType:_})=>_?(0,t.str)`"${h}" keyword must be ${_} ($data)`:(0,t.str)`"${h}" keyword is invalid ($data)`};function s(h,_=e.keywordError,f,b){const{it:w}=h,{gen:g,compositeRule:$,allErrors:S}=w,j=p(h,_,f);b??($||S)?c(g,j):l(w,(0,t._)`[${j}]`)}e.reportError=s;function o(h,_=e.keywordError,f){const{it:b}=h,{gen:w,compositeRule:g,allErrors:$}=b,S=p(h,_,f);c(w,S),g||$||l(b,n.default.vErrors)}e.reportExtraError=o;function a(h,_){h.assign(n.default.errors,_),h.if((0,t._)`${n.default.vErrors} !== null`,()=>h.if(_,()=>h.assign((0,t._)`${n.default.vErrors}.length`,_),()=>h.assign(n.default.vErrors,null)))}e.resetErrorsCount=a;function i({gen:h,keyword:_,schemaValue:f,data:b,errsCount:w,it:g}){if(w===void 0)throw new Error("ajv implementation error");const $=h.name("err");h.forRange("i",w,n.default.errors,S=>{h.const($,(0,t._)`${n.default.vErrors}[${S}]`),h.if((0,t._)`${$}.instancePath === undefined`,()=>h.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(n.default.instancePath,g.errorPath))),h.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${g.errSchemaPath}/${_}`),g.opts.verbose&&(h.assign((0,t._)`${$}.schema`,f),h.assign((0,t._)`${$}.data`,b))})}e.extendErrors=i;function c(h,_){const f=h.const("err",_);h.if((0,t._)`${n.default.vErrors} === null`,()=>h.assign(n.default.vErrors,(0,t._)`[${f}]`),(0,t._)`${n.default.vErrors}.push(${f})`),h.code((0,t._)`${n.default.errors}++`)}function l(h,_){const{gen:f,validateName:b,schemaEnv:w}=h;w.$async?f.throw((0,t._)`new ${h.ValidationError}(${_})`):(f.assign((0,t._)`${b}.errors`,_),f.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function p(h,_,f){const{createErrors:b}=h.it;return b===!1?(0,t._)`{}`:m(h,_,f)}function m(h,_,f={}){const{gen:b,it:w}=h,g=[v(w,f),x(h,f)];return y(h,_,g),b.object(...g)}function v({errorPath:h},{instancePath:_}){const f=_?(0,t.str)`${h}${(0,r.getErrorPath)(_,r.Type.Str)}`:h;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,f)]}function x({keyword:h,it:{errSchemaPath:_}},{schemaPath:f,parentSchema:b}){let w=b?_:(0,t.str)`${_}/${h}`;return f&&(w=(0,t.str)`${w}${(0,r.getErrorPath)(f,r.Type.Str)}`),[u.schemaPath,w]}function y(h,{params:_,message:f},b){const{keyword:w,data:g,schemaValue:$,it:S}=h,{opts:j,propertyName:I,topSchemaRef:z,schemaPath:M}=S;b.push([u.keyword,w],[u.params,typeof _=="function"?_(h):_||(0,t._)`{}`]),j.messages&&b.push([u.message,typeof f=="function"?f(h):f]),j.verbose&&b.push([u.schema,$],[u.parentSchema,(0,t._)`${z}${M}`],[n.default.data,g]),I&&b.push([u.propertyName,I])}})(ui)),ui}var Jd;function Q_(){if(Jd)return jr;Jd=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.boolOrEmptySchema=jr.topBoolOrEmptySchema=void 0;const e=Os(),t=we(),r=Rt(),n={message:"boolean schema is false"};function s(i){const{gen:c,schema:l,validateName:u}=i;l===!1?a(i,!1):typeof l=="object"&&l.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${u}.errors`,null),c.return(!0))}jr.topBoolOrEmptySchema=s;function o(i,c){const{gen:l,schema:u}=i;u===!1?(l.var(c,!1),a(i)):l.var(c,!0)}jr.boolOrEmptySchema=o;function a(i,c){const{gen:l,data:u}=i,p={gen:l,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:i};(0,e.reportError)(p,n,void 0,c)}return jr}var st={},Cr={},Xd;function Qd(){if(Xd)return Cr;Xd=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.getRules=Cr.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(s){return typeof s=="string"&&t.has(s)}Cr.isJSONType=r;function n(){const s={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...s,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},s.number,s.string,s.array,s.object],post:{rules:[]},all:{},keywords:{}}}return Cr.getRules=n,Cr}var Jt={},ef;function tf(){if(ef)return Jt;ef=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.shouldUseRule=Jt.shouldUseGroup=Jt.schemaHasRulesForType=void 0;function e({schema:n,self:s},o){const a=s.RULES.types[o];return a&&a!==!0&&t(n,a)}Jt.schemaHasRulesForType=e;function t(n,s){return s.rules.some(o=>r(n,o))}Jt.shouldUseGroup=t;function r(n,s){var o;return n[s.keyword]!==void 0||((o=s.definition.implements)===null||o===void 0?void 0:o.some(a=>n[a]!==void 0))}return Jt.shouldUseRule=r,Jt}var rf;function Is(){if(rf)return st;rf=1,Object.defineProperty(st,"__esModule",{value:!0}),st.reportTypeError=st.checkDataTypes=st.checkDataType=st.coerceAndCheckDataType=st.getJSONTypes=st.getSchemaTypes=st.DataType=void 0;const e=Qd(),t=tf(),r=Os(),n=we(),s=Oe();var o;(function(f){f[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong"})(o||(st.DataType=o={}));function a(f){const b=i(f.type);if(b.includes("null")){if(f.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!b.length&&f.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');f.nullable===!0&&b.push("null")}return b}st.getSchemaTypes=a;function i(f){const b=Array.isArray(f)?f:f?[f]:[];if(b.every(e.isJSONType))return b;throw new Error("type must be JSONType or JSONType[]: "+b.join(","))}st.getJSONTypes=i;function c(f,b){const{gen:w,data:g,opts:$}=f,S=u(b,$.coerceTypes),j=b.length>0&&!(S.length===0&&b.length===1&&(0,t.schemaHasRulesForType)(f,b[0]));if(j){const I=x(b,g,$.strictNumbers,o.Wrong);w.if(I,()=>{S.length?p(f,b,S):h(f)})}return j}st.coerceAndCheckDataType=c;const l=new Set(["string","number","integer","boolean","null"]);function u(f,b){return b?f.filter(w=>l.has(w)||b==="array"&&w==="array"):[]}function p(f,b,w){const{gen:g,data:$,opts:S}=f,j=g.let("dataType",(0,n._)`typeof ${$}`),I=g.let("coerced",(0,n._)`undefined`);S.coerceTypes==="array"&&g.if((0,n._)`${j} == 'object' && Array.isArray(${$}) && ${$}.length == 1`,()=>g.assign($,(0,n._)`${$}[0]`).assign(j,(0,n._)`typeof ${$}`).if(x(b,$,S.strictNumbers),()=>g.assign(I,$))),g.if((0,n._)`${I} !== undefined`);for(const M of w)(l.has(M)||M==="array"&&S.coerceTypes==="array")&&z(M);g.else(),h(f),g.endIf(),g.if((0,n._)`${I} !== undefined`,()=>{g.assign($,I),m(f,I)});function z(M){switch(M){case"string":g.elseIf((0,n._)`${j} == "number" || ${j} == "boolean"`).assign(I,(0,n._)`"" + ${$}`).elseIf((0,n._)`${$} === null`).assign(I,(0,n._)`""`);return;case"number":g.elseIf((0,n._)`${j} == "boolean" || ${$} === null
|
|
147
147
|
|| (${j} == "string" && ${$} && ${$} == +${$})`).assign(I,(0,n._)`+${$}`);return;case"integer":g.elseIf((0,n._)`${j} === "boolean" || ${$} === null
|
|
148
148
|
|| (${j} === "string" && ${$} && ${$} == +${$} && !(${$} % 1))`).assign(I,(0,n._)`+${$}`);return;case"boolean":g.elseIf((0,n._)`${$} === "false" || ${$} === 0 || ${$} === null`).assign(I,!1).elseIf((0,n._)`${$} === "true" || ${$} === 1`).assign(I,!0);return;case"null":g.elseIf((0,n._)`${$} === "" || ${$} === 0 || ${$} === false`),g.assign(I,null);return;case"array":g.elseIf((0,n._)`${j} === "string" || ${j} === "number"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ht-rnd/json-schema-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"json-schema",
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
"require": "./dist/lib/main.umd.js"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/ht-rnd/json-schema-editor"
|
|
26
|
+
},
|
|
23
27
|
"scripts": {
|
|
24
28
|
"dev": "vite",
|
|
25
29
|
"build": "tsc && vite build",
|